@stacksjs/dns 0.70.17 → 0.70.18
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 +32 -32
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
var
|
|
3
|
-
Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`}catch(U){if(!s.logger||s.logger?.constructor?.name==="NoOpLogger")console.warn("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.");else s.logger?.warn?.("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.")}if(typeof E.$responseBodyText!=="undefined"){if(E.$response)E.$response.body=E.$responseBodyText}}throw E}},"deserializerMiddleware"),WA=dT((f,h)=>(w,s)=>async($)=>{let r=s.endpointV2?.url&&f.urlParser?async()=>f.urlParser(s.endpointV2.url):f.endpoint;if(!r)throw new Error("No valid endpoint provider available.");let E=await h($.input,{...f,endpoint:r});return w({...$,request:E})},"serializerMiddleware"),zA={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},RA={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function SA(f,h,w){return{applyToStack:(s)=>{s.add(GA(f,w),zA),s.add(WA(f,h),RA)}}}dT(SA,"getSerdePlugin")});var t0=H((FT0,ZA)=>{var{defineProperty:W4,getOwnPropertyDescriptor:Sl,getOwnPropertyNames:Xl}=Object,Yl=Object.prototype.hasOwnProperty,Bh=(f,h)=>W4(f,"name",{value:h,configurable:!0}),Ml=(f,h)=>{for(var w in h)W4(f,w,{get:h[w],enumerable:!0})},Ql=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Xl(h))if(!Yl.call(f,$)&&$!==w)W4(f,$,{get:()=>h[$],enumerable:!(s=Sl(h,$))||s.enumerable})}return f},Kl=(f)=>Ql(W4({},"__esModule",{value:!0}),f),YA={};Ml(YA,{Field:()=>Vl,Fields:()=>Pl,HttpRequest:()=>Hl,HttpResponse:()=>Nl,IHttpRequest:()=>MA.HttpRequest,getHttpHandlerExtensionConfiguration:()=>Zl,isValidHostname:()=>KA,resolveHttpHandlerRuntimeConfig:()=>Jl});ZA.exports=Kl(YA);var Zl=Bh((f)=>{return{setHttpHandler(h){f.httpHandler=h},httpHandler(){return f.httpHandler},updateHttpClientConfig(h,w){f.httpHandler?.updateHttpClientConfig(h,w)},httpHandlerConfigs(){return f.httpHandler.httpHandlerConfigs()}}},"getHttpHandlerExtensionConfiguration"),Jl=Bh((f)=>{return{httpHandler:f.httpHandler()}},"resolveHttpHandlerRuntimeConfig"),MA=nh(),Vl=class{static{Bh(this,"Field")}constructor({name:f,kind:h=MA.FieldPosition.HEADER,values:w=[]}){this.name=f,this.kind=h,this.values=w}add(f){this.values.push(f)}set(f){this.values=f}remove(f){this.values=this.values.filter((h)=>h!==f)}toString(){return this.values.map((f)=>f.includes(",")||f.includes(" ")?`"${f}"`:f).join(", ")}get(){return this.values}},Pl=class{constructor({fields:f=[],encoding:h="utf-8"}){this.entries={},f.forEach(this.setField.bind(this)),this.encoding=h}static{Bh(this,"Fields")}setField(f){this.entries[f.name.toLowerCase()]=f}getField(f){return this.entries[f.toLowerCase()]}removeField(f){delete this.entries[f.toLowerCase()]}getByType(f){return Object.values(this.entries).filter((h)=>h.kind===f)}},Hl=class f{static{Bh(this,"HttpRequest")}constructor(h){this.method=h.method||"GET",this.hostname=h.hostname||"localhost",this.port=h.port,this.query=h.query||{},this.headers=h.headers||{},this.body=h.body,this.protocol=h.protocol?h.protocol.slice(-1)!==":"?`${h.protocol}:`:h.protocol:"https:",this.path=h.path?h.path.charAt(0)!=="/"?`/${h.path}`:h.path:"/",this.username=h.username,this.password=h.password,this.fragment=h.fragment}static clone(h){let w=new f({...h,headers:{...h.headers}});if(w.query)w.query=QA(w.query);return w}static isInstance(h){if(!h)return!1;let w=h;return"method"in w&&"protocol"in w&&"hostname"in w&&"path"in w&&typeof w.query==="object"&&typeof w.headers==="object"}clone(){return f.clone(this)}};function QA(f){return Object.keys(f).reduce((h,w)=>{let s=f[w];return{...h,[w]:Array.isArray(s)?[...s]:s}},{})}Bh(QA,"cloneQuery");var Nl=class{static{Bh(this,"HttpResponse")}constructor(f){this.statusCode=f.statusCode,this.reason=f.reason,this.headers=f.headers||{},this.body=f.body}static isInstance(f){if(!f)return!1;let h=f;return typeof h.statusCode==="number"&&typeof h.headers==="object"}};function KA(f){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(f)}Bh(KA,"isValidHostname")});var iT=H((BT0,VA)=>{var{defineProperty:z4,getOwnPropertyDescriptor:Dl,getOwnPropertyNames:ql}=Object,kl=Object.prototype.hasOwnProperty,yl=(f,h)=>z4(f,"name",{value:h,configurable:!0}),jl=(f,h)=>{for(var w in h)z4(f,w,{get:h[w],enumerable:!0})},Ol=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of ql(h))if(!kl.call(f,$)&&$!==w)z4(f,$,{get:()=>h[$],enumerable:!(s=Dl(h,$))||s.enumerable})}return f},ll=(f)=>Ol(z4({},"__esModule",{value:!0}),f),JA={};jl(JA,{isArrayBuffer:()=>vl});VA.exports=ll(JA);var vl=yl((f)=>typeof ArrayBuffer==="function"&&f instanceof ArrayBuffer||Object.prototype.toString.call(f)==="[object ArrayBuffer]","isArrayBuffer")});var lw=H((AT0,NA)=>{var{defineProperty:R4,getOwnPropertyDescriptor:bl,getOwnPropertyNames:ml}=Object,dl=Object.prototype.hasOwnProperty,PA=(f,h)=>R4(f,"name",{value:h,configurable:!0}),il=(f,h)=>{for(var w in h)R4(f,w,{get:h[w],enumerable:!0})},cl=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of ml(h))if(!dl.call(f,$)&&$!==w)R4(f,$,{get:()=>h[$],enumerable:!(s=bl(h,$))||s.enumerable})}return f},gl=(f)=>cl(R4({},"__esModule",{value:!0}),f),HA={};il(HA,{fromArrayBuffer:()=>_l,fromString:()=>nl});NA.exports=gl(HA);var xl=iT(),cT=B0("node:buffer"),_l=PA((f,h=0,w=f.byteLength-h)=>{if(!xl.isArrayBuffer(f))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof f} (${f})`);return cT.Buffer.from(f,h,w)},"fromArrayBuffer"),nl=PA((f,h)=>{if(typeof f!=="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof f} (${f})`);return h?cT.Buffer.from(f,h):cT.Buffer.from(f)},"fromString")});var kA=H((DA)=>{Object.defineProperty(DA,"__esModule",{value:!0});DA.fromBase64=void 0;var el=lw(),al=/^[A-Za-z0-9+/]*={0,2}$/,ol=(f)=>{if(f.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!al.exec(f))throw new TypeError("Invalid base64 string.");let h=el.fromString(f,"base64");return new Uint8Array(h.buffer,h.byteOffset,h.byteLength)};DA.fromBase64=ol});var uf=H((WT0,lA)=>{var{defineProperty:S4,getOwnPropertyDescriptor:pl,getOwnPropertyNames:ul}=Object,tl=Object.prototype.hasOwnProperty,gT=(f,h)=>S4(f,"name",{value:h,configurable:!0}),fv=(f,h)=>{for(var w in h)S4(f,w,{get:h[w],enumerable:!0})},hv=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of ul(h))if(!tl.call(f,$)&&$!==w)S4(f,$,{get:()=>h[$],enumerable:!(s=pl(h,$))||s.enumerable})}return f},wv=(f)=>hv(S4({},"__esModule",{value:!0}),f),yA={};fv(yA,{fromUtf8:()=>OA,toUint8Array:()=>sv,toUtf8:()=>$v});lA.exports=wv(yA);var jA=lw(),OA=gT((f)=>{let h=jA.fromString(f,"utf8");return new Uint8Array(h.buffer,h.byteOffset,h.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8"),sv=gT((f)=>{if(typeof f==="string")return OA(f);if(ArrayBuffer.isView(f))return new Uint8Array(f.buffer,f.byteOffset,f.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(f)},"toUint8Array"),$v=gT((f)=>{if(typeof f==="string")return f;if(typeof f!=="object"||typeof f.byteOffset!=="number"||typeof f.byteLength!=="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return jA.fromArrayBuffer(f.buffer,f.byteOffset,f.byteLength).toString("utf8")},"toUtf8")});var mA=H((vA)=>{Object.defineProperty(vA,"__esModule",{value:!0});vA.toBase64=void 0;var rv=lw(),Ev=uf(),Tv=(f)=>{let h;if(typeof f==="string")h=Ev.fromUtf8(f);else h=f;if(typeof h!=="object"||typeof h.byteOffset!=="number"||typeof h.byteLength!=="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return rv.fromArrayBuffer(h.buffer,h.byteOffset,h.byteLength).toString("base64")};vA.toBase64=Tv});var Ah=H((RT0,X4)=>{var{defineProperty:dA,getOwnPropertyDescriptor:Uv,getOwnPropertyNames:Fv}=Object,Cv=Object.prototype.hasOwnProperty,xT=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Fv(h))if(!Cv.call(f,$)&&$!==w)dA(f,$,{get:()=>h[$],enumerable:!(s=Uv(h,$))||s.enumerable})}return f},iA=(f,h,w)=>(xT(f,h,"default"),w&&xT(w,h,"default")),Iv=(f)=>xT(dA({},"__esModule",{value:!0}),f),_T={};X4.exports=Iv(_T);iA(_T,kA(),X4.exports);iA(_T,mA(),X4.exports)});var nT=H((gA)=>{Object.defineProperty(gA,"__esModule",{value:!0});gA.ChecksumStream=void 0;var Lv=Ah(),Bv=B0("node:stream");class cA extends Bv.Duplex{constructor({expectedChecksum:f,checksum:h,source:w,checksumSourceLocation:s,base64Encoder:$}){var r,E;super();if(typeof w.pipe==="function")this.source=w;else throw new Error(`@smithy/util-stream: unsupported source type ${(E=(r=w===null||w===void 0?void 0:w.constructor)===null||r===void 0?void 0:r.name)!==null&&E!==void 0?E:w} in ChecksumStream.`);this.base64Encoder=$!==null&&$!==void 0?$:Lv.toBase64,this.expectedChecksum=f,this.checksum=h,this.checksumSourceLocation=s,this.source.pipe(this)}_read(f){}_write(f,h,w){try{this.checksum.update(f),this.push(f)}catch(s){return w(s)}return w()}async _final(f){try{let h=await this.checksum.digest(),w=this.base64Encoder(h);if(this.expectedChecksum!==w)return f(new Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${w}" in response header "${this.checksumSourceLocation}".`))}catch(h){return f(h)}return this.push(null),f()}}gA.ChecksumStream=cA});var Gh=H((_A)=>{Object.defineProperty(_A,"__esModule",{value:!0});_A.isBlob=_A.isReadableStream=void 0;var Av=(f)=>{var h;return typeof ReadableStream==="function"&&(((h=f===null||f===void 0?void 0:f.constructor)===null||h===void 0?void 0:h.name)===ReadableStream.name||f instanceof ReadableStream)};_A.isReadableStream=Av;var Gv=(f)=>{var h;return typeof Blob==="function"&&(((h=f===null||f===void 0?void 0:f.constructor)===null||h===void 0?void 0:h.name)===Blob.name||f instanceof Blob)};_A.isBlob=Gv});var pA=H((aA)=>{Object.defineProperty(aA,"__esModule",{value:!0});aA.ChecksumStream=void 0;var zv=typeof ReadableStream==="function"?ReadableStream:function(){};class eA extends zv{}aA.ChecksumStream=eA});var fG=H((uA)=>{Object.defineProperty(uA,"__esModule",{value:!0});uA.createChecksumStream=void 0;var Rv=Ah(),Sv=Gh(),Xv=pA(),Yv=({expectedChecksum:f,checksum:h,source:w,checksumSourceLocation:s,base64Encoder:$})=>{var r,E;if(!Sv.isReadableStream(w))throw new Error(`@smithy/util-stream: unsupported source type ${(E=(r=w===null||w===void 0?void 0:w.constructor)===null||r===void 0?void 0:r.name)!==null&&E!==void 0?E:w} in ChecksumStream.`);let T=$!==null&&$!==void 0?$:Rv.toBase64;if(typeof TransformStream!=="function")throw new Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.");let U=new TransformStream({start(){},async transform(C,I){h.update(C),I.enqueue(C)},async flush(C){let I=await h.digest(),B=T(I);if(f!==B){let G=new Error(`Checksum mismatch: expected "${f}" but received "${B}" in response header "${s}".`);C.error(G)}else C.terminate()}});w.pipeThrough(U);let F=U.readable;return Object.setPrototypeOf(F,Xv.ChecksumStream.prototype),F};uA.createChecksumStream=Yv});var sG=H((hG)=>{Object.defineProperty(hG,"__esModule",{value:!0});hG.createChecksumStream=void 0;var Mv=Gh(),Qv=nT(),Kv=fG();function Zv(f){if(typeof ReadableStream==="function"&&Mv.isReadableStream(f.source))return Kv.createChecksumStream(f);return new Qv.ChecksumStream(f)}hG.createChecksumStream=Zv});var eT=H((rG)=>{Object.defineProperty(rG,"__esModule",{value:!0});rG.ByteArrayCollector=void 0;class $G{constructor(f){this.allocByteArray=f,this.byteLength=0,this.byteArrays=[]}push(f){this.byteArrays.push(f),this.byteLength+=f.byteLength}flush(){if(this.byteArrays.length===1){let w=this.byteArrays[0];return this.reset(),w}let f=this.allocByteArray(this.byteLength),h=0;for(let w=0;w<this.byteArrays.length;++w){let s=this.byteArrays[w];f.set(s,h),h+=s.byteLength}return this.reset(),f}reset(){this.byteArrays=[],this.byteLength=0}}rG.ByteArrayCollector=$G});var LG=H((CG)=>{Object.defineProperty(CG,"__esModule",{value:!0});CG.modeOf=CG.sizeOf=CG.flush=CG.merge=CG.createBufferedReadable=CG.createBufferedReadableStream=void 0;var Jv=eT();function TG(f,h,w){let s=f.getReader(),$=!1,r=0,E=["",new Jv.ByteArrayCollector((F)=>new Uint8Array(F))],T=-1,U=async(F)=>{let{value:C,done:I}=await s.read(),B=C;if(I){if(T!==-1){let G=Y4(E,T);if(vw(G)>0)F.enqueue(G)}F.close()}else{let G=FG(B,!1);if(T!==G){if(T>=0)F.enqueue(Y4(E,T));T=G}if(T===-1){F.enqueue(B);return}let S=vw(B);r+=S;let Q=vw(E[T]);if(S>=h&&Q===0)F.enqueue(B);else{let M=UG(E,T,B);if(!$&&r>h*2)$=!0,w===null||w===void 0||w.warn(`@smithy/util-stream - stream chunk size ${S} is below threshold of ${h}, automatically buffering.`);if(M>=h)F.enqueue(Y4(E,T));else await U(F)}}};return new ReadableStream({pull:U})}CG.createBufferedReadableStream=TG;CG.createBufferedReadable=TG;function UG(f,h,w){switch(h){case 0:return f[0]+=w,vw(f[0]);case 1:case 2:return f[h].push(w),vw(f[h])}}CG.merge=UG;function Y4(f,h){switch(h){case 0:let w=f[0];return f[0]="",w;case 1:case 2:return f[h].flush()}throw new Error(`@smithy/util-stream - invalid index ${h} given to flush()`)}CG.flush=Y4;function vw(f){var h,w;return(w=(h=f===null||f===void 0?void 0:f.byteLength)!==null&&h!==void 0?h:f===null||f===void 0?void 0:f.length)!==null&&w!==void 0?w:0}CG.sizeOf=vw;function FG(f,h=!0){if(h&&typeof Buffer!=="undefined"&&f instanceof Buffer)return 2;if(f instanceof Uint8Array)return 1;if(typeof f==="string")return 0;return-1}CG.modeOf=FG});var WG=H((AG)=>{Object.defineProperty(AG,"__esModule",{value:!0});AG.createBufferedReadable=void 0;var qv=B0("node:stream"),BG=eT(),i1=LG(),kv=Gh();function yv(f,h,w){if(kv.isReadableStream(f))return i1.createBufferedReadableStream(f,h,w);let s=new qv.Readable({read(){}}),$=!1,r=0,E=["",new BG.ByteArrayCollector((U)=>new Uint8Array(U)),new BG.ByteArrayCollector((U)=>Buffer.from(new Uint8Array(U)))],T=-1;return f.on("data",(U)=>{let F=i1.modeOf(U,!0);if(T!==F){if(T>=0)s.push(i1.flush(E,T));T=F}if(T===-1){s.push(U);return}let C=i1.sizeOf(U);r+=C;let I=i1.sizeOf(E[T]);if(C>=h&&I===0)s.push(U);else{let B=i1.merge(E,T,U);if(!$&&r>h*2)$=!0,w===null||w===void 0||w.warn(`@smithy/util-stream - stream chunk size ${C} is below threshold of ${h}, automatically buffering.`);if(B>=h)s.push(i1.flush(E,T))}}),f.on("end",()=>{if(T!==-1){let U=i1.flush(E,T);if(i1.sizeOf(U)>0)s.push(U)}s.push(null)}),s}AG.createBufferedReadable=yv});var SG=H((zG)=>{Object.defineProperty(zG,"__esModule",{value:!0});zG.getAwsChunkedEncodingStream=void 0;var jv=B0("node:stream"),Ov=(f,h)=>{let{base64Encoder:w,bodyLengthChecker:s,checksumAlgorithmFn:$,checksumLocationName:r,streamHasher:E}=h,T=w!==void 0&&$!==void 0&&r!==void 0&&E!==void 0,U=T?E($,f):void 0,F=new jv.Readable({read:()=>{}});return f.on("data",(C)=>{let I=s(C)||0;F.push(`${I.toString(16)}\r
|
|
2
|
+
var Pj=Object.create;var{getPrototypeOf:Hj,defineProperty:yT,getOwnPropertyNames:Nj}=Object;var Dj=Object.prototype.hasOwnProperty;var o=(f,h,w)=>{w=f!=null?Pj(Hj(f)):{};let s=h||!f||!f.__esModule?yT(w,"default",{value:f,enumerable:!0}):w;for(let $ of Nj(f))if(!Dj.call(s,$))yT(s,$,{get:()=>f[$],enumerable:!0});return s};var H=(f,h)=>()=>(h||f((h={exports:{}}).exports,h),h.exports);var Ch=(f,h)=>{for(var w in h)yT(f,w,{get:h[w],enumerable:!0,configurable:!0,set:(s)=>h[w]=()=>s})};var B=(f,h)=>()=>(f&&(h=f(f=0)),h);var B0=import.meta.require;var Jw=(f)=>{return{setHttpHandler(h){f.httpHandler=h},httpHandler(){return f.httpHandler},updateHttpClientConfig(h,w){f.httpHandler?.updateHttpClientConfig(h,w)},httpHandlerConfigs(){return f.httpHandler.httpHandlerConfigs()}}},Vw=(f)=>{return{httpHandler:f.httpHandler()}};var iL=()=>{};var F1=H((L50,oL)=>{var{defineProperty:s4,getOwnPropertyDescriptor:qj,getOwnPropertyNames:kj}=Object,yj=Object.prototype.hasOwnProperty,$4=(f,h)=>s4(f,"name",{value:h,configurable:!0}),jj=(f,h)=>{for(var w in h)s4(f,w,{get:h[w],enumerable:!0})},Oj=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of kj(h))if(!yj.call(f,$)&&$!==w)s4(f,$,{get:()=>h[$],enumerable:!(s=qj(h,$))||s.enumerable})}return f},lj=(f)=>Oj(s4({},"__esModule",{value:!0}),f),cL={};jj(cL,{AlgorithmId:()=>nL,EndpointURLScheme:()=>_L,FieldPosition:()=>eL,HttpApiKeyAuthLocation:()=>xL,HttpAuthLocation:()=>gL,IniSectionType:()=>aL,RequestHandlerProtocol:()=>pL,SMITHY_CONTEXT_KEY:()=>ij,getDefaultClientConfiguration:()=>mj,resolveDefaultRuntimeConfig:()=>dj});oL.exports=lj(cL);var gL=((f)=>{return f.HEADER="header",f.QUERY="query",f})(gL||{}),xL=((f)=>{return f.HEADER="header",f.QUERY="query",f})(xL||{}),_L=((f)=>{return f.HTTP="http",f.HTTPS="https",f})(_L||{}),nL=((f)=>{return f.MD5="md5",f.CRC32="crc32",f.CRC32C="crc32c",f.SHA1="sha1",f.SHA256="sha256",f})(nL||{}),vj=$4((f)=>{let h=[];if(f.sha256!==void 0)h.push({algorithmId:()=>"sha256",checksumConstructor:()=>f.sha256});if(f.md5!=null)h.push({algorithmId:()=>"md5",checksumConstructor:()=>f.md5});return{addChecksumAlgorithm(w){h.push(w)},checksumAlgorithms(){return h}}},"getChecksumConfiguration"),bj=$4((f)=>{let h={};return f.checksumAlgorithms().forEach((w)=>{h[w.algorithmId()]=w.checksumConstructor()}),h},"resolveChecksumRuntimeConfig"),mj=$4((f)=>{return vj(f)},"getDefaultClientConfiguration"),dj=$4((f)=>{return bj(f)},"resolveDefaultRuntimeConfig"),eL=((f)=>{return f[f.HEADER=0]="HEADER",f[f.TRAILER=1]="TRAILER",f})(eL||{}),ij="__smithy_context",aL=((f)=>{return f.PROFILE="profile",f.SSO_SESSION="sso-session",f.SERVICES="services",f})(aL||{}),pL=((f)=>{return f.HTTP_0_9="http/0.9",f.HTTP_1_0="http/1.0",f.TDS_8_0="tds/8.0",f})(pL||{})});var cj;var uL=B(()=>{cj=o(F1(),1)});var tL=()=>{};class n0{constructor(f){this.method=f.method||"GET",this.hostname=f.hostname||"localhost",this.port=f.port,this.query=f.query||{},this.headers=f.headers||{},this.body=f.body,this.protocol=f.protocol?f.protocol.slice(-1)!==":"?`${f.protocol}:`:f.protocol:"https:",this.path=f.path?f.path.charAt(0)!=="/"?`/${f.path}`:f.path:"/",this.username=f.username,this.password=f.password,this.fragment=f.fragment}static clone(f){let h=new n0({...f,headers:{...f.headers}});if(h.query)h.query=gj(h.query);return h}static isInstance(f){if(!f)return!1;let h=f;return"method"in h&&"protocol"in h&&"hostname"in h&&"path"in h&&typeof h.query==="object"&&typeof h.headers==="object"}clone(){return n0.clone(this)}}function gj(f){return Object.keys(f).reduce((h,w)=>{let s=f[w];return{...h,[w]:Array.isArray(s)?[...s]:s}},{})}class xh{constructor(f){this.statusCode=f.statusCode,this.reason=f.reason,this.headers=f.headers||{},this.body=f.body}static isInstance(f){if(!f)return!1;let h=f;return typeof h.statusCode==="number"&&typeof h.headers==="object"}}var fB=()=>{};var C1=B(()=>{iL();uL();tL();fB()});function Pw(f){return f}var xj=(f)=>(h)=>async(w)=>{if(!n0.isInstance(w.request))return h(w);let{request:s}=w,{handlerProtocol:$=""}=f.requestHandler.metadata||{};if($.indexOf("h2")>=0&&!s.headers[":authority"])delete s.headers.host,s.headers[":authority"]=s.hostname+(s.port?":"+s.port:"");else if(!s.headers.host){let r=s.hostname;if(s.port!=null)r+=`:${s.port}`;s.headers.host=r}return h(w)},_j,Hw=(f)=>({applyToStack:(h)=>{h.add(xj(f),_j)}});var r4=B(()=>{C1();_j={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0}});var nj=()=>(f,h)=>async(w)=>{try{let s=await f(w),{clientName:$,commandName:r,logger:E,dynamoDbDocumentClientOptions:T={}}=h,{overrideInputFilterSensitiveLog:U,overrideOutputFilterSensitiveLog:F}=T,C=U??h.inputFilterSensitiveLog,I=F??h.outputFilterSensitiveLog,{$metadata:L,...W}=s.output;return E?.info?.({clientName:$,commandName:r,input:C(w.input),output:I(W),metadata:L}),s}catch(s){let{clientName:$,commandName:r,logger:E,dynamoDbDocumentClientOptions:T={}}=h,{overrideInputFilterSensitiveLog:U}=T,F=U??h.inputFilterSensitiveLog;throw E?.error?.({clientName:$,commandName:r,input:F(w.input),error:s,metadata:s.$metadata}),s}},ej,Nw=(f)=>({applyToStack:(h)=>{h.add(nj(),ej)}});var hB=B(()=>{ej={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0}});var E4=B(()=>{hB()});var jT="X-Amzn-Trace-Id",aj="AWS_LAMBDA_FUNCTION_NAME",pj="_X_AMZN_TRACE_ID",oj=(f)=>(h)=>async(w)=>{let{request:s}=w;if(!n0.isInstance(s)||f.runtime!=="node")return h(w);let $=Object.keys(s.headers??{}).find((U)=>U.toLowerCase()===jT.toLowerCase())??jT;if(s.headers.hasOwnProperty($))return h(w);let r=process.env[aj],E=process.env[pj],T=(U)=>typeof U==="string"&&U.length>0;if(T(r)&&T(E))s.headers[jT]=E;return h({...w,request:s})},uj,Dw=(f)=>({applyToStack:(h)=>{h.add(oj(f),uj)}});var T4=B(()=>{C1();uj={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"}});var Ih=H((y50,rB)=>{var{defineProperty:U4,getOwnPropertyDescriptor:tj,getOwnPropertyNames:fO}=Object,hO=Object.prototype.hasOwnProperty,sB=(f,h)=>U4(f,"name",{value:h,configurable:!0}),wO=(f,h)=>{for(var w in h)U4(f,w,{get:h[w],enumerable:!0})},sO=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of fO(h))if(!hO.call(f,$)&&$!==w)U4(f,$,{get:()=>h[$],enumerable:!(s=tj(h,$))||s.enumerable})}return f},$O=(f)=>sO(U4({},"__esModule",{value:!0}),f),$B={};wO($B,{getSmithyContext:()=>rO,normalizeProvider:()=>EO});rB.exports=$O($B);var wB=F1(),rO=sB((f)=>f[wB.SMITHY_CONTEXT_KEY]||(f[wB.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),EO=sB((f)=>{if(typeof f==="function")return f;let h=Promise.resolve(f);return()=>h},"normalizeProvider")});var qw=H((j50,LB)=>{var{defineProperty:F4,getOwnPropertyDescriptor:TO,getOwnPropertyNames:UO}=Object,FO=Object.prototype.hasOwnProperty,OT=(f,h)=>F4(f,"name",{value:h,configurable:!0}),CO=(f,h)=>{for(var w in h)F4(f,w,{get:h[w],enumerable:!0})},IO=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of UO(h))if(!FO.call(f,$)&&$!==w)F4(f,$,{get:()=>h[$],enumerable:!(s=TO(h,$))||s.enumerable})}return f},LO=(f)=>IO(F4({},"__esModule",{value:!0}),f),EB={};CO(EB,{deserializerMiddleware:()=>TB,deserializerMiddlewareOption:()=>FB,getSerdePlugin:()=>IB,serializerMiddleware:()=>UB,serializerMiddlewareOption:()=>CB});LB.exports=LO(EB);var TB=OT((f,h)=>(w,s)=>async($)=>{let{response:r}=await w($);try{let E=await h(r,f);return{response:r,output:E}}catch(E){if(Object.defineProperty(E,"$response",{value:r}),!("$metadata"in E)){try{E.message+=`
|
|
3
|
+
Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`}catch(U){if(!s.logger||s.logger?.constructor?.name==="NoOpLogger")console.warn("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.");else s.logger?.warn?.("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.")}if(typeof E.$responseBodyText!=="undefined"){if(E.$response)E.$response.body=E.$responseBodyText}}throw E}},"deserializerMiddleware"),UB=OT((f,h)=>(w,s)=>async($)=>{let r=s.endpointV2?.url&&f.urlParser?async()=>f.urlParser(s.endpointV2.url):f.endpoint;if(!r)throw new Error("No valid endpoint provider available.");let E=await h($.input,{...f,endpoint:r});return w({...$,request:E})},"serializerMiddleware"),FB={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},CB={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function IB(f,h,w){return{applyToStack:(s)=>{s.add(TB(f,w),FB),s.add(UB(f,h),CB)}}}OT(IB,"getSerdePlugin")});var t0=H((O50,zB)=>{var{defineProperty:C4,getOwnPropertyDescriptor:BO,getOwnPropertyNames:GO}=Object,WO=Object.prototype.hasOwnProperty,Lh=(f,h)=>C4(f,"name",{value:h,configurable:!0}),AO=(f,h)=>{for(var w in h)C4(f,w,{get:h[w],enumerable:!0})},zO=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of GO(h))if(!WO.call(f,$)&&$!==w)C4(f,$,{get:()=>h[$],enumerable:!(s=BO(h,$))||s.enumerable})}return f},RO=(f)=>zO(C4({},"__esModule",{value:!0}),f),BB={};AO(BB,{Field:()=>YO,Fields:()=>MO,HttpRequest:()=>QO,HttpResponse:()=>KO,IHttpRequest:()=>GB.HttpRequest,getHttpHandlerExtensionConfiguration:()=>XO,isValidHostname:()=>AB,resolveHttpHandlerRuntimeConfig:()=>SO});zB.exports=RO(BB);var XO=Lh((f)=>{return{setHttpHandler(h){f.httpHandler=h},httpHandler(){return f.httpHandler},updateHttpClientConfig(h,w){f.httpHandler?.updateHttpClientConfig(h,w)},httpHandlerConfigs(){return f.httpHandler.httpHandlerConfigs()}}},"getHttpHandlerExtensionConfiguration"),SO=Lh((f)=>{return{httpHandler:f.httpHandler()}},"resolveHttpHandlerRuntimeConfig"),GB=F1(),YO=class{static{Lh(this,"Field")}constructor({name:f,kind:h=GB.FieldPosition.HEADER,values:w=[]}){this.name=f,this.kind=h,this.values=w}add(f){this.values.push(f)}set(f){this.values=f}remove(f){this.values=this.values.filter((h)=>h!==f)}toString(){return this.values.map((f)=>f.includes(",")||f.includes(" ")?`"${f}"`:f).join(", ")}get(){return this.values}},MO=class{constructor({fields:f=[],encoding:h="utf-8"}){this.entries={},f.forEach(this.setField.bind(this)),this.encoding=h}static{Lh(this,"Fields")}setField(f){this.entries[f.name.toLowerCase()]=f}getField(f){return this.entries[f.toLowerCase()]}removeField(f){delete this.entries[f.toLowerCase()]}getByType(f){return Object.values(this.entries).filter((h)=>h.kind===f)}},QO=class f{static{Lh(this,"HttpRequest")}constructor(h){this.method=h.method||"GET",this.hostname=h.hostname||"localhost",this.port=h.port,this.query=h.query||{},this.headers=h.headers||{},this.body=h.body,this.protocol=h.protocol?h.protocol.slice(-1)!==":"?`${h.protocol}:`:h.protocol:"https:",this.path=h.path?h.path.charAt(0)!=="/"?`/${h.path}`:h.path:"/",this.username=h.username,this.password=h.password,this.fragment=h.fragment}static clone(h){let w=new f({...h,headers:{...h.headers}});if(w.query)w.query=WB(w.query);return w}static isInstance(h){if(!h)return!1;let w=h;return"method"in w&&"protocol"in w&&"hostname"in w&&"path"in w&&typeof w.query==="object"&&typeof w.headers==="object"}clone(){return f.clone(this)}};function WB(f){return Object.keys(f).reduce((h,w)=>{let s=f[w];return{...h,[w]:Array.isArray(s)?[...s]:s}},{})}Lh(WB,"cloneQuery");var KO=class{static{Lh(this,"HttpResponse")}constructor(f){this.statusCode=f.statusCode,this.reason=f.reason,this.headers=f.headers||{},this.body=f.body}static isInstance(f){if(!f)return!1;let h=f;return typeof h.statusCode==="number"&&typeof h.headers==="object"}};function AB(f){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(f)}Lh(AB,"isValidHostname")});var lT=H((m50,XB)=>{var{defineProperty:I4,getOwnPropertyDescriptor:ZO,getOwnPropertyNames:JO}=Object,VO=Object.prototype.hasOwnProperty,PO=(f,h)=>I4(f,"name",{value:h,configurable:!0}),HO=(f,h)=>{for(var w in h)I4(f,w,{get:h[w],enumerable:!0})},NO=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of JO(h))if(!VO.call(f,$)&&$!==w)I4(f,$,{get:()=>h[$],enumerable:!(s=ZO(h,$))||s.enumerable})}return f},DO=(f)=>NO(I4({},"__esModule",{value:!0}),f),RB={};HO(RB,{isArrayBuffer:()=>qO});XB.exports=DO(RB);var qO=PO((f)=>typeof ArrayBuffer==="function"&&f instanceof ArrayBuffer||Object.prototype.toString.call(f)==="[object ArrayBuffer]","isArrayBuffer")});var kw=H((d50,MB)=>{var{defineProperty:L4,getOwnPropertyDescriptor:kO,getOwnPropertyNames:yO}=Object,jO=Object.prototype.hasOwnProperty,SB=(f,h)=>L4(f,"name",{value:h,configurable:!0}),OO=(f,h)=>{for(var w in h)L4(f,w,{get:h[w],enumerable:!0})},lO=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of yO(h))if(!jO.call(f,$)&&$!==w)L4(f,$,{get:()=>h[$],enumerable:!(s=kO(h,$))||s.enumerable})}return f},vO=(f)=>lO(L4({},"__esModule",{value:!0}),f),YB={};OO(YB,{fromArrayBuffer:()=>mO,fromString:()=>dO});MB.exports=vO(YB);var bO=lT(),vT=B0("node:buffer"),mO=SB((f,h=0,w=f.byteLength-h)=>{if(!bO.isArrayBuffer(f))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof f} (${f})`);return vT.Buffer.from(f,h,w)},"fromArrayBuffer"),dO=SB((f,h)=>{if(typeof f!=="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof f} (${f})`);return h?vT.Buffer.from(f,h):vT.Buffer.from(f)},"fromString")});var ZB=H((QB)=>{Object.defineProperty(QB,"__esModule",{value:!0});QB.fromBase64=void 0;var iO=kw(),cO=/^[A-Za-z0-9+/]*={0,2}$/,gO=(f)=>{if(f.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!cO.exec(f))throw new TypeError("Invalid base64 string.");let h=iO.fromString(f,"base64");return new Uint8Array(h.buffer,h.byteOffset,h.byteLength)};QB.fromBase64=gO});var u1=H((c50,HB)=>{var{defineProperty:B4,getOwnPropertyDescriptor:xO,getOwnPropertyNames:_O}=Object,nO=Object.prototype.hasOwnProperty,bT=(f,h)=>B4(f,"name",{value:h,configurable:!0}),eO=(f,h)=>{for(var w in h)B4(f,w,{get:h[w],enumerable:!0})},aO=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of _O(h))if(!nO.call(f,$)&&$!==w)B4(f,$,{get:()=>h[$],enumerable:!(s=xO(h,$))||s.enumerable})}return f},pO=(f)=>aO(B4({},"__esModule",{value:!0}),f),JB={};eO(JB,{fromUtf8:()=>PB,toUint8Array:()=>oO,toUtf8:()=>uO});HB.exports=pO(JB);var VB=kw(),PB=bT((f)=>{let h=VB.fromString(f,"utf8");return new Uint8Array(h.buffer,h.byteOffset,h.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8"),oO=bT((f)=>{if(typeof f==="string")return PB(f);if(ArrayBuffer.isView(f))return new Uint8Array(f.buffer,f.byteOffset,f.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(f)},"toUint8Array"),uO=bT((f)=>{if(typeof f==="string")return f;if(typeof f!=="object"||typeof f.byteOffset!=="number"||typeof f.byteLength!=="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return VB.fromArrayBuffer(f.buffer,f.byteOffset,f.byteLength).toString("utf8")},"toUtf8")});var qB=H((NB)=>{Object.defineProperty(NB,"__esModule",{value:!0});NB.toBase64=void 0;var tO=kw(),fl=u1(),hl=(f)=>{let h;if(typeof f==="string")h=fl.fromUtf8(f);else h=f;if(typeof h!=="object"||typeof h.byteOffset!=="number"||typeof h.byteLength!=="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return tO.fromArrayBuffer(h.buffer,h.byteOffset,h.byteLength).toString("base64")};NB.toBase64=hl});var Bh=H((x50,G4)=>{var{defineProperty:kB,getOwnPropertyDescriptor:wl,getOwnPropertyNames:sl}=Object,$l=Object.prototype.hasOwnProperty,mT=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of sl(h))if(!$l.call(f,$)&&$!==w)kB(f,$,{get:()=>h[$],enumerable:!(s=wl(h,$))||s.enumerable})}return f},yB=(f,h,w)=>(mT(f,h,"default"),w&&mT(w,h,"default")),rl=(f)=>mT(kB({},"__esModule",{value:!0}),f),dT={};G4.exports=rl(dT);yB(dT,ZB(),G4.exports);yB(dT,qB(),G4.exports)});var iT=H((OB)=>{Object.defineProperty(OB,"__esModule",{value:!0});OB.ChecksumStream=void 0;var El=Bh(),Tl=B0("node:stream");class jB extends Tl.Duplex{constructor({expectedChecksum:f,checksum:h,source:w,checksumSourceLocation:s,base64Encoder:$}){var r,E;super();if(typeof w.pipe==="function")this.source=w;else throw new Error(`@smithy/util-stream: unsupported source type ${(E=(r=w===null||w===void 0?void 0:w.constructor)===null||r===void 0?void 0:r.name)!==null&&E!==void 0?E:w} in ChecksumStream.`);this.base64Encoder=$!==null&&$!==void 0?$:El.toBase64,this.expectedChecksum=f,this.checksum=h,this.checksumSourceLocation=s,this.source.pipe(this)}_read(f){}_write(f,h,w){try{this.checksum.update(f),this.push(f)}catch(s){return w(s)}return w()}async _final(f){try{let h=await this.checksum.digest(),w=this.base64Encoder(h);if(this.expectedChecksum!==w)return f(new Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${w}" in response header "${this.checksumSourceLocation}".`))}catch(h){return f(h)}return this.push(null),f()}}OB.ChecksumStream=jB});var Gh=H((vB)=>{Object.defineProperty(vB,"__esModule",{value:!0});vB.isBlob=vB.isReadableStream=void 0;var Ul=(f)=>{var h;return typeof ReadableStream==="function"&&(((h=f===null||f===void 0?void 0:f.constructor)===null||h===void 0?void 0:h.name)===ReadableStream.name||f instanceof ReadableStream)};vB.isReadableStream=Ul;var Fl=(f)=>{var h;return typeof Blob==="function"&&(((h=f===null||f===void 0?void 0:f.constructor)===null||h===void 0?void 0:h.name)===Blob.name||f instanceof Blob)};vB.isBlob=Fl});var cB=H((dB)=>{Object.defineProperty(dB,"__esModule",{value:!0});dB.ChecksumStream=void 0;var Il=typeof ReadableStream==="function"?ReadableStream:function(){};class mB extends Il{}dB.ChecksumStream=mB});var _B=H((gB)=>{Object.defineProperty(gB,"__esModule",{value:!0});gB.createChecksumStream=void 0;var Ll=Bh(),Bl=Gh(),Gl=cB(),Wl=({expectedChecksum:f,checksum:h,source:w,checksumSourceLocation:s,base64Encoder:$})=>{var r,E;if(!Bl.isReadableStream(w))throw new Error(`@smithy/util-stream: unsupported source type ${(E=(r=w===null||w===void 0?void 0:w.constructor)===null||r===void 0?void 0:r.name)!==null&&E!==void 0?E:w} in ChecksumStream.`);let T=$!==null&&$!==void 0?$:Ll.toBase64;if(typeof TransformStream!=="function")throw new Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.");let U=new TransformStream({start(){},async transform(C,I){h.update(C),I.enqueue(C)},async flush(C){let I=await h.digest(),L=T(I);if(f!==L){let W=new Error(`Checksum mismatch: expected "${f}" but received "${L}" in response header "${s}".`);C.error(W)}else C.terminate()}});w.pipeThrough(U);let F=U.readable;return Object.setPrototypeOf(F,Gl.ChecksumStream.prototype),F};gB.createChecksumStream=Wl});var aB=H((nB)=>{Object.defineProperty(nB,"__esModule",{value:!0});nB.createChecksumStream=void 0;var Al=Gh(),zl=iT(),Rl=_B();function Xl(f){if(typeof ReadableStream==="function"&&Al.isReadableStream(f.source))return Rl.createChecksumStream(f);return new zl.ChecksumStream(f)}nB.createChecksumStream=Xl});var cT=H((oB)=>{Object.defineProperty(oB,"__esModule",{value:!0});oB.ByteArrayCollector=void 0;class pB{constructor(f){this.allocByteArray=f,this.byteLength=0,this.byteArrays=[]}push(f){this.byteArrays.push(f),this.byteLength+=f.byteLength}flush(){if(this.byteArrays.length===1){let w=this.byteArrays[0];return this.reset(),w}let f=this.allocByteArray(this.byteLength),h=0;for(let w=0;w<this.byteArrays.length;++w){let s=this.byteArrays[w];f.set(s,h),h+=s.byteLength}return this.reset(),f}reset(){this.byteArrays=[],this.byteLength=0}}oB.ByteArrayCollector=pB});var $G=H((wG)=>{Object.defineProperty(wG,"__esModule",{value:!0});wG.modeOf=wG.sizeOf=wG.flush=wG.merge=wG.createBufferedReadable=wG.createBufferedReadableStream=void 0;var Sl=cT();function tB(f,h,w){let s=f.getReader(),$=!1,r=0,E=["",new Sl.ByteArrayCollector((F)=>new Uint8Array(F))],T=-1,U=async(F)=>{let{value:C,done:I}=await s.read(),L=C;if(I){if(T!==-1){let W=W4(E,T);if(yw(W)>0)F.enqueue(W)}F.close()}else{let W=hG(L,!1);if(T!==W){if(T>=0)F.enqueue(W4(E,T));T=W}if(T===-1){F.enqueue(L);return}let X=yw(L);r+=X;let Q=yw(E[T]);if(X>=h&&Q===0)F.enqueue(L);else{let M=fG(E,T,L);if(!$&&r>h*2)$=!0,w===null||w===void 0||w.warn(`@smithy/util-stream - stream chunk size ${X} is below threshold of ${h}, automatically buffering.`);if(M>=h)F.enqueue(W4(E,T));else await U(F)}}};return new ReadableStream({pull:U})}wG.createBufferedReadableStream=tB;wG.createBufferedReadable=tB;function fG(f,h,w){switch(h){case 0:return f[0]+=w,yw(f[0]);case 1:case 2:return f[h].push(w),yw(f[h])}}wG.merge=fG;function W4(f,h){switch(h){case 0:let w=f[0];return f[0]="",w;case 1:case 2:return f[h].flush()}throw new Error(`@smithy/util-stream - invalid index ${h} given to flush()`)}wG.flush=W4;function yw(f){var h,w;return(w=(h=f===null||f===void 0?void 0:f.byteLength)!==null&&h!==void 0?h:f===null||f===void 0?void 0:f.length)!==null&&w!==void 0?w:0}wG.sizeOf=yw;function hG(f,h=!0){if(h&&typeof Buffer!=="undefined"&&f instanceof Buffer)return 2;if(f instanceof Uint8Array)return 1;if(typeof f==="string")return 0;return-1}wG.modeOf=hG});var UG=H((EG)=>{Object.defineProperty(EG,"__esModule",{value:!0});EG.createBufferedReadable=void 0;var Jl=B0("node:stream"),rG=cT(),mf=$G(),Vl=Gh();function Pl(f,h,w){if(Vl.isReadableStream(f))return mf.createBufferedReadableStream(f,h,w);let s=new Jl.Readable({read(){}}),$=!1,r=0,E=["",new rG.ByteArrayCollector((U)=>new Uint8Array(U)),new rG.ByteArrayCollector((U)=>Buffer.from(new Uint8Array(U)))],T=-1;return f.on("data",(U)=>{let F=mf.modeOf(U,!0);if(T!==F){if(T>=0)s.push(mf.flush(E,T));T=F}if(T===-1){s.push(U);return}let C=mf.sizeOf(U);r+=C;let I=mf.sizeOf(E[T]);if(C>=h&&I===0)s.push(U);else{let L=mf.merge(E,T,U);if(!$&&r>h*2)$=!0,w===null||w===void 0||w.warn(`@smithy/util-stream - stream chunk size ${C} is below threshold of ${h}, automatically buffering.`);if(L>=h)s.push(mf.flush(E,T))}}),f.on("end",()=>{if(T!==-1){let U=mf.flush(E,T);if(mf.sizeOf(U)>0)s.push(U)}s.push(null)}),s}EG.createBufferedReadable=Pl});var IG=H((FG)=>{Object.defineProperty(FG,"__esModule",{value:!0});FG.getAwsChunkedEncodingStream=void 0;var Hl=B0("node:stream"),Nl=(f,h)=>{let{base64Encoder:w,bodyLengthChecker:s,checksumAlgorithmFn:$,checksumLocationName:r,streamHasher:E}=h,T=w!==void 0&&$!==void 0&&r!==void 0&&E!==void 0,U=T?E($,f):void 0,F=new Hl.Readable({read:()=>{}});return f.on("data",(C)=>{let I=s(C)||0;F.push(`${I.toString(16)}\r
|
|
4
4
|
`),F.push(C),F.push(`\r
|
|
5
5
|
`)}),f.on("end",async()=>{if(F.push(`0\r
|
|
6
6
|
`),T){let C=w(await U);F.push(`${r}:${C}\r
|
|
7
7
|
`),F.push(`\r
|
|
8
|
-
`)}F.push(null)}),F};
|
|
8
|
+
`)}F.push(null)}),F};FG.getAwsChunkedEncodingStream=Nl});var GG=H((LG)=>{Object.defineProperty(LG,"__esModule",{value:!0});LG.headStream=void 0;async function Dl(f,h){var w;let s=0,$=[],r=f.getReader(),E=!1;while(!E){let{done:F,value:C}=await r.read();if(C)$.push(C),s+=(w=C===null||C===void 0?void 0:C.byteLength)!==null&&w!==void 0?w:0;if(s>=h)break;E=F}r.releaseLock();let T=new Uint8Array(Math.min(h,s)),U=0;for(let F of $){if(F.byteLength>T.byteLength-U){T.set(F.subarray(0,T.byteLength-U),U);break}else T.set(F,U);U+=F.length}return T}LG.headStream=Dl});var RG=H((AG)=>{Object.defineProperty(AG,"__esModule",{value:!0});AG.headStream=void 0;var ql=B0("node:stream"),kl=GG(),yl=Gh(),jl=(f,h)=>{if(yl.isReadableStream(f))return kl.headStream(f,h);return new Promise((w,s)=>{let $=new WG;$.limit=h,f.pipe($),f.on("error",(r)=>{$.end(),s(r)}),$.on("error",s),$.on("finish",function(){let r=new Uint8Array(Buffer.concat(this.buffers));w(r)})})};AG.headStream=jl;class WG extends ql.Writable{constructor(){super(...arguments);this.buffers=[],this.limit=1/0,this.bytesBuffered=0}_write(f,h,w){var s;if(this.buffers.push(f),this.bytesBuffered+=(s=f.byteLength)!==null&&s!==void 0?s:0,this.bytesBuffered>=this.limit){let $=this.bytesBuffered-this.limit,r=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=r.subarray(0,r.byteLength-$),this.emit("finish")}w()}}});var z4=H((sE0,YG)=>{var{defineProperty:A4,getOwnPropertyDescriptor:Ol,getOwnPropertyNames:ll}=Object,vl=Object.prototype.hasOwnProperty,gT=(f,h)=>A4(f,"name",{value:h,configurable:!0}),bl=(f,h)=>{for(var w in h)A4(f,w,{get:h[w],enumerable:!0})},ml=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of ll(h))if(!vl.call(f,$)&&$!==w)A4(f,$,{get:()=>h[$],enumerable:!(s=Ol(h,$))||s.enumerable})}return f},dl=(f)=>ml(A4({},"__esModule",{value:!0}),f),XG={};bl(XG,{escapeUri:()=>SG,escapeUriPath:()=>cl});YG.exports=dl(XG);var SG=gT((f)=>encodeURIComponent(f).replace(/[!'()*]/g,il),"escapeUri"),il=gT((f)=>`%${f.charCodeAt(0).toString(16).toUpperCase()}`,"hexEncode"),cl=gT((f)=>f.split("/").map(SG).join("/"),"escapeUriPath")});var _T=H(($E0,KG)=>{var{defineProperty:R4,getOwnPropertyDescriptor:gl,getOwnPropertyNames:xl}=Object,_l=Object.prototype.hasOwnProperty,nl=(f,h)=>R4(f,"name",{value:h,configurable:!0}),el=(f,h)=>{for(var w in h)R4(f,w,{get:h[w],enumerable:!0})},al=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of xl(h))if(!_l.call(f,$)&&$!==w)R4(f,$,{get:()=>h[$],enumerable:!(s=gl(h,$))||s.enumerable})}return f},pl=(f)=>al(R4({},"__esModule",{value:!0}),f),MG={};el(MG,{buildQueryString:()=>QG});KG.exports=pl(MG);var xT=z4();function QG(f){let h=[];for(let w of Object.keys(f).sort()){let s=f[w];if(w=xT.escapeUri(w),Array.isArray(s))for(let $=0,r=s.length;$<r;$++)h.push(`${w}=${xT.escapeUri(s[$])}`);else{let $=w;if(s||typeof s==="string")$+=`=${xT.escapeUri(s)}`;h.push($)}}return h.join("&")}nl(QG,"buildQueryString")});var X4=H((rE0,vG)=>{var{create:ol,defineProperty:Z$,getOwnPropertyDescriptor:ul,getOwnPropertyNames:tl,getPrototypeOf:fv}=Object,hv=Object.prototype.hasOwnProperty,K0=(f,h)=>Z$(f,"name",{value:h,configurable:!0}),wv=(f,h)=>{for(var w in h)Z$(f,w,{get:h[w],enumerable:!0})},HG=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of tl(h))if(!hv.call(f,$)&&$!==w)Z$(f,$,{get:()=>h[$],enumerable:!(s=ul(h,$))||s.enumerable})}return f},sv=(f,h,w)=>(w=f!=null?ol(fv(f)):{},HG(h||!f||!f.__esModule?Z$(w,"default",{value:f,enumerable:!0}):w,f)),$v=(f)=>HG(Z$({},"__esModule",{value:!0}),f),NG={};wv(NG,{DEFAULT_REQUEST_TIMEOUT:()=>OG,NodeHttp2Handler:()=>Gv,NodeHttpHandler:()=>Cv,streamCollector:()=>Av});vG.exports=$v(NG);var DG=t0(),qG=_T(),nT=B0("node:http"),eT=B0("node:https"),rv=["ECONNRESET","EPIPE","ETIMEDOUT"],kG=K0((f)=>{let h={};for(let w of Object.keys(f)){let s=f[w];h[w]=Array.isArray(s)?s.join(","):s}return h},"getTransformedHeaders"),R1={setTimeout:(f,h)=>setTimeout(f,h),clearTimeout:(f)=>clearTimeout(f)},ZG=1000,Ev=K0((f,h,w=0)=>{if(!w)return-1;let s=K0(($)=>{let r=R1.setTimeout(()=>{f.destroy(),h(Object.assign(new Error(`Socket timed out without establishing a connection within ${w} ms`),{name:"TimeoutError"}))},w-$),E=K0((T)=>{if(T?.connecting)T.on("connect",()=>{R1.clearTimeout(r)});else R1.clearTimeout(r)},"doWithSocket");if(f.socket)E(f.socket);else f.on("socket",E)},"registerTimeout");if(w<2000)return s(0),0;return R1.setTimeout(s.bind(null,ZG),ZG)},"setConnectionTimeout"),Tv=3000,Uv=K0((f,{keepAlive:h,keepAliveMsecs:w},s=Tv)=>{if(h!==!0)return-1;let $=K0(()=>{if(f.socket)f.socket.setKeepAlive(h,w||0);else f.on("socket",(r)=>{r.setKeepAlive(h,w||0)})},"registerListener");if(s===0)return $(),0;return R1.setTimeout($,s)},"setSocketKeepAlive"),JG=3000,Fv=K0((f,h,w=OG)=>{let s=K0(($)=>{let r=w-$,E=K0(()=>{f.destroy(),h(Object.assign(new Error(`Connection timed out after ${w} ms`),{name:"TimeoutError"}))},"onTimeout");if(f.socket)f.socket.setTimeout(r,E),f.on("close",()=>f.socket?.removeListener("timeout",E));else f.setTimeout(r,E)},"registerTimeout");if(0<w&&w<6000)return s(0),0;return R1.setTimeout(s.bind(null,w===0?0:JG),JG)},"setSocketTimeout"),yG=B0("node:stream"),VG=6000;async function aT(f,h,w=VG){let s=h.headers??{},$=s.Expect||s.expect,r=-1,E=!0;if($==="100-continue")E=await Promise.race([new Promise((T)=>{r=Number(R1.setTimeout(()=>T(!0),Math.max(VG,w)))}),new Promise((T)=>{f.on("continue",()=>{R1.clearTimeout(r),T(!0)}),f.on("response",()=>{R1.clearTimeout(r),T(!1)}),f.on("error",()=>{R1.clearTimeout(r),T(!1)})})]);if(E)jG(f,h.body)}K0(aT,"writeRequestBody");function jG(f,h){if(h instanceof yG.Readable){h.pipe(f);return}if(h){if(Buffer.isBuffer(h)||typeof h==="string"){f.end(h);return}let w=h;if(typeof w==="object"&&w.buffer&&typeof w.byteOffset==="number"&&typeof w.byteLength==="number"){f.end(Buffer.from(w.buffer,w.byteOffset,w.byteLength));return}f.end(Buffer.from(h));return}f.end()}K0(jG,"writeBody");var OG=0,Cv=class f{constructor(h){this.socketWarningTimestamp=0,this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((w,s)=>{if(typeof h==="function")h().then(($)=>{w(this.resolveDefaultConfig($))}).catch(s);else w(this.resolveDefaultConfig(h))})}static{K0(this,"NodeHttpHandler")}static create(h){if(typeof h?.handle==="function")return h;return new f(h)}static checkSocketUsage(h,w,s=console){let{sockets:$,requests:r,maxSockets:E}=h;if(typeof E!=="number"||E===1/0)return w;let T=15000;if(Date.now()-T<w)return w;if($&&r)for(let U in $){let F=$[U]?.length??0,C=r[U]?.length??0;if(F>=E&&C>=2*E)return s?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${F} and ${C} additional requests are enqueued.
|
|
9
9
|
See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
|
|
10
|
-
or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return w}resolveDefaultConfig(h){let{requestTimeout:w,connectionTimeout:s,socketTimeout:$,socketAcquisitionWarningTimeout:r,httpAgent:E,httpsAgent:T}=h||{},U=!0,F=50;return{connectionTimeout:s,requestTimeout:w??$,socketAcquisitionWarningTimeout:r,httpAgent:(()=>{if(E instanceof tT.Agent||typeof E?.destroy==="function")return E;return new tT.Agent({keepAlive:!0,maxSockets:50,...E})})(),httpsAgent:(()=>{if(T instanceof fU.Agent||typeof T?.destroy==="function")return T;return new fU.Agent({keepAlive:!0,maxSockets:50,...T})})(),logger:console}}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(h,{abortSignal:w}={}){if(!this.config)this.config=await this.configProvider;return new Promise((s,$)=>{let r=void 0,E=[],T=K0(async(y)=>{await r,E.forEach(zf.clearTimeout),s(y)},"resolve"),U=K0(async(y)=>{await r,E.forEach(zf.clearTimeout),$(y)},"reject");if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(w?.aborted){let y=new Error("Request aborted");y.name="AbortError",U(y);return}let F=h.protocol==="https:",C=F?this.config.httpsAgent:this.config.httpAgent;E.push(zf.setTimeout(()=>{this.socketWarningTimestamp=f.checkSocketUsage(C,this.socketWarningTimestamp,this.config.logger)},this.config.socketAcquisitionWarningTimeout??(this.config.requestTimeout??2000)+(this.config.connectionTimeout??1000)));let I=mG.buildQueryString(h.query||{}),B=void 0;if(h.username!=null||h.password!=null){let y=h.username??"",n=h.password??"";B=`${y}:${n}`}let G=h.path;if(I)G+=`?${I}`;if(h.fragment)G+=`#${h.fragment}`;let S=h.hostname??"";if(S[0]==="["&&S.endsWith("]"))S=h.hostname.slice(1,-1);else S=h.hostname;let Q={headers:h.headers,host:S,method:h.method,path:G,port:h.port,agent:C,auth:B},q=(F?fU.request:tT.request)(Q,(y)=>{let n=new bG.HttpResponse({statusCode:y.statusCode||-1,reason:y.statusMessage,headers:dG(y.headers),body:y});T({response:n})});if(q.on("error",(y)=>{if(Ib.includes(y.code))U(Object.assign(y,{name:"TimeoutError"}));else U(y)}),w){let y=K0(()=>{q.destroy();let n=new Error("Request aborted");n.name="AbortError",U(n)},"onAbort");if(typeof w.addEventListener==="function"){let n=w;n.addEventListener("abort",y,{once:!0}),q.once("close",()=>n.removeEventListener("abort",y))}else w.onabort=y}E.push(Lb(q,U,this.config.connectionTimeout)),E.push(Gb(q,U,this.config.requestTimeout));let N=Q.agent;if(typeof N==="object"&&"keepAlive"in N)E.push(Ab(q,{keepAlive:N.keepAlive,keepAliveMsecs:N.keepAliveMsecs}));r=hU(q,h,this.config.requestTimeout).catch((y)=>{return E.forEach(zf.clearTimeout),$(y)})})}updateHttpClientConfig(h,w){this.config=void 0,this.configProvider=this.configProvider.then((s)=>{return{...s,[h]:w}})}httpHandlerConfigs(){return this.config??{}}},OG=B0("node:http2"),zb=Fb(B0("node:http2")),Rb=class{constructor(f){this.sessions=[],this.sessions=f??[]}static{K0(this,"NodeHttp2ConnectionPool")}poll(){if(this.sessions.length>0)return this.sessions.shift()}offerLast(f){this.sessions.push(f)}contains(f){return this.sessions.includes(f)}remove(f){this.sessions=this.sessions.filter((h)=>h!==f)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}destroy(f){for(let h of this.sessions)if(h===f){if(!h.destroyed)h.destroy()}}},Sb=class{constructor(f){if(this.sessionCache=new Map,this.config=f,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrency must be greater than zero.")}static{K0(this,"NodeHttp2ConnectionManager")}lease(f,h){let w=this.getUrlString(f),s=this.sessionCache.get(w);if(s){let T=s.poll();if(T&&!this.config.disableConcurrency)return T}let $=zb.default.connect(w);if(this.config.maxConcurrency)$.settings({maxConcurrentStreams:this.config.maxConcurrency},(T)=>{if(T)throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+f.destination.toString())});$.unref();let r=K0(()=>{$.destroy(),this.deleteSession(w,$)},"destroySessionCb");if($.on("goaway",r),$.on("error",r),$.on("frameError",r),$.on("close",()=>this.deleteSession(w,$)),h.requestTimeout)$.setTimeout(h.requestTimeout,r);let E=this.sessionCache.get(w)||new Rb;return E.offerLast($),this.sessionCache.set(w,E),$}deleteSession(f,h){let w=this.sessionCache.get(f);if(!w)return;if(!w.contains(h))return;w.remove(h),this.sessionCache.set(f,w)}release(f,h){let w=this.getUrlString(f);this.sessionCache.get(w)?.offerLast(h)}destroy(){for(let[f,h]of this.sessionCache){for(let w of h){if(!w.destroyed)w.destroy();h.remove(w)}this.sessionCache.delete(f)}}setMaxConcurrentStreams(f){if(f&&f<=0)throw new RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=f}setDisableConcurrentStreams(f){this.config.disableConcurrency=f}getUrlString(f){return f.destination.toString()}},Xb=class f{constructor(h){this.metadata={handlerProtocol:"h2"},this.connectionManager=new Sb({}),this.configProvider=new Promise((w,s)=>{if(typeof h==="function")h().then(($)=>{w($||{})}).catch(s);else w(h||{})})}static{K0(this,"NodeHttp2Handler")}static create(h){if(typeof h?.handle==="function")return h;return new f(h)}destroy(){this.connectionManager.destroy()}async handle(h,{abortSignal:w}={}){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:s,disableConcurrentStreams:$}=this.config;return new Promise((r,E)=>{let T=!1,U=void 0,F=K0(async(S0)=>{await U,r(S0)},"resolve"),C=K0(async(S0)=>{await U,E(S0)},"reject");if(w?.aborted){T=!0;let S0=new Error("Request aborted");S0.name="AbortError",C(S0);return}let{hostname:I,method:B,port:G,protocol:S,query:Q}=h,M="";if(h.username!=null||h.password!=null){let S0=h.username??"",pf=h.password??"";M=`${S0}:${pf}@`}let q=`${S}//${M}${I}${G?`:${G}`:""}`,N={destination:new URL(q)},y=this.connectionManager.lease(N,{requestTimeout:this.config?.sessionTimeout,disableConcurrentStreams:$||!1}),n=K0((S0)=>{if($)this.destroySession(y);T=!0,C(S0)},"rejectWithDestroy"),L0=mG.buildQueryString(Q||{}),b0=h.path;if(L0)b0+=`?${L0}`;if(h.fragment)b0+=`#${h.fragment}`;let rf=y.request({...h.headers,[OG.constants.HTTP2_HEADER_PATH]:b0,[OG.constants.HTTP2_HEADER_METHOD]:B});if(y.ref(),rf.on("response",(S0)=>{let pf=new bG.HttpResponse({statusCode:S0[":status"]||-1,headers:dG(S0),body:rf});if(T=!0,F({response:pf}),$)y.close(),this.connectionManager.deleteSession(q,y)}),s)rf.setTimeout(s,()=>{rf.close();let S0=new Error(`Stream timed out because of no activity for ${s} ms`);S0.name="TimeoutError",n(S0)});if(w){let S0=K0(()=>{rf.close();let pf=new Error("Request aborted");pf.name="AbortError",n(pf)},"onAbort");if(typeof w.addEventListener==="function"){let pf=w;pf.addEventListener("abort",S0,{once:!0}),rf.once("close",()=>pf.removeEventListener("abort",S0))}else w.onabort=S0}rf.on("frameError",(S0,pf,yO)=>{n(new Error(`Frame type id ${S0} in stream id ${yO} has failed with code ${pf}.`))}),rf.on("error",n),rf.on("aborted",()=>{n(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${rf.rstCode}.`))}),rf.on("close",()=>{if(y.unref(),$)y.destroy();if(!T)n(new Error("Unexpected error: http2 request did not get a response"))}),U=hU(rf,h,s)})}updateHttpClientConfig(h,w){this.config=void 0,this.configProvider=this.configProvider.then((s)=>{return{...s,[h]:w}})}httpHandlerConfigs(){return this.config??{}}destroySession(h){if(!h.destroyed)h.destroy()}},Yb=class extends iG.Writable{constructor(){super(...arguments);this.bufferedBytes=[]}static{K0(this,"Collector")}_write(f,h,w){this.bufferedBytes.push(f),w()}},Mb=K0((f)=>{if(Qb(f))return xG(f);return new Promise((h,w)=>{let s=new Yb;f.pipe(s),f.on("error",($)=>{s.end(),w($)}),s.on("error",w),s.on("finish",function(){let $=new Uint8Array(Buffer.concat(this.bufferedBytes));h($)})})},"streamCollector"),Qb=K0((f)=>typeof ReadableStream==="function"&&f instanceof ReadableStream,"isReadableStreamInstance");async function xG(f){let h=[],w=f.getReader(),s=!1,$=0;while(!s){let{done:T,value:U}=await w.read();if(U)h.push(U),$+=U.length;s=T}let r=new Uint8Array($),E=0;for(let T of h)r.set(T,E),E+=T.length;return r}K0(xG,"collectReadableStream")});var fW=H((OT0,tG)=>{var{defineProperty:J4,getOwnPropertyDescriptor:Kb,getOwnPropertyNames:Zb}=Object,Jb=Object.prototype.hasOwnProperty,R1=(f,h)=>J4(f,"name",{value:h,configurable:!0}),Vb=(f,h)=>{for(var w in h)J4(f,w,{get:h[w],enumerable:!0})},Pb=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Zb(h))if(!Jb.call(f,$)&&$!==w)J4(f,$,{get:()=>h[$],enumerable:!(s=Kb(h,$))||s.enumerable})}return f},Hb=(f)=>Pb(J4({},"__esModule",{value:!0}),f),eG={};Vb(eG,{FetchHttpHandler:()=>Db,keepAliveSupport:()=>Z4,streamCollector:()=>kb});tG.exports=Hb(eG);var nG=t0(),Nb=uT();function wU(f,h){return new Request(f,h)}R1(wU,"createRequest");function aG(f=0){return new Promise((h,w)=>{if(f)setTimeout(()=>{let s=new Error(`Request did not complete within ${f} ms`);s.name="TimeoutError",w(s)},f)})}R1(aG,"requestTimeout");var Z4={supported:void 0},Db=class f{static{R1(this,"FetchHttpHandler")}static create(h){if(typeof h?.handle==="function")return h;return new f(h)}constructor(h){if(typeof h==="function")this.configProvider=h().then((w)=>w||{});else this.config=h??{},this.configProvider=Promise.resolve(this.config);if(Z4.supported===void 0)Z4.supported=Boolean(typeof Request!=="undefined"&&"keepalive"in wU("https://[::1]"))}destroy(){}async handle(h,{abortSignal:w}={}){if(!this.config)this.config=await this.configProvider;let s=this.config.requestTimeout,$=this.config.keepAlive===!0,r=this.config.credentials;if(w?.aborted){let q=new Error("Request aborted");return q.name="AbortError",Promise.reject(q)}let E=h.path,T=Nb.buildQueryString(h.query||{});if(T)E+=`?${T}`;if(h.fragment)E+=`#${h.fragment}`;let U="";if(h.username!=null||h.password!=null){let q=h.username??"",N=h.password??"";U=`${q}:${N}@`}let{port:F,method:C}=h,I=`${h.protocol}//${U}${h.hostname}${F?`:${F}`:""}${E}`,B=C==="GET"||C==="HEAD"?void 0:h.body,G={body:B,headers:new Headers(h.headers),method:C,credentials:r};if(this.config?.cache)G.cache=this.config.cache;if(B)G.duplex="half";if(typeof AbortController!=="undefined")G.signal=w;if(Z4.supported)G.keepalive=$;if(typeof this.config.requestInit==="function")Object.assign(G,this.config.requestInit(h));let S=R1(()=>{},"removeSignalEventListener"),Q=wU(I,G),M=[fetch(Q).then((q)=>{let N=q.headers,y={};for(let L0 of N.entries())y[L0[0]]=L0[1];if(q.body==null)return q.blob().then((L0)=>({response:new nG.HttpResponse({headers:y,reason:q.statusText,statusCode:q.status,body:L0})}));return{response:new nG.HttpResponse({headers:y,reason:q.statusText,statusCode:q.status,body:q.body})}}),aG(s)];if(w)M.push(new Promise((q,N)=>{let y=R1(()=>{let n=new Error("Request aborted");n.name="AbortError",N(n)},"onAbort");if(typeof w.addEventListener==="function"){let n=w;n.addEventListener("abort",y,{once:!0}),S=R1(()=>n.removeEventListener("abort",y),"removeSignalEventListener")}else w.onabort=y}));return Promise.race(M).finally(S)}updateHttpClientConfig(h,w){this.config=void 0,this.configProvider=this.configProvider.then((s)=>{return s[h]=w,s})}httpHandlerConfigs(){return this.config??{}}},qb=Ah(),kb=R1(async(f)=>{if(typeof Blob==="function"&&f instanceof Blob||f.constructor?.name==="Blob"){if(Blob.prototype.arrayBuffer!==void 0)return new Uint8Array(await f.arrayBuffer());return oG(f)}return pG(f)},"streamCollector");async function oG(f){let h=await uG(f),w=qb.fromBase64(h);return new Uint8Array(w)}R1(oG,"collectBlob");async function pG(f){let h=[],w=f.getReader(),s=!1,$=0;while(!s){let{done:T,value:U}=await w.read();if(U)h.push(U),$+=U.length;s=T}let r=new Uint8Array($),E=0;for(let T of h)r.set(T,E),E+=T.length;return r}R1(pG,"collectStream");function uG(f){return new Promise((h,w)=>{let s=new FileReader;s.onloadend=()=>{if(s.readyState!==2)return w(new Error("Reader aborted too early"));let $=s.result??"",r=$.indexOf(","),E=r>-1?r+1:$.length;h($.substring(E))},s.onabort=()=>w(new Error("Read aborted")),s.onerror=()=>w(s.error),s.readAsDataURL(f)})}R1(uG,"readToBase64")});var $U=H((lT0,EW)=>{var{defineProperty:V4,getOwnPropertyDescriptor:yb,getOwnPropertyNames:jb}=Object,Ob=Object.prototype.hasOwnProperty,hW=(f,h)=>V4(f,"name",{value:h,configurable:!0}),lb=(f,h)=>{for(var w in h)V4(f,w,{get:h[w],enumerable:!0})},vb=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of jb(h))if(!Ob.call(f,$)&&$!==w)V4(f,$,{get:()=>h[$],enumerable:!(s=yb(h,$))||s.enumerable})}return f},bb=(f)=>vb(V4({},"__esModule",{value:!0}),f),wW={};lb(wW,{fromHex:()=>$W,toHex:()=>rW});EW.exports=bb(wW);var sW={},sU={};for(let f=0;f<256;f++){let h=f.toString(16).toLowerCase();if(h.length===1)h=`0${h}`;sW[f]=h,sU[h]=f}function $W(f){if(f.length%2!==0)throw new Error("Hex encoded strings must have an even number length");let h=new Uint8Array(f.length/2);for(let w=0;w<f.length;w+=2){let s=f.slice(w,w+2).toLowerCase();if(s in sU)h[w/2]=sU[s];else throw new Error(`Cannot decode unrecognized sequence ${s} as hexadecimal`)}return h}hW($W,"fromHex");function rW(f){let h="";for(let w=0;w<f.byteLength;w++)h+=sW[f[w]];return h}hW(rW,"toHex")});var LW=H((CW)=>{Object.defineProperty(CW,"__esModule",{value:!0});CW.sdkStreamMixin=void 0;var mb=fW(),db=Ah(),ib=$U(),cb=uf(),TW=Gh(),UW="The stream has already been transformed.",gb=(f)=>{var h,w;if(!FW(f)&&!TW.isReadableStream(f)){let E=((w=(h=f===null||f===void 0?void 0:f.__proto__)===null||h===void 0?void 0:h.constructor)===null||w===void 0?void 0:w.name)||f;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${E}`)}let s=!1,$=async()=>{if(s)throw new Error(UW);return s=!0,await mb.streamCollector(f)},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.
|
|
11
|
-
If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return E.stream()};return Object.assign(f,{transformToByteArray:$,transformToString:async(E)=>{let T=await $();if(E==="base64")return
|
|
12
|
-
`));return w($)},"httpAuthSchemeMiddleware"),OW={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},Sm=j0((f,{httpAuthSchemeParametersProvider:h,identityProviderConfigProvider:w})=>({applyToStack:(s)=>{s.addRelativeTo(BU(f,{httpAuthSchemeParametersProvider:h,identityProviderConfigProvider:w}),OW)}}),"getHttpAuthSchemeEndpointRuleSetPlugin"),Xm=Ow(),lW={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:Xm.serializerMiddlewareOption.name},Ym=j0((f,{httpAuthSchemeParametersProvider:h,identityProviderConfigProvider:w})=>({applyToStack:(s)=>{s.addRelativeTo(BU(f,{httpAuthSchemeParametersProvider:h,identityProviderConfigProvider:w}),lW)}}),"getHttpAuthSchemePlugin"),AU=t0(),Mm=j0((f)=>(h)=>{throw h},"defaultErrorHandler"),Qm=j0((f,h)=>{},"defaultSuccessHandler"),vW=j0((f)=>(h,w)=>async(s)=>{if(!AU.HttpRequest.isInstance(s.request))return h(s);let r=yW.getSmithyContext(w).selectedHttpAuthScheme;if(!r)throw new Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:E={}},identity:T,signer:U}=r,F=await h({...s,request:await U.sign(s.request,T,E)}).catch((U.errorHandler||Mm)(E));return(U.successHandler||Qm)(F.response,E),F},"httpSigningMiddleware"),bW={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},Km=j0((f)=>({applyToStack:(h)=>{h.addRelativeTo(vW(f),bW)}}),"getHttpSigningPlugin"),Zm=j0((f)=>{if(typeof f==="function")return f;let h=Promise.resolve(f);return()=>h},"normalizeProvider"),Jm=j0(async(f,h,w,s=(r)=>r,...$)=>{let r=new f(w);return r=s(r)??r,await h.send(r,...$)},"makePagedClientRequest");function mW(f,h,w,s,$){return j0(async function*r(E,T,...U){let F=T,C=E.startingToken??F[w],I=!0,B;while(I){if(F[w]=C,$)F[$]=F[$]??E.pageSize;if(E.client instanceof f)B=await Jm(h,E.client,T,E.withCommand,...U);else throw new Error(`Invalid client, expected instance of ${f.name}`);yield B;let G=C;C=Vm(B,s),I=!!(C&&(!E.stopOnSameToken||C!==G))}return},"paginateOperation")}j0(mW,"createPaginator");var Vm=j0((f,h)=>{let w=f,s=h.split(".");for(let $ of s){if(!w||typeof w!=="object")return;w=w[$]}return w},"get"),Pm=bw();function dW(f,h,w){if(!f.__smithy_context)f.__smithy_context={features:{}};else if(!f.__smithy_context.features)f.__smithy_context.features={};f.__smithy_context.features[h]=w}j0(dW,"setFeature");var Hm=class{constructor(f){this.authSchemes=new Map;for(let[h,w]of Object.entries(f))if(w!==void 0)this.authSchemes.set(h,w)}static{j0(this,"DefaultIdentityProviderConfig")}getIdentityProvider(f){return this.authSchemes.get(f)}},Nm=class{static{j0(this,"HttpApiKeyAuthSigner")}async sign(f,h,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(!h.apiKey)throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined");let s=AU.HttpRequest.clone(f);if(w.in===H4.HttpApiKeyAuthLocation.QUERY)s.query[w.name]=h.apiKey;else if(w.in===H4.HttpApiKeyAuthLocation.HEADER)s.headers[w.name]=w.scheme?`${w.scheme} ${h.apiKey}`:h.apiKey;else throw new Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+w.in+"`");return s}},Dm=class{static{j0(this,"HttpBearerAuthSigner")}async sign(f,h,w){let s=AU.HttpRequest.clone(f);if(!h.token)throw new Error("request could not be signed with `token` since the `token` is not defined");return s.headers.Authorization=`Bearer ${h.token}`,s}},qm=class{static{j0(this,"NoAuthSigner")}async sign(f,h,w){return f}},iW=j0((f)=>(h)=>gW(h)&&h.expiration.getTime()-Date.now()<f,"createIsIdentityExpiredFunction"),cW=300000,km=iW(cW),gW=j0((f)=>f.expiration!==void 0,"doesIdentityRequireRefresh"),ym=j0((f,h,w)=>{if(f===void 0)return;let s=typeof f!=="function"?async()=>Promise.resolve(f):f,$,r,E,T=!1,U=j0(async(F)=>{if(!r)r=s(F);try{$=await r,E=!0,T=!1}finally{r=void 0}return $},"coalesceProvider");if(h===void 0)return async(F)=>{if(!E||F?.forceRefresh)$=await U(F);return $};return async(F)=>{if(!E||F?.forceRefresh)$=await U(F);if(T)return $;if(!w($))return T=!0,$;if(h($))return await U(F),$;return $}},"memoizeIdentityProvider")});function jm(f){if(f===void 0)return!0;return typeof f==="string"&&f.length<=50}function mw(f){let h=_W.normalizeProvider(f.userAgentAppId??GU),{customUserAgent:w}=f;return Object.assign(f,{customUserAgent:typeof w==="string"?[[w]]:w,userAgentAppId:async()=>{let s=await h();if(!jm(s)){let $=f.logger?.constructor?.name==="NoOpLogger"||!f.logger?console:f.logger;if(typeof s!=="string")$?.warn("userAgentAppId must be a string or undefined.");else if(s.length>50)$?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return s}})}var _W,GU=void 0;var nW=L(()=>{_W=u(m0(),1)});class eh{constructor({size:f,params:h}){if(this.data=new Map,this.parameters=[],this.capacity=f??50,h)this.parameters=h}get(f,h){let w=this.hash(f);if(w===!1)return h();if(!this.data.has(w)){if(this.data.size>this.capacity+10){let s=this.data.keys(),$=0;while(!0){let{value:r,done:E}=s.next();if(this.data.delete(r),E||++$>10)break}}this.data.set(w,h())}return this.data.get(w)}size(){return this.data.size}hash(f){let h="",{parameters:w}=this;if(w.length===0)return!1;for(let s of w){let $=String(f[s]??"");if($.includes("|;"))return!1;h+=$+"|;"}return h}}var Om,D$=(f)=>Om.test(f)||f.startsWith("[")&&f.endsWith("]");var WU=L(()=>{Om=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 lm,q$=(f,h=!1)=>{if(!h)return lm.test(f);let w=f.split(".");for(let s of w)if(!q$(s))return!1;return!0};var zU=L(()=>{lm=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$")});var tf;var D4=L(()=>{tf={}});var c1="endpoints";function Hf(f){if(typeof f!=="object"||f==null)return f;if("ref"in f)return`$${Hf(f.ref)}`;if("fn"in f)return`${f.fn}(${(f.argv||[]).map(Hf).join(", ")})`;return JSON.stringify(f,null,2)}var k$=()=>{};var H0;var eW=L(()=>{H0=class H0 extends Error{constructor(f){super(f);this.name="EndpointError"}}});var aW=()=>{};var oW=()=>{};var pW=()=>{};var uW=()=>{};var tW=()=>{};var fz=()=>{};var Nf=L(()=>{eW();aW();oW();pW();uW();tW();fz()});var hz=(f,h)=>f===h;var wz=(f)=>{let h=f.split("."),w=[];for(let s of h){let $=s.indexOf("[");if($!==-1){if(s.indexOf("]")!==s.length-1)throw new H0(`Path: '${f}' does not end with ']'`);let r=s.slice($+1,-1);if(Number.isNaN(parseInt(r)))throw new H0(`Invalid array index: '${r}' in path: '${f}'`);if($!==0)w.push(s.slice(0,$));w.push(r)}else w.push(s)}return w};var sz=L(()=>{Nf()});var q4=(f,h)=>wz(h).reduce((w,s)=>{if(typeof w!=="object")throw new H0(`Index '${s}' in '${h}' not found in '${JSON.stringify(f)}'`);else if(Array.isArray(w))return w[parseInt(s)];return w[s]},f);var $z=L(()=>{Nf();sz()});var rz=(f)=>f!=null;var Ez=(f)=>!f;var RU,Tz=(f)=>{let h=(()=>{try{if(f instanceof URL)return f;if(typeof f==="object"&&"hostname"in f){let{hostname:B,port:G,protocol:S="",path:Q="",query:M={}}=f,q=new URL(`${S}//${B}${G?`:${G}`:""}${Q}`);return q.search=Object.entries(M).map(([N,y])=>`${N}=${y}`).join("&"),q}return new URL(f)}catch(B){return null}})();if(!h)return console.error(`Unable to parse ${JSON.stringify(f)} as a whatwg URL.`),null;let w=h.href,{host:s,hostname:$,pathname:r,protocol:E,search:T}=h;if(T)return null;let U=E.slice(0,-1);if(!Object.values(Nw).includes(U))return null;let F=D$($),C=w.includes(`${s}:${RU[U]}`)||typeof f==="string"&&f.includes(`${s}:${RU[U]}`),I=`${s}${C?`:${RU[U]}`:""}`;return{scheme:U,authority:I,path:r,normalizedPath:r.endsWith("/")?r:`${r}/`,isIp:F}};var Uz=L(()=>{d1();WU();RU={[Nw.HTTP]:80,[Nw.HTTPS]:443}});var Fz=(f,h)=>f===h;var Cz=(f,h,w,s)=>{if(h>=w||f.length<w)return null;if(!s)return f.substring(h,w);return f.substring(f.length-w,f.length-h)};var Iz=(f)=>encodeURIComponent(f).replace(/[!*'()]/g,(h)=>`%${h.charCodeAt(0).toString(16).toUpperCase()}`);var SU=L(()=>{$z();zU();Uz()});var Lz;var Bz=L(()=>{SU();Lz={booleanEquals:hz,getAttr:q4,isSet:rz,isValidHostLabel:q$,not:Ez,parseURL:Tz,stringEquals:Fz,substring:Cz,uriEncode:Iz}});var k4=(f,h)=>{let w=[],s={...h.endpointParams,...h.referenceRecord},$=0;while($<f.length){let r=f.indexOf("{",$);if(r===-1){w.push(f.slice($));break}w.push(f.slice($,r));let E=f.indexOf("}",r);if(E===-1){w.push(f.slice(r));break}if(f[r+1]==="{"&&f[E+1]==="}")w.push(f.slice(r+1,E)),$=E+2;let T=f.substring(r+1,E);if(T.includes("#")){let[U,F]=T.split("#");w.push(q4(s[U],F))}else w.push(s[T]);$=E+1}return w.join("")};var XU=L(()=>{SU()});var Az=({ref:f},h)=>{return{...h.endpointParams,...h.referenceRecord}[f]};var zh=(f,h,w)=>{if(typeof f==="string")return k4(f,w);else if(f.fn)return y4(f,w);else if(f.ref)return Az(f,w);throw new H0(`'${h}': ${String(f)} is not a string, function or reference.`)};var y$=L(()=>{Nf();YU();XU()});var y4=({fn:f,argv:h},w)=>{let s=h.map((r)=>["boolean","number"].includes(typeof r)?r:zh(r,"arg",w)),$=f.split(".");if($[0]in tf&&$[1]!=null)return tf[$[0]][$[1]](...s);return Lz[f](...s)};var YU=L(()=>{D4();Bz();y$()});var Gz=({assign:f,...h},w)=>{if(f&&f in w.referenceRecord)throw new H0(`'${f}' is already defined in Reference Record.`);let s=y4(h,w);return w.logger?.debug?.(`${c1} evaluateCondition: ${Hf(h)} = ${Hf(s)}`),{result:s===""?!0:!!s,...f!=null&&{toAssign:{name:f,value:s}}}};var Wz=L(()=>{k$();Nf();YU()});var dw=(f=[],h)=>{let w={};for(let s of f){let{result:$,toAssign:r}=Gz(s,{...h,referenceRecord:{...h.referenceRecord,...w}});if(!$)return{result:$};if(r)w[r.name]=r.value,h.logger?.debug?.(`${c1} assign: ${r.name} := ${Hf(r.value)}`)}return{result:!0,referenceRecord:w}};var j4=L(()=>{k$();Wz()});var zz=(f,h)=>Object.entries(f).reduce((w,[s,$])=>({...w,[s]:$.map((r)=>{let E=zh(r,"Header value entry",h);if(typeof E!=="string")throw new H0(`Header '${s}' value '${E}' is not a string`);return E})}),{});var Rz=L(()=>{Nf();y$()});var MU=(f,h)=>{if(Array.isArray(f))return f.map((w)=>MU(w,h));switch(typeof f){case"string":return k4(f,h);case"object":if(f===null)throw new H0(`Unexpected endpoint property: ${f}`);return O4(f,h);case"boolean":return f;default:throw new H0(`Unexpected endpoint property type: ${typeof f}`)}};var Sz=L(()=>{Nf();XU();QU()});var O4=(f,h)=>Object.entries(f).reduce((w,[s,$])=>({...w,[s]:MU($,h)}),{});var QU=L(()=>{Sz()});var Xz=(f,h)=>{let w=zh(f,"Endpoint URL",h);if(typeof w==="string")try{return new URL(w)}catch(s){throw console.error(`Failed to construct URL with ${w}`,s),s}throw new H0(`Endpoint URL must be a string, got ${typeof w}`)};var Yz=L(()=>{Nf();y$()});var Mz=(f,h)=>{let{conditions:w,endpoint:s}=f,{result:$,referenceRecord:r}=dw(w,h);if(!$)return;let E={...h,referenceRecord:{...h.referenceRecord,...r}},{url:T,properties:U,headers:F}=s;return h.logger?.debug?.(`${c1} Resolving endpoint from template: ${Hf(s)}`),{...F!=null&&{headers:zz(F,E)},...U!=null&&{properties:O4(U,E)},url:Xz(T,E)}};var Qz=L(()=>{k$();j4();Rz();QU();Yz()});var Kz=(f,h)=>{let{conditions:w,error:s}=f,{result:$,referenceRecord:r}=dw(w,h);if(!$)return;throw new H0(zh(s,"Error",{...h,referenceRecord:{...h.referenceRecord,...r}}))};var Zz=L(()=>{Nf();j4();y$()});var Jz=(f,h)=>{let{conditions:w,rules:s}=f,{result:$,referenceRecord:r}=dw(w,h);if(!$)return;return l4(s,{...h,referenceRecord:{...h.referenceRecord,...r}})};var Vz=L(()=>{j4();KU()});var l4=(f,h)=>{for(let w of f)if(w.type==="endpoint"){let s=Mz(w,h);if(s)return s}else if(w.type==="error")Kz(w,h);else if(w.type==="tree"){let s=Jz(w,h);if(s)return s}else throw new H0(`Unknown endpoint rule: ${w}`);throw new H0("Rules evaluation failed")};var KU=L(()=>{Nf();Qz();Zz();Vz()});var Pz=L(()=>{D4();KU()});var ah=(f,h)=>{let{endpointParams:w,logger:s}=h,{parameters:$,rules:r}=f;h.logger?.debug?.(`${c1} Initial EndpointParams: ${Hf(w)}`);let E=Object.entries($).filter(([,F])=>F.default!=null).map(([F,C])=>[F,C.default]);if(E.length>0)for(let[F,C]of E)w[F]=w[F]??C;let T=Object.entries($).filter(([,F])=>F.required).map(([F])=>F);for(let F of T)if(w[F]==null)throw new H0(`Missing required parameter: '${F}'`);let U=l4(r,{endpointParams:w,logger:s,referenceRecord:{}});return h.logger?.debug?.(`${c1} Resolved endpoint: ${Hf(U)}`),U};var Hz=L(()=>{k$();Nf();Pz()});var g1=L(()=>{WU();zU();D4();Hz();Nf()});var ZU=L(()=>{g1()});var JU=(f,h=!1)=>{if(h){for(let w of f.split("."))if(!JU(w))return!1;return!0}if(!q$(f))return!1;if(f.length<3||f.length>63)return!1;if(f!==f.toLowerCase())return!1;if(D$(f))return!1;return!0};var Nz=L(()=>{g1();ZU()});var Dz=(f)=>{let h=f.split(":");if(h.length<6)return null;let[w,s,$,r,E,...T]=h;if(w!=="arn"||s===""||$===""||T.join(":")==="")return null;let U=T.map((F)=>F.split("/")).flat();return{partition:s,service:$,region:r,accountId:E,resourceId:U}};var kz;var qz=L(()=>{kz={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)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"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)"},"mx-central-1":{description:"Mexico (Central)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"AWS 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:{"aws-iso-f-global":{description:"AWS ISOF global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}}],version:"1.1"}});var bm,mm="",yz=(f)=>{let{partitions:h}=bm;for(let s of h){let{regions:$,outputs:r}=s;for(let[E,T]of Object.entries($))if(E===f)return{...r,...T}}for(let s of h){let{regionRegex:$,outputs:r}=s;if(new RegExp($).test(f))return{...r}}let w=h.find((s)=>s.id==="aws");if(!w)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...w.outputs}},jz=()=>mm;var VU=L(()=>{qz();bm=kz});var oh;var Oz=L(()=>{g1();Nz();VU();oh={isVirtualHostableS3Bucket:JU,parseArn:Dz,partition:yz};tf.aws=oh});var lz=L(()=>{g1()});var vz=L(()=>{g1()});var bz=()=>{};var mz=()=>{};var dz=()=>{};var iz=()=>{};var cz=()=>{};var gz=L(()=>{vz();bz();mz();dz();iz();cz()});var j$=L(()=>{Oz();VU();ZU();lz();gz()});var d4=H((V30,m4)=>{var xz,_z,nz,ez,az,oz,pz,uz,tz,f7,h7,w7,s7,v4,PU,$7,r7,E7,iw,T7,U7,F7,C7,I7,L7,B7,A7,G7,b4,W7,z7,R7;(function(f){var h=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd)define("tslib",["exports"],function(s){f(w(h,w(s)))});else if(typeof m4==="object"&&typeof V30==="object")f(w(h,w(V30)));else f(w(h));function w(s,$){if(s!==h)if(typeof Object.create==="function")Object.defineProperty(s,"__esModule",{value:!0});else s.__esModule=!0;return function(r,E){return s[r]=$?$(r,E):E}}})(function(f){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,E){r.__proto__=E}||function(r,E){for(var T in E)if(Object.prototype.hasOwnProperty.call(E,T))r[T]=E[T]};xz=function(r,E){if(typeof E!=="function"&&E!==null)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");h(r,E);function T(){this.constructor=r}r.prototype=E===null?Object.create(E):(T.prototype=E.prototype,new T)},_z=Object.assign||function(r){for(var E,T=1,U=arguments.length;T<U;T++){E=arguments[T];for(var F in E)if(Object.prototype.hasOwnProperty.call(E,F))r[F]=E[F]}return r},nz=function(r,E){var T={};for(var U in r)if(Object.prototype.hasOwnProperty.call(r,U)&&E.indexOf(U)<0)T[U]=r[U];if(r!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var F=0,U=Object.getOwnPropertySymbols(r);F<U.length;F++)if(E.indexOf(U[F])<0&&Object.prototype.propertyIsEnumerable.call(r,U[F]))T[U[F]]=r[U[F]]}return T},ez=function(r,E,T,U){var F=arguments.length,C=F<3?E:U===null?U=Object.getOwnPropertyDescriptor(E,T):U,I;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")C=Reflect.decorate(r,E,T,U);else for(var B=r.length-1;B>=0;B--)if(I=r[B])C=(F<3?I(C):F>3?I(E,T,C):I(E,T))||C;return F>3&&C&&Object.defineProperty(E,T,C),C},az=function(r,E){return function(T,U){E(T,U,r)}},oz=function(r,E,T,U,F,C){function I(b0){if(b0!==void 0&&typeof b0!=="function")throw new TypeError("Function expected");return b0}var B=U.kind,G=B==="getter"?"get":B==="setter"?"set":"value",S=!E&&r?U.static?r:r.prototype:null,Q=E||(S?Object.getOwnPropertyDescriptor(S,U.name):{}),M,q=!1;for(var N=T.length-1;N>=0;N--){var y={};for(var n in U)y[n]=n==="access"?{}:U[n];for(var n in U.access)y.access[n]=U.access[n];y.addInitializer=function(b0){if(q)throw new TypeError("Cannot add initializers after decoration has completed");C.push(I(b0||null))};var L0=T[N](B==="accessor"?{get:Q.get,set:Q.set}:Q[G],y);if(B==="accessor"){if(L0===void 0)continue;if(L0===null||typeof L0!=="object")throw new TypeError("Object expected");if(M=I(L0.get))Q.get=M;if(M=I(L0.set))Q.set=M;if(M=I(L0.init))F.unshift(M)}else if(M=I(L0))if(B==="field")F.unshift(M);else Q[G]=M}if(S)Object.defineProperty(S,U.name,Q);q=!0},pz=function(r,E,T){var U=arguments.length>2;for(var F=0;F<E.length;F++)T=U?E[F].call(r,T):E[F].call(r);return U?T:void 0},uz=function(r){return typeof r==="symbol"?r:"".concat(r)},tz=function(r,E,T){if(typeof E==="symbol")E=E.description?"[".concat(E.description,"]"):"";return Object.defineProperty(r,"name",{configurable:!0,value:T?"".concat(T," ",E):E})},f7=function(r,E){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(r,E)},h7=function(r,E,T,U){function F(C){return C instanceof T?C:new T(function(I){I(C)})}return new(T||(T=Promise))(function(C,I){function B(Q){try{S(U.next(Q))}catch(M){I(M)}}function G(Q){try{S(U.throw(Q))}catch(M){I(M)}}function S(Q){Q.done?C(Q.value):F(Q.value).then(B,G)}S((U=U.apply(r,E||[])).next())})},w7=function(r,E){var T={label:0,sent:function(){if(C[0]&1)throw C[1];return C[1]},trys:[],ops:[]},U,F,C,I=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return I.next=B(0),I.throw=B(1),I.return=B(2),typeof Symbol==="function"&&(I[Symbol.iterator]=function(){return this}),I;function B(S){return function(Q){return G([S,Q])}}function G(S){if(U)throw new TypeError("Generator is already executing.");while(I&&(I=0,S[0]&&(T=0)),T)try{if(U=1,F&&(C=S[0]&2?F.return:S[0]?F.throw||((C=F.return)&&C.call(F),0):F.next)&&!(C=C.call(F,S[1])).done)return C;if(F=0,C)S=[S[0]&2,C.value];switch(S[0]){case 0:case 1:C=S;break;case 4:return T.label++,{value:S[1],done:!1};case 5:T.label++,F=S[1],S=[0];continue;case 7:S=T.ops.pop(),T.trys.pop();continue;default:if((C=T.trys,!(C=C.length>0&&C[C.length-1]))&&(S[0]===6||S[0]===2)){T=0;continue}if(S[0]===3&&(!C||S[1]>C[0]&&S[1]<C[3])){T.label=S[1];break}if(S[0]===6&&T.label<C[1]){T.label=C[1],C=S;break}if(C&&T.label<C[2]){T.label=C[2],T.ops.push(S);break}if(C[2])T.ops.pop();T.trys.pop();continue}S=E.call(r,T)}catch(Q){S=[6,Q],F=0}finally{U=C=0}if(S[0]&5)throw S[1];return{value:S[0]?S[1]:void 0,done:!0}}},s7=function(r,E){for(var T in r)if(T!=="default"&&!Object.prototype.hasOwnProperty.call(E,T))b4(E,r,T)},b4=Object.create?function(r,E,T,U){if(U===void 0)U=T;var F=Object.getOwnPropertyDescriptor(E,T);if(!F||("get"in F?!E.__esModule:F.writable||F.configurable))F={enumerable:!0,get:function(){return E[T]}};Object.defineProperty(r,U,F)}:function(r,E,T,U){if(U===void 0)U=T;r[U]=E[T]},v4=function(r){var E=typeof Symbol==="function"&&Symbol.iterator,T=E&&r[E],U=0;if(T)return T.call(r);if(r&&typeof r.length==="number")return{next:function(){if(r&&U>=r.length)r=void 0;return{value:r&&r[U++],done:!r}}};throw new TypeError(E?"Object is not iterable.":"Symbol.iterator is not defined.")},PU=function(r,E){var T=typeof Symbol==="function"&&r[Symbol.iterator];if(!T)return r;var U=T.call(r),F,C=[],I;try{while((E===void 0||E-- >0)&&!(F=U.next()).done)C.push(F.value)}catch(B){I={error:B}}finally{try{if(F&&!F.done&&(T=U.return))T.call(U)}finally{if(I)throw I.error}}return C},$7=function(){for(var r=[],E=0;E<arguments.length;E++)r=r.concat(PU(arguments[E]));return r},r7=function(){for(var r=0,E=0,T=arguments.length;E<T;E++)r+=arguments[E].length;for(var U=Array(r),F=0,E=0;E<T;E++)for(var C=arguments[E],I=0,B=C.length;I<B;I++,F++)U[F]=C[I];return U},E7=function(r,E,T){if(T||arguments.length===2){for(var U=0,F=E.length,C;U<F;U++)if(C||!(U in E)){if(!C)C=Array.prototype.slice.call(E,0,U);C[U]=E[U]}}return r.concat(C||Array.prototype.slice.call(E))},iw=function(r){return this instanceof iw?(this.v=r,this):new iw(r)},T7=function(r,E,T){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var U=T.apply(r,E||[]),F,C=[];return F=Object.create((typeof AsyncIterator==="function"?AsyncIterator:Object).prototype),B("next"),B("throw"),B("return",I),F[Symbol.asyncIterator]=function(){return this},F;function I(N){return function(y){return Promise.resolve(y).then(N,M)}}function B(N,y){if(U[N]){if(F[N]=function(n){return new Promise(function(L0,b0){C.push([N,n,L0,b0])>1||G(N,n)})},y)F[N]=y(F[N])}}function G(N,y){try{S(U[N](y))}catch(n){q(C[0][3],n)}}function S(N){N.value instanceof iw?Promise.resolve(N.value.v).then(Q,M):q(C[0][2],N)}function Q(N){G("next",N)}function M(N){G("throw",N)}function q(N,y){if(N(y),C.shift(),C.length)G(C[0][0],C[0][1])}},U7=function(r){var E,T;return E={},U("next"),U("throw",function(F){throw F}),U("return"),E[Symbol.iterator]=function(){return this},E;function U(F,C){E[F]=r[F]?function(I){return(T=!T)?{value:iw(r[F](I)),done:!1}:C?C(I):I}:C}},F7=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var E=r[Symbol.asyncIterator],T;return E?E.call(r):(r=typeof v4==="function"?v4(r):r[Symbol.iterator](),T={},U("next"),U("throw"),U("return"),T[Symbol.asyncIterator]=function(){return this},T);function U(C){T[C]=r[C]&&function(I){return new Promise(function(B,G){I=r[C](I),F(B,G,I.done,I.value)})}}function F(C,I,B,G){Promise.resolve(G).then(function(S){C({value:S,done:B})},I)}},C7=function(r,E){if(Object.defineProperty)Object.defineProperty(r,"raw",{value:E});else r.raw=E;return r};var w=Object.create?function(r,E){Object.defineProperty(r,"default",{enumerable:!0,value:E})}:function(r,E){r.default=E},s=function(r){return s=Object.getOwnPropertyNames||function(E){var T=[];for(var U in E)if(Object.prototype.hasOwnProperty.call(E,U))T[T.length]=U;return T},s(r)};I7=function(r){if(r&&r.__esModule)return r;var E={};if(r!=null){for(var T=s(r),U=0;U<T.length;U++)if(T[U]!=="default")b4(E,r,T[U])}return w(E,r),E},L7=function(r){return r&&r.__esModule?r:{default:r}},B7=function(r,E,T,U){if(T==="a"&&!U)throw new TypeError("Private accessor was defined without a getter");if(typeof E==="function"?r!==E||!U:!E.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return T==="m"?U:T==="a"?U.call(r):U?U.value:E.get(r)},A7=function(r,E,T,U,F){if(U==="m")throw new TypeError("Private method is not writable");if(U==="a"&&!F)throw new TypeError("Private accessor was defined without a setter");if(typeof E==="function"?r!==E||!F:!E.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return U==="a"?F.call(r,T):F?F.value=T:E.set(r,T),T},G7=function(r,E){if(E===null||typeof E!=="object"&&typeof E!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof r==="function"?E===r:r.has(E)},W7=function(r,E,T){if(E!==null&&E!==void 0){if(typeof E!=="object"&&typeof E!=="function")throw new TypeError("Object expected.");var U,F;if(T){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");U=E[Symbol.asyncDispose]}if(U===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");if(U=E[Symbol.dispose],T)F=U}if(typeof U!=="function")throw new TypeError("Object not disposable.");if(F)U=function(){try{F.call(this)}catch(C){return Promise.reject(C)}};r.stack.push({value:E,dispose:U,async:T})}else if(T)r.stack.push({async:!0});return E};var $=typeof SuppressedError==="function"?SuppressedError:function(r,E,T){var U=new Error(T);return U.name="SuppressedError",U.error=r,U.suppressed=E,U};z7=function(r){function E(C){r.error=r.hasError?new $(C,r.error,"An error was suppressed during disposal."):C,r.hasError=!0}var T,U=0;function F(){while(T=r.stack.pop())try{if(!T.async&&U===1)return U=0,r.stack.push(T),Promise.resolve().then(F);if(T.dispose){var C=T.dispose.call(T.value);if(T.async)return U|=2,Promise.resolve(C).then(F,function(I){return E(I),F()})}else U|=1}catch(I){E(I)}if(U===1)return r.hasError?Promise.reject(r.error):Promise.resolve();if(r.hasError)throw r.error}return F()},R7=function(r,E){if(typeof r==="string"&&/^\.\.?\//.test(r))return r.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(T,U,F,C,I){return U?E?".jsx":".js":F&&(!C||!I)?T:F+C+"."+I.toLowerCase()+"js"});return r},f("__extends",xz),f("__assign",_z),f("__rest",nz),f("__decorate",ez),f("__param",az),f("__esDecorate",oz),f("__runInitializers",pz),f("__propKey",uz),f("__setFunctionName",tz),f("__metadata",f7),f("__awaiter",h7),f("__generator",w7),f("__exportStar",s7),f("__createBinding",b4),f("__values",v4),f("__read",PU),f("__spread",$7),f("__spreadArrays",r7),f("__spreadArray",E7),f("__await",iw),f("__asyncGenerator",T7),f("__asyncDelegator",U7),f("__asyncValues",F7),f("__makeTemplateObject",C7),f("__importStar",I7),f("__importDefault",L7),f("__classPrivateFieldGet",B7),f("__classPrivateFieldSet",A7),f("__classPrivateFieldIn",G7),f("__addDisposableResource",W7),f("__disposeResources",z7),f("__rewriteRelativeImportExtension",R7)})});var Cf=H((P30,M7)=>{var{defineProperty:i4,getOwnPropertyDescriptor:dm,getOwnPropertyNames:im}=Object,cm=Object.prototype.hasOwnProperty,NU=(f,h)=>i4(f,"name",{value:h,configurable:!0}),gm=(f,h)=>{for(var w in h)i4(f,w,{get:h[w],enumerable:!0})},xm=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of im(h))if(!cm.call(f,$)&&$!==w)i4(f,$,{get:()=>h[$],enumerable:!(s=dm(h,$))||s.enumerable})}return f},_m=(f)=>xm(i4({},"__esModule",{value:!0}),f),S7={};gm(S7,{emitWarningIfUnsupportedVersion:()=>nm,setCredentialFeature:()=>X7,setFeature:()=>Y7,state:()=>HU});M7.exports=_m(S7);var HU={warningEmitted:!1},nm=NU((f)=>{if(f&&!HU.warningEmitted&&parseInt(f.substring(1,f.indexOf(".")))<18)HU.warningEmitted=!0,process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
|
|
10
|
+
or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return w}resolveDefaultConfig(h){let{requestTimeout:w,connectionTimeout:s,socketTimeout:$,socketAcquisitionWarningTimeout:r,httpAgent:E,httpsAgent:T}=h||{},U=!0,F=50;return{connectionTimeout:s,requestTimeout:w??$,socketAcquisitionWarningTimeout:r,httpAgent:(()=>{if(E instanceof nT.Agent||typeof E?.destroy==="function")return E;return new nT.Agent({keepAlive:!0,maxSockets:50,...E})})(),httpsAgent:(()=>{if(T instanceof eT.Agent||typeof T?.destroy==="function")return T;return new eT.Agent({keepAlive:!0,maxSockets:50,...T})})(),logger:console}}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(h,{abortSignal:w}={}){if(!this.config)this.config=await this.configProvider;return new Promise((s,$)=>{let r=void 0,E=[],T=K0(async(y)=>{await r,E.forEach(R1.clearTimeout),s(y)},"resolve"),U=K0(async(y)=>{await r,E.forEach(R1.clearTimeout),$(y)},"reject");if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(w?.aborted){let y=new Error("Request aborted");y.name="AbortError",U(y);return}let F=h.protocol==="https:",C=F?this.config.httpsAgent:this.config.httpAgent;E.push(R1.setTimeout(()=>{this.socketWarningTimestamp=f.checkSocketUsage(C,this.socketWarningTimestamp,this.config.logger)},this.config.socketAcquisitionWarningTimeout??(this.config.requestTimeout??2000)+(this.config.connectionTimeout??1000)));let I=qG.buildQueryString(h.query||{}),L=void 0;if(h.username!=null||h.password!=null){let y=h.username??"",n=h.password??"";L=`${y}:${n}`}let W=h.path;if(I)W+=`?${I}`;if(h.fragment)W+=`#${h.fragment}`;let X=h.hostname??"";if(X[0]==="["&&X.endsWith("]"))X=h.hostname.slice(1,-1);else X=h.hostname;let Q={headers:h.headers,host:X,method:h.method,path:W,port:h.port,agent:C,auth:L},q=(F?eT.request:nT.request)(Q,(y)=>{let n=new DG.HttpResponse({statusCode:y.statusCode||-1,reason:y.statusMessage,headers:kG(y.headers),body:y});T({response:n})});if(q.on("error",(y)=>{if(rv.includes(y.code))U(Object.assign(y,{name:"TimeoutError"}));else U(y)}),w){let y=K0(()=>{q.destroy();let n=new Error("Request aborted");n.name="AbortError",U(n)},"onAbort");if(typeof w.addEventListener==="function"){let n=w;n.addEventListener("abort",y,{once:!0}),q.once("close",()=>n.removeEventListener("abort",y))}else w.onabort=y}E.push(Ev(q,U,this.config.connectionTimeout)),E.push(Fv(q,U,this.config.requestTimeout));let N=Q.agent;if(typeof N==="object"&&"keepAlive"in N)E.push(Uv(q,{keepAlive:N.keepAlive,keepAliveMsecs:N.keepAliveMsecs}));r=aT(q,h,this.config.requestTimeout).catch((y)=>{return E.forEach(R1.clearTimeout),$(y)})})}updateHttpClientConfig(h,w){this.config=void 0,this.configProvider=this.configProvider.then((s)=>{return{...s,[h]:w}})}httpHandlerConfigs(){return this.config??{}}},PG=B0("node:http2"),Iv=sv(B0("node:http2")),Lv=class{constructor(f){this.sessions=[],this.sessions=f??[]}static{K0(this,"NodeHttp2ConnectionPool")}poll(){if(this.sessions.length>0)return this.sessions.shift()}offerLast(f){this.sessions.push(f)}contains(f){return this.sessions.includes(f)}remove(f){this.sessions=this.sessions.filter((h)=>h!==f)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}destroy(f){for(let h of this.sessions)if(h===f){if(!h.destroyed)h.destroy()}}},Bv=class{constructor(f){if(this.sessionCache=new Map,this.config=f,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrency must be greater than zero.")}static{K0(this,"NodeHttp2ConnectionManager")}lease(f,h){let w=this.getUrlString(f),s=this.sessionCache.get(w);if(s){let T=s.poll();if(T&&!this.config.disableConcurrency)return T}let $=Iv.default.connect(w);if(this.config.maxConcurrency)$.settings({maxConcurrentStreams:this.config.maxConcurrency},(T)=>{if(T)throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+f.destination.toString())});$.unref();let r=K0(()=>{$.destroy(),this.deleteSession(w,$)},"destroySessionCb");if($.on("goaway",r),$.on("error",r),$.on("frameError",r),$.on("close",()=>this.deleteSession(w,$)),h.requestTimeout)$.setTimeout(h.requestTimeout,r);let E=this.sessionCache.get(w)||new Lv;return E.offerLast($),this.sessionCache.set(w,E),$}deleteSession(f,h){let w=this.sessionCache.get(f);if(!w)return;if(!w.contains(h))return;w.remove(h),this.sessionCache.set(f,w)}release(f,h){let w=this.getUrlString(f);this.sessionCache.get(w)?.offerLast(h)}destroy(){for(let[f,h]of this.sessionCache){for(let w of h){if(!w.destroyed)w.destroy();h.remove(w)}this.sessionCache.delete(f)}}setMaxConcurrentStreams(f){if(f&&f<=0)throw new RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=f}setDisableConcurrentStreams(f){this.config.disableConcurrency=f}getUrlString(f){return f.destination.toString()}},Gv=class f{constructor(h){this.metadata={handlerProtocol:"h2"},this.connectionManager=new Bv({}),this.configProvider=new Promise((w,s)=>{if(typeof h==="function")h().then(($)=>{w($||{})}).catch(s);else w(h||{})})}static{K0(this,"NodeHttp2Handler")}static create(h){if(typeof h?.handle==="function")return h;return new f(h)}destroy(){this.connectionManager.destroy()}async handle(h,{abortSignal:w}={}){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:s,disableConcurrentStreams:$}=this.config;return new Promise((r,E)=>{let T=!1,U=void 0,F=K0(async(X0)=>{await U,r(X0)},"resolve"),C=K0(async(X0)=>{await U,E(X0)},"reject");if(w?.aborted){T=!0;let X0=new Error("Request aborted");X0.name="AbortError",C(X0);return}let{hostname:I,method:L,port:W,protocol:X,query:Q}=h,M="";if(h.username!=null||h.password!=null){let X0=h.username??"",o1=h.password??"";M=`${X0}:${o1}@`}let q=`${X}//${M}${I}${W?`:${W}`:""}`,N={destination:new URL(q)},y=this.connectionManager.lease(N,{requestTimeout:this.config?.sessionTimeout,disableConcurrentStreams:$||!1}),n=K0((X0)=>{if($)this.destroySession(y);T=!0,C(X0)},"rejectWithDestroy"),L0=qG.buildQueryString(Q||{}),b0=h.path;if(L0)b0+=`?${L0}`;if(h.fragment)b0+=`#${h.fragment}`;let r1=y.request({...h.headers,[PG.constants.HTTP2_HEADER_PATH]:b0,[PG.constants.HTTP2_HEADER_METHOD]:L});if(y.ref(),r1.on("response",(X0)=>{let o1=new DG.HttpResponse({statusCode:X0[":status"]||-1,headers:kG(X0),body:r1});if(T=!0,F({response:o1}),$)y.close(),this.connectionManager.deleteSession(q,y)}),s)r1.setTimeout(s,()=>{r1.close();let X0=new Error(`Stream timed out because of no activity for ${s} ms`);X0.name="TimeoutError",n(X0)});if(w){let X0=K0(()=>{r1.close();let o1=new Error("Request aborted");o1.name="AbortError",n(o1)},"onAbort");if(typeof w.addEventListener==="function"){let o1=w;o1.addEventListener("abort",X0,{once:!0}),r1.once("close",()=>o1.removeEventListener("abort",X0))}else w.onabort=X0}r1.on("frameError",(X0,o1,Vj)=>{n(new Error(`Frame type id ${X0} in stream id ${Vj} has failed with code ${o1}.`))}),r1.on("error",n),r1.on("aborted",()=>{n(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${r1.rstCode}.`))}),r1.on("close",()=>{if(y.unref(),$)y.destroy();if(!T)n(new Error("Unexpected error: http2 request did not get a response"))}),U=aT(r1,h,s)})}updateHttpClientConfig(h,w){this.config=void 0,this.configProvider=this.configProvider.then((s)=>{return{...s,[h]:w}})}httpHandlerConfigs(){return this.config??{}}destroySession(h){if(!h.destroyed)h.destroy()}},Wv=class extends yG.Writable{constructor(){super(...arguments);this.bufferedBytes=[]}static{K0(this,"Collector")}_write(f,h,w){this.bufferedBytes.push(f),w()}},Av=K0((f)=>{if(zv(f))return lG(f);return new Promise((h,w)=>{let s=new Wv;f.pipe(s),f.on("error",($)=>{s.end(),w($)}),s.on("error",w),s.on("finish",function(){let $=new Uint8Array(Buffer.concat(this.bufferedBytes));h($)})})},"streamCollector"),zv=K0((f)=>typeof ReadableStream==="function"&&f instanceof ReadableStream,"isReadableStreamInstance");async function lG(f){let h=[],w=f.getReader(),s=!1,$=0;while(!s){let{done:T,value:U}=await w.read();if(U)h.push(U),$+=U.length;s=T}let r=new Uint8Array($),E=0;for(let T of h)r.set(T,E),E+=T.length;return r}K0(lG,"collectReadableStream")});var _G=H((FE0,xG)=>{var{defineProperty:Y4,getOwnPropertyDescriptor:Rv,getOwnPropertyNames:Xv}=Object,Sv=Object.prototype.hasOwnProperty,Rf=(f,h)=>Y4(f,"name",{value:h,configurable:!0}),Yv=(f,h)=>{for(var w in h)Y4(f,w,{get:h[w],enumerable:!0})},Mv=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Xv(h))if(!Sv.call(f,$)&&$!==w)Y4(f,$,{get:()=>h[$],enumerable:!(s=Rv(h,$))||s.enumerable})}return f},Qv=(f)=>Mv(Y4({},"__esModule",{value:!0}),f),mG={};Yv(mG,{FetchHttpHandler:()=>Zv,keepAliveSupport:()=>S4,streamCollector:()=>Vv});xG.exports=Qv(mG);var bG=t0(),Kv=_T();function pT(f,h){return new Request(f,h)}Rf(pT,"createRequest");function dG(f=0){return new Promise((h,w)=>{if(f)setTimeout(()=>{let s=new Error(`Request did not complete within ${f} ms`);s.name="TimeoutError",w(s)},f)})}Rf(dG,"requestTimeout");var S4={supported:void 0},Zv=class f{static{Rf(this,"FetchHttpHandler")}static create(h){if(typeof h?.handle==="function")return h;return new f(h)}constructor(h){if(typeof h==="function")this.configProvider=h().then((w)=>w||{});else this.config=h??{},this.configProvider=Promise.resolve(this.config);if(S4.supported===void 0)S4.supported=Boolean(typeof Request!=="undefined"&&"keepalive"in pT("https://[::1]"))}destroy(){}async handle(h,{abortSignal:w}={}){if(!this.config)this.config=await this.configProvider;let s=this.config.requestTimeout,$=this.config.keepAlive===!0,r=this.config.credentials;if(w?.aborted){let q=new Error("Request aborted");return q.name="AbortError",Promise.reject(q)}let E=h.path,T=Kv.buildQueryString(h.query||{});if(T)E+=`?${T}`;if(h.fragment)E+=`#${h.fragment}`;let U="";if(h.username!=null||h.password!=null){let q=h.username??"",N=h.password??"";U=`${q}:${N}@`}let{port:F,method:C}=h,I=`${h.protocol}//${U}${h.hostname}${F?`:${F}`:""}${E}`,L=C==="GET"||C==="HEAD"?void 0:h.body,W={body:L,headers:new Headers(h.headers),method:C,credentials:r};if(this.config?.cache)W.cache=this.config.cache;if(L)W.duplex="half";if(typeof AbortController!=="undefined")W.signal=w;if(S4.supported)W.keepalive=$;if(typeof this.config.requestInit==="function")Object.assign(W,this.config.requestInit(h));let X=Rf(()=>{},"removeSignalEventListener"),Q=pT(I,W),M=[fetch(Q).then((q)=>{let N=q.headers,y={};for(let L0 of N.entries())y[L0[0]]=L0[1];if(q.body==null)return q.blob().then((L0)=>({response:new bG.HttpResponse({headers:y,reason:q.statusText,statusCode:q.status,body:L0})}));return{response:new bG.HttpResponse({headers:y,reason:q.statusText,statusCode:q.status,body:q.body})}}),dG(s)];if(w)M.push(new Promise((q,N)=>{let y=Rf(()=>{let n=new Error("Request aborted");n.name="AbortError",N(n)},"onAbort");if(typeof w.addEventListener==="function"){let n=w;n.addEventListener("abort",y,{once:!0}),X=Rf(()=>n.removeEventListener("abort",y),"removeSignalEventListener")}else w.onabort=y}));return Promise.race(M).finally(X)}updateHttpClientConfig(h,w){this.config=void 0,this.configProvider=this.configProvider.then((s)=>{return s[h]=w,s})}httpHandlerConfigs(){return this.config??{}}},Jv=Bh(),Vv=Rf(async(f)=>{if(typeof Blob==="function"&&f instanceof Blob||f.constructor?.name==="Blob"){if(Blob.prototype.arrayBuffer!==void 0)return new Uint8Array(await f.arrayBuffer());return iG(f)}return cG(f)},"streamCollector");async function iG(f){let h=await gG(f),w=Jv.fromBase64(h);return new Uint8Array(w)}Rf(iG,"collectBlob");async function cG(f){let h=[],w=f.getReader(),s=!1,$=0;while(!s){let{done:T,value:U}=await w.read();if(U)h.push(U),$+=U.length;s=T}let r=new Uint8Array($),E=0;for(let T of h)r.set(T,E),E+=T.length;return r}Rf(cG,"collectStream");function gG(f){return new Promise((h,w)=>{let s=new FileReader;s.onloadend=()=>{if(s.readyState!==2)return w(new Error("Reader aborted too early"));let $=s.result??"",r=$.indexOf(","),E=r>-1?r+1:$.length;h($.substring(E))},s.onabort=()=>w(new Error("Read aborted")),s.onerror=()=>w(s.error),s.readAsDataURL(f)})}Rf(gG,"readToBase64")});var uT=H((CE0,uG)=>{var{defineProperty:M4,getOwnPropertyDescriptor:Pv,getOwnPropertyNames:Hv}=Object,Nv=Object.prototype.hasOwnProperty,nG=(f,h)=>M4(f,"name",{value:h,configurable:!0}),Dv=(f,h)=>{for(var w in h)M4(f,w,{get:h[w],enumerable:!0})},qv=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Hv(h))if(!Nv.call(f,$)&&$!==w)M4(f,$,{get:()=>h[$],enumerable:!(s=Pv(h,$))||s.enumerable})}return f},kv=(f)=>qv(M4({},"__esModule",{value:!0}),f),eG={};Dv(eG,{fromHex:()=>pG,toHex:()=>oG});uG.exports=kv(eG);var aG={},oT={};for(let f=0;f<256;f++){let h=f.toString(16).toLowerCase();if(h.length===1)h=`0${h}`;aG[f]=h,oT[h]=f}function pG(f){if(f.length%2!==0)throw new Error("Hex encoded strings must have an even number length");let h=new Uint8Array(f.length/2);for(let w=0;w<f.length;w+=2){let s=f.slice(w,w+2).toLowerCase();if(s in oT)h[w/2]=oT[s];else throw new Error(`Cannot decode unrecognized sequence ${s} as hexadecimal`)}return h}nG(pG,"fromHex");function oG(f){let h="";for(let w=0;w<f.byteLength;w++)h+=aG[f[w]];return h}nG(oG,"toHex")});var $W=H((wW)=>{Object.defineProperty(wW,"__esModule",{value:!0});wW.sdkStreamMixin=void 0;var yv=_G(),jv=Bh(),Ov=uT(),lv=u1(),tG=Gh(),fW="The stream has already been transformed.",vv=(f)=>{var h,w;if(!hW(f)&&!tG.isReadableStream(f)){let E=((w=(h=f===null||f===void 0?void 0:f.__proto__)===null||h===void 0?void 0:h.constructor)===null||w===void 0?void 0:w.name)||f;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${E}`)}let s=!1,$=async()=>{if(s)throw new Error(fW);return s=!0,await yv.streamCollector(f)},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.
|
|
11
|
+
If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return E.stream()};return Object.assign(f,{transformToByteArray:$,transformToString:async(E)=>{let T=await $();if(E==="base64")return jv.toBase64(T);else if(E==="hex")return Ov.toHex(T);else if(E===void 0||E==="utf8"||E==="utf-8")return lv.toUtf8(T);else if(typeof TextDecoder==="function")return new TextDecoder(E).decode(T);else throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(s)throw new Error(fW);if(s=!0,hW(f))return r(f);else if(tG.isReadableStream(f))return f;else throw new Error(`Cannot transform payload to web stream, got ${f}`)}})};wW.sdkStreamMixin=vv;var hW=(f)=>typeof Blob==="function"&&f instanceof Blob});var UW=H((EW)=>{Object.defineProperty(EW,"__esModule",{value:!0});EW.sdkStreamMixin=void 0;var bv=X4(),mv=kw(),tT=B0("node:stream"),dv=$W(),rW="The stream has already been transformed.",iv=(f)=>{var h,w;if(!(f instanceof tT.Readable))try{return dv.sdkStreamMixin(f)}catch(r){let E=((w=(h=f===null||f===void 0?void 0:f.__proto__)===null||h===void 0?void 0:h.constructor)===null||w===void 0?void 0:w.name)||f;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${E}`)}let s=!1,$=async()=>{if(s)throw new Error(rW);return s=!0,await bv.streamCollector(f)};return Object.assign(f,{transformToByteArray:$,transformToString:async(r)=>{let E=await $();if(r===void 0||Buffer.isEncoding(r))return mv.fromArrayBuffer(E.buffer,E.byteOffset,E.byteLength).toString(r);else return new TextDecoder(r).decode(E)},transformToWebStream:()=>{if(s)throw new Error(rW);if(f.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof tT.Readable.toWeb!=="function")throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");return s=!0,tT.Readable.toWeb(f)}})};EW.sdkStreamMixin=iv});var IW=H((FW)=>{Object.defineProperty(FW,"__esModule",{value:!0});FW.splitStream=void 0;async function cv(f){if(typeof f.stream==="function")f=f.stream();return f.tee()}FW.splitStream=cv});var AW=H((GW)=>{Object.defineProperty(GW,"__esModule",{value:!0});GW.splitStream=void 0;var LW=B0("node:stream"),gv=IW(),BW=Gh();async function xv(f){if(BW.isReadableStream(f)||BW.isBlob(f))return gv.splitStream(f);let h=new LW.PassThrough,w=new LW.PassThrough;return f.pipe(h),f.pipe(w),[h,w]}GW.splitStream=xv});var sU=H((WE0,Sf)=>{var{defineProperty:Q4,getOwnPropertyDescriptor:_v,getOwnPropertyNames:nv}=Object,ev=Object.prototype.hasOwnProperty,wU=(f,h)=>Q4(f,"name",{value:h,configurable:!0}),av=(f,h)=>{for(var w in h)Q4(f,w,{get:h[w],enumerable:!0})},fU=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of nv(h))if(!ev.call(f,$)&&$!==w)Q4(f,$,{get:()=>h[$],enumerable:!(s=_v(h,$))||s.enumerable})}return f},Wh=(f,h,w)=>(fU(f,h,"default"),w&&fU(w,h,"default")),pv=(f)=>fU(Q4({},"__esModule",{value:!0}),f),Xf={};av(Xf,{Uint8ArrayBlobAdapter:()=>hU});Sf.exports=pv(Xf);var zW=Bh(),RW=u1();function XW(f,h="utf-8"){if(h==="base64")return zW.toBase64(f);return RW.toUtf8(f)}wU(XW,"transformToString");function SW(f,h){if(h==="base64")return hU.mutate(zW.fromBase64(f));return hU.mutate(RW.fromUtf8(f))}wU(SW,"transformFromString");var hU=class f extends Uint8Array{static{wU(this,"Uint8ArrayBlobAdapter")}static fromString(h,w="utf-8"){switch(typeof h){case"string":return SW(h,w);default:throw new Error(`Unsupported conversion from ${typeof h} to Uint8ArrayBlobAdapter.`)}}static mutate(h){return Object.setPrototypeOf(h,f.prototype),h}transformToString(h="utf-8"){return XW(this,h)}};Wh(Xf,iT(),Sf.exports);Wh(Xf,aB(),Sf.exports);Wh(Xf,UG(),Sf.exports);Wh(Xf,IG(),Sf.exports);Wh(Xf,RG(),Sf.exports);Wh(Xf,UW(),Sf.exports);Wh(Xf,AW(),Sf.exports);Wh(Xf,Gh(),Sf.exports)});var jw=H((AE0,KW)=>{var{defineProperty:EU,getOwnPropertyDescriptor:ov,getOwnPropertyNames:uv}=Object,tv=Object.prototype.hasOwnProperty,fb=(f,h)=>{for(var w in h)EU(f,w,{get:h[w],enumerable:!0})},hb=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of uv(h))if(!tv.call(f,$)&&$!==w)EU(f,$,{get:()=>h[$],enumerable:!(s=ov(h,$))||s.enumerable})}return f},wb=(f)=>hb(EU({},"__esModule",{value:!0}),f),YW={};fb(YW,{RequestBuilder:()=>QW,collectBody:()=>sb,extendedEncodeURIComponent:()=>rU,requestBuilder:()=>rb,resolvedPath:()=>MW});KW.exports=wb(YW);var $U=sU(),sb=async(f=new Uint8Array,h)=>{if(f instanceof Uint8Array)return $U.Uint8ArrayBlobAdapter.mutate(f);if(!f)return $U.Uint8ArrayBlobAdapter.mutate(new Uint8Array);let w=h.streamCollector(f);return $U.Uint8ArrayBlobAdapter.mutate(await w)};function rU(f){return encodeURIComponent(f).replace(/[!'()*]/g,function(h){return"%"+h.charCodeAt(0).toString(16).toUpperCase()})}var $b=t0(),MW=(f,h,w,s,$,r)=>{if(h!=null&&h[w]!==void 0){let E=s();if(E.length<=0)throw new Error("Empty value provided for input HTTP label: "+w+".");f=f.replace($,r?E.split("/").map((T)=>rU(T)).join("/"):rU(E))}else throw new Error("No value provided for input HTTP label: "+w+".");return f};function rb(f,h){return new QW(f,h)}var QW=class{constructor(f,h){this.input=f,this.context=h,this.query={},this.method="",this.headers={},this.path="",this.body=null,this.hostname="",this.resolvePathStack=[]}async build(){let{hostname:f,protocol:h="https",port:w,path:s}=await this.context.endpoint();this.path=s;for(let $ of this.resolvePathStack)$(this.path);return new $b.HttpRequest({protocol:h,hostname:this.hostname||f,port:w,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(f){return this.hostname=f,this}bp(f){return this.resolvePathStack.push((h)=>{this.path=`${h?.endsWith("/")?h.slice(0,-1):h||""}`+f}),this}p(f,h,w,s){return this.resolvePathStack.push(($)=>{this.path=MW($,this.input,f,h,w,s)}),this}h(f){return this.headers=f,this}q(f){return this.query=f,this}b(f){return this.body=f,this}m(f){return this.method=f,this}}});var m0=H((RE0,lW)=>{var{defineProperty:Z4,getOwnPropertyDescriptor:Eb,getOwnPropertyNames:Tb}=Object,Ub=Object.prototype.hasOwnProperty,j0=(f,h)=>Z4(f,"name",{value:h,configurable:!0}),Fb=(f,h)=>{for(var w in h)Z4(f,w,{get:h[w],enumerable:!0})},Cb=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Tb(h))if(!Ub.call(f,$)&&$!==w)Z4(f,$,{get:()=>h[$],enumerable:!(s=Eb(h,$))||s.enumerable})}return f},Ib=(f)=>Cb(Z4({},"__esModule",{value:!0}),f),ZW={};Fb(ZW,{DefaultIdentityProviderConfig:()=>Qb,EXPIRATION_MS:()=>jW,HttpApiKeyAuthSigner:()=>Kb,HttpBearerAuthSigner:()=>Zb,NoAuthSigner:()=>Jb,createIsIdentityExpiredFunction:()=>yW,createPaginator:()=>qW,doesIdentityRequireRefresh:()=>OW,getHttpAuthSchemeEndpointRuleSetPlugin:()=>Bb,getHttpAuthSchemePlugin:()=>Wb,getHttpSigningPlugin:()=>Rb,getSmithyContext:()=>Lb,httpAuthSchemeEndpointRuleSetMiddlewareOptions:()=>PW,httpAuthSchemeMiddleware:()=>TU,httpAuthSchemeMiddlewareOptions:()=>HW,httpSigningMiddleware:()=>NW,httpSigningMiddlewareOptions:()=>DW,isIdentityExpired:()=>Vb,memoizeIdentityProvider:()=>Pb,normalizeProvider:()=>Xb,requestBuilder:()=>Mb.requestBuilder,setFeature:()=>kW});lW.exports=Ib(ZW);var K4=F1(),Lb=j0((f)=>f[K4.SMITHY_CONTEXT_KEY]||(f[K4.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),JW=Ih();function VW(f){let h=new Map;for(let w of f)h.set(w.schemeId,w);return h}j0(VW,"convertHttpAuthSchemesToMap");var TU=j0((f,h)=>(w,s)=>async($)=>{let r=f.httpAuthSchemeProvider(await h.httpAuthSchemeParametersProvider(f,s,$.input)),E=VW(f.httpAuthSchemes),T=JW.getSmithyContext(s),U=[];for(let F of r){let C=E.get(F.schemeId);if(!C){U.push(`HttpAuthScheme \`${F.schemeId}\` was not enabled for this service.`);continue}let I=C.identityProvider(await h.identityProviderConfigProvider(f));if(!I){U.push(`HttpAuthScheme \`${F.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:L={},signingProperties:W={}}=F.propertiesExtractor?.(f,s)||{};F.identityProperties=Object.assign(F.identityProperties||{},L),F.signingProperties=Object.assign(F.signingProperties||{},W),T.selectedHttpAuthScheme={httpAuthOption:F,identity:await I(F.identityProperties),signer:C.signer};break}if(!T.selectedHttpAuthScheme)throw new Error(U.join(`
|
|
12
|
+
`));return w($)},"httpAuthSchemeMiddleware"),PW={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},Bb=j0((f,{httpAuthSchemeParametersProvider:h,identityProviderConfigProvider:w})=>({applyToStack:(s)=>{s.addRelativeTo(TU(f,{httpAuthSchemeParametersProvider:h,identityProviderConfigProvider:w}),PW)}}),"getHttpAuthSchemeEndpointRuleSetPlugin"),Gb=qw(),HW={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:Gb.serializerMiddlewareOption.name},Wb=j0((f,{httpAuthSchemeParametersProvider:h,identityProviderConfigProvider:w})=>({applyToStack:(s)=>{s.addRelativeTo(TU(f,{httpAuthSchemeParametersProvider:h,identityProviderConfigProvider:w}),HW)}}),"getHttpAuthSchemePlugin"),UU=t0(),Ab=j0((f)=>(h)=>{throw h},"defaultErrorHandler"),zb=j0((f,h)=>{},"defaultSuccessHandler"),NW=j0((f)=>(h,w)=>async(s)=>{if(!UU.HttpRequest.isInstance(s.request))return h(s);let r=JW.getSmithyContext(w).selectedHttpAuthScheme;if(!r)throw new Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:E={}},identity:T,signer:U}=r,F=await h({...s,request:await U.sign(s.request,T,E)}).catch((U.errorHandler||Ab)(E));return(U.successHandler||zb)(F.response,E),F},"httpSigningMiddleware"),DW={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},Rb=j0((f)=>({applyToStack:(h)=>{h.addRelativeTo(NW(f),DW)}}),"getHttpSigningPlugin"),Xb=j0((f)=>{if(typeof f==="function")return f;let h=Promise.resolve(f);return()=>h},"normalizeProvider"),Sb=j0(async(f,h,w,s=(r)=>r,...$)=>{let r=new f(w);return r=s(r)??r,await h.send(r,...$)},"makePagedClientRequest");function qW(f,h,w,s,$){return j0(async function*r(E,T,...U){let F=T,C=E.startingToken??F[w],I=!0,L;while(I){if(F[w]=C,$)F[$]=F[$]??E.pageSize;if(E.client instanceof f)L=await Sb(h,E.client,T,E.withCommand,...U);else throw new Error(`Invalid client, expected instance of ${f.name}`);yield L;let W=C;C=Yb(L,s),I=!!(C&&(!E.stopOnSameToken||C!==W))}return},"paginateOperation")}j0(qW,"createPaginator");var Yb=j0((f,h)=>{let w=f,s=h.split(".");for(let $ of s){if(!w||typeof w!=="object")return;w=w[$]}return w},"get"),Mb=jw();function kW(f,h,w){if(!f.__smithy_context)f.__smithy_context={features:{}};else if(!f.__smithy_context.features)f.__smithy_context.features={};f.__smithy_context.features[h]=w}j0(kW,"setFeature");var Qb=class{constructor(f){this.authSchemes=new Map;for(let[h,w]of Object.entries(f))if(w!==void 0)this.authSchemes.set(h,w)}static{j0(this,"DefaultIdentityProviderConfig")}getIdentityProvider(f){return this.authSchemes.get(f)}},Kb=class{static{j0(this,"HttpApiKeyAuthSigner")}async sign(f,h,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(!h.apiKey)throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined");let s=UU.HttpRequest.clone(f);if(w.in===K4.HttpApiKeyAuthLocation.QUERY)s.query[w.name]=h.apiKey;else if(w.in===K4.HttpApiKeyAuthLocation.HEADER)s.headers[w.name]=w.scheme?`${w.scheme} ${h.apiKey}`:h.apiKey;else throw new Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+w.in+"`");return s}},Zb=class{static{j0(this,"HttpBearerAuthSigner")}async sign(f,h,w){let s=UU.HttpRequest.clone(f);if(!h.token)throw new Error("request could not be signed with `token` since the `token` is not defined");return s.headers.Authorization=`Bearer ${h.token}`,s}},Jb=class{static{j0(this,"NoAuthSigner")}async sign(f,h,w){return f}},yW=j0((f)=>(h)=>OW(h)&&h.expiration.getTime()-Date.now()<f,"createIsIdentityExpiredFunction"),jW=300000,Vb=yW(jW),OW=j0((f)=>f.expiration!==void 0,"doesIdentityRequireRefresh"),Pb=j0((f,h,w)=>{if(f===void 0)return;let s=typeof f!=="function"?async()=>Promise.resolve(f):f,$,r,E,T=!1,U=j0(async(F)=>{if(!r)r=s(F);try{$=await r,E=!0,T=!1}finally{r=void 0}return $},"coalesceProvider");if(h===void 0)return async(F)=>{if(!E||F?.forceRefresh)$=await U(F);return $};return async(F)=>{if(!E||F?.forceRefresh)$=await U(F);if(T)return $;if(!w($))return T=!0,$;if(h($))return await U(F),$;return $}},"memoizeIdentityProvider")});function Hb(f){if(f===void 0)return!0;return typeof f==="string"&&f.length<=50}function Ow(f){let h=vW.normalizeProvider(f.userAgentAppId??FU),{customUserAgent:w}=f;return Object.assign(f,{customUserAgent:typeof w==="string"?[[w]]:w,userAgentAppId:async()=>{let s=await h();if(!Hb(s)){let $=f.logger?.constructor?.name==="NoOpLogger"||!f.logger?console:f.logger;if(typeof s!=="string")$?.warn("userAgentAppId must be a string or undefined.");else if(s.length>50)$?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return s}})}var vW,FU=void 0;var bW=B(()=>{vW=o(m0(),1)});class _h{constructor({size:f,params:h}){if(this.data=new Map,this.parameters=[],this.capacity=f??50,h)this.parameters=h}get(f,h){let w=this.hash(f);if(w===!1)return h();if(!this.data.has(w)){if(this.data.size>this.capacity+10){let s=this.data.keys(),$=0;while(!0){let{value:r,done:E}=s.next();if(this.data.delete(r),E||++$>10)break}}this.data.set(w,h())}return this.data.get(w)}size(){return this.data.size}hash(f){let h="",{parameters:w}=this;if(w.length===0)return!1;for(let s of w){let $=String(f[s]??"");if($.includes("|;"))return!1;h+=$+"|;"}return h}}var Nb,J$=(f)=>Nb.test(f)||f.startsWith("[")&&f.endsWith("]");var CU=B(()=>{Nb=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 Db,V$=(f,h=!1)=>{if(!h)return Db.test(f);let w=f.split(".");for(let s of w)if(!V$(s))return!1;return!0};var IU=B(()=>{Db=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$")});var t1;var J4=B(()=>{t1={}});var df="endpoints";function N1(f){if(typeof f!=="object"||f==null)return f;if("ref"in f)return`$${N1(f.ref)}`;if("fn"in f)return`${f.fn}(${(f.argv||[]).map(N1).join(", ")})`;return JSON.stringify(f,null,2)}var P$=()=>{};var H0;var mW=B(()=>{H0=class H0 extends Error{constructor(f){super(f);this.name="EndpointError"}}});var dW=()=>{};var iW=()=>{};var cW=()=>{};var gW=()=>{};var xW=()=>{};var _W=()=>{};var D1=B(()=>{mW();dW();iW();cW();gW();xW();_W()});var nW=(f,h)=>f===h;var eW=(f)=>{let h=f.split("."),w=[];for(let s of h){let $=s.indexOf("[");if($!==-1){if(s.indexOf("]")!==s.length-1)throw new H0(`Path: '${f}' does not end with ']'`);let r=s.slice($+1,-1);if(Number.isNaN(parseInt(r)))throw new H0(`Invalid array index: '${r}' in path: '${f}'`);if($!==0)w.push(s.slice(0,$));w.push(r)}else w.push(s)}return w};var aW=B(()=>{D1()});var V4=(f,h)=>eW(h).reduce((w,s)=>{if(typeof w!=="object")throw new H0(`Index '${s}' in '${h}' not found in '${JSON.stringify(f)}'`);else if(Array.isArray(w))return w[parseInt(s)];return w[s]},f);var pW=B(()=>{D1();aW()});var oW=(f)=>f!=null;var uW=(f)=>!f;var P4,LU,tW=(f)=>{let h=(()=>{try{if(f instanceof URL)return f;if(typeof f==="object"&&"hostname"in f){let{hostname:L,port:W,protocol:X="",path:Q="",query:M={}}=f,q=new URL(`${X}//${L}${W?`:${W}`:""}${Q}`);return q.search=Object.entries(M).map(([N,y])=>`${N}=${y}`).join("&"),q}return new URL(f)}catch(L){return null}})();if(!h)return console.error(`Unable to parse ${JSON.stringify(f)} as a whatwg URL.`),null;let w=h.href,{host:s,hostname:$,pathname:r,protocol:E,search:T}=h;if(T)return null;let U=E.slice(0,-1);if(!Object.values(P4.EndpointURLScheme).includes(U))return null;let F=J$($),C=w.includes(`${s}:${LU[U]}`)||typeof f==="string"&&f.includes(`${s}:${LU[U]}`),I=`${s}${C?`:${LU[U]}`:""}`;return{scheme:U,authority:I,path:r,normalizedPath:r.endsWith("/")?r:`${r}/`,isIp:F}};var fA=B(()=>{P4=o(F1(),1);CU();LU={[P4.EndpointURLScheme.HTTP]:80,[P4.EndpointURLScheme.HTTPS]:443}});var hA=(f,h)=>f===h;var wA=(f,h,w,s)=>{if(h>=w||f.length<w)return null;if(!s)return f.substring(h,w);return f.substring(f.length-w,f.length-h)};var sA=(f)=>encodeURIComponent(f).replace(/[!*'()]/g,(h)=>`%${h.charCodeAt(0).toString(16).toUpperCase()}`);var BU=B(()=>{pW();IU();fA()});var $A;var rA=B(()=>{BU();$A={booleanEquals:nW,getAttr:V4,isSet:oW,isValidHostLabel:V$,not:uW,parseURL:tW,stringEquals:hA,substring:wA,uriEncode:sA}});var H4=(f,h)=>{let w=[],s={...h.endpointParams,...h.referenceRecord},$=0;while($<f.length){let r=f.indexOf("{",$);if(r===-1){w.push(f.slice($));break}w.push(f.slice($,r));let E=f.indexOf("}",r);if(E===-1){w.push(f.slice(r));break}if(f[r+1]==="{"&&f[E+1]==="}")w.push(f.slice(r+1,E)),$=E+2;let T=f.substring(r+1,E);if(T.includes("#")){let[U,F]=T.split("#");w.push(V4(s[U],F))}else w.push(s[T]);$=E+1}return w.join("")};var GU=B(()=>{BU()});var EA=({ref:f},h)=>{return{...h.endpointParams,...h.referenceRecord}[f]};var Ah=(f,h,w)=>{if(typeof f==="string")return H4(f,w);else if(f.fn)return N4(f,w);else if(f.ref)return EA(f,w);throw new H0(`'${h}': ${String(f)} is not a string, function or reference.`)};var H$=B(()=>{D1();WU();GU()});var N4=({fn:f,argv:h},w)=>{let s=h.map((r)=>["boolean","number"].includes(typeof r)?r:Ah(r,"arg",w)),$=f.split(".");if($[0]in t1&&$[1]!=null)return t1[$[0]][$[1]](...s);return $A[f](...s)};var WU=B(()=>{J4();rA();H$()});var TA=({assign:f,...h},w)=>{if(f&&f in w.referenceRecord)throw new H0(`'${f}' is already defined in Reference Record.`);let s=N4(h,w);return w.logger?.debug?.(`${df} evaluateCondition: ${N1(h)} = ${N1(s)}`),{result:s===""?!0:!!s,...f!=null&&{toAssign:{name:f,value:s}}}};var UA=B(()=>{P$();D1();WU()});var lw=(f=[],h)=>{let w={};for(let s of f){let{result:$,toAssign:r}=TA(s,{...h,referenceRecord:{...h.referenceRecord,...w}});if(!$)return{result:$};if(r)w[r.name]=r.value,h.logger?.debug?.(`${df} assign: ${r.name} := ${N1(r.value)}`)}return{result:!0,referenceRecord:w}};var D4=B(()=>{P$();UA()});var FA=(f,h)=>Object.entries(f).reduce((w,[s,$])=>({...w,[s]:$.map((r)=>{let E=Ah(r,"Header value entry",h);if(typeof E!=="string")throw new H0(`Header '${s}' value '${E}' is not a string`);return E})}),{});var CA=B(()=>{D1();H$()});var AU=(f,h)=>{if(Array.isArray(f))return f.map((w)=>AU(w,h));switch(typeof f){case"string":return H4(f,h);case"object":if(f===null)throw new H0(`Unexpected endpoint property: ${f}`);return q4(f,h);case"boolean":return f;default:throw new H0(`Unexpected endpoint property type: ${typeof f}`)}};var IA=B(()=>{D1();GU();zU()});var q4=(f,h)=>Object.entries(f).reduce((w,[s,$])=>({...w,[s]:AU($,h)}),{});var zU=B(()=>{IA()});var LA=(f,h)=>{let w=Ah(f,"Endpoint URL",h);if(typeof w==="string")try{return new URL(w)}catch(s){throw console.error(`Failed to construct URL with ${w}`,s),s}throw new H0(`Endpoint URL must be a string, got ${typeof w}`)};var BA=B(()=>{D1();H$()});var GA=(f,h)=>{let{conditions:w,endpoint:s}=f,{result:$,referenceRecord:r}=lw(w,h);if(!$)return;let E={...h,referenceRecord:{...h.referenceRecord,...r}},{url:T,properties:U,headers:F}=s;return h.logger?.debug?.(`${df} Resolving endpoint from template: ${N1(s)}`),{...F!=null&&{headers:FA(F,E)},...U!=null&&{properties:q4(U,E)},url:LA(T,E)}};var WA=B(()=>{P$();D4();CA();zU();BA()});var AA=(f,h)=>{let{conditions:w,error:s}=f,{result:$,referenceRecord:r}=lw(w,h);if(!$)return;throw new H0(Ah(s,"Error",{...h,referenceRecord:{...h.referenceRecord,...r}}))};var zA=B(()=>{D1();D4();H$()});var RA=(f,h)=>{let{conditions:w,rules:s}=f,{result:$,referenceRecord:r}=lw(w,h);if(!$)return;return k4(s,{...h,referenceRecord:{...h.referenceRecord,...r}})};var XA=B(()=>{D4();RU()});var k4=(f,h)=>{for(let w of f)if(w.type==="endpoint"){let s=GA(w,h);if(s)return s}else if(w.type==="error")AA(w,h);else if(w.type==="tree"){let s=RA(w,h);if(s)return s}else throw new H0(`Unknown endpoint rule: ${w}`);throw new H0("Rules evaluation failed")};var RU=B(()=>{D1();WA();zA();XA()});var SA=B(()=>{J4();RU()});var nh=(f,h)=>{let{endpointParams:w,logger:s}=h,{parameters:$,rules:r}=f;h.logger?.debug?.(`${df} Initial EndpointParams: ${N1(w)}`);let E=Object.entries($).filter(([,F])=>F.default!=null).map(([F,C])=>[F,C.default]);if(E.length>0)for(let[F,C]of E)w[F]=w[F]??C;let T=Object.entries($).filter(([,F])=>F.required).map(([F])=>F);for(let F of T)if(w[F]==null)throw new H0(`Missing required parameter: '${F}'`);let U=k4(r,{endpointParams:w,logger:s,referenceRecord:{}});return h.logger?.debug?.(`${df} Resolved endpoint: ${N1(U)}`),U};var YA=B(()=>{P$();D1();SA()});var cf=B(()=>{CU();IU();J4();YA();D1()});var XU=B(()=>{cf()});var SU=(f,h=!1)=>{if(h){for(let w of f.split("."))if(!SU(w))return!1;return!0}if(!V$(f))return!1;if(f.length<3||f.length>63)return!1;if(f!==f.toLowerCase())return!1;if(J$(f))return!1;return!0};var MA=B(()=>{cf();XU()});var QA=(f)=>{let h=f.split(":");if(h.length<6)return null;let[w,s,$,r,E,...T]=h;if(w!=="arn"||s===""||$===""||T.join(":")==="")return null;let U=T.map((F)=>F.split("/")).flat();return{partition:s,service:$,region:r,accountId:E,resourceId:U}};var ZA;var KA=B(()=>{ZA={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)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"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)"},"mx-central-1":{description:"Mexico (Central)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"AWS 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:{"aws-iso-f-global":{description:"AWS ISOF global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}}],version:"1.1"}});var kb,yb="",JA=(f)=>{let{partitions:h}=kb;for(let s of h){let{regions:$,outputs:r}=s;for(let[E,T]of Object.entries($))if(E===f)return{...r,...T}}for(let s of h){let{regionRegex:$,outputs:r}=s;if(new RegExp($).test(f))return{...r}}let w=h.find((s)=>s.id==="aws");if(!w)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...w.outputs}},VA=()=>yb;var YU=B(()=>{KA();kb=ZA});var eh;var PA=B(()=>{cf();MA();YU();eh={isVirtualHostableS3Bucket:SU,parseArn:QA,partition:JA};t1.aws=eh});var HA=B(()=>{cf()});var NA=B(()=>{cf()});var DA=()=>{};var qA=()=>{};var kA=()=>{};var yA=()=>{};var jA=()=>{};var OA=B(()=>{NA();DA();qA();kA();yA();jA()});var N$=B(()=>{PA();YU();XU();HA();OA()});var l4=H((tT0,O4)=>{var lA,vA,bA,mA,dA,iA,cA,gA,xA,_A,nA,eA,aA,y4,MU,pA,oA,uA,vw,tA,fz,hz,wz,sz,$z,rz,Ez,Tz,j4,Uz,Fz,Cz;(function(f){var h=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd)define("tslib",["exports"],function(s){f(w(h,w(s)))});else if(typeof O4==="object"&&typeof tT0==="object")f(w(h,w(tT0)));else f(w(h));function w(s,$){if(s!==h)if(typeof Object.create==="function")Object.defineProperty(s,"__esModule",{value:!0});else s.__esModule=!0;return function(r,E){return s[r]=$?$(r,E):E}}})(function(f){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,E){r.__proto__=E}||function(r,E){for(var T in E)if(Object.prototype.hasOwnProperty.call(E,T))r[T]=E[T]};lA=function(r,E){if(typeof E!=="function"&&E!==null)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");h(r,E);function T(){this.constructor=r}r.prototype=E===null?Object.create(E):(T.prototype=E.prototype,new T)},vA=Object.assign||function(r){for(var E,T=1,U=arguments.length;T<U;T++){E=arguments[T];for(var F in E)if(Object.prototype.hasOwnProperty.call(E,F))r[F]=E[F]}return r},bA=function(r,E){var T={};for(var U in r)if(Object.prototype.hasOwnProperty.call(r,U)&&E.indexOf(U)<0)T[U]=r[U];if(r!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var F=0,U=Object.getOwnPropertySymbols(r);F<U.length;F++)if(E.indexOf(U[F])<0&&Object.prototype.propertyIsEnumerable.call(r,U[F]))T[U[F]]=r[U[F]]}return T},mA=function(r,E,T,U){var F=arguments.length,C=F<3?E:U===null?U=Object.getOwnPropertyDescriptor(E,T):U,I;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")C=Reflect.decorate(r,E,T,U);else for(var L=r.length-1;L>=0;L--)if(I=r[L])C=(F<3?I(C):F>3?I(E,T,C):I(E,T))||C;return F>3&&C&&Object.defineProperty(E,T,C),C},dA=function(r,E){return function(T,U){E(T,U,r)}},iA=function(r,E,T,U,F,C){function I(b0){if(b0!==void 0&&typeof b0!=="function")throw new TypeError("Function expected");return b0}var L=U.kind,W=L==="getter"?"get":L==="setter"?"set":"value",X=!E&&r?U.static?r:r.prototype:null,Q=E||(X?Object.getOwnPropertyDescriptor(X,U.name):{}),M,q=!1;for(var N=T.length-1;N>=0;N--){var y={};for(var n in U)y[n]=n==="access"?{}:U[n];for(var n in U.access)y.access[n]=U.access[n];y.addInitializer=function(b0){if(q)throw new TypeError("Cannot add initializers after decoration has completed");C.push(I(b0||null))};var L0=T[N](L==="accessor"?{get:Q.get,set:Q.set}:Q[W],y);if(L==="accessor"){if(L0===void 0)continue;if(L0===null||typeof L0!=="object")throw new TypeError("Object expected");if(M=I(L0.get))Q.get=M;if(M=I(L0.set))Q.set=M;if(M=I(L0.init))F.unshift(M)}else if(M=I(L0))if(L==="field")F.unshift(M);else Q[W]=M}if(X)Object.defineProperty(X,U.name,Q);q=!0},cA=function(r,E,T){var U=arguments.length>2;for(var F=0;F<E.length;F++)T=U?E[F].call(r,T):E[F].call(r);return U?T:void 0},gA=function(r){return typeof r==="symbol"?r:"".concat(r)},xA=function(r,E,T){if(typeof E==="symbol")E=E.description?"[".concat(E.description,"]"):"";return Object.defineProperty(r,"name",{configurable:!0,value:T?"".concat(T," ",E):E})},_A=function(r,E){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(r,E)},nA=function(r,E,T,U){function F(C){return C instanceof T?C:new T(function(I){I(C)})}return new(T||(T=Promise))(function(C,I){function L(Q){try{X(U.next(Q))}catch(M){I(M)}}function W(Q){try{X(U.throw(Q))}catch(M){I(M)}}function X(Q){Q.done?C(Q.value):F(Q.value).then(L,W)}X((U=U.apply(r,E||[])).next())})},eA=function(r,E){var T={label:0,sent:function(){if(C[0]&1)throw C[1];return C[1]},trys:[],ops:[]},U,F,C,I=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return I.next=L(0),I.throw=L(1),I.return=L(2),typeof Symbol==="function"&&(I[Symbol.iterator]=function(){return this}),I;function L(X){return function(Q){return W([X,Q])}}function W(X){if(U)throw new TypeError("Generator is already executing.");while(I&&(I=0,X[0]&&(T=0)),T)try{if(U=1,F&&(C=X[0]&2?F.return:X[0]?F.throw||((C=F.return)&&C.call(F),0):F.next)&&!(C=C.call(F,X[1])).done)return C;if(F=0,C)X=[X[0]&2,C.value];switch(X[0]){case 0:case 1:C=X;break;case 4:return T.label++,{value:X[1],done:!1};case 5:T.label++,F=X[1],X=[0];continue;case 7:X=T.ops.pop(),T.trys.pop();continue;default:if((C=T.trys,!(C=C.length>0&&C[C.length-1]))&&(X[0]===6||X[0]===2)){T=0;continue}if(X[0]===3&&(!C||X[1]>C[0]&&X[1]<C[3])){T.label=X[1];break}if(X[0]===6&&T.label<C[1]){T.label=C[1],C=X;break}if(C&&T.label<C[2]){T.label=C[2],T.ops.push(X);break}if(C[2])T.ops.pop();T.trys.pop();continue}X=E.call(r,T)}catch(Q){X=[6,Q],F=0}finally{U=C=0}if(X[0]&5)throw X[1];return{value:X[0]?X[1]:void 0,done:!0}}},aA=function(r,E){for(var T in r)if(T!=="default"&&!Object.prototype.hasOwnProperty.call(E,T))j4(E,r,T)},j4=Object.create?function(r,E,T,U){if(U===void 0)U=T;var F=Object.getOwnPropertyDescriptor(E,T);if(!F||("get"in F?!E.__esModule:F.writable||F.configurable))F={enumerable:!0,get:function(){return E[T]}};Object.defineProperty(r,U,F)}:function(r,E,T,U){if(U===void 0)U=T;r[U]=E[T]},y4=function(r){var E=typeof Symbol==="function"&&Symbol.iterator,T=E&&r[E],U=0;if(T)return T.call(r);if(r&&typeof r.length==="number")return{next:function(){if(r&&U>=r.length)r=void 0;return{value:r&&r[U++],done:!r}}};throw new TypeError(E?"Object is not iterable.":"Symbol.iterator is not defined.")},MU=function(r,E){var T=typeof Symbol==="function"&&r[Symbol.iterator];if(!T)return r;var U=T.call(r),F,C=[],I;try{while((E===void 0||E-- >0)&&!(F=U.next()).done)C.push(F.value)}catch(L){I={error:L}}finally{try{if(F&&!F.done&&(T=U.return))T.call(U)}finally{if(I)throw I.error}}return C},pA=function(){for(var r=[],E=0;E<arguments.length;E++)r=r.concat(MU(arguments[E]));return r},oA=function(){for(var r=0,E=0,T=arguments.length;E<T;E++)r+=arguments[E].length;for(var U=Array(r),F=0,E=0;E<T;E++)for(var C=arguments[E],I=0,L=C.length;I<L;I++,F++)U[F]=C[I];return U},uA=function(r,E,T){if(T||arguments.length===2){for(var U=0,F=E.length,C;U<F;U++)if(C||!(U in E)){if(!C)C=Array.prototype.slice.call(E,0,U);C[U]=E[U]}}return r.concat(C||Array.prototype.slice.call(E))},vw=function(r){return this instanceof vw?(this.v=r,this):new vw(r)},tA=function(r,E,T){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var U=T.apply(r,E||[]),F,C=[];return F=Object.create((typeof AsyncIterator==="function"?AsyncIterator:Object).prototype),L("next"),L("throw"),L("return",I),F[Symbol.asyncIterator]=function(){return this},F;function I(N){return function(y){return Promise.resolve(y).then(N,M)}}function L(N,y){if(U[N]){if(F[N]=function(n){return new Promise(function(L0,b0){C.push([N,n,L0,b0])>1||W(N,n)})},y)F[N]=y(F[N])}}function W(N,y){try{X(U[N](y))}catch(n){q(C[0][3],n)}}function X(N){N.value instanceof vw?Promise.resolve(N.value.v).then(Q,M):q(C[0][2],N)}function Q(N){W("next",N)}function M(N){W("throw",N)}function q(N,y){if(N(y),C.shift(),C.length)W(C[0][0],C[0][1])}},fz=function(r){var E,T;return E={},U("next"),U("throw",function(F){throw F}),U("return"),E[Symbol.iterator]=function(){return this},E;function U(F,C){E[F]=r[F]?function(I){return(T=!T)?{value:vw(r[F](I)),done:!1}:C?C(I):I}:C}},hz=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var E=r[Symbol.asyncIterator],T;return E?E.call(r):(r=typeof y4==="function"?y4(r):r[Symbol.iterator](),T={},U("next"),U("throw"),U("return"),T[Symbol.asyncIterator]=function(){return this},T);function U(C){T[C]=r[C]&&function(I){return new Promise(function(L,W){I=r[C](I),F(L,W,I.done,I.value)})}}function F(C,I,L,W){Promise.resolve(W).then(function(X){C({value:X,done:L})},I)}},wz=function(r,E){if(Object.defineProperty)Object.defineProperty(r,"raw",{value:E});else r.raw=E;return r};var w=Object.create?function(r,E){Object.defineProperty(r,"default",{enumerable:!0,value:E})}:function(r,E){r.default=E},s=function(r){return s=Object.getOwnPropertyNames||function(E){var T=[];for(var U in E)if(Object.prototype.hasOwnProperty.call(E,U))T[T.length]=U;return T},s(r)};sz=function(r){if(r&&r.__esModule)return r;var E={};if(r!=null){for(var T=s(r),U=0;U<T.length;U++)if(T[U]!=="default")j4(E,r,T[U])}return w(E,r),E},$z=function(r){return r&&r.__esModule?r:{default:r}},rz=function(r,E,T,U){if(T==="a"&&!U)throw new TypeError("Private accessor was defined without a getter");if(typeof E==="function"?r!==E||!U:!E.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return T==="m"?U:T==="a"?U.call(r):U?U.value:E.get(r)},Ez=function(r,E,T,U,F){if(U==="m")throw new TypeError("Private method is not writable");if(U==="a"&&!F)throw new TypeError("Private accessor was defined without a setter");if(typeof E==="function"?r!==E||!F:!E.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return U==="a"?F.call(r,T):F?F.value=T:E.set(r,T),T},Tz=function(r,E){if(E===null||typeof E!=="object"&&typeof E!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof r==="function"?E===r:r.has(E)},Uz=function(r,E,T){if(E!==null&&E!==void 0){if(typeof E!=="object"&&typeof E!=="function")throw new TypeError("Object expected.");var U,F;if(T){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");U=E[Symbol.asyncDispose]}if(U===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");if(U=E[Symbol.dispose],T)F=U}if(typeof U!=="function")throw new TypeError("Object not disposable.");if(F)U=function(){try{F.call(this)}catch(C){return Promise.reject(C)}};r.stack.push({value:E,dispose:U,async:T})}else if(T)r.stack.push({async:!0});return E};var $=typeof SuppressedError==="function"?SuppressedError:function(r,E,T){var U=new Error(T);return U.name="SuppressedError",U.error=r,U.suppressed=E,U};Fz=function(r){function E(C){r.error=r.hasError?new $(C,r.error,"An error was suppressed during disposal."):C,r.hasError=!0}var T,U=0;function F(){while(T=r.stack.pop())try{if(!T.async&&U===1)return U=0,r.stack.push(T),Promise.resolve().then(F);if(T.dispose){var C=T.dispose.call(T.value);if(T.async)return U|=2,Promise.resolve(C).then(F,function(I){return E(I),F()})}else U|=1}catch(I){E(I)}if(U===1)return r.hasError?Promise.reject(r.error):Promise.resolve();if(r.hasError)throw r.error}return F()},Cz=function(r,E){if(typeof r==="string"&&/^\.\.?\//.test(r))return r.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(T,U,F,C,I){return U?E?".jsx":".js":F&&(!C||!I)?T:F+C+"."+I.toLowerCase()+"js"});return r},f("__extends",lA),f("__assign",vA),f("__rest",bA),f("__decorate",mA),f("__param",dA),f("__esDecorate",iA),f("__runInitializers",cA),f("__propKey",gA),f("__setFunctionName",xA),f("__metadata",_A),f("__awaiter",nA),f("__generator",eA),f("__exportStar",aA),f("__createBinding",j4),f("__values",y4),f("__read",MU),f("__spread",pA),f("__spreadArrays",oA),f("__spreadArray",uA),f("__await",vw),f("__asyncGenerator",tA),f("__asyncDelegator",fz),f("__asyncValues",hz),f("__makeTemplateObject",wz),f("__importStar",sz),f("__importDefault",$z),f("__classPrivateFieldGet",rz),f("__classPrivateFieldSet",Ez),f("__classPrivateFieldIn",Tz),f("__addDisposableResource",Uz),f("__disposeResources",Fz),f("__rewriteRelativeImportExtension",Cz)})});var I1=H((fU0,Gz)=>{var{defineProperty:v4,getOwnPropertyDescriptor:jb,getOwnPropertyNames:Ob}=Object,lb=Object.prototype.hasOwnProperty,KU=(f,h)=>v4(f,"name",{value:h,configurable:!0}),vb=(f,h)=>{for(var w in h)v4(f,w,{get:h[w],enumerable:!0})},bb=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Ob(h))if(!lb.call(f,$)&&$!==w)v4(f,$,{get:()=>h[$],enumerable:!(s=jb(h,$))||s.enumerable})}return f},mb=(f)=>bb(v4({},"__esModule",{value:!0}),f),Iz={};vb(Iz,{emitWarningIfUnsupportedVersion:()=>db,setCredentialFeature:()=>Lz,setFeature:()=>Bz,state:()=>QU});Gz.exports=mb(Iz);var QU={warningEmitted:!1},db=KU((f)=>{if(f&&!QU.warningEmitted&&parseInt(f.substring(1,f.indexOf(".")))<18)QU.warningEmitted=!0,process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
|
|
13
13
|
no longer support Node.js 16.x on January 6, 2025.
|
|
14
14
|
|
|
15
15
|
To continue receiving updates to AWS services, bug fixes, and security
|
|
16
16
|
updates please upgrade to a supported Node.js LTS version.
|
|
17
17
|
|
|
18
|
-
More information can be found at: https://a.co/74kJMmI`)},"emitWarningIfUnsupportedVersion");function
|
|
19
|
-
`);return this.signString(
|
|
18
|
+
More information can be found at: https://a.co/74kJMmI`)},"emitWarningIfUnsupportedVersion");function Lz(f,h,w){if(!f.$source)f.$source={};return f.$source[h]=w,f}KU(Lz,"setCredentialFeature");function Bz(f,h,w){if(!f.__aws_sdk_context)f.__aws_sdk_context={features:{}};else if(!f.__aws_sdk_context.features)f.__aws_sdk_context.features={};f.__aws_sdk_context.features[h]=w}KU(Bz,"setFeature")});var D$=H((hU0,Az)=>{var{defineProperty:b4,getOwnPropertyDescriptor:ib,getOwnPropertyNames:cb}=Object,gb=Object.prototype.hasOwnProperty,ah=(f,h)=>b4(f,"name",{value:h,configurable:!0}),xb=(f,h)=>{for(var w in h)b4(f,w,{get:h[w],enumerable:!0})},_b=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of cb(h))if(!gb.call(f,$)&&$!==w)b4(f,$,{get:()=>h[$],enumerable:!(s=ib(h,$))||s.enumerable})}return f},nb=(f)=>_b(b4({},"__esModule",{value:!0}),f),Wz={};xb(Wz,{CredentialsProviderError:()=>eb,ProviderError:()=>m4,TokenProviderError:()=>ab,chain:()=>pb,fromStatic:()=>ob,memoize:()=>ub});Az.exports=nb(Wz);var m4=class f extends Error{constructor(h,w=!0){let s,$=!0;if(typeof w==="boolean")s=void 0,$=w;else if(w!=null&&typeof w==="object")s=w.logger,$=w.tryNextLink??!0;super(h);this.name="ProviderError",this.tryNextLink=$,Object.setPrototypeOf(this,f.prototype),s?.debug?.(`@smithy/property-provider ${$?"->":"(!)"} ${h}`)}static{ah(this,"ProviderError")}static from(h,w=!0){return Object.assign(new this(h.message,w),h)}},eb=class f extends m4{constructor(h,w=!0){super(h,w);this.name="CredentialsProviderError",Object.setPrototypeOf(this,f.prototype)}static{ah(this,"CredentialsProviderError")}},ab=class f extends m4{constructor(h,w=!0){super(h,w);this.name="TokenProviderError",Object.setPrototypeOf(this,f.prototype)}static{ah(this,"TokenProviderError")}},pb=ah((...f)=>async()=>{if(f.length===0)throw new m4("No providers in chain");let h;for(let w of f)try{return await w()}catch(s){if(h=s,s?.tryNextLink)continue;throw s}throw h},"chain"),ob=ah((f)=>()=>Promise.resolve(f),"fromStatic"),ub=ah((f,h,w)=>{let s,$,r,E=!1,T=ah(async()=>{if(!$)$=f();try{s=await $,r=!0,E=!1}finally{$=void 0}return s},"coalesceProvider");if(h===void 0)return async(U)=>{if(!r||U?.forceRefresh)s=await T();return s};return async(U)=>{if(!r||U?.forceRefresh)s=await T();if(E)return s;if(w&&!w(s))return E=!0,s;if(h(s))return await T(),s;return s}},"memoize")});var kz=H((wU0,qz)=>{var{defineProperty:_4,getOwnPropertyDescriptor:tb,getOwnPropertyNames:fm}=Object,hm=Object.prototype.hasOwnProperty,p0=(f,h)=>_4(f,"name",{value:h,configurable:!0}),wm=(f,h)=>{for(var w in h)_4(f,w,{get:h[w],enumerable:!0})},sm=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of fm(h))if(!hm.call(f,$)&&$!==w)_4(f,$,{get:()=>h[$],enumerable:!(s=tb(h,$))||s.enumerable})}return f},$m=(f)=>sm(_4({},"__esModule",{value:!0}),f),Yz={};wm(Yz,{SignatureV4:()=>Nm,clearCredentialCache:()=>Ym,createScope:()=>c4,getCanonicalHeaders:()=>PU,getCanonicalQuery:()=>Hz,getPayloadHash:()=>x4,getSigningKey:()=>Pz,moveHeadersToQuery:()=>Dz,prepareRequest:()=>NU});qz.exports=$m(Yz);var zz=Ih(),ZU=u1(),rm="X-Amz-Algorithm",Em="X-Amz-Credential",Mz="X-Amz-Date",Tm="X-Amz-SignedHeaders",Um="X-Amz-Expires",Qz="X-Amz-Signature",Kz="X-Amz-Security-Token",Zz="authorization",Jz=Mz.toLowerCase(),Fm="date",Cm=[Zz,Jz,Fm],Im=Qz.toLowerCase(),VU="x-amz-content-sha256",Lm=Kz.toLowerCase(),Bm={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},Gm=/^proxy-/,Wm=/^sec-/,JU="AWS4-HMAC-SHA256",Am="AWS4-HMAC-SHA256-PAYLOAD",zm="UNSIGNED-PAYLOAD",Rm=50,Vz="aws4_request",Xm=604800,zh=uT(),Sm=u1(),bw={},i4=[],c4=p0((f,h,w)=>`${f}/${h}/${w}/${Vz}`,"createScope"),Pz=p0(async(f,h,w,s,$)=>{let r=await Rz(f,h.secretAccessKey,h.accessKeyId),E=`${w}:${s}:${$}:${zh.toHex(r)}:${h.sessionToken}`;if(E in bw)return bw[E];i4.push(E);while(i4.length>Rm)delete bw[i4.shift()];let T=`AWS4${h.secretAccessKey}`;for(let U of[w,s,$,Vz])T=await Rz(f,T,U);return bw[E]=T},"getSigningKey"),Ym=p0(()=>{i4.length=0,Object.keys(bw).forEach((f)=>{delete bw[f]})},"clearCredentialCache"),Rz=p0((f,h,w)=>{let s=new f(h);return s.update(Sm.toUint8Array(w)),s.digest()},"hmac"),PU=p0(({headers:f},h,w)=>{let s={};for(let $ of Object.keys(f).sort()){if(f[$]==null)continue;let r=$.toLowerCase();if(r in Bm||h?.has(r)||Gm.test(r)||Wm.test(r)){if(!w||w&&!w.has(r))continue}s[r]=f[$].trim().replace(/\s+/g," ")}return s},"getCanonicalHeaders"),g4=z4(),Hz=p0(({query:f={}})=>{let h=[],w={};for(let s of Object.keys(f)){if(s.toLowerCase()===Im)continue;let $=g4.escapeUri(s);h.push($);let r=f[s];if(typeof r==="string")w[$]=`${$}=${g4.escapeUri(r)}`;else if(Array.isArray(r))w[$]=r.slice(0).reduce((E,T)=>E.concat([`${$}=${g4.escapeUri(T)}`]),[]).sort().join("&")}return h.sort().map((s)=>w[s]).filter((s)=>s).join("&")},"getCanonicalQuery"),Mm=lT(),Qm=u1(),x4=p0(async({headers:f,body:h},w)=>{for(let s of Object.keys(f))if(s.toLowerCase()===VU)return f[s];if(h==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";else if(typeof h==="string"||ArrayBuffer.isView(h)||Mm.isArrayBuffer(h)){let s=new w;return s.update(Qm.toUint8Array(h)),zh.toHex(await s.digest())}return zm},"getPayloadHash"),Xz=u1(),Km=class{static{p0(this,"HeaderFormatter")}format(f){let h=[];for(let $ of Object.keys(f)){let r=Xz.fromUtf8($);h.push(Uint8Array.from([r.byteLength]),r,this.formatHeaderValue(f[$]))}let w=new Uint8Array(h.reduce(($,r)=>$+r.byteLength,0)),s=0;for(let $ of h)w.set($,s),s+=$.byteLength;return w}formatHeaderValue(f){switch(f.type){case"boolean":return Uint8Array.from([f.value?0:1]);case"byte":return Uint8Array.from([2,f.value]);case"short":let h=new DataView(new ArrayBuffer(3));return h.setUint8(0,3),h.setInt16(1,f.value,!1),new Uint8Array(h.buffer);case"integer":let w=new DataView(new ArrayBuffer(5));return w.setUint8(0,4),w.setInt32(1,f.value,!1),new Uint8Array(w.buffer);case"long":let s=new Uint8Array(9);return s[0]=5,s.set(f.value.bytes,1),s;case"binary":let $=new DataView(new ArrayBuffer(3+f.value.byteLength));$.setUint8(0,6),$.setUint16(1,f.value.byteLength,!1);let r=new Uint8Array($.buffer);return r.set(f.value,3),r;case"string":let E=Xz.fromUtf8(f.value),T=new DataView(new ArrayBuffer(3+E.byteLength));T.setUint8(0,7),T.setUint16(1,E.byteLength,!1);let U=new Uint8Array(T.buffer);return U.set(E,3),U;case"timestamp":let F=new Uint8Array(9);return F[0]=8,F.set(Jm.fromNumber(f.value.valueOf()).bytes,1),F;case"uuid":if(!Zm.test(f.value))throw new Error(`Invalid UUID received: ${f.value}`);let C=new Uint8Array(17);return C[0]=9,C.set(zh.fromHex(f.value.replace(/\-/g,"")),1),C}}},Zm=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,Jm=class f{constructor(h){if(this.bytes=h,h.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static{p0(this,"Int64")}static fromNumber(h){if(h>9223372036854776000||h<-9223372036854776000)throw new Error(`${h} is too large (or, if negative, too small) to represent as an Int64`);let w=new Uint8Array(8);for(let s=7,$=Math.abs(Math.round(h));s>-1&&$>0;s--,$/=256)w[s]=$;if(h<0)HU(w);return new f(w)}valueOf(){let h=this.bytes.slice(0),w=h[0]&128;if(w)HU(h);return parseInt(zh.toHex(h),16)*(w?-1:1)}toString(){return String(this.valueOf())}};function HU(f){for(let h=0;h<8;h++)f[h]^=255;for(let h=7;h>-1;h--)if(f[h]++,f[h]!==0)break}p0(HU,"negate");var Vm=p0((f,h)=>{f=f.toLowerCase();for(let w of Object.keys(h))if(f===w.toLowerCase())return!0;return!1},"hasHeader"),Nz=t0(),Dz=p0((f,h={})=>{let{headers:w,query:s={}}=Nz.HttpRequest.clone(f);for(let $ of Object.keys(w)){let r=$.toLowerCase();if(r.slice(0,6)==="x-amz-"&&!h.unhoistableHeaders?.has(r)||h.hoistableHeaders?.has(r))s[$]=w[$],delete w[$]}return{...f,headers:w,query:s}},"moveHeadersToQuery"),NU=p0((f)=>{f=Nz.HttpRequest.clone(f);for(let h of Object.keys(f.headers))if(Cm.indexOf(h.toLowerCase())>-1)delete f.headers[h];return f},"prepareRequest"),Pm=p0((f)=>Hm(f).toISOString().replace(/\.\d{3}Z$/,"Z"),"iso8601"),Hm=p0((f)=>{if(typeof f==="number")return new Date(f*1000);if(typeof f==="string"){if(Number(f))return new Date(Number(f)*1000);return new Date(f)}return f},"toDate"),Nm=class{constructor({applyChecksum:f,credentials:h,region:w,service:s,sha256:$,uriEscapePath:r=!0}){this.headerFormatter=new Km,this.service=s,this.sha256=$,this.uriEscapePath=r,this.applyChecksum=typeof f==="boolean"?f:!0,this.regionProvider=zz.normalizeProvider(w),this.credentialProvider=zz.normalizeProvider(h)}static{p0(this,"SignatureV4")}async presign(f,h={}){let{signingDate:w=new Date,expiresIn:s=3600,unsignableHeaders:$,unhoistableHeaders:r,signableHeaders:E,hoistableHeaders:T,signingRegion:U,signingService:F}=h,C=await this.credentialProvider();this.validateResolvedCredentials(C);let I=U??await this.regionProvider(),{longDate:L,shortDate:W}=d4(w);if(s>Xm)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let X=c4(W,I,F??this.service),Q=Dz(NU(f),{unhoistableHeaders:r,hoistableHeaders:T});if(C.sessionToken)Q.query[Kz]=C.sessionToken;Q.query[rm]=JU,Q.query[Em]=`${C.accessKeyId}/${X}`,Q.query[Mz]=L,Q.query[Um]=s.toString(10);let M=PU(Q,$,E);return Q.query[Tm]=Sz(M),Q.query[Qz]=await this.getSignature(L,X,this.getSigningKey(C,I,W,F),this.createCanonicalRequest(Q,M,await x4(f,this.sha256))),Q}async sign(f,h){if(typeof f==="string")return this.signString(f,h);else if(f.headers&&f.payload)return this.signEvent(f,h);else if(f.message)return this.signMessage(f,h);else return this.signRequest(f,h)}async signEvent({headers:f,payload:h},{signingDate:w=new Date,priorSignature:s,signingRegion:$,signingService:r}){let E=$??await this.regionProvider(),{shortDate:T,longDate:U}=d4(w),F=c4(T,E,r??this.service),C=await x4({headers:{},body:h},this.sha256),I=new this.sha256;I.update(f);let L=zh.toHex(await I.digest()),W=[Am,U,F,s,L,C].join(`
|
|
19
|
+
`);return this.signString(W,{signingDate:w,signingRegion:E,signingService:r})}async signMessage(f,{signingDate:h=new Date,signingRegion:w,signingService:s}){return this.signEvent({headers:this.headerFormatter.format(f.message.headers),payload:f.message.body},{signingDate:h,signingRegion:w,signingService:s,priorSignature:f.priorSignature}).then((r)=>{return{message:f.message,signature:r}})}async signString(f,{signingDate:h=new Date,signingRegion:w,signingService:s}={}){let $=await this.credentialProvider();this.validateResolvedCredentials($);let r=w??await this.regionProvider(),{shortDate:E}=d4(h),T=new this.sha256(await this.getSigningKey($,r,E,s));return T.update(ZU.toUint8Array(f)),zh.toHex(await T.digest())}async signRequest(f,{signingDate:h=new Date,signableHeaders:w,unsignableHeaders:s,signingRegion:$,signingService:r}={}){let E=await this.credentialProvider();this.validateResolvedCredentials(E);let T=$??await this.regionProvider(),U=NU(f),{longDate:F,shortDate:C}=d4(h),I=c4(C,T,r??this.service);if(U.headers[Jz]=F,E.sessionToken)U.headers[Lm]=E.sessionToken;let L=await x4(U,this.sha256);if(!Vm(VU,U.headers)&&this.applyChecksum)U.headers[VU]=L;let W=PU(U,s,w),X=await this.getSignature(F,I,this.getSigningKey(E,T,C,r),this.createCanonicalRequest(U,W,L));return U.headers[Zz]=`${JU} Credential=${E.accessKeyId}/${I}, SignedHeaders=${Sz(W)}, Signature=${X}`,U}createCanonicalRequest(f,h,w){let s=Object.keys(h).sort();return`${f.method}
|
|
20
20
|
${this.getCanonicalPath(f)}
|
|
21
|
-
${
|
|
21
|
+
${Hz(f)}
|
|
22
22
|
${s.map(($)=>`${$}:${h[$]}`).join(`
|
|
23
23
|
`)}
|
|
24
24
|
|
|
25
25
|
${s.join(";")}
|
|
26
|
-
${w}`}async createStringToSign(f,h,w){let s=new this.sha256;s.update(
|
|
26
|
+
${w}`}async createStringToSign(f,h,w){let s=new this.sha256;s.update(ZU.toUint8Array(w));let $=await s.digest();return`${JU}
|
|
27
27
|
${f}
|
|
28
28
|
${h}
|
|
29
|
-
${Rh.toHex($)}`}getCanonicalPath({path:f}){if(this.uriEscapePath){let h=[];for(let $ of f.split("/")){if($?.length===0)continue;if($===".")continue;if($==="..")h.pop();else h.push($)}let w=`${f?.startsWith("/")?"/":""}${h.join("/")}${h.length>0&&f?.endsWith("/")?"/":""}`;return e4.escapeUri(w).replace(/%2F/g,"/")}return f}async getSignature(f,h,w,s){let $=await this.createStringToSign(f,h,s),r=new this.sha256(await w);return r.update(DU.toUint8Array($)),Rh.toHex(await r.digest())}getSigningKey(f,h,w,s){return O7(this.sha256,f,w,h,s||this.service)}validateResolvedCredentials(f){if(typeof f!=="object"||typeof f.accessKeyId!=="string"||typeof f.secretAccessKey!=="string")throw new Error("Resolved credential object is not valid")}},x4=o0((f)=>{let h=yd(f).replace(/[\-:]/g,"");return{longDate:h,shortDate:h.slice(0,8)}},"formatDate"),P7=o0((f)=>Object.keys(f).sort().join(";"),"getCanonicalHeaderList")});var p7=H((k30,o7)=>{var{defineProperty:p4,getOwnPropertyDescriptor:ld,getOwnPropertyNames:vd}=Object,bd=Object.prototype.hasOwnProperty,ff=(f,h)=>p4(f,"name",{value:h,configurable:!0}),md=(f,h)=>{for(var w in h)p4(f,w,{get:h[w],enumerable:!0})},dd=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of vd(h))if(!bd.call(f,$)&&$!==w)p4(f,$,{get:()=>h[$],enumerable:!(s=ld(h,$))||s.enumerable})}return f},id=(f)=>dd(p4({},"__esModule",{value:!0}),f),_7={};md(_7,{AWSSDKSigV4Signer:()=>_d,AwsSdkSigV4ASigner:()=>ed,AwsSdkSigV4Signer:()=>bU,NODE_SIGV4A_CONFIG_OPTIONS:()=>pd,resolveAWSSDKSigV4Config:()=>td,resolveAwsSdkSigV4AConfig:()=>od,resolveAwsSdkSigV4Config:()=>n7,validateSigningProperties:()=>vU});o7.exports=id(_7);var cd=t0(),gd=t0(),i7=ff((f)=>gd.HttpResponse.isInstance(f)?f.headers?.date??f.headers?.Date:void 0,"getDateHeader"),lU=ff((f)=>new Date(Date.now()+f),"getSkewCorrectedDate"),xd=ff((f,h)=>Math.abs(lU(h).getTime()-f)>=300000,"isClockSkewed"),c7=ff((f,h)=>{let w=Date.parse(f);if(xd(w,h))return w-Date.now();return h},"getUpdatedSystemClockOffset"),l$=ff((f,h)=>{if(!h)throw new Error(`Property \`${f}\` is not resolved for AWS SDK SigV4Auth`);return h},"throwSigningPropertyError"),vU=ff(async(f)=>{let h=l$("context",f.context),w=l$("config",f.config),s=h.endpointV2?.properties?.authSchemes?.[0],r=await l$("signer",w.signer)(s),E=f?.signingRegion,T=f?.signingRegionSet,U=f?.signingName;return{config:w,signer:r,signingRegion:E,signingRegionSet:T,signingName:U}},"validateSigningProperties"),bU=class{static{ff(this,"AwsSdkSigV4Signer")}async sign(f,h,w){if(!cd.HttpRequest.isInstance(f))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");let s=await vU(w),{config:$,signer:r}=s,{signingRegion:E,signingName:T}=s,U=w.context;if(U?.authSchemes?.length??0>1){let[C,I]=U.authSchemes;if(C?.name==="sigv4a"&&I?.name==="sigv4")E=I?.signingRegion??E,T=I?.signingName??T}return await r.sign(f,{signingDate:lU($.systemClockOffset),signingRegion:E,signingService:T})}errorHandler(f){return(h)=>{let w=h.ServerTime??i7(h.$response);if(w){let s=l$("config",f.config),$=s.systemClockOffset;if(s.systemClockOffset=c7(w,s.systemClockOffset),s.systemClockOffset!==$&&h.$metadata)h.$metadata.clockSkewCorrected=!0}throw h}}successHandler(f,h){let w=i7(f);if(w){let s=l$("config",h.config);s.systemClockOffset=c7(w,s.systemClockOffset)}}},_d=bU,nd=t0(),ed=class extends bU{static{ff(this,"AwsSdkSigV4ASigner")}async sign(f,h,w){if(!nd.HttpRequest.isInstance(f))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");let{config:s,signer:$,signingRegion:r,signingRegionSet:E,signingName:T}=await vU(w),F=(await s.sigv4aSigningRegionSet?.()??E??[r]).join(",");return await $.sign(f,{signingDate:lU(s.systemClockOffset),signingRegion:F,signingService:T})}},ad=m0(),g7=O$(),od=ff((f)=>{return f.sigv4aSigningRegionSet=ad.normalizeProvider(f.sigv4aSigningRegionSet),f},"resolveAwsSdkSigV4AConfig"),pd={environmentVariableSelector(f){if(f.AWS_SIGV4A_SIGNING_REGION_SET)return f.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((h)=>h.trim());throw new g7.ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:!0})},configFileSelector(f){if(f.sigv4a_signing_region_set)return(f.sigv4a_signing_region_set??"").split(",").map((h)=>h.trim());throw new g7.ProviderError("sigv4a_signing_region_set not set in profile.",{tryNextLink:!0})},default:void 0},ud=Cf(),uh=m0(),x7=d7(),n7=ff((f)=>{let h=f.credentials,w=!!f.credentials,s=void 0;Object.defineProperty(f,"credentials",{set(F){if(F&&F!==h&&F!==s)w=!0;h=F;let C=e7(f,{credentials:h,credentialDefaultProvider:f.credentialDefaultProvider}),I=a7(f,C);if(w&&!I.attributed)s=ff(async(B)=>I(B).then((G)=>ud.setCredentialFeature(G,"CREDENTIALS_CODE","e")),"resolvedCredentials"),s.memoized=I.memoized,s.configBound=I.configBound,s.attributed=!0;else s=I},get(){return s},enumerable:!0,configurable:!0}),f.credentials=h;let{signingEscapePath:$=!0,systemClockOffset:r=f.systemClockOffset||0,sha256:E}=f,T;if(f.signer)T=uh.normalizeProvider(f.signer);else if(f.regionInfoProvider)T=ff(()=>uh.normalizeProvider(f.region)().then(async(F)=>[await f.regionInfoProvider(F,{useFipsEndpoint:await f.useFipsEndpoint(),useDualstackEndpoint:await f.useDualstackEndpoint()})||{},F]).then(([F,C])=>{let{signingRegion:I,signingService:B}=F;f.signingRegion=f.signingRegion||I||C,f.signingName=f.signingName||B||f.serviceId;let G={...f,credentials:f.credentials,region:f.signingRegion,service:f.signingName,sha256:E,uriEscapePath:$};return new(f.signerConstructor||x7.SignatureV4)(G)}),"signer");else T=ff(async(F)=>{F=Object.assign({},{name:"sigv4",signingName:f.signingName||f.defaultSigningName,signingRegion:await uh.normalizeProvider(f.region)(),properties:{}},F);let{signingRegion:C,signingName:I}=F;f.signingRegion=f.signingRegion||C,f.signingName=f.signingName||I||f.serviceId;let B={...f,credentials:f.credentials,region:f.signingRegion,service:f.signingName,sha256:E,uriEscapePath:$};return new(f.signerConstructor||x7.SignatureV4)(B)},"signer");return Object.assign(f,{systemClockOffset:r,signingEscapePath:$,signer:T})},"resolveAwsSdkSigV4Config"),td=n7;function e7(f,{credentials:h,credentialDefaultProvider:w}){let s;if(h)if(!h?.memoized)s=uh.memoizeIdentityProvider(h,uh.isIdentityExpired,uh.doesIdentityRequireRefresh);else s=h;else if(w)s=uh.normalizeProvider(w(Object.assign({},f,{parentClientConfig:f})));else s=ff(async()=>{throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")},"credentialsProvider");return s.memoized=!0,s}ff(e7,"normalizeCredentialProvider");function a7(f,h){if(h.configBound)return h;let w=ff(async(s)=>h({...s,callerClientConfig:f}),"fn");return w.memoized=h.memoized,w.configBound=!0,w}ff(a7,"bindCallerConfig")});var wR=H((O30,hR)=>{var{defineProperty:u4,getOwnPropertyDescriptor:fi,getOwnPropertyNames:hi}=Object,wi=Object.prototype.hasOwnProperty,Df=(f,h)=>u4(f,"name",{value:h,configurable:!0}),si=(f,h)=>{for(var w in h)u4(f,w,{get:h[w],enumerable:!0})},$i=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of hi(h))if(!wi.call(f,$)&&$!==w)u4(f,$,{get:()=>h[$],enumerable:!(s=fi(h,$))||s.enumerable})}return f},ri=(f)=>$i(u4({},"__esModule",{value:!0}),f),fR={};si(fR,{constructStack:()=>mU});hR.exports=ri(fR);var th=Df((f,h)=>{let w=[];if(f)w.push(f);if(h)for(let s of h)w.push(s);return w},"getAllAliases"),Sh=Df((f,h)=>{return`${f||"anonymous"}${h&&h.length>0?` (a.k.a. ${h.join(",")})`:""}`},"getMiddlewareNameWithAliases"),mU=Df(()=>{let f=[],h=[],w=!1,s=new Set,$=Df((I)=>I.sort((B,G)=>u7[G.step]-u7[B.step]||t7[G.priority||"normal"]-t7[B.priority||"normal"]),"sort"),r=Df((I)=>{let B=!1,G=Df((S)=>{let Q=th(S.name,S.aliases);if(Q.includes(I)){B=!0;for(let M of Q)s.delete(M);return!1}return!0},"filterCb");return f=f.filter(G),h=h.filter(G),B},"removeByName"),E=Df((I)=>{let B=!1,G=Df((S)=>{if(S.middleware===I){B=!0;for(let Q of th(S.name,S.aliases))s.delete(Q);return!1}return!0},"filterCb");return f=f.filter(G),h=h.filter(G),B},"removeByReference"),T=Df((I)=>{return f.forEach((B)=>{I.add(B.middleware,{...B})}),h.forEach((B)=>{I.addRelativeTo(B.middleware,{...B})}),I.identifyOnResolve?.(C.identifyOnResolve()),I},"cloneTo"),U=Df((I)=>{let B=[];return I.before.forEach((G)=>{if(G.before.length===0&&G.after.length===0)B.push(G);else B.push(...U(G))}),B.push(I),I.after.reverse().forEach((G)=>{if(G.before.length===0&&G.after.length===0)B.push(G);else B.push(...U(G))}),B},"expandRelativeMiddlewareList"),F=Df((I=!1)=>{let B=[],G=[],S={};return f.forEach((M)=>{let q={...M,before:[],after:[]};for(let N of th(q.name,q.aliases))S[N]=q;B.push(q)}),h.forEach((M)=>{let q={...M,before:[],after:[]};for(let N of th(q.name,q.aliases))S[N]=q;G.push(q)}),G.forEach((M)=>{if(M.toMiddleware){let q=S[M.toMiddleware];if(q===void 0){if(I)return;throw new Error(`${M.toMiddleware} is not found when adding ${Sh(M.name,M.aliases)} middleware ${M.relation} ${M.toMiddleware}`)}if(M.relation==="after")q.after.push(M);if(M.relation==="before")q.before.push(M)}}),$(B).map(U).reduce((M,q)=>{return M.push(...q),M},[])},"getMiddlewareList"),C={add:(I,B={})=>{let{name:G,override:S,aliases:Q}=B,M={step:"initialize",priority:"normal",middleware:I,...B},q=th(G,Q);if(q.length>0){if(q.some((N)=>s.has(N))){if(!S)throw new Error(`Duplicate middleware name '${Sh(G,Q)}'`);for(let N of q){let y=f.findIndex((L0)=>L0.name===N||L0.aliases?.some((b0)=>b0===N));if(y===-1)continue;let n=f[y];if(n.step!==M.step||M.priority!==n.priority)throw new Error(`"${Sh(n.name,n.aliases)}" middleware with ${n.priority} priority in ${n.step} step cannot be overridden by "${Sh(G,Q)}" middleware with ${M.priority} priority in ${M.step} step.`);f.splice(y,1)}}for(let N of q)s.add(N)}f.push(M)},addRelativeTo:(I,B)=>{let{name:G,override:S,aliases:Q}=B,M={middleware:I,...B},q=th(G,Q);if(q.length>0){if(q.some((N)=>s.has(N))){if(!S)throw new Error(`Duplicate middleware name '${Sh(G,Q)}'`);for(let N of q){let y=h.findIndex((L0)=>L0.name===N||L0.aliases?.some((b0)=>b0===N));if(y===-1)continue;let n=h[y];if(n.toMiddleware!==M.toMiddleware||n.relation!==M.relation)throw new Error(`"${Sh(n.name,n.aliases)}" middleware ${n.relation} "${n.toMiddleware}" middleware cannot be overridden by "${Sh(G,Q)}" middleware ${M.relation} "${M.toMiddleware}" middleware.`);h.splice(y,1)}}for(let N of q)s.add(N)}h.push(M)},clone:()=>T(mU()),use:(I)=>{I.applyToStack(C)},remove:(I)=>{if(typeof I==="string")return r(I);else return E(I)},removeByTag:(I)=>{let B=!1,G=Df((S)=>{let{tags:Q,name:M,aliases:q}=S;if(Q&&Q.includes(I)){let N=th(M,q);for(let y of N)s.delete(y);return B=!0,!1}return!0},"filterCb");return f=f.filter(G),h=h.filter(G),B},concat:(I)=>{let B=T(mU());return B.use(I),B.identifyOnResolve(w||B.identifyOnResolve()||(I.identifyOnResolve?.()??!1)),B},applyToStack:T,identify:()=>{return F(!0).map((I)=>{let B=I.step??I.relation+" "+I.toMiddleware;return Sh(I.name,I.aliases)+" - "+B})},identifyOnResolve(I){if(typeof I==="boolean")w=I;return w},resolve:(I,B)=>{for(let G of F().map((S)=>S.middleware).reverse())I=G(I,B);if(w)console.log(C.identify());return I}};return C},"constructStack"),u7={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},t7={high:3,normal:2,low:1}});var J0=H((l30,XR)=>{var{defineProperty:hE,getOwnPropertyDescriptor:Ei,getOwnPropertyNames:Ti}=Object,Ui=Object.prototype.hasOwnProperty,b=(f,h)=>hE(f,"name",{value:h,configurable:!0}),Fi=(f,h)=>{for(var w in h)hE(f,w,{get:h[w],enumerable:!0})},Ci=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Ti(h))if(!Ui.call(f,$)&&$!==w)hE(f,$,{get:()=>h[$],enumerable:!(s=Ei(h,$))||s.enumerable})}return f},Ii=(f)=>Ci(hE({},"__esModule",{value:!0}),f),$R={};Fi($R,{Client:()=>Li,Command:()=>ER,LazyJsonString:()=>fw,NoOpLogger:()=>Uc,SENSITIVE_STRING:()=>Ai,ServiceException:()=>ai,_json:()=>nU,collectBody:()=>dU.collectBody,convertMap:()=>Fc,createAggregatedClient:()=>Gi,dateToUtcString:()=>LR,decorateServiceException:()=>BR,emitWarningIfUnsupportedVersion:()=>ti,expectBoolean:()=>zi,expectByte:()=>_U,expectFloat32:()=>t4,expectInt:()=>Si,expectInt32:()=>gU,expectLong:()=>m$,expectNonNull:()=>Yi,expectNumber:()=>b$,expectObject:()=>TR,expectShort:()=>xU,expectString:()=>Mi,expectUnion:()=>Qi,extendedEncodeURIComponent:()=>dU.extendedEncodeURIComponent,getArrayIfSingleItem:()=>Ec,getDefaultClientConfiguration:()=>$c,getDefaultExtensionConfiguration:()=>GR,getValueFromTextNode:()=>WR,handleFloat:()=>Ji,isSerializableHeaderValue:()=>Tc,limitedParseDouble:()=>oU,limitedParseFloat:()=>Vi,limitedParseFloat32:()=>Pi,loadConfigsForDefaultMode:()=>ui,logger:()=>d$,map:()=>uU,parseBoolean:()=>Wi,parseEpochTimestamp:()=>mi,parseRfc3339DateTime:()=>ki,parseRfc3339DateTimeWithOffset:()=>ji,parseRfc7231DateTime:()=>bi,quoteHeader:()=>RR,resolveDefaultRuntimeConfig:()=>rc,resolvedPath:()=>dU.resolvedPath,serializeDateTime:()=>Gc,serializeFloat:()=>Ac,splitEvery:()=>SR,splitHeader:()=>Wc,strictParseByte:()=>IR,strictParseDouble:()=>aU,strictParseFloat:()=>Ki,strictParseFloat32:()=>UR,strictParseInt:()=>Hi,strictParseInt32:()=>Ni,strictParseLong:()=>CR,strictParseShort:()=>gw,take:()=>Cc,throwDefaultError:()=>AR,withBaseException:()=>oi});XR.exports=Ii($R);var rR=wR(),Li=class{constructor(f){this.config=f,this.middlewareStack=rR.constructStack()}static{b(this,"Client")}send(f,h,w){let s=typeof h!=="function"?h:void 0,$=typeof h==="function"?h:w,r=s===void 0&&this.config.cacheMiddleware===!0,E;if(r){if(!this.handlers)this.handlers=new WeakMap;let T=this.handlers;if(T.has(f.constructor))E=T.get(f.constructor);else E=f.resolveMiddleware(this.middlewareStack,this.config,s),T.set(f.constructor,E)}else delete this.handlers,E=f.resolveMiddleware(this.middlewareStack,this.config,s);if($)E(f).then((T)=>$(null,T.output),(T)=>$(T)).catch(()=>{});else return E(f).then((T)=>T.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}},dU=bw(),cU=nh(),ER=class{constructor(){this.middlewareStack=rR.constructStack()}static{b(this,"Command")}static classBuilder(){return new Bi}resolveMiddlewareWithContext(f,h,w,{middlewareFn:s,clientName:$,commandName:r,inputFilterSensitiveLog:E,outputFilterSensitiveLog:T,smithyContext:U,additionalContext:F,CommandCtor:C}){for(let Q of s.bind(this)(C,f,h,w))this.middlewareStack.use(Q);let I=f.concat(this.middlewareStack),{logger:B}=h,G={logger:B,clientName:$,commandName:r,inputFilterSensitiveLog:E,outputFilterSensitiveLog:T,[cU.SMITHY_CONTEXT_KEY]:{commandInstance:this,...U},...F},{requestHandler:S}=h;return I.resolve((Q)=>S.handle(Q.request,w||{}),G)}},Bi=class{constructor(){this._init=()=>{},this._ep={},this._middlewareFn=()=>[],this._commandName="",this._clientName="",this._additionalContext={},this._smithyContext={},this._inputFilterSensitiveLog=(f)=>f,this._outputFilterSensitiveLog=(f)=>f,this._serializer=null,this._deserializer=null}static{b(this,"ClassBuilder")}init(f){this._init=f}ep(f){return this._ep=f,this}m(f){return this._middlewareFn=f,this}s(f,h,w={}){return this._smithyContext={service:f,operation:h,...w},this}c(f={}){return this._additionalContext=f,this}n(f,h){return this._clientName=f,this._commandName=h,this}f(f=(w)=>w,h=(w)=>w){return this._inputFilterSensitiveLog=f,this._outputFilterSensitiveLog=h,this}ser(f){return this._serializer=f,this}de(f){return this._deserializer=f,this}build(){let f=this,h;return h=class extends ER{constructor(...[w]){super();this.serialize=f._serializer,this.deserialize=f._deserializer,this.input=w??{},f._init(this)}static{b(this,"CommandRef")}static getEndpointParameterInstructions(){return f._ep}resolveMiddleware(w,s,$){return this.resolveMiddlewareWithContext(w,s,$,{CommandCtor:h,middlewareFn:f._middlewareFn,clientName:f._clientName,commandName:f._commandName,inputFilterSensitiveLog:f._inputFilterSensitiveLog,outputFilterSensitiveLog:f._outputFilterSensitiveLog,smithyContext:f._smithyContext,additionalContext:f._additionalContext})}}}},Ai="***SensitiveInformation***",Gi=b((f,h)=>{for(let w of Object.keys(f)){let s=f[w],$=b(async function(E,T,U){let F=new s(E);if(typeof T==="function")this.send(F,T);else if(typeof U==="function"){if(typeof T!=="object")throw new Error(`Expected http options but got ${typeof T}`);this.send(F,T||{},U)}else return this.send(F,T)},"methodImpl"),r=(w[0].toLowerCase()+w.slice(1)).replace(/Command$/,"");h.prototype[r]=$}},"createAggregatedClient"),Wi=b((f)=>{switch(f){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${f}"`)}},"parseBoolean"),zi=b((f)=>{if(f===null||f===void 0)return;if(typeof f==="number"){if(f===0||f===1)d$.warn(fE(`Expected boolean, got ${typeof f}: ${f}`));if(f===0)return!1;if(f===1)return!0}if(typeof f==="string"){let h=f.toLowerCase();if(h==="false"||h==="true")d$.warn(fE(`Expected boolean, got ${typeof f}: ${f}`));if(h==="false")return!1;if(h==="true")return!0}if(typeof f==="boolean")return f;throw new TypeError(`Expected boolean, got ${typeof f}: ${f}`)},"expectBoolean"),b$=b((f)=>{if(f===null||f===void 0)return;if(typeof f==="string"){let h=parseFloat(f);if(!Number.isNaN(h)){if(String(h)!==String(f))d$.warn(fE(`Expected number but observed string: ${f}`));return h}}if(typeof f==="number")return f;throw new TypeError(`Expected number, got ${typeof f}: ${f}`)},"expectNumber"),Ri=Math.ceil(340282346638528860000000000000000000000),t4=b((f)=>{let h=b$(f);if(h!==void 0&&!Number.isNaN(h)&&h!==1/0&&h!==-1/0){if(Math.abs(h)>Ri)throw new TypeError(`Expected 32-bit float, got ${f}`)}return h},"expectFloat32"),m$=b((f)=>{if(f===null||f===void 0)return;if(Number.isInteger(f)&&!Number.isNaN(f))return f;throw new TypeError(`Expected integer, got ${typeof f}: ${f}`)},"expectLong"),Si=m$,gU=b((f)=>eU(f,32),"expectInt32"),xU=b((f)=>eU(f,16),"expectShort"),_U=b((f)=>eU(f,8),"expectByte"),eU=b((f,h)=>{let w=m$(f);if(w!==void 0&&Xi(w,h)!==w)throw new TypeError(`Expected ${h}-bit integer, got ${f}`);return w},"expectSizedInt"),Xi=b((f,h)=>{switch(h){case 32:return Int32Array.of(f)[0];case 16:return Int16Array.of(f)[0];case 8:return Int8Array.of(f)[0]}},"castInt"),Yi=b((f,h)=>{if(f===null||f===void 0){if(h)throw new TypeError(`Expected a non-null value for ${h}`);throw new TypeError("Expected a non-null value")}return f},"expectNonNull"),TR=b((f)=>{if(f===null||f===void 0)return;if(typeof f==="object"&&!Array.isArray(f))return f;let h=Array.isArray(f)?"array":typeof f;throw new TypeError(`Expected object, got ${h}: ${f}`)},"expectObject"),Mi=b((f)=>{if(f===null||f===void 0)return;if(typeof f==="string")return f;if(["boolean","number","bigint"].includes(typeof f))return d$.warn(fE(`Expected string, got ${typeof f}: ${f}`)),String(f);throw new TypeError(`Expected string, got ${typeof f}: ${f}`)},"expectString"),Qi=b((f)=>{if(f===null||f===void 0)return;let h=TR(f),w=Object.entries(h).filter(([,s])=>s!=null).map(([s])=>s);if(w.length===0)throw new TypeError("Unions must have exactly one non-null member. None were found.");if(w.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${w} were not null.`);return h},"expectUnion"),aU=b((f)=>{if(typeof f=="string")return b$(_w(f));return b$(f)},"strictParseDouble"),Ki=aU,UR=b((f)=>{if(typeof f=="string")return t4(_w(f));return t4(f)},"strictParseFloat32"),Zi=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,_w=b((f)=>{let h=f.match(Zi);if(h===null||h[0].length!==f.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(f)},"parseNumber"),oU=b((f)=>{if(typeof f=="string")return FR(f);return b$(f)},"limitedParseDouble"),Ji=oU,Vi=oU,Pi=b((f)=>{if(typeof f=="string")return FR(f);return t4(f)},"limitedParseFloat32"),FR=b((f)=>{switch(f){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new Error(`Unable to parse float value: ${f}`)}},"parseFloatString"),CR=b((f)=>{if(typeof f==="string")return m$(_w(f));return m$(f)},"strictParseLong"),Hi=CR,Ni=b((f)=>{if(typeof f==="string")return gU(_w(f));return gU(f)},"strictParseInt32"),gw=b((f)=>{if(typeof f==="string")return xU(_w(f));return xU(f)},"strictParseShort"),IR=b((f)=>{if(typeof f==="string")return _U(_w(f));return _U(f)},"strictParseByte"),fE=b((f)=>{return String(new TypeError(f).stack||f).split(`
|
|
29
|
+
${zh.toHex($)}`}getCanonicalPath({path:f}){if(this.uriEscapePath){let h=[];for(let $ of f.split("/")){if($?.length===0)continue;if($===".")continue;if($==="..")h.pop();else h.push($)}let w=`${f?.startsWith("/")?"/":""}${h.join("/")}${h.length>0&&f?.endsWith("/")?"/":""}`;return g4.escapeUri(w).replace(/%2F/g,"/")}return f}async getSignature(f,h,w,s){let $=await this.createStringToSign(f,h,s),r=new this.sha256(await w);return r.update(ZU.toUint8Array($)),zh.toHex(await r.digest())}getSigningKey(f,h,w,s){return Pz(this.sha256,f,w,h,s||this.service)}validateResolvedCredentials(f){if(typeof f!=="object"||typeof f.accessKeyId!=="string"||typeof f.secretAccessKey!=="string")throw new Error("Resolved credential object is not valid")}},d4=p0((f)=>{let h=Pm(f).replace(/[\-:]/g,"");return{longDate:h,shortDate:h.slice(0,8)}},"formatDate"),Sz=p0((f)=>Object.keys(f).sort().join(";"),"getCanonicalHeaderList")});var cz=H((rU0,iz)=>{var{defineProperty:n4,getOwnPropertyDescriptor:Dm,getOwnPropertyNames:qm}=Object,km=Object.prototype.hasOwnProperty,f1=(f,h)=>n4(f,"name",{value:h,configurable:!0}),ym=(f,h)=>{for(var w in h)n4(f,w,{get:h[w],enumerable:!0})},jm=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of qm(h))if(!km.call(f,$)&&$!==w)n4(f,$,{get:()=>h[$],enumerable:!(s=Dm(h,$))||s.enumerable})}return f},Om=(f)=>jm(n4({},"__esModule",{value:!0}),f),vz={};ym(vz,{AWSSDKSigV4Signer:()=>mm,AwsSdkSigV4ASigner:()=>im,AwsSdkSigV4Signer:()=>kU,NODE_SIGV4A_CONFIG_OPTIONS:()=>xm,resolveAWSSDKSigV4Config:()=>nm,resolveAwsSdkSigV4AConfig:()=>gm,resolveAwsSdkSigV4Config:()=>bz,validateSigningProperties:()=>qU});iz.exports=Om(vz);var lm=t0(),vm=t0(),yz=f1((f)=>vm.HttpResponse.isInstance(f)?f.headers?.date??f.headers?.Date:void 0,"getDateHeader"),DU=f1((f)=>new Date(Date.now()+f),"getSkewCorrectedDate"),bm=f1((f,h)=>Math.abs(DU(h).getTime()-f)>=300000,"isClockSkewed"),jz=f1((f,h)=>{let w=Date.parse(f);if(bm(w,h))return w-Date.now();return h},"getUpdatedSystemClockOffset"),q$=f1((f,h)=>{if(!h)throw new Error(`Property \`${f}\` is not resolved for AWS SDK SigV4Auth`);return h},"throwSigningPropertyError"),qU=f1(async(f)=>{let h=q$("context",f.context),w=q$("config",f.config),s=h.endpointV2?.properties?.authSchemes?.[0],r=await q$("signer",w.signer)(s),E=f?.signingRegion,T=f?.signingRegionSet,U=f?.signingName;return{config:w,signer:r,signingRegion:E,signingRegionSet:T,signingName:U}},"validateSigningProperties"),kU=class{static{f1(this,"AwsSdkSigV4Signer")}async sign(f,h,w){if(!lm.HttpRequest.isInstance(f))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");let s=await qU(w),{config:$,signer:r}=s,{signingRegion:E,signingName:T}=s,U=w.context;if(U?.authSchemes?.length??0>1){let[C,I]=U.authSchemes;if(C?.name==="sigv4a"&&I?.name==="sigv4")E=I?.signingRegion??E,T=I?.signingName??T}return await r.sign(f,{signingDate:DU($.systemClockOffset),signingRegion:E,signingService:T})}errorHandler(f){return(h)=>{let w=h.ServerTime??yz(h.$response);if(w){let s=q$("config",f.config),$=s.systemClockOffset;if(s.systemClockOffset=jz(w,s.systemClockOffset),s.systemClockOffset!==$&&h.$metadata)h.$metadata.clockSkewCorrected=!0}throw h}}successHandler(f,h){let w=yz(f);if(w){let s=q$("config",h.config);s.systemClockOffset=jz(w,s.systemClockOffset)}}},mm=kU,dm=t0(),im=class extends kU{static{f1(this,"AwsSdkSigV4ASigner")}async sign(f,h,w){if(!dm.HttpRequest.isInstance(f))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");let{config:s,signer:$,signingRegion:r,signingRegionSet:E,signingName:T}=await qU(w),F=(await s.sigv4aSigningRegionSet?.()??E??[r]).join(",");return await $.sign(f,{signingDate:DU(s.systemClockOffset),signingRegion:F,signingService:T})}},cm=m0(),Oz=D$(),gm=f1((f)=>{return f.sigv4aSigningRegionSet=cm.normalizeProvider(f.sigv4aSigningRegionSet),f},"resolveAwsSdkSigV4AConfig"),xm={environmentVariableSelector(f){if(f.AWS_SIGV4A_SIGNING_REGION_SET)return f.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((h)=>h.trim());throw new Oz.ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:!0})},configFileSelector(f){if(f.sigv4a_signing_region_set)return(f.sigv4a_signing_region_set??"").split(",").map((h)=>h.trim());throw new Oz.ProviderError("sigv4a_signing_region_set not set in profile.",{tryNextLink:!0})},default:void 0},_m=I1(),ph=m0(),lz=kz(),bz=f1((f)=>{let h=f.credentials,w=!!f.credentials,s=void 0;Object.defineProperty(f,"credentials",{set(F){if(F&&F!==h&&F!==s)w=!0;h=F;let C=mz(f,{credentials:h,credentialDefaultProvider:f.credentialDefaultProvider}),I=dz(f,C);if(w&&!I.attributed)s=f1(async(L)=>I(L).then((W)=>_m.setCredentialFeature(W,"CREDENTIALS_CODE","e")),"resolvedCredentials"),s.memoized=I.memoized,s.configBound=I.configBound,s.attributed=!0;else s=I},get(){return s},enumerable:!0,configurable:!0}),f.credentials=h;let{signingEscapePath:$=!0,systemClockOffset:r=f.systemClockOffset||0,sha256:E}=f,T;if(f.signer)T=ph.normalizeProvider(f.signer);else if(f.regionInfoProvider)T=f1(()=>ph.normalizeProvider(f.region)().then(async(F)=>[await f.regionInfoProvider(F,{useFipsEndpoint:await f.useFipsEndpoint(),useDualstackEndpoint:await f.useDualstackEndpoint()})||{},F]).then(([F,C])=>{let{signingRegion:I,signingService:L}=F;f.signingRegion=f.signingRegion||I||C,f.signingName=f.signingName||L||f.serviceId;let W={...f,credentials:f.credentials,region:f.signingRegion,service:f.signingName,sha256:E,uriEscapePath:$};return new(f.signerConstructor||lz.SignatureV4)(W)}),"signer");else T=f1(async(F)=>{F=Object.assign({},{name:"sigv4",signingName:f.signingName||f.defaultSigningName,signingRegion:await ph.normalizeProvider(f.region)(),properties:{}},F);let{signingRegion:C,signingName:I}=F;f.signingRegion=f.signingRegion||C,f.signingName=f.signingName||I||f.serviceId;let L={...f,credentials:f.credentials,region:f.signingRegion,service:f.signingName,sha256:E,uriEscapePath:$};return new(f.signerConstructor||lz.SignatureV4)(L)},"signer");return Object.assign(f,{systemClockOffset:r,signingEscapePath:$,signer:T})},"resolveAwsSdkSigV4Config"),nm=bz;function mz(f,{credentials:h,credentialDefaultProvider:w}){let s;if(h)if(!h?.memoized)s=ph.memoizeIdentityProvider(h,ph.isIdentityExpired,ph.doesIdentityRequireRefresh);else s=h;else if(w)s=ph.normalizeProvider(w(Object.assign({},f,{parentClientConfig:f})));else s=f1(async()=>{throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")},"credentialsProvider");return s.memoized=!0,s}f1(mz,"normalizeCredentialProvider");function dz(f,h){if(h.configBound)return h;let w=f1(async(s)=>h({...s,callerClientConfig:f}),"fn");return w.memoized=h.memoized,w.configBound=!0,w}f1(dz,"bindCallerConfig")});var ez=H((UU0,nz)=>{var{defineProperty:e4,getOwnPropertyDescriptor:em,getOwnPropertyNames:am}=Object,pm=Object.prototype.hasOwnProperty,q1=(f,h)=>e4(f,"name",{value:h,configurable:!0}),om=(f,h)=>{for(var w in h)e4(f,w,{get:h[w],enumerable:!0})},um=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of am(h))if(!pm.call(f,$)&&$!==w)e4(f,$,{get:()=>h[$],enumerable:!(s=em(h,$))||s.enumerable})}return f},tm=(f)=>um(e4({},"__esModule",{value:!0}),f),_z={};om(_z,{constructStack:()=>yU});nz.exports=tm(_z);var oh=q1((f,h)=>{let w=[];if(f)w.push(f);if(h)for(let s of h)w.push(s);return w},"getAllAliases"),Rh=q1((f,h)=>{return`${f||"anonymous"}${h&&h.length>0?` (a.k.a. ${h.join(",")})`:""}`},"getMiddlewareNameWithAliases"),yU=q1(()=>{let f=[],h=[],w=!1,s=new Set,$=q1((I)=>I.sort((L,W)=>gz[W.step]-gz[L.step]||xz[W.priority||"normal"]-xz[L.priority||"normal"]),"sort"),r=q1((I)=>{let L=!1,W=q1((X)=>{let Q=oh(X.name,X.aliases);if(Q.includes(I)){L=!0;for(let M of Q)s.delete(M);return!1}return!0},"filterCb");return f=f.filter(W),h=h.filter(W),L},"removeByName"),E=q1((I)=>{let L=!1,W=q1((X)=>{if(X.middleware===I){L=!0;for(let Q of oh(X.name,X.aliases))s.delete(Q);return!1}return!0},"filterCb");return f=f.filter(W),h=h.filter(W),L},"removeByReference"),T=q1((I)=>{return f.forEach((L)=>{I.add(L.middleware,{...L})}),h.forEach((L)=>{I.addRelativeTo(L.middleware,{...L})}),I.identifyOnResolve?.(C.identifyOnResolve()),I},"cloneTo"),U=q1((I)=>{let L=[];return I.before.forEach((W)=>{if(W.before.length===0&&W.after.length===0)L.push(W);else L.push(...U(W))}),L.push(I),I.after.reverse().forEach((W)=>{if(W.before.length===0&&W.after.length===0)L.push(W);else L.push(...U(W))}),L},"expandRelativeMiddlewareList"),F=q1((I=!1)=>{let L=[],W=[],X={};return f.forEach((M)=>{let q={...M,before:[],after:[]};for(let N of oh(q.name,q.aliases))X[N]=q;L.push(q)}),h.forEach((M)=>{let q={...M,before:[],after:[]};for(let N of oh(q.name,q.aliases))X[N]=q;W.push(q)}),W.forEach((M)=>{if(M.toMiddleware){let q=X[M.toMiddleware];if(q===void 0){if(I)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")q.after.push(M);if(M.relation==="before")q.before.push(M)}}),$(L).map(U).reduce((M,q)=>{return M.push(...q),M},[])},"getMiddlewareList"),C={add:(I,L={})=>{let{name:W,override:X,aliases:Q}=L,M={step:"initialize",priority:"normal",middleware:I,...L},q=oh(W,Q);if(q.length>0){if(q.some((N)=>s.has(N))){if(!X)throw new Error(`Duplicate middleware name '${Rh(W,Q)}'`);for(let N of q){let y=f.findIndex((L0)=>L0.name===N||L0.aliases?.some((b0)=>b0===N));if(y===-1)continue;let n=f[y];if(n.step!==M.step||M.priority!==n.priority)throw new Error(`"${Rh(n.name,n.aliases)}" middleware with ${n.priority} priority in ${n.step} step cannot be overridden by "${Rh(W,Q)}" middleware with ${M.priority} priority in ${M.step} step.`);f.splice(y,1)}}for(let N of q)s.add(N)}f.push(M)},addRelativeTo:(I,L)=>{let{name:W,override:X,aliases:Q}=L,M={middleware:I,...L},q=oh(W,Q);if(q.length>0){if(q.some((N)=>s.has(N))){if(!X)throw new Error(`Duplicate middleware name '${Rh(W,Q)}'`);for(let N of q){let y=h.findIndex((L0)=>L0.name===N||L0.aliases?.some((b0)=>b0===N));if(y===-1)continue;let n=h[y];if(n.toMiddleware!==M.toMiddleware||n.relation!==M.relation)throw new Error(`"${Rh(n.name,n.aliases)}" middleware ${n.relation} "${n.toMiddleware}" middleware cannot be overridden by "${Rh(W,Q)}" middleware ${M.relation} "${M.toMiddleware}" middleware.`);h.splice(y,1)}}for(let N of q)s.add(N)}h.push(M)},clone:()=>T(yU()),use:(I)=>{I.applyToStack(C)},remove:(I)=>{if(typeof I==="string")return r(I);else return E(I)},removeByTag:(I)=>{let L=!1,W=q1((X)=>{let{tags:Q,name:M,aliases:q}=X;if(Q&&Q.includes(I)){let N=oh(M,q);for(let y of N)s.delete(y);return L=!0,!1}return!0},"filterCb");return f=f.filter(W),h=h.filter(W),L},concat:(I)=>{let L=T(yU());return L.use(I),L.identifyOnResolve(w||L.identifyOnResolve()||(I.identifyOnResolve?.()??!1)),L},applyToStack:T,identify:()=>{return F(!0).map((I)=>{let L=I.step??I.relation+" "+I.toMiddleware;return Rh(I.name,I.aliases)+" - "+L})},identifyOnResolve(I){if(typeof I==="boolean")w=I;return w},resolve:(I,L)=>{for(let W of F().map((X)=>X.middleware).reverse())I=W(I,L);if(w)console.log(C.identify());return I}};return C},"constructStack"),gz={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},xz={high:3,normal:2,low:1}});var J0=H((FU0,L7)=>{var{defineProperty:o4,getOwnPropertyDescriptor:fd,getOwnPropertyNames:hd}=Object,wd=Object.prototype.hasOwnProperty,b=(f,h)=>o4(f,"name",{value:h,configurable:!0}),sd=(f,h)=>{for(var w in h)o4(f,w,{get:h[w],enumerable:!0})},$d=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of hd(h))if(!wd.call(f,$)&&$!==w)o4(f,$,{get:()=>h[$],enumerable:!(s=fd(h,$))||s.enumerable})}return f},rd=(f)=>$d(o4({},"__esModule",{value:!0}),f),pz={};sd(pz,{Client:()=>Ed,Command:()=>uz,LazyJsonString:()=>uh,NoOpLogger:()=>wi,SENSITIVE_STRING:()=>Ud,ServiceException:()=>cd,_json:()=>dU,collectBody:()=>jU.collectBody,convertMap:()=>si,createAggregatedClient:()=>Fd,dateToUtcString:()=>$7,decorateServiceException:()=>r7,emitWarningIfUnsupportedVersion:()=>nd,expectBoolean:()=>Id,expectByte:()=>mU,expectFloat32:()=>a4,expectInt:()=>Bd,expectInt32:()=>vU,expectLong:()=>j$,expectNonNull:()=>Wd,expectNumber:()=>y$,expectObject:()=>tz,expectShort:()=>bU,expectString:()=>Ad,expectUnion:()=>zd,extendedEncodeURIComponent:()=>jU.extendedEncodeURIComponent,getArrayIfSingleItem:()=>fi,getDefaultClientConfiguration:()=>ud,getDefaultExtensionConfiguration:()=>T7,getValueFromTextNode:()=>U7,handleFloat:()=>Sd,isSerializableHeaderValue:()=>hi,limitedParseDouble:()=>gU,limitedParseFloat:()=>Yd,limitedParseFloat32:()=>Md,loadConfigsForDefaultMode:()=>_d,logger:()=>O$,map:()=>_U,parseBoolean:()=>Cd,parseEpochTimestamp:()=>yd,parseRfc3339DateTime:()=>Vd,parseRfc3339DateTimeWithOffset:()=>Hd,parseRfc7231DateTime:()=>kd,quoteHeader:()=>C7,resolveDefaultRuntimeConfig:()=>td,resolvedPath:()=>jU.resolvedPath,serializeDateTime:()=>Fi,serializeFloat:()=>Ui,splitEvery:()=>I7,splitHeader:()=>Ci,strictParseByte:()=>s7,strictParseDouble:()=>cU,strictParseFloat:()=>Rd,strictParseFloat32:()=>f7,strictParseInt:()=>Qd,strictParseInt32:()=>Kd,strictParseLong:()=>w7,strictParseShort:()=>mw,take:()=>$i,throwDefaultError:()=>E7,withBaseException:()=>gd});L7.exports=rd(pz);var oz=ez(),Ed=class{constructor(f){this.config=f,this.middlewareStack=oz.constructStack()}static{b(this,"Client")}send(f,h,w){let s=typeof h!=="function"?h:void 0,$=typeof h==="function"?h:w,r=s===void 0&&this.config.cacheMiddleware===!0,E;if(r){if(!this.handlers)this.handlers=new WeakMap;let T=this.handlers;if(T.has(f.constructor))E=T.get(f.constructor);else E=f.resolveMiddleware(this.middlewareStack,this.config,s),T.set(f.constructor,E)}else delete this.handlers,E=f.resolveMiddleware(this.middlewareStack,this.config,s);if($)E(f).then((T)=>$(null,T.output),(T)=>$(T)).catch(()=>{});else return E(f).then((T)=>T.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}},jU=jw(),lU=F1(),uz=class{constructor(){this.middlewareStack=oz.constructStack()}static{b(this,"Command")}static classBuilder(){return new Td}resolveMiddlewareWithContext(f,h,w,{middlewareFn:s,clientName:$,commandName:r,inputFilterSensitiveLog:E,outputFilterSensitiveLog:T,smithyContext:U,additionalContext:F,CommandCtor:C}){for(let Q of s.bind(this)(C,f,h,w))this.middlewareStack.use(Q);let I=f.concat(this.middlewareStack),{logger:L}=h,W={logger:L,clientName:$,commandName:r,inputFilterSensitiveLog:E,outputFilterSensitiveLog:T,[lU.SMITHY_CONTEXT_KEY]:{commandInstance:this,...U},...F},{requestHandler:X}=h;return I.resolve((Q)=>X.handle(Q.request,w||{}),W)}},Td=class{constructor(){this._init=()=>{},this._ep={},this._middlewareFn=()=>[],this._commandName="",this._clientName="",this._additionalContext={},this._smithyContext={},this._inputFilterSensitiveLog=(f)=>f,this._outputFilterSensitiveLog=(f)=>f,this._serializer=null,this._deserializer=null}static{b(this,"ClassBuilder")}init(f){this._init=f}ep(f){return this._ep=f,this}m(f){return this._middlewareFn=f,this}s(f,h,w={}){return this._smithyContext={service:f,operation:h,...w},this}c(f={}){return this._additionalContext=f,this}n(f,h){return this._clientName=f,this._commandName=h,this}f(f=(w)=>w,h=(w)=>w){return this._inputFilterSensitiveLog=f,this._outputFilterSensitiveLog=h,this}ser(f){return this._serializer=f,this}de(f){return this._deserializer=f,this}build(){let f=this,h;return h=class extends uz{constructor(...[w]){super();this.serialize=f._serializer,this.deserialize=f._deserializer,this.input=w??{},f._init(this)}static{b(this,"CommandRef")}static getEndpointParameterInstructions(){return f._ep}resolveMiddleware(w,s,$){return this.resolveMiddlewareWithContext(w,s,$,{CommandCtor:h,middlewareFn:f._middlewareFn,clientName:f._clientName,commandName:f._commandName,inputFilterSensitiveLog:f._inputFilterSensitiveLog,outputFilterSensitiveLog:f._outputFilterSensitiveLog,smithyContext:f._smithyContext,additionalContext:f._additionalContext})}}}},Ud="***SensitiveInformation***",Fd=b((f,h)=>{for(let w of Object.keys(f)){let s=f[w],$=b(async function(E,T,U){let F=new s(E);if(typeof T==="function")this.send(F,T);else if(typeof U==="function"){if(typeof T!=="object")throw new Error(`Expected http options but got ${typeof T}`);this.send(F,T||{},U)}else return this.send(F,T)},"methodImpl"),r=(w[0].toLowerCase()+w.slice(1)).replace(/Command$/,"");h.prototype[r]=$}},"createAggregatedClient"),Cd=b((f)=>{switch(f){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${f}"`)}},"parseBoolean"),Id=b((f)=>{if(f===null||f===void 0)return;if(typeof f==="number"){if(f===0||f===1)O$.warn(p4(`Expected boolean, got ${typeof f}: ${f}`));if(f===0)return!1;if(f===1)return!0}if(typeof f==="string"){let h=f.toLowerCase();if(h==="false"||h==="true")O$.warn(p4(`Expected boolean, got ${typeof f}: ${f}`));if(h==="false")return!1;if(h==="true")return!0}if(typeof f==="boolean")return f;throw new TypeError(`Expected boolean, got ${typeof f}: ${f}`)},"expectBoolean"),y$=b((f)=>{if(f===null||f===void 0)return;if(typeof f==="string"){let h=parseFloat(f);if(!Number.isNaN(h)){if(String(h)!==String(f))O$.warn(p4(`Expected number but observed string: ${f}`));return h}}if(typeof f==="number")return f;throw new TypeError(`Expected number, got ${typeof f}: ${f}`)},"expectNumber"),Ld=Math.ceil(340282346638528860000000000000000000000),a4=b((f)=>{let h=y$(f);if(h!==void 0&&!Number.isNaN(h)&&h!==1/0&&h!==-1/0){if(Math.abs(h)>Ld)throw new TypeError(`Expected 32-bit float, got ${f}`)}return h},"expectFloat32"),j$=b((f)=>{if(f===null||f===void 0)return;if(Number.isInteger(f)&&!Number.isNaN(f))return f;throw new TypeError(`Expected integer, got ${typeof f}: ${f}`)},"expectLong"),Bd=j$,vU=b((f)=>iU(f,32),"expectInt32"),bU=b((f)=>iU(f,16),"expectShort"),mU=b((f)=>iU(f,8),"expectByte"),iU=b((f,h)=>{let w=j$(f);if(w!==void 0&&Gd(w,h)!==w)throw new TypeError(`Expected ${h}-bit integer, got ${f}`);return w},"expectSizedInt"),Gd=b((f,h)=>{switch(h){case 32:return Int32Array.of(f)[0];case 16:return Int16Array.of(f)[0];case 8:return Int8Array.of(f)[0]}},"castInt"),Wd=b((f,h)=>{if(f===null||f===void 0){if(h)throw new TypeError(`Expected a non-null value for ${h}`);throw new TypeError("Expected a non-null value")}return f},"expectNonNull"),tz=b((f)=>{if(f===null||f===void 0)return;if(typeof f==="object"&&!Array.isArray(f))return f;let h=Array.isArray(f)?"array":typeof f;throw new TypeError(`Expected object, got ${h}: ${f}`)},"expectObject"),Ad=b((f)=>{if(f===null||f===void 0)return;if(typeof f==="string")return f;if(["boolean","number","bigint"].includes(typeof f))return O$.warn(p4(`Expected string, got ${typeof f}: ${f}`)),String(f);throw new TypeError(`Expected string, got ${typeof f}: ${f}`)},"expectString"),zd=b((f)=>{if(f===null||f===void 0)return;let h=tz(f),w=Object.entries(h).filter(([,s])=>s!=null).map(([s])=>s);if(w.length===0)throw new TypeError("Unions must have exactly one non-null member. None were found.");if(w.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${w} were not null.`);return h},"expectUnion"),cU=b((f)=>{if(typeof f=="string")return y$(iw(f));return y$(f)},"strictParseDouble"),Rd=cU,f7=b((f)=>{if(typeof f=="string")return a4(iw(f));return a4(f)},"strictParseFloat32"),Xd=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,iw=b((f)=>{let h=f.match(Xd);if(h===null||h[0].length!==f.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(f)},"parseNumber"),gU=b((f)=>{if(typeof f=="string")return h7(f);return y$(f)},"limitedParseDouble"),Sd=gU,Yd=gU,Md=b((f)=>{if(typeof f=="string")return h7(f);return a4(f)},"limitedParseFloat32"),h7=b((f)=>{switch(f){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new Error(`Unable to parse float value: ${f}`)}},"parseFloatString"),w7=b((f)=>{if(typeof f==="string")return j$(iw(f));return j$(f)},"strictParseLong"),Qd=w7,Kd=b((f)=>{if(typeof f==="string")return vU(iw(f));return vU(f)},"strictParseInt32"),mw=b((f)=>{if(typeof f==="string")return bU(iw(f));return bU(f)},"strictParseShort"),s7=b((f)=>{if(typeof f==="string")return mU(iw(f));return mU(f)},"strictParseByte"),p4=b((f)=>{return String(new TypeError(f).stack||f).split(`
|
|
30
30
|
`).slice(0,5).filter((h)=>!h.includes("stackTraceWarning")).join(`
|
|
31
|
-
`)},"stackTraceWarning"),d$={warn:console.warn},Di=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],pU=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function LR(f){let h=f.getUTCFullYear(),w=f.getUTCMonth(),s=f.getUTCDay(),$=f.getUTCDate(),r=f.getUTCHours(),E=f.getUTCMinutes(),T=f.getUTCSeconds(),U=$<10?`0${$}`:`${$}`,F=r<10?`0${r}`:`${r}`,C=E<10?`0${E}`:`${E}`,I=T<10?`0${T}`:`${T}`;return`${Di[s]}, ${U} ${pU[w]} ${h} ${F}:${C}:${I} GMT`}b(LR,"dateToUtcString");var qi=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),ki=b((f)=>{if(f===null||f===void 0)return;if(typeof f!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let h=qi.exec(f);if(!h)throw new TypeError("Invalid RFC-3339 date-time value");let[w,s,$,r,E,T,U,F]=h,C=gw(xw(s)),I=Y1($,"month",1,12),B=Y1(r,"day",1,31);return v$(C,I,B,{hours:E,minutes:T,seconds:U,fractionalMilliseconds:F})},"parseRfc3339DateTime"),yi=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),ji=b((f)=>{if(f===null||f===void 0)return;if(typeof f!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let h=yi.exec(f);if(!h)throw new TypeError("Invalid RFC-3339 date-time value");let[w,s,$,r,E,T,U,F,C]=h,I=gw(xw(s)),B=Y1($,"month",1,12),G=Y1(r,"day",1,31),S=v$(I,B,G,{hours:E,minutes:T,seconds:U,fractionalMilliseconds:F});if(C.toUpperCase()!="Z")S.setTime(S.getTime()-ei(C));return S},"parseRfc3339DateTimeWithOffset"),Oi=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$/),li=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$/),vi=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})$/),bi=b((f)=>{if(f===null||f===void 0)return;if(typeof f!=="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let h=Oi.exec(f);if(h){let[w,s,$,r,E,T,U,F]=h;return v$(gw(xw(r)),iU($),Y1(s,"day",1,31),{hours:E,minutes:T,seconds:U,fractionalMilliseconds:F})}if(h=li.exec(f),h){let[w,s,$,r,E,T,U,F]=h;return ci(v$(di(r),iU($),Y1(s,"day",1,31),{hours:E,minutes:T,seconds:U,fractionalMilliseconds:F}))}if(h=vi.exec(f),h){let[w,s,$,r,E,T,U,F]=h;return v$(gw(xw(F)),iU(s),Y1($.trimLeft(),"day",1,31),{hours:r,minutes:E,seconds:T,fractionalMilliseconds:U})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),mi=b((f)=>{if(f===null||f===void 0)return;let h;if(typeof f==="number")h=f;else if(typeof f==="string")h=aU(f);else if(typeof f==="object"&&f.tag===1)h=f.value;else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(h)||h===1/0||h===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(h*1000))},"parseEpochTimestamp"),v$=b((f,h,w,s)=>{let $=h-1;return xi(f,$,w),new Date(Date.UTC(f,$,w,Y1(s.hours,"hour",0,23),Y1(s.minutes,"minute",0,59),Y1(s.seconds,"seconds",0,60),ni(s.fractionalMilliseconds)))},"buildDate"),di=b((f)=>{let h=new Date().getUTCFullYear(),w=Math.floor(h/100)*100+gw(xw(f));if(w<h)return w+100;return w},"parseTwoDigitYear"),ii=1576800000000,ci=b((f)=>{if(f.getTime()-new Date().getTime()>ii)return new Date(Date.UTC(f.getUTCFullYear()-100,f.getUTCMonth(),f.getUTCDate(),f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()));return f},"adjustRfc850Year"),iU=b((f)=>{let h=pU.indexOf(f);if(h<0)throw new TypeError(`Invalid month: ${f}`);return h+1},"parseMonthByShortName"),gi=[31,28,31,30,31,30,31,31,30,31,30,31],xi=b((f,h,w)=>{let s=gi[h];if(h===1&&_i(f))s=29;if(w>s)throw new TypeError(`Invalid day for ${pU[h]} in ${f}: ${w}`)},"validateDayOfMonth"),_i=b((f)=>{return f%4===0&&(f%100!==0||f%400===0)},"isLeapYear"),Y1=b((f,h,w,s)=>{let $=IR(xw(f));if($<w||$>s)throw new TypeError(`${h} must be between ${w} and ${s}, inclusive`);return $},"parseDateValue"),ni=b((f)=>{if(f===null||f===void 0)return 0;return UR("0."+f)*1000},"parseMilliseconds"),ei=b((f)=>{let h=f[0],w=1;if(h=="+")w=1;else if(h=="-")w=-1;else throw new TypeError(`Offset direction, ${h}, must be "+" or "-"`);let s=Number(f.substring(1,3)),$=Number(f.substring(4,6));return w*(s*60+$)*60*1000},"parseOffsetToMilliseconds"),xw=b((f)=>{let h=0;while(h<f.length-1&&f.charAt(h)==="0")h++;if(h===0)return f;return f.slice(h)},"stripLeadingZeroes"),ai=class f extends Error{static{b(this,"ServiceException")}constructor(h){super(h.message);Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=h.name,this.$fault=h.$fault,this.$metadata=h.$metadata}static isInstance(h){if(!h)return!1;let w=h;return f.prototype.isPrototypeOf(w)||Boolean(w.$fault)&&Boolean(w.$metadata)&&(w.$fault==="client"||w.$fault==="server")}static[Symbol.hasInstance](h){if(!h)return!1;let w=h;if(this===f)return f.isInstance(h);if(f.isInstance(h)){if(w.name&&this.name)return this.prototype.isPrototypeOf(h)||w.name===this.name;return this.prototype.isPrototypeOf(h)}return!1}},BR=b((f,h={})=>{Object.entries(h).filter(([,s])=>s!==void 0).forEach(([s,$])=>{if(f[s]==null||f[s]==="")f[s]=$});let w=f.message||f.Message||"UnknownError";return f.message=w,delete f.Message,f},"decorateServiceException"),AR=b(({output:f,parsedBody:h,exceptionCtor:w,errorCode:s})=>{let $=pi(f),r=$.httpStatusCode?$.httpStatusCode+"":void 0,E=new w({name:h?.code||h?.Code||s||r||"UnknownError",$fault:"client",$metadata:$});throw BR(E,h)},"throwDefaultError"),oi=b((f)=>{return({output:h,parsedBody:w,errorCode:s})=>{AR({output:h,parsedBody:w,exceptionCtor:f,errorCode:s})}},"withBaseException"),pi=b((f)=>({httpStatusCode:f.statusCode,requestId:f.headers["x-amzn-requestid"]??f.headers["x-amzn-request-id"]??f.headers["x-amz-request-id"],extendedRequestId:f.headers["x-amz-id-2"],cfId:f.headers["x-amz-cf-id"]}),"deserializeMetadata"),ui=b((f)=>{switch(f){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"),sR=!1,ti=b((f)=>{if(f&&!sR&&parseInt(f.substring(1,f.indexOf(".")))<16)sR=!0},"emitWarningIfUnsupportedVersion"),fc=b((f)=>{let h=[];for(let w in cU.AlgorithmId){let s=cU.AlgorithmId[w];if(f[s]===void 0)continue;h.push({algorithmId:()=>s,checksumConstructor:()=>f[s]})}return{addChecksumAlgorithm(w){h.push(w)},checksumAlgorithms(){return h}}},"getChecksumConfiguration"),hc=b((f)=>{let h={};return f.checksumAlgorithms().forEach((w)=>{h[w.algorithmId()]=w.checksumConstructor()}),h},"resolveChecksumRuntimeConfig"),wc=b((f)=>{return{setRetryStrategy(h){f.retryStrategy=h},retryStrategy(){return f.retryStrategy}}},"getRetryConfiguration"),sc=b((f)=>{let h={};return h.retryStrategy=f.retryStrategy(),h},"resolveRetryRuntimeConfig"),GR=b((f)=>{return Object.assign(fc(f),wc(f))},"getDefaultExtensionConfiguration"),$c=GR,rc=b((f)=>{return Object.assign(hc(f),sc(f))},"resolveDefaultRuntimeConfig"),Ec=b((f)=>Array.isArray(f)?f:[f],"getArrayIfSingleItem"),WR=b((f)=>{for(let w in f)if(f.hasOwnProperty(w)&&f[w]["#text"]!==void 0)f[w]=f[w]["#text"];else if(typeof f[w]==="object"&&f[w]!==null)f[w]=WR(f[w]);return f},"getValueFromTextNode"),Tc=b((f)=>{return f!=null},"isSerializableHeaderValue"),fw=b(function f(h){return Object.assign(new String(h),{deserializeJSON(){return JSON.parse(String(h))},toString(){return String(h)},toJSON(){return String(h)}})},"LazyJsonString");fw.from=(f)=>{if(f&&typeof f==="object"&&(f instanceof fw||("deserializeJSON"in f)))return f;else if(typeof f==="string"||Object.getPrototypeOf(f)===String.prototype)return fw(String(f));return fw(JSON.stringify(f))};fw.fromObject=fw.from;var Uc=class{static{b(this,"NoOpLogger")}trace(){}debug(){}info(){}warn(){}error(){}};function uU(f,h,w){let s,$,r;if(typeof h==="undefined"&&typeof w==="undefined")s={},r=f;else if(s=f,typeof h==="function")return $=h,r=w,Ic(s,$,r);else r=h;for(let E of Object.keys(r)){if(!Array.isArray(r[E])){s[E]=r[E];continue}zR(s,null,r,E)}return s}b(uU,"map");var Fc=b((f)=>{let h={};for(let[w,s]of Object.entries(f||{}))h[w]=[,s];return h},"convertMap"),Cc=b((f,h)=>{let w={};for(let s in h)zR(w,f,h,s);return w},"take"),Ic=b((f,h,w)=>{return uU(f,Object.entries(w).reduce((s,[$,r])=>{if(Array.isArray(r))s[$]=r;else if(typeof r==="function")s[$]=[h,r()];else s[$]=[h,r];return s},{}))},"mapWithFilter"),zR=b((f,h,w,s)=>{if(h!==null){let E=w[s];if(typeof E==="function")E=[,E];let[T=Lc,U=Bc,F=s]=E;if(typeof T==="function"&&T(h[F])||typeof T!=="function"&&!!T)f[s]=U(h[F]);return}let[$,r]=w[s];if(typeof r==="function"){let E,T=$===void 0&&(E=r())!=null,U=typeof $==="function"&&!!$(void 0)||typeof $!=="function"&&!!$;if(T)f[s]=E;else if(U)f[s]=r()}else{let E=$===void 0&&r!=null,T=typeof $==="function"&&!!$(r)||typeof $!=="function"&&!!$;if(E||T)f[s]=r}},"applyInstruction"),Lc=b((f)=>f!=null,"nonNullish"),Bc=b((f)=>f,"pass");function RR(f){if(f.includes(",")||f.includes('"'))f=`"${f.replace(/"/g,"\\\"")}"`;return f}b(RR,"quoteHeader");var Ac=b((f)=>{if(f!==f)return"NaN";switch(f){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return f}},"serializeFloat"),Gc=b((f)=>f.toISOString().replace(".000Z","Z"),"serializeDateTime"),nU=b((f)=>{if(f==null)return{};if(Array.isArray(f))return f.filter((h)=>h!=null).map(nU);if(typeof f==="object"){let h={};for(let w of Object.keys(f)){if(f[w]==null)continue;h[w]=nU(f[w])}return h}return f},"_json");function SR(f,h,w){if(w<=0||!Number.isInteger(w))throw new Error("Invalid number of delimiters ("+w+") for splitEvery.");let s=f.split(h);if(w===1)return s;let $=[],r="";for(let E=0;E<s.length;E++){if(r==="")r=s[E];else r+=h+s[E];if((E+1)%w===0)$.push(r),r=""}if(r!=="")$.push(r);return $}b(SR,"splitEvery");var Wc=b((f)=>{let h=f.length,w=[],s=!1,$=void 0,r=0;for(let E=0;E<h;++E){let T=f[E];switch(T){case'"':if($!=="\\")s=!s;break;case",":if(!s)w.push(f.slice(r,E)),r=E+1;break;default:}$=T}return w.push(f.slice(r)),w.map((E)=>{E=E.trim();let T=E.length;if(T<2)return E;if(E[0]==='"'&&E[T-1]==='"')E=E.slice(1,T-1);return E.replace(/\\"/g,'"')})},"splitHeader")});var wE=H((Yc)=>{var zc=":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",YR="[: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]["+zc+"]*",Rc=new RegExp("^"+YR+"$"),Sc=function(f,h){let w=[],s=h.exec(f);while(s){let $=[];$.startIndex=h.lastIndex-s[0].length;let r=s.length;for(let E=0;E<r;E++)$.push(s[E]);w.push($),s=h.exec(f)}return w},Xc=function(f){let h=Rc.exec(f);return!(h===null||typeof h==="undefined")};Yc.isExist=function(f){return typeof f!=="undefined"};Yc.isEmptyObject=function(f){return Object.keys(f).length===0};Yc.merge=function(f,h,w){if(h){let s=Object.keys(h),$=s.length;for(let r=0;r<$;r++)if(w==="strict")f[s[r]]=[h[s[r]]];else f[s[r]]=h[s[r]]}};Yc.getValue=function(f){if(Yc.isExist(f))return f;else return""};Yc.isName=Xc;Yc.getAllMatches=Sc;Yc.nameRegexp=YR});var fF=H((lc)=>{var tU=wE(),Pc={allowBooleanAttributes:!1,unpairedTags:[]};lc.validate=function(f,h){h=Object.assign({},Pc,h);let w=[],s=!1,$=!1;if(f[0]==="\uFEFF")f=f.substr(1);for(let r=0;r<f.length;r++)if(f[r]==="<"&&f[r+1]==="?"){if(r+=2,r=KR(f,r),r.err)return r}else if(f[r]==="<"){let E=r;if(r++,f[r]==="!"){r=ZR(f,r);continue}else{let T=!1;if(f[r]==="/")T=!0,r++;let U="";for(;r<f.length&&f[r]!==">"&&f[r]!==" "&&f[r]!=="\t"&&f[r]!==`
|
|
32
|
-
`&&f[r]!=="\r";r++)U+=f[r];if(U=U.trim(),U[U.length-1]==="/")U=U.substring(0,U.length-1),r--;if(!
|
|
33
|
-
`||f==="\r"}function
|
|
34
|
-
`);let h=new
|
|
35
|
-
`;return
|
|
31
|
+
`)},"stackTraceWarning"),O$={warn:console.warn},Zd=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],xU=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function $7(f){let h=f.getUTCFullYear(),w=f.getUTCMonth(),s=f.getUTCDay(),$=f.getUTCDate(),r=f.getUTCHours(),E=f.getUTCMinutes(),T=f.getUTCSeconds(),U=$<10?`0${$}`:`${$}`,F=r<10?`0${r}`:`${r}`,C=E<10?`0${E}`:`${E}`,I=T<10?`0${T}`:`${T}`;return`${Zd[s]}, ${U} ${xU[w]} ${h} ${F}:${C}:${I} GMT`}b($7,"dateToUtcString");var Jd=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),Vd=b((f)=>{if(f===null||f===void 0)return;if(typeof f!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let h=Jd.exec(f);if(!h)throw new TypeError("Invalid RFC-3339 date-time value");let[w,s,$,r,E,T,U,F]=h,C=mw(dw(s)),I=Yf($,"month",1,12),L=Yf(r,"day",1,31);return k$(C,I,L,{hours:E,minutes:T,seconds:U,fractionalMilliseconds:F})},"parseRfc3339DateTime"),Pd=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),Hd=b((f)=>{if(f===null||f===void 0)return;if(typeof f!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let h=Pd.exec(f);if(!h)throw new TypeError("Invalid RFC-3339 date-time value");let[w,s,$,r,E,T,U,F,C]=h,I=mw(dw(s)),L=Yf($,"month",1,12),W=Yf(r,"day",1,31),X=k$(I,L,W,{hours:E,minutes:T,seconds:U,fractionalMilliseconds:F});if(C.toUpperCase()!="Z")X.setTime(X.getTime()-id(C));return X},"parseRfc3339DateTimeWithOffset"),Nd=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$/),Dd=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$/),qd=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})$/),kd=b((f)=>{if(f===null||f===void 0)return;if(typeof f!=="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let h=Nd.exec(f);if(h){let[w,s,$,r,E,T,U,F]=h;return k$(mw(dw(r)),OU($),Yf(s,"day",1,31),{hours:E,minutes:T,seconds:U,fractionalMilliseconds:F})}if(h=Dd.exec(f),h){let[w,s,$,r,E,T,U,F]=h;return ld(k$(jd(r),OU($),Yf(s,"day",1,31),{hours:E,minutes:T,seconds:U,fractionalMilliseconds:F}))}if(h=qd.exec(f),h){let[w,s,$,r,E,T,U,F]=h;return k$(mw(dw(F)),OU(s),Yf($.trimLeft(),"day",1,31),{hours:r,minutes:E,seconds:T,fractionalMilliseconds:U})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),yd=b((f)=>{if(f===null||f===void 0)return;let h;if(typeof f==="number")h=f;else if(typeof f==="string")h=cU(f);else if(typeof f==="object"&&f.tag===1)h=f.value;else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(h)||h===1/0||h===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(h*1000))},"parseEpochTimestamp"),k$=b((f,h,w,s)=>{let $=h-1;return bd(f,$,w),new Date(Date.UTC(f,$,w,Yf(s.hours,"hour",0,23),Yf(s.minutes,"minute",0,59),Yf(s.seconds,"seconds",0,60),dd(s.fractionalMilliseconds)))},"buildDate"),jd=b((f)=>{let h=new Date().getUTCFullYear(),w=Math.floor(h/100)*100+mw(dw(f));if(w<h)return w+100;return w},"parseTwoDigitYear"),Od=1576800000000,ld=b((f)=>{if(f.getTime()-new Date().getTime()>Od)return new Date(Date.UTC(f.getUTCFullYear()-100,f.getUTCMonth(),f.getUTCDate(),f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()));return f},"adjustRfc850Year"),OU=b((f)=>{let h=xU.indexOf(f);if(h<0)throw new TypeError(`Invalid month: ${f}`);return h+1},"parseMonthByShortName"),vd=[31,28,31,30,31,30,31,31,30,31,30,31],bd=b((f,h,w)=>{let s=vd[h];if(h===1&&md(f))s=29;if(w>s)throw new TypeError(`Invalid day for ${xU[h]} in ${f}: ${w}`)},"validateDayOfMonth"),md=b((f)=>{return f%4===0&&(f%100!==0||f%400===0)},"isLeapYear"),Yf=b((f,h,w,s)=>{let $=s7(dw(f));if($<w||$>s)throw new TypeError(`${h} must be between ${w} and ${s}, inclusive`);return $},"parseDateValue"),dd=b((f)=>{if(f===null||f===void 0)return 0;return f7("0."+f)*1000},"parseMilliseconds"),id=b((f)=>{let h=f[0],w=1;if(h=="+")w=1;else if(h=="-")w=-1;else throw new TypeError(`Offset direction, ${h}, must be "+" or "-"`);let s=Number(f.substring(1,3)),$=Number(f.substring(4,6));return w*(s*60+$)*60*1000},"parseOffsetToMilliseconds"),dw=b((f)=>{let h=0;while(h<f.length-1&&f.charAt(h)==="0")h++;if(h===0)return f;return f.slice(h)},"stripLeadingZeroes"),cd=class f extends Error{static{b(this,"ServiceException")}constructor(h){super(h.message);Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=h.name,this.$fault=h.$fault,this.$metadata=h.$metadata}static isInstance(h){if(!h)return!1;let w=h;return f.prototype.isPrototypeOf(w)||Boolean(w.$fault)&&Boolean(w.$metadata)&&(w.$fault==="client"||w.$fault==="server")}static[Symbol.hasInstance](h){if(!h)return!1;let w=h;if(this===f)return f.isInstance(h);if(f.isInstance(h)){if(w.name&&this.name)return this.prototype.isPrototypeOf(h)||w.name===this.name;return this.prototype.isPrototypeOf(h)}return!1}},r7=b((f,h={})=>{Object.entries(h).filter(([,s])=>s!==void 0).forEach(([s,$])=>{if(f[s]==null||f[s]==="")f[s]=$});let w=f.message||f.Message||"UnknownError";return f.message=w,delete f.Message,f},"decorateServiceException"),E7=b(({output:f,parsedBody:h,exceptionCtor:w,errorCode:s})=>{let $=xd(f),r=$.httpStatusCode?$.httpStatusCode+"":void 0,E=new w({name:h?.code||h?.Code||s||r||"UnknownError",$fault:"client",$metadata:$});throw r7(E,h)},"throwDefaultError"),gd=b((f)=>{return({output:h,parsedBody:w,errorCode:s})=>{E7({output:h,parsedBody:w,exceptionCtor:f,errorCode:s})}},"withBaseException"),xd=b((f)=>({httpStatusCode:f.statusCode,requestId:f.headers["x-amzn-requestid"]??f.headers["x-amzn-request-id"]??f.headers["x-amz-request-id"],extendedRequestId:f.headers["x-amz-id-2"],cfId:f.headers["x-amz-cf-id"]}),"deserializeMetadata"),_d=b((f)=>{switch(f){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"),az=!1,nd=b((f)=>{if(f&&!az&&parseInt(f.substring(1,f.indexOf(".")))<16)az=!0},"emitWarningIfUnsupportedVersion"),ed=b((f)=>{let h=[];for(let w in lU.AlgorithmId){let s=lU.AlgorithmId[w];if(f[s]===void 0)continue;h.push({algorithmId:()=>s,checksumConstructor:()=>f[s]})}return{addChecksumAlgorithm(w){h.push(w)},checksumAlgorithms(){return h}}},"getChecksumConfiguration"),ad=b((f)=>{let h={};return f.checksumAlgorithms().forEach((w)=>{h[w.algorithmId()]=w.checksumConstructor()}),h},"resolveChecksumRuntimeConfig"),pd=b((f)=>{return{setRetryStrategy(h){f.retryStrategy=h},retryStrategy(){return f.retryStrategy}}},"getRetryConfiguration"),od=b((f)=>{let h={};return h.retryStrategy=f.retryStrategy(),h},"resolveRetryRuntimeConfig"),T7=b((f)=>{return Object.assign(ed(f),pd(f))},"getDefaultExtensionConfiguration"),ud=T7,td=b((f)=>{return Object.assign(ad(f),od(f))},"resolveDefaultRuntimeConfig"),fi=b((f)=>Array.isArray(f)?f:[f],"getArrayIfSingleItem"),U7=b((f)=>{for(let w in f)if(f.hasOwnProperty(w)&&f[w]["#text"]!==void 0)f[w]=f[w]["#text"];else if(typeof f[w]==="object"&&f[w]!==null)f[w]=U7(f[w]);return f},"getValueFromTextNode"),hi=b((f)=>{return f!=null},"isSerializableHeaderValue"),uh=b(function f(h){return Object.assign(new String(h),{deserializeJSON(){return JSON.parse(String(h))},toString(){return String(h)},toJSON(){return String(h)}})},"LazyJsonString");uh.from=(f)=>{if(f&&typeof f==="object"&&(f instanceof uh||("deserializeJSON"in f)))return f;else if(typeof f==="string"||Object.getPrototypeOf(f)===String.prototype)return uh(String(f));return uh(JSON.stringify(f))};uh.fromObject=uh.from;var wi=class{static{b(this,"NoOpLogger")}trace(){}debug(){}info(){}warn(){}error(){}};function _U(f,h,w){let s,$,r;if(typeof h==="undefined"&&typeof w==="undefined")s={},r=f;else if(s=f,typeof h==="function")return $=h,r=w,ri(s,$,r);else r=h;for(let E of Object.keys(r)){if(!Array.isArray(r[E])){s[E]=r[E];continue}F7(s,null,r,E)}return s}b(_U,"map");var si=b((f)=>{let h={};for(let[w,s]of Object.entries(f||{}))h[w]=[,s];return h},"convertMap"),$i=b((f,h)=>{let w={};for(let s in h)F7(w,f,h,s);return w},"take"),ri=b((f,h,w)=>{return _U(f,Object.entries(w).reduce((s,[$,r])=>{if(Array.isArray(r))s[$]=r;else if(typeof r==="function")s[$]=[h,r()];else s[$]=[h,r];return s},{}))},"mapWithFilter"),F7=b((f,h,w,s)=>{if(h!==null){let E=w[s];if(typeof E==="function")E=[,E];let[T=Ei,U=Ti,F=s]=E;if(typeof T==="function"&&T(h[F])||typeof T!=="function"&&!!T)f[s]=U(h[F]);return}let[$,r]=w[s];if(typeof r==="function"){let E,T=$===void 0&&(E=r())!=null,U=typeof $==="function"&&!!$(void 0)||typeof $!=="function"&&!!$;if(T)f[s]=E;else if(U)f[s]=r()}else{let E=$===void 0&&r!=null,T=typeof $==="function"&&!!$(r)||typeof $!=="function"&&!!$;if(E||T)f[s]=r}},"applyInstruction"),Ei=b((f)=>f!=null,"nonNullish"),Ti=b((f)=>f,"pass");function C7(f){if(f.includes(",")||f.includes('"'))f=`"${f.replace(/"/g,"\\\"")}"`;return f}b(C7,"quoteHeader");var Ui=b((f)=>{if(f!==f)return"NaN";switch(f){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return f}},"serializeFloat"),Fi=b((f)=>f.toISOString().replace(".000Z","Z"),"serializeDateTime"),dU=b((f)=>{if(f==null)return{};if(Array.isArray(f))return f.filter((h)=>h!=null).map(dU);if(typeof f==="object"){let h={};for(let w of Object.keys(f)){if(f[w]==null)continue;h[w]=dU(f[w])}return h}return f},"_json");function I7(f,h,w){if(w<=0||!Number.isInteger(w))throw new Error("Invalid number of delimiters ("+w+") for splitEvery.");let s=f.split(h);if(w===1)return s;let $=[],r="";for(let E=0;E<s.length;E++){if(r==="")r=s[E];else r+=h+s[E];if((E+1)%w===0)$.push(r),r=""}if(r!=="")$.push(r);return $}b(I7,"splitEvery");var Ci=b((f)=>{let h=f.length,w=[],s=!1,$=void 0,r=0;for(let E=0;E<h;++E){let T=f[E];switch(T){case'"':if($!=="\\")s=!s;break;case",":if(!s)w.push(f.slice(r,E)),r=E+1;break;default:}$=T}return w.push(f.slice(r)),w.map((E)=>{E=E.trim();let T=E.length;if(T<2)return E;if(E[0]==='"'&&E[T-1]==='"')E=E.slice(1,T-1);return E.replace(/\\"/g,'"')})},"splitHeader")});var u4=H((Wi)=>{var Ii=":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",B7="[: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]["+Ii+"]*",Li=new RegExp("^"+B7+"$"),Bi=function(f,h){let w=[],s=h.exec(f);while(s){let $=[];$.startIndex=h.lastIndex-s[0].length;let r=s.length;for(let E=0;E<r;E++)$.push(s[E]);w.push($),s=h.exec(f)}return w},Gi=function(f){let h=Li.exec(f);return!(h===null||typeof h==="undefined")};Wi.isExist=function(f){return typeof f!=="undefined"};Wi.isEmptyObject=function(f){return Object.keys(f).length===0};Wi.merge=function(f,h,w){if(h){let s=Object.keys(h),$=s.length;for(let r=0;r<$;r++)if(w==="strict")f[s[r]]=[h[s[r]]];else f[s[r]]=h[s[r]]}};Wi.getValue=function(f){if(Wi.isExist(f))return f;else return""};Wi.isName=Gi;Wi.getAllMatches=Bi;Wi.nameRegexp=B7});var eU=H((Di)=>{var nU=u4(),Mi={allowBooleanAttributes:!1,unpairedTags:[]};Di.validate=function(f,h){h=Object.assign({},Mi,h);let w=[],s=!1,$=!1;if(f[0]==="\uFEFF")f=f.substr(1);for(let r=0;r<f.length;r++)if(f[r]==="<"&&f[r+1]==="?"){if(r+=2,r=A7(f,r),r.err)return r}else if(f[r]==="<"){let E=r;if(r++,f[r]==="!"){r=z7(f,r);continue}else{let T=!1;if(f[r]==="/")T=!0,r++;let U="";for(;r<f.length&&f[r]!==">"&&f[r]!==" "&&f[r]!=="\t"&&f[r]!==`
|
|
32
|
+
`&&f[r]!=="\r";r++)U+=f[r];if(U=U.trim(),U[U.length-1]==="/")U=U.substring(0,U.length-1),r--;if(!Ni(U)){let I;if(U.trim().length===0)I="Invalid space after '<'.";else I="Tag '"+U+"' is an invalid name.";return d0("InvalidTag",I,L1(f,r))}let F=Zi(f,r);if(F===!1)return d0("InvalidAttr","Attributes for '"+U+"' have open quote.",L1(f,r));let C=F.value;if(r=F.index,C[C.length-1]==="/"){let I=r-C.length;C=C.substring(0,C.length-1);let L=R7(C,h);if(L===!0)s=!0;else return d0(L.err.code,L.err.msg,L1(f,I+L.err.line))}else if(T)if(!F.tagClosed)return d0("InvalidTag","Closing tag '"+U+"' doesn't have proper closing.",L1(f,r));else if(C.trim().length>0)return d0("InvalidTag","Closing tag '"+U+"' can't have attributes or invalid starting.",L1(f,E));else if(w.length===0)return d0("InvalidTag","Closing tag '"+U+"' has not been opened.",L1(f,E));else{let I=w.pop();if(U!==I.tagName){let L=L1(f,I.tagStartPos);return d0("InvalidTag","Expected closing tag '"+I.tagName+"' (opened in line "+L.line+", col "+L.col+") instead of closing tag '"+U+"'.",L1(f,E))}if(w.length==0)$=!0}else{let I=R7(C,h);if(I!==!0)return d0(I.err.code,I.err.msg,L1(f,r-C.length+I.err.line));if($===!0)return d0("InvalidXml","Multiple possible root nodes found.",L1(f,r));else if(h.unpairedTags.indexOf(U)!==-1);else w.push({tagName:U,tagStartPos:E});s=!0}for(r++;r<f.length;r++)if(f[r]==="<")if(f[r+1]==="!"){r++,r=z7(f,r);continue}else if(f[r+1]==="?"){if(r=A7(f,++r),r.err)return r}else break;else if(f[r]==="&"){let I=Pi(f,r);if(I==-1)return d0("InvalidChar","char '&' is not expected.",L1(f,r));r=I}else if($===!0&&!W7(f[r]))return d0("InvalidXml","Extra text at the end",L1(f,r));if(f[r]==="<")r--}}else{if(W7(f[r]))continue;return d0("InvalidChar","char '"+f[r]+"' is not expected.",L1(f,r))}if(!s)return d0("InvalidXml","Start tag expected.",1);else if(w.length==1)return d0("InvalidTag","Unclosed tag '"+w[0].tagName+"'.",L1(f,w[0].tagStartPos));else if(w.length>0)return d0("InvalidXml","Invalid '"+JSON.stringify(w.map((r)=>r.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1});return!0};function W7(f){return f===" "||f==="\t"||f===`
|
|
33
|
+
`||f==="\r"}function A7(f,h){let w=h;for(;h<f.length;h++)if(f[h]=="?"||f[h]==" "){let s=f.substr(w,h-w);if(h>5&&s==="xml")return d0("InvalidXml","XML declaration allowed only at the start of the document.",L1(f,h));else if(f[h]=="?"&&f[h+1]==">"){h++;break}else continue}return h}function z7(f,h){if(f.length>h+5&&f[h+1]==="-"&&f[h+2]==="-"){for(h+=3;h<f.length;h++)if(f[h]==="-"&&f[h+1]==="-"&&f[h+2]===">"){h+=2;break}}else if(f.length>h+8&&f[h+1]==="D"&&f[h+2]==="O"&&f[h+3]==="C"&&f[h+4]==="T"&&f[h+5]==="Y"&&f[h+6]==="P"&&f[h+7]==="E"){let w=1;for(h+=8;h<f.length;h++)if(f[h]==="<")w++;else if(f[h]===">"){if(w--,w===0)break}}else if(f.length>h+9&&f[h+1]==="["&&f[h+2]==="C"&&f[h+3]==="D"&&f[h+4]==="A"&&f[h+5]==="T"&&f[h+6]==="A"&&f[h+7]==="["){for(h+=8;h<f.length;h++)if(f[h]==="]"&&f[h+1]==="]"&&f[h+2]===">"){h+=2;break}}return h}var Qi='"',Ki="'";function Zi(f,h){let w="",s="",$=!1;for(;h<f.length;h++){if(f[h]===Qi||f[h]===Ki)if(s==="")s=f[h];else if(s!==f[h]);else s="";else if(f[h]===">"){if(s===""){$=!0;break}}w+=f[h]}if(s!=="")return!1;return{value:w,index:h,tagClosed:$}}var Ji=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function R7(f,h){let w=nU.getAllMatches(f,Ji),s={};for(let $=0;$<w.length;$++){if(w[$][1].length===0)return d0("InvalidAttr","Attribute '"+w[$][2]+"' has no space in starting.",l$(w[$]));else if(w[$][3]!==void 0&&w[$][4]===void 0)return d0("InvalidAttr","Attribute '"+w[$][2]+"' is without value.",l$(w[$]));else if(w[$][3]===void 0&&!h.allowBooleanAttributes)return d0("InvalidAttr","boolean attribute '"+w[$][2]+"' is not allowed.",l$(w[$]));let r=w[$][2];if(!Hi(r))return d0("InvalidAttr","Attribute '"+r+"' is an invalid name.",l$(w[$]));if(!s.hasOwnProperty(r))s[r]=1;else return d0("InvalidAttr","Attribute '"+r+"' is repeated.",l$(w[$]))}return!0}function Vi(f,h){let w=/\d/;if(f[h]==="x")h++,w=/[\da-fA-F]/;for(;h<f.length;h++){if(f[h]===";")return h;if(!f[h].match(w))break}return-1}function Pi(f,h){if(h++,f[h]===";")return-1;if(f[h]==="#")return h++,Vi(f,h);let w=0;for(;h<f.length;h++,w++){if(f[h].match(/\w/)&&w<20)continue;if(f[h]===";")break;return-1}return h}function d0(f,h,w){return{err:{code:f,msg:h,line:w.line||w,col:w.col}}}function Hi(f){return nU.isName(f)}function Ni(f){return nU.isName(f)}function L1(f,h){let w=f.substring(0,h).split(/\r?\n/);return{line:w.length,col:w[w.length-1].length+1}}function l$(f){return f.startIndex+f[1].length}});var S7=H((yi)=>{var X7={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(f,h){return h},attributeValueProcessor:function(f,h){return h},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(f,h,w){return f}},ki=function(f){return Object.assign({},X7,f)};yi.buildOptions=ki;yi.defaultOptions=X7});var Q7=H((RU0,M7)=>{class Y7{constructor(f){this.tagname=f,this.child=[],this[":@"]={}}add(f,h){if(f==="__proto__")f="#__proto__";this.child.push({[f]:h})}addChild(f){if(f.tagname==="__proto__")f.tagname="#__proto__";if(f[":@"]&&Object.keys(f[":@"]).length>0)this.child.push({[f.tagname]:f.child,[":@"]:f[":@"]});else this.child.push({[f.tagname]:f.child})}}M7.exports=Y7});var Z7=H((XU0,K7)=>{var li=u4();function vi(f,h){let w={};if(f[h+3]==="O"&&f[h+4]==="C"&&f[h+5]==="T"&&f[h+6]==="Y"&&f[h+7]==="P"&&f[h+8]==="E"){h=h+9;let s=1,$=!1,r=!1,E="";for(;h<f.length;h++)if(f[h]==="<"&&!r){if($&&di(f,h)){if(h+=7,[entityName,val,h]=bi(f,h+1),val.indexOf("&")===-1)w[xi(entityName)]={regx:RegExp(`&${entityName};`,"g"),val}}else if($&&ii(f,h))h+=8;else if($&&ci(f,h))h+=8;else if($&&gi(f,h))h+=9;else if(mi)r=!0;else throw new Error("Invalid DOCTYPE");s++,E=""}else if(f[h]===">"){if(r){if(f[h-1]==="-"&&f[h-2]==="-")r=!1,s--}else s--;if(s===0)break}else if(f[h]==="[")$=!0;else E+=f[h];if(s!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:w,i:h}}function bi(f,h){let w="";for(;h<f.length&&(f[h]!=="'"&&f[h]!=='"');h++)w+=f[h];if(w=w.trim(),w.indexOf(" ")!==-1)throw new Error("External entites are not supported");let s=f[h++],$="";for(;h<f.length&&f[h]!==s;h++)$+=f[h];return[w,$,h]}function mi(f,h){if(f[h+1]==="!"&&f[h+2]==="-"&&f[h+3]==="-")return!0;return!1}function di(f,h){if(f[h+1]==="!"&&f[h+2]==="E"&&f[h+3]==="N"&&f[h+4]==="T"&&f[h+5]==="I"&&f[h+6]==="T"&&f[h+7]==="Y")return!0;return!1}function ii(f,h){if(f[h+1]==="!"&&f[h+2]==="E"&&f[h+3]==="L"&&f[h+4]==="E"&&f[h+5]==="M"&&f[h+6]==="E"&&f[h+7]==="N"&&f[h+8]==="T")return!0;return!1}function ci(f,h){if(f[h+1]==="!"&&f[h+2]==="A"&&f[h+3]==="T"&&f[h+4]==="T"&&f[h+5]==="L"&&f[h+6]==="I"&&f[h+7]==="S"&&f[h+8]==="T")return!0;return!1}function gi(f,h){if(f[h+1]==="!"&&f[h+2]==="N"&&f[h+3]==="O"&&f[h+4]==="T"&&f[h+5]==="A"&&f[h+6]==="T"&&f[h+7]==="I"&&f[h+8]==="O"&&f[h+9]==="N")return!0;return!1}function xi(f){if(li.isName(f))return f;else throw new Error(`Invalid entity name ${f}`)}K7.exports=vi});var V7=H((SU0,J7)=>{var _i=/^[-+]?0x[a-fA-F0-9]+$/,ni=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,ei={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function ai(f,h={}){if(h=Object.assign({},ei,h),!f||typeof f!=="string")return f;let w=f.trim();if(h.skipLike!==void 0&&h.skipLike.test(w))return f;else if(f==="0")return 0;else if(h.hex&&_i.test(w))return oi(w,16);else if(w.search(/[eE]/)!==-1){let s=w.match(/^([-\+])?(0*)([0-9]*(\.[0-9]*)?[eE][-\+]?[0-9]+)$/);if(s){if(h.leadingZeros)w=(s[1]||"")+s[3];else if(s[2]==="0"&&s[3][0]===".");else return f;return h.eNotation?Number(w):f}else return f}else{let s=ni.exec(w);if(s){let $=s[1],r=s[2],E=pi(s[3]);if(!h.leadingZeros&&r.length>0&&$&&w[2]!==".")return f;else if(!h.leadingZeros&&r.length>0&&!$&&w[1]!==".")return f;else if(h.leadingZeros&&r===f)return 0;else{let T=Number(w),U=""+T;if(U.search(/[eE]/)!==-1)if(h.eNotation)return T;else return f;else if(w.indexOf(".")!==-1)if(U==="0"&&E==="")return T;else if(U===E)return T;else if($&&U==="-"+E)return T;else return f;if(r)return E===U||$+E===U?T:f;else return w===U||w===$+U?T:f}}else return f}}function pi(f){if(f&&f.indexOf(".")!==-1){if(f=f.replace(/0+$/,""),f===".")f="0";else if(f[0]===".")f="0"+f;else if(f[f.length-1]===".")f=f.substr(0,f.length-1);return f}return f}function oi(f,h){if(parseInt)return parseInt(f,h);else if(Number.parseInt)return Number.parseInt(f,h);else if(window&&window.parseInt)return window.parseInt(f,h);else throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}J7.exports=ai});var D7=H((YU0,N7)=>{var P7=u4(),v$=Q7(),ui=Z7(),ti=V7();class H7{constructor(f){this.options=f,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:(h,w)=>String.fromCharCode(Number.parseInt(w,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(h,w)=>String.fromCharCode(Number.parseInt(w,16))}},this.addExternalEntities=fc,this.parseXml=rc,this.parseTextData=hc,this.resolveNameSpace=wc,this.buildAttributesMap=$c,this.isItStopNode=Fc,this.replaceEntitiesValue=Tc,this.readStopNodeData=Ic,this.saveTextToParentTag=Uc,this.addChild=Ec}}function fc(f){let h=Object.keys(f);for(let w=0;w<h.length;w++){let s=h[w];this.lastEntities[s]={regex:new RegExp("&"+s+";","g"),val:f[s]}}}function hc(f,h,w,s,$,r,E){if(f!==void 0){if(this.options.trimValues&&!s)f=f.trim();if(f.length>0){if(!E)f=this.replaceEntitiesValue(f);let T=this.options.tagValueProcessor(h,f,w,$,r);if(T===null||T===void 0)return f;else if(typeof T!==typeof f||T!==f)return T;else if(this.options.trimValues)return pU(f,this.options.parseTagValue,this.options.numberParseOptions);else if(f.trim()===f)return pU(f,this.options.parseTagValue,this.options.numberParseOptions);else return f}}}function wc(f){if(this.options.removeNSPrefix){let h=f.split(":"),w=f.charAt(0)==="/"?"/":"";if(h[0]==="xmlns")return"";if(h.length===2)f=w+h[1]}return f}var sc=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function $c(f,h,w){if(!this.options.ignoreAttributes&&typeof f==="string"){let s=P7.getAllMatches(f,sc),$=s.length,r={};for(let E=0;E<$;E++){let T=this.resolveNameSpace(s[E][1]),U=s[E][4],F=this.options.attributeNamePrefix+T;if(T.length){if(this.options.transformAttributeName)F=this.options.transformAttributeName(F);if(F==="__proto__")F="#__proto__";if(U!==void 0){if(this.options.trimValues)U=U.trim();U=this.replaceEntitiesValue(U);let C=this.options.attributeValueProcessor(T,U,h);if(C===null||C===void 0)r[F]=U;else if(typeof C!==typeof U||C!==U)r[F]=C;else r[F]=pU(U,this.options.parseAttributeValue,this.options.numberParseOptions)}else if(this.options.allowBooleanAttributes)r[F]=!0}}if(!Object.keys(r).length)return;if(this.options.attributesGroupName){let E={};return E[this.options.attributesGroupName]=r,E}return r}}var rc=function(f){f=f.replace(/\r\n?/g,`
|
|
34
|
+
`);let h=new v$("!xml"),w=h,s="",$="";for(let r=0;r<f.length;r++)if(f[r]==="<")if(f[r+1]==="/"){let T=th(f,">",r,"Closing Tag is not closed."),U=f.substring(r+2,T).trim();if(this.options.removeNSPrefix){let I=U.indexOf(":");if(I!==-1)U=U.substr(I+1)}if(this.options.transformTagName)U=this.options.transformTagName(U);if(w)s=this.saveTextToParentTag(s,w,$);let F=$.substring($.lastIndexOf(".")+1);if(U&&this.options.unpairedTags.indexOf(U)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${U}>`);let C=0;if(F&&this.options.unpairedTags.indexOf(F)!==-1)C=$.lastIndexOf(".",$.lastIndexOf(".")-1),this.tagsNodeStack.pop();else C=$.lastIndexOf(".");$=$.substring(0,C),w=this.tagsNodeStack.pop(),s="",r=T}else if(f[r+1]==="?"){let T=aU(f,r,!1,"?>");if(!T)throw new Error("Pi Tag is not closed.");if(s=this.saveTextToParentTag(s,w,$),this.options.ignoreDeclaration&&T.tagName==="?xml"||this.options.ignorePiTags);else{let U=new v$(T.tagName);if(U.add(this.options.textNodeName,""),T.tagName!==T.tagExp&&T.attrExpPresent)U[":@"]=this.buildAttributesMap(T.tagExp,$,T.tagName);this.addChild(w,U,$)}r=T.closeIndex+1}else if(f.substr(r+1,3)==="!--"){let T=th(f,"-->",r+4,"Comment is not closed.");if(this.options.commentPropName){let U=f.substring(r+4,T-2);s=this.saveTextToParentTag(s,w,$),w.add(this.options.commentPropName,[{[this.options.textNodeName]:U}])}r=T}else if(f.substr(r+1,2)==="!D"){let T=ui(f,r);this.docTypeEntities=T.entities,r=T.i}else if(f.substr(r+1,2)==="!["){let T=th(f,"]]>",r,"CDATA is not closed.")-2,U=f.substring(r+9,T);s=this.saveTextToParentTag(s,w,$);let F=this.parseTextData(U,w.tagname,$,!0,!1,!0,!0);if(F==null)F="";if(this.options.cdataPropName)w.add(this.options.cdataPropName,[{[this.options.textNodeName]:U}]);else w.add(this.options.textNodeName,F);r=T+2}else{let T=aU(f,r,this.options.removeNSPrefix),U=T.tagName,F=T.rawTagName,C=T.tagExp,I=T.attrExpPresent,L=T.closeIndex;if(this.options.transformTagName)U=this.options.transformTagName(U);if(w&&s){if(w.tagname!=="!xml")s=this.saveTextToParentTag(s,w,$,!1)}let W=w;if(W&&this.options.unpairedTags.indexOf(W.tagname)!==-1)w=this.tagsNodeStack.pop(),$=$.substring(0,$.lastIndexOf("."));if(U!==h.tagname)$+=$?"."+U:U;if(this.isItStopNode(this.options.stopNodes,$,U)){let X="";if(C.length>0&&C.lastIndexOf("/")===C.length-1){if(U[U.length-1]==="/")U=U.substr(0,U.length-1),$=$.substr(0,$.length-1),C=U;else C=C.substr(0,C.length-1);r=T.closeIndex}else if(this.options.unpairedTags.indexOf(U)!==-1)r=T.closeIndex;else{let M=this.readStopNodeData(f,F,L+1);if(!M)throw new Error(`Unexpected end of ${F}`);r=M.i,X=M.tagContent}let Q=new v$(U);if(U!==C&&I)Q[":@"]=this.buildAttributesMap(C,$,U);if(X)X=this.parseTextData(X,U,$,!0,I,!0,!0);$=$.substr(0,$.lastIndexOf(".")),Q.add(this.options.textNodeName,X),this.addChild(w,Q,$)}else{if(C.length>0&&C.lastIndexOf("/")===C.length-1){if(U[U.length-1]==="/")U=U.substr(0,U.length-1),$=$.substr(0,$.length-1),C=U;else C=C.substr(0,C.length-1);if(this.options.transformTagName)U=this.options.transformTagName(U);let X=new v$(U);if(U!==C&&I)X[":@"]=this.buildAttributesMap(C,$,U);this.addChild(w,X,$),$=$.substr(0,$.lastIndexOf("."))}else{let X=new v$(U);if(this.tagsNodeStack.push(w),U!==C&&I)X[":@"]=this.buildAttributesMap(C,$,U);this.addChild(w,X,$),w=X}s="",r=L}}else s+=f[r];return h.child};function Ec(f,h,w){let s=this.options.updateTag(h.tagname,w,h[":@"]);if(s===!1);else if(typeof s==="string")h.tagname=s,f.addChild(h);else f.addChild(h)}var Tc=function(f){if(this.options.processEntities){for(let h in this.docTypeEntities){let w=this.docTypeEntities[h];f=f.replace(w.regx,w.val)}for(let h in this.lastEntities){let w=this.lastEntities[h];f=f.replace(w.regex,w.val)}if(this.options.htmlEntities)for(let h in this.htmlEntities){let w=this.htmlEntities[h];f=f.replace(w.regex,w.val)}f=f.replace(this.ampEntity.regex,this.ampEntity.val)}return f};function Uc(f,h,w,s){if(f){if(s===void 0)s=Object.keys(h.child).length===0;if(f=this.parseTextData(f,h.tagname,w,!1,h[":@"]?Object.keys(h[":@"]).length!==0:!1,s),f!==void 0&&f!=="")h.add(this.options.textNodeName,f);f=""}return f}function Fc(f,h,w){let s="*."+w;for(let $ in f){let r=f[$];if(s===r||h===r)return!0}return!1}function Cc(f,h,w=">"){let s,$="";for(let r=h;r<f.length;r++){let E=f[r];if(s){if(E===s)s=""}else if(E==='"'||E==="'")s=E;else if(E===w[0])if(w[1]){if(f[r+1]===w[1])return{data:$,index:r}}else return{data:$,index:r};else if(E==="\t")E=" ";$+=E}}function th(f,h,w,s){let $=f.indexOf(h,w);if($===-1)throw new Error(s);else return $+h.length-1}function aU(f,h,w,s=">"){let $=Cc(f,h+1,s);if(!$)return;let{data:r,index:E}=$,T=r.search(/\s/),U=r,F=!0;if(T!==-1)U=r.substring(0,T),r=r.substring(T+1).trimStart();let C=U;if(w){let I=U.indexOf(":");if(I!==-1)U=U.substr(I+1),F=U!==$.data.substr(I+1)}return{tagName:U,tagExp:r,closeIndex:E,attrExpPresent:F,rawTagName:C}}function Ic(f,h,w){let s=w,$=1;for(;w<f.length;w++)if(f[w]==="<")if(f[w+1]==="/"){let r=th(f,">",w,`${h} is not closed`);if(f.substring(w+2,r).trim()===h){if($--,$===0)return{tagContent:f.substring(s,w),i:r}}w=r}else if(f[w+1]==="?")w=th(f,"?>",w+1,"StopNode is not closed.");else if(f.substr(w+1,3)==="!--")w=th(f,"-->",w+3,"StopNode is not closed.");else if(f.substr(w+1,2)==="![")w=th(f,"]]>",w,"StopNode is not closed.")-2;else{let r=aU(f,w,">");if(r){if((r&&r.tagName)===h&&r.tagExp[r.tagExp.length-1]!=="/")$++;w=r.closeIndex}}}function pU(f,h,w){if(h&&typeof f==="string"){let s=f.trim();if(s==="true")return!0;else if(s==="false")return!1;else return ti(f,w)}else if(P7.isExist(f))return f;else return""}N7.exports=H7});var k7=H((Ac)=>{function Lc(f,h){return q7(f,h)}function q7(f,h,w){let s,$={};for(let r=0;r<f.length;r++){let E=f[r],T=Bc(E),U="";if(w===void 0)U=T;else U=w+"."+T;if(T===h.textNodeName)if(s===void 0)s=E[T];else s+=""+E[T];else if(T===void 0)continue;else if(E[T]){let F=q7(E[T],h,U),C=Wc(F,h);if(E[":@"])Gc(F,E[":@"],U,h);else if(Object.keys(F).length===1&&F[h.textNodeName]!==void 0&&!h.alwaysCreateTextNode)F=F[h.textNodeName];else if(Object.keys(F).length===0)if(h.alwaysCreateTextNode)F[h.textNodeName]="";else F="";if($[T]!==void 0&&$.hasOwnProperty(T)){if(!Array.isArray($[T]))$[T]=[$[T]];$[T].push(F)}else if(h.isArray(T,U,C))$[T]=[F];else $[T]=F}}if(typeof s==="string"){if(s.length>0)$[h.textNodeName]=s}else if(s!==void 0)$[h.textNodeName]=s;return $}function Bc(f){let h=Object.keys(f);for(let w=0;w<h.length;w++){let s=h[w];if(s!==":@")return s}}function Gc(f,h,w,s){if(h){let $=Object.keys(h),r=$.length;for(let E=0;E<r;E++){let T=$[E];if(s.isArray(T,w+"."+T,!0,!0))f[T]=[h[T]];else f[T]=h[T]}}}function Wc(f,h){let{textNodeName:w}=h,s=Object.keys(f).length;if(s===0)return!0;if(s===1&&(f[w]||typeof f[w]==="boolean"||f[w]===0))return!0;return!1}Ac.prettify=Lc});var O7=H((QU0,j7)=>{var{buildOptions:Rc}=S7(),Xc=D7(),{prettify:Sc}=k7(),Yc=eU();class y7{constructor(f){this.externalEntities={},this.options=Rc(f)}parse(f,h){if(typeof f==="string");else if(f.toString)f=f.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(h){if(h===!0)h={};let $=Yc.validate(f,h);if($!==!0)throw Error(`${$.err.msg}:${$.err.line}:${$.err.col}`)}let w=new Xc(this.options);w.addExternalEntities(this.externalEntities);let s=w.parseXml(f);if(this.options.preserveOrder||s===void 0)return s;else return Sc(s,this.options)}addEntity(f,h){if(h.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");else if(f.indexOf("&")!==-1||f.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");else if(h==="&")throw new Error("An entity with value '&' is not permitted");else this.externalEntities[f]=h}}j7.exports=y7});var d7=H((KU0,m7)=>{function Mc(f,h){let w="";if(h.format&&h.indentBy.length>0)w=`
|
|
35
|
+
`;return v7(f,h,"",w)}function v7(f,h,w,s){let $="",r=!1;for(let E=0;E<f.length;E++){let T=f[E],U=Qc(T);if(U===void 0)continue;let F="";if(w.length===0)F=U;else F=`${w}.${U}`;if(U===h.textNodeName){let X=T[U];if(!Kc(F,h))X=h.tagValueProcessor(U,X),X=b7(X,h);if(r)$+=s;$+=X,r=!1;continue}else if(U===h.cdataPropName){if(r)$+=s;$+=`<![CDATA[${T[U][0][h.textNodeName]}]]>`,r=!1;continue}else if(U===h.commentPropName){$+=s+`<!--${T[U][0][h.textNodeName]}-->`,r=!0;continue}else if(U[0]==="?"){let X=l7(T[":@"],h),Q=U==="?xml"?"":s,M=T[U][0][h.textNodeName];M=M.length!==0?" "+M:"",$+=Q+`<${U}${M}${X}?>`,r=!0;continue}let C=s;if(C!=="")C+=h.indentBy;let I=l7(T[":@"],h),L=s+`<${U}${I}`,W=v7(T[U],h,F,C);if(h.unpairedTags.indexOf(U)!==-1)if(h.suppressUnpairedNode)$+=L+">";else $+=L+"/>";else if((!W||W.length===0)&&h.suppressEmptyNode)$+=L+"/>";else if(W&&W.endsWith(">"))$+=L+`>${W}${s}</${U}>`;else{if($+=L+">",W&&s!==""&&(W.includes("/>")||W.includes("</")))$+=s+h.indentBy+W+s;else $+=W;$+=`</${U}>`}r=!0}return $}function Qc(f){let h=Object.keys(f);for(let w=0;w<h.length;w++){let s=h[w];if(!f.hasOwnProperty(s))continue;if(s!==":@")return s}}function l7(f,h){let w="";if(f&&!h.ignoreAttributes)for(let s in f){if(!f.hasOwnProperty(s))continue;let $=h.attributeValueProcessor(s,f[s]);if($=b7($,h),$===!0&&h.suppressBooleanAttributes)w+=` ${s.substr(h.attributeNamePrefix.length)}`;else w+=` ${s.substr(h.attributeNamePrefix.length)}="${$}"`}return w}function Kc(f,h){f=f.substr(0,f.length-h.textNodeName.length-1);let w=f.substr(f.lastIndexOf(".")+1);for(let s in h.stopNodes)if(h.stopNodes[s]===f||h.stopNodes[s]==="*."+w)return!0;return!1}function b7(f,h){if(f&&f.length>0&&h.processEntities)for(let w=0;w<h.entities.length;w++){let s=h.entities[w];f=f.replace(s.regex,s.val)}return f}m7.exports=Mc});var c7=H((ZU0,i7)=>{var Zc=d7(),Jc={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(f,h){return h},attributeValueProcessor:function(f,h){return h},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function Xh(f){if(this.options=Object.assign({},Jc,f),this.options.ignoreAttributes||this.options.attributesGroupName)this.isAttribute=function(){return!1};else this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=Hc;if(this.processTextOrObjNode=Vc,this.options.format)this.indentate=Pc,this.tagEndChar=`>
|
|
36
36
|
`,this.newLine=`
|
|
37
|
-
`;else this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""}Xh.prototype.build=function(f){if(this.options.preserveOrder)return
|
|
37
|
+
`;else this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""}Xh.prototype.build=function(f){if(this.options.preserveOrder)return Zc(f,this.options);else{if(Array.isArray(f)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1)f={[this.options.arrayNodeName]:f};return this.j2x(f,0).val}};Xh.prototype.j2x=function(f,h){let w="",s="";for(let $ in f){if(!Object.prototype.hasOwnProperty.call(f,$))continue;if(typeof f[$]==="undefined"){if(this.isAttribute($))s+=""}else if(f[$]===null)if(this.isAttribute($))s+="";else if($[0]==="?")s+=this.indentate(h)+"<"+$+"?"+this.tagEndChar;else s+=this.indentate(h)+"<"+$+"/"+this.tagEndChar;else if(f[$]instanceof Date)s+=this.buildTextValNode(f[$],$,"",h);else if(typeof f[$]!=="object"){let r=this.isAttribute($);if(r)w+=this.buildAttrPairStr(r,""+f[$]);else if($===this.options.textNodeName){let E=this.options.tagValueProcessor($,""+f[$]);s+=this.replaceEntitiesValue(E)}else s+=this.buildTextValNode(f[$],$,"",h)}else if(Array.isArray(f[$])){let r=f[$].length,E="",T="";for(let U=0;U<r;U++){let F=f[$][U];if(typeof F==="undefined");else if(F===null)if($[0]==="?")s+=this.indentate(h)+"<"+$+"?"+this.tagEndChar;else s+=this.indentate(h)+"<"+$+"/"+this.tagEndChar;else if(typeof F==="object")if(this.options.oneListGroup){let C=this.j2x(F,h+1);if(E+=C.val,this.options.attributesGroupName&&F.hasOwnProperty(this.options.attributesGroupName))T+=C.attrStr}else E+=this.processTextOrObjNode(F,$,h);else if(this.options.oneListGroup){let C=this.options.tagValueProcessor($,F);C=this.replaceEntitiesValue(C),E+=C}else E+=this.buildTextValNode(F,$,"",h)}if(this.options.oneListGroup)E=this.buildObjectNode(E,$,T,h);s+=E}else if(this.options.attributesGroupName&&$===this.options.attributesGroupName){let r=Object.keys(f[$]),E=r.length;for(let T=0;T<E;T++)w+=this.buildAttrPairStr(r[T],""+f[$][r[T]])}else s+=this.processTextOrObjNode(f[$],$,h)}return{attrStr:w,val:s}};Xh.prototype.buildAttrPairStr=function(f,h){if(h=this.options.attributeValueProcessor(f,""+h),h=this.replaceEntitiesValue(h),this.options.suppressBooleanAttributes&&h==="true")return" "+f;else return" "+f+'="'+h+'"'};function Vc(f,h,w){let s=this.j2x(f,w+1);if(f[this.options.textNodeName]!==void 0&&Object.keys(f).length===1)return this.buildTextValNode(f[this.options.textNodeName],h,s.attrStr,w);else return this.buildObjectNode(s.val,h,s.attrStr,w)}Xh.prototype.buildObjectNode=function(f,h,w,s){if(f==="")if(h[0]==="?")return this.indentate(s)+"<"+h+w+"?"+this.tagEndChar;else return this.indentate(s)+"<"+h+w+this.closeTag(h)+this.tagEndChar;else{let $="</"+h+this.tagEndChar,r="";if(h[0]==="?")r="?",$="";if((w||w==="")&&f.indexOf("<")===-1)return this.indentate(s)+"<"+h+w+r+">"+f+$;else if(this.options.commentPropName!==!1&&h===this.options.commentPropName&&r.length===0)return this.indentate(s)+`<!--${f}-->`+this.newLine;else return this.indentate(s)+"<"+h+w+r+this.tagEndChar+f+this.indentate(s)+$}};Xh.prototype.closeTag=function(f){let h="";if(this.options.unpairedTags.indexOf(f)!==-1){if(!this.options.suppressUnpairedNode)h="/"}else if(this.options.suppressEmptyNode)h="/";else h=`></${f}`;return h};Xh.prototype.buildTextValNode=function(f,h,w,s){if(this.options.cdataPropName!==!1&&h===this.options.cdataPropName)return this.indentate(s)+`<![CDATA[${f}]]>`+this.newLine;else if(this.options.commentPropName!==!1&&h===this.options.commentPropName)return this.indentate(s)+`<!--${f}-->`+this.newLine;else if(h[0]==="?")return this.indentate(s)+"<"+h+w+"?"+this.tagEndChar;else{let $=this.options.tagValueProcessor(h,f);if($=this.replaceEntitiesValue($),$==="")return this.indentate(s)+"<"+h+w+this.closeTag(h)+this.tagEndChar;else return this.indentate(s)+"<"+h+w+">"+$+"</"+h+this.tagEndChar}};Xh.prototype.replaceEntitiesValue=function(f){if(f&&f.length>0&&this.options.processEntities)for(let h=0;h<this.options.entities.length;h++){let w=this.options.entities[h];f=f.replace(w.regex,w.val)}return f};function Pc(f){return this.options.indentBy.repeat(f)}function Hc(f){if(f.startsWith(this.options.attributeNamePrefix)&&f!==this.options.textNodeName)return f.substr(this.attrPrefixLen);else return!1}i7.exports=Xh});var x7=H((JU0,g7)=>{var Nc=eU(),Dc=O7(),qc=c7();g7.exports={XMLParser:Dc,XMLValidator:Nc,XMLBuilder:qc}});var o7=H((VU0,p7)=>{var{defineProperty:t4,getOwnPropertyDescriptor:kc,getOwnPropertyNames:yc}=Object,jc=Object.prototype.hasOwnProperty,X1=(f,h)=>t4(f,"name",{value:h,configurable:!0}),Oc=(f,h)=>{for(var w in h)t4(f,w,{get:h[w],enumerable:!0})},lc=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of yc(h))if(!jc.call(f,$)&&$!==w)t4(f,$,{get:()=>h[$],enumerable:!(s=kc(h,$))||s.enumerable})}return f},vc=(f)=>lc(t4({},"__esModule",{value:!0}),f),_7={};Oc(_7,{_toBool:()=>mc,_toNum:()=>dc,_toStr:()=>bc,awsExpectUnion:()=>cc,loadRestJsonErrorCode:()=>_c,loadRestXmlErrorCode:()=>pc,parseJsonBody:()=>e7,parseJsonErrorBody:()=>xc,parseXmlBody:()=>a7,parseXmlErrorBody:()=>ac});p7.exports=vc(_7);var bc=X1((f)=>{if(f==null)return f;if(typeof f==="number"||typeof f==="bigint"){let h=new Error(`Received number ${f} where a string was expected.`);return h.name="Warning",console.warn(h),String(f)}if(typeof f==="boolean"){let h=new Error(`Received boolean ${f} where a string was expected.`);return h.name="Warning",console.warn(h),String(f)}return f},"_toStr"),mc=X1((f)=>{if(f==null)return f;if(typeof f==="string"){let h=f.toLowerCase();if(f!==""&&h!=="false"&&h!=="true"){let w=new Error(`Received string "${f}" where a boolean was expected.`);w.name="Warning",console.warn(w)}return f!==""&&h!=="false"}return f},"_toBool"),dc=X1((f)=>{if(f==null)return f;if(typeof f==="string"){let h=Number(f);if(h.toString()!==f){let w=new Error(`Received string "${f}" where a number was expected.`);return w.name="Warning",console.warn(w),f}return h}return f},"_toNum"),ic=J0(),cc=X1((f)=>{if(f==null)return;if(typeof f==="object"&&"__type"in f)delete f.__type;return ic.expectUnion(f)},"awsExpectUnion"),gc=J0(),n7=X1((f,h)=>gc.collectBody(f,h).then((w)=>h.utf8Encoder(w)),"collectBodyString"),e7=X1((f,h)=>n7(f,h).then((w)=>{if(w.length)try{return JSON.parse(w)}catch(s){if(s?.name==="SyntaxError")Object.defineProperty(s,"$responseBodyText",{value:w});throw s}return{}}),"parseJsonBody"),xc=X1(async(f,h)=>{let w=await e7(f,h);return w.message=w.message??w.Message,w},"parseJsonErrorBody"),_c=X1((f,h)=>{let w=X1((r,E)=>Object.keys(r).find((T)=>T.toLowerCase()===E.toLowerCase()),"findKey"),s=X1((r)=>{let E=r;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.headers,"x-amzn-errortype");if($!==void 0)return s(f.headers[$]);if(h.code!==void 0)return s(h.code);if(h.__type!==void 0)return s(h.__type)},"loadRestJsonErrorCode"),nc=J0(),ec=x7(),a7=X1((f,h)=>n7(f,h).then((w)=>{if(w.length){let s=new ec.XMLParser({attributeNamePrefix:"",htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:X1((U,F)=>F.trim()===""&&F.includes(`
|
|
38
38
|
`)?"":void 0,"tagValueProcessor")});s.addEntity("#xD","\r"),s.addEntity("#10",`
|
|
39
|
-
`);let $;try{$=s.parse(w,!0)}catch(U){if(U&&typeof U==="object")Object.defineProperty(U,"$responseBodyText",{value:w});throw U}let r="#text",E=Object.keys($)[0],T=$[E];if(T[r])T[E]=T[r],delete T[r];return tg.getValueFromTextNode(T)}return{}}),"parseXmlBody"),hx=Rf(async(f,h)=>{let w=await sS(f,h);if(w.Error)w.Error.message=w.Error.message??w.Error.Message;return w},"parseXmlErrorBody"),wx=Rf((f,h)=>{if(h?.Error?.Code!==void 0)return h.Error.Code;if(h?.Code!==void 0)return h.Code;if(f.statusCode==404)return"NotFound"},"loadRestXmlErrorCode")});var O0=H((g$)=>{Object.defineProperty(g$,"__esModule",{value:!0});var sF=d4();sF.__exportStar(Cf(),g$);sF.__exportStar(p7(),g$);sF.__exportStar(rS(),g$)});async function ES(f,h,w){if(w.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor")f1.setFeature(f,"PROTOCOL_RPC_V2_CBOR","M");if(typeof h.retryStrategy==="function"){let r=await h.retryStrategy();if(typeof r.acquireInitialRetryToken==="function")if(r.constructor?.name?.includes("Adaptive"))f1.setFeature(f,"RETRY_MODE_ADAPTIVE","F");else f1.setFeature(f,"RETRY_MODE_STANDARD","E");else f1.setFeature(f,"RETRY_MODE_LEGACY","D")}if(typeof h.accountIdEndpointMode==="function"){let r=f.endpointV2;if(String(r?.url?.hostname).match(sx))f1.setFeature(f,"ACCOUNT_ID_ENDPOINT","O");switch(await h.accountIdEndpointMode?.()){case"disabled":f1.setFeature(f,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":f1.setFeature(f,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":f1.setFeature(f,"ACCOUNT_ID_MODE_REQUIRED","R");break}}let $=f.__smithy_context?.selectedHttpAuthScheme?.identity;if($?.$source){let r=$;if(r.accountId)f1.setFeature(f,"RESOLVED_ACCOUNT_ID","T");for(let[E,T]of Object.entries(r.$source??{}))f1.setFeature(f,E,T)}}var f1,sx;var TS=L(()=>{f1=u(O0(),1),sx=/\d{12}\.ddb/});var $F="user-agent",$E="x-amz-user-agent",rF=" ",rE="/",US,FS,EF="-";var CS=L(()=>{US=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,FS=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g});function IS(f){let h="";for(let w in f){let s=f[w];if(h.length+s.length+1<=1024){if(h.length)h+=","+s;else h+=s;continue}break}return h}var $x=(f)=>(h,w)=>async(s)=>{let{request:$}=s;if(!n0.isInstance($))return h(s);let{headers:r}=$,E=w?.userAgent?.map(EE)||[],T=(await f.defaultUserAgentProvider()).map(EE);await ES(w,f,s);let U=w;T.push(`m/${IS(Object.assign({},w.__smithy_context?.features,U.__aws_sdk_context?.features))}`);let F=f?.customUserAgent?.map(EE)||[],C=await f.userAgentAppId();if(C)T.push(EE([`app/${C}`]));let I=jz(),B=(I?[I]:[]).concat([...T,...E,...F]).join(rF),G=[...T.filter((S)=>S.startsWith("aws-sdk-")),...F].join(rF);if(f.runtime!=="browser"){if(G)r[$E]=r[$E]?`${r[$F]} ${G}`:G;r[$F]=B}else r[$E]=B;return h({...s,request:$})},EE=(f)=>{let h=f[0].split(rE).map((E)=>E.replace(US,EF)).join(rE),w=f[1]?.replace(FS,EF),s=h.indexOf(rE),$=h.substring(0,s),r=h.substring(s+1);if($==="api")r=r.toLowerCase();return[$,r,w].filter((E)=>E&&E.length>0).reduce((E,T,U)=>{switch(U){case 0:return T;case 1:return`${E}/${T}`;default:return`${E}#${T}`}},"")},rx,nw=(f)=>({applyToStack:(h)=>{h.add($x(f),rx)}});var LS=L(()=>{j$();Ff();TS();CS();rx={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0}});var x$=L(()=>{nW();LS()});var ew=(f,h,w)=>{if(!(h in f))return;if(f[h]==="true")return!0;if(f[h]==="false")return!1;throw new Error(`Cannot load ${w} "${h}". Expected "true" or "false", got ${f[h]}.`)};var Yh;var BS=L(()=>{(function(f){f.ENV="env",f.CONFIG="shared config entry"})(Yh||(Yh={}))});var TF=L(()=>{BS()});var Ex="AWS_USE_DUALSTACK_ENDPOINT",Tx="use_dualstack_endpoint",aw;var AS=L(()=>{TF();aw={environmentVariableSelector:(f)=>ew(f,Ex,Yh.ENV),configFileSelector:(f)=>ew(f,Tx,Yh.CONFIG),default:!1}});var Ux="AWS_USE_FIPS_ENDPOINT",Fx="use_fips_endpoint",ow;var GS=L(()=>{TF();ow={environmentVariableSelector:(f)=>ew(f,Ux,Yh.ENV),configFileSelector:(f)=>ew(f,Fx,Yh.CONFIG),default:!1}});var Mh=(f)=>f[H$]||(f[H$]={});var WS=L(()=>{d1()});var Lf=(f)=>{if(typeof f==="function")return f;let h=Promise.resolve(f);return()=>h};var x1=L(()=>{WS()});var zS=L(()=>{x1()});var RS=L(()=>{x1()});var SS=L(()=>{AS();GS();zS();RS()});var Qh,pw;var XS=L(()=>{Qh={environmentVariableSelector:(f)=>f.AWS_REGION,configFileSelector:(f)=>f.region,default:()=>{throw new Error("Region is missing")}},pw={preferredFile:"credentials"}});var TE=(f)=>typeof f==="string"&&(f.startsWith("fips-")||f.endsWith("-fips"));var UF=(f)=>TE(f)?["fips-aws-global","aws-fips"].includes(f)?"us-east-1":f.replace(/fips-(dkr-|prod-)?|-fips/,""):f;var YS=()=>{};var uw=(f)=>{let{region:h,useFipsEndpoint:w}=f;if(!h)throw new Error("Region is missing");return Object.assign(f,{region:async()=>{if(typeof h==="string")return UF(h);let s=await h();return UF(s)},useFipsEndpoint:async()=>{let s=typeof h==="string"?h:await h();if(TE(s))return!0;return typeof w!=="function"?Promise.resolve(!!w):w()}})};var MS=L(()=>{YS()});var QS=L(()=>{XS();MS()});var KS=()=>{};var ZS=()=>{};var JS=()=>{};var VS=L(()=>{KS();ZS();JS()});var Kh=L(()=>{SS();QS();VS()});function Cx(f){return(h)=>async(w)=>{let s=w.request;if(n0.isInstance(s)){let{body:$,headers:r}=s;if($&&Object.keys(r).map((E)=>E.toLowerCase()).indexOf(PS)===-1)try{let E=f($);s.headers={...s.headers,[PS]:String(E)}}catch(E){}}return h({...w,request:s})}}var PS="content-length",Ix,tw=(f)=>({applyToStack:(h)=>{h.add(Cx(f.bodyLengthChecker),Ix)}});var UE=L(()=>{Ff();Ix={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0}});var HS=async(f)=>{let h=f?.Bucket||"";if(typeof f.Bucket==="string")f.Bucket=h.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(Wx(h)){if(f.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!Gx(h)||h.indexOf(".")!==-1&&!String(f.Endpoint).startsWith("http:")||h.toLowerCase()!==h||h.length<3)f.ForcePathStyle=!0;if(f.DisableMultiRegionAccessPoints)f.disableMultiRegionAccessPoints=!0,f.DisableMRAP=!0;return f},Lx,Bx,Ax,Gx=(f)=>Lx.test(f)&&!Bx.test(f)&&!Ax.test(f),Wx=(f)=>{let[h,w,s,,,$]=f.split(":"),r=h==="arn"&&f.split(":").length>=6,E=Boolean(r&&w&&s&&$);if(r&&!E)throw new Error(`Invalid ARN: ${f} was an invalid ARN.`);return E};var NS=L(()=>{Lx=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,Bx=/(\d+\.){3}\d+/,Ax=/\.\./});var DS=L(()=>{NS()});var qS=(f,h,w)=>{let s=async()=>{let $=w[f]??w[h];if(typeof $==="function")return $();return $};if(f==="credentialScope"||h==="CredentialScope")return async()=>{let $=typeof w.credentials==="function"?await w.credentials():w.credentials;return $?.credentialScope??$?.CredentialScope};if(f==="accountId"||h==="AccountId")return async()=>{let $=typeof w.credentials==="function"?await w.credentials():w.credentials;return $?.accountId??$?.AccountId};if(f==="endpoint"||h==="endpoint")return async()=>{let $=await s();if($&&typeof $==="object"){if("url"in $)return $.url.href;if("hostname"in $){let{protocol:r,hostname:E,port:T,path:U}=$;return`${r}//${E}${T?":"+T:""}${U}`}}return $};return s};var qf;var _$=L(()=>{qf=class qf extends Error{constructor(f,h=!0){let w,s=!0;if(typeof h==="boolean")w=void 0,s=h;else if(h!=null&&typeof h==="object")w=h.logger,s=h.tryNextLink??!0;super(f);this.name="ProviderError",this.tryNextLink=s,Object.setPrototypeOf(this,qf.prototype),w?.debug?.(`@smithy/property-provider ${s?"->":"(!)"} ${f}`)}static from(f,h=!0){return Object.assign(new this(f.message,h),f)}}});var a;var kS=L(()=>{_$();a=class a extends qf{constructor(f,h=!0){super(f,h);this.name="CredentialsProviderError",Object.setPrototypeOf(this,a.prototype)}}});var Sf;var yS=L(()=>{_$();Sf=class Sf extends qf{constructor(f,h=!0){super(f,h);this.name="TokenProviderError",Object.setPrototypeOf(this,Sf.prototype)}}});var _1=(...f)=>async()=>{if(f.length===0)throw new qf("No providers in chain");let h;for(let w of f)try{return await w()}catch(s){if(h=s,s?.tryNextLink)continue;throw s}throw h};var jS=L(()=>{_$()});var OS=(f)=>()=>Promise.resolve(f);var ww=(f,h,w)=>{let s,$,r,E=!1,T=async()=>{if(!$)$=f();try{s=await $,r=!0,E=!1}finally{$=void 0}return s};if(h===void 0)return async(U)=>{if(!r||U?.forceRefresh)s=await T();return s};return async(U)=>{if(!r||U?.forceRefresh)s=await T();if(E)return s;if(w&&!w(s))return E=!0,s;if(h(s))return await T(),s;return s}};var Y0=L(()=>{kS();_$();yS();jS()});function FE(f){try{let h=new Set(Array.from(f.match(/([A-Z_]){3,}/g)??[]));return h.delete("CONFIG"),h.delete("CONFIG_PREFIX_SEPARATOR"),h.delete("ENV"),[...h].join(", ")}catch(h){return f}}var lS=(f,h)=>async()=>{try{let w=f(process.env);if(w===void 0)throw new Error;return w}catch(w){throw new a(w.message||`Not found in ENV: ${FE(f.toString())}`,{logger:h})}};var vS=L(()=>{Y0()});import{homedir as zx}from"node:os";import{sep as Rx}from"node:path";var FF,Sx=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},Zh=()=>{let{HOME:f,USERPROFILE:h,HOMEPATH:w,HOMEDRIVE:s=`C:${Rx}`}=process.env;if(f)return f;if(h)return h;if(w)return`${s}${w}`;let $=Sx();if(!FF[$])FF[$]=zx();return FF[$]};var fs=L(()=>{FF={}});var bS="AWS_PROFILE",kf=(f)=>f.profile||process.env.AWS_PROFILE||"default";import{createHash as Xx}from"node:crypto";import{join as Yx}from"node:path";var CE=(f)=>{let w=Xx("sha1").update(f).digest("hex");return Yx(Zh(),".aws","sso","cache",`${w}.json`)};var CF=L(()=>{fs()});import{promises as Mx}from"node:fs";var Qx,IE=async(f)=>{let h=CE(f),w=await Qx(h,"utf8");return JSON.parse(w)};var mS=L(()=>{CF();({readFile:Qx}=Mx)});var dS=(f)=>Object.entries(f).filter(([h])=>{let w=h.indexOf(yf);if(w===-1)return!1;return Object.values(m1).includes(h.substring(0,w))}).reduce((h,[w,s])=>{let $=w.indexOf(yf),r=w.substring(0,$)===m1.PROFILE?w.substring($+1):w;return h[r]=s,h},{...f.default&&{default:f.default}});var iS=L(()=>{d1();hs()});import{join as Kx}from"node:path";var Zx="AWS_CONFIG_FILE",LE=()=>process.env[Zx]||Kx(Zh(),".aws","config");var IF=L(()=>{fs()});import{join as Jx}from"node:path";var Vx="AWS_SHARED_CREDENTIALS_FILE",cS=()=>process.env[Vx]||Jx(Zh(),".aws","credentials");var gS=L(()=>{fs()});var Px,Hx,n$=(f)=>{let h={},w,s;for(let $ of f.split(/\r?\n/)){let r=$.split(/(^|\s)[;#]/)[0].trim();if(r[0]==="["&&r[r.length-1]==="]"){w=void 0,s=void 0;let T=r.substring(1,r.length-1),U=Px.exec(T);if(U){let[,F,,C]=U;if(Object.values(m1).includes(F))w=[F,C].join(yf)}else w=T;if(Hx.includes(T))throw new Error(`Found invalid profile name "${T}"`)}else if(w){let T=r.indexOf("=");if(![0,-1].includes(T)){let[U,F]=[r.substring(0,T).trim(),r.substring(T+1).trim()];if(F==="")s=U;else{if(s&&$.trimStart()===$)s=void 0;h[w]=h[w]||{};let C=s?[s,U].join(yf):U;h[w][C]=F}}}}return h};var LF=L(()=>{d1();hs();Px=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,Hx=["__proto__","profile __proto__"]});import{promises as Nx}from"node:fs";var Dx,BF,e$=(f,h)=>{if(!BF[f]||h?.ignoreCache)BF[f]=Dx(f,"utf8");return BF[f]};var AF=L(()=>{({readFile:Dx}=Nx),BF={}});import{join as xS}from"node:path";var _S=()=>({}),yf=".",BE=async(f={})=>{let{filepath:h=cS(),configFilepath:w=LE()}=f,s=Zh(),$="~/",r=h;if(h.startsWith("~/"))r=xS(s,h.slice(2));let E=w;if(w.startsWith("~/"))E=xS(s,w.slice(2));let T=await Promise.all([e$(E,{ignoreCache:f.ignoreCache}).then(n$).then(dS).catch(_S),e$(r,{ignoreCache:f.ignoreCache}).then(n$).catch(_S)]);return{configFile:T[0],credentialsFile:T[1]}};var hs=L(()=>{iS();IF();gS();fs();LF();AF()});var nS=(f)=>Object.entries(f).filter(([h])=>h.startsWith(m1.SSO_SESSION+yf)).reduce((h,[w,s])=>({...h,[w.substring(w.indexOf(yf)+1)]:s}),{});var eS=L(()=>{d1();hs()});var qx=()=>({}),AE=async(f={})=>e$(f.configFilepath??LE()).then(n$).then(nS).catch(qx);var aS=L(()=>{IF();eS();LF();AF()});var oS=(...f)=>{let h={};for(let w of f)for(let[s,$]of Object.entries(w))if(h[s]!==void 0)Object.assign(h[s],$);else h[s]=$;return h};var Jh=async(f)=>{let h=await BE(f);return oS(h.configFile,h.credentialsFile)};var pS=L(()=>{hs()});var uS=()=>{};var h1=L(()=>{fs();CF();mS();hs();aS();pS();uS()});var tS=(f,{preferredFile:h="config",...w}={})=>async()=>{let s=kf(w),{configFile:$,credentialsFile:r}=await BE(w),E=r[s]||{},T=$[s]||{},U=h==="config"?{...E,...T}:{...T,...E};try{let C=f(U,h==="config"?$:r);if(C===void 0)throw new Error;return C}catch(F){throw new a(F.message||`Not found in config files w/ profile [${s}]: ${FE(f.toString())}`,{logger:w.logger})}};var fX=L(()=>{Y0();h1()});var kx=(f)=>typeof f==="function",hX=(f)=>kx(f)?async()=>await f():OS(f);var wX=L(()=>{Y0()});var z0=({environmentVariableSelector:f,configFileSelector:h,default:w},s={})=>ww(_1(lS(f),tS(h,s),hX(w)));var sX=L(()=>{Y0();vS();fX();wX()});var Vh=L(()=>{sX()});var $X="AWS_ENDPOINT_URL",rX="endpoint_url",EX=(f)=>({environmentVariableSelector:(h)=>{let w=f.split(" ").map((r)=>r.toUpperCase()),s=h[[$X,...w].join("_")];if(s)return s;let $=h[$X];if($)return $;return},configFileSelector:(h,w)=>{if(w&&h.services){let $=w[["services",h.services].join(yf)];if($){let r=f.split(" ").map((T)=>T.toLowerCase()),E=$[[r.join("_"),rX].join(yf)];if(E)return E}}let s=h[rX];if(s)return s;return},default:void 0});var TX=L(()=>{h1()});var GE=async(f)=>z0(EX(f??""))();var GF=L(()=>{Vh();TX()});function UX(f){let h={};if(f=f.replace(/^\?/,""),f)for(let w of f.split("&")){let[s,$=null]=w.split("=");if(s=decodeURIComponent(s),$)$=decodeURIComponent($);if(!(s in h))h[s]=$;else if(Array.isArray(h[s]))h[s].push($);else h[s]=[h[s],$]}return h}var jf=(f)=>{if(typeof f==="string")return jf(new URL(f));let{hostname:h,pathname:w,port:s,protocol:$,search:r}=f,E;if(r)E=UX(r);return{hostname:h,port:s?parseInt(s):void 0,protocol:$,path:w,query:E}};var ws=()=>{};var WE=(f)=>{if(typeof f==="object"){if("url"in f)return jf(f.url);return f}return jf(f)};var zE=L(()=>{ws()});var FX=async(f,h,w,s)=>{if(!w.endpoint){let E;if(w.serviceConfiguredEndpoint)E=await w.serviceConfiguredEndpoint();else E=await GE(w.serviceId);if(E)w.endpoint=()=>Promise.resolve(WE(E))}let $=await yx(f,h,w);if(typeof w.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return w.endpointProvider($,s)},yx=async(f,h,w)=>{let s={},$=h?.getEndpointParameterInstructions?.()||{};for(let[r,E]of Object.entries($))switch(E.type){case"staticContextParams":s[r]=E.value;break;case"contextParams":s[r]=f[E.name];break;case"clientContextParams":case"builtInParams":s[r]=await qS(E.name,r,w)();break;case"operationContextParams":s[r]=E.get(f);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(E))}if(Object.keys($).length===0)Object.assign(s,w);if(String(w.serviceId).toLowerCase()==="s3")await HS(s);return s};var WF=L(()=>{DS();GF();zE()});var CX=L(()=>{WF();zE()});var IX,LX=({config:f,instructions:h})=>{return(w,s)=>async($)=>{if(f.endpoint)IX.setFeature(s,"ENDPOINT_OVERRIDE","N");let r=await FX($.input,{getEndpointParameterInstructions(){return h}},{...f},s);s.endpointV2=r,s.authSchemes=r.properties?.authSchemes;let E=s.authSchemes?.[0];if(E){s.signing_region=E.signingRegion,s.signing_service=E.signingName;let U=Mh(s)?.selectedHttpAuthScheme?.httpAuthOption;if(U)U.signingProperties=Object.assign(U.signingProperties||{},{signing_region:E.signingRegion,signingRegion:E.signingRegion,signing_service:E.signingName,signingName:E.signingName,signingRegionSet:E.signingRegionSet},E.properties)}return w({...$})}};var zF=L(()=>{IX=u(m0(),1);x1();WF()});var BX=(f,h)=>(w,s)=>async($)=>{let{response:r}=await w($);try{let E=await h(r,f);return{response:r,output:E}}catch(E){if(Object.defineProperty(E,"$response",{value:r}),!("$metadata"in E)){try{E.message+=`
|
|
40
|
-
Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`}catch(U){if(!s.logger||s.logger?.constructor?.name==="NoOpLogger")console.warn("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.");else s.logger?.warn?.("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.")}if(typeof E.$responseBodyText!=="undefined"){if(E.$response)E.$response.body=E.$responseBodyText}}throw E}};var AX=(f,h)=>(w,s)=>async($)=>{let r=s.endpointV2?.url&&f.urlParser?async()=>f.urlParser(s.endpointV2.url):f.endpoint;if(!r)throw new Error("No valid endpoint provider available.");let E=await h($.input,{...f,endpoint:r});return w({...$,request:E})};function z(f,h,w){return{applyToStack:(s)=>{s.add(BX(f,w),jx),s.add(AX(f,h),RF)}}}var jx,RF;var GX=L(()=>{jx={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},RF={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0}});var k=L(()=>{GX()});var Ox,R=(f,h)=>({applyToStack:(w)=>{w.addRelativeTo(LX({config:f,instructions:h}),Ox)}});var WX=L(()=>{k();zF();Ox={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:RF.name}});var ss=(f)=>{let h=f.tls??!0,{endpoint:w,useDualstackEndpoint:s,useFipsEndpoint:$}=f,r=w!=null?async()=>WE(await Lf(w)()):void 0,T=Object.assign(f,{endpoint:r,tls:h,isCustomEndpoint:!!w,useDualstackEndpoint:Lf(s??!1),useFipsEndpoint:Lf($??!1)}),U=void 0;return T.serviceConfiguredEndpoint=async()=>{if(f.serviceId&&!U)U=GE(f.serviceId);return U},T};var zX=L(()=>{x1();GF();zE()});var RX=()=>{};var D=L(()=>{CX();zF();WX();zX();RX()});var Of,sw=3,Ph;var RE=L(()=>{(function(f){f.STANDARD="standard",f.ADAPTIVE="adaptive"})(Of||(Of={}));Ph=Of.STANDARD});var SX,XX,YX,MX;var QX=L(()=>{SX=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],XX=["TimeoutError","RequestTimeout","RequestTimeoutException"],YX=[500,502,503,504],MX=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"]});var lx=(f)=>f.$metadata?.clockSkewCorrected,$s=(f)=>f.$metadata?.httpStatusCode===429||SX.includes(f.name)||f.$retryable?.throttling==!0,a$=(f,h=0)=>lx(f)||XX.includes(f.name)||MX.includes(f?.code||"")||YX.includes(f.$metadata?.httpStatusCode||0)||f.cause!==void 0&&h<=10&&a$(f.cause,h+1),KX=(f)=>{if(f.$metadata?.httpStatusCode!==void 0){let h=f.$metadata.httpStatusCode;if(500<=h&&h<=599&&!a$(f))return!0;return!1}return!1};var o$=L(()=>{QX()});class rs{constructor(f){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=f?.beta??0.7,this.minCapacity=f?.minCapacity??1,this.minFillRate=f?.minFillRate??0.5,this.scaleConstant=f?.scaleConstant??0.4,this.smooth=f?.smooth??0.8;let h=this.getCurrentTimeInSeconds();this.lastThrottleTime=h,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(f){if(!this.enabled)return;if(this.refillTokenBucket(),f>this.currentCapacity){let h=(f-this.currentCapacity)/this.fillRate*1000;await new Promise((w)=>rs.setTimeoutFn(w,h))}this.currentCapacity=this.currentCapacity-f}refillTokenBucket(){let f=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=f;return}let h=(f-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+h),this.lastTimestamp=f}updateClientSendingRate(f){let h;if(this.updateMeasuredRate(),$s(f)){let s=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=s,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),h=this.cubicThrottle(s),this.enableTokenBucket()}else this.calculateTimeWindow(),h=this.cubicSuccess(this.getCurrentTimeInSeconds());let w=Math.min(h,2*this.measuredTxRate);this.updateTokenBucketRate(w)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(f){return this.getPrecise(f*this.beta)}cubicSuccess(f){return this.getPrecise(this.scaleConstant*Math.pow(f-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(f){this.refillTokenBucket(),this.fillRate=Math.max(f,this.minFillRate),this.maxCapacity=Math.max(f,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){let f=this.getCurrentTimeInSeconds(),h=Math.floor(f*2)/2;if(this.requestCount++,h>this.lastTxRateBucket){let w=this.requestCount/(h-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(w*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=h}}getPrecise(f){return parseFloat(f.toFixed(8))}}var SF=L(()=>{o$();rs.setTimeoutFn=setTimeout});var $w=100,p$=20000,XF=500,SE=500,YF=5,MF=10,QF=1,XE="amz-sdk-invocation-id",YE="amz-sdk-request";var ZX=()=>{let f=$w;return{computeNextBackoffDelay:(s)=>{return Math.floor(Math.min(p$,Math.random()*2**s*f))},setDelayBase:(s)=>{f=s}}};var JX=()=>{};var KF=({retryDelay:f,retryCount:h,retryCost:w})=>{return{getRetryCount:()=>h,getRetryDelay:()=>Math.min(p$,f),getRetryCost:()=>w}};var VX=()=>{};class Es{constructor(f){this.maxAttempts=f,this.mode=Of.STANDARD,this.capacity=SE,this.retryBackoffStrategy=ZX(),this.maxAttemptsProvider=typeof f==="function"?f:async()=>f}async acquireInitialRetryToken(f){return KF({retryDelay:$w,retryCount:0})}async refreshRetryTokenForRetry(f,h){let w=await this.getMaxAttempts();if(this.shouldRetry(f,h,w)){let s=h.errorType;this.retryBackoffStrategy.setDelayBase(s==="THROTTLING"?XF:$w);let $=this.retryBackoffStrategy.computeNextBackoffDelay(f.getRetryCount()),r=h.retryAfterHint?Math.max(h.retryAfterHint.getTime()-Date.now()||0,$):$,E=this.getCapacityCost(s);return this.capacity-=E,KF({retryDelay:r,retryCount:f.getRetryCount()+1,retryCost:E})}throw new Error("No retry token available")}recordSuccess(f){this.capacity=Math.max(SE,this.capacity+(f.getRetryCost()??QF))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(f){return console.warn(`Max attempts provider could not resolve. Using default of ${sw}`),sw}}shouldRetry(f,h,w){return f.getRetryCount()+1<w&&this.capacity>=this.getCapacityCost(h.errorType)&&this.isRetryableError(h.errorType)}getCapacityCost(f){return f==="TRANSIENT"?MF:YF}isRetryableError(f){return f==="THROTTLING"||f==="TRANSIENT"}}var ME=L(()=>{RE();JX();VX()});class ZF{constructor(f,h){this.maxAttemptsProvider=f,this.mode=Of.ADAPTIVE;let{rateLimiter:w}=h??{};this.rateLimiter=w??new rs,this.standardRetryStrategy=new Es(f)}async acquireInitialRetryToken(f){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(f)}async refreshRetryTokenForRetry(f,h){return this.rateLimiter.updateClientSendingRate(h),this.standardRetryStrategy.refreshRetryTokenForRetry(f,h)}recordSuccess(f){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(f)}}var PX=L(()=>{RE();SF();ME()});var HX=L(()=>{ME()});var NX=()=>{};var w1=L(()=>{PX();HX();SF();ME();RE();NX()});var JF=H((DX)=>{Object.defineProperty(DX,"__esModule",{value:!0});DX.default=mx;var vx=bx(B0("node:crypto"));function bx(f){return f&&f.__esModule?f:{default:f}}var KE=new Uint8Array(256),QE=KE.length;function mx(){if(QE>KE.length-16)vx.default.randomFillSync(KE),QE=0;return KE.slice(QE,QE+=16)}});var yX=H((qX)=>{Object.defineProperty(qX,"__esModule",{value:!0});qX.default=void 0;var ix=/^(?:[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;qX.default=ix});var u$=H((jX)=>{Object.defineProperty(jX,"__esModule",{value:!0});jX.default=void 0;var cx=gx(yX());function gx(f){return f&&f.__esModule?f:{default:f}}function xx(f){return typeof f==="string"&&cx.default.test(f)}var _x=xx;jX.default=_x});var t$=H((vX)=>{Object.defineProperty(vX,"__esModule",{value:!0});vX.default=void 0;vX.unsafeStringify=lX;var nx=ex(u$());function ex(f){return f&&f.__esModule?f:{default:f}}var hf=[];for(let f=0;f<256;++f)hf.push((f+256).toString(16).slice(1));function lX(f,h=0){return hf[f[h+0]]+hf[f[h+1]]+hf[f[h+2]]+hf[f[h+3]]+"-"+hf[f[h+4]]+hf[f[h+5]]+"-"+hf[f[h+6]]+hf[f[h+7]]+"-"+hf[f[h+8]]+hf[f[h+9]]+"-"+hf[f[h+10]]+hf[f[h+11]]+hf[f[h+12]]+hf[f[h+13]]+hf[f[h+14]]+hf[f[h+15]]}function ax(f,h=0){let w=lX(f,h);if(!nx.default(w))throw TypeError("Stringified UUID is invalid");return w}var ox=ax;vX.default=ox});var cX=H((dX)=>{Object.defineProperty(dX,"__esModule",{value:!0});dX.default=void 0;var ux=f_(JF()),tx=t$();function f_(f){return f&&f.__esModule?f:{default:f}}var mX,VF,PF=0,HF=0;function h_(f,h,w){let s=h&&w||0,$=h||new Array(16);f=f||{};let r=f.node||mX,E=f.clockseq!==void 0?f.clockseq:VF;if(r==null||E==null){let B=f.random||(f.rng||ux.default)();if(r==null)r=mX=[B[0]|1,B[1],B[2],B[3],B[4],B[5]];if(E==null)E=VF=(B[6]<<8|B[7])&16383}let T=f.msecs!==void 0?f.msecs:Date.now(),U=f.nsecs!==void 0?f.nsecs:HF+1,F=T-PF+(U-HF)/1e4;if(F<0&&f.clockseq===void 0)E=E+1&16383;if((F<0||T>PF)&&f.nsecs===void 0)U=0;if(U>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");PF=T,HF=U,VF=E,T+=12219292800000;let C=((T&268435455)*1e4+U)%4294967296;$[s++]=C>>>24&255,$[s++]=C>>>16&255,$[s++]=C>>>8&255,$[s++]=C&255;let I=T/4294967296*1e4&268435455;$[s++]=I>>>8&255,$[s++]=I&255,$[s++]=I>>>24&15|16,$[s++]=I>>>16&255,$[s++]=E>>>8|128,$[s++]=E&255;for(let B=0;B<6;++B)$[s+B]=r[B];return h||tx.unsafeStringify($)}var w_=h_;dX.default=w_});var NF=H((gX)=>{Object.defineProperty(gX,"__esModule",{value:!0});gX.default=void 0;var s_=$_(u$());function $_(f){return f&&f.__esModule?f:{default:f}}function r_(f){if(!s_.default(f))throw TypeError("Invalid UUID");let h,w=new Uint8Array(16);return w[0]=(h=parseInt(f.slice(0,8),16))>>>24,w[1]=h>>>16&255,w[2]=h>>>8&255,w[3]=h&255,w[4]=(h=parseInt(f.slice(9,13),16))>>>8,w[5]=h&255,w[6]=(h=parseInt(f.slice(14,18),16))>>>8,w[7]=h&255,w[8]=(h=parseInt(f.slice(19,23),16))>>>8,w[9]=h&255,w[10]=(h=parseInt(f.slice(24,36),16))/1099511627776&255,w[11]=h/4294967296&255,w[12]=h>>>24&255,w[13]=h>>>16&255,w[14]=h>>>8&255,w[15]=h&255,w}var E_=r_;gX.default=E_});var DF=H((eX)=>{Object.defineProperty(eX,"__esModule",{value:!0});eX.URL=eX.DNS=void 0;eX.default=I_;var T_=t$(),U_=F_(NF());function F_(f){return f&&f.__esModule?f:{default:f}}function C_(f){f=unescape(encodeURIComponent(f));let h=[];for(let w=0;w<f.length;++w)h.push(f.charCodeAt(w));return h}var _X="6ba7b810-9dad-11d1-80b4-00c04fd430c8";eX.DNS=_X;var nX="6ba7b811-9dad-11d1-80b4-00c04fd430c8";eX.URL=nX;function I_(f,h,w){function s($,r,E,T){var U;if(typeof $==="string")$=C_($);if(typeof r==="string")r=U_.default(r);if(((U=r)===null||U===void 0?void 0:U.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let F=new Uint8Array(16+$.length);if(F.set(r),F.set($,r.length),F=w(F),F[6]=F[6]&15|h,F[8]=F[8]&63|128,E){T=T||0;for(let C=0;C<16;++C)E[T+C]=F[C];return E}return T_.unsafeStringify(F)}try{s.name=f}catch($){}return s.DNS=_X,s.URL=nX,s}});var uX=H((oX)=>{Object.defineProperty(oX,"__esModule",{value:!0});oX.default=void 0;var A_=G_(B0("node:crypto"));function G_(f){return f&&f.__esModule?f:{default:f}}function W_(f){if(Array.isArray(f))f=Buffer.from(f);else if(typeof f==="string")f=Buffer.from(f,"utf8");return A_.default.createHash("md5").update(f).digest()}var z_=W_;oX.default=z_});var wY=H((fY)=>{Object.defineProperty(fY,"__esModule",{value:!0});fY.default=void 0;var R_=tX(DF()),S_=tX(uX());function tX(f){return f&&f.__esModule?f:{default:f}}var X_=R_.default("v3",48,S_.default),Y_=X_;fY.default=Y_});var rY=H((sY)=>{Object.defineProperty(sY,"__esModule",{value:!0});sY.default=void 0;var M_=Q_(B0("node:crypto"));function Q_(f){return f&&f.__esModule?f:{default:f}}var K_={randomUUID:M_.default.randomUUID};sY.default=K_});var CY=H((UY)=>{Object.defineProperty(UY,"__esModule",{value:!0});UY.default=void 0;var EY=TY(rY()),Z_=TY(JF()),J_=t$();function TY(f){return f&&f.__esModule?f:{default:f}}function V_(f,h,w){if(EY.default.randomUUID&&!h&&!f)return EY.default.randomUUID();f=f||{};let s=f.random||(f.rng||Z_.default)();if(s[6]=s[6]&15|64,s[8]=s[8]&63|128,h){w=w||0;for(let $=0;$<16;++$)h[w+$]=s[$];return h}return J_.unsafeStringify(s)}var P_=V_;UY.default=P_});var BY=H((IY)=>{Object.defineProperty(IY,"__esModule",{value:!0});IY.default=void 0;var H_=N_(B0("node:crypto"));function N_(f){return f&&f.__esModule?f:{default:f}}function D_(f){if(Array.isArray(f))f=Buffer.from(f);else if(typeof f==="string")f=Buffer.from(f,"utf8");return H_.default.createHash("sha1").update(f).digest()}var q_=D_;IY.default=q_});var zY=H((GY)=>{Object.defineProperty(GY,"__esModule",{value:!0});GY.default=void 0;var k_=AY(DF()),y_=AY(BY());function AY(f){return f&&f.__esModule?f:{default:f}}var j_=k_.default("v5",80,y_.default),O_=j_;GY.default=O_});var XY=H((RY)=>{Object.defineProperty(RY,"__esModule",{value:!0});RY.default=void 0;var l_="00000000-0000-0000-0000-000000000000";RY.default=l_});var QY=H((YY)=>{Object.defineProperty(YY,"__esModule",{value:!0});YY.default=void 0;var v_=b_(u$());function b_(f){return f&&f.__esModule?f:{default:f}}function m_(f){if(!v_.default(f))throw TypeError("Invalid UUID");return parseInt(f.slice(14,15),16)}var d_=m_;YY.default=d_});var qF=H((s1)=>{Object.defineProperty(s1,"__esModule",{value:!0});Object.defineProperty(s1,"NIL",{enumerable:!0,get:function(){return __.default}});Object.defineProperty(s1,"parse",{enumerable:!0,get:function(){return o_.default}});Object.defineProperty(s1,"stringify",{enumerable:!0,get:function(){return a_.default}});Object.defineProperty(s1,"v1",{enumerable:!0,get:function(){return i_.default}});Object.defineProperty(s1,"v3",{enumerable:!0,get:function(){return c_.default}});Object.defineProperty(s1,"v4",{enumerable:!0,get:function(){return g_.default}});Object.defineProperty(s1,"v5",{enumerable:!0,get:function(){return x_.default}});Object.defineProperty(s1,"validate",{enumerable:!0,get:function(){return e_.default}});Object.defineProperty(s1,"version",{enumerable:!0,get:function(){return n_.default}});var i_=n1(cX()),c_=n1(wY()),g_=n1(CY()),x_=n1(zY()),__=n1(XY()),n_=n1(QY()),e_=n1(u$()),a_=n1(t$()),o_=n1(NF());function n1(f){return f&&f.__esModule?f:{default:f}}});var M1,cL0,gL0,KY,xL0,_L0,nL0,eL0,aL0,oL0;var ZY=L(()=>{M1=u(qF(),1),cL0=M1.default.v1,gL0=M1.default.v3,KY=M1.default.v4,xL0=M1.default.v5,_L0=M1.default.NIL,nL0=M1.default.version,eL0=M1.default.validate,aL0=M1.default.stringify,oL0=M1.default.parse});var JY=L(()=>{w1()});var kF=L(()=>{w1()});var yF=L(()=>{o$()});var jF=(f)=>{if(f instanceof Error)return f;if(f instanceof Object)return Object.assign(new Error,f);if(typeof f==="string")return new Error(f);return new Error(`AWS SDK error wrapper for ${f}`)};var OF=L(()=>{Ff();o$();w1();JY();kF();yF()});var VY=L(()=>{w1();OF()});var PY="AWS_MAX_ATTEMPTS",HY="max_attempts",Ts,Us=(f)=>{let{retryStrategy:h,retryMode:w,maxAttempts:s}=f,$=Lf(s??sw);return Object.assign(f,{maxAttempts:$,retryStrategy:async()=>{if(h)return h;if(await Lf(w)()===Of.ADAPTIVE)return new ZF($);return new Es($)}})},p_="AWS_RETRY_MODE",u_="retry_mode",Fs;var NY=L(()=>{x1();w1();Ts={environmentVariableSelector:(f)=>{let h=f[PY];if(!h)return;let w=parseInt(h);if(Number.isNaN(w))throw new Error(`Environment variable ${PY} mast be a number, got "${h}"`);return w},configFileSelector:(f)=>{let h=f[HY];if(!h)return;let w=parseInt(h);if(Number.isNaN(w))throw new Error(`Shared config file entry ${HY} mast be a number, got "${h}"`);return w},default:sw},Fs={environmentVariableSelector:(f)=>f[p_],configFileSelector:(f)=>f[u_],default:Ph}});var DY=L(()=>{Ff();w1()});var rw=(f,h)=>{let w=[];if(f)w.push(f);if(h)for(let s of h)w.push(s);return w},Hh=(f,h)=>{return`${f||"anonymous"}${h&&h.length>0?` (a.k.a. ${h.join(",")})`:""}`},Cs=()=>{let f=[],h=[],w=!1,s=new Set,$=(I)=>I.sort((B,G)=>qY[G.step]-qY[B.step]||kY[G.priority||"normal"]-kY[B.priority||"normal"]),r=(I)=>{let B=!1,G=(S)=>{let Q=rw(S.name,S.aliases);if(Q.includes(I)){B=!0;for(let M of Q)s.delete(M);return!1}return!0};return f=f.filter(G),h=h.filter(G),B},E=(I)=>{let B=!1,G=(S)=>{if(S.middleware===I){B=!0;for(let Q of rw(S.name,S.aliases))s.delete(Q);return!1}return!0};return f=f.filter(G),h=h.filter(G),B},T=(I)=>{return f.forEach((B)=>{I.add(B.middleware,{...B})}),h.forEach((B)=>{I.addRelativeTo(B.middleware,{...B})}),I.identifyOnResolve?.(C.identifyOnResolve()),I},U=(I)=>{let B=[];return I.before.forEach((G)=>{if(G.before.length===0&&G.after.length===0)B.push(G);else B.push(...U(G))}),B.push(I),I.after.reverse().forEach((G)=>{if(G.before.length===0&&G.after.length===0)B.push(G);else B.push(...U(G))}),B},F=(I=!1)=>{let B=[],G=[],S={};return f.forEach((M)=>{let q={...M,before:[],after:[]};for(let N of rw(q.name,q.aliases))S[N]=q;B.push(q)}),h.forEach((M)=>{let q={...M,before:[],after:[]};for(let N of rw(q.name,q.aliases))S[N]=q;G.push(q)}),G.forEach((M)=>{if(M.toMiddleware){let q=S[M.toMiddleware];if(q===void 0){if(I)return;throw new Error(`${M.toMiddleware} is not found when adding ${Hh(M.name,M.aliases)} middleware ${M.relation} ${M.toMiddleware}`)}if(M.relation==="after")q.after.push(M);if(M.relation==="before")q.before.push(M)}}),$(B).map(U).reduce((M,q)=>{return M.push(...q),M},[])},C={add:(I,B={})=>{let{name:G,override:S,aliases:Q}=B,M={step:"initialize",priority:"normal",middleware:I,...B},q=rw(G,Q);if(q.length>0){if(q.some((N)=>s.has(N))){if(!S)throw new Error(`Duplicate middleware name '${Hh(G,Q)}'`);for(let N of q){let y=f.findIndex((L0)=>L0.name===N||L0.aliases?.some((b0)=>b0===N));if(y===-1)continue;let n=f[y];if(n.step!==M.step||M.priority!==n.priority)throw new Error(`"${Hh(n.name,n.aliases)}" middleware with ${n.priority} priority in ${n.step} step cannot be overridden by "${Hh(G,Q)}" middleware with ${M.priority} priority in ${M.step} step.`);f.splice(y,1)}}for(let N of q)s.add(N)}f.push(M)},addRelativeTo:(I,B)=>{let{name:G,override:S,aliases:Q}=B,M={middleware:I,...B},q=rw(G,Q);if(q.length>0){if(q.some((N)=>s.has(N))){if(!S)throw new Error(`Duplicate middleware name '${Hh(G,Q)}'`);for(let N of q){let y=h.findIndex((L0)=>L0.name===N||L0.aliases?.some((b0)=>b0===N));if(y===-1)continue;let n=h[y];if(n.toMiddleware!==M.toMiddleware||n.relation!==M.relation)throw new Error(`"${Hh(n.name,n.aliases)}" middleware ${n.relation} "${n.toMiddleware}" middleware cannot be overridden by "${Hh(G,Q)}" middleware ${M.relation} "${M.toMiddleware}" middleware.`);h.splice(y,1)}}for(let N of q)s.add(N)}h.push(M)},clone:()=>T(Cs()),use:(I)=>{I.applyToStack(C)},remove:(I)=>{if(typeof I==="string")return r(I);else return E(I)},removeByTag:(I)=>{let B=!1,G=(S)=>{let{tags:Q,name:M,aliases:q}=S;if(Q&&Q.includes(I)){let N=rw(M,q);for(let y of N)s.delete(y);return B=!0,!1}return!0};return f=f.filter(G),h=h.filter(G),B},concat:(I)=>{let B=T(Cs());return B.use(I),B.identifyOnResolve(w||B.identifyOnResolve()||(I.identifyOnResolve?.()??!1)),B},applyToStack:T,identify:()=>{return F(!0).map((I)=>{let B=I.step??I.relation+" "+I.toMiddleware;return Hh(I.name,I.aliases)+" - "+B})},identifyOnResolve(I){if(typeof I==="boolean")w=I;return w},resolve:(I,B)=>{for(let G of F().map((S)=>S.middleware).reverse())I=G(I,B);if(w)console.log(C.identify());return I}};return C},qY,kY;var yY=L(()=>{qY={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},kY={high:3,normal:2,low:1}});var lF=L(()=>{yY()});class Ew{constructor(f){this.config=f,this.middlewareStack=Cs()}send(f,h,w){let s=typeof h!=="function"?h:void 0,$=typeof h==="function"?h:w,r=s===void 0&&this.config.cacheMiddleware===!0,E;if(r){if(!this.handlers)this.handlers=new WeakMap;let T=this.handlers;if(T.has(f.constructor))E=T.get(f.constructor);else E=f.resolveMiddleware(this.middlewareStack,this.config,s),T.set(f.constructor,E)}else delete this.handlers,E=f.resolveMiddleware(this.middlewareStack,this.config,s);if($)E(f).then((T)=>$(null,T.output),(T)=>$(T)).catch(()=>{});else return E(f).then((T)=>T.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}var jY=L(()=>{lF()});var Bf;var OY=L(()=>{Bf=u(bw(),1)});class W{constructor(){this.middlewareStack=Cs()}static classBuilder(){return new lY}resolveMiddlewareWithContext(f,h,w,{middlewareFn:s,clientName:$,commandName:r,inputFilterSensitiveLog:E,outputFilterSensitiveLog:T,smithyContext:U,additionalContext:F,CommandCtor:C}){for(let Q of s.bind(this)(C,f,h,w))this.middlewareStack.use(Q);let I=f.concat(this.middlewareStack),{logger:B}=h,G={logger:B,clientName:$,commandName:r,inputFilterSensitiveLog:E,outputFilterSensitiveLog:T,[H$]:{commandInstance:this,...U},...F},{requestHandler:S}=h;return I.resolve((Q)=>S.handle(Q.request,w||{}),G)}}class lY{constructor(){this._init=()=>{},this._ep={},this._middlewareFn=()=>[],this._commandName="",this._clientName="",this._additionalContext={},this._smithyContext={},this._inputFilterSensitiveLog=(f)=>f,this._outputFilterSensitiveLog=(f)=>f,this._serializer=null,this._deserializer=null}init(f){this._init=f}ep(f){return this._ep=f,this}m(f){return this._middlewareFn=f,this}s(f,h,w={}){return this._smithyContext={service:f,operation:h,...w},this}c(f={}){return this._additionalContext=f,this}n(f,h){return this._clientName=f,this._commandName=h,this}f(f=(w)=>w,h=(w)=>w){return this._inputFilterSensitiveLog=f,this._outputFilterSensitiveLog=h,this}ser(f){return this._serializer=f,this}de(f){return this._deserializer=f,this}build(){let f=this,h;return h=class extends W{static getEndpointParameterInstructions(){return f._ep}constructor(...[w]){super();this.serialize=f._serializer,this.deserialize=f._deserializer,this.input=w??{},f._init(this)}resolveMiddleware(w,s,$){return this.resolveMiddlewareWithContext(w,s,$,{CommandCtor:h,middlewareFn:f._middlewareFn,clientName:f._clientName,commandName:f._commandName,inputFilterSensitiveLog:f._inputFilterSensitiveLog,outputFilterSensitiveLog:f._outputFilterSensitiveLog,smithyContext:f._smithyContext,additionalContext:f._additionalContext})}}}}var vY=L(()=>{lF();d1()});var U0="***SensitiveInformation***";var Is=(f,h)=>{for(let w of Object.keys(f)){let s=f[w],$=async function(E,T,U){let F=new s(E);if(typeof T==="function")this.send(F,T);else if(typeof U==="function"){if(typeof T!=="object")throw new Error(`Expected http options but got ${typeof T}`);this.send(F,T||{},U)}else return this.send(F,T)},r=(w[0].toLowerCase()+w.slice(1)).replace(/Command$/,"");h.prototype[r]=$}};var e0=(f)=>{switch(f){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${f}"`)}},Nh=(f)=>{if(f===null||f===void 0)return;if(typeof f==="number"){if(f===0||f===1)JE.warn(ZE(`Expected boolean, got ${typeof f}: ${f}`));if(f===0)return!1;if(f===1)return!0}if(typeof f==="string"){let h=f.toLowerCase();if(h==="false"||h==="true")JE.warn(ZE(`Expected boolean, got ${typeof f}: ${f}`));if(h==="false")return!1;if(h==="true")return!0}if(typeof f==="boolean")return f;throw new TypeError(`Expected boolean, got ${typeof f}: ${f}`)},Xf=(f)=>{if(f===null||f===void 0)return;if(typeof f==="string"){let h=parseFloat(f);if(!Number.isNaN(h)){if(String(h)!==String(f))JE.warn(ZE(`Expected number but observed string: ${f}`));return h}}if(typeof f==="number")return f;throw new TypeError(`Expected number, got ${typeof f}: ${f}`)},t_,bY=(f)=>{let h=Xf(f);if(h!==void 0&&!Number.isNaN(h)&&h!==1/0&&h!==-1/0){if(Math.abs(h)>t_)throw new TypeError(`Expected 32-bit float, got ${f}`)}return h},vF=(f)=>{if(f===null||f===void 0)return;if(Number.isInteger(f)&&!Number.isNaN(f))return f;throw new TypeError(`Expected integer, got ${typeof f}: ${f}`)},mY=(f)=>bF(f,32),dY=(f)=>bF(f,16),iY=(f)=>bF(f,8),bF=(f,h)=>{let w=vF(f);if(w!==void 0&&fn(w,h)!==w)throw new TypeError(`Expected ${h}-bit integer, got ${f}`);return w},fn=(f,h)=>{switch(h){case 32:return Int32Array.of(f)[0];case 16:return Int16Array.of(f)[0];case 8:return Int8Array.of(f)[0]}},j=(f,h)=>{if(f===null||f===void 0){if(h)throw new TypeError(`Expected a non-null value for ${h}`);throw new TypeError("Expected a non-null value")}return f},g=(f)=>{if(f===null||f===void 0)return;if(typeof f==="object"&&!Array.isArray(f))return f;let h=Array.isArray(f)?"array":typeof f;throw new TypeError(`Expected object, got ${h}: ${f}`)},A=(f)=>{if(f===null||f===void 0)return;if(typeof f==="string")return f;if(["boolean","number","bigint"].includes(typeof f))return JE.warn(ZE(`Expected string, got ${typeof f}: ${f}`)),String(f);throw new TypeError(`Expected string, got ${typeof f}: ${f}`)},mF=(f)=>{if(typeof f=="string")return Xf(Ls(f));return Xf(f)},cY,gY=(f)=>{if(typeof f=="string")return bY(Ls(f));return bY(f)},hn,Ls=(f)=>{let h=f.match(hn);if(h===null||h[0].length!==f.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(f)},dF=(f)=>{if(typeof f=="string")return wn(f);return Xf(f)},wn=(f)=>{switch(f){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new Error(`Unable to parse float value: ${f}`)}},Ef=(f)=>{if(typeof f==="string")return vF(Ls(f));return vF(f)},M0=(f)=>{if(typeof f==="string")return mY(Ls(f));return mY(f)},iF=(f)=>{if(typeof f==="string")return dY(Ls(f));return dY(f)},xY=(f)=>{if(typeof f==="string")return iY(Ls(f));return iY(f)},ZE=(f)=>{return String(new TypeError(f).stack||f).split(`
|
|
39
|
+
`);let $;try{$=s.parse(w,!0)}catch(U){if(U&&typeof U==="object")Object.defineProperty(U,"$responseBodyText",{value:w});throw U}let r="#text",E=Object.keys($)[0],T=$[E];if(T[r])T[E]=T[r],delete T[r];return nc.getValueFromTextNode(T)}return{}}),"parseXmlBody"),ac=X1(async(f,h)=>{let w=await a7(f,h);if(w.Error)w.Error.message=w.Error.message??w.Error.Message;return w},"parseXmlErrorBody"),pc=X1((f,h)=>{if(h?.Error?.Code!==void 0)return h.Error.Code;if(h?.Code!==void 0)return h.Code;if(f.statusCode==404)return"NotFound"},"loadRestXmlErrorCode")});var O0=H((b$)=>{Object.defineProperty(b$,"__esModule",{value:!0});var oU=l4();oU.__exportStar(I1(),b$);oU.__exportStar(cz(),b$);oU.__exportStar(o7(),b$)});async function u7(f,h,w){if(w.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor")ff.setFeature(f,"PROTOCOL_RPC_V2_CBOR","M");if(typeof h.retryStrategy==="function"){let r=await h.retryStrategy();if(typeof r.acquireInitialRetryToken==="function")if(r.constructor?.name?.includes("Adaptive"))ff.setFeature(f,"RETRY_MODE_ADAPTIVE","F");else ff.setFeature(f,"RETRY_MODE_STANDARD","E");else ff.setFeature(f,"RETRY_MODE_LEGACY","D")}if(typeof h.accountIdEndpointMode==="function"){let r=f.endpointV2;if(String(r?.url?.hostname).match(oc))ff.setFeature(f,"ACCOUNT_ID_ENDPOINT","O");switch(await h.accountIdEndpointMode?.()){case"disabled":ff.setFeature(f,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":ff.setFeature(f,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":ff.setFeature(f,"ACCOUNT_ID_MODE_REQUIRED","R");break}}let $=f.__smithy_context?.selectedHttpAuthScheme?.identity;if($?.$source){let r=$;if(r.accountId)ff.setFeature(f,"RESOLVED_ACCOUNT_ID","T");for(let[E,T]of Object.entries(r.$source??{}))ff.setFeature(f,E,T)}}var ff,oc;var t7=B(()=>{ff=o(O0(),1),oc=/\d{12}\.ddb/});var uU="user-agent",f5="x-amz-user-agent",tU=" ",h5="/",fR,hR,fF="-";var wR=B(()=>{fR=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,hR=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g});function sR(f){let h="";for(let w in f){let s=f[w];if(h.length+s.length+1<=1024){if(h.length)h+=","+s;else h+=s;continue}break}return h}var uc=(f)=>(h,w)=>async(s)=>{let{request:$}=s;if(!n0.isInstance($))return h(s);let{headers:r}=$,E=w?.userAgent?.map(w5)||[],T=(await f.defaultUserAgentProvider()).map(w5);await u7(w,f,s);let U=w;T.push(`m/${sR(Object.assign({},w.__smithy_context?.features,U.__aws_sdk_context?.features))}`);let F=f?.customUserAgent?.map(w5)||[],C=await f.userAgentAppId();if(C)T.push(w5([`app/${C}`]));let I=VA(),L=(I?[I]:[]).concat([...T,...E,...F]).join(tU),W=[...T.filter((X)=>X.startsWith("aws-sdk-")),...F].join(tU);if(f.runtime!=="browser"){if(W)r[f5]=r[f5]?`${r[uU]} ${W}`:W;r[uU]=L}else r[f5]=L;return h({...s,request:$})},w5=(f)=>{let h=f[0].split(h5).map((E)=>E.replace(fR,fF)).join(h5),w=f[1]?.replace(hR,fF),s=h.indexOf(h5),$=h.substring(0,s),r=h.substring(s+1);if($==="api")r=r.toLowerCase();return[$,r,w].filter((E)=>E&&E.length>0).reduce((E,T,U)=>{switch(U){case 0:return T;case 1:return`${E}/${T}`;default:return`${E}#${T}`}},"")},tc,cw=(f)=>({applyToStack:(h)=>{h.add(uc(f),tc)}});var $R=B(()=>{N$();C1();t7();wR();tc={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0}});var m$=B(()=>{bW();$R()});var gw=(f,h,w)=>{if(!(h in f))return;if(f[h]==="true")return!0;if(f[h]==="false")return!1;throw new Error(`Cannot load ${w} "${h}". Expected "true" or "false", got ${f[h]}.`)};var Sh;var rR=B(()=>{(function(f){f.ENV="env",f.CONFIG="shared config entry"})(Sh||(Sh={}))});var hF=B(()=>{rR()});var fg="AWS_USE_DUALSTACK_ENDPOINT",hg="use_dualstack_endpoint",xw;var ER=B(()=>{hF();xw={environmentVariableSelector:(f)=>gw(f,fg,Sh.ENV),configFileSelector:(f)=>gw(f,hg,Sh.CONFIG),default:!1}});var wg="AWS_USE_FIPS_ENDPOINT",sg="use_fips_endpoint",_w;var TR=B(()=>{hF();_w={environmentVariableSelector:(f)=>gw(f,wg,Sh.ENV),configFileSelector:(f)=>gw(f,sg,Sh.CONFIG),default:!1}});var wF,Yh=(f)=>f[wF.SMITHY_CONTEXT_KEY]||(f[wF.SMITHY_CONTEXT_KEY]={});var UR=B(()=>{wF=o(F1(),1)});var B1=(f)=>{if(typeof f==="function")return f;let h=Promise.resolve(f);return()=>h};var gf=B(()=>{UR()});var FR=B(()=>{gf()});var CR=B(()=>{gf()});var IR=B(()=>{ER();TR();FR();CR()});var Mh,nw;var LR=B(()=>{Mh={environmentVariableSelector:(f)=>f.AWS_REGION,configFileSelector:(f)=>f.region,default:()=>{throw new Error("Region is missing")}},nw={preferredFile:"credentials"}});var s5=(f)=>typeof f==="string"&&(f.startsWith("fips-")||f.endsWith("-fips"));var sF=(f)=>s5(f)?["fips-aws-global","aws-fips"].includes(f)?"us-east-1":f.replace(/fips-(dkr-|prod-)?|-fips/,""):f;var BR=()=>{};var ew=(f)=>{let{region:h,useFipsEndpoint:w}=f;if(!h)throw new Error("Region is missing");return Object.assign(f,{region:async()=>{if(typeof h==="string")return sF(h);let s=await h();return sF(s)},useFipsEndpoint:async()=>{let s=typeof h==="string"?h:await h();if(s5(s))return!0;return typeof w!=="function"?Promise.resolve(!!w):w()}})};var GR=B(()=>{BR()});var WR=B(()=>{LR();GR()});var AR=()=>{};var zR=()=>{};var RR=()=>{};var XR=B(()=>{AR();zR();RR()});var Qh=B(()=>{IR();WR();XR()});function $g(f){return(h)=>async(w)=>{let s=w.request;if(n0.isInstance(s)){let{body:$,headers:r}=s;if($&&Object.keys(r).map((E)=>E.toLowerCase()).indexOf(SR)===-1)try{let E=f($);s.headers={...s.headers,[SR]:String(E)}}catch(E){}}return h({...w,request:s})}}var SR="content-length",rg,aw=(f)=>({applyToStack:(h)=>{h.add($g(f.bodyLengthChecker),rg)}});var $5=B(()=>{C1();rg={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0}});var YR=async(f)=>{let h=f?.Bucket||"";if(typeof f.Bucket==="string")f.Bucket=h.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(Cg(h)){if(f.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!Fg(h)||h.indexOf(".")!==-1&&!String(f.Endpoint).startsWith("http:")||h.toLowerCase()!==h||h.length<3)f.ForcePathStyle=!0;if(f.DisableMultiRegionAccessPoints)f.disableMultiRegionAccessPoints=!0,f.DisableMRAP=!0;return f},Eg,Tg,Ug,Fg=(f)=>Eg.test(f)&&!Tg.test(f)&&!Ug.test(f),Cg=(f)=>{let[h,w,s,,,$]=f.split(":"),r=h==="arn"&&f.split(":").length>=6,E=Boolean(r&&w&&s&&$);if(r&&!E)throw new Error(`Invalid ARN: ${f} was an invalid ARN.`);return E};var MR=B(()=>{Eg=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,Tg=/(\d+\.){3}\d+/,Ug=/\.\./});var QR=B(()=>{MR()});var KR=(f,h,w)=>{let s=async()=>{let $=w[f]??w[h];if(typeof $==="function")return $();return $};if(f==="credentialScope"||h==="CredentialScope")return async()=>{let $=typeof w.credentials==="function"?await w.credentials():w.credentials;return $?.credentialScope??$?.CredentialScope};if(f==="accountId"||h==="AccountId")return async()=>{let $=typeof w.credentials==="function"?await w.credentials():w.credentials;return $?.accountId??$?.AccountId};if(f==="endpoint"||h==="endpoint")return async()=>{let $=await s();if($&&typeof $==="object"){if("url"in $)return $.url.href;if("hostname"in $){let{protocol:r,hostname:E,port:T,path:U}=$;return`${r}//${E}${T?":"+T:""}${U}`}}return $};return s};var k1;var d$=B(()=>{k1=class k1 extends Error{constructor(f,h=!0){let w,s=!0;if(typeof h==="boolean")w=void 0,s=h;else if(h!=null&&typeof h==="object")w=h.logger,s=h.tryNextLink??!0;super(f);this.name="ProviderError",this.tryNextLink=s,Object.setPrototypeOf(this,k1.prototype),w?.debug?.(`@smithy/property-provider ${s?"->":"(!)"} ${f}`)}static from(f,h=!0){return Object.assign(new this(f.message,h),f)}}});var a;var ZR=B(()=>{d$();a=class a extends k1{constructor(f,h=!0){super(f,h);this.name="CredentialsProviderError",Object.setPrototypeOf(this,a.prototype)}}});var S1;var JR=B(()=>{d$();S1=class S1 extends k1{constructor(f,h=!0){super(f,h);this.name="TokenProviderError",Object.setPrototypeOf(this,S1.prototype)}}});var xf=(...f)=>async()=>{if(f.length===0)throw new k1("No providers in chain");let h;for(let w of f)try{return await w()}catch(s){if(h=s,s?.tryNextLink)continue;throw s}throw h};var VR=B(()=>{d$()});var PR=(f)=>()=>Promise.resolve(f);var fw=(f,h,w)=>{let s,$,r,E=!1,T=async()=>{if(!$)$=f();try{s=await $,r=!0,E=!1}finally{$=void 0}return s};if(h===void 0)return async(U)=>{if(!r||U?.forceRefresh)s=await T();return s};return async(U)=>{if(!r||U?.forceRefresh)s=await T();if(E)return s;if(w&&!w(s))return E=!0,s;if(h(s))return await T(),s;return s}};var Y0=B(()=>{ZR();d$();JR();VR()});function r5(f){try{let h=new Set(Array.from(f.match(/([A-Z_]){3,}/g)??[]));return h.delete("CONFIG"),h.delete("CONFIG_PREFIX_SEPARATOR"),h.delete("ENV"),[...h].join(", ")}catch(h){return f}}var HR=(f,h)=>async()=>{try{let w=f(process.env);if(w===void 0)throw new Error;return w}catch(w){throw new a(w.message||`Not found in ENV: ${r5(f.toString())}`,{logger:h})}};var NR=B(()=>{Y0()});import{homedir as Ig}from"node:os";import{sep as Lg}from"node:path";var $F,Bg=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},Kh=()=>{let{HOME:f,USERPROFILE:h,HOMEPATH:w,HOMEDRIVE:s=`C:${Lg}`}=process.env;if(f)return f;if(h)return h;if(w)return`${s}${w}`;let $=Bg();if(!$F[$])$F[$]=Ig();return $F[$]};var pw=B(()=>{$F={}});var DR="AWS_PROFILE",y1=(f)=>f.profile||process.env.AWS_PROFILE||"default";import{createHash as Gg}from"node:crypto";import{join as Wg}from"node:path";var E5=(f)=>{let w=Gg("sha1").update(f).digest("hex");return Wg(Kh(),".aws","sso","cache",`${w}.json`)};var rF=B(()=>{pw()});import{promises as Ag}from"node:fs";var zg,T5=async(f)=>{let h=E5(f),w=await zg(h,"utf8");return JSON.parse(w)};var qR=B(()=>{rF();({readFile:zg}=Ag)});var EF,kR=(f)=>Object.entries(f).filter(([h])=>{let w=h.indexOf(j1);if(w===-1)return!1;return Object.values(EF.IniSectionType).includes(h.substring(0,w))}).reduce((h,[w,s])=>{let $=w.indexOf(j1),r=w.substring(0,$)===EF.IniSectionType.PROFILE?w.substring($+1):w;return h[r]=s,h},{...f.default&&{default:f.default}});var yR=B(()=>{EF=o(F1(),1);ow()});import{join as Rg}from"node:path";var Xg="AWS_CONFIG_FILE",U5=()=>process.env[Xg]||Rg(Kh(),".aws","config");var TF=B(()=>{pw()});import{join as Sg}from"node:path";var Yg="AWS_SHARED_CREDENTIALS_FILE",jR=()=>process.env[Yg]||Sg(Kh(),".aws","credentials");var OR=B(()=>{pw()});var lR,Mg,Qg,i$=(f)=>{let h={},w,s;for(let $ of f.split(/\r?\n/)){let r=$.split(/(^|\s)[;#]/)[0].trim();if(r[0]==="["&&r[r.length-1]==="]"){w=void 0,s=void 0;let T=r.substring(1,r.length-1),U=Mg.exec(T);if(U){let[,F,,C]=U;if(Object.values(lR.IniSectionType).includes(F))w=[F,C].join(j1)}else w=T;if(Qg.includes(T))throw new Error(`Found invalid profile name "${T}"`)}else if(w){let T=r.indexOf("=");if(![0,-1].includes(T)){let[U,F]=[r.substring(0,T).trim(),r.substring(T+1).trim()];if(F==="")s=U;else{if(s&&$.trimStart()===$)s=void 0;h[w]=h[w]||{};let C=s?[s,U].join(j1):U;h[w][C]=F}}}}return h};var UF=B(()=>{lR=o(F1(),1);ow();Mg=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,Qg=["__proto__","profile __proto__"]});import{promises as Kg}from"node:fs";var Zg,FF,c$=(f,h)=>{if(!FF[f]||h?.ignoreCache)FF[f]=Zg(f,"utf8");return FF[f]};var CF=B(()=>{({readFile:Zg}=Kg),FF={}});import{join as vR}from"node:path";var bR=()=>({}),j1=".",F5=async(f={})=>{let{filepath:h=jR(),configFilepath:w=U5()}=f,s=Kh(),$="~/",r=h;if(h.startsWith("~/"))r=vR(s,h.slice(2));let E=w;if(w.startsWith("~/"))E=vR(s,w.slice(2));let T=await Promise.all([c$(E,{ignoreCache:f.ignoreCache}).then(i$).then(kR).catch(bR),c$(r,{ignoreCache:f.ignoreCache}).then(i$).catch(bR)]);return{configFile:T[0],credentialsFile:T[1]}};var ow=B(()=>{yR();TF();OR();pw();UF();CF()});var mR,dR=(f)=>Object.entries(f).filter(([h])=>h.startsWith(mR.IniSectionType.SSO_SESSION+j1)).reduce((h,[w,s])=>({...h,[w.substring(w.indexOf(j1)+1)]:s}),{});var iR=B(()=>{mR=o(F1(),1);ow()});var Jg=()=>({}),C5=async(f={})=>c$(f.configFilepath??U5()).then(i$).then(dR).catch(Jg);var cR=B(()=>{TF();iR();UF();CF()});var gR=(...f)=>{let h={};for(let w of f)for(let[s,$]of Object.entries(w))if(h[s]!==void 0)Object.assign(h[s],$);else h[s]=$;return h};var Zh=async(f)=>{let h=await F5(f);return gR(h.configFile,h.credentialsFile)};var xR=B(()=>{ow()});var _R=()=>{};var hf=B(()=>{pw();rF();qR();ow();cR();xR();_R()});var nR=(f,{preferredFile:h="config",...w}={})=>async()=>{let s=y1(w),{configFile:$,credentialsFile:r}=await F5(w),E=r[s]||{},T=$[s]||{},U=h==="config"?{...E,...T}:{...T,...E};try{let C=f(U,h==="config"?$:r);if(C===void 0)throw new Error;return C}catch(F){throw new a(F.message||`Not found in config files w/ profile [${s}]: ${r5(f.toString())}`,{logger:w.logger})}};var eR=B(()=>{Y0();hf()});var Vg=(f)=>typeof f==="function",aR=(f)=>Vg(f)?async()=>await f():PR(f);var pR=B(()=>{Y0()});var z0=({environmentVariableSelector:f,configFileSelector:h,default:w},s={})=>fw(xf(HR(f),nR(h,s),aR(w)));var oR=B(()=>{Y0();NR();eR();pR()});var Jh=B(()=>{oR()});var uR="AWS_ENDPOINT_URL",tR="endpoint_url",fX=(f)=>({environmentVariableSelector:(h)=>{let w=f.split(" ").map((r)=>r.toUpperCase()),s=h[[uR,...w].join("_")];if(s)return s;let $=h[uR];if($)return $;return},configFileSelector:(h,w)=>{if(w&&h.services){let $=w[["services",h.services].join(j1)];if($){let r=f.split(" ").map((T)=>T.toLowerCase()),E=$[[r.join("_"),tR].join(j1)];if(E)return E}}let s=h[tR];if(s)return s;return},default:void 0});var hX=B(()=>{hf()});var I5=async(f)=>z0(fX(f??""))();var IF=B(()=>{Jh();hX()});function wX(f){let h={};if(f=f.replace(/^\?/,""),f)for(let w of f.split("&")){let[s,$=null]=w.split("=");if(s=decodeURIComponent(s),$)$=decodeURIComponent($);if(!(s in h))h[s]=$;else if(Array.isArray(h[s]))h[s].push($);else h[s]=[h[s],$]}return h}var O1=(f)=>{if(typeof f==="string")return O1(new URL(f));let{hostname:h,pathname:w,port:s,protocol:$,search:r}=f,E;if(r)E=wX(r);return{hostname:h,port:s?parseInt(s):void 0,protocol:$,path:w,query:E}};var uw=()=>{};var L5=(f)=>{if(typeof f==="object"){if("url"in f)return O1(f.url);return f}return O1(f)};var B5=B(()=>{uw()});var sX=async(f,h,w,s)=>{if(!w.endpoint){let E;if(w.serviceConfiguredEndpoint)E=await w.serviceConfiguredEndpoint();else E=await I5(w.serviceId);if(E)w.endpoint=()=>Promise.resolve(L5(E))}let $=await Pg(f,h,w);if(typeof w.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return w.endpointProvider($,s)},Pg=async(f,h,w)=>{let s={},$=h?.getEndpointParameterInstructions?.()||{};for(let[r,E]of Object.entries($))switch(E.type){case"staticContextParams":s[r]=E.value;break;case"contextParams":s[r]=f[E.name];break;case"clientContextParams":case"builtInParams":s[r]=await KR(E.name,r,w)();break;case"operationContextParams":s[r]=E.get(f);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(E))}if(Object.keys($).length===0)Object.assign(s,w);if(String(w.serviceId).toLowerCase()==="s3")await YR(s);return s};var LF=B(()=>{QR();IF();B5()});var $X=B(()=>{LF();B5()});var rX,EX=({config:f,instructions:h})=>{return(w,s)=>async($)=>{if(f.endpoint)rX.setFeature(s,"ENDPOINT_OVERRIDE","N");let r=await sX($.input,{getEndpointParameterInstructions(){return h}},{...f},s);s.endpointV2=r,s.authSchemes=r.properties?.authSchemes;let E=s.authSchemes?.[0];if(E){s.signing_region=E.signingRegion,s.signing_service=E.signingName;let U=Yh(s)?.selectedHttpAuthScheme?.httpAuthOption;if(U)U.signingProperties=Object.assign(U.signingProperties||{},{signing_region:E.signingRegion,signingRegion:E.signingRegion,signing_service:E.signingName,signingName:E.signingName,signingRegionSet:E.signingRegionSet},E.properties)}return w({...$})}};var BF=B(()=>{rX=o(m0(),1);gf();LF()});var TX=(f,h)=>(w,s)=>async($)=>{let{response:r}=await w($);try{let E=await h(r,f);return{response:r,output:E}}catch(E){if(Object.defineProperty(E,"$response",{value:r}),!("$metadata"in E)){try{E.message+=`
|
|
40
|
+
Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`}catch(U){if(!s.logger||s.logger?.constructor?.name==="NoOpLogger")console.warn("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.");else s.logger?.warn?.("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.")}if(typeof E.$responseBodyText!=="undefined"){if(E.$response)E.$response.body=E.$responseBodyText}}throw E}};var UX=(f,h)=>(w,s)=>async($)=>{let r=s.endpointV2?.url&&f.urlParser?async()=>f.urlParser(s.endpointV2.url):f.endpoint;if(!r)throw new Error("No valid endpoint provider available.");let E=await h($.input,{...f,endpoint:r});return w({...$,request:E})};function z(f,h,w){return{applyToStack:(s)=>{s.add(TX(f,w),Hg),s.add(UX(f,h),GF)}}}var Hg,GF;var FX=B(()=>{Hg={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},GF={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0}});var k=B(()=>{FX()});var Ng,R=(f,h)=>({applyToStack:(w)=>{w.addRelativeTo(EX({config:f,instructions:h}),Ng)}});var CX=B(()=>{k();BF();Ng={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:GF.name}});var tw=(f)=>{let h=f.tls??!0,{endpoint:w,useDualstackEndpoint:s,useFipsEndpoint:$}=f,r=w!=null?async()=>L5(await B1(w)()):void 0,T=Object.assign(f,{endpoint:r,tls:h,isCustomEndpoint:!!w,useDualstackEndpoint:B1(s??!1),useFipsEndpoint:B1($??!1)}),U=void 0;return T.serviceConfiguredEndpoint=async()=>{if(f.serviceId&&!U)U=I5(f.serviceId);return U},T};var IX=B(()=>{gf();IF();B5()});var LX=()=>{};var D=B(()=>{$X();BF();CX();IX();LX()});var l1,hw=3,Vh;var G5=B(()=>{(function(f){f.STANDARD="standard",f.ADAPTIVE="adaptive"})(l1||(l1={}));Vh=l1.STANDARD});var BX,GX,WX,AX;var zX=B(()=>{BX=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],GX=["TimeoutError","RequestTimeout","RequestTimeoutException"],WX=[500,502,503,504],AX=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"]});var Dg=(f)=>f.$metadata?.clockSkewCorrected,fs=(f)=>f.$metadata?.httpStatusCode===429||BX.includes(f.name)||f.$retryable?.throttling==!0,g$=(f,h=0)=>Dg(f)||GX.includes(f.name)||AX.includes(f?.code||"")||WX.includes(f.$metadata?.httpStatusCode||0)||f.cause!==void 0&&h<=10&&g$(f.cause,h+1),RX=(f)=>{if(f.$metadata?.httpStatusCode!==void 0){let h=f.$metadata.httpStatusCode;if(500<=h&&h<=599&&!g$(f))return!0;return!1}return!1};var x$=B(()=>{zX()});class hs{constructor(f){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=f?.beta??0.7,this.minCapacity=f?.minCapacity??1,this.minFillRate=f?.minFillRate??0.5,this.scaleConstant=f?.scaleConstant??0.4,this.smooth=f?.smooth??0.8;let h=this.getCurrentTimeInSeconds();this.lastThrottleTime=h,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(f){if(!this.enabled)return;if(this.refillTokenBucket(),f>this.currentCapacity){let h=(f-this.currentCapacity)/this.fillRate*1000;await new Promise((w)=>hs.setTimeoutFn(w,h))}this.currentCapacity=this.currentCapacity-f}refillTokenBucket(){let f=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=f;return}let h=(f-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+h),this.lastTimestamp=f}updateClientSendingRate(f){let h;if(this.updateMeasuredRate(),fs(f)){let s=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=s,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),h=this.cubicThrottle(s),this.enableTokenBucket()}else this.calculateTimeWindow(),h=this.cubicSuccess(this.getCurrentTimeInSeconds());let w=Math.min(h,2*this.measuredTxRate);this.updateTokenBucketRate(w)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(f){return this.getPrecise(f*this.beta)}cubicSuccess(f){return this.getPrecise(this.scaleConstant*Math.pow(f-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(f){this.refillTokenBucket(),this.fillRate=Math.max(f,this.minFillRate),this.maxCapacity=Math.max(f,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){let f=this.getCurrentTimeInSeconds(),h=Math.floor(f*2)/2;if(this.requestCount++,h>this.lastTxRateBucket){let w=this.requestCount/(h-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(w*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=h}}getPrecise(f){return parseFloat(f.toFixed(8))}}var WF=B(()=>{x$();hs.setTimeoutFn=setTimeout});var ww=100,_$=20000,AF=500,W5=500,zF=5,RF=10,XF=1,A5="amz-sdk-invocation-id",z5="amz-sdk-request";var XX=()=>{let f=ww;return{computeNextBackoffDelay:(s)=>{return Math.floor(Math.min(_$,Math.random()*2**s*f))},setDelayBase:(s)=>{f=s}}};var SX=()=>{};var SF=({retryDelay:f,retryCount:h,retryCost:w})=>{return{getRetryCount:()=>h,getRetryDelay:()=>Math.min(_$,f),getRetryCost:()=>w}};var YX=()=>{};class ws{constructor(f){this.maxAttempts=f,this.mode=l1.STANDARD,this.capacity=W5,this.retryBackoffStrategy=XX(),this.maxAttemptsProvider=typeof f==="function"?f:async()=>f}async acquireInitialRetryToken(f){return SF({retryDelay:ww,retryCount:0})}async refreshRetryTokenForRetry(f,h){let w=await this.getMaxAttempts();if(this.shouldRetry(f,h,w)){let s=h.errorType;this.retryBackoffStrategy.setDelayBase(s==="THROTTLING"?AF:ww);let $=this.retryBackoffStrategy.computeNextBackoffDelay(f.getRetryCount()),r=h.retryAfterHint?Math.max(h.retryAfterHint.getTime()-Date.now()||0,$):$,E=this.getCapacityCost(s);return this.capacity-=E,SF({retryDelay:r,retryCount:f.getRetryCount()+1,retryCost:E})}throw new Error("No retry token available")}recordSuccess(f){this.capacity=Math.max(W5,this.capacity+(f.getRetryCost()??XF))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(f){return console.warn(`Max attempts provider could not resolve. Using default of ${hw}`),hw}}shouldRetry(f,h,w){return f.getRetryCount()+1<w&&this.capacity>=this.getCapacityCost(h.errorType)&&this.isRetryableError(h.errorType)}getCapacityCost(f){return f==="TRANSIENT"?RF:zF}isRetryableError(f){return f==="THROTTLING"||f==="TRANSIENT"}}var R5=B(()=>{G5();SX();YX()});class YF{constructor(f,h){this.maxAttemptsProvider=f,this.mode=l1.ADAPTIVE;let{rateLimiter:w}=h??{};this.rateLimiter=w??new hs,this.standardRetryStrategy=new ws(f)}async acquireInitialRetryToken(f){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(f)}async refreshRetryTokenForRetry(f,h){return this.rateLimiter.updateClientSendingRate(h),this.standardRetryStrategy.refreshRetryTokenForRetry(f,h)}recordSuccess(f){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(f)}}var MX=B(()=>{G5();WF();R5()});var QX=B(()=>{R5()});var KX=()=>{};var wf=B(()=>{MX();QX();WF();R5();G5();KX()});var MF=H((ZX)=>{Object.defineProperty(ZX,"__esModule",{value:!0});ZX.default=yg;var qg=kg(B0("node:crypto"));function kg(f){return f&&f.__esModule?f:{default:f}}var S5=new Uint8Array(256),X5=S5.length;function yg(){if(X5>S5.length-16)qg.default.randomFillSync(S5),X5=0;return S5.slice(X5,X5+=16)}});var PX=H((JX)=>{Object.defineProperty(JX,"__esModule",{value:!0});JX.default=void 0;var Og=/^(?:[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;JX.default=Og});var n$=H((HX)=>{Object.defineProperty(HX,"__esModule",{value:!0});HX.default=void 0;var lg=vg(PX());function vg(f){return f&&f.__esModule?f:{default:f}}function bg(f){return typeof f==="string"&&lg.default.test(f)}var mg=bg;HX.default=mg});var e$=H((qX)=>{Object.defineProperty(qX,"__esModule",{value:!0});qX.default=void 0;qX.unsafeStringify=DX;var dg=ig(n$());function ig(f){return f&&f.__esModule?f:{default:f}}var h1=[];for(let f=0;f<256;++f)h1.push((f+256).toString(16).slice(1));function DX(f,h=0){return h1[f[h+0]]+h1[f[h+1]]+h1[f[h+2]]+h1[f[h+3]]+"-"+h1[f[h+4]]+h1[f[h+5]]+"-"+h1[f[h+6]]+h1[f[h+7]]+"-"+h1[f[h+8]]+h1[f[h+9]]+"-"+h1[f[h+10]]+h1[f[h+11]]+h1[f[h+12]]+h1[f[h+13]]+h1[f[h+14]]+h1[f[h+15]]}function cg(f,h=0){let w=DX(f,h);if(!dg.default(w))throw TypeError("Stringified UUID is invalid");return w}var gg=cg;qX.default=gg});var lX=H((jX)=>{Object.defineProperty(jX,"__esModule",{value:!0});jX.default=void 0;var _g=eg(MF()),ng=e$();function eg(f){return f&&f.__esModule?f:{default:f}}var yX,QF,KF=0,ZF=0;function ag(f,h,w){let s=h&&w||0,$=h||new Array(16);f=f||{};let r=f.node||yX,E=f.clockseq!==void 0?f.clockseq:QF;if(r==null||E==null){let L=f.random||(f.rng||_g.default)();if(r==null)r=yX=[L[0]|1,L[1],L[2],L[3],L[4],L[5]];if(E==null)E=QF=(L[6]<<8|L[7])&16383}let T=f.msecs!==void 0?f.msecs:Date.now(),U=f.nsecs!==void 0?f.nsecs:ZF+1,F=T-KF+(U-ZF)/1e4;if(F<0&&f.clockseq===void 0)E=E+1&16383;if((F<0||T>KF)&&f.nsecs===void 0)U=0;if(U>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");KF=T,ZF=U,QF=E,T+=12219292800000;let C=((T&268435455)*1e4+U)%4294967296;$[s++]=C>>>24&255,$[s++]=C>>>16&255,$[s++]=C>>>8&255,$[s++]=C&255;let I=T/4294967296*1e4&268435455;$[s++]=I>>>8&255,$[s++]=I&255,$[s++]=I>>>24&15|16,$[s++]=I>>>16&255,$[s++]=E>>>8|128,$[s++]=E&255;for(let L=0;L<6;++L)$[s+L]=r[L];return h||ng.unsafeStringify($)}var pg=ag;jX.default=pg});var JF=H((vX)=>{Object.defineProperty(vX,"__esModule",{value:!0});vX.default=void 0;var og=ug(n$());function ug(f){return f&&f.__esModule?f:{default:f}}function tg(f){if(!og.default(f))throw TypeError("Invalid UUID");let h,w=new Uint8Array(16);return w[0]=(h=parseInt(f.slice(0,8),16))>>>24,w[1]=h>>>16&255,w[2]=h>>>8&255,w[3]=h&255,w[4]=(h=parseInt(f.slice(9,13),16))>>>8,w[5]=h&255,w[6]=(h=parseInt(f.slice(14,18),16))>>>8,w[7]=h&255,w[8]=(h=parseInt(f.slice(19,23),16))>>>8,w[9]=h&255,w[10]=(h=parseInt(f.slice(24,36),16))/1099511627776&255,w[11]=h/4294967296&255,w[12]=h>>>24&255,w[13]=h>>>16&255,w[14]=h>>>8&255,w[15]=h&255,w}var fx=tg;vX.default=fx});var VF=H((iX)=>{Object.defineProperty(iX,"__esModule",{value:!0});iX.URL=iX.DNS=void 0;iX.default=rx;var hx=e$(),wx=sx(JF());function sx(f){return f&&f.__esModule?f:{default:f}}function $x(f){f=unescape(encodeURIComponent(f));let h=[];for(let w=0;w<f.length;++w)h.push(f.charCodeAt(w));return h}var mX="6ba7b810-9dad-11d1-80b4-00c04fd430c8";iX.DNS=mX;var dX="6ba7b811-9dad-11d1-80b4-00c04fd430c8";iX.URL=dX;function rx(f,h,w){function s($,r,E,T){var U;if(typeof $==="string")$=$x($);if(typeof r==="string")r=wx.default(r);if(((U=r)===null||U===void 0?void 0:U.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let F=new Uint8Array(16+$.length);if(F.set(r),F.set($,r.length),F=w(F),F[6]=F[6]&15|h,F[8]=F[8]&63|128,E){T=T||0;for(let C=0;C<16;++C)E[T+C]=F[C];return E}return hx.unsafeStringify(F)}try{s.name=f}catch($){}return s.DNS=mX,s.URL=dX,s}});var _X=H((gX)=>{Object.defineProperty(gX,"__esModule",{value:!0});gX.default=void 0;var Ux=Fx(B0("node:crypto"));function Fx(f){return f&&f.__esModule?f:{default:f}}function Cx(f){if(Array.isArray(f))f=Buffer.from(f);else if(typeof f==="string")f=Buffer.from(f,"utf8");return Ux.default.createHash("md5").update(f).digest()}var Ix=Cx;gX.default=Ix});var pX=H((eX)=>{Object.defineProperty(eX,"__esModule",{value:!0});eX.default=void 0;var Lx=nX(VF()),Bx=nX(_X());function nX(f){return f&&f.__esModule?f:{default:f}}var Gx=Lx.default("v3",48,Bx.default),Wx=Gx;eX.default=Wx});var tX=H((oX)=>{Object.defineProperty(oX,"__esModule",{value:!0});oX.default=void 0;var Ax=zx(B0("node:crypto"));function zx(f){return f&&f.__esModule?f:{default:f}}var Rx={randomUUID:Ax.default.randomUUID};oX.default=Rx});var $S=H((wS)=>{Object.defineProperty(wS,"__esModule",{value:!0});wS.default=void 0;var fS=hS(tX()),Xx=hS(MF()),Sx=e$();function hS(f){return f&&f.__esModule?f:{default:f}}function Yx(f,h,w){if(fS.default.randomUUID&&!h&&!f)return fS.default.randomUUID();f=f||{};let s=f.random||(f.rng||Xx.default)();if(s[6]=s[6]&15|64,s[8]=s[8]&63|128,h){w=w||0;for(let $=0;$<16;++$)h[w+$]=s[$];return h}return Sx.unsafeStringify(s)}var Mx=Yx;wS.default=Mx});var TS=H((rS)=>{Object.defineProperty(rS,"__esModule",{value:!0});rS.default=void 0;var Qx=Kx(B0("node:crypto"));function Kx(f){return f&&f.__esModule?f:{default:f}}function Zx(f){if(Array.isArray(f))f=Buffer.from(f);else if(typeof f==="string")f=Buffer.from(f,"utf8");return Qx.default.createHash("sha1").update(f).digest()}var Jx=Zx;rS.default=Jx});var IS=H((FS)=>{Object.defineProperty(FS,"__esModule",{value:!0});FS.default=void 0;var Vx=US(VF()),Px=US(TS());function US(f){return f&&f.__esModule?f:{default:f}}var Hx=Vx.default("v5",80,Px.default),Nx=Hx;FS.default=Nx});var GS=H((LS)=>{Object.defineProperty(LS,"__esModule",{value:!0});LS.default=void 0;var Dx="00000000-0000-0000-0000-000000000000";LS.default=Dx});var zS=H((WS)=>{Object.defineProperty(WS,"__esModule",{value:!0});WS.default=void 0;var qx=kx(n$());function kx(f){return f&&f.__esModule?f:{default:f}}function yx(f){if(!qx.default(f))throw TypeError("Invalid UUID");return parseInt(f.slice(14,15),16)}var jx=yx;WS.default=jx});var PF=H((sf)=>{Object.defineProperty(sf,"__esModule",{value:!0});Object.defineProperty(sf,"NIL",{enumerable:!0,get:function(){return mx.default}});Object.defineProperty(sf,"parse",{enumerable:!0,get:function(){return gx.default}});Object.defineProperty(sf,"stringify",{enumerable:!0,get:function(){return cx.default}});Object.defineProperty(sf,"v1",{enumerable:!0,get:function(){return Ox.default}});Object.defineProperty(sf,"v3",{enumerable:!0,get:function(){return lx.default}});Object.defineProperty(sf,"v4",{enumerable:!0,get:function(){return vx.default}});Object.defineProperty(sf,"v5",{enumerable:!0,get:function(){return bx.default}});Object.defineProperty(sf,"validate",{enumerable:!0,get:function(){return ix.default}});Object.defineProperty(sf,"version",{enumerable:!0,get:function(){return dx.default}});var Ox=_f(lX()),lx=_f(pX()),vx=_f($S()),bx=_f(IS()),mx=_f(GS()),dx=_f(zS()),ix=_f(n$()),cx=_f(e$()),gx=_f(JF());function _f(f){return f&&f.__esModule?f:{default:f}}});var Mf,IC0,LC0,RS,BC0,GC0,WC0,AC0,zC0,RC0;var XS=B(()=>{Mf=o(PF(),1),IC0=Mf.default.v1,LC0=Mf.default.v3,RS=Mf.default.v4,BC0=Mf.default.v5,GC0=Mf.default.NIL,WC0=Mf.default.version,AC0=Mf.default.validate,zC0=Mf.default.stringify,RC0=Mf.default.parse});var SS=B(()=>{wf()});var HF=B(()=>{wf()});var NF=B(()=>{x$()});var DF=(f)=>{if(f instanceof Error)return f;if(f instanceof Object)return Object.assign(new Error,f);if(typeof f==="string")return new Error(f);return new Error(`AWS SDK error wrapper for ${f}`)};var qF=B(()=>{C1();x$();wf();SS();HF();NF()});var YS=B(()=>{wf();qF()});var MS="AWS_MAX_ATTEMPTS",QS="max_attempts",ss,$s=(f)=>{let{retryStrategy:h,retryMode:w,maxAttempts:s}=f,$=B1(s??hw);return Object.assign(f,{maxAttempts:$,retryStrategy:async()=>{if(h)return h;if(await B1(w)()===l1.ADAPTIVE)return new YF($);return new ws($)}})},xx="AWS_RETRY_MODE",_x="retry_mode",rs;var KS=B(()=>{gf();wf();ss={environmentVariableSelector:(f)=>{let h=f[MS];if(!h)return;let w=parseInt(h);if(Number.isNaN(w))throw new Error(`Environment variable ${MS} mast be a number, got "${h}"`);return w},configFileSelector:(f)=>{let h=f[QS];if(!h)return;let w=parseInt(h);if(Number.isNaN(w))throw new Error(`Shared config file entry ${QS} mast be a number, got "${h}"`);return w},default:hw},rs={environmentVariableSelector:(f)=>f[xx],configFileSelector:(f)=>f[_x],default:Vh}});var ZS=B(()=>{C1();wf()});var sw=(f,h)=>{let w=[];if(f)w.push(f);if(h)for(let s of h)w.push(s);return w},Ph=(f,h)=>{return`${f||"anonymous"}${h&&h.length>0?` (a.k.a. ${h.join(",")})`:""}`},Es=()=>{let f=[],h=[],w=!1,s=new Set,$=(I)=>I.sort((L,W)=>JS[W.step]-JS[L.step]||VS[W.priority||"normal"]-VS[L.priority||"normal"]),r=(I)=>{let L=!1,W=(X)=>{let Q=sw(X.name,X.aliases);if(Q.includes(I)){L=!0;for(let M of Q)s.delete(M);return!1}return!0};return f=f.filter(W),h=h.filter(W),L},E=(I)=>{let L=!1,W=(X)=>{if(X.middleware===I){L=!0;for(let Q of sw(X.name,X.aliases))s.delete(Q);return!1}return!0};return f=f.filter(W),h=h.filter(W),L},T=(I)=>{return f.forEach((L)=>{I.add(L.middleware,{...L})}),h.forEach((L)=>{I.addRelativeTo(L.middleware,{...L})}),I.identifyOnResolve?.(C.identifyOnResolve()),I},U=(I)=>{let L=[];return I.before.forEach((W)=>{if(W.before.length===0&&W.after.length===0)L.push(W);else L.push(...U(W))}),L.push(I),I.after.reverse().forEach((W)=>{if(W.before.length===0&&W.after.length===0)L.push(W);else L.push(...U(W))}),L},F=(I=!1)=>{let L=[],W=[],X={};return f.forEach((M)=>{let q={...M,before:[],after:[]};for(let N of sw(q.name,q.aliases))X[N]=q;L.push(q)}),h.forEach((M)=>{let q={...M,before:[],after:[]};for(let N of sw(q.name,q.aliases))X[N]=q;W.push(q)}),W.forEach((M)=>{if(M.toMiddleware){let q=X[M.toMiddleware];if(q===void 0){if(I)return;throw new Error(`${M.toMiddleware} is not found when adding ${Ph(M.name,M.aliases)} middleware ${M.relation} ${M.toMiddleware}`)}if(M.relation==="after")q.after.push(M);if(M.relation==="before")q.before.push(M)}}),$(L).map(U).reduce((M,q)=>{return M.push(...q),M},[])},C={add:(I,L={})=>{let{name:W,override:X,aliases:Q}=L,M={step:"initialize",priority:"normal",middleware:I,...L},q=sw(W,Q);if(q.length>0){if(q.some((N)=>s.has(N))){if(!X)throw new Error(`Duplicate middleware name '${Ph(W,Q)}'`);for(let N of q){let y=f.findIndex((L0)=>L0.name===N||L0.aliases?.some((b0)=>b0===N));if(y===-1)continue;let n=f[y];if(n.step!==M.step||M.priority!==n.priority)throw new Error(`"${Ph(n.name,n.aliases)}" middleware with ${n.priority} priority in ${n.step} step cannot be overridden by "${Ph(W,Q)}" middleware with ${M.priority} priority in ${M.step} step.`);f.splice(y,1)}}for(let N of q)s.add(N)}f.push(M)},addRelativeTo:(I,L)=>{let{name:W,override:X,aliases:Q}=L,M={middleware:I,...L},q=sw(W,Q);if(q.length>0){if(q.some((N)=>s.has(N))){if(!X)throw new Error(`Duplicate middleware name '${Ph(W,Q)}'`);for(let N of q){let y=h.findIndex((L0)=>L0.name===N||L0.aliases?.some((b0)=>b0===N));if(y===-1)continue;let n=h[y];if(n.toMiddleware!==M.toMiddleware||n.relation!==M.relation)throw new Error(`"${Ph(n.name,n.aliases)}" middleware ${n.relation} "${n.toMiddleware}" middleware cannot be overridden by "${Ph(W,Q)}" middleware ${M.relation} "${M.toMiddleware}" middleware.`);h.splice(y,1)}}for(let N of q)s.add(N)}h.push(M)},clone:()=>T(Es()),use:(I)=>{I.applyToStack(C)},remove:(I)=>{if(typeof I==="string")return r(I);else return E(I)},removeByTag:(I)=>{let L=!1,W=(X)=>{let{tags:Q,name:M,aliases:q}=X;if(Q&&Q.includes(I)){let N=sw(M,q);for(let y of N)s.delete(y);return L=!0,!1}return!0};return f=f.filter(W),h=h.filter(W),L},concat:(I)=>{let L=T(Es());return L.use(I),L.identifyOnResolve(w||L.identifyOnResolve()||(I.identifyOnResolve?.()??!1)),L},applyToStack:T,identify:()=>{return F(!0).map((I)=>{let L=I.step??I.relation+" "+I.toMiddleware;return Ph(I.name,I.aliases)+" - "+L})},identifyOnResolve(I){if(typeof I==="boolean")w=I;return w},resolve:(I,L)=>{for(let W of F().map((X)=>X.middleware).reverse())I=W(I,L);if(w)console.log(C.identify());return I}};return C},JS,VS;var PS=B(()=>{JS={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},VS={high:3,normal:2,low:1}});var kF=B(()=>{PS()});class $w{constructor(f){this.config=f,this.middlewareStack=Es()}send(f,h,w){let s=typeof h!=="function"?h:void 0,$=typeof h==="function"?h:w,r=s===void 0&&this.config.cacheMiddleware===!0,E;if(r){if(!this.handlers)this.handlers=new WeakMap;let T=this.handlers;if(T.has(f.constructor))E=T.get(f.constructor);else E=f.resolveMiddleware(this.middlewareStack,this.config,s),T.set(f.constructor,E)}else delete this.handlers,E=f.resolveMiddleware(this.middlewareStack,this.config,s);if($)E(f).then((T)=>$(null,T.output),(T)=>$(T)).catch(()=>{});else return E(f).then((T)=>T.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}var HS=B(()=>{kF()});var G1;var NS=B(()=>{G1=o(jw(),1)});class A{constructor(){this.middlewareStack=Es()}static classBuilder(){return new qS}resolveMiddlewareWithContext(f,h,w,{middlewareFn:s,clientName:$,commandName:r,inputFilterSensitiveLog:E,outputFilterSensitiveLog:T,smithyContext:U,additionalContext:F,CommandCtor:C}){for(let Q of s.bind(this)(C,f,h,w))this.middlewareStack.use(Q);let I=f.concat(this.middlewareStack),{logger:L}=h,W={logger:L,clientName:$,commandName:r,inputFilterSensitiveLog:E,outputFilterSensitiveLog:T,[DS.SMITHY_CONTEXT_KEY]:{commandInstance:this,...U},...F},{requestHandler:X}=h;return I.resolve((Q)=>X.handle(Q.request,w||{}),W)}}class qS{constructor(){this._init=()=>{},this._ep={},this._middlewareFn=()=>[],this._commandName="",this._clientName="",this._additionalContext={},this._smithyContext={},this._inputFilterSensitiveLog=(f)=>f,this._outputFilterSensitiveLog=(f)=>f,this._serializer=null,this._deserializer=null}init(f){this._init=f}ep(f){return this._ep=f,this}m(f){return this._middlewareFn=f,this}s(f,h,w={}){return this._smithyContext={service:f,operation:h,...w},this}c(f={}){return this._additionalContext=f,this}n(f,h){return this._clientName=f,this._commandName=h,this}f(f=(w)=>w,h=(w)=>w){return this._inputFilterSensitiveLog=f,this._outputFilterSensitiveLog=h,this}ser(f){return this._serializer=f,this}de(f){return this._deserializer=f,this}build(){let f=this,h;return h=class extends A{static getEndpointParameterInstructions(){return f._ep}constructor(...[w]){super();this.serialize=f._serializer,this.deserialize=f._deserializer,this.input=w??{},f._init(this)}resolveMiddleware(w,s,$){return this.resolveMiddlewareWithContext(w,s,$,{CommandCtor:h,middlewareFn:f._middlewareFn,clientName:f._clientName,commandName:f._commandName,inputFilterSensitiveLog:f._inputFilterSensitiveLog,outputFilterSensitiveLog:f._outputFilterSensitiveLog,smithyContext:f._smithyContext,additionalContext:f._additionalContext})}}}}var DS;var kS=B(()=>{kF();DS=o(F1(),1)});var U0="***SensitiveInformation***";var Ts=(f,h)=>{for(let w of Object.keys(f)){let s=f[w],$=async function(E,T,U){let F=new s(E);if(typeof T==="function")this.send(F,T);else if(typeof U==="function"){if(typeof T!=="object")throw new Error(`Expected http options but got ${typeof T}`);this.send(F,T||{},U)}else return this.send(F,T)},r=(w[0].toLowerCase()+w.slice(1)).replace(/Command$/,"");h.prototype[r]=$}};var e0=(f)=>{switch(f){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${f}"`)}},Hh=(f)=>{if(f===null||f===void 0)return;if(typeof f==="number"){if(f===0||f===1)M5.warn(Y5(`Expected boolean, got ${typeof f}: ${f}`));if(f===0)return!1;if(f===1)return!0}if(typeof f==="string"){let h=f.toLowerCase();if(h==="false"||h==="true")M5.warn(Y5(`Expected boolean, got ${typeof f}: ${f}`));if(h==="false")return!1;if(h==="true")return!0}if(typeof f==="boolean")return f;throw new TypeError(`Expected boolean, got ${typeof f}: ${f}`)},Y1=(f)=>{if(f===null||f===void 0)return;if(typeof f==="string"){let h=parseFloat(f);if(!Number.isNaN(h)){if(String(h)!==String(f))M5.warn(Y5(`Expected number but observed string: ${f}`));return h}}if(typeof f==="number")return f;throw new TypeError(`Expected number, got ${typeof f}: ${f}`)},nx,yS=(f)=>{let h=Y1(f);if(h!==void 0&&!Number.isNaN(h)&&h!==1/0&&h!==-1/0){if(Math.abs(h)>nx)throw new TypeError(`Expected 32-bit float, got ${f}`)}return h},yF=(f)=>{if(f===null||f===void 0)return;if(Number.isInteger(f)&&!Number.isNaN(f))return f;throw new TypeError(`Expected integer, got ${typeof f}: ${f}`)},jS=(f)=>jF(f,32),OS=(f)=>jF(f,16),lS=(f)=>jF(f,8),jF=(f,h)=>{let w=yF(f);if(w!==void 0&&ex(w,h)!==w)throw new TypeError(`Expected ${h}-bit integer, got ${f}`);return w},ex=(f,h)=>{switch(h){case 32:return Int32Array.of(f)[0];case 16:return Int16Array.of(f)[0];case 8:return Int8Array.of(f)[0]}},j=(f,h)=>{if(f===null||f===void 0){if(h)throw new TypeError(`Expected a non-null value for ${h}`);throw new TypeError("Expected a non-null value")}return f},g=(f)=>{if(f===null||f===void 0)return;if(typeof f==="object"&&!Array.isArray(f))return f;let h=Array.isArray(f)?"array":typeof f;throw new TypeError(`Expected object, got ${h}: ${f}`)},G=(f)=>{if(f===null||f===void 0)return;if(typeof f==="string")return f;if(["boolean","number","bigint"].includes(typeof f))return M5.warn(Y5(`Expected string, got ${typeof f}: ${f}`)),String(f);throw new TypeError(`Expected string, got ${typeof f}: ${f}`)},OF=(f)=>{if(typeof f=="string")return Y1(Us(f));return Y1(f)},vS,bS=(f)=>{if(typeof f=="string")return yS(Us(f));return yS(f)},ax,Us=(f)=>{let h=f.match(ax);if(h===null||h[0].length!==f.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(f)},lF=(f)=>{if(typeof f=="string")return px(f);return Y1(f)},px=(f)=>{switch(f){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new Error(`Unable to parse float value: ${f}`)}},E1=(f)=>{if(typeof f==="string")return yF(Us(f));return yF(f)},M0=(f)=>{if(typeof f==="string")return jS(Us(f));return jS(f)},vF=(f)=>{if(typeof f==="string")return OS(Us(f));return OS(f)},mS=(f)=>{if(typeof f==="string")return lS(Us(f));return lS(f)},Y5=(f)=>{return String(new TypeError(f).stack||f).split(`
|
|
41
41
|
`).slice(0,5).filter((h)=>!h.includes("stackTraceWarning")).join(`
|
|
42
|
-
`)},JE;var cF=L(()=>{t_=Math.ceil(340282346638528860000000000000000000000),cY=mF,hn=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,JE={warn:console.warn}});var sn,$n,_Y=(f)=>{if(f===null||f===void 0)return;if(typeof f!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let h=$n.exec(f);if(!h)throw new TypeError("Invalid RFC-3339 date-time value");let[w,s,$,r,E,T,U,F]=h,C=iF(gF(s)),I=Tw($,"month",1,12),B=Tw(r,"day",1,31);return nY(C,I,B,{hours:E,minutes:T,seconds:U,fractionalMilliseconds:F})},rn,fr=(f)=>{if(f===null||f===void 0)return;if(typeof f!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let h=rn.exec(f);if(!h)throw new TypeError("Invalid RFC-3339 date-time value");let[w,s,$,r,E,T,U,F,C]=h,I=iF(gF(s)),B=Tw($,"month",1,12),G=Tw(r,"day",1,31),S=nY(I,B,G,{hours:E,minutes:T,seconds:U,fractionalMilliseconds:F});if(C.toUpperCase()!="Z")S.setTime(S.getTime()-Cn(C));return S},iB0,cB0,gB0,Q1=(f)=>{if(f===null||f===void 0)return;let h;if(typeof f==="number")h=f;else if(typeof f==="string")h=mF(f);else if(typeof f==="object"&&f.tag===1)h=f.value;else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(h)||h===1/0||h===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(h*1000))},nY=(f,h,w,s)=>{let $=h-1;return Tn(f,$,w),new Date(Date.UTC(f,$,w,Tw(s.hours,"hour",0,23),Tw(s.minutes,"minute",0,59),Tw(s.seconds,"seconds",0,60),Fn(s.fractionalMilliseconds)))},En,Tn=(f,h,w)=>{let s=En[h];if(h===1&&Un(f))s=29;if(w>s)throw new TypeError(`Invalid day for ${sn[h]} in ${f}: ${w}`)},Un=(f)=>{return f%4===0&&(f%100!==0||f%400===0)},Tw=(f,h,w,s)=>{let $=xY(gF(f));if($<w||$>s)throw new TypeError(`${h} must be between ${w} and ${s}, inclusive`);return $},Fn=(f)=>{if(f===null||f===void 0)return 0;return gY("0."+f)*1000},Cn=(f)=>{let h=f[0],w=1;if(h=="+")w=1;else if(h=="-")w=-1;else throw new TypeError(`Offset direction, ${h}, must be "+" or "-"`);let s=Number(f.substring(1,3)),$=Number(f.substring(4,6));return w*(s*60+$)*60*1000},gF=(f)=>{let h=0;while(h<f.length-1&&f.charAt(h)==="0")h++;if(h===0)return f;return f.slice(h)};var eY=L(()=>{cF();sn=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],$n=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),rn=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),iB0=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$/),cB0=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$/),gB0=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})$/),En=[31,28,31,30,31,30,31,31,30,31,30,31]});var $1,l=(f,h={})=>{Object.entries(h).filter(([,s])=>s!==void 0).forEach(([s,$])=>{if(f[s]==null||f[s]==="")f[s]=$});let w=f.message||f.Message||"UnknownError";return f.message=w,delete f.Message,f};var xF=L(()=>{$1=class $1 extends Error{constructor(f){super(f.message);Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=f.name,this.$fault=f.$fault,this.$metadata=f.$metadata}static isInstance(f){if(!f)return!1;let h=f;return $1.prototype.isPrototypeOf(h)||Boolean(h.$fault)&&Boolean(h.$metadata)&&(h.$fault==="client"||h.$fault==="server")}static[Symbol.hasInstance](f){if(!f)return!1;let h=f;if(this===$1)return $1.isInstance(f);if($1.isInstance(f)){if(h.name&&this.name)return this.prototype.isPrototypeOf(f)||h.name===this.name;return this.prototype.isPrototypeOf(f)}return!1}}});var In=({output:f,parsedBody:h,exceptionCtor:w,errorCode:s})=>{let $=Ln(f),r=$.httpStatusCode?$.httpStatusCode+"":void 0,E=new w({name:h?.code||h?.Code||s||r||"UnknownError",$fault:"client",$metadata:$});throw l(E,h)},Bs=(f)=>{return({output:h,parsedBody:w,errorCode:s})=>{In({output:h,parsedBody:w,exceptionCtor:f,errorCode:s})}},Ln=(f)=>({httpStatusCode:f.statusCode,requestId:f.headers["x-amzn-requestid"]??f.headers["x-amzn-request-id"]??f.headers["x-amz-request-id"],extendedRequestId:f.headers["x-amz-id-2"],cfId:f.headers["x-amz-cf-id"]});var aY=L(()=>{xF()});var As=(f)=>{switch(f){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 oY=!1,Gs=(f)=>{if(f&&!oY&&parseInt(f.substring(1,f.indexOf(".")))<16)oY=!0};var Bn;var pY=L(()=>{Bn=u(bw(),1)});var uY=(f)=>{let h=[];for(let w in Dw){let s=Dw[w];if(f[s]===void 0)continue;h.push({algorithmId:()=>s,checksumConstructor:()=>f[s]})}return{addChecksumAlgorithm(w){h.push(w)},checksumAlgorithms(){return h}}},tY=(f)=>{let h={};return f.checksumAlgorithms().forEach((w)=>{h[w.algorithmId()]=w.checksumConstructor()}),h};var f9=L(()=>{d1()});var h9=(f)=>{return{setRetryStrategy(h){f.retryStrategy=h},retryStrategy(){return f.retryStrategy}}},w9=(f)=>{let h={};return h.retryStrategy=f.retryStrategy(),h};var Ws=(f)=>{return Object.assign(uY(f),h9(f))},zs=(f)=>{return Object.assign(tY(f),w9(f))};var s9=L(()=>{f9()});var $9=L(()=>{s9()});var A0=(f)=>Array.isArray(f)?f:[f];var hr=(f)=>{return f!=null};var Rs=function f(h){return Object.assign(new String(h),{deserializeJSON(){return JSON.parse(String(h))},toString(){return String(h)},toJSON(){return String(h)}})};var r9=L(()=>{Rs.from=(f)=>{if(f&&typeof f==="object"&&(f instanceof Rs||("deserializeJSON"in f)))return f;else if(typeof f==="string"||Object.getPrototypeOf(f)===String.prototype)return Rs(String(f));return Rs(JSON.stringify(f))};Rs.fromObject=Rs.from});class e1{trace(){}debug(){}info(){}warn(){}error(){}}function Y(f,h,w){let s,$,r;if(typeof h==="undefined"&&typeof w==="undefined")s={},r=f;else if(s=f,typeof h==="function")return $=h,r=w,An(s,$,r);else r=h;for(let E of Object.keys(r)){if(!Array.isArray(r[E])){s[E]=r[E];continue}E9(s,null,r,E)}return s}var N0=(f,h)=>{let w={};for(let s in h)E9(w,f,h,s);return w},An=(f,h,w)=>{return Y(f,Object.entries(w).reduce((s,[$,r])=>{if(Array.isArray(r))s[$]=r;else if(typeof r==="function")s[$]=[h,r()];else s[$]=[h,r];return s},{}))},E9=(f,h,w,s)=>{if(h!==null){let E=w[s];if(typeof E==="function")E=[,E];let[T=Gn,U=Wn,F=s]=E;if(typeof T==="function"&&T(h[F])||typeof T!=="function"&&!!T)f[s]=U(h[F]);return}let[$,r]=w[s];if(typeof r==="function"){let E,T=$===void 0&&(E=r())!=null,U=typeof $==="function"&&!!$(void 0)||typeof $!=="function"&&!!$;if(T)f[s]=E;else if(U)f[s]=r()}else{let E=$===void 0&&r!=null,T=typeof $==="function"&&!!$(r)||typeof $!=="function"&&!!$;if(E||T)f[s]=r}},Gn=(f)=>f!=null,Wn=(f)=>f;var zn;var T9=L(()=>{zn=u(bw(),1)});var U9=(f)=>{if(f!==f)return"NaN";switch(f){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return f}};var v=(f)=>{if(f==null)return{};if(Array.isArray(f))return f.filter((h)=>h!=null).map(v);if(typeof f==="object"){let h={};for(let w of Object.keys(f)){if(f[w]==null)continue;h[w]=v(f[w])}return h}return f};var J=L(()=>{jY();OY();vY();eY();aY();xF();pY();$9();r9();cF();T9()});import{Readable as Rn}from"node:stream";var F9=(f)=>f?.body instanceof Rn||typeof ReadableStream!=="undefined"&&f?.body instanceof ReadableStream;var C9=()=>{};var Sn=(f)=>(h,w)=>async(s)=>{let $=await f.retryStrategy(),r=await f.maxAttempts();if(Xn($)){$=$;let E=await $.acquireInitialRetryToken(w.partition_id),T=new Error,U=0,F=0,{request:C}=s,I=n0.isInstance(C);if(I)C.headers[XE]=KY();while(!0)try{if(I)C.headers[YE]=`attempt=${U+1}; max=${r}`;let{response:B,output:G}=await h(s);return $.recordSuccess(E),G.$metadata.attempts=U+1,G.$metadata.totalRetryDelay=F,{response:B,output:G}}catch(B){let G=Yn(B);if(T=jF(B),I&&F9(C))throw(w.logger instanceof e1?console:w.logger)?.warn("An error was encountered in a non-retryable streaming request."),T;try{E=await $.refreshRetryTokenForRetry(E,G)}catch(Q){if(!T.$metadata)T.$metadata={};throw T.$metadata.attempts=U+1,T.$metadata.totalRetryDelay=F,T}U=E.getRetryCount();let S=E.getRetryDelay();F+=S,await new Promise((Q)=>setTimeout(Q,S))}}else{if($=$,$?.mode)w.userAgent=[...w.userAgent||[],["cfg/retry-mode",$.mode]];return $.retry(h,s)}},Xn=(f)=>typeof f.acquireInitialRetryToken!=="undefined"&&typeof f.refreshRetryTokenForRetry!=="undefined"&&typeof f.recordSuccess!=="undefined",Yn=(f)=>{let h={error:f,errorType:Mn(f)},w=Kn(f.$response);if(w)h.retryAfterHint=w;return h},Mn=(f)=>{if($s(f))return"THROTTLING";if(a$(f))return"TRANSIENT";if(KX(f))return"SERVER_ERROR";return"CLIENT_ERROR"},Qn,Ss=(f)=>({applyToStack:(h)=>{h.add(Sn(f),Qn)}}),Kn=(f)=>{if(!_h.isInstance(f))return;let h=Object.keys(f.headers).find((r)=>r.toLowerCase()==="retry-after");if(!h)return;let w=f.headers[h],s=Number(w);if(!Number.isNaN(s))return new Date(s*1000);return new Date(w)};var I9=L(()=>{Ff();o$();J();w1();ZY();C9();Qn={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0}});var Uw=L(()=>{VY();OF();NY();kF();DY();yF();I9()});var R9,VE="AWS_ACCESS_KEY_ID",PE="AWS_SECRET_ACCESS_KEY",S9="AWS_SESSION_TOKEN",X9="AWS_CREDENTIAL_EXPIRATION",Y9="AWS_CREDENTIAL_SCOPE",M9="AWS_ACCOUNT_ID",_F=(f)=>async()=>{f?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");let h=process.env[VE],w=process.env[PE],s=process.env[S9],$=process.env[X9],r=process.env[Y9],E=process.env[M9];if(h&&w){let T={accessKeyId:h,secretAccessKey:w,...s&&{sessionToken:s},...$&&{expiration:new Date($)},...r&&{credentialScope:r},...E&&{accountId:E}};return R9.setCredentialFeature(T,"CREDENTIALS_ENV_VARS","g"),T}throw new a("Unable to find environment variable credentials.",{logger:f?.logger})};var Q9=L(()=>{R9=u(Cf(),1);Y0()});var K9={};Ih(K9,{fromEnv:()=>_F,ENV_SESSION:()=>S9,ENV_SECRET:()=>PE,ENV_KEY:()=>VE,ENV_EXPIRATION:()=>X9,ENV_CREDENTIAL_SCOPE:()=>Y9,ENV_ACCOUNT_ID:()=>M9});var nF=L(()=>{Q9()});import{Buffer as Vn}from"node:buffer";import{request as Pn}from"node:http";function Dh(f){return new Promise((h,w)=>{let s=Pn({method:"GET",...f,hostname:f.hostname?.replace(/^\[(.+)\]$/,"$1")});s.on("error",($)=>{w(Object.assign(new qf("Unable to connect to instance metadata service"),$)),s.destroy()}),s.on("timeout",()=>{w(new qf("TimeoutError from instance metadata service")),s.destroy()}),s.on("response",($)=>{let{statusCode:r=400}=$;if(r<200||300<=r)w(Object.assign(new qf("Error response received from instance metadata service"),{statusCode:r})),s.destroy();let E=[];$.on("data",(T)=>{E.push(T)}),$.on("end",()=>{h(Vn.concat(E)),s.destroy()})}),s.end()})}var HE=L(()=>{Y0()});var NE=(f)=>Boolean(f)&&typeof f==="object"&&typeof f.AccessKeyId==="string"&&typeof f.SecretAccessKey==="string"&&typeof f.Token==="string"&&typeof f.Expiration==="string",DE=(f)=>({accessKeyId:f.AccessKeyId,secretAccessKey:f.SecretAccessKey,sessionToken:f.Token,expiration:new Date(f.Expiration),...f.AccountId&&{accountId:f.AccountId}});var Hn=1000,Nn=0,wr=({maxRetries:f=0,timeout:h=1000})=>({maxRetries:f,timeout:h});var sr=(f,h)=>{let w=f();for(let s=0;s<h;s++)w=w.catch(f);return w};import{parse as Dn}from"node:url";var qE="AWS_CONTAINER_CREDENTIALS_FULL_URI",kE="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",eF="AWS_CONTAINER_AUTHORIZATION_TOKEN",qn=(f={})=>{let{timeout:h,maxRetries:w}=wr(f);return()=>sr(async()=>{let s=await ln({logger:f.logger}),$=JSON.parse(await kn(h,s));if(!NE($))throw new a("Invalid response received from instance metadata service.",{logger:f.logger});return DE($)},w)},kn=async(f,h)=>{if(process.env[eF])h.headers={...h.headers,Authorization:process.env[eF]};return(await Dh({...h,timeout:f})).toString()},yn="169.254.170.2",jn,On,ln=async({logger:f})=>{if(process.env[kE])return{hostname:yn,path:process.env[kE]};if(process.env[qE]){let h=Dn(process.env[qE]);if(!h.hostname||!(h.hostname in jn))throw new a(`${h.hostname} is not a valid container metadata service hostname`,{tryNextLink:!1,logger:f});if(!h.protocol||!(h.protocol in On))throw new a(`${h.protocol} is not a valid container metadata service protocol`,{tryNextLink:!1,logger:f});return{...h,port:h.port?parseInt(h.port,10):void 0}}throw new a(`The container metadata credential provider cannot be used unless the ${kE} or ${qE} environment variable is set`,{tryNextLink:!1,logger:f})};var Z9=L(()=>{Y0();HE();jn={localhost:!0,"127.0.0.1":!0},On={"http:":!0,"https:":!0}});var yE;var J9=L(()=>{Y0();yE=class yE extends a{constructor(f,h=!0){super(f,h);this.tryNextLink=h,this.name="InstanceMetadataV1FallbackError",Object.setPrototypeOf(this,yE.prototype)}}});var Fw;var aF=L(()=>{(function(f){f.IPv4="http://169.254.169.254",f.IPv6="http://[fd00:ec2::254]"})(Fw||(Fw={}))});var V9;var P9=L(()=>{V9={environmentVariableSelector:(f)=>f.AWS_EC2_METADATA_SERVICE_ENDPOINT,configFileSelector:(f)=>f.ec2_metadata_service_endpoint,default:void 0}});var qh;var oF=L(()=>{(function(f){f.IPv4="IPv4",f.IPv6="IPv6"})(qh||(qh={}))});var vn="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",bn="ec2_metadata_service_endpoint_mode",H9;var N9=L(()=>{oF();H9={environmentVariableSelector:(f)=>f[vn],configFileSelector:(f)=>f[bn],default:qh.IPv4}});var jE=async()=>jf(await mn()||await dn()),mn=async()=>z0(V9)(),dn=async()=>{let f=await z0(H9)();switch(f){case qh.IPv4:return Fw.IPv4;case qh.IPv6:return Fw.IPv6;default:throw new Error(`Unsupported endpoint mode: ${f}. Select from ${Object.values(qh)}`)}};var pF=L(()=>{Vh();ws();aF();P9();oF();N9()});var uF=(f,h)=>{let w=300+Math.floor(Math.random()*300),s=new Date(Date.now()+w*1000);h.warn(`Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(s)}.
|
|
43
|
-
For more information, please visit: https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html`);let $=f.originalExpiration??f.expiration;return{...f,...$?{originalExpiration:$}:{},expiration:s}};var
|
|
42
|
+
`)},M5;var bF=B(()=>{nx=Math.ceil(340282346638528860000000000000000000000),vS=OF,ax=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,M5={warn:console.warn}});var ox,ux,dS=(f)=>{if(f===null||f===void 0)return;if(typeof f!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let h=ux.exec(f);if(!h)throw new TypeError("Invalid RFC-3339 date-time value");let[w,s,$,r,E,T,U,F]=h,C=vF(mF(s)),I=rw($,"month",1,12),L=rw(r,"day",1,31);return iS(C,I,L,{hours:E,minutes:T,seconds:U,fractionalMilliseconds:F})},tx,a$=(f)=>{if(f===null||f===void 0)return;if(typeof f!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let h=tx.exec(f);if(!h)throw new TypeError("Invalid RFC-3339 date-time value");let[w,s,$,r,E,T,U,F,C]=h,I=vF(mF(s)),L=rw($,"month",1,12),W=rw(r,"day",1,31),X=iS(I,L,W,{hours:E,minutes:T,seconds:U,fractionalMilliseconds:F});if(C.toUpperCase()!="Z")X.setTime(X.getTime()-$_(C));return X},FI0,CI0,II0,Qf=(f)=>{if(f===null||f===void 0)return;let h;if(typeof f==="number")h=f;else if(typeof f==="string")h=OF(f);else if(typeof f==="object"&&f.tag===1)h=f.value;else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(h)||h===1/0||h===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(h*1000))},iS=(f,h,w,s)=>{let $=h-1;return h_(f,$,w),new Date(Date.UTC(f,$,w,rw(s.hours,"hour",0,23),rw(s.minutes,"minute",0,59),rw(s.seconds,"seconds",0,60),s_(s.fractionalMilliseconds)))},f_,h_=(f,h,w)=>{let s=f_[h];if(h===1&&w_(f))s=29;if(w>s)throw new TypeError(`Invalid day for ${ox[h]} in ${f}: ${w}`)},w_=(f)=>{return f%4===0&&(f%100!==0||f%400===0)},rw=(f,h,w,s)=>{let $=mS(mF(f));if($<w||$>s)throw new TypeError(`${h} must be between ${w} and ${s}, inclusive`);return $},s_=(f)=>{if(f===null||f===void 0)return 0;return bS("0."+f)*1000},$_=(f)=>{let h=f[0],w=1;if(h=="+")w=1;else if(h=="-")w=-1;else throw new TypeError(`Offset direction, ${h}, must be "+" or "-"`);let s=Number(f.substring(1,3)),$=Number(f.substring(4,6));return w*(s*60+$)*60*1000},mF=(f)=>{let h=0;while(h<f.length-1&&f.charAt(h)==="0")h++;if(h===0)return f;return f.slice(h)};var cS=B(()=>{bF();ox=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ux=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),tx=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),FI0=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$/),CI0=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$/),II0=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})$/),f_=[31,28,31,30,31,30,31,31,30,31,30,31]});var $f,l=(f,h={})=>{Object.entries(h).filter(([,s])=>s!==void 0).forEach(([s,$])=>{if(f[s]==null||f[s]==="")f[s]=$});let w=f.message||f.Message||"UnknownError";return f.message=w,delete f.Message,f};var dF=B(()=>{$f=class $f extends Error{constructor(f){super(f.message);Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=f.name,this.$fault=f.$fault,this.$metadata=f.$metadata}static isInstance(f){if(!f)return!1;let h=f;return $f.prototype.isPrototypeOf(h)||Boolean(h.$fault)&&Boolean(h.$metadata)&&(h.$fault==="client"||h.$fault==="server")}static[Symbol.hasInstance](f){if(!f)return!1;let h=f;if(this===$f)return $f.isInstance(f);if($f.isInstance(f)){if(h.name&&this.name)return this.prototype.isPrototypeOf(f)||h.name===this.name;return this.prototype.isPrototypeOf(f)}return!1}}});var r_=({output:f,parsedBody:h,exceptionCtor:w,errorCode:s})=>{let $=E_(f),r=$.httpStatusCode?$.httpStatusCode+"":void 0,E=new w({name:h?.code||h?.Code||s||r||"UnknownError",$fault:"client",$metadata:$});throw l(E,h)},Fs=(f)=>{return({output:h,parsedBody:w,errorCode:s})=>{r_({output:h,parsedBody:w,exceptionCtor:f,errorCode:s})}},E_=(f)=>({httpStatusCode:f.statusCode,requestId:f.headers["x-amzn-requestid"]??f.headers["x-amzn-request-id"]??f.headers["x-amz-request-id"],extendedRequestId:f.headers["x-amz-id-2"],cfId:f.headers["x-amz-cf-id"]});var gS=B(()=>{dF()});var Cs=(f)=>{switch(f){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 xS=!1,Is=(f)=>{if(f&&!xS&&parseInt(f.substring(1,f.indexOf(".")))<16)xS=!0};var T_;var _S=B(()=>{T_=o(jw(),1)});var iF,nS=(f)=>{let h=[];for(let w in iF.AlgorithmId){let s=iF.AlgorithmId[w];if(f[s]===void 0)continue;h.push({algorithmId:()=>s,checksumConstructor:()=>f[s]})}return{addChecksumAlgorithm(w){h.push(w)},checksumAlgorithms(){return h}}},eS=(f)=>{let h={};return f.checksumAlgorithms().forEach((w)=>{h[w.algorithmId()]=w.checksumConstructor()}),h};var aS=B(()=>{iF=o(F1(),1)});var pS=(f)=>{return{setRetryStrategy(h){f.retryStrategy=h},retryStrategy(){return f.retryStrategy}}},oS=(f)=>{let h={};return h.retryStrategy=f.retryStrategy(),h};var Ls=(f)=>{return Object.assign(nS(f),pS(f))},Bs=(f)=>{return Object.assign(eS(f),oS(f))};var uS=B(()=>{aS()});var tS=B(()=>{uS()});var G0=(f)=>Array.isArray(f)?f:[f];var p$=(f)=>{return f!=null};var Gs=function f(h){return Object.assign(new String(h),{deserializeJSON(){return JSON.parse(String(h))},toString(){return String(h)},toJSON(){return String(h)}})};var fY=B(()=>{Gs.from=(f)=>{if(f&&typeof f==="object"&&(f instanceof Gs||("deserializeJSON"in f)))return f;else if(typeof f==="string"||Object.getPrototypeOf(f)===String.prototype)return Gs(String(f));return Gs(JSON.stringify(f))};Gs.fromObject=Gs.from});class nf{trace(){}debug(){}info(){}warn(){}error(){}}function Y(f,h,w){let s,$,r;if(typeof h==="undefined"&&typeof w==="undefined")s={},r=f;else if(s=f,typeof h==="function")return $=h,r=w,U_(s,$,r);else r=h;for(let E of Object.keys(r)){if(!Array.isArray(r[E])){s[E]=r[E];continue}hY(s,null,r,E)}return s}var N0=(f,h)=>{let w={};for(let s in h)hY(w,f,h,s);return w},U_=(f,h,w)=>{return Y(f,Object.entries(w).reduce((s,[$,r])=>{if(Array.isArray(r))s[$]=r;else if(typeof r==="function")s[$]=[h,r()];else s[$]=[h,r];return s},{}))},hY=(f,h,w,s)=>{if(h!==null){let E=w[s];if(typeof E==="function")E=[,E];let[T=F_,U=C_,F=s]=E;if(typeof T==="function"&&T(h[F])||typeof T!=="function"&&!!T)f[s]=U(h[F]);return}let[$,r]=w[s];if(typeof r==="function"){let E,T=$===void 0&&(E=r())!=null,U=typeof $==="function"&&!!$(void 0)||typeof $!=="function"&&!!$;if(T)f[s]=E;else if(U)f[s]=r()}else{let E=$===void 0&&r!=null,T=typeof $==="function"&&!!$(r)||typeof $!=="function"&&!!$;if(E||T)f[s]=r}},F_=(f)=>f!=null,C_=(f)=>f;var I_;var wY=B(()=>{I_=o(jw(),1)});var sY=(f)=>{if(f!==f)return"NaN";switch(f){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return f}};var v=(f)=>{if(f==null)return{};if(Array.isArray(f))return f.filter((h)=>h!=null).map(v);if(typeof f==="object"){let h={};for(let w of Object.keys(f)){if(f[w]==null)continue;h[w]=v(f[w])}return h}return f};var J=B(()=>{HS();NS();kS();cS();gS();dF();_S();tS();fY();bF();wY()});import{Readable as L_}from"node:stream";var $Y=(f)=>f?.body instanceof L_||typeof ReadableStream!=="undefined"&&f?.body instanceof ReadableStream;var rY=()=>{};var B_=(f)=>(h,w)=>async(s)=>{let $=await f.retryStrategy(),r=await f.maxAttempts();if(G_($)){$=$;let E=await $.acquireInitialRetryToken(w.partition_id),T=new Error,U=0,F=0,{request:C}=s,I=n0.isInstance(C);if(I)C.headers[A5]=RS();while(!0)try{if(I)C.headers[z5]=`attempt=${U+1}; max=${r}`;let{response:L,output:W}=await h(s);return $.recordSuccess(E),W.$metadata.attempts=U+1,W.$metadata.totalRetryDelay=F,{response:L,output:W}}catch(L){let W=W_(L);if(T=DF(L),I&&$Y(C))throw(w.logger instanceof nf?console:w.logger)?.warn("An error was encountered in a non-retryable streaming request."),T;try{E=await $.refreshRetryTokenForRetry(E,W)}catch(Q){if(!T.$metadata)T.$metadata={};throw T.$metadata.attempts=U+1,T.$metadata.totalRetryDelay=F,T}U=E.getRetryCount();let X=E.getRetryDelay();F+=X,await new Promise((Q)=>setTimeout(Q,X))}}else{if($=$,$?.mode)w.userAgent=[...w.userAgent||[],["cfg/retry-mode",$.mode]];return $.retry(h,s)}},G_=(f)=>typeof f.acquireInitialRetryToken!=="undefined"&&typeof f.refreshRetryTokenForRetry!=="undefined"&&typeof f.recordSuccess!=="undefined",W_=(f)=>{let h={error:f,errorType:A_(f)},w=R_(f.$response);if(w)h.retryAfterHint=w;return h},A_=(f)=>{if(fs(f))return"THROTTLING";if(g$(f))return"TRANSIENT";if(RX(f))return"SERVER_ERROR";return"CLIENT_ERROR"},z_,Ws=(f)=>({applyToStack:(h)=>{h.add(B_(f),z_)}}),R_=(f)=>{if(!xh.isInstance(f))return;let h=Object.keys(f.headers).find((r)=>r.toLowerCase()==="retry-after");if(!h)return;let w=f.headers[h],s=Number(w);if(!Number.isNaN(s))return new Date(s*1000);return new Date(w)};var EY=B(()=>{C1();x$();J();wf();XS();rY();z_={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0}});var Ew=B(()=>{YS();qF();KS();HF();ZS();NF();EY()});var BY,Q5="AWS_ACCESS_KEY_ID",K5="AWS_SECRET_ACCESS_KEY",GY="AWS_SESSION_TOKEN",WY="AWS_CREDENTIAL_EXPIRATION",AY="AWS_CREDENTIAL_SCOPE",zY="AWS_ACCOUNT_ID",cF=(f)=>async()=>{f?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");let h=process.env[Q5],w=process.env[K5],s=process.env[GY],$=process.env[WY],r=process.env[AY],E=process.env[zY];if(h&&w){let T={accessKeyId:h,secretAccessKey:w,...s&&{sessionToken:s},...$&&{expiration:new Date($)},...r&&{credentialScope:r},...E&&{accountId:E}};return BY.setCredentialFeature(T,"CREDENTIALS_ENV_VARS","g"),T}throw new a("Unable to find environment variable credentials.",{logger:f?.logger})};var RY=B(()=>{BY=o(I1(),1);Y0()});var XY={};Ch(XY,{fromEnv:()=>cF,ENV_SESSION:()=>GY,ENV_SECRET:()=>K5,ENV_KEY:()=>Q5,ENV_EXPIRATION:()=>WY,ENV_CREDENTIAL_SCOPE:()=>AY,ENV_ACCOUNT_ID:()=>zY});var gF=B(()=>{RY()});import{Buffer as Y_}from"node:buffer";import{request as M_}from"node:http";function Nh(f){return new Promise((h,w)=>{let s=M_({method:"GET",...f,hostname:f.hostname?.replace(/^\[(.+)\]$/,"$1")});s.on("error",($)=>{w(Object.assign(new k1("Unable to connect to instance metadata service"),$)),s.destroy()}),s.on("timeout",()=>{w(new k1("TimeoutError from instance metadata service")),s.destroy()}),s.on("response",($)=>{let{statusCode:r=400}=$;if(r<200||300<=r)w(Object.assign(new k1("Error response received from instance metadata service"),{statusCode:r})),s.destroy();let E=[];$.on("data",(T)=>{E.push(T)}),$.on("end",()=>{h(Y_.concat(E)),s.destroy()})}),s.end()})}var Z5=B(()=>{Y0()});var J5=(f)=>Boolean(f)&&typeof f==="object"&&typeof f.AccessKeyId==="string"&&typeof f.SecretAccessKey==="string"&&typeof f.Token==="string"&&typeof f.Expiration==="string",V5=(f)=>({accessKeyId:f.AccessKeyId,secretAccessKey:f.SecretAccessKey,sessionToken:f.Token,expiration:new Date(f.Expiration),...f.AccountId&&{accountId:f.AccountId}});var Q_=1000,K_=0,o$=({maxRetries:f=0,timeout:h=1000})=>({maxRetries:f,timeout:h});var u$=(f,h)=>{let w=f();for(let s=0;s<h;s++)w=w.catch(f);return w};import{parse as Z_}from"node:url";var P5="AWS_CONTAINER_CREDENTIALS_FULL_URI",H5="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",xF="AWS_CONTAINER_AUTHORIZATION_TOKEN",J_=(f={})=>{let{timeout:h,maxRetries:w}=o$(f);return()=>u$(async()=>{let s=await D_({logger:f.logger}),$=JSON.parse(await V_(h,s));if(!J5($))throw new a("Invalid response received from instance metadata service.",{logger:f.logger});return V5($)},w)},V_=async(f,h)=>{if(process.env[xF])h.headers={...h.headers,Authorization:process.env[xF]};return(await Nh({...h,timeout:f})).toString()},P_="169.254.170.2",H_,N_,D_=async({logger:f})=>{if(process.env[H5])return{hostname:P_,path:process.env[H5]};if(process.env[P5]){let h=Z_(process.env[P5]);if(!h.hostname||!(h.hostname in H_))throw new a(`${h.hostname} is not a valid container metadata service hostname`,{tryNextLink:!1,logger:f});if(!h.protocol||!(h.protocol in N_))throw new a(`${h.protocol} is not a valid container metadata service protocol`,{tryNextLink:!1,logger:f});return{...h,port:h.port?parseInt(h.port,10):void 0}}throw new a(`The container metadata credential provider cannot be used unless the ${H5} or ${P5} environment variable is set`,{tryNextLink:!1,logger:f})};var SY=B(()=>{Y0();Z5();H_={localhost:!0,"127.0.0.1":!0},N_={"http:":!0,"https:":!0}});var N5;var YY=B(()=>{Y0();N5=class N5 extends a{constructor(f,h=!0){super(f,h);this.tryNextLink=h,this.name="InstanceMetadataV1FallbackError",Object.setPrototypeOf(this,N5.prototype)}}});var Tw;var _F=B(()=>{(function(f){f.IPv4="http://169.254.169.254",f.IPv6="http://[fd00:ec2::254]"})(Tw||(Tw={}))});var MY;var QY=B(()=>{MY={environmentVariableSelector:(f)=>f.AWS_EC2_METADATA_SERVICE_ENDPOINT,configFileSelector:(f)=>f.ec2_metadata_service_endpoint,default:void 0}});var Dh;var nF=B(()=>{(function(f){f.IPv4="IPv4",f.IPv6="IPv6"})(Dh||(Dh={}))});var q_="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",k_="ec2_metadata_service_endpoint_mode",KY;var ZY=B(()=>{nF();KY={environmentVariableSelector:(f)=>f[q_],configFileSelector:(f)=>f[k_],default:Dh.IPv4}});var D5=async()=>O1(await y_()||await j_()),y_=async()=>z0(MY)(),j_=async()=>{let f=await z0(KY)();switch(f){case Dh.IPv4:return Tw.IPv4;case Dh.IPv6:return Tw.IPv6;default:throw new Error(`Unsupported endpoint mode: ${f}. Select from ${Object.values(Dh)}`)}};var eF=B(()=>{Jh();uw();_F();QY();nF();ZY()});var aF=(f,h)=>{let w=300+Math.floor(Math.random()*300),s=new Date(Date.now()+w*1000);h.warn(`Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(s)}.
|
|
43
|
+
For more information, please visit: https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html`);let $=f.originalExpiration??f.expiration;return{...f,...$?{originalExpiration:$}:{},expiration:s}};var JY=(f,h={})=>{let w=h?.logger||console,s;return async()=>{let $;try{if($=await f(),$.expiration&&$.expiration.getTime()<Date.now())$=aF($,w)}catch(r){if(s)w.warn("Credential renew failed: ",r),$=aF(s,w);else throw r}return s=$,$}};var VY=()=>{};var NY="/latest/meta-data/iam/security-credentials/",O_="/latest/api/token",pF="AWS_EC2_METADATA_V1_DISABLED",PY="ec2_metadata_v1_disabled",HY="x-aws-ec2-metadata-token",l_=(f={})=>JY(v_(f),{logger:f.logger}),v_=(f={})=>{let h=!1,{logger:w,profile:s}=f,{timeout:$,maxRetries:r}=o$(f),E=async(T,U)=>{if(h||U.headers?.[HY]==null){let I=!1,L=!1,W=await z0({environmentVariableSelector:(X)=>{let Q=X[pF];if(L=!!Q&&Q!=="false",Q===void 0)throw new a(`${pF} not set in env, checking config file next.`,{logger:f.logger});return L},configFileSelector:(X)=>{let Q=X[PY];return I=!!Q&&Q!=="false",I},default:!1},{profile:s})();if(f.ec2MetadataV1Disabled||W){let X=[];if(f.ec2MetadataV1Disabled)X.push("credential provider initialization (runtime option ec2MetadataV1Disabled)");if(I)X.push(`config file profile (${PY})`);if(L)X.push(`process environment variable (${pF})`);throw new N5(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${X.join(", ")}].`)}}let C=(await u$(async()=>{let I;try{I=await m_(U)}catch(L){if(L.statusCode===401)h=!1;throw L}return I},T)).trim();return u$(async()=>{let I;try{I=await d_(C,U,f)}catch(L){if(L.statusCode===401)h=!1;throw L}return I},T)};return async()=>{let T=await D5();if(h)return w?.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)"),E(r,{...T,timeout:$});else{let U;try{U=(await b_({...T,timeout:$})).toString()}catch(F){if(F?.statusCode===400)throw Object.assign(F,{message:"EC2 Metadata token request returned error"});else if(F.message==="TimeoutError"||[403,404,405].includes(F.statusCode))h=!0;return w?.debug("AWS SDK Instance Metadata","using v1 fallback (initial)"),E(r,{...T,timeout:$})}return E(r,{...T,headers:{[HY]:U},timeout:$})}}},b_=async(f)=>Nh({...f,path:O_,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),m_=async(f)=>(await Nh({...f,path:NY})).toString(),d_=async(f,h,w)=>{let s=JSON.parse((await Nh({...h,path:NY+f})).toString());if(!J5(s))throw new a("Invalid response received from instance metadata service.",{logger:w.logger});return V5(s)};var DY=B(()=>{Jh();Y0();YY();Z5();eF();VY()});var qY=()=>{};var t$={};Ch(t$,{providerConfigFromInit:()=>o$,httpRequest:()=>Nh,getInstanceMetadataEndpoint:()=>D5,fromInstanceMetadata:()=>l_,fromContainerMetadata:()=>J_,Endpoint:()=>Tw,ENV_CMDS_RELATIVE_URI:()=>H5,ENV_CMDS_FULL_URI:()=>P5,ENV_CMDS_AUTH_TOKEN:()=>xF,DEFAULT_TIMEOUT:()=>Q_,DEFAULT_MAX_RETRIES:()=>K_});var fr=B(()=>{SY();DY();qY();Z5();eF();_F()});function oF(f){let h=[];for(let w of Object.keys(f).sort()){let s=f[w];if(w=q5.escapeUri(w),Array.isArray(s))for(let $=0,r=s.length;$<r;$++)h.push(`${w}=${q5.escapeUri(s[$])}`);else{let $=w;if(s||typeof s==="string")$+=`=${q5.escapeUri(s)}`;h.push($)}}return h.join("&")}var q5;var uF=B(()=>{q5=o(z4(),1)});var kY;var yY=B(()=>{kY=["ECONNRESET","EPIPE","ETIMEDOUT"]});var tF=(f)=>{let h={};for(let w of Object.keys(f)){let s=f[w];h[w]=Array.isArray(s)?s.join(","):s}return h};var f3=()=>{};var a0;var As=B(()=>{a0={setTimeout:(f,h)=>setTimeout(f,h),clearTimeout:(f)=>clearTimeout(f)}});var jY=1000,OY=(f,h,w=0)=>{if(!w)return-1;let s=($)=>{let r=a0.setTimeout(()=>{f.destroy(),h(Object.assign(new Error(`Socket timed out without establishing a connection within ${w} ms`),{name:"TimeoutError"}))},w-$),E=(T)=>{if(T?.connecting)T.on("connect",()=>{a0.clearTimeout(r)});else a0.clearTimeout(r)};if(f.socket)E(f.socket);else f.on("socket",E)};if(w<2000)return s(0),0;return a0.setTimeout(s.bind(null,jY),jY)};var lY=B(()=>{As()});var i_=3000,vY=(f,{keepAlive:h,keepAliveMsecs:w},s=i_)=>{if(h!==!0)return-1;let $=()=>{if(f.socket)f.socket.setKeepAlive(h,w||0);else f.on("socket",(r)=>{r.setKeepAlive(h,w||0)})};if(s===0)return $(),0;return a0.setTimeout($,s)};var bY=B(()=>{As()});var mY=3000,dY=(f,h,w=cY)=>{let s=($)=>{let r=w-$,E=()=>{f.destroy(),h(Object.assign(new Error(`Connection timed out after ${w} ms`),{name:"TimeoutError"}))};if(f.socket)f.socket.setTimeout(r,E),f.on("close",()=>f.socket?.removeListener("timeout",E));else f.setTimeout(r,E)};if(0<w&&w<6000)return s(0),0;return a0.setTimeout(s.bind(null,w===0?0:mY),mY)};var iY=B(()=>{h3();As()});import{Readable as c_}from"node:stream";async function w3(f,h,w=gY){let s=h.headers??{},$=s.Expect||s.expect,r=-1,E=!0;if($==="100-continue")E=await Promise.race([new Promise((T)=>{r=Number(a0.setTimeout(()=>T(!0),Math.max(gY,w)))}),new Promise((T)=>{f.on("continue",()=>{a0.clearTimeout(r),T(!0)}),f.on("response",()=>{a0.clearTimeout(r),T(!1)}),f.on("error",()=>{a0.clearTimeout(r),T(!1)})})]);if(E)g_(f,h.body)}function g_(f,h){if(h instanceof c_){h.pipe(f);return}if(h){if(Buffer.isBuffer(h)||typeof h==="string"){f.end(h);return}let w=h;if(typeof w==="object"&&w.buffer&&typeof w.byteOffset==="number"&&typeof w.byteLength==="number"){f.end(Buffer.from(w.buffer,w.byteOffset,w.byteLength));return}f.end(Buffer.from(h));return}f.end()}var gY=6000;var s3=B(()=>{As()});import{Agent as xY,request as x_}from"node:http";import{Agent as _Y,request as __}from"node:https";class rf{static create(f){if(typeof f?.handle==="function")return f;return new rf(f)}static checkSocketUsage(f,h,w=console){let{sockets:s,requests:$,maxSockets:r}=f;if(typeof r!=="number"||r===1/0)return h;let E=15000;if(Date.now()-E<h)return h;if(s&&$)for(let T in s){let U=s[T]?.length??0,F=$[T]?.length??0;if(U>=r&&F>=2*r)return w?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${U} and ${F} additional requests are enqueued.
|
|
44
44
|
See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
|
|
45
|
-
or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return h}constructor(f){this.socketWarningTimestamp=0,this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((h,w)=>{if(typeof f==="function")f().then((s)=>{h(this.resolveDefaultConfig(s))}).catch(w);else h(this.resolveDefaultConfig(f))})}resolveDefaultConfig(f){let{requestTimeout:h,connectionTimeout:w,socketTimeout:s,socketAcquisitionWarningTimeout:$,httpAgent:r,httpsAgent:E}=f||{},T=!0,U=50;return{connectionTimeout:w,requestTimeout:h??s,socketAcquisitionWarningTimeout:$,httpAgent:(()=>{if(r instanceof
|
|
45
|
+
or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return h}constructor(f){this.socketWarningTimestamp=0,this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((h,w)=>{if(typeof f==="function")f().then((s)=>{h(this.resolveDefaultConfig(s))}).catch(w);else h(this.resolveDefaultConfig(f))})}resolveDefaultConfig(f){let{requestTimeout:h,connectionTimeout:w,socketTimeout:s,socketAcquisitionWarningTimeout:$,httpAgent:r,httpsAgent:E}=f||{},T=!0,U=50;return{connectionTimeout:w,requestTimeout:h??s,socketAcquisitionWarningTimeout:$,httpAgent:(()=>{if(r instanceof xY||typeof r?.destroy==="function")return r;return new xY({keepAlive:!0,maxSockets:50,...r})})(),httpsAgent:(()=>{if(E instanceof _Y||typeof E?.destroy==="function")return E;return new _Y({keepAlive:!0,maxSockets:50,...E})})(),logger:console}}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(f,{abortSignal:h}={}){if(!this.config)this.config=await this.configProvider;return new Promise((w,s)=>{let $=void 0,r=[],E=async(N)=>{await $,r.forEach(a0.clearTimeout),w(N)},T=async(N)=>{await $,r.forEach(a0.clearTimeout),s(N)};if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(h?.aborted){let N=new Error("Request aborted");N.name="AbortError",T(N);return}let U=f.protocol==="https:",F=U?this.config.httpsAgent:this.config.httpAgent;r.push(a0.setTimeout(()=>{this.socketWarningTimestamp=rf.checkSocketUsage(F,this.socketWarningTimestamp,this.config.logger)},this.config.socketAcquisitionWarningTimeout??(this.config.requestTimeout??2000)+(this.config.connectionTimeout??1000)));let C=oF(f.query||{}),I=void 0;if(f.username!=null||f.password!=null){let N=f.username??"",y=f.password??"";I=`${N}:${y}`}let L=f.path;if(C)L+=`?${C}`;if(f.fragment)L+=`#${f.fragment}`;let W=f.hostname??"";if(W[0]==="["&&W.endsWith("]"))W=f.hostname.slice(1,-1);else W=f.hostname;let X={headers:f.headers,host:W,method:f.method,path:L,port:f.port,agent:F,auth:I},M=(U?__:x_)(X,(N)=>{let y=new xh({statusCode:N.statusCode||-1,reason:N.statusMessage,headers:tF(N.headers),body:N});E({response:y})});if(M.on("error",(N)=>{if(kY.includes(N.code))T(Object.assign(N,{name:"TimeoutError"}));else T(N)}),h){let N=()=>{M.destroy();let y=new Error("Request aborted");y.name="AbortError",T(y)};if(typeof h.addEventListener==="function"){let y=h;y.addEventListener("abort",N,{once:!0}),M.once("close",()=>y.removeEventListener("abort",N))}else h.onabort=N}r.push(OY(M,T,this.config.connectionTimeout)),r.push(dY(M,T,this.config.requestTimeout));let q=X.agent;if(typeof q==="object"&&"keepAlive"in q)r.push(vY(M,{keepAlive:q.keepAlive,keepAliveMsecs:q.keepAliveMsecs}));$=w3(M,f,this.config.requestTimeout).catch((N)=>{return r.forEach(a0.clearTimeout),s(N)})})}updateHttpClientConfig(f,h){this.config=void 0,this.configProvider=this.configProvider.then((w)=>{return{...w,[f]:h}})}httpHandlerConfigs(){return this.config??{}}}var cY=0;var h3=B(()=>{C1();uF();yY();f3();lY();bY();iY();As();s3()});var nY=()=>{};var eY=B(()=>{nY()});var aY=B(()=>{C1();uF();f3();eY();s3()});import{Writable as n_}from"node:stream";var $3;var pY=B(()=>{$3=class $3 extends n_{constructor(){super(...arguments);this.bufferedBytes=[]}_write(f,h,w){this.bufferedBytes.push(f),w()}}});async function a_(f){let h=[],w=f.getReader(),s=!1,$=0;while(!s){let{done:T,value:U}=await w.read();if(U)h.push(U),$+=U.length;s=T}let r=new Uint8Array($),E=0;for(let T of h)r.set(T,E),E+=T.length;return r}var zs=(f)=>{if(e_(f))return a_(f);return new Promise((h,w)=>{let s=new $3;f.pipe(s),f.on("error",($)=>{s.end(),w($)}),s.on("error",w),s.on("finish",function(){let $=new Uint8Array(Buffer.concat(this.bufferedBytes));h($)})})},e_=(f)=>typeof ReadableStream==="function"&&f instanceof ReadableStream;var oY=B(()=>{pY()});var hr=B(()=>{h3();aY();oY()});var p_="169.254.170.2",o_="169.254.170.23",u_="[fd00:ec2::23]",uY=(f,h)=>{if(f.protocol==="https:")return;if(f.hostname===p_||f.hostname===o_||f.hostname===u_)return;if(f.hostname.includes("[")){if(f.hostname==="[::1]"||f.hostname==="[0000:0000:0000:0000:0000:0000:0000:0001]")return}else{if(f.hostname==="localhost")return;let w=f.hostname.split("."),s=($)=>{let r=parseInt($,10);return 0<=r&&r<=255};if(w[0]==="127"&&s(w[1])&&s(w[2])&&s(w[3])&&w.length===4)return}throw new a(`URL not accepted. It must either be HTTPS or match one of the following:
|
|
46
46
|
- loopback CIDR 127.0.0.0/8 or [::1/128]
|
|
47
47
|
- ECS container host 169.254.170.2
|
|
48
|
-
- EKS container host 169.254.170.23 or [fd00:ec2::23]`,{logger:h})};var
|
|
49
|
-
Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`,{logger:f.logger});let T=new URL(h);rM(T,f.logger);let U=new r1({requestTimeout:f.timeout??1000,connectionTimeout:f.timeout??1000});return IM(async()=>{let F=UM(T);if($)F.headers.Authorization=$;else if(r)F.headers.Authorization=(await Te.readFile(r)).toString();try{let C=await U.handle(F);return FM(C.response).then((I)=>LM.setCredentialFeature(I,"CREDENTIALS_HTTP","z"))}catch(C){throw new a(String(C),{logger:f.logger})}},f.maxRetries??3,f.timeout??1000)};var AM=L(()=>{LM=u(Cf(),1);Tr();Y0();EM();CM()});var U3={};Ih(U3,{fromHttp:()=>BM});var F3=L(()=>{AM()});var C3=(f)=>f&&(typeof f.sso_start_url==="string"||typeof f.sso_account_id==="string"||typeof f.sso_session==="string"||typeof f.sso_region==="string"||typeof f.sso_role_name==="string");var zM=300000,Ms="To refresh this SSO session run 'aws sso login' with the corresponding profile.";var I3=H((Jz0,MM)=>{var{defineProperty:lE,getOwnPropertyDescriptor:Be,getOwnPropertyNames:Ae}=Object,Ge=Object.prototype.hasOwnProperty,OE=(f,h)=>lE(f,"name",{value:h,configurable:!0}),We=(f,h)=>{for(var w in h)lE(f,w,{get:h[w],enumerable:!0})},ze=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Ae(h))if(!Ge.call(f,$)&&$!==w)lE(f,$,{get:()=>h[$],enumerable:!(s=Be(h,$))||s.enumerable})}return f},Re=(f)=>ze(lE({},"__esModule",{value:!0}),f),RM={};We(RM,{getHostHeaderPlugin:()=>Xe,hostHeaderMiddleware:()=>XM,hostHeaderMiddlewareOptions:()=>YM,resolveHostHeaderConfig:()=>SM});MM.exports=Re(RM);var Se=t0();function SM(f){return f}OE(SM,"resolveHostHeaderConfig");var XM=OE((f)=>(h)=>async(w)=>{if(!Se.HttpRequest.isInstance(w.request))return h(w);let{request:s}=w,{handlerProtocol:$=""}=f.requestHandler.metadata||{};if($.indexOf("h2")>=0&&!s.headers[":authority"])delete s.headers.host,s.headers[":authority"]=s.hostname+(s.port?":"+s.port:"");else if(!s.headers.host){let r=s.hostname;if(s.port!=null)r+=`:${s.port}`;s.headers.host=r}return h(w)},"hostHeaderMiddleware"),YM={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},Xe=OE((f)=>({applyToStack:OE((h)=>{h.add(XM(f),YM)},"applyToStack")}),"getHostHeaderPlugin")});var B3=H((Vz0,JM)=>{var{defineProperty:vE,getOwnPropertyDescriptor:Ye,getOwnPropertyNames:Me}=Object,Qe=Object.prototype.hasOwnProperty,L3=(f,h)=>vE(f,"name",{value:h,configurable:!0}),Ke=(f,h)=>{for(var w in h)vE(f,w,{get:h[w],enumerable:!0})},Ze=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Me(h))if(!Qe.call(f,$)&&$!==w)vE(f,$,{get:()=>h[$],enumerable:!(s=Ye(h,$))||s.enumerable})}return f},Je=(f)=>Ze(vE({},"__esModule",{value:!0}),f),QM={};Ke(QM,{getLoggerPlugin:()=>Ve,loggerMiddleware:()=>KM,loggerMiddlewareOptions:()=>ZM});JM.exports=Je(QM);var KM=L3(()=>(f,h)=>async(w)=>{try{let s=await f(w),{clientName:$,commandName:r,logger:E,dynamoDbDocumentClientOptions:T={}}=h,{overrideInputFilterSensitiveLog:U,overrideOutputFilterSensitiveLog:F}=T,C=U??h.inputFilterSensitiveLog,I=F??h.outputFilterSensitiveLog,{$metadata:B,...G}=s.output;return E?.info?.({clientName:$,commandName:r,input:C(w.input),output:I(G),metadata:B}),s}catch(s){let{clientName:$,commandName:r,logger:E,dynamoDbDocumentClientOptions:T={}}=h,{overrideInputFilterSensitiveLog:U}=T,F=U??h.inputFilterSensitiveLog;throw E?.error?.({clientName:$,commandName:r,input:F(w.input),error:s,metadata:s.$metadata}),s}},"loggerMiddleware"),ZM={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},Ve=L3((f)=>({applyToStack:L3((h)=>{h.add(KM(),ZM)},"applyToStack")}),"getLoggerPlugin")});var G3=H((Pz0,NM)=>{var{defineProperty:mE,getOwnPropertyDescriptor:Pe,getOwnPropertyNames:He}=Object,Ne=Object.prototype.hasOwnProperty,bE=(f,h)=>mE(f,"name",{value:h,configurable:!0}),De=(f,h)=>{for(var w in h)mE(f,w,{get:h[w],enumerable:!0})},qe=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of He(h))if(!Ne.call(f,$)&&$!==w)mE(f,$,{get:()=>h[$],enumerable:!(s=Pe(h,$))||s.enumerable})}return f},ke=(f)=>qe(mE({},"__esModule",{value:!0}),f),VM={};De(VM,{addRecursionDetectionMiddlewareOptions:()=>HM,getRecursionDetectionPlugin:()=>le,recursionDetectionMiddleware:()=>PM});NM.exports=ke(VM);var ye=t0(),A3="X-Amzn-Trace-Id",je="AWS_LAMBDA_FUNCTION_NAME",Oe="_X_AMZN_TRACE_ID",PM=bE((f)=>(h)=>async(w)=>{let{request:s}=w;if(!ye.HttpRequest.isInstance(s)||f.runtime!=="node")return h(w);let $=Object.keys(s.headers??{}).find((U)=>U.toLowerCase()===A3.toLowerCase())??A3;if(s.headers.hasOwnProperty($))return h(w);let r=process.env[je],E=process.env[Oe],T=bE((U)=>typeof U==="string"&&U.length>0,"nonEmptyString");if(T(r)&&T(E))s.headers[A3]=E;return h({...w,request:s})},"recursionDetectionMiddleware"),HM={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},le=bE((f)=>({applyToStack:bE((h)=>{h.add(PM(f),HM)},"applyToStack")}),"getRecursionDetectionPlugin")});var cE=H((Hz0,bM)=>{var{defineProperty:dE,getOwnPropertyDescriptor:ve,getOwnPropertyNames:be}=Object,me=Object.prototype.hasOwnProperty,Q0=(f,h)=>dE(f,"name",{value:h,configurable:!0}),de=(f,h)=>{for(var w in h)dE(f,w,{get:h[w],enumerable:!0})},ie=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of be(h))if(!me.call(f,$)&&$!==w)dE(f,$,{get:()=>h[$],enumerable:!(s=ve(h,$))||s.enumerable})}return f},ce=(f)=>ie(dE({},"__esModule",{value:!0}),f),DM={};de(DM,{EndpointCache:()=>ge,EndpointError:()=>Yf,customEndpointFunctions:()=>z3,isIpAddress:()=>qM,isValidHostLabel:()=>S3,resolveEndpoint:()=>Fa});bM.exports=ce(DM);var ge=class{constructor({size:f,params:h}){if(this.data=new Map,this.parameters=[],this.capacity=f??50,h)this.parameters=h}static{Q0(this,"EndpointCache")}get(f,h){let w=this.hash(f);if(w===!1)return h();if(!this.data.has(w)){if(this.data.size>this.capacity+10){let s=this.data.keys(),$=0;while(!0){let{value:r,done:E}=s.next();if(this.data.delete(r),E||++$>10)break}}this.data.set(w,h())}return this.data.get(w)}size(){return this.data.size}hash(f){let h="",{parameters:w}=this;if(w.length===0)return!1;for(let s of w){let $=String(f[s]??"");if($.includes("|;"))return!1;h+=$+"|;"}return h}},xe=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}$"),qM=Q0((f)=>xe.test(f)||f.startsWith("[")&&f.endsWith("]"),"isIpAddress"),_e=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),S3=Q0((f,h=!1)=>{if(!h)return _e.test(f);let w=f.split(".");for(let s of w)if(!S3(s))return!1;return!0},"isValidHostLabel"),z3={},Ur="endpoints";function a1(f){if(typeof f!=="object"||f==null)return f;if("ref"in f)return`$${a1(f.ref)}`;if("fn"in f)return`${f.fn}(${(f.argv||[]).map(a1).join(", ")})`;return JSON.stringify(f,null,2)}Q0(a1,"toDebugString");var Yf=class extends Error{static{Q0(this,"EndpointError")}constructor(f){super(f);this.name="EndpointError"}},ne=Q0((f,h)=>f===h,"booleanEquals"),ee=Q0((f)=>{let h=f.split("."),w=[];for(let s of h){let $=s.indexOf("[");if($!==-1){if(s.indexOf("]")!==s.length-1)throw new Yf(`Path: '${f}' does not end with ']'`);let r=s.slice($+1,-1);if(Number.isNaN(parseInt(r)))throw new Yf(`Invalid array index: '${r}' in path: '${f}'`);if($!==0)w.push(s.slice(0,$));w.push(r)}else w.push(s)}return w},"getAttrPathList"),kM=Q0((f,h)=>ee(h).reduce((w,s)=>{if(typeof w!=="object")throw new Yf(`Index '${s}' in '${h}' not found in '${JSON.stringify(f)}'`);else if(Array.isArray(w))return w[parseInt(s)];return w[s]},f),"getAttr"),ae=Q0((f)=>f!=null,"isSet"),oe=Q0((f)=>!f,"not"),R3=nh(),W3={[R3.EndpointURLScheme.HTTP]:80,[R3.EndpointURLScheme.HTTPS]:443},pe=Q0((f)=>{let h=(()=>{try{if(f instanceof URL)return f;if(typeof f==="object"&&"hostname"in f){let{hostname:B,port:G,protocol:S="",path:Q="",query:M={}}=f,q=new URL(`${S}//${B}${G?`:${G}`:""}${Q}`);return q.search=Object.entries(M).map(([N,y])=>`${N}=${y}`).join("&"),q}return new URL(f)}catch(B){return null}})();if(!h)return console.error(`Unable to parse ${JSON.stringify(f)} as a whatwg URL.`),null;let w=h.href,{host:s,hostname:$,pathname:r,protocol:E,search:T}=h;if(T)return null;let U=E.slice(0,-1);if(!Object.values(R3.EndpointURLScheme).includes(U))return null;let F=qM($),C=w.includes(`${s}:${W3[U]}`)||typeof f==="string"&&f.includes(`${s}:${W3[U]}`),I=`${s}${C?`:${W3[U]}`:""}`;return{scheme:U,authority:I,path:r,normalizedPath:r.endsWith("/")?r:`${r}/`,isIp:F}},"parseURL"),ue=Q0((f,h)=>f===h,"stringEquals"),te=Q0((f,h,w,s)=>{if(h>=w||f.length<w)return null;if(!s)return f.substring(h,w);return f.substring(f.length-w,f.length-h)},"substring"),fa=Q0((f)=>encodeURIComponent(f).replace(/[!*'()]/g,(h)=>`%${h.charCodeAt(0).toString(16).toUpperCase()}`),"uriEncode"),ha={booleanEquals:ne,getAttr:kM,isSet:ae,isValidHostLabel:S3,not:oe,parseURL:pe,stringEquals:ue,substring:te,uriEncode:fa},yM=Q0((f,h)=>{let w=[],s={...h.endpointParams,...h.referenceRecord},$=0;while($<f.length){let r=f.indexOf("{",$);if(r===-1){w.push(f.slice($));break}w.push(f.slice($,r));let E=f.indexOf("}",r);if(E===-1){w.push(f.slice(r));break}if(f[r+1]==="{"&&f[E+1]==="}")w.push(f.slice(r+1,E)),$=E+2;let T=f.substring(r+1,E);if(T.includes("#")){let[U,F]=T.split("#");w.push(kM(s[U],F))}else w.push(s[T]);$=E+1}return w.join("")},"evaluateTemplate"),wa=Q0(({ref:f},h)=>{return{...h.endpointParams,...h.referenceRecord}[f]},"getReferenceValue"),iE=Q0((f,h,w)=>{if(typeof f==="string")return yM(f,w);else if(f.fn)return jM(f,w);else if(f.ref)return wa(f,w);throw new Yf(`'${h}': ${String(f)} is not a string, function or reference.`)},"evaluateExpression"),jM=Q0(({fn:f,argv:h},w)=>{let s=h.map((r)=>["boolean","number"].includes(typeof r)?r:iE(r,"arg",w)),$=f.split(".");if($[0]in z3&&$[1]!=null)return z3[$[0]][$[1]](...s);return ha[f](...s)},"callFunction"),sa=Q0(({assign:f,...h},w)=>{if(f&&f in w.referenceRecord)throw new Yf(`'${f}' is already defined in Reference Record.`);let s=jM(h,w);return w.logger?.debug?.(`${Ur} evaluateCondition: ${a1(h)} = ${a1(s)}`),{result:s===""?!0:!!s,...f!=null&&{toAssign:{name:f,value:s}}}},"evaluateCondition"),X3=Q0((f=[],h)=>{let w={};for(let s of f){let{result:$,toAssign:r}=sa(s,{...h,referenceRecord:{...h.referenceRecord,...w}});if(!$)return{result:$};if(r)w[r.name]=r.value,h.logger?.debug?.(`${Ur} assign: ${r.name} := ${a1(r.value)}`)}return{result:!0,referenceRecord:w}},"evaluateConditions"),$a=Q0((f,h)=>Object.entries(f).reduce((w,[s,$])=>({...w,[s]:$.map((r)=>{let E=iE(r,"Header value entry",h);if(typeof E!=="string")throw new Yf(`Header '${s}' value '${E}' is not a string`);return E})}),{}),"getEndpointHeaders"),OM=Q0((f,h)=>{if(Array.isArray(f))return f.map((w)=>OM(w,h));switch(typeof f){case"string":return yM(f,h);case"object":if(f===null)throw new Yf(`Unexpected endpoint property: ${f}`);return lM(f,h);case"boolean":return f;default:throw new Yf(`Unexpected endpoint property type: ${typeof f}`)}},"getEndpointProperty"),lM=Q0((f,h)=>Object.entries(f).reduce((w,[s,$])=>({...w,[s]:OM($,h)}),{}),"getEndpointProperties"),ra=Q0((f,h)=>{let w=iE(f,"Endpoint URL",h);if(typeof w==="string")try{return new URL(w)}catch(s){throw console.error(`Failed to construct URL with ${w}`,s),s}throw new Yf(`Endpoint URL must be a string, got ${typeof w}`)},"getEndpointUrl"),Ea=Q0((f,h)=>{let{conditions:w,endpoint:s}=f,{result:$,referenceRecord:r}=X3(w,h);if(!$)return;let E={...h,referenceRecord:{...h.referenceRecord,...r}},{url:T,properties:U,headers:F}=s;return h.logger?.debug?.(`${Ur} Resolving endpoint from template: ${a1(s)}`),{...F!=null&&{headers:$a(F,E)},...U!=null&&{properties:lM(U,E)},url:ra(T,E)}},"evaluateEndpointRule"),Ta=Q0((f,h)=>{let{conditions:w,error:s}=f,{result:$,referenceRecord:r}=X3(w,h);if(!$)return;throw new Yf(iE(s,"Error",{...h,referenceRecord:{...h.referenceRecord,...r}}))},"evaluateErrorRule"),Ua=Q0((f,h)=>{let{conditions:w,rules:s}=f,{result:$,referenceRecord:r}=X3(w,h);if(!$)return;return vM(s,{...h,referenceRecord:{...h.referenceRecord,...r}})},"evaluateTreeRule"),vM=Q0((f,h)=>{for(let w of f)if(w.type==="endpoint"){let s=Ea(w,h);if(s)return s}else if(w.type==="error")Ta(w,h);else if(w.type==="tree"){let s=Ua(w,h);if(s)return s}else throw new Yf(`Unknown endpoint rule: ${w}`);throw new Yf("Rules evaluation failed")},"evaluateRules"),Fa=Q0((f,h)=>{let{endpointParams:w,logger:s}=h,{parameters:$,rules:r}=f;h.logger?.debug?.(`${Ur} Initial EndpointParams: ${a1(w)}`);let E=Object.entries($).filter(([,F])=>F.default!=null).map(([F,C])=>[F,C.default]);if(E.length>0)for(let[F,C]of E)w[F]=w[F]??C;let T=Object.entries($).filter(([,F])=>F.required).map(([F])=>F);for(let F of T)if(w[F]==null)throw new Yf(`Missing required parameter: '${F}'`);let U=vM(r,{endpointParams:w,logger:s,referenceRecord:{}});return h.logger?.debug?.(`${Ur} Resolved endpoint: ${a1(U)}`),U},"resolveEndpoint")});var xE=H((qz0,aM)=>{var{defineProperty:gE,getOwnPropertyDescriptor:Ca,getOwnPropertyNames:Ia}=Object,La=Object.prototype.hasOwnProperty,Qs=(f,h)=>gE(f,"name",{value:h,configurable:!0}),Ba=(f,h)=>{for(var w in h)gE(f,w,{get:h[w],enumerable:!0})},Aa=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Ia(h))if(!La.call(f,$)&&$!==w)gE(f,$,{get:()=>h[$],enumerable:!(s=Ca(h,$))||s.enumerable})}return f},Ga=(f)=>Aa(gE({},"__esModule",{value:!0}),f),dM={};Ba(dM,{ConditionObject:()=>V0.ConditionObject,DeprecatedObject:()=>V0.DeprecatedObject,EndpointError:()=>V0.EndpointError,EndpointObject:()=>V0.EndpointObject,EndpointObjectHeaders:()=>V0.EndpointObjectHeaders,EndpointObjectProperties:()=>V0.EndpointObjectProperties,EndpointParams:()=>V0.EndpointParams,EndpointResolverOptions:()=>V0.EndpointResolverOptions,EndpointRuleObject:()=>V0.EndpointRuleObject,ErrorRuleObject:()=>V0.ErrorRuleObject,EvaluateOptions:()=>V0.EvaluateOptions,Expression:()=>V0.Expression,FunctionArgv:()=>V0.FunctionArgv,FunctionObject:()=>V0.FunctionObject,FunctionReturn:()=>V0.FunctionReturn,ParameterObject:()=>V0.ParameterObject,ReferenceObject:()=>V0.ReferenceObject,ReferenceRecord:()=>V0.ReferenceRecord,RuleSetObject:()=>V0.RuleSetObject,RuleSetRules:()=>V0.RuleSetRules,TreeRuleObject:()=>V0.TreeRuleObject,awsEndpointFunctions:()=>eM,getUserAgentPrefix:()=>Sa,isIpAddress:()=>V0.isIpAddress,partition:()=>_M,resolveEndpoint:()=>V0.resolveEndpoint,setPartitionInfo:()=>nM,useDefaultPartitionInfo:()=>Ra});aM.exports=Ga(dM);var V0=cE(),iM=Qs((f,h=!1)=>{if(h){for(let w of f.split("."))if(!iM(w))return!1;return!0}if(!V0.isValidHostLabel(f))return!1;if(f.length<3||f.length>63)return!1;if(f!==f.toLowerCase())return!1;if(V0.isIpAddress(f))return!1;return!0},"isVirtualHostableS3Bucket"),mM=":",Wa="/",za=Qs((f)=>{let h=f.split(mM);if(h.length<6)return null;let[w,s,$,r,E,...T]=h;if(w!=="arn"||s===""||$===""||T.join(mM)==="")return null;let U=T.map((F)=>F.split(Wa)).flat();return{partition:s,service:$,region:r,accountId:E,resourceId:U}},"parseArn"),cM={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)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"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)"},"mx-central-1":{description:"Mexico (Central)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"AWS 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:{"aws-iso-f-global":{description:"AWS ISOF global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}}],version:"1.1"},gM=cM,xM="",_M=Qs((f)=>{let{partitions:h}=gM;for(let s of h){let{regions:$,outputs:r}=s;for(let[E,T]of Object.entries($))if(E===f)return{...r,...T}}for(let s of h){let{regionRegex:$,outputs:r}=s;if(new RegExp($).test(f))return{...r}}let w=h.find((s)=>s.id==="aws");if(!w)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...w.outputs}},"partition"),nM=Qs((f,h="")=>{gM=f,xM=h},"setPartitionInfo"),Ra=Qs(()=>{nM(cM,"")},"useDefaultPartitionInfo"),Sa=Qs(()=>xM,"getUserAgentPrefix"),eM={isVirtualHostableS3Bucket:iM,parseArn:za,partition:_M};V0.customEndpointFunctions.aws=eM});var eE=H((kz0,TQ)=>{var{defineProperty:nE,getOwnPropertyDescriptor:Xa,getOwnPropertyNames:Ya}=Object,Ma=Object.prototype.hasOwnProperty,o1=(f,h)=>nE(f,"name",{value:h,configurable:!0}),Qa=(f,h)=>{for(var w in h)nE(f,w,{get:h[w],enumerable:!0})},Ka=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Ya(h))if(!Ma.call(f,$)&&$!==w)nE(f,$,{get:()=>h[$],enumerable:!(s=Xa(h,$))||s.enumerable})}return f},Za=(f)=>Ka(nE({},"__esModule",{value:!0}),f),tM={};Qa(tM,{DEFAULT_UA_APP_ID:()=>fQ,getUserAgentMiddlewareOptions:()=>EQ,getUserAgentPlugin:()=>ka,resolveUserAgentConfig:()=>wQ,userAgentMiddleware:()=>rQ});TQ.exports=Za(tM);var Ja=m0(),fQ=void 0;function hQ(f){if(f===void 0)return!0;return typeof f==="string"&&f.length<=50}o1(hQ,"isValidUserAgentAppId");function wQ(f){let h=Ja.normalizeProvider(f.userAgentAppId??fQ),{customUserAgent:w}=f;return Object.assign(f,{customUserAgent:typeof w==="string"?[[w]]:w,userAgentAppId:o1(async()=>{let s=await h();if(!hQ(s)){let $=f.logger?.constructor?.name==="NoOpLogger"||!f.logger?console:f.logger;if(typeof s!=="string")$?.warn("userAgentAppId must be a string or undefined.");else if(s.length>50)$?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return s},"userAgentAppId")})}o1(wQ,"resolveUserAgentConfig");var Va=xE(),Pa=t0(),K1=O0(),Ha=/\d{12}\.ddb/;async function sQ(f,h,w){if(w.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor")K1.setFeature(f,"PROTOCOL_RPC_V2_CBOR","M");if(typeof h.retryStrategy==="function"){let r=await h.retryStrategy();if(typeof r.acquireInitialRetryToken==="function")if(r.constructor?.name?.includes("Adaptive"))K1.setFeature(f,"RETRY_MODE_ADAPTIVE","F");else K1.setFeature(f,"RETRY_MODE_STANDARD","E");else K1.setFeature(f,"RETRY_MODE_LEGACY","D")}if(typeof h.accountIdEndpointMode==="function"){let r=f.endpointV2;if(String(r?.url?.hostname).match(Ha))K1.setFeature(f,"ACCOUNT_ID_ENDPOINT","O");switch(await h.accountIdEndpointMode?.()){case"disabled":K1.setFeature(f,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":K1.setFeature(f,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":K1.setFeature(f,"ACCOUNT_ID_MODE_REQUIRED","R");break}}let $=f.__smithy_context?.selectedHttpAuthScheme?.identity;if($?.$source){let r=$;if(r.accountId)K1.setFeature(f,"RESOLVED_ACCOUNT_ID","T");for(let[E,T]of Object.entries(r.$source??{}))K1.setFeature(f,E,T)}}o1(sQ,"checkFeatures");var oM="user-agent",Y3="x-amz-user-agent",pM=" ",M3="/",Na=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,Da=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g,uM="-",qa=1024;function $Q(f){let h="";for(let w in f){let s=f[w];if(h.length+s.length+1<=qa){if(h.length)h+=","+s;else h+=s;continue}break}return h}o1($Q,"encodeFeatures");var rQ=o1((f)=>(h,w)=>async(s)=>{let{request:$}=s;if(!Pa.HttpRequest.isInstance($))return h(s);let{headers:r}=$,E=w?.userAgent?.map(_E)||[],T=(await f.defaultUserAgentProvider()).map(_E);await sQ(w,f,s);let U=w;T.push(`m/${$Q(Object.assign({},w.__smithy_context?.features,U.__aws_sdk_context?.features))}`);let F=f?.customUserAgent?.map(_E)||[],C=await f.userAgentAppId();if(C)T.push(_E([`app/${C}`]));let I=Va.getUserAgentPrefix(),B=(I?[I]:[]).concat([...T,...E,...F]).join(pM),G=[...T.filter((S)=>S.startsWith("aws-sdk-")),...F].join(pM);if(f.runtime!=="browser"){if(G)r[Y3]=r[Y3]?`${r[oM]} ${G}`:G;r[oM]=B}else r[Y3]=B;return h({...s,request:$})},"userAgentMiddleware"),_E=o1((f)=>{let h=f[0].split(M3).map((E)=>E.replace(Na,uM)).join(M3),w=f[1]?.replace(Da,uM),s=h.indexOf(M3),$=h.substring(0,s),r=h.substring(s+1);if($==="api")r=r.toLowerCase();return[$,r,w].filter((E)=>E&&E.length>0).reduce((E,T,U)=>{switch(U){case 0:return T;case 1:return`${E}/${T}`;default:return`${E}#${T}`}},"")},"escapeUserAgent"),EQ={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},ka=o1((f)=>({applyToStack:o1((h)=>{h.add(rQ(f),EQ)},"applyToStack")}),"getUserAgentPlugin")});var LQ=H((yz0,IQ)=>{var{defineProperty:aE,getOwnPropertyDescriptor:ya,getOwnPropertyNames:ja}=Object,Oa=Object.prototype.hasOwnProperty,UQ=(f,h)=>aE(f,"name",{value:h,configurable:!0}),la=(f,h)=>{for(var w in h)aE(f,w,{get:h[w],enumerable:!0})},va=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of ja(h))if(!Oa.call(f,$)&&$!==w)aE(f,$,{get:()=>h[$],enumerable:!(s=ya(h,$))||s.enumerable})}return f},ba=(f)=>va(aE({},"__esModule",{value:!0}),f),FQ={};la(FQ,{SelectorType:()=>CQ,booleanSelector:()=>ma,numberSelector:()=>da});IQ.exports=ba(FQ);var ma=UQ((f,h,w)=>{if(!(h in f))return;if(f[h]==="true")return!0;if(f[h]==="false")return!1;throw new Error(`Cannot load ${w} "${h}". Expected "true" or "false", got ${f[h]}.`)},"booleanSelector"),da=UQ((f,h,w)=>{if(!(h in f))return;let s=parseInt(f[h],10);if(Number.isNaN(s))throw new TypeError(`Cannot load ${w} '${h}'. Expected number, got '${f[h]}'.`);return s},"numberSelector"),CQ=((f)=>{return f.ENV="env",f.CONFIG="shared config entry",f})(CQ||{})});var Ks=H((jz0,QQ)=>{var{defineProperty:pE,getOwnPropertyDescriptor:ia,getOwnPropertyNames:ca}=Object,ga=Object.prototype.hasOwnProperty,E1=(f,h)=>pE(f,"name",{value:h,configurable:!0}),xa=(f,h)=>{for(var w in h)pE(f,w,{get:h[w],enumerable:!0})},_a=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of ca(h))if(!ga.call(f,$)&&$!==w)pE(f,$,{get:()=>h[$],enumerable:!(s=ia(h,$))||s.enumerable})}return f},na=(f)=>_a(pE({},"__esModule",{value:!0}),f),GQ={};xa(GQ,{CONFIG_USE_DUALSTACK_ENDPOINT:()=>zQ,CONFIG_USE_FIPS_ENDPOINT:()=>SQ,DEFAULT_USE_DUALSTACK_ENDPOINT:()=>ea,DEFAULT_USE_FIPS_ENDPOINT:()=>oa,ENV_USE_DUALSTACK_ENDPOINT:()=>WQ,ENV_USE_FIPS_ENDPOINT:()=>RQ,NODE_REGION_CONFIG_FILE_OPTIONS:()=>wo,NODE_REGION_CONFIG_OPTIONS:()=>ho,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:()=>aa,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:()=>pa,REGION_ENV_NAME:()=>XQ,REGION_INI_NAME:()=>YQ,getRegionInfo:()=>To,resolveCustomEndpointsConfig:()=>ua,resolveEndpointsConfig:()=>fo,resolveRegionConfig:()=>so});QQ.exports=na(GQ);var kh=LQ(),WQ="AWS_USE_DUALSTACK_ENDPOINT",zQ="use_dualstack_endpoint",ea=!1,aa={environmentVariableSelector:(f)=>kh.booleanSelector(f,WQ,kh.SelectorType.ENV),configFileSelector:(f)=>kh.booleanSelector(f,zQ,kh.SelectorType.CONFIG),default:!1},RQ="AWS_USE_FIPS_ENDPOINT",SQ="use_fips_endpoint",oa=!1,pa={environmentVariableSelector:(f)=>kh.booleanSelector(f,RQ,kh.SelectorType.ENV),configFileSelector:(f)=>kh.booleanSelector(f,SQ,kh.SelectorType.CONFIG),default:!1},oE=Lh(),ua=E1((f)=>{let{tls:h,endpoint:w,urlParser:s,useDualstackEndpoint:$}=f;return Object.assign(f,{tls:h??!0,endpoint:oE.normalizeProvider(typeof w==="string"?s(w):w),isCustomEndpoint:!0,useDualstackEndpoint:oE.normalizeProvider($??!1)})},"resolveCustomEndpointsConfig"),ta=E1(async(f)=>{let{tls:h=!0}=f,w=await f.region();if(!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(w))throw new Error("Invalid region in client config");let $=await f.useDualstackEndpoint(),r=await f.useFipsEndpoint(),{hostname:E}=await f.regionInfoProvider(w,{useDualstackEndpoint:$,useFipsEndpoint:r})??{};if(!E)throw new Error("Cannot resolve hostname from client config");return f.urlParser(`${h?"https:":"http:"}//${E}`)},"getEndpointFromRegion"),fo=E1((f)=>{let h=oE.normalizeProvider(f.useDualstackEndpoint??!1),{endpoint:w,useFipsEndpoint:s,urlParser:$,tls:r}=f;return Object.assign(f,{tls:r??!0,endpoint:w?oE.normalizeProvider(typeof w==="string"?$(w):w):()=>ta({...f,useDualstackEndpoint:h,useFipsEndpoint:s}),isCustomEndpoint:!!w,useDualstackEndpoint:h})},"resolveEndpointsConfig"),XQ="AWS_REGION",YQ="region",ho={environmentVariableSelector:(f)=>f[XQ],configFileSelector:(f)=>f[YQ],default:()=>{throw new Error("Region is missing")}},wo={preferredFile:"credentials"},MQ=E1((f)=>typeof f==="string"&&(f.startsWith("fips-")||f.endsWith("-fips")),"isFipsRegion"),BQ=E1((f)=>MQ(f)?["fips-aws-global","aws-fips"].includes(f)?"us-east-1":f.replace(/fips-(dkr-|prod-)?|-fips/,""):f,"getRealRegion"),so=E1((f)=>{let{region:h,useFipsEndpoint:w}=f;if(!h)throw new Error("Region is missing");return Object.assign(f,{region:async()=>{if(typeof h==="string")return BQ(h);let s=await h();return BQ(s)},useFipsEndpoint:async()=>{let s=typeof h==="string"?h:await h();if(MQ(s))return!0;return typeof w!=="function"?Promise.resolve(!!w):w()}})},"resolveRegionConfig"),AQ=E1((f=[],{useFipsEndpoint:h,useDualstackEndpoint:w})=>f.find(({tags:s})=>h===s.includes("fips")&&w===s.includes("dualstack"))?.hostname,"getHostnameFromVariants"),$o=E1((f,{regionHostname:h,partitionHostname:w})=>h?h:w?w.replace("{region}",f):void 0,"getResolvedHostname"),ro=E1((f,{partitionHash:h})=>Object.keys(h||{}).find((w)=>h[w].regions.includes(f))??"aws","getResolvedPartition"),Eo=E1((f,{signingRegion:h,regionRegex:w,useFipsEndpoint:s})=>{if(h)return h;else if(s){let $=w.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\."),r=f.match($);if(r)return r[0].slice(1,-1)}},"getResolvedSigningRegion"),To=E1((f,{useFipsEndpoint:h=!1,useDualstackEndpoint:w=!1,signingService:s,regionHash:$,partitionHash:r})=>{let E=ro(f,{partitionHash:r}),T=f in $?f:r[E]?.endpoint??f,U={useFipsEndpoint:h,useDualstackEndpoint:w},F=AQ($[T]?.variants,U),C=AQ(r[E]?.variants,U),I=$o(T,{regionHostname:F,partitionHostname:C});if(I===void 0)throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:T,useFipsEndpoint:h,useDualstackEndpoint:w}}`);let B=Eo(I,{signingRegion:$[T]?.signingRegion,regionRegex:r[E].regionRegex,useFipsEndpoint:h});return{partition:E,signingService:s,hostname:I,...B&&{signingRegion:B},...$[T]?.signingService&&{signingService:$[T].signingService}}},"getRegionInfo")});var K3=H((Oz0,PQ)=>{var{defineProperty:uE,getOwnPropertyDescriptor:Uo,getOwnPropertyNames:Fo}=Object,Co=Object.prototype.hasOwnProperty,ZQ=(f,h)=>uE(f,"name",{value:h,configurable:!0}),Io=(f,h)=>{for(var w in h)uE(f,w,{get:h[w],enumerable:!0})},Lo=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Fo(h))if(!Co.call(f,$)&&$!==w)uE(f,$,{get:()=>h[$],enumerable:!(s=Uo(h,$))||s.enumerable})}return f},Bo=(f)=>Lo(uE({},"__esModule",{value:!0}),f),JQ={};Io(JQ,{contentLengthMiddleware:()=>Q3,contentLengthMiddlewareOptions:()=>VQ,getContentLengthPlugin:()=>Go});PQ.exports=Bo(JQ);var Ao=t0(),KQ="content-length";function Q3(f){return(h)=>async(w)=>{let s=w.request;if(Ao.HttpRequest.isInstance(s)){let{body:$,headers:r}=s;if($&&Object.keys(r).map((E)=>E.toLowerCase()).indexOf(KQ)===-1)try{let E=f($);s.headers={...s.headers,[KQ]:String(E)}}catch(E){}}return h({...w,request:s})}}ZQ(Q3,"contentLengthMiddleware");var VQ={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},Go=ZQ((f)=>({applyToStack:(h)=>{h.add(Q3(f.bodyLengthChecker),VQ)}}),"getContentLengthPlugin")});var Zs=H((HQ)=>{Object.defineProperty(HQ,"__esModule",{value:!0});HQ.getHomeDir=void 0;var Wo=B0("node:os"),zo=B0("node:path"),Z3={},Ro=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},So=()=>{let{HOME:f,USERPROFILE:h,HOMEPATH:w,HOMEDRIVE:s=`C:${zo.sep}`}=process.env;if(f)return f;if(h)return h;if(w)return`${s}${w}`;let $=Ro();if(!Z3[$])Z3[$]=Wo.homedir();return Z3[$]};HQ.getHomeDir=So});var J3=H((DQ)=>{Object.defineProperty(DQ,"__esModule",{value:!0});DQ.getSSOTokenFilepath=void 0;var Xo=B0("node:crypto"),Yo=B0("node:path"),Mo=Zs(),Qo=(f)=>{let w=Xo.createHash("sha1").update(f).digest("hex");return Yo.join(Mo.getHomeDir(),".aws","sso","cache",`${w}.json`)};DQ.getSSOTokenFilepath=Qo});var jQ=H((kQ)=>{Object.defineProperty(kQ,"__esModule",{value:!0});kQ.getSSOTokenFromFile=void 0;var Ko=B0("node:fs"),Zo=J3(),{readFile:Jo}=Ko.promises,Vo=async(f)=>{let h=Zo.getSSOTokenFilepath(f),w=await Jo(h,"utf8");return JSON.parse(w)};kQ.getSSOTokenFromFile=Vo});var P3=H((OQ)=>{Object.defineProperty(OQ,"__esModule",{value:!0});OQ.slurpFile=void 0;var Po=B0("node:fs"),{readFile:Ho}=Po.promises,V3={},No=(f,h)=>{if(!V3[f]||(h===null||h===void 0?void 0:h.ignoreCache))V3[f]=Ho(f,"utf8");return V3[f]};OQ.slurpFile=No});var q3=H((dz0,Cr)=>{var{defineProperty:h5,getOwnPropertyDescriptor:Do,getOwnPropertyNames:qo}=Object,ko=Object.prototype.hasOwnProperty,lf=(f,h)=>h5(f,"name",{value:h,configurable:!0}),yo=(f,h)=>{for(var w in h)h5(f,w,{get:h[w],enumerable:!0})},H3=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of qo(h))if(!ko.call(f,$)&&$!==w)h5(f,$,{get:()=>h[$],enumerable:!(s=Do(h,$))||s.enumerable})}return f},D3=(f,h,w)=>(H3(f,h,"default"),w&&H3(w,h,"default")),jo=(f)=>H3(h5({},"__esModule",{value:!0}),f),Fr={};yo(Fr,{CONFIG_PREFIX_SEPARATOR:()=>Cw,DEFAULT_PROFILE:()=>dQ,ENV_PROFILE:()=>mQ,getProfileName:()=>Oo,loadSharedConfigFiles:()=>cQ,loadSsoSessionData:()=>oo,parseKnownFiles:()=>uo});Cr.exports=jo(Fr);D3(Fr,Zs(),Cr.exports);var mQ="AWS_PROFILE",dQ="default",Oo=lf((f)=>f.profile||process.env[mQ]||dQ,"getProfileName");D3(Fr,J3(),Cr.exports);D3(Fr,jQ(),Cr.exports);var tE=nh(),lo=lf((f)=>Object.entries(f).filter(([h])=>{let w=h.indexOf(Cw);if(w===-1)return!1;return Object.values(tE.IniSectionType).includes(h.substring(0,w))}).reduce((h,[w,s])=>{let $=w.indexOf(Cw),r=w.substring(0,$)===tE.IniSectionType.PROFILE?w.substring($+1):w;return h[r]=s,h},{...f.default&&{default:f.default}}),"getConfigData"),f5=B0("node:path"),vo=Zs(),bo="AWS_CONFIG_FILE",iQ=lf(()=>process.env[bo]||f5.join(vo.getHomeDir(),".aws","config"),"getConfigFilepath"),mo=Zs(),io="AWS_SHARED_CREDENTIALS_FILE",co=lf(()=>process.env[io]||f5.join(mo.getHomeDir(),".aws","credentials"),"getCredentialsFilepath"),go=Zs(),xo=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,_o=["__proto__","profile __proto__"],N3=lf((f)=>{let h={},w,s;for(let $ of f.split(/\r?\n/)){let r=$.split(/(^|\s)[;#]/)[0].trim();if(r[0]==="["&&r[r.length-1]==="]"){w=void 0,s=void 0;let T=r.substring(1,r.length-1),U=xo.exec(T);if(U){let[,F,,C]=U;if(Object.values(tE.IniSectionType).includes(F))w=[F,C].join(Cw)}else w=T;if(_o.includes(T))throw new Error(`Found invalid profile name "${T}"`)}else if(w){let T=r.indexOf("=");if(![0,-1].includes(T)){let[U,F]=[r.substring(0,T).trim(),r.substring(T+1).trim()];if(F==="")s=U;else{if(s&&$.trimStart()===$)s=void 0;h[w]=h[w]||{};let C=s?[s,U].join(Cw):U;h[w][C]=F}}}}return h},"parseIni"),vQ=P3(),bQ=lf(()=>({}),"swallowError"),Cw=".",cQ=lf(async(f={})=>{let{filepath:h=co(),configFilepath:w=iQ()}=f,s=go.getHomeDir(),$="~/",r=h;if(h.startsWith("~/"))r=f5.join(s,h.slice(2));let E=w;if(w.startsWith("~/"))E=f5.join(s,w.slice(2));let T=await Promise.all([vQ.slurpFile(E,{ignoreCache:f.ignoreCache}).then(N3).then(lo).catch(bQ),vQ.slurpFile(r,{ignoreCache:f.ignoreCache}).then(N3).catch(bQ)]);return{configFile:T[0],credentialsFile:T[1]}},"loadSharedConfigFiles"),no=lf((f)=>Object.entries(f).filter(([h])=>h.startsWith(tE.IniSectionType.SSO_SESSION+Cw)).reduce((h,[w,s])=>({...h,[w.substring(w.indexOf(Cw)+1)]:s}),{}),"getSsoSessionData"),eo=P3(),ao=lf(()=>({}),"swallowError"),oo=lf(async(f={})=>eo.slurpFile(f.configFilepath??iQ()).then(N3).then(no).catch(ao),"loadSsoSessionData"),po=lf((...f)=>{let h={};for(let w of f)for(let[s,$]of Object.entries(w))if(h[s]!==void 0)Object.assign(h[s],$);else h[s]=$;return h},"mergeConfigFiles"),uo=lf(async(f)=>{let h=await cQ(f);return po(h.configFile,h.credentialsFile)},"parseKnownFiles")});var Vs=H((iz0,_Q)=>{var{defineProperty:w5,getOwnPropertyDescriptor:to,getOwnPropertyNames:fp}=Object,hp=Object.prototype.hasOwnProperty,Js=(f,h)=>w5(f,"name",{value:h,configurable:!0}),wp=(f,h)=>{for(var w in h)w5(f,w,{get:h[w],enumerable:!0})},sp=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of fp(h))if(!hp.call(f,$)&&$!==w)w5(f,$,{get:()=>h[$],enumerable:!(s=to(h,$))||s.enumerable})}return f},$p=(f)=>sp(w5({},"__esModule",{value:!0}),f),xQ={};wp(xQ,{loadConfig:()=>Fp});_Q.exports=$p(xQ);var Ir=O$();function k3(f){try{let h=new Set(Array.from(f.match(/([A-Z_]){3,}/g)??[]));return h.delete("CONFIG"),h.delete("CONFIG_PREFIX_SEPARATOR"),h.delete("ENV"),[...h].join(", ")}catch(h){return f}}Js(k3,"getSelectorName");var rp=Js((f,h)=>async()=>{try{let w=f(process.env);if(w===void 0)throw new Error;return w}catch(w){throw new Ir.CredentialsProviderError(w.message||`Not found in ENV: ${k3(f.toString())}`,{logger:h})}},"fromEnv"),gQ=q3(),Ep=Js((f,{preferredFile:h="config",...w}={})=>async()=>{let s=gQ.getProfileName(w),{configFile:$,credentialsFile:r}=await gQ.loadSharedConfigFiles(w),E=r[s]||{},T=$[s]||{},U=h==="config"?{...E,...T}:{...T,...E};try{let C=f(U,h==="config"?$:r);if(C===void 0)throw new Error;return C}catch(F){throw new Ir.CredentialsProviderError(F.message||`Not found in config files w/ profile [${s}]: ${k3(f.toString())}`,{logger:w.logger})}},"fromSharedConfigFiles"),Tp=Js((f)=>typeof f==="function","isFunction"),Up=Js((f)=>Tp(f)?async()=>await f():Ir.fromStatic(f),"fromStatic"),Fp=Js(({environmentVariableSelector:f,configFileSelector:h,default:w},s={})=>Ir.memoize(Ir.chain(rp(f),Ep(h,s),Up(w))),"loadConfig")});var uQ=H((oQ)=>{Object.defineProperty(oQ,"__esModule",{value:!0});oQ.getEndpointUrlConfig=void 0;var nQ=q3(),eQ="AWS_ENDPOINT_URL",aQ="endpoint_url",Cp=(f)=>({environmentVariableSelector:(h)=>{let w=f.split(" ").map((r)=>r.toUpperCase()),s=h[[eQ,...w].join("_")];if(s)return s;let $=h[eQ];if($)return $;return},configFileSelector:(h,w)=>{if(w&&h.services){let $=w[["services",h.services].join(nQ.CONFIG_PREFIX_SEPARATOR)];if($){let r=f.split(" ").map((T)=>T.toLowerCase()),E=$[[r.join("_"),aQ].join(nQ.CONFIG_PREFIX_SEPARATOR)];if(E)return E}}let s=h[aQ];if(s)return s;return},default:void 0});oQ.getEndpointUrlConfig=Cp});var y3=H((tQ)=>{Object.defineProperty(tQ,"__esModule",{value:!0});tQ.getEndpointFromConfig=void 0;var Ip=Vs(),Lp=uQ(),Bp=async(f)=>Ip.loadConfig(Lp.getEndpointUrlConfig(f!==null&&f!==void 0?f:""))();tQ.getEndpointFromConfig=Bp});var $K=H((xz0,sK)=>{var{defineProperty:s5,getOwnPropertyDescriptor:Ap,getOwnPropertyNames:Gp}=Object,Wp=Object.prototype.hasOwnProperty,zp=(f,h)=>s5(f,"name",{value:h,configurable:!0}),Rp=(f,h)=>{for(var w in h)s5(f,w,{get:h[w],enumerable:!0})},Sp=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Gp(h))if(!Wp.call(f,$)&&$!==w)s5(f,$,{get:()=>h[$],enumerable:!(s=Ap(h,$))||s.enumerable})}return f},Xp=(f)=>Sp(s5({},"__esModule",{value:!0}),f),hK={};Rp(hK,{parseQueryString:()=>wK});sK.exports=Xp(hK);function wK(f){let h={};if(f=f.replace(/^\?/,""),f)for(let w of f.split("&")){let[s,$=null]=w.split("=");if(s=decodeURIComponent(s),$)$=decodeURIComponent($);if(!(s in h))h[s]=$;else if(Array.isArray(h[s]))h[s].push($);else h[s]=[h[s],$]}return h}zp(wK,"parseQueryString")});var Lr=H((_z0,TK)=>{var{defineProperty:$5,getOwnPropertyDescriptor:Yp,getOwnPropertyNames:Mp}=Object,Qp=Object.prototype.hasOwnProperty,Kp=(f,h)=>$5(f,"name",{value:h,configurable:!0}),Zp=(f,h)=>{for(var w in h)$5(f,w,{get:h[w],enumerable:!0})},Jp=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Mp(h))if(!Qp.call(f,$)&&$!==w)$5(f,$,{get:()=>h[$],enumerable:!(s=Yp(h,$))||s.enumerable})}return f},Vp=(f)=>Jp($5({},"__esModule",{value:!0}),f),rK={};Zp(rK,{parseUrl:()=>EK});TK.exports=Vp(rK);var Pp=$K(),EK=Kp((f)=>{if(typeof f==="string")return EK(new URL(f));let{hostname:h,pathname:w,port:s,protocol:$,search:r}=f,E;if(r)E=Pp.parseQueryString(r);return{hostname:h,port:s?parseInt(s):void 0,protocol:$,path:w,query:E}},"parseUrl")});var Ps=H((nz0,AK)=>{var{defineProperty:E5,getOwnPropertyDescriptor:Hp,getOwnPropertyNames:Np}=Object,Dp=Object.prototype.hasOwnProperty,T1=(f,h)=>E5(f,"name",{value:h,configurable:!0}),qp=(f,h)=>{for(var w in h)E5(f,w,{get:h[w],enumerable:!0})},kp=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Np(h))if(!Dp.call(f,$)&&$!==w)E5(f,$,{get:()=>h[$],enumerable:!(s=Hp(h,$))||s.enumerable})}return f},yp=(f)=>kp(E5({},"__esModule",{value:!0}),f),FK={};qp(FK,{endpointMiddleware:()=>LK,endpointMiddlewareOptions:()=>BK,getEndpointFromInstructions:()=>CK,getEndpointPlugin:()=>xp,resolveEndpointConfig:()=>np,resolveParams:()=>IK,toEndpointV1:()=>j3});AK.exports=yp(FK);var jp=T1(async(f)=>{let h=f?.Bucket||"";if(typeof f.Bucket==="string")f.Bucket=h.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(mp(h)){if(f.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!bp(h)||h.indexOf(".")!==-1&&!String(f.Endpoint).startsWith("http:")||h.toLowerCase()!==h||h.length<3)f.ForcePathStyle=!0;if(f.DisableMultiRegionAccessPoints)f.disableMultiRegionAccessPoints=!0,f.DisableMRAP=!0;return f},"resolveParamsForS3"),Op=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,lp=/(\d+\.){3}\d+/,vp=/\.\./,bp=T1((f)=>Op.test(f)&&!lp.test(f)&&!vp.test(f),"isDnsCompatibleBucketName"),mp=T1((f)=>{let[h,w,s,,,$]=f.split(":"),r=h==="arn"&&f.split(":").length>=6,E=Boolean(r&&w&&s&&$);if(r&&!E)throw new Error(`Invalid ARN: ${f} was an invalid ARN.`);return E},"isArnBucketName"),dp=T1((f,h,w)=>{let s=T1(async()=>{let $=w[f]??w[h];if(typeof $==="function")return $();return $},"configProvider");if(f==="credentialScope"||h==="CredentialScope")return async()=>{let $=typeof w.credentials==="function"?await w.credentials():w.credentials;return $?.credentialScope??$?.CredentialScope};if(f==="accountId"||h==="AccountId")return async()=>{let $=typeof w.credentials==="function"?await w.credentials():w.credentials;return $?.accountId??$?.AccountId};if(f==="endpoint"||h==="endpoint")return async()=>{let $=await s();if($&&typeof $==="object"){if("url"in $)return $.url.href;if("hostname"in $){let{protocol:r,hostname:E,port:T,path:U}=$;return`${r}//${E}${T?":"+T:""}${U}`}}return $};return s},"createConfigValueProvider"),ip=y3(),UK=Lr(),j3=T1((f)=>{if(typeof f==="object"){if("url"in f)return UK.parseUrl(f.url);return f}return UK.parseUrl(f)},"toEndpointV1"),CK=T1(async(f,h,w,s)=>{if(!w.endpoint){let E;if(w.serviceConfiguredEndpoint)E=await w.serviceConfiguredEndpoint();else E=await ip.getEndpointFromConfig(w.serviceId);if(E)w.endpoint=()=>Promise.resolve(j3(E))}let $=await IK(f,h,w);if(typeof w.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return w.endpointProvider($,s)},"getEndpointFromInstructions"),IK=T1(async(f,h,w)=>{let s={},$=h?.getEndpointParameterInstructions?.()||{};for(let[r,E]of Object.entries($))switch(E.type){case"staticContextParams":s[r]=E.value;break;case"contextParams":s[r]=f[E.name];break;case"clientContextParams":case"builtInParams":s[r]=await dp(E.name,r,w)();break;case"operationContextParams":s[r]=E.get(f);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(E))}if(Object.keys($).length===0)Object.assign(s,w);if(String(w.serviceId).toLowerCase()==="s3")await jp(s);return s},"resolveParams"),cp=m0(),r5=Lh(),LK=T1(({config:f,instructions:h})=>{return(w,s)=>async($)=>{if(f.endpoint)cp.setFeature(s,"ENDPOINT_OVERRIDE","N");let r=await CK($.input,{getEndpointParameterInstructions(){return h}},{...f},s);s.endpointV2=r,s.authSchemes=r.properties?.authSchemes;let E=s.authSchemes?.[0];if(E){s.signing_region=E.signingRegion,s.signing_service=E.signingName;let U=r5.getSmithyContext(s)?.selectedHttpAuthScheme?.httpAuthOption;if(U)U.signingProperties=Object.assign(U.signingProperties||{},{signing_region:E.signingRegion,signingRegion:E.signingRegion,signing_service:E.signingName,signingName:E.signingName,signingRegionSet:E.signingRegionSet},E.properties)}return w({...$})}},"endpointMiddleware"),gp=Ow(),BK={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:gp.serializerMiddlewareOption.name},xp=T1((f,h)=>({applyToStack:(w)=>{w.addRelativeTo(LK({config:f,instructions:h}),BK)}}),"getEndpointPlugin"),_p=y3(),np=T1((f)=>{let h=f.tls??!0,{endpoint:w,useDualstackEndpoint:s,useFipsEndpoint:$}=f,r=w!=null?async()=>j3(await r5.normalizeProvider(w)()):void 0,T=Object.assign(f,{endpoint:r,tls:h,isCustomEndpoint:!!w,useDualstackEndpoint:r5.normalizeProvider(s??!1),useFipsEndpoint:r5.normalizeProvider($??!1)}),U=void 0;return T.serviceConfiguredEndpoint=async()=>{if(f.serviceId&&!U)U=_p.getEndpointFromConfig(f.serviceId);return U},T},"resolveEndpointConfig")});var l3=H((ez0,zK)=>{var{defineProperty:T5,getOwnPropertyDescriptor:ep,getOwnPropertyNames:ap}=Object,op=Object.prototype.hasOwnProperty,Hs=(f,h)=>T5(f,"name",{value:h,configurable:!0}),pp=(f,h)=>{for(var w in h)T5(f,w,{get:h[w],enumerable:!0})},up=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of ap(h))if(!op.call(f,$)&&$!==w)T5(f,$,{get:()=>h[$],enumerable:!(s=ep(h,$))||s.enumerable})}return f},tp=(f)=>up(T5({},"__esModule",{value:!0}),f),GK={};pp(GK,{isClockSkewCorrectedError:()=>WK,isClockSkewError:()=>Eu,isRetryableByTrait:()=>ru,isServerError:()=>Uu,isThrottlingError:()=>Tu,isTransientError:()=>O3});zK.exports=tp(GK);var fu=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],hu=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],wu=["TimeoutError","RequestTimeout","RequestTimeoutException"],su=[500,502,503,504],$u=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],ru=Hs((f)=>f.$retryable!==void 0,"isRetryableByTrait"),Eu=Hs((f)=>fu.includes(f.name),"isClockSkewError"),WK=Hs((f)=>f.$metadata?.clockSkewCorrected,"isClockSkewCorrectedError"),Tu=Hs((f)=>f.$metadata?.httpStatusCode===429||hu.includes(f.name)||f.$retryable?.throttling==!0,"isThrottlingError"),O3=Hs((f,h=0)=>WK(f)||wu.includes(f.name)||$u.includes(f?.code||"")||su.includes(f.$metadata?.httpStatusCode||0)||f.cause!==void 0&&h<=10&&O3(f.cause,h+1),"isTransientError"),Uu=Hs((f)=>{if(f.$metadata?.httpStatusCode!==void 0){let h=f.$metadata.httpStatusCode;if(500<=h&&h<=599&&!O3(f))return!0;return!1}return!1},"isServerError")});var F5=H((az0,JK)=>{var{defineProperty:U5,getOwnPropertyDescriptor:Fu,getOwnPropertyNames:Cu}=Object,Iu=Object.prototype.hasOwnProperty,U1=(f,h)=>U5(f,"name",{value:h,configurable:!0}),Lu=(f,h)=>{for(var w in h)U5(f,w,{get:h[w],enumerable:!0})},Bu=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Cu(h))if(!Iu.call(f,$)&&$!==w)U5(f,$,{get:()=>h[$],enumerable:!(s=Fu(h,$))||s.enumerable})}return f},Au=(f)=>Bu(U5({},"__esModule",{value:!0}),f),SK={};Lu(SK,{AdaptiveRetryStrategy:()=>Xu,ConfiguredRetryStrategy:()=>Yu,DEFAULT_MAX_ATTEMPTS:()=>v3,DEFAULT_RETRY_DELAY_BASE:()=>Br,DEFAULT_RETRY_MODE:()=>Gu,DefaultRateLimiter:()=>YK,INITIAL_RETRY_TOKENS:()=>b3,INVOCATION_ID_HEADER:()=>zu,MAXIMUM_RETRY_DELAY:()=>m3,NO_RETRY_INCREMENT:()=>ZK,REQUEST_HEADER:()=>Ru,RETRY_COST:()=>QK,RETRY_MODES:()=>XK,StandardRetryStrategy:()=>d3,THROTTLING_RETRY_DELAY_BASE:()=>MK,TIMEOUT_RETRY_COST:()=>KK});JK.exports=Au(SK);var XK=((f)=>{return f.STANDARD="standard",f.ADAPTIVE="adaptive",f})(XK||{}),v3=3,Gu="standard",Wu=l3(),YK=class f{constructor(h){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=h?.beta??0.7,this.minCapacity=h?.minCapacity??1,this.minFillRate=h?.minFillRate??0.5,this.scaleConstant=h?.scaleConstant??0.4,this.smooth=h?.smooth??0.8;let w=this.getCurrentTimeInSeconds();this.lastThrottleTime=w,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}static{U1(this,"DefaultRateLimiter")}static{this.setTimeoutFn=setTimeout}getCurrentTimeInSeconds(){return Date.now()/1000}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(h){if(!this.enabled)return;if(this.refillTokenBucket(),h>this.currentCapacity){let w=(h-this.currentCapacity)/this.fillRate*1000;await new Promise((s)=>f.setTimeoutFn(s,w))}this.currentCapacity=this.currentCapacity-h}refillTokenBucket(){let h=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=h;return}let w=(h-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+w),this.lastTimestamp=h}updateClientSendingRate(h){let w;if(this.updateMeasuredRate(),Wu.isThrottlingError(h)){let $=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=$,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),w=this.cubicThrottle($),this.enableTokenBucket()}else this.calculateTimeWindow(),w=this.cubicSuccess(this.getCurrentTimeInSeconds());let s=Math.min(w,2*this.measuredTxRate);this.updateTokenBucketRate(s)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(h){return this.getPrecise(h*this.beta)}cubicSuccess(h){return this.getPrecise(this.scaleConstant*Math.pow(h-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(h){this.refillTokenBucket(),this.fillRate=Math.max(h,this.minFillRate),this.maxCapacity=Math.max(h,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){let h=this.getCurrentTimeInSeconds(),w=Math.floor(h*2)/2;if(this.requestCount++,w>this.lastTxRateBucket){let s=this.requestCount/(w-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(s*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=w}}getPrecise(h){return parseFloat(h.toFixed(8))}},Br=100,m3=20000,MK=500,b3=500,QK=5,KK=10,ZK=1,zu="amz-sdk-invocation-id",Ru="amz-sdk-request",Su=U1(()=>{let f=Br;return{computeNextBackoffDelay:U1((s)=>{return Math.floor(Math.min(m3,Math.random()*2**s*f))},"computeNextBackoffDelay"),setDelayBase:U1((s)=>{f=s},"setDelayBase")}},"getDefaultRetryBackoffStrategy"),RK=U1(({retryDelay:f,retryCount:h,retryCost:w})=>{return{getRetryCount:U1(()=>h,"getRetryCount"),getRetryDelay:U1(()=>Math.min(m3,f),"getRetryDelay"),getRetryCost:U1(()=>w,"getRetryCost")}},"createDefaultRetryToken"),d3=class{constructor(f){this.maxAttempts=f,this.mode="standard",this.capacity=b3,this.retryBackoffStrategy=Su(),this.maxAttemptsProvider=typeof f==="function"?f:async()=>f}static{U1(this,"StandardRetryStrategy")}async acquireInitialRetryToken(f){return RK({retryDelay:Br,retryCount:0})}async refreshRetryTokenForRetry(f,h){let w=await this.getMaxAttempts();if(this.shouldRetry(f,h,w)){let s=h.errorType;this.retryBackoffStrategy.setDelayBase(s==="THROTTLING"?MK:Br);let $=this.retryBackoffStrategy.computeNextBackoffDelay(f.getRetryCount()),r=h.retryAfterHint?Math.max(h.retryAfterHint.getTime()-Date.now()||0,$):$,E=this.getCapacityCost(s);return this.capacity-=E,RK({retryDelay:r,retryCount:f.getRetryCount()+1,retryCost:E})}throw new Error("No retry token available")}recordSuccess(f){this.capacity=Math.max(b3,this.capacity+(f.getRetryCost()??ZK))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(f){return console.warn(`Max attempts provider could not resolve. Using default of ${v3}`),v3}}shouldRetry(f,h,w){return f.getRetryCount()+1<w&&this.capacity>=this.getCapacityCost(h.errorType)&&this.isRetryableError(h.errorType)}getCapacityCost(f){return f==="TRANSIENT"?KK:QK}isRetryableError(f){return f==="THROTTLING"||f==="TRANSIENT"}},Xu=class{constructor(f,h){this.maxAttemptsProvider=f,this.mode="adaptive";let{rateLimiter:w}=h??{};this.rateLimiter=w??new YK,this.standardRetryStrategy=new d3(f)}static{U1(this,"AdaptiveRetryStrategy")}async acquireInitialRetryToken(f){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(f)}async refreshRetryTokenForRetry(f,h){return this.rateLimiter.updateClientSendingRate(h),this.standardRetryStrategy.refreshRetryTokenForRetry(f,h)}recordSuccess(f){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(f)}},Yu=class extends d3{static{U1(this,"ConfiguredRetryStrategy")}constructor(f,h=Br){super(typeof f==="function"?f:async()=>f);if(typeof h==="number")this.computeNextBackoffDelay=()=>h;else this.computeNextBackoffDelay=h}async refreshRetryTokenForRetry(f,h){let w=await super.refreshRetryTokenForRetry(f,h);return w.getRetryDelay=()=>this.computeNextBackoffDelay(w.getRetryCount()),w}}});var HK=H((VK)=>{Object.defineProperty(VK,"__esModule",{value:!0});VK.isStreamingPayload=void 0;var Mu=B0("node:stream"),Qu=(f)=>(f===null||f===void 0?void 0:f.body)instanceof Mu.Readable||typeof ReadableStream!=="undefined"&&(f===null||f===void 0?void 0:f.body)instanceof ReadableStream;VK.isStreamingPayload=Qu});var Ar=H((f70,gK)=>{var{defineProperty:C5,getOwnPropertyDescriptor:Ku,getOwnPropertyNames:Zu}=Object,Ju=Object.prototype.hasOwnProperty,x0=(f,h)=>C5(f,"name",{value:h,configurable:!0}),Vu=(f,h)=>{for(var w in h)C5(f,w,{get:h[w],enumerable:!0})},Pu=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Zu(h))if(!Ju.call(f,$)&&$!==w)C5(f,$,{get:()=>h[$],enumerable:!(s=Ku(h,$))||s.enumerable})}return f},Hu=(f)=>Pu(C5({},"__esModule",{value:!0}),f),DK={};Vu(DK,{AdaptiveRetryStrategy:()=>qu,CONFIG_MAX_ATTEMPTS:()=>c3,CONFIG_RETRY_MODE:()=>vK,ENV_MAX_ATTEMPTS:()=>i3,ENV_RETRY_MODE:()=>lK,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>ku,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>ju,StandardRetryStrategy:()=>OK,defaultDelayDecider:()=>kK,defaultRetryDecider:()=>yK,getOmitRetryHeadersPlugin:()=>Ou,getRetryAfterHint:()=>cK,getRetryPlugin:()=>iu,omitRetryHeadersMiddleware:()=>bK,omitRetryHeadersMiddlewareOptions:()=>mK,resolveRetryConfig:()=>yu,retryMiddleware:()=>dK,retryMiddlewareOptions:()=>iK});gK.exports=Hu(DK);var Ns=t0(),qK=qF(),l0=F5(),Nu=x0((f,h)=>{let w=f,s=h?.noRetryIncrement??l0.NO_RETRY_INCREMENT,$=h?.retryCost??l0.RETRY_COST,r=h?.timeoutRetryCost??l0.TIMEOUT_RETRY_COST,E=f,T=x0((I)=>I.name==="TimeoutError"?r:$,"getCapacityAmount"),U=x0((I)=>T(I)<=E,"hasRetryTokens");return Object.freeze({hasRetryTokens:U,retrieveRetryTokens:x0((I)=>{if(!U(I))throw new Error("No retry token available");let B=T(I);return E-=B,B},"retrieveRetryTokens"),releaseRetryTokens:x0((I)=>{E+=I??s,E=Math.min(E,w)},"releaseRetryTokens")})},"getDefaultRetryQuota"),kK=x0((f,h)=>Math.floor(Math.min(l0.MAXIMUM_RETRY_DELAY,Math.random()*2**h*f)),"defaultDelayDecider"),yh=l3(),yK=x0((f)=>{if(!f)return!1;return yh.isRetryableByTrait(f)||yh.isClockSkewError(f)||yh.isThrottlingError(f)||yh.isTransientError(f)},"defaultRetryDecider"),jK=x0((f)=>{if(f instanceof Error)return f;if(f instanceof Object)return Object.assign(new Error,f);if(typeof f==="string")return new Error(f);return new Error(`AWS SDK error wrapper for ${f}`)},"asSdkError"),OK=class{constructor(f,h){this.maxAttemptsProvider=f,this.mode=l0.RETRY_MODES.STANDARD,this.retryDecider=h?.retryDecider??yK,this.delayDecider=h?.delayDecider??kK,this.retryQuota=h?.retryQuota??Nu(l0.INITIAL_RETRY_TOKENS)}static{x0(this,"StandardRetryStrategy")}shouldRetry(f,h,w){return h<w&&this.retryDecider(f)&&this.retryQuota.hasRetryTokens(f)}async getMaxAttempts(){let f;try{f=await this.maxAttemptsProvider()}catch(h){f=l0.DEFAULT_MAX_ATTEMPTS}return f}async retry(f,h,w){let s,$=0,r=0,E=await this.getMaxAttempts(),{request:T}=h;if(Ns.HttpRequest.isInstance(T))T.headers[l0.INVOCATION_ID_HEADER]=qK.v4();while(!0)try{if(Ns.HttpRequest.isInstance(T))T.headers[l0.REQUEST_HEADER]=`attempt=${$+1}; max=${E}`;if(w?.beforeRequest)await w.beforeRequest();let{response:U,output:F}=await f(h);if(w?.afterRequest)w.afterRequest(U);return this.retryQuota.releaseRetryTokens(s),F.$metadata.attempts=$+1,F.$metadata.totalRetryDelay=r,{response:U,output:F}}catch(U){let F=jK(U);if($++,this.shouldRetry(F,$,E)){s=this.retryQuota.retrieveRetryTokens(F);let C=this.delayDecider(yh.isThrottlingError(F)?l0.THROTTLING_RETRY_DELAY_BASE:l0.DEFAULT_RETRY_DELAY_BASE,$),I=Du(F.$response),B=Math.max(I||0,C);r+=B,await new Promise((G)=>setTimeout(G,B));continue}if(!F.$metadata)F.$metadata={};throw F.$metadata.attempts=$,F.$metadata.totalRetryDelay=r,F}}},Du=x0((f)=>{if(!Ns.HttpResponse.isInstance(f))return;let h=Object.keys(f.headers).find((r)=>r.toLowerCase()==="retry-after");if(!h)return;let w=f.headers[h],s=Number(w);if(!Number.isNaN(s))return s*1000;return new Date(w).getTime()-Date.now()},"getDelayFromRetryAfterHeader"),qu=class extends OK{static{x0(this,"AdaptiveRetryStrategy")}constructor(f,h){let{rateLimiter:w,...s}=h??{};super(f,s);this.rateLimiter=w??new l0.DefaultRateLimiter,this.mode=l0.RETRY_MODES.ADAPTIVE}async retry(f,h){return super.retry(f,h,{beforeRequest:async()=>{return this.rateLimiter.getSendToken()},afterRequest:(w)=>{this.rateLimiter.updateClientSendingRate(w)}})}},NK=Lh(),i3="AWS_MAX_ATTEMPTS",c3="max_attempts",ku={environmentVariableSelector:(f)=>{let h=f[i3];if(!h)return;let w=parseInt(h);if(Number.isNaN(w))throw new Error(`Environment variable ${i3} mast be a number, got "${h}"`);return w},configFileSelector:(f)=>{let h=f[c3];if(!h)return;let w=parseInt(h);if(Number.isNaN(w))throw new Error(`Shared config file entry ${c3} mast be a number, got "${h}"`);return w},default:l0.DEFAULT_MAX_ATTEMPTS},yu=x0((f)=>{let{retryStrategy:h,retryMode:w,maxAttempts:s}=f,$=NK.normalizeProvider(s??l0.DEFAULT_MAX_ATTEMPTS);return Object.assign(f,{maxAttempts:$,retryStrategy:async()=>{if(h)return h;if(await NK.normalizeProvider(w)()===l0.RETRY_MODES.ADAPTIVE)return new l0.AdaptiveRetryStrategy($);return new l0.StandardRetryStrategy($)}})},"resolveRetryConfig"),lK="AWS_RETRY_MODE",vK="retry_mode",ju={environmentVariableSelector:(f)=>f[lK],configFileSelector:(f)=>f[vK],default:l0.DEFAULT_RETRY_MODE},bK=x0(()=>(f)=>async(h)=>{let{request:w}=h;if(Ns.HttpRequest.isInstance(w))delete w.headers[l0.INVOCATION_ID_HEADER],delete w.headers[l0.REQUEST_HEADER];return f(h)},"omitRetryHeadersMiddleware"),mK={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},Ou=x0((f)=>({applyToStack:(h)=>{h.addRelativeTo(bK(),mK)}}),"getOmitRetryHeadersPlugin"),lu=J0(),vu=HK(),dK=x0((f)=>(h,w)=>async(s)=>{let $=await f.retryStrategy(),r=await f.maxAttempts();if(bu($)){$=$;let E=await $.acquireInitialRetryToken(w.partition_id),T=new Error,U=0,F=0,{request:C}=s,I=Ns.HttpRequest.isInstance(C);if(I)C.headers[l0.INVOCATION_ID_HEADER]=qK.v4();while(!0)try{if(I)C.headers[l0.REQUEST_HEADER]=`attempt=${U+1}; max=${r}`;let{response:B,output:G}=await h(s);return $.recordSuccess(E),G.$metadata.attempts=U+1,G.$metadata.totalRetryDelay=F,{response:B,output:G}}catch(B){let G=mu(B);if(T=jK(B),I&&vu.isStreamingPayload(C))throw(w.logger instanceof lu.NoOpLogger?console:w.logger)?.warn("An error was encountered in a non-retryable streaming request."),T;try{E=await $.refreshRetryTokenForRetry(E,G)}catch(Q){if(!T.$metadata)T.$metadata={};throw T.$metadata.attempts=U+1,T.$metadata.totalRetryDelay=F,T}U=E.getRetryCount();let S=E.getRetryDelay();F+=S,await new Promise((Q)=>setTimeout(Q,S))}}else{if($=$,$?.mode)w.userAgent=[...w.userAgent||[],["cfg/retry-mode",$.mode]];return $.retry(h,s)}},"retryMiddleware"),bu=x0((f)=>typeof f.acquireInitialRetryToken!=="undefined"&&typeof f.refreshRetryTokenForRetry!=="undefined"&&typeof f.recordSuccess!=="undefined","isRetryStrategyV2"),mu=x0((f)=>{let h={error:f,errorType:du(f)},w=cK(f.$response);if(w)h.retryAfterHint=w;return h},"getRetryErrorInfo"),du=x0((f)=>{if(yh.isThrottlingError(f))return"THROTTLING";if(yh.isTransientError(f))return"TRANSIENT";if(yh.isServerError(f))return"SERVER_ERROR";return"CLIENT_ERROR"},"getRetryErrorType"),iK={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},iu=x0((f)=>({applyToStack:(h)=>{h.add(dK(f),iK)}}),"getRetryPlugin"),cK=x0((f)=>{if(!Ns.HttpResponse.isInstance(f))return;let h=Object.keys(f.headers).find((r)=>r.toLowerCase()==="retry-after");if(!h)return;let w=f.headers[h],s=Number(w);if(!Number.isNaN(s))return new Date(s*1000);return new Date(w)},"getRetryAfterHint")});var g3=H((_K)=>{Object.defineProperty(_K,"__esModule",{value:!0});_K.resolveHttpAuthSchemeConfig=_K.defaultSSOOIDCHttpAuthSchemeProvider=_K.defaultSSOOIDCHttpAuthSchemeParametersProvider=void 0;var cu=O0(),xK=Lh(),gu=async(f,h,w)=>{return{operation:xK.getSmithyContext(h).operation,region:await xK.normalizeProvider(f.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};_K.defaultSSOOIDCHttpAuthSchemeParametersProvider=gu;function xu(f){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:f.region},propertiesExtractor:(h,w)=>({signingProperties:{config:h,context:w}})}}function _u(f){return{schemeId:"smithy.api#noAuth"}}var nu=(f)=>{let h=[];switch(f.operation){case"CreateToken":{h.push(_u(f));break}default:h.push(xu(f))}return h};_K.defaultSSOOIDCHttpAuthSchemeProvider=nu;var eu=(f)=>{let h=cu.resolveAwsSdkSigV4Config(f);return Object.assign(h,{})};_K.resolveHttpAuthSchemeConfig=eu});var x3=H(($70,pu)=>{pu.exports={name:"@aws-sdk/nested-clients",version:"3.775.0",description:"Nested clients for AWS SDK packages.",main:"./dist-cjs/index.js",module:"./dist-es/index.js",types:"./dist-types/index.d.ts",scripts:{build:"yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline nested-clients","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",lint:"node ../../scripts/validation/submodules-linter.js --pkg nested-clients",test:"yarn g:vitest run","test:watch":"yarn g:vitest watch"},engines:{node:">=18.0.0"},author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.775.0","@aws-sdk/middleware-host-header":"3.775.0","@aws-sdk/middleware-logger":"3.775.0","@aws-sdk/middleware-recursion-detection":"3.775.0","@aws-sdk/middleware-user-agent":"3.775.0","@aws-sdk/region-config-resolver":"3.775.0","@aws-sdk/types":"3.775.0","@aws-sdk/util-endpoints":"3.775.0","@aws-sdk/util-user-agent-browser":"3.775.0","@aws-sdk/util-user-agent-node":"3.775.0","@smithy/config-resolver":"^4.1.0","@smithy/core":"^3.2.0","@smithy/fetch-http-handler":"^5.0.2","@smithy/hash-node":"^4.0.2","@smithy/invalid-dependency":"^4.0.2","@smithy/middleware-content-length":"^4.0.2","@smithy/middleware-endpoint":"^4.1.0","@smithy/middleware-retry":"^4.1.0","@smithy/middleware-serde":"^4.0.3","@smithy/middleware-stack":"^4.0.2","@smithy/node-config-provider":"^4.0.2","@smithy/node-http-handler":"^4.0.4","@smithy/protocol-http":"^5.1.0","@smithy/smithy-client":"^4.2.0","@smithy/types":"^4.2.0","@smithy/url-parser":"^4.0.2","@smithy/util-base64":"^4.0.0","@smithy/util-body-length-browser":"^4.0.0","@smithy/util-body-length-node":"^4.0.0","@smithy/util-defaults-mode-browser":"^4.0.8","@smithy/util-defaults-mode-node":"^4.0.8","@smithy/util-endpoints":"^3.0.2","@smithy/util-middleware":"^4.0.2","@smithy/util-retry":"^4.0.2","@smithy/util-utf8":"^4.0.0",tslib:"^2.6.2"},devDependencies:{concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~5.2.2"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["./sso-oidc.d.ts","./sso-oidc.js","./sts.d.ts","./sts.js","dist-*/**"],browser:{"./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"packages/nested-clients"},exports:{"./sso-oidc":{types:"./dist-types/submodules/sso-oidc/index.d.ts",module:"./dist-es/submodules/sso-oidc/index.js",node:"./dist-cjs/submodules/sso-oidc/index.js",import:"./dist-es/submodules/sso-oidc/index.js",require:"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{types:"./dist-types/submodules/sts/index.d.ts",module:"./dist-es/submodules/sts/index.js",node:"./dist-cjs/submodules/sts/index.js",import:"./dist-es/submodules/sts/index.js",require:"./dist-cjs/submodules/sts/index.js"}}}});var n3=H((r70,fZ)=>{var{defineProperty:L5,getOwnPropertyDescriptor:uu,getOwnPropertyNames:tu}=Object,ft=Object.prototype.hasOwnProperty,I5=(f,h)=>L5(f,"name",{value:h,configurable:!0}),ht=(f,h)=>{for(var w in h)L5(f,w,{get:h[w],enumerable:!0})},wt=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of tu(h))if(!ft.call(f,$)&&$!==w)L5(f,$,{get:()=>h[$],enumerable:!(s=uu(h,$))||s.enumerable})}return f},st=(f)=>wt(L5({},"__esModule",{value:!0}),f),aK={};ht(aK,{NODE_APP_ID_CONFIG_OPTIONS:()=>Ut,UA_APP_ID_ENV_NAME:()=>uK,UA_APP_ID_INI_NAME:()=>tK,createDefaultUserAgentProvider:()=>pK,crtAvailability:()=>oK,defaultUserAgent:()=>rt});fZ.exports=st(aK);var eK=B0("node:os"),_3=B0("node:process"),oK={isCrtAvailable:!1},$t=I5(()=>{if(oK.isCrtAvailable)return["md/crt-avail"];return null},"isCrtAvailable"),pK=I5(({serviceId:f,clientVersion:h})=>{return async(w)=>{let s=[["aws-sdk-js",h],["ua","2.1"],[`os/${eK.platform()}`,eK.release()],["lang/js"],["md/nodejs",`${_3.versions.node}`]],$=$t();if($)s.push($);if(f)s.push([`api/${f}`,h]);if(_3.env.AWS_EXECUTION_ENV)s.push([`exec-env/${_3.env.AWS_EXECUTION_ENV}`]);let r=await w?.userAgentAppId?.();return r?[...s,[`app/${r}`]]:[...s]}},"createDefaultUserAgentProvider"),rt=pK,Et=eE(),uK="AWS_SDK_UA_APP_ID",tK="sdk_ua_app_id",Tt="sdk-ua-app-id",Ut={environmentVariableSelector:I5((f)=>f[uK],"environmentVariableSelector"),configFileSelector:I5((f)=>f[tK]??f[Tt],"configFileSelector"),default:Et.DEFAULT_UA_APP_ID}});var o3=H((E70,$Z)=>{var{defineProperty:B5,getOwnPropertyDescriptor:Ft,getOwnPropertyNames:Ct}=Object,It=Object.prototype.hasOwnProperty,wZ=(f,h)=>B5(f,"name",{value:h,configurable:!0}),Lt=(f,h)=>{for(var w in h)B5(f,w,{get:h[w],enumerable:!0})},Bt=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Ct(h))if(!It.call(f,$)&&$!==w)B5(f,$,{get:()=>h[$],enumerable:!(s=Ft(h,$))||s.enumerable})}return f},At=(f)=>Bt(B5({},"__esModule",{value:!0}),f),sZ={};Lt(sZ,{Hash:()=>zt});$Z.exports=At(sZ);var e3=lw(),Gt=uf(),Wt=B0("node:buffer"),hZ=B0("node:crypto"),zt=class{static{wZ(this,"Hash")}constructor(f,h){this.algorithmIdentifier=f,this.secret=h,this.reset()}update(f,h){this.hash.update(Gt.toUint8Array(a3(f,h)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?hZ.createHmac(this.algorithmIdentifier,a3(this.secret)):hZ.createHash(this.algorithmIdentifier)}};function a3(f,h){if(Wt.Buffer.isBuffer(f))return f;if(typeof f==="string")return e3.fromString(f,h);if(ArrayBuffer.isView(f))return e3.fromArrayBuffer(f.buffer,f.byteOffset,f.byteLength);return e3.fromArrayBuffer(f)}wZ(a3,"castSourceData")});var p3=H((U70,TZ)=>{var{defineProperty:A5,getOwnPropertyDescriptor:Rt,getOwnPropertyNames:St}=Object,Xt=Object.prototype.hasOwnProperty,Yt=(f,h)=>A5(f,"name",{value:h,configurable:!0}),Mt=(f,h)=>{for(var w in h)A5(f,w,{get:h[w],enumerable:!0})},Qt=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of St(h))if(!Xt.call(f,$)&&$!==w)A5(f,$,{get:()=>h[$],enumerable:!(s=Rt(h,$))||s.enumerable})}return f},Kt=(f)=>Qt(A5({},"__esModule",{value:!0}),f),EZ={};Mt(EZ,{calculateBodyLength:()=>Zt});TZ.exports=Kt(EZ);var rZ=B0("node:fs"),Zt=Yt((f)=>{if(!f)return 0;if(typeof f==="string")return Buffer.byteLength(f);else if(typeof f.byteLength==="number")return f.byteLength;else if(typeof f.size==="number")return f.size;else if(typeof f.start==="number"&&typeof f.end==="number")return f.end+1-f.start;else if(typeof f.path==="string"||Buffer.isBuffer(f.path))return rZ.lstatSync(f.path).size;else if(typeof f.fd==="number")return rZ.fstatSync(f.fd).size;throw new Error(`Body Length computation failed for ${f}`)},"calculateBodyLength")});var KZ=H((MZ)=>{Object.defineProperty(MZ,"__esModule",{value:!0});MZ.ruleSet=void 0;var RZ="required",bf="fn",mf="argv",ks="ref",UZ=!0,FZ="isSet",Gr="booleanEquals",Ds="error",qs="endpoint",p1="tree",u3="PartitionResult",t3="getAttr",CZ={[RZ]:!1,type:"String"},IZ={[RZ]:!0,default:!1,type:"Boolean"},LZ={[ks]:"Endpoint"},SZ={[bf]:Gr,[mf]:[{[ks]:"UseFIPS"},!0]},XZ={[bf]:Gr,[mf]:[{[ks]:"UseDualStack"},!0]},vf={},BZ={[bf]:t3,[mf]:[{[ks]:u3},"supportsFIPS"]},YZ={[ks]:u3},AZ={[bf]:Gr,[mf]:[!0,{[bf]:t3,[mf]:[YZ,"supportsDualStack"]}]},GZ=[SZ],WZ=[XZ],zZ=[{[ks]:"Region"}],Jt={version:"1.0",parameters:{Region:CZ,UseDualStack:IZ,UseFIPS:IZ,Endpoint:CZ},rules:[{conditions:[{[bf]:FZ,[mf]:[LZ]}],rules:[{conditions:GZ,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:Ds},{conditions:WZ,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:Ds},{endpoint:{url:LZ,properties:vf,headers:vf},type:qs}],type:p1},{conditions:[{[bf]:FZ,[mf]:zZ}],rules:[{conditions:[{[bf]:"aws.partition",[mf]:zZ,assign:u3}],rules:[{conditions:[SZ,XZ],rules:[{conditions:[{[bf]:Gr,[mf]:[UZ,BZ]},AZ],rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:vf,headers:vf},type:qs}],type:p1},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:Ds}],type:p1},{conditions:GZ,rules:[{conditions:[{[bf]:Gr,[mf]:[BZ,UZ]}],rules:[{conditions:[{[bf]:"stringEquals",[mf]:[{[bf]:t3,[mf]:[YZ,"name"]},"aws-us-gov"]}],endpoint:{url:"https://oidc.{Region}.amazonaws.com",properties:vf,headers:vf},type:qs},{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",properties:vf,headers:vf},type:qs}],type:p1},{error:"FIPS is enabled but this partition does not support FIPS",type:Ds}],type:p1},{conditions:WZ,rules:[{conditions:[AZ],rules:[{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:vf,headers:vf},type:qs}],type:p1},{error:"DualStack is enabled but this partition does not support DualStack",type:Ds}],type:p1},{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dnsSuffix}",properties:vf,headers:vf},type:qs}],type:p1}],type:p1},{error:"Invalid Configuration: Missing Region",type:Ds}]};MZ.ruleSet=Jt});var VZ=H((ZZ)=>{Object.defineProperty(ZZ,"__esModule",{value:!0});ZZ.defaultEndpointResolver=void 0;var Vt=xE(),fC=cE(),Pt=KZ(),Ht=new fC.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Nt=(f,h={})=>{return Ht.get(f,()=>fC.resolveEndpoint(Pt.ruleSet,{endpointParams:f,logger:h.logger}))};ZZ.defaultEndpointResolver=Nt;fC.customEndpointFunctions.aws=Vt.awsEndpointFunctions});var qZ=H((NZ)=>{Object.defineProperty(NZ,"__esModule",{value:!0});NZ.getRuntimeConfig=void 0;var Dt=O0(),qt=m0(),kt=J0(),yt=Lr(),PZ=Ah(),HZ=uf(),jt=g3(),Ot=VZ(),lt=(f)=>{return{apiVersion:"2019-06-10",base64Decoder:f?.base64Decoder??PZ.fromBase64,base64Encoder:f?.base64Encoder??PZ.toBase64,disableHostPrefix:f?.disableHostPrefix??!1,endpointProvider:f?.endpointProvider??Ot.defaultEndpointResolver,extensions:f?.extensions??[],httpAuthSchemeProvider:f?.httpAuthSchemeProvider??jt.defaultSSOOIDCHttpAuthSchemeProvider,httpAuthSchemes:f?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(h)=>h.getIdentityProvider("aws.auth#sigv4"),signer:new Dt.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(h)=>h.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new qt.NoAuthSigner}],logger:f?.logger??new kt.NoOpLogger,serviceId:f?.serviceId??"SSO OIDC",urlParser:f?.urlParser??yt.parseUrl,utf8Decoder:f?.utf8Decoder??HZ.fromUtf8,utf8Encoder:f?.utf8Encoder??HZ.toUtf8}};NZ.getRuntimeConfig=lt});var _Z=H((L70,xZ)=>{var{defineProperty:z5,getOwnPropertyDescriptor:vt,getOwnPropertyNames:bt}=Object,mt=Object.prototype.hasOwnProperty,_0=(f,h)=>z5(f,"name",{value:h,configurable:!0}),dt=(f,h)=>{for(var w in h)z5(f,w,{get:h[w],enumerable:!0})},it=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of bt(h))if(!mt.call(f,$)&&$!==w)z5(f,$,{get:()=>h[$],enumerable:!(s=vt(h,$))||s.enumerable})}return f},ct=(f)=>it(z5({},"__esModule",{value:!0}),f),OZ={};dt(OZ,{DEFAULT_MAX_RETRIES:()=>mZ,DEFAULT_TIMEOUT:()=>bZ,ENV_CMDS_AUTH_TOKEN:()=>sC,ENV_CMDS_FULL_URI:()=>G5,ENV_CMDS_RELATIVE_URI:()=>W5,Endpoint:()=>dZ,fromContainerMetadata:()=>nt,fromInstanceMetadata:()=>A00,getInstanceMetadataEndpoint:()=>cZ,httpRequest:()=>ys,providerConfigFromInit:()=>$C});xZ.exports=ct(OZ);var gt=B0("node:url"),Z1=O$(),xt=B0("node:buffer"),_t=B0("node:http");function ys(f){return new Promise((h,w)=>{let s=_t.request({method:"GET",...f,hostname:f.hostname?.replace(/^\[(.+)\]$/,"$1")});s.on("error",($)=>{w(Object.assign(new Z1.ProviderError("Unable to connect to instance metadata service"),$)),s.destroy()}),s.on("timeout",()=>{w(new Z1.ProviderError("TimeoutError from instance metadata service")),s.destroy()}),s.on("response",($)=>{let{statusCode:r=400}=$;if(r<200||300<=r)w(Object.assign(new Z1.ProviderError("Error response received from instance metadata service"),{statusCode:r})),s.destroy();let E=[];$.on("data",(T)=>{E.push(T)}),$.on("end",()=>{h(xt.Buffer.concat(E)),s.destroy()})}),s.end()})}_0(ys,"httpRequest");var lZ=_0((f)=>Boolean(f)&&typeof f==="object"&&typeof f.AccessKeyId==="string"&&typeof f.SecretAccessKey==="string"&&typeof f.Token==="string"&&typeof f.Expiration==="string","isImdsCredentials"),vZ=_0((f)=>({accessKeyId:f.AccessKeyId,secretAccessKey:f.SecretAccessKey,sessionToken:f.Token,expiration:new Date(f.Expiration),...f.AccountId&&{accountId:f.AccountId}}),"fromImdsCredentials"),bZ=1000,mZ=0,$C=_0(({maxRetries:f=mZ,timeout:h=bZ})=>({maxRetries:f,timeout:h}),"providerConfigFromInit"),wC=_0((f,h)=>{let w=f();for(let s=0;s<h;s++)w=w.catch(f);return w},"retry"),G5="AWS_CONTAINER_CREDENTIALS_FULL_URI",W5="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",sC="AWS_CONTAINER_AUTHORIZATION_TOKEN",nt=_0((f={})=>{let{timeout:h,maxRetries:w}=$C(f);return()=>wC(async()=>{let s=await ut({logger:f.logger}),$=JSON.parse(await et(h,s));if(!lZ($))throw new Z1.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:f.logger});return vZ($)},w)},"fromContainerMetadata"),et=_0(async(f,h)=>{if(process.env[sC])h.headers={...h.headers,Authorization:process.env[sC]};return(await ys({...h,timeout:f})).toString()},"requestFromEcsImds"),at="169.254.170.2",ot={localhost:!0,"127.0.0.1":!0},pt={"http:":!0,"https:":!0},ut=_0(async({logger:f})=>{if(process.env[W5])return{hostname:at,path:process.env[W5]};if(process.env[G5]){let h=gt.parse(process.env[G5]);if(!h.hostname||!(h.hostname in ot))throw new Z1.CredentialsProviderError(`${h.hostname} is not a valid container metadata service hostname`,{tryNextLink:!1,logger:f});if(!h.protocol||!(h.protocol in pt))throw new Z1.CredentialsProviderError(`${h.protocol} is not a valid container metadata service protocol`,{tryNextLink:!1,logger:f});return{...h,port:h.port?parseInt(h.port,10):void 0}}throw new Z1.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${W5} or ${G5} environment variable is set`,{tryNextLink:!1,logger:f})},"getCmdsUri"),tt=class f extends Z1.CredentialsProviderError{constructor(h,w=!0){super(h,w);this.tryNextLink=w,this.name="InstanceMetadataV1FallbackError",Object.setPrototypeOf(this,f.prototype)}static{_0(this,"InstanceMetadataV1FallbackError")}},rC=Vs(),f00=Lr(),dZ=((f)=>{return f.IPv4="http://169.254.169.254",f.IPv6="http://[fd00:ec2::254]",f})(dZ||{}),h00="AWS_EC2_METADATA_SERVICE_ENDPOINT",w00="ec2_metadata_service_endpoint",s00={environmentVariableSelector:(f)=>f[h00],configFileSelector:(f)=>f[w00],default:void 0},iZ=((f)=>{return f.IPv4="IPv4",f.IPv6="IPv6",f})(iZ||{}),$00="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",r00="ec2_metadata_service_endpoint_mode",E00={environmentVariableSelector:(f)=>f[$00],configFileSelector:(f)=>f[r00],default:"IPv4"},cZ=_0(async()=>f00.parseUrl(await T00()||await U00()),"getInstanceMetadataEndpoint"),T00=_0(async()=>rC.loadConfig(s00)(),"getFromEndpointConfig"),U00=_0(async()=>{let f=await rC.loadConfig(E00)();switch(f){case"IPv4":return"http://169.254.169.254";case"IPv6":return"http://[fd00:ec2::254]";default:throw new Error(`Unsupported endpoint mode: ${f}. Select from ${Object.values(iZ)}`)}},"getFromEndpointModeConfig"),F00=300,C00=300,I00="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",kZ=_0((f,h)=>{let w=F00+Math.floor(Math.random()*C00),s=new Date(Date.now()+w*1000);h.warn(`Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(s)}.
|
|
50
|
-
For more information, please visit: `+I00);let $=f.originalExpiration??f.expiration;return{...f,...$?{originalExpiration:$}:{},expiration:s}},"getExtendedInstanceMetadataCredentials"),L00=_0((f,h={})=>{let w=h?.logger||console,s;return async()=>{let $;try{if($=await f(),$.expiration&&$.expiration.getTime()<Date.now())$=kZ($,w)}catch(r){if(s)w.warn("Credential renew failed: ",r),$=kZ(s,w);else throw r}return s=$,$}},"staticStabilityProvider"),gZ="/latest/meta-data/iam/security-credentials/",B00="/latest/api/token",hC="AWS_EC2_METADATA_V1_DISABLED",yZ="ec2_metadata_v1_disabled",jZ="x-aws-ec2-metadata-token",A00=_0((f={})=>L00(G00(f),{logger:f.logger}),"fromInstanceMetadata"),G00=_0((f={})=>{let h=!1,{logger:w,profile:s}=f,{timeout:$,maxRetries:r}=$C(f),E=_0(async(T,U)=>{if(h||U.headers?.[jZ]==null){let I=!1,B=!1,G=await rC.loadConfig({environmentVariableSelector:(S)=>{let Q=S[hC];if(B=!!Q&&Q!=="false",Q===void 0)throw new Z1.CredentialsProviderError(`${hC} not set in env, checking config file next.`,{logger:f.logger});return B},configFileSelector:(S)=>{let Q=S[yZ];return I=!!Q&&Q!=="false",I},default:!1},{profile:s})();if(f.ec2MetadataV1Disabled||G){let S=[];if(f.ec2MetadataV1Disabled)S.push("credential provider initialization (runtime option ec2MetadataV1Disabled)");if(I)S.push(`config file profile (${yZ})`);if(B)S.push(`process environment variable (${hC})`);throw new tt(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${S.join(", ")}].`)}}let C=(await wC(async()=>{let I;try{I=await z00(U)}catch(B){if(B.statusCode===401)h=!1;throw B}return I},T)).trim();return wC(async()=>{let I;try{I=await R00(C,U,f)}catch(B){if(B.statusCode===401)h=!1;throw B}return I},T)},"getCredentials");return async()=>{let T=await cZ();if(h)return w?.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)"),E(r,{...T,timeout:$});else{let U;try{U=(await W00({...T,timeout:$})).toString()}catch(F){if(F?.statusCode===400)throw Object.assign(F,{message:"EC2 Metadata token request returned error"});else if(F.message==="TimeoutError"||[403,404,405].includes(F.statusCode))h=!0;return w?.debug("AWS SDK Instance Metadata","using v1 fallback (initial)"),E(r,{...T,timeout:$})}return E(r,{...T,headers:{[jZ]:U},timeout:$})}}},"getInstanceMetadataProvider"),W00=_0(async(f)=>ys({...f,path:B00,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),"getMetadataToken"),z00=_0(async(f)=>(await ys({...f,path:gZ})).toString(),"getProfile"),R00=_0(async(f,h,w)=>{let s=JSON.parse((await ys({...h,path:gZ+f})).toString());if(!lZ(s))throw new Z1.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:w.logger});return vZ(s)},"getCredentialsFromProfile")});var TC=H((B70,uZ)=>{var{create:S00,defineProperty:Wr,getOwnPropertyDescriptor:X00,getOwnPropertyNames:Y00,getPrototypeOf:M00}=Object,Q00=Object.prototype.hasOwnProperty,EC=(f,h)=>Wr(f,"name",{value:h,configurable:!0}),K00=(f,h)=>{for(var w in h)Wr(f,w,{get:h[w],enumerable:!0})},oZ=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Y00(h))if(!Q00.call(f,$)&&$!==w)Wr(f,$,{get:()=>h[$],enumerable:!(s=X00(h,$))||s.enumerable})}return f},Z00=(f,h,w)=>(w=f!=null?S00(M00(f)):{},oZ(h||!f||!f.__esModule?Wr(w,"default",{value:f,enumerable:!0}):w,f)),J00=(f)=>oZ(Wr({},"__esModule",{value:!0}),f),pZ={};K00(pZ,{resolveDefaultsModeConfig:()=>O00});uZ.exports=J00(pZ);var V00=Ks(),nZ=Vs(),P00=O$(),H00="AWS_EXECUTION_ENV",eZ="AWS_REGION",aZ="AWS_DEFAULT_REGION",N00="AWS_EC2_METADATA_DISABLED",D00=["in-region","cross-region","mobile","standard","legacy"],q00="/latest/meta-data/placement/region",k00="AWS_DEFAULTS_MODE",y00="defaults_mode",j00={environmentVariableSelector:(f)=>{return f[k00]},configFileSelector:(f)=>{return f[y00]},default:"legacy"},O00=EC(({region:f=nZ.loadConfig(V00.NODE_REGION_CONFIG_OPTIONS),defaultsMode:h=nZ.loadConfig(j00)}={})=>P00.memoize(async()=>{let w=typeof h==="function"?await h():h;switch(w?.toLowerCase()){case"auto":return l00(f);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(w?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${D00.join(", ")}, got ${w}`)}}),"resolveDefaultsModeConfig"),l00=EC(async(f)=>{if(f){let h=typeof f==="function"?await f():f,w=await v00();if(!w)return"standard";if(h===w)return"in-region";else return"cross-region"}return"standard"},"resolveNodeDefaultsModeAuto"),v00=EC(async()=>{if(process.env[H00]&&(process.env[eZ]||process.env[aZ]))return process.env[eZ]??process.env[aZ];if(!process.env[N00])try{let{getInstanceMetadataEndpoint:f,httpRequest:h}=await Promise.resolve().then(()=>Z00(_Z())),w=await f();return(await h({...w,path:q00})).toString()}catch(f){}},"inferPhysicalRegion")});var $J=H((wJ)=>{Object.defineProperty(wJ,"__esModule",{value:!0});wJ.getRuntimeConfig=void 0;var b00=d4(),m00=b00.__importDefault(x3()),d00=O0(),tZ=n3(),R5=Ks(),i00=o3(),fJ=Ar(),js=Vs(),hJ=K4(),c00=p3(),g00=F5(),x00=qZ(),_00=J0(),n00=TC(),e00=J0(),a00=(f)=>{e00.emitWarningIfUnsupportedVersion(process.version);let h=n00.resolveDefaultsModeConfig(f),w=()=>h().then(_00.loadConfigsForDefaultMode),s=x00.getRuntimeConfig(f);d00.emitWarningIfUnsupportedVersion(process.version);let $={profile:f?.profile};return{...s,...f,runtime:"node",defaultsMode:h,bodyLengthChecker:f?.bodyLengthChecker??c00.calculateBodyLength,defaultUserAgentProvider:f?.defaultUserAgentProvider??tZ.createDefaultUserAgentProvider({serviceId:s.serviceId,clientVersion:m00.default.version}),maxAttempts:f?.maxAttempts??js.loadConfig(fJ.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,f),region:f?.region??js.loadConfig(R5.NODE_REGION_CONFIG_OPTIONS,{...R5.NODE_REGION_CONFIG_FILE_OPTIONS,...$}),requestHandler:hJ.NodeHttpHandler.create(f?.requestHandler??w),retryMode:f?.retryMode??js.loadConfig({...fJ.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await w()).retryMode||g00.DEFAULT_RETRY_MODE},f),sha256:f?.sha256??i00.Hash.bind(null,"sha256"),streamCollector:f?.streamCollector??hJ.streamCollector,useDualstackEndpoint:f?.useDualstackEndpoint??js.loadConfig(R5.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,$),useFipsEndpoint:f?.useFipsEndpoint??js.loadConfig(R5.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,$),userAgentAppId:f?.userAgentAppId??js.loadConfig(tZ.NODE_APP_ID_CONFIG_OPTIONS,$)}};wJ.getRuntimeConfig=a00});var UC=H((G70,CJ)=>{var{defineProperty:S5,getOwnPropertyDescriptor:o00,getOwnPropertyNames:p00}=Object,u00=Object.prototype.hasOwnProperty,J1=(f,h)=>S5(f,"name",{value:h,configurable:!0}),t00=(f,h)=>{for(var w in h)S5(f,w,{get:h[w],enumerable:!0})},ff0=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of p00(h))if(!u00.call(f,$)&&$!==w)S5(f,$,{get:()=>h[$],enumerable:!(s=o00(h,$))||s.enumerable})}return f},hf0=(f)=>ff0(S5({},"__esModule",{value:!0}),f),EJ={};t00(EJ,{NODE_REGION_CONFIG_FILE_OPTIONS:()=>rf0,NODE_REGION_CONFIG_OPTIONS:()=>$f0,REGION_ENV_NAME:()=>TJ,REGION_INI_NAME:()=>UJ,getAwsRegionExtensionConfiguration:()=>wf0,resolveAwsRegionExtensionConfiguration:()=>sf0,resolveRegionConfig:()=>Ef0});CJ.exports=hf0(EJ);var wf0=J1((f)=>{return{setRegion(h){f.region=h},region(){return f.region}}},"getAwsRegionExtensionConfiguration"),sf0=J1((f)=>{return{region:f.region()}},"resolveAwsRegionExtensionConfiguration"),TJ="AWS_REGION",UJ="region",$f0={environmentVariableSelector:J1((f)=>f[TJ],"environmentVariableSelector"),configFileSelector:J1((f)=>f[UJ],"configFileSelector"),default:J1(()=>{throw new Error("Region is missing")},"default")},rf0={preferredFile:"credentials"},FJ=J1((f)=>typeof f==="string"&&(f.startsWith("fips-")||f.endsWith("-fips")),"isFipsRegion"),rJ=J1((f)=>FJ(f)?["fips-aws-global","aws-fips"].includes(f)?"us-east-1":f.replace(/fips-(dkr-|prod-)?|-fips/,""):f,"getRealRegion"),Ef0=J1((f)=>{let{region:h,useFipsEndpoint:w}=f;if(!h)throw new Error("Region is missing");return Object.assign(f,{region:J1(async()=>{if(typeof h==="string")return rJ(h);let s=await h();return rJ(s)},"region"),useFipsEndpoint:J1(async()=>{let s=typeof h==="string"?h:await h();if(FJ(s))return!0;return typeof w!=="function"?Promise.resolve(!!w):w()},"useFipsEndpoint")})},"resolveRegionConfig")});var IC=H((W70,lJ)=>{var{defineProperty:X5,getOwnPropertyDescriptor:Tf0,getOwnPropertyNames:Uf0}=Object,Ff0=Object.prototype.hasOwnProperty,w0=(f,h)=>X5(f,"name",{value:h,configurable:!0}),Cf0=(f,h)=>{for(var w in h)X5(f,w,{get:h[w],enumerable:!0})},If0=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Uf0(h))if(!Ff0.call(f,$)&&$!==w)X5(f,$,{get:()=>h[$],enumerable:!(s=Tf0(h,$))||s.enumerable})}return f},Lf0=(f)=>If0(X5({},"__esModule",{value:!0}),f),RJ={};Cf0(RJ,{$Command:()=>YJ.Command,AccessDeniedException:()=>MJ,AuthorizationPendingException:()=>QJ,CreateTokenCommand:()=>jJ,CreateTokenRequestFilterSensitiveLog:()=>KJ,CreateTokenResponseFilterSensitiveLog:()=>ZJ,ExpiredTokenException:()=>JJ,InternalServerException:()=>VJ,InvalidClientException:()=>PJ,InvalidGrantException:()=>HJ,InvalidRequestException:()=>NJ,InvalidScopeException:()=>DJ,SSOOIDC:()=>OJ,SSOOIDCClient:()=>XJ,SSOOIDCServiceException:()=>Kf,SlowDownException:()=>qJ,UnauthorizedClientException:()=>kJ,UnsupportedGrantTypeException:()=>yJ,__Client:()=>SJ.Client});lJ.exports=Lf0(RJ);var IJ=I3(),Bf0=B3(),Af0=G3(),LJ=eE(),Gf0=Ks(),FC=m0(),Wf0=K3(),zf0=Ps(),BJ=Ar(),SJ=J0(),AJ=g3(),Rf0=w0((f)=>{return Object.assign(f,{useDualstackEndpoint:f.useDualstackEndpoint??!1,useFipsEndpoint:f.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"})},"resolveClientEndpointParameters"),Sf0={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},Xf0=$J(),GJ=UC(),WJ=t0(),zJ=J0(),Yf0=w0((f)=>{let{httpAuthSchemes:h,httpAuthSchemeProvider:w,credentials:s}=f;return{setHttpAuthScheme($){let r=h.findIndex((E)=>E.schemeId===$.schemeId);if(r===-1)h.push($);else h.splice(r,1,$)},httpAuthSchemes(){return h},setHttpAuthSchemeProvider($){w=$},httpAuthSchemeProvider(){return w},setCredentials($){s=$},credentials(){return s}}},"getHttpAuthExtensionConfiguration"),Mf0=w0((f)=>{return{httpAuthSchemes:f.httpAuthSchemes(),httpAuthSchemeProvider:f.httpAuthSchemeProvider(),credentials:f.credentials()}},"resolveHttpAuthRuntimeConfig"),Qf0=w0((f,h)=>{let w=Object.assign(GJ.getAwsRegionExtensionConfiguration(f),zJ.getDefaultExtensionConfiguration(f),WJ.getHttpHandlerExtensionConfiguration(f),Yf0(f));return h.forEach((s)=>s.configure(w)),Object.assign(f,GJ.resolveAwsRegionExtensionConfiguration(w),zJ.resolveDefaultRuntimeConfig(w),WJ.resolveHttpHandlerRuntimeConfig(w),Mf0(w))},"resolveRuntimeExtensions"),XJ=class extends SJ.Client{static{w0(this,"SSOOIDCClient")}config;constructor(...[f]){let h=Xf0.getRuntimeConfig(f||{});super(h);this.initConfig=h;let w=Rf0(h),s=LJ.resolveUserAgentConfig(w),$=BJ.resolveRetryConfig(s),r=Gf0.resolveRegionConfig($),E=IJ.resolveHostHeaderConfig(r),T=zf0.resolveEndpointConfig(E),U=AJ.resolveHttpAuthSchemeConfig(T),F=Qf0(U,f?.extensions||[]);this.config=F,this.middlewareStack.use(LJ.getUserAgentPlugin(this.config)),this.middlewareStack.use(BJ.getRetryPlugin(this.config)),this.middlewareStack.use(Wf0.getContentLengthPlugin(this.config)),this.middlewareStack.use(IJ.getHostHeaderPlugin(this.config)),this.middlewareStack.use(Bf0.getLoggerPlugin(this.config)),this.middlewareStack.use(Af0.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(FC.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:AJ.defaultSSOOIDCHttpAuthSchemeParametersProvider,identityProviderConfigProvider:w0(async(C)=>new FC.DefaultIdentityProviderConfig({"aws.auth#sigv4":C.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(FC.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}},Kf0=J0(),Zf0=Ps(),Jf0=Ow(),YJ=J0(),Os=J0(),Vf0=J0(),Kf=class f extends Vf0.ServiceException{static{w0(this,"SSOOIDCServiceException")}constructor(h){super(h);Object.setPrototypeOf(this,f.prototype)}},MJ=class f extends Kf{static{w0(this,"AccessDeniedException")}name="AccessDeniedException";$fault="client";error;error_description;constructor(h){super({name:"AccessDeniedException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype),this.error=h.error,this.error_description=h.error_description}},QJ=class f extends Kf{static{w0(this,"AuthorizationPendingException")}name="AuthorizationPendingException";$fault="client";error;error_description;constructor(h){super({name:"AuthorizationPendingException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype),this.error=h.error,this.error_description=h.error_description}},KJ=w0((f)=>({...f,...f.clientSecret&&{clientSecret:Os.SENSITIVE_STRING},...f.refreshToken&&{refreshToken:Os.SENSITIVE_STRING},...f.codeVerifier&&{codeVerifier:Os.SENSITIVE_STRING}}),"CreateTokenRequestFilterSensitiveLog"),ZJ=w0((f)=>({...f,...f.accessToken&&{accessToken:Os.SENSITIVE_STRING},...f.refreshToken&&{refreshToken:Os.SENSITIVE_STRING},...f.idToken&&{idToken:Os.SENSITIVE_STRING}}),"CreateTokenResponseFilterSensitiveLog"),JJ=class f extends Kf{static{w0(this,"ExpiredTokenException")}name="ExpiredTokenException";$fault="client";error;error_description;constructor(h){super({name:"ExpiredTokenException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype),this.error=h.error,this.error_description=h.error_description}},VJ=class f extends Kf{static{w0(this,"InternalServerException")}name="InternalServerException";$fault="server";error;error_description;constructor(h){super({name:"InternalServerException",$fault:"server",...h});Object.setPrototypeOf(this,f.prototype),this.error=h.error,this.error_description=h.error_description}},PJ=class f extends Kf{static{w0(this,"InvalidClientException")}name="InvalidClientException";$fault="client";error;error_description;constructor(h){super({name:"InvalidClientException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype),this.error=h.error,this.error_description=h.error_description}},HJ=class f extends Kf{static{w0(this,"InvalidGrantException")}name="InvalidGrantException";$fault="client";error;error_description;constructor(h){super({name:"InvalidGrantException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype),this.error=h.error,this.error_description=h.error_description}},NJ=class f extends Kf{static{w0(this,"InvalidRequestException")}name="InvalidRequestException";$fault="client";error;error_description;constructor(h){super({name:"InvalidRequestException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype),this.error=h.error,this.error_description=h.error_description}},DJ=class f extends Kf{static{w0(this,"InvalidScopeException")}name="InvalidScopeException";$fault="client";error;error_description;constructor(h){super({name:"InvalidScopeException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype),this.error=h.error,this.error_description=h.error_description}},qJ=class f extends Kf{static{w0(this,"SlowDownException")}name="SlowDownException";$fault="client";error;error_description;constructor(h){super({name:"SlowDownException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype),this.error=h.error,this.error_description=h.error_description}},kJ=class f extends Kf{static{w0(this,"UnauthorizedClientException")}name="UnauthorizedClientException";$fault="client";error;error_description;constructor(h){super({name:"UnauthorizedClientException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype),this.error=h.error,this.error_description=h.error_description}},yJ=class f extends Kf{static{w0(this,"UnsupportedGrantTypeException")}name="UnsupportedGrantTypeException";$fault="client";error;error_description;constructor(h){super({name:"UnsupportedGrantTypeException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype),this.error=h.error,this.error_description=h.error_description}},CC=O0(),Pf0=m0(),x=J0(),Hf0=w0(async(f,h)=>{let w=Pf0.requestBuilder(f,h),s={"content-type":"application/json"};w.bp("/token");let $;return $=JSON.stringify(x.take(f,{clientId:[],clientSecret:[],code:[],codeVerifier:[],deviceCode:[],grantType:[],redirectUri:[],refreshToken:[],scope:w0((r)=>x._json(r),"scope")})),w.m("POST").h(s).b($),w.build()},"se_CreateTokenCommand"),Nf0=w0(async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return Df0(f,h);let w=x.map({$metadata:df(f)}),s=x.expectNonNull(x.expectObject(await CC.parseJsonBody(f.body,h)),"body"),$=x.take(s,{accessToken:x.expectString,expiresIn:x.expectInt32,idToken:x.expectString,refreshToken:x.expectString,tokenType:x.expectString});return Object.assign(w,$),w},"de_CreateTokenCommand"),Df0=w0(async(f,h)=>{let w={...f,body:await CC.parseJsonErrorBody(f.body,h)},s=CC.loadRestJsonErrorCode(f,w.body);switch(s){case"AccessDeniedException":case"com.amazonaws.ssooidc#AccessDeniedException":throw await kf0(w,h);case"AuthorizationPendingException":case"com.amazonaws.ssooidc#AuthorizationPendingException":throw await yf0(w,h);case"ExpiredTokenException":case"com.amazonaws.ssooidc#ExpiredTokenException":throw await jf0(w,h);case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await Of0(w,h);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await lf0(w,h);case"InvalidGrantException":case"com.amazonaws.ssooidc#InvalidGrantException":throw await vf0(w,h);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await bf0(w,h);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await mf0(w,h);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await df0(w,h);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await if0(w,h);case"UnsupportedGrantTypeException":case"com.amazonaws.ssooidc#UnsupportedGrantTypeException":throw await cf0(w,h);default:let $=w.body;return qf0({output:f,parsedBody:$,errorCode:s})}},"de_CommandError"),qf0=x.withBaseException(Kf),kf0=w0(async(f,h)=>{let w=x.map({}),s=f.body,$=x.take(s,{error:x.expectString,error_description:x.expectString});Object.assign(w,$);let r=new MJ({$metadata:df(f),...w});return x.decorateServiceException(r,f.body)},"de_AccessDeniedExceptionRes"),yf0=w0(async(f,h)=>{let w=x.map({}),s=f.body,$=x.take(s,{error:x.expectString,error_description:x.expectString});Object.assign(w,$);let r=new QJ({$metadata:df(f),...w});return x.decorateServiceException(r,f.body)},"de_AuthorizationPendingExceptionRes"),jf0=w0(async(f,h)=>{let w=x.map({}),s=f.body,$=x.take(s,{error:x.expectString,error_description:x.expectString});Object.assign(w,$);let r=new JJ({$metadata:df(f),...w});return x.decorateServiceException(r,f.body)},"de_ExpiredTokenExceptionRes"),Of0=w0(async(f,h)=>{let w=x.map({}),s=f.body,$=x.take(s,{error:x.expectString,error_description:x.expectString});Object.assign(w,$);let r=new VJ({$metadata:df(f),...w});return x.decorateServiceException(r,f.body)},"de_InternalServerExceptionRes"),lf0=w0(async(f,h)=>{let w=x.map({}),s=f.body,$=x.take(s,{error:x.expectString,error_description:x.expectString});Object.assign(w,$);let r=new PJ({$metadata:df(f),...w});return x.decorateServiceException(r,f.body)},"de_InvalidClientExceptionRes"),vf0=w0(async(f,h)=>{let w=x.map({}),s=f.body,$=x.take(s,{error:x.expectString,error_description:x.expectString});Object.assign(w,$);let r=new HJ({$metadata:df(f),...w});return x.decorateServiceException(r,f.body)},"de_InvalidGrantExceptionRes"),bf0=w0(async(f,h)=>{let w=x.map({}),s=f.body,$=x.take(s,{error:x.expectString,error_description:x.expectString});Object.assign(w,$);let r=new NJ({$metadata:df(f),...w});return x.decorateServiceException(r,f.body)},"de_InvalidRequestExceptionRes"),mf0=w0(async(f,h)=>{let w=x.map({}),s=f.body,$=x.take(s,{error:x.expectString,error_description:x.expectString});Object.assign(w,$);let r=new DJ({$metadata:df(f),...w});return x.decorateServiceException(r,f.body)},"de_InvalidScopeExceptionRes"),df0=w0(async(f,h)=>{let w=x.map({}),s=f.body,$=x.take(s,{error:x.expectString,error_description:x.expectString});Object.assign(w,$);let r=new qJ({$metadata:df(f),...w});return x.decorateServiceException(r,f.body)},"de_SlowDownExceptionRes"),if0=w0(async(f,h)=>{let w=x.map({}),s=f.body,$=x.take(s,{error:x.expectString,error_description:x.expectString});Object.assign(w,$);let r=new kJ({$metadata:df(f),...w});return x.decorateServiceException(r,f.body)},"de_UnauthorizedClientExceptionRes"),cf0=w0(async(f,h)=>{let w=x.map({}),s=f.body,$=x.take(s,{error:x.expectString,error_description:x.expectString});Object.assign(w,$);let r=new yJ({$metadata:df(f),...w});return x.decorateServiceException(r,f.body)},"de_UnsupportedGrantTypeExceptionRes"),df=w0((f)=>({httpStatusCode:f.statusCode,requestId:f.headers["x-amzn-requestid"]??f.headers["x-amzn-request-id"]??f.headers["x-amz-request-id"],extendedRequestId:f.headers["x-amz-id-2"],cfId:f.headers["x-amz-cf-id"]}),"deserializeMetadata"),jJ=class extends YJ.Command.classBuilder().ep(Sf0).m(function(f,h,w,s){return[Jf0.getSerdePlugin(w,this.serialize,this.deserialize),Zf0.getEndpointPlugin(w,f.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","CreateToken",{}).n("SSOOIDCClient","CreateTokenCommand").f(KJ,ZJ).ser(Hf0).de(Nf0).build(){static{w0(this,"CreateTokenCommand")}},gf0={CreateTokenCommand:jJ},OJ=class extends XJ{static{w0(this,"SSOOIDC")}};Kf0.createAggregatedClient(gf0,OJ)});var vJ=async(f,h={})=>{let{SSOOIDCClient:w}=await Promise.resolve().then(() => u(IC(),1));return new w(Object.assign({},h.clientConfig??{},{region:f??h.clientConfig?.region,logger:h.clientConfig?.logger??h.parentClientConfig?.logger}))};var bJ=async(f,h,w={})=>{let{CreateTokenCommand:s}=await Promise.resolve().then(() => u(IC(),1));return(await vJ(h,w)).send(new s({clientId:f.clientId,clientSecret:f.clientSecret,refreshToken:f.refreshToken,grantType:"refresh_token"}))};var mJ=()=>{};var LC=(f)=>{if(f.expiration&&f.expiration.getTime()<Date.now())throw new Sf(`Token is expired. ${Ms}`,!1)};var dJ=L(()=>{Y0()});var jh=(f,h,w=!1)=>{if(typeof h==="undefined")throw new Sf(`Value not present for '${f}' in SSO Token${w?". Cannot refresh":""}. ${Ms}`,!1)};var iJ=L(()=>{Y0()});import{promises as xf0}from"node:fs";var _f0,cJ=(f,h)=>{let w=CE(f),s=JSON.stringify(h,null,2);return _f0(w,s)};var gJ=L(()=>{h1();({writeFile:_f0}=xf0)});var xJ,_J=(f={})=>async({callerClientConfig:h}={})=>{let w={...f,parentClientConfig:{...h,...f.parentClientConfig}};w.logger?.debug("@aws-sdk/token-providers - fromSso");let s=await Jh(w),$=kf({profile:w.profile??h?.profile}),r=s[$];if(!r)throw new Sf(`Profile '${$}' could not be found in shared credentials file.`,!1);else if(!r.sso_session)throw new Sf(`Profile '${$}' is missing required property 'sso_session'.`);let E=r.sso_session,U=(await AE(w))[E];if(!U)throw new Sf(`Sso session '${E}' could not be found in shared credentials file.`,!1);for(let Q of["sso_start_url","sso_region"])if(!U[Q])throw new Sf(`Sso session '${E}' is missing required property '${Q}'.`,!1);let{sso_start_url:F,sso_region:C}=U,I;try{I=await IE(E)}catch(Q){throw new Sf(`The SSO session token associated with profile=${$} was not found or is invalid. ${Ms}`,!1)}jh("accessToken",I.accessToken),jh("expiresAt",I.expiresAt);let{accessToken:B,expiresAt:G}=I,S={token:B,expiration:new Date(G)};if(S.expiration.getTime()-Date.now()>zM)return S;if(Date.now()-xJ.getTime()<30000)return LC(S),S;jh("clientId",I.clientId,!0),jh("clientSecret",I.clientSecret,!0),jh("refreshToken",I.refreshToken,!0);try{xJ.setTime(Date.now());let Q=await bJ(I,C,w);jh("accessToken",Q.accessToken),jh("expiresIn",Q.expiresIn);let M=new Date(Date.now()+Q.expiresIn*1000);try{await cJ(E,{...I,accessToken:Q.accessToken,expiresAt:M.toISOString(),refreshToken:Q.refreshToken})}catch(q){}return{token:Q.accessToken,expiration:M}}catch(Q){return LC(S),S}};var nJ=L(()=>{Y0();h1();mJ();dJ();iJ();gJ();xJ=new Date(0)});var eJ=L(()=>{Y0()});var aJ=L(()=>{Y0()});var oJ=L(()=>{nJ();eJ();aJ()});function nf0(f){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:f.region},propertiesExtractor:(h,w)=>({signingProperties:{config:h,context:w}})}}function Y5(f){return{schemeId:"smithy.api#noAuth"}}var pJ,uJ=async(f,h,w)=>{return{operation:Mh(h).operation,region:await Lf(f.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}},tJ=(f)=>{let h=[];switch(f.operation){case"GetRoleCredentials":{h.push(Y5(f));break}case"ListAccountRoles":{h.push(Y5(f));break}case"ListAccounts":{h.push(Y5(f));break}case"Logout":{h.push(Y5(f));break}default:h.push(nf0(f))}return h},fV=(f)=>{let h=pJ.resolveAwsSdkSigV4Config(f);return Object.assign(h,{})};var BC=L(()=>{pJ=u(O0(),1);x1()});var hV=(f)=>{return Object.assign(f,{useDualstackEndpoint:f.useDualstackEndpoint??!1,useFipsEndpoint:f.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"})},Oh;var ls=L(()=>{Oh={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var sV;var wV=L(()=>{sV={name:"@aws-sdk/client-sso",description:"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",version:"3.775.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.775.0","@aws-sdk/middleware-host-header":"3.775.0","@aws-sdk/middleware-logger":"3.775.0","@aws-sdk/middleware-recursion-detection":"3.775.0","@aws-sdk/middleware-user-agent":"3.775.0","@aws-sdk/region-config-resolver":"3.775.0","@aws-sdk/types":"3.775.0","@aws-sdk/util-endpoints":"3.775.0","@aws-sdk/util-user-agent-browser":"3.775.0","@aws-sdk/util-user-agent-node":"3.775.0","@smithy/config-resolver":"^4.1.0","@smithy/core":"^3.2.0","@smithy/fetch-http-handler":"^5.0.2","@smithy/hash-node":"^4.0.2","@smithy/invalid-dependency":"^4.0.2","@smithy/middleware-content-length":"^4.0.2","@smithy/middleware-endpoint":"^4.1.0","@smithy/middleware-retry":"^4.1.0","@smithy/middleware-serde":"^4.0.3","@smithy/middleware-stack":"^4.0.2","@smithy/node-config-provider":"^4.0.2","@smithy/node-http-handler":"^4.0.4","@smithy/protocol-http":"^5.1.0","@smithy/smithy-client":"^4.2.0","@smithy/types":"^4.2.0","@smithy/url-parser":"^4.0.2","@smithy/util-base64":"^4.0.0","@smithy/util-body-length-browser":"^4.0.0","@smithy/util-body-length-node":"^4.0.0","@smithy/util-defaults-mode-browser":"^4.0.8","@smithy/util-defaults-mode-node":"^4.0.8","@smithy/util-endpoints":"^3.0.2","@smithy/util-middleware":"^4.0.2","@smithy/util-retry":"^4.0.2","@smithy/util-utf8":"^4.0.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node18":"18.2.4","@types/node":"^18.19.69",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~5.2.2"},engines:{node:">=18.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 AC;var GC=L(()=>{AC={isCrtAvailable:!1}});var $V=()=>{if(AC.isCrtAvailable)return["md/crt-avail"];return null};var rV=L(()=>{GC()});import{platform as af0,release as of0}from"node:os";import{env as EV,versions as pf0}from"node:process";var vs=({serviceId:f,clientVersion:h})=>{return async(w)=>{let s=[["aws-sdk-js",h],["ua","2.1"],[`os/${af0()}`,of0()],["lang/js"],["md/nodejs",`${pf0.node}`]],$=$V();if($)s.push($);if(f)s.push([`api/${f}`,h]);if(EV.AWS_EXECUTION_ENV)s.push([`exec-env/${EV.AWS_EXECUTION_ENV}`]);let r=await w?.userAgentAppId?.();return r?[...s,[`app/${r}`]]:[...s]}};var TV=L(()=>{rV();GC()});var uf0="AWS_SDK_UA_APP_ID",tf0="sdk_ua_app_id",f10="sdk-ua-app-id",bs;var UV=L(()=>{x$();bs={environmentVariableSelector:(f)=>f[uf0],configFileSelector:(f)=>f[tf0]??f[f10],default:GU}});var M5=L(()=>{TV();UV()});var FV=(f)=>typeof ArrayBuffer==="function"&&f instanceof ArrayBuffer||Object.prototype.toString.call(f)==="[object ArrayBuffer]";import{Buffer as WC}from"node:buffer";var Iw=(f,h=0,w=f.byteLength-h)=>{if(!FV(f))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof f} (${f})`);return WC.from(f,h,w)},ms=(f,h)=>{if(typeof f!=="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof f} (${f})`);return h?WC.from(f,h):WC.from(f)};var ds=()=>{};var V1=(f)=>{let h=ms(f,"utf8");return new Uint8Array(h.buffer,h.byteOffset,h.byteLength/Uint8Array.BYTES_PER_ELEMENT)};var zC=L(()=>{ds()});var CV=(f)=>{if(typeof f==="string")return V1(f);if(ArrayBuffer.isView(f))return new Uint8Array(f.buffer,f.byteOffset,f.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(f)};var IV=L(()=>{zC()});var is=(f)=>{if(typeof f==="string")return f;if(typeof f!=="object"||typeof f.byteOffset!=="number"||typeof f.byteLength!=="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return Iw(f.buffer,f.byteOffset,f.byteLength).toString("utf8")};var LV=L(()=>{ds()});var cs=L(()=>{zC();IV();LV()});import{Buffer as h10}from"node:buffer";import{createHash as w10,createHmac as s10}from"node:crypto";class Lw{constructor(f,h){this.algorithmIdentifier=f,this.secret=h,this.reset()}update(f,h){this.hash.update(CV(BV(f,h)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?s10(this.algorithmIdentifier,BV(this.secret)):w10(this.algorithmIdentifier)}}function BV(f,h){if(h10.isBuffer(f))return f;if(typeof f==="string")return ms(f,h);if(ArrayBuffer.isView(f))return Iw(f.buffer,f.byteOffset,f.byteLength);return Iw(f)}var Q5=L(()=>{ds();cs()});import{fstatSync as $10,lstatSync as r10}from"node:fs";var gs=(f)=>{if(!f)return 0;if(typeof f==="string")return Buffer.byteLength(f);else if(typeof f.byteLength==="number")return f.byteLength;else if(typeof f.size==="number")return f.size;else if(typeof f.start==="number"&&typeof f.end==="number")return f.end+1-f.start;else if(typeof f.path==="string"||Buffer.isBuffer(f.path))return r10(f.path).size;else if(typeof f.fd==="number")return $10(f.fd).size;throw new Error(`Body Length computation failed for ${f}`)};var AV=()=>{};var K5=L(()=>{AV()});var E10,xs=(f)=>{if(f.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!E10.exec(f))throw new TypeError("Invalid base64 string.");let h=ms(f,"base64");return new Uint8Array(h.buffer,h.byteOffset,h.byteLength)};var GV=L(()=>{ds();E10=/^[A-Za-z0-9+/]*={0,2}$/});var _s=(f)=>{let h;if(typeof f==="string")h=V1(f);else h=f;if(typeof h!=="object"||typeof h.byteOffset!=="number"||typeof h.byteLength!=="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return Iw(h.buffer,h.byteOffset,h.byteLength).toString("base64")};var WV=L(()=>{ds();cs()});var Z5=L(()=>{GV();WV()});var zV,RV,SV,ZV,JV,cf,XV,VV,YV,MV,QV,KV,T10,PV;var HV=L(()=>{zV={["required"]:!1,type:"String"},RV={["required"]:!0,default:!1,type:"Boolean"},SV={["ref"]:"Endpoint"},ZV={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},JV={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},cf={},XV={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},VV={["ref"]:"PartitionResult"},YV={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[VV,"supportsDualStack"]}]},MV=[ZV],QV=[JV],KV=[{["ref"]:"Region"}],T10={version:"1.0",parameters:{Region:zV,UseDualStack:RV,UseFIPS:RV,Endpoint:zV},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[SV]}],rules:[{conditions:MV,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:QV,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:SV,properties:cf,headers:cf},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:KV}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:KV,assign:"PartitionResult"}],rules:[{conditions:[ZV,JV],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,XV]},YV],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:MV,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[XV,!0]}],rules:[{conditions:[{["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[VV,"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:QV,rules:[{conditions:[YV],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"}]},PV=T10});var U10,NV=(f,h={})=>{return U10.get(f,()=>ah(PV,{endpointParams:f,logger:h.logger}))};var DV=L(()=>{j$();g1();HV();U10=new eh({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]});tf.aws=oh});var qV,kV,yV=(f)=>{return{apiVersion:"2019-06-10",base64Decoder:f?.base64Decoder??xs,base64Encoder:f?.base64Encoder??_s,disableHostPrefix:f?.disableHostPrefix??!1,endpointProvider:f?.endpointProvider??NV,extensions:f?.extensions??[],httpAuthSchemeProvider:f?.httpAuthSchemeProvider??tJ,httpAuthSchemes:f?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(h)=>h.getIdentityProvider("aws.auth#sigv4"),signer:new qV.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(h)=>h.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new kV.NoAuthSigner}],logger:f?.logger??new e1,serviceId:f?.serviceId??"SSO",urlParser:f?.urlParser??jf,utf8Decoder:f?.utf8Decoder??V1,utf8Encoder:f?.utf8Encoder??is}};var jV=L(()=>{qV=u(O0(),1),kV=u(m0(),1);J();ws();Z5();cs();BC();DV()});var OV="AWS_EXECUTION_ENV",RC="AWS_REGION",SC="AWS_DEFAULT_REGION",lV="AWS_EC2_METADATA_DISABLED",vV,bV="/latest/meta-data/placement/region";var mV=L(()=>{vV=["in-region","cross-region","mobile","standard","legacy"]});var dV;var iV=L(()=>{dV={environmentVariableSelector:(f)=>{return f.AWS_DEFAULTS_MODE},configFileSelector:(f)=>{return f.defaults_mode},default:"legacy"}});var ns=({region:f=z0(Qh),defaultsMode:h=z0(dV)}={})=>ww(async()=>{let w=typeof h==="function"?await h():h;switch(w?.toLowerCase()){case"auto":return F10(f);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(w?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${vV.join(", ")}, got ${w}`)}}),F10=async(f)=>{if(f){let h=typeof f==="function"?await f():f,w=await C10();if(!w)return"standard";if(h===w)return"in-region";else return"cross-region"}return"standard"},C10=async()=>{if(process.env[OV]&&(process.env[RC]||process.env[SC]))return process.env[RC]??process.env[SC];if(!process.env[lV])try{let{getInstanceMetadataEndpoint:f,httpRequest:h}=await Promise.resolve().then(() => (rr(),$r)),w=await f();return(await h({...w,path:bV})).toString()}catch(f){}};var cV=L(()=>{Kh();Vh();Y0();mV();iV()});var J5=L(()=>{cV()});var gV,xV=(f)=>{Gs(process.version);let h=ns(f),w=()=>h().then(As),s=yV(f);gV.emitWarningIfUnsupportedVersion(process.version);let $={profile:f?.profile};return{...s,...f,runtime:"node",defaultsMode:h,bodyLengthChecker:f?.bodyLengthChecker??gs,defaultUserAgentProvider:f?.defaultUserAgentProvider??vs({serviceId:s.serviceId,clientVersion:sV.version}),maxAttempts:f?.maxAttempts??z0(Ts,f),region:f?.region??z0(Qh,{...pw,...$}),requestHandler:r1.create(f?.requestHandler??w),retryMode:f?.retryMode??z0({...Fs,default:async()=>(await w()).retryMode||Ph},f),sha256:f?.sha256??Lw.bind(null,"sha256"),streamCollector:f?.streamCollector??Ys,useDualstackEndpoint:f?.useDualstackEndpoint??z0(aw,$),useFipsEndpoint:f?.useFipsEndpoint??z0(ow,$),userAgentAppId:f?.userAgentAppId??z0(bs,$)}};var _V=L(()=>{wV();gV=u(O0(),1);M5();Kh();Q5();Uw();Vh();Tr();K5();w1();jV();J();J5();J()});var es=(f)=>{return{setRegion(h){f.region=h},region(){return f.region}}},as=(f)=>{return{region:f.region()}};var nV=()=>{};var eV=()=>{};var aV=L(()=>{eV()});var oV=L(()=>{nV();aV()});var V5=L(()=>{oV()});var pV=(f)=>{let{httpAuthSchemes:h,httpAuthSchemeProvider:w,credentials:s}=f;return{setHttpAuthScheme($){let r=h.findIndex((E)=>E.schemeId===$.schemeId);if(r===-1)h.push($);else h.splice(r,1,$)},httpAuthSchemes(){return h},setHttpAuthSchemeProvider($){w=$},httpAuthSchemeProvider(){return w},setCredentials($){s=$},credentials(){return s}}},uV=(f)=>{return{httpAuthSchemes:f.httpAuthSchemes(),httpAuthSchemeProvider:f.httpAuthSchemeProvider(),credentials:f.credentials()}};var tV=(f,h)=>{let w=Object.assign(es(f),Ws(f),Pw(f),pV(f));return h.forEach((s)=>s.configure(w)),Object.assign(f,as(w),zs(w),Hw(w),uV(w))};var fP=L(()=>{V5();Ff();J()});var os,u1;var zr=L(()=>{F4();C4();I4();x$();Kh();os=u(m0(),1);UE();D();Uw();J();BC();ls();_V();fP();u1=class u1 extends Ew{config;constructor(...[f]){let h=xV(f||{});super(h);this.initConfig=h;let w=hV(h),s=mw(w),$=Us(s),r=uw($),E=qw(r),T=ss(E),U=fV(T),F=tV(U,f?.extensions||[]);this.config=F,this.middlewareStack.use(nw(this.config)),this.middlewareStack.use(Ss(this.config)),this.middlewareStack.use(tw(this.config)),this.middlewareStack.use(kw(this.config)),this.middlewareStack.use(yw(this.config)),this.middlewareStack.use(jw(this.config)),this.middlewareStack.use(os.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:uJ,identityProviderConfigProvider:async(C)=>new os.DefaultIdentityProviderConfig({"aws.auth#sigv4":C.credentials})})),this.middlewareStack.use(os.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}});var t1;var XC=L(()=>{J();t1=class t1 extends $1{constructor(f){super(f);Object.setPrototypeOf(this,t1.prototype)}}});var P5,H5,N5,D5,hP=(f)=>({...f,...f.accessToken&&{accessToken:U0}}),L10=(f)=>({...f,...f.secretAccessKey&&{secretAccessKey:U0},...f.sessionToken&&{sessionToken:U0}}),wP=(f)=>({...f,...f.roleCredentials&&{roleCredentials:L10(f.roleCredentials)}}),sP=(f)=>({...f,...f.accessToken&&{accessToken:U0}}),$P=(f)=>({...f,...f.accessToken&&{accessToken:U0}}),rP=(f)=>({...f,...f.accessToken&&{accessToken:U0}});var Bw=L(()=>{J();XC();P5=class P5 extends t1{name="InvalidRequestException";$fault="client";constructor(f){super({name:"InvalidRequestException",$fault:"client",...f});Object.setPrototypeOf(this,P5.prototype)}};H5=class H5 extends t1{name="ResourceNotFoundException";$fault="client";constructor(f){super({name:"ResourceNotFoundException",$fault:"client",...f});Object.setPrototypeOf(this,H5.prototype)}};N5=class N5 extends t1{name="TooManyRequestsException";$fault="client";constructor(f){super({name:"TooManyRequestsException",$fault:"client",...f});Object.setPrototypeOf(this,N5.prototype)}};D5=class D5 extends t1{name="UnauthorizedException";$fault="client";constructor(f){super({name:"UnauthorizedException",$fault:"client",...f});Object.setPrototypeOf(this,D5.prototype)}}});var lh,Rr,EP=async(f,h)=>{let w=Rr.requestBuilder(f,h),s=Y({},hr,{[y5]:f[k5]});w.bp("/federation/credentials");let $=Y({[S10]:[,j(f[R10],"roleName")],[GP]:[,j(f[AP],"accountId")]}),r;return w.m("GET").h(s).q($).b(r),w.build()},TP=async(f,h)=>{let w=Rr.requestBuilder(f,h),s=Y({},hr,{[y5]:f[k5]});w.bp("/assignment/roles");let $=Y({[SP]:[,f[RP]],[zP]:[()=>f.maxResults!==void 0,()=>f[WP].toString()],[GP]:[,j(f[AP],"accountId")]}),r;return w.m("GET").h(s).q($).b(r),w.build()},UP=async(f,h)=>{let w=Rr.requestBuilder(f,h),s=Y({},hr,{[y5]:f[k5]});w.bp("/assignment/accounts");let $=Y({[SP]:[,f[RP]],[zP]:[()=>f.maxResults!==void 0,()=>f[WP].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},FP=async(f,h)=>{let w=Rr.requestBuilder(f,h),s=Y({},hr,{[y5]:f[k5]});w.bp("/logout");let $;return w.m("POST").h(s).b($),w.build()},CP=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return q5(f,h);let w=Y({$metadata:vh(f)}),s=j(g(await lh.parseJsonBody(f.body,h)),"body"),$=N0(s,{roleCredentials:v});return Object.assign(w,$),w},IP=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return q5(f,h);let w=Y({$metadata:vh(f)}),s=j(g(await lh.parseJsonBody(f.body,h)),"body"),$=N0(s,{nextToken:A,roleList:v});return Object.assign(w,$),w},LP=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return q5(f,h);let w=Y({$metadata:vh(f)}),s=j(g(await lh.parseJsonBody(f.body,h)),"body"),$=N0(s,{accountList:v,nextToken:A});return Object.assign(w,$),w},BP=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return q5(f,h);let w=Y({$metadata:vh(f)});return await Bf.collectBody(f.body,h),w},q5=async(f,h)=>{let w={...f,body:await lh.parseJsonErrorBody(f.body,h)},s=lh.loadRestJsonErrorCode(f,w.body);switch(s){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await A10(w,h);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await G10(w,h);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await W10(w,h);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await z10(w,h);default:let $=w.body;return B10({output:f,parsedBody:$,errorCode:s})}},B10,A10=async(f,h)=>{let w=Y({}),s=f.body,$=N0(s,{message:A});Object.assign(w,$);let r=new P5({$metadata:vh(f),...w});return l(r,f.body)},G10=async(f,h)=>{let w=Y({}),s=f.body,$=N0(s,{message:A});Object.assign(w,$);let r=new H5({$metadata:vh(f),...w});return l(r,f.body)},W10=async(f,h)=>{let w=Y({}),s=f.body,$=N0(s,{message:A});Object.assign(w,$);let r=new N5({$metadata:vh(f),...w});return l(r,f.body)},z10=async(f,h)=>{let w=Y({}),s=f.body,$=N0(s,{message:A});Object.assign(w,$);let r=new D5({$metadata:vh(f),...w});return l(r,f.body)},vh=(f)=>({httpStatusCode:f.statusCode,requestId:f.headers["x-amzn-requestid"]??f.headers["x-amzn-request-id"]??f.headers["x-amz-request-id"],extendedRequestId:f.headers["x-amz-id-2"],cfId:f.headers["x-amz-cf-id"]}),AP="accountId",k5="accessToken",GP="account_id",WP="maxResults",zP="max_result",RP="nextToken",SP="next_token",R10="roleName",S10="role_name",y5="x-amz-sso_bearer_token";var Sr=L(()=>{lh=u(O0(),1),Rr=u(m0(),1);J();Bw();XC();B10=Bs(t1)});var Xr;var YC=L(()=>{D();k();J();ls();Bw();Sr();Xr=class Xr extends W.classBuilder().ep(Oh).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("SWBPortalService","GetRoleCredentials",{}).n("SSOClient","GetRoleCredentialsCommand").f(hP,wP).ser(EP).de(CP).build(){}});var Yr;var j5=L(()=>{D();k();J();ls();Bw();Sr();Yr=class Yr extends W.classBuilder().ep(Oh).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("SWBPortalService","ListAccountRoles",{}).n("SSOClient","ListAccountRolesCommand").f(sP,void 0).ser(TP).de(IP).build(){}});var Mr;var O5=L(()=>{D();k();J();ls();Bw();Sr();Mr=class Mr extends W.classBuilder().ep(Oh).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("SWBPortalService","ListAccounts",{}).n("SSOClient","ListAccountsCommand").f($P,void 0).ser(UP).de(LP).build(){}});var MC;var QC=L(()=>{D();k();J();ls();Bw();Sr();MC=class MC extends W.classBuilder().ep(Oh).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("SWBPortalService","Logout",{}).n("SSOClient","LogoutCommand").f(rP,void 0).ser(FP).de(BP).build(){}});var X10,XP;var YP=L(()=>{J();YC();j5();O5();QC();zr();X10={GetRoleCredentialsCommand:Xr,ListAccountRolesCommand:Yr,ListAccountsCommand:Mr,LogoutCommand:MC};XP=class XP extends u1{};Is(X10,XP)});var MP=L(()=>{YC();j5();O5();QC()});var QP=()=>{};var KP,wY0;var ZP=L(()=>{KP=u(m0(),1);j5();zr();wY0=KP.createPaginator(u1,Yr,"nextToken","nextToken","maxResults")});var JP,EY0;var VP=L(()=>{JP=u(m0(),1);O5();zr();EY0=JP.createPaginator(u1,Mr,"nextToken","nextToken","maxResults")});var PP=L(()=>{QP();ZP();VP()});var HP=L(()=>{Bw()});var NP=L(()=>{zr();YP();MP();PP();HP()});var DP={};Ih(DP,{SSOClient:()=>u1,GetRoleCredentialsCommand:()=>Xr});var qP=L(()=>{NP()});var KC,Qr=!1,ZC=async({ssoStartUrl:f,ssoSession:h,ssoAccountId:w,ssoRegion:s,ssoRoleName:$,ssoClient:r,clientConfig:E,parentClientConfig:T,profile:U,logger:F})=>{let C,I="To refresh this SSO session run aws sso login with the corresponding profile.";if(h)try{let S0=await _J({profile:U})();C={accessToken:S0.token,expiresAt:new Date(S0.expiration).toISOString()}}catch(S0){throw new a(S0.message,{tryNextLink:Qr,logger:F})}else try{C=await IE(f)}catch(S0){throw new a("The SSO session associated with this profile is invalid. To refresh this SSO session run aws sso login with the corresponding profile.",{tryNextLink:Qr,logger:F})}if(new Date(C.expiresAt).getTime()-Date.now()<=0)throw new a("The SSO session associated with this profile has expired. To refresh this SSO session run aws sso login with the corresponding profile.",{tryNextLink:Qr,logger:F});let{accessToken:B}=C,{SSOClient:G,GetRoleCredentialsCommand:S}=await Promise.resolve().then(() => (qP(),DP)),Q=r||new G(Object.assign({},E??{},{logger:E?.logger??T?.logger,region:E?.region??s})),M;try{M=await Q.send(new S({accountId:w,roleName:$,accessToken:B}))}catch(S0){throw new a(S0,{tryNextLink:Qr,logger:F})}let{roleCredentials:{accessKeyId:q,secretAccessKey:N,sessionToken:y,expiration:n,credentialScope:L0,accountId:b0}={}}=M;if(!q||!N||!y||!n)throw new a("SSO returns an invalid temporary credential.",{tryNextLink:Qr,logger:F});let rf={accessKeyId:q,secretAccessKey:N,sessionToken:y,expiration:new Date(n),...L0&&{credentialScope:L0},...b0&&{accountId:b0}};if(h)KC.setCredentialFeature(rf,"CREDENTIALS_SSO","s");else KC.setCredentialFeature(rf,"CREDENTIALS_SSO_LEGACY","u");return rf};var kP=L(()=>{KC=u(Cf(),1);oJ();Y0();h1()});var JC=(f,h)=>{let{sso_start_url:w,sso_account_id:s,sso_region:$,sso_role_name:r}=f;if(!w||!s||!$||!r)throw new a(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(f).join(", ")}
|
|
51
|
-
Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:!1,logger:h});return f};var VC=L(()=>{Y0()});var Y10=(f={})=>async({callerClientConfig:h}={})=>{f.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");let{ssoStartUrl:w,ssoAccountId:s,ssoRegion:$,ssoRoleName:r,ssoSession:E}=f,{ssoClient:T}=f,U=kf({profile:f.profile??h?.profile});if(!w&&!s&&!$&&!r&&!E){let C=(await Jh(f))[U];if(!C)throw new a(`Profile ${U} was not found.`,{logger:f.logger});if(!C3(C))throw new a(`Profile ${U} is not configured with SSO credentials.`,{logger:f.logger});if(C?.sso_session){let q=(await AE(f))[C.sso_session],N=` configurations in profile ${U} and sso-session ${C.sso_session}`;if($&&$!==q.sso_region)throw new a("Conflicting SSO region"+N,{tryNextLink:!1,logger:f.logger});if(w&&w!==q.sso_start_url)throw new a("Conflicting SSO start_url"+N,{tryNextLink:!1,logger:f.logger});C.sso_region=q.sso_region,C.sso_start_url=q.sso_start_url}let{sso_start_url:I,sso_account_id:B,sso_region:G,sso_role_name:S,sso_session:Q}=JC(C,f.logger);return ZC({ssoStartUrl:I,ssoSession:Q,ssoAccountId:B,ssoRegion:G,ssoRoleName:S,ssoClient:T,clientConfig:f.clientConfig,parentClientConfig:f.parentClientConfig,profile:U})}else if(!w||!s||!$||!r)throw new a('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:!1,logger:f.logger});else return ZC({ssoStartUrl:w,ssoSession:E,ssoAccountId:s,ssoRegion:$,ssoRoleName:r,ssoClient:T,clientConfig:f.clientConfig,parentClientConfig:f.parentClientConfig,profile:U})};var yP=L(()=>{Y0();h1();kP();VC()});var jP=()=>{};var PC={};Ih(PC,{validateSsoProfile:()=>JC,isSsoProfile:()=>C3,fromSSO:()=>Y10});var HC=L(()=>{yP();jP();VC()});var OP,lP=(f,h,w)=>{let s={EcsContainer:async($)=>{let{fromHttp:r}=await Promise.resolve().then(() => (F3(),U3)),{fromContainerMetadata:E}=await Promise.resolve().then(() => (rr(),$r));return w?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer"),async()=>_1(r($??{}),E($))().then(NC)},Ec2InstanceMetadata:async($)=>{w?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");let{fromInstanceMetadata:r}=await Promise.resolve().then(() => (rr(),$r));return async()=>r($)().then(NC)},Environment:async($)=>{w?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");let{fromEnv:r}=await Promise.resolve().then(() => (nF(),K9));return async()=>r($)().then(NC)}};if(f in s)return s[f];else throw new a(`Unsupported credential source in profile ${h}. Got ${f}, expected EcsContainer or Ec2InstanceMetadata or Environment.`,{logger:w})},NC=(f)=>OP.setCredentialFeature(f,"CREDENTIALS_PROFILE_NAMED_PROVIDER","p");var vP=L(()=>{OP=u(Cf(),1);Y0()});var DC=H((mP)=>{Object.defineProperty(mP,"__esModule",{value:!0});mP.resolveHttpAuthSchemeConfig=mP.resolveStsAuthConfig=mP.defaultSTSHttpAuthSchemeProvider=mP.defaultSTSHttpAuthSchemeParametersProvider=void 0;var M10=O0(),bP=Lh(),Q10=Kr(),K10=async(f,h,w)=>{return{operation:bP.getSmithyContext(h).operation,region:await bP.normalizeProvider(f.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};mP.defaultSTSHttpAuthSchemeParametersProvider=K10;function Z10(f){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:f.region},propertiesExtractor:(h,w)=>({signingProperties:{config:h,context:w}})}}function J10(f){return{schemeId:"smithy.api#noAuth"}}var V10=(f)=>{let h=[];switch(f.operation){case"AssumeRoleWithWebIdentity":{h.push(J10(f));break}default:h.push(Z10(f))}return h};mP.defaultSTSHttpAuthSchemeProvider=V10;var P10=(f)=>Object.assign(f,{stsClientCtor:Q10.STSClient});mP.resolveStsAuthConfig=P10;var H10=(f)=>{let h=mP.resolveStsAuthConfig(f),w=M10.resolveAwsSdkSigV4Config(h);return Object.assign(w,{})};mP.resolveHttpAuthSchemeConfig=H10});var Zr=H((cP)=>{Object.defineProperty(cP,"__esModule",{value:!0});cP.commonParams=cP.resolveClientEndpointParameters=void 0;var q10=(f)=>{return Object.assign(f,{useDualstackEndpoint:f.useDualstackEndpoint??!1,useFipsEndpoint:f.useFipsEndpoint??!1,useGlobalEndpoint:f.useGlobalEndpoint??!1,defaultSigningName:"sts"})};cP.resolveClientEndpointParameters=q10;cP.commonParams={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 AH=H((LH)=>{Object.defineProperty(LH,"__esModule",{value:!0});LH.ruleSet=void 0;var wH="required",t="type",G0="fn",W0="argv",mh="ref",xP=!1,qC=!0,bh="booleanEquals",wf="stringEquals",sH="sigv4",$H="sts",rH="us-east-1",D0="endpoint",_P="https://sts.{Region}.{PartitionResult#dnsSuffix}",P1="tree",ps="error",yC="getAttr",nP={[wH]:!1,[t]:"String"},kC={[wH]:!0,default:!1,[t]:"Boolean"},EH={[mh]:"Endpoint"},eP={[G0]:"isSet",[W0]:[{[mh]:"Region"}]},sf={[mh]:"Region"},aP={[G0]:"aws.partition",[W0]:[sf],assign:"PartitionResult"},TH={[mh]:"UseFIPS"},UH={[mh]:"UseDualStack"},Tf={url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:sH,signingName:$H,signingRegion:rH}]},headers:{}},Zf={},oP={conditions:[{[G0]:wf,[W0]:[sf,"aws-global"]}],[D0]:Tf,[t]:D0},FH={[G0]:bh,[W0]:[TH,!0]},CH={[G0]:bh,[W0]:[UH,!0]},pP={[G0]:yC,[W0]:[{[mh]:"PartitionResult"},"supportsFIPS"]},IH={[mh]:"PartitionResult"},uP={[G0]:bh,[W0]:[!0,{[G0]:yC,[W0]:[IH,"supportsDualStack"]}]},tP=[{[G0]:"isSet",[W0]:[EH]}],fH=[FH],hH=[CH],y10={version:"1.0",parameters:{Region:nP,UseDualStack:kC,UseFIPS:kC,Endpoint:nP,UseGlobalEndpoint:kC},rules:[{conditions:[{[G0]:bh,[W0]:[{[mh]:"UseGlobalEndpoint"},qC]},{[G0]:"not",[W0]:tP},eP,aP,{[G0]:bh,[W0]:[TH,xP]},{[G0]:bh,[W0]:[UH,xP]}],rules:[{conditions:[{[G0]:wf,[W0]:[sf,"ap-northeast-1"]}],endpoint:Tf,[t]:D0},{conditions:[{[G0]:wf,[W0]:[sf,"ap-south-1"]}],endpoint:Tf,[t]:D0},{conditions:[{[G0]:wf,[W0]:[sf,"ap-southeast-1"]}],endpoint:Tf,[t]:D0},{conditions:[{[G0]:wf,[W0]:[sf,"ap-southeast-2"]}],endpoint:Tf,[t]:D0},oP,{conditions:[{[G0]:wf,[W0]:[sf,"ca-central-1"]}],endpoint:Tf,[t]:D0},{conditions:[{[G0]:wf,[W0]:[sf,"eu-central-1"]}],endpoint:Tf,[t]:D0},{conditions:[{[G0]:wf,[W0]:[sf,"eu-north-1"]}],endpoint:Tf,[t]:D0},{conditions:[{[G0]:wf,[W0]:[sf,"eu-west-1"]}],endpoint:Tf,[t]:D0},{conditions:[{[G0]:wf,[W0]:[sf,"eu-west-2"]}],endpoint:Tf,[t]:D0},{conditions:[{[G0]:wf,[W0]:[sf,"eu-west-3"]}],endpoint:Tf,[t]:D0},{conditions:[{[G0]:wf,[W0]:[sf,"sa-east-1"]}],endpoint:Tf,[t]:D0},{conditions:[{[G0]:wf,[W0]:[sf,rH]}],endpoint:Tf,[t]:D0},{conditions:[{[G0]:wf,[W0]:[sf,"us-east-2"]}],endpoint:Tf,[t]:D0},{conditions:[{[G0]:wf,[W0]:[sf,"us-west-1"]}],endpoint:Tf,[t]:D0},{conditions:[{[G0]:wf,[W0]:[sf,"us-west-2"]}],endpoint:Tf,[t]:D0},{endpoint:{url:_P,properties:{authSchemes:[{name:sH,signingName:$H,signingRegion:"{Region}"}]},headers:Zf},[t]:D0}],[t]:P1},{conditions:tP,rules:[{conditions:fH,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[t]:ps},{conditions:hH,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[t]:ps},{endpoint:{url:EH,properties:Zf,headers:Zf},[t]:D0}],[t]:P1},{conditions:[eP],rules:[{conditions:[aP],rules:[{conditions:[FH,CH],rules:[{conditions:[{[G0]:bh,[W0]:[qC,pP]},uP],rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Zf,headers:Zf},[t]:D0}],[t]:P1},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",[t]:ps}],[t]:P1},{conditions:fH,rules:[{conditions:[{[G0]:bh,[W0]:[pP,qC]}],rules:[{conditions:[{[G0]:wf,[W0]:[{[G0]:yC,[W0]:[IH,"name"]},"aws-us-gov"]}],endpoint:{url:"https://sts.{Region}.amazonaws.com",properties:Zf,headers:Zf},[t]:D0},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:Zf,headers:Zf},[t]:D0}],[t]:P1},{error:"FIPS is enabled but this partition does not support FIPS",[t]:ps}],[t]:P1},{conditions:hH,rules:[{conditions:[uP],rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Zf,headers:Zf},[t]:D0}],[t]:P1},{error:"DualStack is enabled but this partition does not support DualStack",[t]:ps}],[t]:P1},oP,{endpoint:{url:_P,properties:Zf,headers:Zf},[t]:D0}],[t]:P1}],[t]:P1},{error:"Invalid Configuration: Missing Region",[t]:ps}]};LH.ruleSet=y10});var zH=H((GH)=>{Object.defineProperty(GH,"__esModule",{value:!0});GH.defaultEndpointResolver=void 0;var j10=xE(),jC=cE(),O10=AH(),l10=new jC.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),v10=(f,h={})=>{return l10.get(f,()=>jC.resolveEndpoint(O10.ruleSet,{endpointParams:f,logger:h.logger}))};GH.defaultEndpointResolver=v10;jC.customEndpointFunctions.aws=j10.awsEndpointFunctions});var MH=H((XH)=>{Object.defineProperty(XH,"__esModule",{value:!0});XH.getRuntimeConfig=void 0;var b10=O0(),m10=m0(),d10=J0(),i10=Lr(),RH=Ah(),SH=uf(),c10=DC(),g10=zH(),x10=(f)=>{return{apiVersion:"2011-06-15",base64Decoder:f?.base64Decoder??RH.fromBase64,base64Encoder:f?.base64Encoder??RH.toBase64,disableHostPrefix:f?.disableHostPrefix??!1,endpointProvider:f?.endpointProvider??g10.defaultEndpointResolver,extensions:f?.extensions??[],httpAuthSchemeProvider:f?.httpAuthSchemeProvider??c10.defaultSTSHttpAuthSchemeProvider,httpAuthSchemes:f?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(h)=>h.getIdentityProvider("aws.auth#sigv4"),signer:new b10.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(h)=>h.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new m10.NoAuthSigner}],logger:f?.logger??new d10.NoOpLogger,serviceId:f?.serviceId??"STS",urlParser:f?.urlParser??i10.parseUrl,utf8Decoder:f?.utf8Decoder??SH.fromUtf8,utf8Encoder:f?.utf8Encoder??SH.toUtf8}};XH.getRuntimeConfig=x10});var HH=H((VH)=>{Object.defineProperty(VH,"__esModule",{value:!0});VH.getRuntimeConfig=void 0;var _10=d4(),n10=_10.__importDefault(x3()),QH=O0(),KH=n3(),l5=Ks(),e10=m0(),a10=o3(),ZH=Ar(),us=Vs(),JH=K4(),o10=p3(),p10=F5(),u10=MH(),t10=J0(),fh0=TC(),hh0=J0(),wh0=(f)=>{hh0.emitWarningIfUnsupportedVersion(process.version);let h=fh0.resolveDefaultsModeConfig(f),w=()=>h().then(t10.loadConfigsForDefaultMode),s=u10.getRuntimeConfig(f);QH.emitWarningIfUnsupportedVersion(process.version);let $={profile:f?.profile};return{...s,...f,runtime:"node",defaultsMode:h,bodyLengthChecker:f?.bodyLengthChecker??o10.calculateBodyLength,defaultUserAgentProvider:f?.defaultUserAgentProvider??KH.createDefaultUserAgentProvider({serviceId:s.serviceId,clientVersion:n10.default.version}),httpAuthSchemes:f?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(r)=>r.getIdentityProvider("aws.auth#sigv4")||(async(E)=>await f.credentialDefaultProvider(E?.__config||{})()),signer:new QH.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(r)=>r.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new e10.NoAuthSigner}],maxAttempts:f?.maxAttempts??us.loadConfig(ZH.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,f),region:f?.region??us.loadConfig(l5.NODE_REGION_CONFIG_OPTIONS,{...l5.NODE_REGION_CONFIG_FILE_OPTIONS,...$}),requestHandler:JH.NodeHttpHandler.create(f?.requestHandler??w),retryMode:f?.retryMode??us.loadConfig({...ZH.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await w()).retryMode||p10.DEFAULT_RETRY_MODE},f),sha256:f?.sha256??a10.Hash.bind(null,"sha256"),streamCollector:f?.streamCollector??JH.streamCollector,useDualstackEndpoint:f?.useDualstackEndpoint??us.loadConfig(l5.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,$),useFipsEndpoint:f?.useFipsEndpoint??us.loadConfig(l5.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,$),userAgentAppId:f?.userAgentAppId??us.loadConfig(KH.NODE_APP_ID_CONFIG_OPTIONS,$)}};VH.getRuntimeConfig=wh0});var qH=H((NH)=>{Object.defineProperty(NH,"__esModule",{value:!0});NH.resolveHttpAuthRuntimeConfig=NH.getHttpAuthExtensionConfiguration=void 0;var sh0=(f)=>{let{httpAuthSchemes:h,httpAuthSchemeProvider:w,credentials:s}=f;return{setHttpAuthScheme($){let r=h.findIndex((E)=>E.schemeId===$.schemeId);if(r===-1)h.push($);else h.splice(r,1,$)},httpAuthSchemes(){return h},setHttpAuthSchemeProvider($){w=$},httpAuthSchemeProvider(){return w},setCredentials($){s=$},credentials(){return s}}};NH.getHttpAuthExtensionConfiguration=sh0;var $h0=(f)=>{return{httpAuthSchemes:f.httpAuthSchemes(),httpAuthSchemeProvider:f.httpAuthSchemeProvider(),credentials:f.credentials()}};NH.resolveHttpAuthRuntimeConfig=$h0});var bH=H((lH)=>{Object.defineProperty(lH,"__esModule",{value:!0});lH.resolveRuntimeExtensions=void 0;var kH=UC(),yH=t0(),jH=J0(),OH=qH(),Eh0=(f,h)=>{let w=Object.assign(kH.getAwsRegionExtensionConfiguration(f),jH.getDefaultExtensionConfiguration(f),yH.getHttpHandlerExtensionConfiguration(f),OH.getHttpAuthExtensionConfiguration(f));return h.forEach((s)=>s.configure(w)),Object.assign(f,kH.resolveAwsRegionExtensionConfiguration(w),jH.resolveDefaultRuntimeConfig(w),yH.resolveHttpHandlerRuntimeConfig(w),OH.resolveHttpAuthRuntimeConfig(w))};lH.resolveRuntimeExtensions=Eh0});var Kr=H((lC)=>{Object.defineProperty(lC,"__esModule",{value:!0});lC.STSClient=lC.__Client=void 0;var mH=I3(),Th0=B3(),Uh0=G3(),dH=eE(),Fh0=Ks(),OC=m0(),Ch0=K3(),Ih0=Ps(),iH=Ar(),gH=J0();Object.defineProperty(lC,"__Client",{enumerable:!0,get:function(){return gH.Client}});var cH=DC(),Lh0=Zr(),Bh0=HH(),Ah0=bH();class xH extends gH.Client{config;constructor(...[f]){let h=Bh0.getRuntimeConfig(f||{});super(h);this.initConfig=h;let w=Lh0.resolveClientEndpointParameters(h),s=dH.resolveUserAgentConfig(w),$=iH.resolveRetryConfig(s),r=Fh0.resolveRegionConfig($),E=mH.resolveHostHeaderConfig(r),T=Ih0.resolveEndpointConfig(E),U=cH.resolveHttpAuthSchemeConfig(T),F=Ah0.resolveRuntimeExtensions(U,f?.extensions||[]);this.config=F,this.middlewareStack.use(dH.getUserAgentPlugin(this.config)),this.middlewareStack.use(iH.getRetryPlugin(this.config)),this.middlewareStack.use(Ch0.getContentLengthPlugin(this.config)),this.middlewareStack.use(mH.getHostHeaderPlugin(this.config)),this.middlewareStack.use(Th0.getLoggerPlugin(this.config)),this.middlewareStack.use(Uh0.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(OC.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:cH.defaultSTSHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async(C)=>new OC.DefaultIdentityProviderConfig({"aws.auth#sigv4":C.credentials})})),this.middlewareStack.use(OC.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}lC.STSClient=xH});var A6=H((aY0,B6)=>{var{defineProperty:v5,getOwnPropertyDescriptor:Gh0,getOwnPropertyNames:Wh0}=Object,zh0=Object.prototype.hasOwnProperty,e=(f,h)=>v5(f,"name",{value:h,configurable:!0}),Rh0=(f,h)=>{for(var w in h)v5(f,w,{get:h[w],enumerable:!0})},E6=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Wh0(h))if(!zh0.call(f,$)&&$!==w)v5(f,$,{get:()=>h[$],enumerable:!(s=Gh0(h,$))||s.enumerable})}return f},Sh0=(f,h,w)=>(E6(f,h,"default"),w&&E6(w,h,"default")),Xh0=(f)=>E6(v5({},"__esModule",{value:!0}),f),U6={};Rh0(U6,{AssumeRoleCommand:()=>I6,AssumeRoleResponseFilterSensitiveLog:()=>aH,AssumeRoleWithWebIdentityCommand:()=>L6,AssumeRoleWithWebIdentityRequestFilterSensitiveLog:()=>wN,AssumeRoleWithWebIdentityResponseFilterSensitiveLog:()=>sN,ClientInputEndpointParameters:()=>Lw0.ClientInputEndpointParameters,CredentialsFilterSensitiveLog:()=>F6,ExpiredTokenException:()=>oH,IDPCommunicationErrorException:()=>$N,IDPRejectedClaimException:()=>fN,InvalidIdentityTokenException:()=>hN,MalformedPolicyDocumentException:()=>pH,PackedPolicyTooLargeException:()=>uH,RegionDisabledException:()=>tH,STS:()=>GN,STSServiceException:()=>hh,decorateDefaultCredentialProvider:()=>Gw0,getDefaultRoleAssumer:()=>YN,getDefaultRoleAssumerWithWebIdentity:()=>MN});B6.exports=Xh0(U6);Sh0(U6,Kr(),B6.exports);var Yh0=J0(),Mh0=Ps(),Qh0=Ow(),Kh0=J0(),Zh0=Zr(),eH=J0(),Jh0=J0(),hh=class f extends Jh0.ServiceException{static{e(this,"STSServiceException")}constructor(h){super(h);Object.setPrototypeOf(this,f.prototype)}},F6=e((f)=>({...f,...f.SecretAccessKey&&{SecretAccessKey:eH.SENSITIVE_STRING}}),"CredentialsFilterSensitiveLog"),aH=e((f)=>({...f,...f.Credentials&&{Credentials:F6(f.Credentials)}}),"AssumeRoleResponseFilterSensitiveLog"),oH=class f extends hh{static{e(this,"ExpiredTokenException")}name="ExpiredTokenException";$fault="client";constructor(h){super({name:"ExpiredTokenException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype)}},pH=class f extends hh{static{e(this,"MalformedPolicyDocumentException")}name="MalformedPolicyDocumentException";$fault="client";constructor(h){super({name:"MalformedPolicyDocumentException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype)}},uH=class f extends hh{static{e(this,"PackedPolicyTooLargeException")}name="PackedPolicyTooLargeException";$fault="client";constructor(h){super({name:"PackedPolicyTooLargeException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype)}},tH=class f extends hh{static{e(this,"RegionDisabledException")}name="RegionDisabledException";$fault="client";constructor(h){super({name:"RegionDisabledException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype)}},fN=class f extends hh{static{e(this,"IDPRejectedClaimException")}name="IDPRejectedClaimException";$fault="client";constructor(h){super({name:"IDPRejectedClaimException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype)}},hN=class f extends hh{static{e(this,"InvalidIdentityTokenException")}name="InvalidIdentityTokenException";$fault="client";constructor(h){super({name:"InvalidIdentityTokenException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype)}},wN=e((f)=>({...f,...f.WebIdentityToken&&{WebIdentityToken:eH.SENSITIVE_STRING}}),"AssumeRoleWithWebIdentityRequestFilterSensitiveLog"),sN=e((f)=>({...f,...f.Credentials&&{Credentials:F6(f.Credentials)}}),"AssumeRoleWithWebIdentityResponseFilterSensitiveLog"),$N=class f extends hh{static{e(this,"IDPCommunicationErrorException")}name="IDPCommunicationErrorException";$fault="client";constructor(h){super({name:"IDPCommunicationErrorException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype)}},C6=O0(),Vh0=t0(),R0=J0(),Ph0=e(async(f,h)=>{let w=CN,s;return s=AN({...bh0(f,h),[LN]:sw0,[BN]:IN}),FN(h,w,"/",void 0,s)},"se_AssumeRoleCommand"),Hh0=e(async(f,h)=>{let w=CN,s;return s=AN({...mh0(f,h),[LN]:$w0,[BN]:IN}),FN(h,w,"/",void 0,s)},"se_AssumeRoleWithWebIdentityCommand"),Nh0=e(async(f,h)=>{if(f.statusCode>=300)return rN(f,h);let w=await C6.parseXmlBody(f.body,h),s={};return s=nh0(w.AssumeRoleResult,h),{$metadata:wh(f),...s}},"de_AssumeRoleCommand"),Dh0=e(async(f,h)=>{if(f.statusCode>=300)return rN(f,h);let w=await C6.parseXmlBody(f.body,h),s={};return s=eh0(w.AssumeRoleWithWebIdentityResult,h),{$metadata:wh(f),...s}},"de_AssumeRoleWithWebIdentityCommand"),rN=e(async(f,h)=>{let w={...f,body:await C6.parseXmlErrorBody(f.body,h)},s=rw0(f,w.body);switch(s){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await qh0(w,h);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await Oh0(w,h);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await lh0(w,h);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await vh0(w,h);case"IDPCommunicationError":case"com.amazonaws.sts#IDPCommunicationErrorException":throw await kh0(w,h);case"IDPRejectedClaim":case"com.amazonaws.sts#IDPRejectedClaimException":throw await yh0(w,h);case"InvalidIdentityToken":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await jh0(w,h);default:let $=w.body;return ww0({output:f,parsedBody:$.Error,errorCode:s})}},"de_CommandError"),qh0=e(async(f,h)=>{let w=f.body,s=ah0(w.Error,h),$=new oH({$metadata:wh(f),...s});return R0.decorateServiceException($,w)},"de_ExpiredTokenExceptionRes"),kh0=e(async(f,h)=>{let w=f.body,s=oh0(w.Error,h),$=new $N({$metadata:wh(f),...s});return R0.decorateServiceException($,w)},"de_IDPCommunicationErrorExceptionRes"),yh0=e(async(f,h)=>{let w=f.body,s=ph0(w.Error,h),$=new fN({$metadata:wh(f),...s});return R0.decorateServiceException($,w)},"de_IDPRejectedClaimExceptionRes"),jh0=e(async(f,h)=>{let w=f.body,s=uh0(w.Error,h),$=new hN({$metadata:wh(f),...s});return R0.decorateServiceException($,w)},"de_InvalidIdentityTokenExceptionRes"),Oh0=e(async(f,h)=>{let w=f.body,s=th0(w.Error,h),$=new pH({$metadata:wh(f),...s});return R0.decorateServiceException($,w)},"de_MalformedPolicyDocumentExceptionRes"),lh0=e(async(f,h)=>{let w=f.body,s=fw0(w.Error,h),$=new uH({$metadata:wh(f),...s});return R0.decorateServiceException($,w)},"de_PackedPolicyTooLargeExceptionRes"),vh0=e(async(f,h)=>{let w=f.body,s=hw0(w.Error,h),$=new tH({$metadata:wh(f),...s});return R0.decorateServiceException($,w)},"de_RegionDisabledExceptionRes"),bh0=e((f,h)=>{let w={};if(f[r$]!=null)w[r$]=f[r$];if(f[E$]!=null)w[E$]=f[E$];if(f[s$]!=null){let s=EN(f[s$],h);if(f[s$]?.length===0)w.PolicyArns=[];Object.entries(s).forEach(([$,r])=>{let E=`PolicyArns.${$}`;w[E]=r})}if(f[w$]!=null)w[w$]=f[w$];if(f[h$]!=null)w[h$]=f[h$];if(f[f6]!=null){let s=_h0(f[f6],h);if(f[f6]?.length===0)w.Tags=[];Object.entries(s).forEach(([$,r])=>{let E=`Tags.${$}`;w[E]=r})}if(f[w6]!=null){let s=xh0(f[w6],h);if(f[w6]?.length===0)w.TransitiveTagKeys=[];Object.entries(s).forEach(([$,r])=>{let E=`TransitiveTagKeys.${$}`;w[E]=r})}if(f[gC]!=null)w[gC]=f[gC];if(f[uC]!=null)w[uC]=f[uC];if(f[h6]!=null)w[h6]=f[h6];if(f[fh]!=null)w[fh]=f[fh];if(f[nC]!=null){let s=ch0(f[nC],h);if(f[nC]?.length===0)w.ProvidedContexts=[];Object.entries(s).forEach(([$,r])=>{let E=`ProvidedContexts.${$}`;w[E]=r})}return w},"se_AssumeRoleRequest"),mh0=e((f,h)=>{let w={};if(f[r$]!=null)w[r$]=f[r$];if(f[E$]!=null)w[E$]=f[E$];if(f[$6]!=null)w[$6]=f[$6];if(f[eC]!=null)w[eC]=f[eC];if(f[s$]!=null){let s=EN(f[s$],h);if(f[s$]?.length===0)w.PolicyArns=[];Object.entries(s).forEach(([$,r])=>{let E=`PolicyArns.${$}`;w[E]=r})}if(f[w$]!=null)w[w$]=f[w$];if(f[h$]!=null)w[h$]=f[h$];return w},"se_AssumeRoleWithWebIdentityRequest"),EN=e((f,h)=>{let w={},s=1;for(let $ of f){if($===null)continue;let r=dh0($,h);Object.entries(r).forEach(([E,T])=>{w[`member.${s}.${E}`]=T}),s++}return w},"se_policyDescriptorListType"),dh0=e((f,h)=>{let w={};if(f[r6]!=null)w[r6]=f[r6];return w},"se_PolicyDescriptorType"),ih0=e((f,h)=>{let w={};if(f[_C]!=null)w[_C]=f[_C];if(f[iC]!=null)w[iC]=f[iC];return w},"se_ProvidedContext"),ch0=e((f,h)=>{let w={},s=1;for(let $ of f){if($===null)continue;let r=ih0($,h);Object.entries(r).forEach(([E,T])=>{w[`member.${s}.${E}`]=T}),s++}return w},"se_ProvidedContextsListType"),gh0=e((f,h)=>{let w={};if(f[xC]!=null)w[xC]=f[xC];if(f[s6]!=null)w[s6]=f[s6];return w},"se_Tag"),xh0=e((f,h)=>{let w={},s=1;for(let $ of f){if($===null)continue;w[`member.${s}`]=$,s++}return w},"se_tagKeyListType"),_h0=e((f,h)=>{let w={},s=1;for(let $ of f){if($===null)continue;let r=gh0($,h);Object.entries(r).forEach(([E,T])=>{w[`member.${s}.${E}`]=T}),s++}return w},"se_tagListType"),TN=e((f,h)=>{let w={};if(f[bC]!=null)w[bC]=R0.expectString(f[bC]);if(f[mC]!=null)w[mC]=R0.expectString(f[mC]);return w},"de_AssumedRoleUser"),nh0=e((f,h)=>{let w={};if(f[f$]!=null)w[f$]=UN(f[f$],h);if(f[ts]!=null)w[ts]=TN(f[ts],h);if(f[$$]!=null)w[$$]=R0.strictParseInt32(f[$$]);if(f[fh]!=null)w[fh]=R0.expectString(f[fh]);return w},"de_AssumeRoleResponse"),eh0=e((f,h)=>{let w={};if(f[f$]!=null)w[f$]=UN(f[f$],h);if(f[pC]!=null)w[pC]=R0.expectString(f[pC]);if(f[ts]!=null)w[ts]=TN(f[ts],h);if(f[$$]!=null)w[$$]=R0.strictParseInt32(f[$$]);if(f[aC]!=null)w[aC]=R0.expectString(f[aC]);if(f[dC]!=null)w[dC]=R0.expectString(f[dC]);if(f[fh]!=null)w[fh]=R0.expectString(f[fh]);return w},"de_AssumeRoleWithWebIdentityResponse"),UN=e((f,h)=>{let w={};if(f[vC]!=null)w[vC]=R0.expectString(f[vC]);if(f[oC]!=null)w[oC]=R0.expectString(f[oC]);if(f[tC]!=null)w[tC]=R0.expectString(f[tC]);if(f[cC]!=null)w[cC]=R0.expectNonNull(R0.parseRfc3339DateTimeWithOffset(f[cC]));return w},"de_Credentials"),ah0=e((f,h)=>{let w={};if(f[i0]!=null)w[i0]=R0.expectString(f[i0]);return w},"de_ExpiredTokenException"),oh0=e((f,h)=>{let w={};if(f[i0]!=null)w[i0]=R0.expectString(f[i0]);return w},"de_IDPCommunicationErrorException"),ph0=e((f,h)=>{let w={};if(f[i0]!=null)w[i0]=R0.expectString(f[i0]);return w},"de_IDPRejectedClaimException"),uh0=e((f,h)=>{let w={};if(f[i0]!=null)w[i0]=R0.expectString(f[i0]);return w},"de_InvalidIdentityTokenException"),th0=e((f,h)=>{let w={};if(f[i0]!=null)w[i0]=R0.expectString(f[i0]);return w},"de_MalformedPolicyDocumentException"),fw0=e((f,h)=>{let w={};if(f[i0]!=null)w[i0]=R0.expectString(f[i0]);return w},"de_PackedPolicyTooLargeException"),hw0=e((f,h)=>{let w={};if(f[i0]!=null)w[i0]=R0.expectString(f[i0]);return w},"de_RegionDisabledException"),wh=e((f)=>({httpStatusCode:f.statusCode,requestId:f.headers["x-amzn-requestid"]??f.headers["x-amzn-request-id"]??f.headers["x-amz-request-id"],extendedRequestId:f.headers["x-amz-id-2"],cfId:f.headers["x-amz-cf-id"]}),"deserializeMetadata"),ww0=R0.withBaseException(hh),FN=e(async(f,h,w,s,$)=>{let{hostname:r,protocol:E="https",port:T,path:U}=await f.endpoint(),F={protocol:E,hostname:r,port:T,method:"POST",path:U.endsWith("/")?U.slice(0,-1)+w:U+w,headers:h};if(s!==void 0)F.hostname=s;if($!==void 0)F.body=$;return new Vh0.HttpRequest(F)},"buildHttpRpcRequest"),CN={"content-type":"application/x-www-form-urlencoded"},IN="2011-06-15",LN="Action",vC="AccessKeyId",sw0="AssumeRole",bC="AssumedRoleId",ts="AssumedRoleUser",$w0="AssumeRoleWithWebIdentity",mC="Arn",dC="Audience",f$="Credentials",iC="ContextAssertion",h$="DurationSeconds",cC="Expiration",gC="ExternalId",xC="Key",w$="Policy",s$="PolicyArns",_C="ProviderArn",nC="ProvidedContexts",eC="ProviderId",$$="PackedPolicySize",aC="Provider",r$="RoleArn",E$="RoleSessionName",oC="SecretAccessKey",pC="SubjectFromWebIdentityToken",fh="SourceIdentity",uC="SerialNumber",tC="SessionToken",f6="Tags",h6="TokenCode",w6="TransitiveTagKeys",BN="Version",s6="Value",$6="WebIdentityToken",r6="arn",i0="message",AN=e((f)=>Object.entries(f).map(([h,w])=>R0.extendedEncodeURIComponent(h)+"="+R0.extendedEncodeURIComponent(w)).join("&"),"buildFormUrlencodedString"),rw0=e((f,h)=>{if(h.Error?.Code!==void 0)return h.Error.Code;if(f.statusCode==404)return"NotFound"},"loadQueryErrorCode"),I6=class extends Kh0.Command.classBuilder().ep(Zh0.commonParams).m(function(f,h,w,s){return[Qh0.getSerdePlugin(w,this.serialize,this.deserialize),Mh0.getEndpointPlugin(w,f.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRole",{}).n("STSClient","AssumeRoleCommand").f(void 0,aH).ser(Ph0).de(Nh0).build(){static{e(this,"AssumeRoleCommand")}},Ew0=Ps(),Tw0=Ow(),Uw0=J0(),Fw0=Zr(),L6=class extends Uw0.Command.classBuilder().ep(Fw0.commonParams).m(function(f,h,w,s){return[Tw0.getSerdePlugin(w,this.serialize,this.deserialize),Ew0.getEndpointPlugin(w,f.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithWebIdentity",{}).n("STSClient","AssumeRoleWithWebIdentityCommand").f(wN,sN).ser(Hh0).de(Dh0).build(){static{e(this,"AssumeRoleWithWebIdentityCommand")}},Cw0=Kr(),Iw0={AssumeRoleCommand:I6,AssumeRoleWithWebIdentityCommand:L6},GN=class extends Cw0.STSClient{static{e(this,"STS")}};Yh0.createAggregatedClient(Iw0,GN);var Lw0=Zr(),T6=Cf(),nH="us-east-1",WN=e((f)=>{if(typeof f?.Arn==="string"){let h=f.Arn.split(":");if(h.length>4&&h[4]!=="")return h[4]}return},"getAccountIdFromAssumedRoleUser"),zN=e(async(f,h,w)=>{let s=typeof f==="function"?await f():f,$=typeof h==="function"?await h():h;return w?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${s} (provider)`,`${$} (parent client)`,`${nH} (STS default)`),s??$??nH},"resolveRegion"),Bw0=e((f,h)=>{let w,s;return async($,r)=>{if(s=$,!w){let{logger:C=f?.parentClientConfig?.logger,region:I,requestHandler:B=f?.parentClientConfig?.requestHandler,credentialProviderLogger:G}=f,S=await zN(I,f?.parentClientConfig?.region,G),Q=!RN(B);w=new h({profile:f?.parentClientConfig?.profile,credentialDefaultProvider:e(()=>async()=>s,"credentialDefaultProvider"),region:S,requestHandler:Q?B:void 0,logger:C})}let{Credentials:E,AssumedRoleUser:T}=await w.send(new I6(r));if(!E||!E.AccessKeyId||!E.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${r.RoleArn}`);let U=WN(T),F={accessKeyId:E.AccessKeyId,secretAccessKey:E.SecretAccessKey,sessionToken:E.SessionToken,expiration:E.Expiration,...E.CredentialScope&&{credentialScope:E.CredentialScope},...U&&{accountId:U}};return T6.setCredentialFeature(F,"CREDENTIALS_STS_ASSUME_ROLE","i"),F}},"getDefaultRoleAssumer"),Aw0=e((f,h)=>{let w;return async(s)=>{if(!w){let{logger:U=f?.parentClientConfig?.logger,region:F,requestHandler:C=f?.parentClientConfig?.requestHandler,credentialProviderLogger:I}=f,B=await zN(F,f?.parentClientConfig?.region,I),G=!RN(C);w=new h({profile:f?.parentClientConfig?.profile,region:B,requestHandler:G?C:void 0,logger:U})}let{Credentials:$,AssumedRoleUser:r}=await w.send(new L6(s));if(!$||!$.AccessKeyId||!$.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${s.RoleArn}`);let E=WN(r),T={accessKeyId:$.AccessKeyId,secretAccessKey:$.SecretAccessKey,sessionToken:$.SessionToken,expiration:$.Expiration,...$.CredentialScope&&{credentialScope:$.CredentialScope},...E&&{accountId:E}};if(E)T6.setCredentialFeature(T,"RESOLVED_ACCOUNT_ID","T");return T6.setCredentialFeature(T,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k"),T}},"getDefaultRoleAssumerWithWebIdentity"),RN=e((f)=>{return f?.metadata?.handlerProtocol==="h2"},"isH2"),SN=Kr(),XN=e((f,h)=>{if(!h)return f;else return class w extends f{static{e(this,"CustomizableSTSClient")}constructor(s){super(s);for(let $ of h)this.middlewareStack.use($)}}},"getCustomizableStsClientCtor"),YN=e((f={},h)=>Bw0(f,XN(SN.STSClient,h)),"getDefaultRoleAssumer"),MN=e((f={},h)=>Aw0(f,XN(SN.STSClient,h)),"getDefaultRoleAssumerWithWebIdentity"),Gw0=e((f)=>(h)=>f({roleAssumer:YN(h),roleAssumerWithWebIdentity:MN(h),...h}),"decorateDefaultCredentialProvider")});var G6,KN=(f,{profile:h="default",logger:w}={})=>{return Boolean(f)&&typeof f==="object"&&typeof f.role_arn==="string"&&["undefined","string"].indexOf(typeof f.role_session_name)>-1&&["undefined","string"].indexOf(typeof f.external_id)>-1&&["undefined","string"].indexOf(typeof f.mfa_serial)>-1&&(Ww0(f,{profile:h,logger:w})||zw0(f,{profile:h,logger:w}))},Ww0=(f,{profile:h,logger:w})=>{let s=typeof f.source_profile==="string"&&typeof f.credential_source==="undefined";if(s)w?.debug?.(` ${h} isAssumeRoleWithSourceProfile source_profile=${f.source_profile}`);return s},zw0=(f,{profile:h,logger:w})=>{let s=typeof f.credential_source==="string"&&typeof f.source_profile==="undefined";if(s)w?.debug?.(` ${h} isCredentialSourceProfile credential_source=${f.credential_source}`);return s},ZN=async(f,h,w,s={})=>{w.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");let $=h[f],{source_profile:r,region:E}=$;if(!w.roleAssumer){let{getDefaultRoleAssumer:U}=await Promise.resolve().then(() => u(A6(),1));w.roleAssumer=U({...w.clientConfig,credentialProviderLogger:w.logger,parentClientConfig:{...w?.parentClientConfig,region:E??w?.parentClientConfig?.region}},w.clientPlugins)}if(r&&r in s)throw new a(`Detected a cycle attempting to resolve credentials for profile ${kf(w)}. Profiles visited: `+Object.keys(s).join(", "),{logger:w.logger});w.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${r?`source_profile=[${r}]`:`profile=[${f}]`}`);let T=r?b5(r,h,w,{...s,[r]:!0},QN(h[r]??{})):(await lP($.credential_source,f,w.logger)(w))();if(QN($))return T.then((U)=>G6.setCredentialFeature(U,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"));else{let U={RoleArn:$.role_arn,RoleSessionName:$.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:$.external_id,DurationSeconds:parseInt($.duration_seconds||"3600",10)},{mfa_serial:F}=$;if(F){if(!w.mfaCodeProvider)throw new a(`Profile ${f} requires multi-factor authentication, but no MFA code callback was provided.`,{logger:w.logger,tryNextLink:!1});U.SerialNumber=F,U.TokenCode=await w.mfaCodeProvider(F)}let C=await T;return w.roleAssumer(C,U).then((I)=>G6.setCredentialFeature(I,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"))}},QN=(f)=>{return!f.role_arn&&!!f.credential_source};var JN=L(()=>{G6=u(Cf(),1);Y0();h1();vP();W6()});var VN,PN=(f,h,w)=>{if(h.Version!==1)throw Error(`Profile ${f} credential_process did not return Version 1.`);if(h.AccessKeyId===void 0||h.SecretAccessKey===void 0)throw Error(`Profile ${f} credential_process returned invalid credentials.`);if(h.Expiration){let r=new Date;if(new Date(h.Expiration)<r)throw Error(`Profile ${f} credential_process returned expired credentials.`)}let s=h.AccountId;if(!s&&w?.[f]?.aws_account_id)s=w[f].aws_account_id;let $={accessKeyId:h.AccessKeyId,secretAccessKey:h.SecretAccessKey,...h.SessionToken&&{sessionToken:h.SessionToken},...h.Expiration&&{expiration:new Date(h.Expiration)},...h.CredentialScope&&{credentialScope:h.CredentialScope},...s&&{accountId:s}};return VN.setCredentialFeature($,"CREDENTIALS_PROCESS","w"),$};var HN=L(()=>{VN=u(Cf(),1)});import{exec as Rw0}from"node:child_process";import{promisify as Sw0}from"node:util";var NN=async(f,h,w)=>{let s=h[f];if(h[f]){let $=s.credential_process;if($!==void 0){let r=Sw0(Rw0);try{let{stdout:E}=await r($),T;try{T=JSON.parse(E.trim())}catch{throw Error(`Profile ${f} credential_process returned invalid JSON.`)}return PN(f,T,h)}catch(E){throw new a(E.message,{logger:w})}}else throw new a(`Profile ${f} did not contain credential_process.`,{logger:w})}else throw new a(`Profile ${f} could not be found in shared credentials file.`,{logger:w})};var DN=L(()=>{Y0();HN()});var Xw0=(f={})=>async({callerClientConfig:h}={})=>{f.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");let w=await Jh(f);return NN(kf({profile:f.profile??h?.profile}),w,f.logger)};var qN=L(()=>{h1();DN()});var z6={};Ih(z6,{fromProcess:()=>Xw0});var R6=L(()=>{qN()});var kN,yN=(f)=>Boolean(f)&&typeof f==="object"&&typeof f.credential_process==="string",jN=async(f,h)=>Promise.resolve().then(() => (R6(),z6)).then(({fromProcess:w})=>w({...f,profile:h})().then((s)=>kN.setCredentialFeature(s,"CREDENTIALS_PROFILE_PROCESS","v")));var ON=L(()=>{kN=u(Cf(),1)});var S6,lN=async(f,h,w={})=>{let{fromSSO:s}=await Promise.resolve().then(() => (HC(),PC));return s({profile:f,logger:w.logger,parentClientConfig:w.parentClientConfig,clientConfig:w.clientConfig})().then(($)=>{if(h.sso_session)return S6.setCredentialFeature($,"CREDENTIALS_PROFILE_SSO","r");else return S6.setCredentialFeature($,"CREDENTIALS_PROFILE_SSO_LEGACY","t")})},vN=(f)=>f&&(typeof f.sso_start_url==="string"||typeof f.sso_account_id==="string"||typeof f.sso_session==="string"||typeof f.sso_region==="string"||typeof f.sso_role_name==="string");var bN=L(()=>{S6=u(Cf(),1)});var mN,X6=(f)=>Boolean(f)&&typeof f==="object"&&typeof f.aws_access_key_id==="string"&&typeof f.aws_secret_access_key==="string"&&["undefined","string"].indexOf(typeof f.aws_session_token)>-1&&["undefined","string"].indexOf(typeof f.aws_account_id)>-1,Y6=async(f,h)=>{h?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");let w={accessKeyId:f.aws_access_key_id,secretAccessKey:f.aws_secret_access_key,sessionToken:f.aws_session_token,...f.aws_credential_scope&&{credentialScope:f.aws_credential_scope},...f.aws_account_id&&{accountId:f.aws_account_id}};return mN.setCredentialFeature(w,"CREDENTIALS_PROFILE","n")};var dN=L(()=>{mN=u(Cf(),1)});var M6=(f)=>async(h)=>{f.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");let{roleArn:w,roleSessionName:s,webIdentityToken:$,providerId:r,policyArns:E,policy:T,durationSeconds:U}=f,{roleAssumerWithWebIdentity:F}=f;if(!F){let{getDefaultRoleAssumerWithWebIdentity:C}=await Promise.resolve().then(() => u(A6(),1));F=C({...f.clientConfig,credentialProviderLogger:f.logger,parentClientConfig:{...h?.callerClientConfig,...f.parentClientConfig}},f.clientPlugins)}return F({RoleArn:w,RoleSessionName:s??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:$,ProviderId:r,PolicyArns:E,Policy:T,DurationSeconds:U})};import{readFileSync as Yw0}from"node:fs";var cN,iN="AWS_WEB_IDENTITY_TOKEN_FILE",Mw0="AWS_ROLE_ARN",Qw0="AWS_ROLE_SESSION_NAME",Kw0=(f={})=>async()=>{f.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");let h=f?.webIdentityTokenFile??process.env[iN],w=f?.roleArn??process.env[Mw0],s=f?.roleSessionName??process.env[Qw0];if(!h||!w)throw new a("Web identity configuration not specified",{logger:f.logger});let $=await M6({...f,webIdentityToken:Yw0(h,{encoding:"ascii"}),roleArn:w,roleSessionName:s})();if(h===process.env[iN])cN.setCredentialFeature($,"CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN","h");return $};var gN=L(()=>{cN=u(Cf(),1);Y0()});var Q6={};Ih(Q6,{fromWebToken:()=>M6,fromTokenFile:()=>Kw0});var K6=L(()=>{gN()});var xN,_N=(f)=>Boolean(f)&&typeof f==="object"&&typeof f.web_identity_token_file==="string"&&typeof f.role_arn==="string"&&["undefined","string"].indexOf(typeof f.role_session_name)>-1,nN=async(f,h)=>Promise.resolve().then(() => (K6(),Q6)).then(({fromTokenFile:w})=>w({webIdentityTokenFile:f.web_identity_token_file,roleArn:f.role_arn,roleSessionName:f.role_session_name,roleAssumerWithWebIdentity:h.roleAssumerWithWebIdentity,logger:h.logger,parentClientConfig:h.parentClientConfig})().then((s)=>xN.setCredentialFeature(s,"CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN","q")));var eN=L(()=>{xN=u(Cf(),1)});var b5=async(f,h,w,s={},$=!1)=>{let r=h[f];if(Object.keys(s).length>0&&X6(r))return Y6(r,w);if($||KN(r,{profile:f,logger:w.logger}))return ZN(f,h,w,s);if(X6(r))return Y6(r,w);if(_N(r))return nN(r,w);if(yN(r))return jN(w,f);if(vN(r))return await lN(f,r,w);throw new a(`Could not resolve credentials using profile: [${f}] in configuration/credentials file(s).`,{logger:w.logger})};var W6=L(()=>{Y0();JN();ON();bN();dN();eN()});var Zw0=(f={})=>async({callerClientConfig:h}={})=>{let w={...f,parentClientConfig:{...h,...f.parentClientConfig}};w.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");let s=await Jh(w);return b5(kf({profile:f.profile??h?.profile}),s,w)};var aN=L(()=>{h1();W6()});var oN={};Ih(oN,{fromIni:()=>Zw0});var pN=L(()=>{aN()});F4();C4();I4();x$();Kh();var U$=u(m0(),1);UE();D();Uw();J();var L9=u(O0(),1);x1();var B9=async(f,h,w)=>{return{operation:Mh(h).operation,region:await Lf(f.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};function Zn(f){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"route53",region:f.region},propertiesExtractor:(h,w)=>({signingProperties:{config:h,context:w}})}}var A9=(f)=>{let h=[];switch(f.operation){default:h.push(Zn(f))}return h},G9=(f)=>{let h=L9.resolveAwsSdkSigV4Config(f);return Object.assign(h,{})};var W9=(f)=>{return Object.assign(f,{useDualstackEndpoint:f.useDualstackEndpoint??!1,useFipsEndpoint:f.useFipsEndpoint??!1,defaultSigningName:"route53"})},K={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var z9={name:"@aws-sdk/client-route-53",description:"AWS SDK for JavaScript Route 53 Client for Node.js, Browser and React Native",version:"3.775.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/core":"3.775.0","@aws-sdk/credential-provider-node":"3.775.0","@aws-sdk/middleware-host-header":"3.775.0","@aws-sdk/middleware-logger":"3.775.0","@aws-sdk/middleware-recursion-detection":"3.775.0","@aws-sdk/middleware-sdk-route53":"3.775.0","@aws-sdk/middleware-user-agent":"3.775.0","@aws-sdk/region-config-resolver":"3.775.0","@aws-sdk/types":"3.775.0","@aws-sdk/util-endpoints":"3.775.0","@aws-sdk/util-user-agent-browser":"3.775.0","@aws-sdk/util-user-agent-node":"3.775.0","@aws-sdk/xml-builder":"3.775.0","@smithy/config-resolver":"^4.1.0","@smithy/core":"^3.2.0","@smithy/fetch-http-handler":"^5.0.2","@smithy/hash-node":"^4.0.2","@smithy/invalid-dependency":"^4.0.2","@smithy/middleware-content-length":"^4.0.2","@smithy/middleware-endpoint":"^4.1.0","@smithy/middleware-retry":"^4.1.0","@smithy/middleware-serde":"^4.0.3","@smithy/middleware-stack":"^4.0.2","@smithy/node-config-provider":"^4.0.2","@smithy/node-http-handler":"^4.0.4","@smithy/protocol-http":"^5.1.0","@smithy/smithy-client":"^4.2.0","@smithy/types":"^4.2.0","@smithy/url-parser":"^4.0.2","@smithy/util-base64":"^4.0.0","@smithy/util-body-length-browser":"^4.0.0","@smithy/util-body-length-node":"^4.0.0","@smithy/util-defaults-mode-browser":"^4.0.8","@smithy/util-defaults-mode-node":"^4.0.8","@smithy/util-endpoints":"^3.0.2","@smithy/util-middleware":"^4.0.2","@smithy/util-retry":"^4.0.2","@smithy/util-utf8":"^4.0.0","@smithy/util-waiter":"^4.0.3",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node18":"18.2.4","@types/node":"^18.19.69",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~5.2.2"},engines:{node:">=18.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 WD=u(O0(),1);nF();Y0();h1();Y0();var GM="AWS_EC2_METADATA_DISABLED",WM=async(f)=>{let{ENV_CMDS_FULL_URI:h,ENV_CMDS_RELATIVE_URI:w,fromContainerMetadata:s,fromInstanceMetadata:$}=await Promise.resolve().then(() => (rr(),$r));if(process.env[w]||process.env[h]){f.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");let{fromHttp:r}=await Promise.resolve().then(() => (F3(),U3));return _1(r(f),s(f))}if(process.env[GM]&&process.env[GM]!=="false")return async()=>{throw new a("EC2 Instance Metadata Service access disabled",{logger:f.logger})};return f.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata"),$(f)};var uN=!1,m5=(f={})=>ww(_1(async()=>{if(f.profile??process.env[bS]){if(process.env[VE]&&process.env[PE]){if(!uN)(f.logger?.warn&&f.logger?.constructor?.name!=="NoOpLogger"?f.logger.warn:console.warn)(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING:
|
|
48
|
+
- EKS container host 169.254.170.23 or [fd00:ec2::23]`,{logger:h})};var tY=B(()=>{Y0()});function h9(f){return new n0({protocol:f.protocol,hostname:f.hostname,port:Number(f.port),path:f.pathname,query:Array.from(f.searchParams.entries()).reduce((h,[w,s])=>{return h[w]=s,h},{}),fragment:f.hash})}async function w9(f,h){let s=await f9.sdkStreamMixin(f.body).transformToString();if(f.statusCode===200){let $=JSON.parse(s);if(typeof $.AccessKeyId!=="string"||typeof $.SecretAccessKey!=="string"||typeof $.Token!=="string"||typeof $.Expiration!=="string")throw new a("HTTP credential provider response not of the required format, an object matching: { AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }",{logger:h});return{accessKeyId:$.AccessKeyId,secretAccessKey:$.SecretAccessKey,sessionToken:$.Token,expiration:dS($.Expiration)}}if(f.statusCode>=400&&f.statusCode<500){let $={};try{$=JSON.parse(s)}catch(r){}throw Object.assign(new a(`Server responded with status: ${f.statusCode}`,{logger:h}),{Code:$.Code,Message:$.Message})}throw new a(`Server responded with status: ${f.statusCode}`,{logger:h})}var f9;var s9=B(()=>{Y0();C1();J();f9=o(sU(),1)});var $9=(f,h,w)=>{return async()=>{for(let s=0;s<h;++s)try{return await f()}catch($){await new Promise((r)=>setTimeout(r,w))}return await f()}};import t_ from"node:fs/promises";var r9,fn="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",hn="http://169.254.170.2",wn="AWS_CONTAINER_CREDENTIALS_FULL_URI",sn="AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE",$n="AWS_CONTAINER_AUTHORIZATION_TOKEN",E9=(f={})=>{f.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let h,w=f.awsContainerCredentialsRelativeUri??process.env[fn],s=f.awsContainerCredentialsFullUri??process.env[wn],$=f.awsContainerAuthorizationToken??process.env[$n],r=f.awsContainerAuthorizationTokenFile??process.env[sn],E=f.logger?.constructor?.name==="NoOpLogger"||!f.logger?console.warn:f.logger.warn;if(w&&s)E("@aws-sdk/credential-provider-http: you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri."),E("awsContainerCredentialsFullUri will take precedence.");if($&&r)E("@aws-sdk/credential-provider-http: you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile."),E("awsContainerAuthorizationToken will take precedence.");if(s)h=s;else if(w)h=`${hn}${w}`;else throw new a(`No HTTP credential provider host provided.
|
|
49
|
+
Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`,{logger:f.logger});let T=new URL(h);uY(T,f.logger);let U=new rf({requestTimeout:f.timeout??1000,connectionTimeout:f.timeout??1000});return $9(async()=>{let F=h9(T);if($)F.headers.Authorization=$;else if(r)F.headers.Authorization=(await t_.readFile(r)).toString();try{let C=await U.handle(F);return w9(C.response).then((I)=>r9.setCredentialFeature(I,"CREDENTIALS_HTTP","z"))}catch(C){throw new a(String(C),{logger:f.logger})}},f.maxRetries??3,f.timeout??1000)};var T9=B(()=>{r9=o(I1(),1);hr();Y0();tY();s9()});var r3={};Ch(r3,{fromHttp:()=>E9});var E3=B(()=>{T9()});var T3=(f)=>f&&(typeof f.sso_start_url==="string"||typeof f.sso_account_id==="string"||typeof f.sso_session==="string"||typeof f.sso_region==="string"||typeof f.sso_role_name==="string");var C9=300000,Rs="To refresh this SSO session run 'aws sso login' with the corresponding profile.";var U3=H((bG0,W9)=>{var{defineProperty:y5,getOwnPropertyDescriptor:rn,getOwnPropertyNames:En}=Object,Tn=Object.prototype.hasOwnProperty,k5=(f,h)=>y5(f,"name",{value:h,configurable:!0}),Un=(f,h)=>{for(var w in h)y5(f,w,{get:h[w],enumerable:!0})},Fn=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of En(h))if(!Tn.call(f,$)&&$!==w)y5(f,$,{get:()=>h[$],enumerable:!(s=rn(h,$))||s.enumerable})}return f},Cn=(f)=>Fn(y5({},"__esModule",{value:!0}),f),I9={};Un(I9,{getHostHeaderPlugin:()=>Ln,hostHeaderMiddleware:()=>B9,hostHeaderMiddlewareOptions:()=>G9,resolveHostHeaderConfig:()=>L9});W9.exports=Cn(I9);var In=t0();function L9(f){return f}k5(L9,"resolveHostHeaderConfig");var B9=k5((f)=>(h)=>async(w)=>{if(!In.HttpRequest.isInstance(w.request))return h(w);let{request:s}=w,{handlerProtocol:$=""}=f.requestHandler.metadata||{};if($.indexOf("h2")>=0&&!s.headers[":authority"])delete s.headers.host,s.headers[":authority"]=s.hostname+(s.port?":"+s.port:"");else if(!s.headers.host){let r=s.hostname;if(s.port!=null)r+=`:${s.port}`;s.headers.host=r}return h(w)},"hostHeaderMiddleware"),G9={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},Ln=k5((f)=>({applyToStack:k5((h)=>{h.add(B9(f),G9)},"applyToStack")}),"getHostHeaderPlugin")});var C3=H((mG0,X9)=>{var{defineProperty:j5,getOwnPropertyDescriptor:Bn,getOwnPropertyNames:Gn}=Object,Wn=Object.prototype.hasOwnProperty,F3=(f,h)=>j5(f,"name",{value:h,configurable:!0}),An=(f,h)=>{for(var w in h)j5(f,w,{get:h[w],enumerable:!0})},zn=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Gn(h))if(!Wn.call(f,$)&&$!==w)j5(f,$,{get:()=>h[$],enumerable:!(s=Bn(h,$))||s.enumerable})}return f},Rn=(f)=>zn(j5({},"__esModule",{value:!0}),f),A9={};An(A9,{getLoggerPlugin:()=>Xn,loggerMiddleware:()=>z9,loggerMiddlewareOptions:()=>R9});X9.exports=Rn(A9);var z9=F3(()=>(f,h)=>async(w)=>{try{let s=await f(w),{clientName:$,commandName:r,logger:E,dynamoDbDocumentClientOptions:T={}}=h,{overrideInputFilterSensitiveLog:U,overrideOutputFilterSensitiveLog:F}=T,C=U??h.inputFilterSensitiveLog,I=F??h.outputFilterSensitiveLog,{$metadata:L,...W}=s.output;return E?.info?.({clientName:$,commandName:r,input:C(w.input),output:I(W),metadata:L}),s}catch(s){let{clientName:$,commandName:r,logger:E,dynamoDbDocumentClientOptions:T={}}=h,{overrideInputFilterSensitiveLog:U}=T,F=U??h.inputFilterSensitiveLog;throw E?.error?.({clientName:$,commandName:r,input:F(w.input),error:s,metadata:s.$metadata}),s}},"loggerMiddleware"),R9={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},Xn=F3((f)=>({applyToStack:F3((h)=>{h.add(z9(),R9)},"applyToStack")}),"getLoggerPlugin")});var L3=H((dG0,Q9)=>{var{defineProperty:l5,getOwnPropertyDescriptor:Sn,getOwnPropertyNames:Yn}=Object,Mn=Object.prototype.hasOwnProperty,O5=(f,h)=>l5(f,"name",{value:h,configurable:!0}),Qn=(f,h)=>{for(var w in h)l5(f,w,{get:h[w],enumerable:!0})},Kn=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Yn(h))if(!Mn.call(f,$)&&$!==w)l5(f,$,{get:()=>h[$],enumerable:!(s=Sn(h,$))||s.enumerable})}return f},Zn=(f)=>Kn(l5({},"__esModule",{value:!0}),f),S9={};Qn(S9,{addRecursionDetectionMiddlewareOptions:()=>M9,getRecursionDetectionPlugin:()=>Hn,recursionDetectionMiddleware:()=>Y9});Q9.exports=Zn(S9);var Jn=t0(),I3="X-Amzn-Trace-Id",Vn="AWS_LAMBDA_FUNCTION_NAME",Pn="_X_AMZN_TRACE_ID",Y9=O5((f)=>(h)=>async(w)=>{let{request:s}=w;if(!Jn.HttpRequest.isInstance(s)||f.runtime!=="node")return h(w);let $=Object.keys(s.headers??{}).find((U)=>U.toLowerCase()===I3.toLowerCase())??I3;if(s.headers.hasOwnProperty($))return h(w);let r=process.env[Vn],E=process.env[Pn],T=O5((U)=>typeof U==="string"&&U.length>0,"nonEmptyString");if(T(r)&&T(E))s.headers[I3]=E;return h({...w,request:s})},"recursionDetectionMiddleware"),M9={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},Hn=O5((f)=>({applyToStack:O5((h)=>{h.add(Y9(f),M9)},"applyToStack")}),"getRecursionDetectionPlugin")});var m5=H((iG0,q9)=>{var{defineProperty:v5,getOwnPropertyDescriptor:Nn,getOwnPropertyNames:Dn}=Object,qn=Object.prototype.hasOwnProperty,Q0=(f,h)=>v5(f,"name",{value:h,configurable:!0}),kn=(f,h)=>{for(var w in h)v5(f,w,{get:h[w],enumerable:!0})},yn=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Dn(h))if(!qn.call(f,$)&&$!==w)v5(f,$,{get:()=>h[$],enumerable:!(s=Nn(h,$))||s.enumerable})}return f},jn=(f)=>yn(v5({},"__esModule",{value:!0}),f),K9={};kn(K9,{EndpointCache:()=>On,EndpointError:()=>M1,customEndpointFunctions:()=>G3,isIpAddress:()=>Z9,isValidHostLabel:()=>A3,resolveEndpoint:()=>we});q9.exports=jn(K9);var On=class{constructor({size:f,params:h}){if(this.data=new Map,this.parameters=[],this.capacity=f??50,h)this.parameters=h}static{Q0(this,"EndpointCache")}get(f,h){let w=this.hash(f);if(w===!1)return h();if(!this.data.has(w)){if(this.data.size>this.capacity+10){let s=this.data.keys(),$=0;while(!0){let{value:r,done:E}=s.next();if(this.data.delete(r),E||++$>10)break}}this.data.set(w,h())}return this.data.get(w)}size(){return this.data.size}hash(f){let h="",{parameters:w}=this;if(w.length===0)return!1;for(let s of w){let $=String(f[s]??"");if($.includes("|;"))return!1;h+=$+"|;"}return h}},ln=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}$"),Z9=Q0((f)=>ln.test(f)||f.startsWith("[")&&f.endsWith("]"),"isIpAddress"),vn=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),A3=Q0((f,h=!1)=>{if(!h)return vn.test(f);let w=f.split(".");for(let s of w)if(!A3(s))return!1;return!0},"isValidHostLabel"),G3={},wr="endpoints";function ef(f){if(typeof f!=="object"||f==null)return f;if("ref"in f)return`$${ef(f.ref)}`;if("fn"in f)return`${f.fn}(${(f.argv||[]).map(ef).join(", ")})`;return JSON.stringify(f,null,2)}Q0(ef,"toDebugString");var M1=class extends Error{static{Q0(this,"EndpointError")}constructor(f){super(f);this.name="EndpointError"}},bn=Q0((f,h)=>f===h,"booleanEquals"),mn=Q0((f)=>{let h=f.split("."),w=[];for(let s of h){let $=s.indexOf("[");if($!==-1){if(s.indexOf("]")!==s.length-1)throw new M1(`Path: '${f}' does not end with ']'`);let r=s.slice($+1,-1);if(Number.isNaN(parseInt(r)))throw new M1(`Invalid array index: '${r}' in path: '${f}'`);if($!==0)w.push(s.slice(0,$));w.push(r)}else w.push(s)}return w},"getAttrPathList"),J9=Q0((f,h)=>mn(h).reduce((w,s)=>{if(typeof w!=="object")throw new M1(`Index '${s}' in '${h}' not found in '${JSON.stringify(f)}'`);else if(Array.isArray(w))return w[parseInt(s)];return w[s]},f),"getAttr"),dn=Q0((f)=>f!=null,"isSet"),cn=Q0((f)=>!f,"not"),W3=F1(),B3={[W3.EndpointURLScheme.HTTP]:80,[W3.EndpointURLScheme.HTTPS]:443},gn=Q0((f)=>{let h=(()=>{try{if(f instanceof URL)return f;if(typeof f==="object"&&"hostname"in f){let{hostname:L,port:W,protocol:X="",path:Q="",query:M={}}=f,q=new URL(`${X}//${L}${W?`:${W}`:""}${Q}`);return q.search=Object.entries(M).map(([N,y])=>`${N}=${y}`).join("&"),q}return new URL(f)}catch(L){return null}})();if(!h)return console.error(`Unable to parse ${JSON.stringify(f)} as a whatwg URL.`),null;let w=h.href,{host:s,hostname:$,pathname:r,protocol:E,search:T}=h;if(T)return null;let U=E.slice(0,-1);if(!Object.values(W3.EndpointURLScheme).includes(U))return null;let F=Z9($),C=w.includes(`${s}:${B3[U]}`)||typeof f==="string"&&f.includes(`${s}:${B3[U]}`),I=`${s}${C?`:${B3[U]}`:""}`;return{scheme:U,authority:I,path:r,normalizedPath:r.endsWith("/")?r:`${r}/`,isIp:F}},"parseURL"),xn=Q0((f,h)=>f===h,"stringEquals"),_n=Q0((f,h,w,s)=>{if(h>=w||f.length<w)return null;if(!s)return f.substring(h,w);return f.substring(f.length-w,f.length-h)},"substring"),nn=Q0((f)=>encodeURIComponent(f).replace(/[!*'()]/g,(h)=>`%${h.charCodeAt(0).toString(16).toUpperCase()}`),"uriEncode"),en={booleanEquals:bn,getAttr:J9,isSet:dn,isValidHostLabel:A3,not:cn,parseURL:gn,stringEquals:xn,substring:_n,uriEncode:nn},V9=Q0((f,h)=>{let w=[],s={...h.endpointParams,...h.referenceRecord},$=0;while($<f.length){let r=f.indexOf("{",$);if(r===-1){w.push(f.slice($));break}w.push(f.slice($,r));let E=f.indexOf("}",r);if(E===-1){w.push(f.slice(r));break}if(f[r+1]==="{"&&f[E+1]==="}")w.push(f.slice(r+1,E)),$=E+2;let T=f.substring(r+1,E);if(T.includes("#")){let[U,F]=T.split("#");w.push(J9(s[U],F))}else w.push(s[T]);$=E+1}return w.join("")},"evaluateTemplate"),an=Q0(({ref:f},h)=>{return{...h.endpointParams,...h.referenceRecord}[f]},"getReferenceValue"),b5=Q0((f,h,w)=>{if(typeof f==="string")return V9(f,w);else if(f.fn)return P9(f,w);else if(f.ref)return an(f,w);throw new M1(`'${h}': ${String(f)} is not a string, function or reference.`)},"evaluateExpression"),P9=Q0(({fn:f,argv:h},w)=>{let s=h.map((r)=>["boolean","number"].includes(typeof r)?r:b5(r,"arg",w)),$=f.split(".");if($[0]in G3&&$[1]!=null)return G3[$[0]][$[1]](...s);return en[f](...s)},"callFunction"),pn=Q0(({assign:f,...h},w)=>{if(f&&f in w.referenceRecord)throw new M1(`'${f}' is already defined in Reference Record.`);let s=P9(h,w);return w.logger?.debug?.(`${wr} evaluateCondition: ${ef(h)} = ${ef(s)}`),{result:s===""?!0:!!s,...f!=null&&{toAssign:{name:f,value:s}}}},"evaluateCondition"),z3=Q0((f=[],h)=>{let w={};for(let s of f){let{result:$,toAssign:r}=pn(s,{...h,referenceRecord:{...h.referenceRecord,...w}});if(!$)return{result:$};if(r)w[r.name]=r.value,h.logger?.debug?.(`${wr} assign: ${r.name} := ${ef(r.value)}`)}return{result:!0,referenceRecord:w}},"evaluateConditions"),on=Q0((f,h)=>Object.entries(f).reduce((w,[s,$])=>({...w,[s]:$.map((r)=>{let E=b5(r,"Header value entry",h);if(typeof E!=="string")throw new M1(`Header '${s}' value '${E}' is not a string`);return E})}),{}),"getEndpointHeaders"),H9=Q0((f,h)=>{if(Array.isArray(f))return f.map((w)=>H9(w,h));switch(typeof f){case"string":return V9(f,h);case"object":if(f===null)throw new M1(`Unexpected endpoint property: ${f}`);return N9(f,h);case"boolean":return f;default:throw new M1(`Unexpected endpoint property type: ${typeof f}`)}},"getEndpointProperty"),N9=Q0((f,h)=>Object.entries(f).reduce((w,[s,$])=>({...w,[s]:H9($,h)}),{}),"getEndpointProperties"),un=Q0((f,h)=>{let w=b5(f,"Endpoint URL",h);if(typeof w==="string")try{return new URL(w)}catch(s){throw console.error(`Failed to construct URL with ${w}`,s),s}throw new M1(`Endpoint URL must be a string, got ${typeof w}`)},"getEndpointUrl"),tn=Q0((f,h)=>{let{conditions:w,endpoint:s}=f,{result:$,referenceRecord:r}=z3(w,h);if(!$)return;let E={...h,referenceRecord:{...h.referenceRecord,...r}},{url:T,properties:U,headers:F}=s;return h.logger?.debug?.(`${wr} Resolving endpoint from template: ${ef(s)}`),{...F!=null&&{headers:on(F,E)},...U!=null&&{properties:N9(U,E)},url:un(T,E)}},"evaluateEndpointRule"),fe=Q0((f,h)=>{let{conditions:w,error:s}=f,{result:$,referenceRecord:r}=z3(w,h);if(!$)return;throw new M1(b5(s,"Error",{...h,referenceRecord:{...h.referenceRecord,...r}}))},"evaluateErrorRule"),he=Q0((f,h)=>{let{conditions:w,rules:s}=f,{result:$,referenceRecord:r}=z3(w,h);if(!$)return;return D9(s,{...h,referenceRecord:{...h.referenceRecord,...r}})},"evaluateTreeRule"),D9=Q0((f,h)=>{for(let w of f)if(w.type==="endpoint"){let s=tn(w,h);if(s)return s}else if(w.type==="error")fe(w,h);else if(w.type==="tree"){let s=he(w,h);if(s)return s}else throw new M1(`Unknown endpoint rule: ${w}`);throw new M1("Rules evaluation failed")},"evaluateRules"),we=Q0((f,h)=>{let{endpointParams:w,logger:s}=h,{parameters:$,rules:r}=f;h.logger?.debug?.(`${wr} Initial EndpointParams: ${ef(w)}`);let E=Object.entries($).filter(([,F])=>F.default!=null).map(([F,C])=>[F,C.default]);if(E.length>0)for(let[F,C]of E)w[F]=w[F]??C;let T=Object.entries($).filter(([,F])=>F.required).map(([F])=>F);for(let F of T)if(w[F]==null)throw new M1(`Missing required parameter: '${F}'`);let U=D9(r,{endpointParams:w,logger:s,referenceRecord:{}});return h.logger?.debug?.(`${wr} Resolved endpoint: ${ef(U)}`),U},"resolveEndpoint")});var i5=H((xG0,i9)=>{var{defineProperty:d5,getOwnPropertyDescriptor:se,getOwnPropertyNames:$e}=Object,re=Object.prototype.hasOwnProperty,Xs=(f,h)=>d5(f,"name",{value:h,configurable:!0}),Ee=(f,h)=>{for(var w in h)d5(f,w,{get:h[w],enumerable:!0})},Te=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of $e(h))if(!re.call(f,$)&&$!==w)d5(f,$,{get:()=>h[$],enumerable:!(s=se(h,$))||s.enumerable})}return f},Ue=(f)=>Te(d5({},"__esModule",{value:!0}),f),y9={};Ee(y9,{ConditionObject:()=>V0.ConditionObject,DeprecatedObject:()=>V0.DeprecatedObject,EndpointError:()=>V0.EndpointError,EndpointObject:()=>V0.EndpointObject,EndpointObjectHeaders:()=>V0.EndpointObjectHeaders,EndpointObjectProperties:()=>V0.EndpointObjectProperties,EndpointParams:()=>V0.EndpointParams,EndpointResolverOptions:()=>V0.EndpointResolverOptions,EndpointRuleObject:()=>V0.EndpointRuleObject,ErrorRuleObject:()=>V0.ErrorRuleObject,EvaluateOptions:()=>V0.EvaluateOptions,Expression:()=>V0.Expression,FunctionArgv:()=>V0.FunctionArgv,FunctionObject:()=>V0.FunctionObject,FunctionReturn:()=>V0.FunctionReturn,ParameterObject:()=>V0.ParameterObject,ReferenceObject:()=>V0.ReferenceObject,ReferenceRecord:()=>V0.ReferenceRecord,RuleSetObject:()=>V0.RuleSetObject,RuleSetRules:()=>V0.RuleSetRules,TreeRuleObject:()=>V0.TreeRuleObject,awsEndpointFunctions:()=>d9,getUserAgentPrefix:()=>Le,isIpAddress:()=>V0.isIpAddress,partition:()=>b9,resolveEndpoint:()=>V0.resolveEndpoint,setPartitionInfo:()=>m9,useDefaultPartitionInfo:()=>Ie});i9.exports=Ue(y9);var V0=m5(),j9=Xs((f,h=!1)=>{if(h){for(let w of f.split("."))if(!j9(w))return!1;return!0}if(!V0.isValidHostLabel(f))return!1;if(f.length<3||f.length>63)return!1;if(f!==f.toLowerCase())return!1;if(V0.isIpAddress(f))return!1;return!0},"isVirtualHostableS3Bucket"),k9=":",Fe="/",Ce=Xs((f)=>{let h=f.split(k9);if(h.length<6)return null;let[w,s,$,r,E,...T]=h;if(w!=="arn"||s===""||$===""||T.join(k9)==="")return null;let U=T.map((F)=>F.split(Fe)).flat();return{partition:s,service:$,region:r,accountId:E,resourceId:U}},"parseArn"),O9={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)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"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)"},"mx-central-1":{description:"Mexico (Central)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"AWS 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:{"aws-iso-f-global":{description:"AWS ISOF global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}}],version:"1.1"},l9=O9,v9="",b9=Xs((f)=>{let{partitions:h}=l9;for(let s of h){let{regions:$,outputs:r}=s;for(let[E,T]of Object.entries($))if(E===f)return{...r,...T}}for(let s of h){let{regionRegex:$,outputs:r}=s;if(new RegExp($).test(f))return{...r}}let w=h.find((s)=>s.id==="aws");if(!w)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...w.outputs}},"partition"),m9=Xs((f,h="")=>{l9=f,v9=h},"setPartitionInfo"),Ie=Xs(()=>{m9(O9,"")},"useDefaultPartitionInfo"),Le=Xs(()=>v9,"getUserAgentPrefix"),d9={isVirtualHostableS3Bucket:j9,parseArn:Ce,partition:b9};V0.customEndpointFunctions.aws=d9});var x5=H((_G0,fM)=>{var{defineProperty:g5,getOwnPropertyDescriptor:Be,getOwnPropertyNames:Ge}=Object,We=Object.prototype.hasOwnProperty,af=(f,h)=>g5(f,"name",{value:h,configurable:!0}),Ae=(f,h)=>{for(var w in h)g5(f,w,{get:h[w],enumerable:!0})},ze=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Ge(h))if(!We.call(f,$)&&$!==w)g5(f,$,{get:()=>h[$],enumerable:!(s=Be(h,$))||s.enumerable})}return f},Re=(f)=>ze(g5({},"__esModule",{value:!0}),f),_9={};Ae(_9,{DEFAULT_UA_APP_ID:()=>n9,getUserAgentMiddlewareOptions:()=>t9,getUserAgentPlugin:()=>Je,resolveUserAgentConfig:()=>a9,userAgentMiddleware:()=>u9});fM.exports=Re(_9);var Xe=m0(),n9=void 0;function e9(f){if(f===void 0)return!0;return typeof f==="string"&&f.length<=50}af(e9,"isValidUserAgentAppId");function a9(f){let h=Xe.normalizeProvider(f.userAgentAppId??n9),{customUserAgent:w}=f;return Object.assign(f,{customUserAgent:typeof w==="string"?[[w]]:w,userAgentAppId:af(async()=>{let s=await h();if(!e9(s)){let $=f.logger?.constructor?.name==="NoOpLogger"||!f.logger?console:f.logger;if(typeof s!=="string")$?.warn("userAgentAppId must be a string or undefined.");else if(s.length>50)$?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return s},"userAgentAppId")})}af(a9,"resolveUserAgentConfig");var Se=i5(),Ye=t0(),Kf=O0(),Me=/\d{12}\.ddb/;async function p9(f,h,w){if(w.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor")Kf.setFeature(f,"PROTOCOL_RPC_V2_CBOR","M");if(typeof h.retryStrategy==="function"){let r=await h.retryStrategy();if(typeof r.acquireInitialRetryToken==="function")if(r.constructor?.name?.includes("Adaptive"))Kf.setFeature(f,"RETRY_MODE_ADAPTIVE","F");else Kf.setFeature(f,"RETRY_MODE_STANDARD","E");else Kf.setFeature(f,"RETRY_MODE_LEGACY","D")}if(typeof h.accountIdEndpointMode==="function"){let r=f.endpointV2;if(String(r?.url?.hostname).match(Me))Kf.setFeature(f,"ACCOUNT_ID_ENDPOINT","O");switch(await h.accountIdEndpointMode?.()){case"disabled":Kf.setFeature(f,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":Kf.setFeature(f,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":Kf.setFeature(f,"ACCOUNT_ID_MODE_REQUIRED","R");break}}let $=f.__smithy_context?.selectedHttpAuthScheme?.identity;if($?.$source){let r=$;if(r.accountId)Kf.setFeature(f,"RESOLVED_ACCOUNT_ID","T");for(let[E,T]of Object.entries(r.$source??{}))Kf.setFeature(f,E,T)}}af(p9,"checkFeatures");var c9="user-agent",R3="x-amz-user-agent",g9=" ",X3="/",Qe=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,Ke=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g,x9="-",Ze=1024;function o9(f){let h="";for(let w in f){let s=f[w];if(h.length+s.length+1<=Ze){if(h.length)h+=","+s;else h+=s;continue}break}return h}af(o9,"encodeFeatures");var u9=af((f)=>(h,w)=>async(s)=>{let{request:$}=s;if(!Ye.HttpRequest.isInstance($))return h(s);let{headers:r}=$,E=w?.userAgent?.map(c5)||[],T=(await f.defaultUserAgentProvider()).map(c5);await p9(w,f,s);let U=w;T.push(`m/${o9(Object.assign({},w.__smithy_context?.features,U.__aws_sdk_context?.features))}`);let F=f?.customUserAgent?.map(c5)||[],C=await f.userAgentAppId();if(C)T.push(c5([`app/${C}`]));let I=Se.getUserAgentPrefix(),L=(I?[I]:[]).concat([...T,...E,...F]).join(g9),W=[...T.filter((X)=>X.startsWith("aws-sdk-")),...F].join(g9);if(f.runtime!=="browser"){if(W)r[R3]=r[R3]?`${r[c9]} ${W}`:W;r[c9]=L}else r[R3]=L;return h({...s,request:$})},"userAgentMiddleware"),c5=af((f)=>{let h=f[0].split(X3).map((E)=>E.replace(Qe,x9)).join(X3),w=f[1]?.replace(Ke,x9),s=h.indexOf(X3),$=h.substring(0,s),r=h.substring(s+1);if($==="api")r=r.toLowerCase();return[$,r,w].filter((E)=>E&&E.length>0).reduce((E,T,U)=>{switch(U){case 0:return T;case 1:return`${E}/${T}`;default:return`${E}#${T}`}},"")},"escapeUserAgent"),t9={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},Je=af((f)=>({applyToStack:af((h)=>{h.add(u9(f),t9)},"applyToStack")}),"getUserAgentPlugin")});var rM=H((nG0,$M)=>{var{defineProperty:_5,getOwnPropertyDescriptor:Ve,getOwnPropertyNames:Pe}=Object,He=Object.prototype.hasOwnProperty,hM=(f,h)=>_5(f,"name",{value:h,configurable:!0}),Ne=(f,h)=>{for(var w in h)_5(f,w,{get:h[w],enumerable:!0})},De=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Pe(h))if(!He.call(f,$)&&$!==w)_5(f,$,{get:()=>h[$],enumerable:!(s=Ve(h,$))||s.enumerable})}return f},qe=(f)=>De(_5({},"__esModule",{value:!0}),f),wM={};Ne(wM,{SelectorType:()=>sM,booleanSelector:()=>ke,numberSelector:()=>ye});$M.exports=qe(wM);var ke=hM((f,h,w)=>{if(!(h in f))return;if(f[h]==="true")return!0;if(f[h]==="false")return!1;throw new Error(`Cannot load ${w} "${h}". Expected "true" or "false", got ${f[h]}.`)},"booleanSelector"),ye=hM((f,h,w)=>{if(!(h in f))return;let s=parseInt(f[h],10);if(Number.isNaN(s))throw new TypeError(`Cannot load ${w} '${h}'. Expected number, got '${f[h]}'.`);return s},"numberSelector"),sM=((f)=>{return f.ENV="env",f.CONFIG="shared config entry",f})(sM||{})});var Ss=H((eG0,AM)=>{var{defineProperty:e5,getOwnPropertyDescriptor:je,getOwnPropertyNames:Oe}=Object,le=Object.prototype.hasOwnProperty,Ef=(f,h)=>e5(f,"name",{value:h,configurable:!0}),ve=(f,h)=>{for(var w in h)e5(f,w,{get:h[w],enumerable:!0})},be=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Oe(h))if(!le.call(f,$)&&$!==w)e5(f,$,{get:()=>h[$],enumerable:!(s=je(h,$))||s.enumerable})}return f},me=(f)=>be(e5({},"__esModule",{value:!0}),f),UM={};ve(UM,{CONFIG_USE_DUALSTACK_ENDPOINT:()=>CM,CONFIG_USE_FIPS_ENDPOINT:()=>LM,DEFAULT_USE_DUALSTACK_ENDPOINT:()=>de,DEFAULT_USE_FIPS_ENDPOINT:()=>ce,ENV_USE_DUALSTACK_ENDPOINT:()=>FM,ENV_USE_FIPS_ENDPOINT:()=>IM,NODE_REGION_CONFIG_FILE_OPTIONS:()=>ae,NODE_REGION_CONFIG_OPTIONS:()=>ee,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:()=>ie,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:()=>ge,REGION_ENV_NAME:()=>BM,REGION_INI_NAME:()=>GM,getRegionInfo:()=>fa,resolveCustomEndpointsConfig:()=>xe,resolveEndpointsConfig:()=>ne,resolveRegionConfig:()=>pe});AM.exports=me(UM);var qh=rM(),FM="AWS_USE_DUALSTACK_ENDPOINT",CM="use_dualstack_endpoint",de=!1,ie={environmentVariableSelector:(f)=>qh.booleanSelector(f,FM,qh.SelectorType.ENV),configFileSelector:(f)=>qh.booleanSelector(f,CM,qh.SelectorType.CONFIG),default:!1},IM="AWS_USE_FIPS_ENDPOINT",LM="use_fips_endpoint",ce=!1,ge={environmentVariableSelector:(f)=>qh.booleanSelector(f,IM,qh.SelectorType.ENV),configFileSelector:(f)=>qh.booleanSelector(f,LM,qh.SelectorType.CONFIG),default:!1},n5=Ih(),xe=Ef((f)=>{let{tls:h,endpoint:w,urlParser:s,useDualstackEndpoint:$}=f;return Object.assign(f,{tls:h??!0,endpoint:n5.normalizeProvider(typeof w==="string"?s(w):w),isCustomEndpoint:!0,useDualstackEndpoint:n5.normalizeProvider($??!1)})},"resolveCustomEndpointsConfig"),_e=Ef(async(f)=>{let{tls:h=!0}=f,w=await f.region();if(!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(w))throw new Error("Invalid region in client config");let $=await f.useDualstackEndpoint(),r=await f.useFipsEndpoint(),{hostname:E}=await f.regionInfoProvider(w,{useDualstackEndpoint:$,useFipsEndpoint:r})??{};if(!E)throw new Error("Cannot resolve hostname from client config");return f.urlParser(`${h?"https:":"http:"}//${E}`)},"getEndpointFromRegion"),ne=Ef((f)=>{let h=n5.normalizeProvider(f.useDualstackEndpoint??!1),{endpoint:w,useFipsEndpoint:s,urlParser:$,tls:r}=f;return Object.assign(f,{tls:r??!0,endpoint:w?n5.normalizeProvider(typeof w==="string"?$(w):w):()=>_e({...f,useDualstackEndpoint:h,useFipsEndpoint:s}),isCustomEndpoint:!!w,useDualstackEndpoint:h})},"resolveEndpointsConfig"),BM="AWS_REGION",GM="region",ee={environmentVariableSelector:(f)=>f[BM],configFileSelector:(f)=>f[GM],default:()=>{throw new Error("Region is missing")}},ae={preferredFile:"credentials"},WM=Ef((f)=>typeof f==="string"&&(f.startsWith("fips-")||f.endsWith("-fips")),"isFipsRegion"),EM=Ef((f)=>WM(f)?["fips-aws-global","aws-fips"].includes(f)?"us-east-1":f.replace(/fips-(dkr-|prod-)?|-fips/,""):f,"getRealRegion"),pe=Ef((f)=>{let{region:h,useFipsEndpoint:w}=f;if(!h)throw new Error("Region is missing");return Object.assign(f,{region:async()=>{if(typeof h==="string")return EM(h);let s=await h();return EM(s)},useFipsEndpoint:async()=>{let s=typeof h==="string"?h:await h();if(WM(s))return!0;return typeof w!=="function"?Promise.resolve(!!w):w()}})},"resolveRegionConfig"),TM=Ef((f=[],{useFipsEndpoint:h,useDualstackEndpoint:w})=>f.find(({tags:s})=>h===s.includes("fips")&&w===s.includes("dualstack"))?.hostname,"getHostnameFromVariants"),oe=Ef((f,{regionHostname:h,partitionHostname:w})=>h?h:w?w.replace("{region}",f):void 0,"getResolvedHostname"),ue=Ef((f,{partitionHash:h})=>Object.keys(h||{}).find((w)=>h[w].regions.includes(f))??"aws","getResolvedPartition"),te=Ef((f,{signingRegion:h,regionRegex:w,useFipsEndpoint:s})=>{if(h)return h;else if(s){let $=w.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\."),r=f.match($);if(r)return r[0].slice(1,-1)}},"getResolvedSigningRegion"),fa=Ef((f,{useFipsEndpoint:h=!1,useDualstackEndpoint:w=!1,signingService:s,regionHash:$,partitionHash:r})=>{let E=ue(f,{partitionHash:r}),T=f in $?f:r[E]?.endpoint??f,U={useFipsEndpoint:h,useDualstackEndpoint:w},F=TM($[T]?.variants,U),C=TM(r[E]?.variants,U),I=oe(T,{regionHostname:F,partitionHostname:C});if(I===void 0)throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:T,useFipsEndpoint:h,useDualstackEndpoint:w}}`);let L=te(I,{signingRegion:$[T]?.signingRegion,regionRegex:r[E].regionRegex,useFipsEndpoint:h});return{partition:E,signingService:s,hostname:I,...L&&{signingRegion:L},...$[T]?.signingService&&{signingService:$[T].signingService}}},"getRegionInfo")});var Y3=H((aG0,YM)=>{var{defineProperty:a5,getOwnPropertyDescriptor:ha,getOwnPropertyNames:wa}=Object,sa=Object.prototype.hasOwnProperty,RM=(f,h)=>a5(f,"name",{value:h,configurable:!0}),$a=(f,h)=>{for(var w in h)a5(f,w,{get:h[w],enumerable:!0})},ra=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of wa(h))if(!sa.call(f,$)&&$!==w)a5(f,$,{get:()=>h[$],enumerable:!(s=ha(h,$))||s.enumerable})}return f},Ea=(f)=>ra(a5({},"__esModule",{value:!0}),f),XM={};$a(XM,{contentLengthMiddleware:()=>S3,contentLengthMiddlewareOptions:()=>SM,getContentLengthPlugin:()=>Ua});YM.exports=Ea(XM);var Ta=t0(),zM="content-length";function S3(f){return(h)=>async(w)=>{let s=w.request;if(Ta.HttpRequest.isInstance(s)){let{body:$,headers:r}=s;if($&&Object.keys(r).map((E)=>E.toLowerCase()).indexOf(zM)===-1)try{let E=f($);s.headers={...s.headers,[zM]:String(E)}}catch(E){}}return h({...w,request:s})}}RM(S3,"contentLengthMiddleware");var SM={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},Ua=RM((f)=>({applyToStack:(h)=>{h.add(S3(f.bodyLengthChecker),SM)}}),"getContentLengthPlugin")});var Ys=H((MM)=>{Object.defineProperty(MM,"__esModule",{value:!0});MM.getHomeDir=void 0;var Fa=B0("node:os"),Ca=B0("node:path"),M3={},Ia=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},La=()=>{let{HOME:f,USERPROFILE:h,HOMEPATH:w,HOMEDRIVE:s=`C:${Ca.sep}`}=process.env;if(f)return f;if(h)return h;if(w)return`${s}${w}`;let $=Ia();if(!M3[$])M3[$]=Fa.homedir();return M3[$]};MM.getHomeDir=La});var Q3=H((KM)=>{Object.defineProperty(KM,"__esModule",{value:!0});KM.getSSOTokenFilepath=void 0;var Ba=B0("node:crypto"),Ga=B0("node:path"),Wa=Ys(),Aa=(f)=>{let w=Ba.createHash("sha1").update(f).digest("hex");return Ga.join(Wa.getHomeDir(),".aws","sso","cache",`${w}.json`)};KM.getSSOTokenFilepath=Aa});var PM=H((JM)=>{Object.defineProperty(JM,"__esModule",{value:!0});JM.getSSOTokenFromFile=void 0;var za=B0("node:fs"),Ra=Q3(),{readFile:Xa}=za.promises,Sa=async(f)=>{let h=Ra.getSSOTokenFilepath(f),w=await Xa(h,"utf8");return JSON.parse(w)};JM.getSSOTokenFromFile=Sa});var Z3=H((HM)=>{Object.defineProperty(HM,"__esModule",{value:!0});HM.slurpFile=void 0;var Ya=B0("node:fs"),{readFile:Ma}=Ya.promises,K3={},Qa=(f,h)=>{if(!K3[f]||(h===null||h===void 0?void 0:h.ignoreCache))K3[f]=Ma(f,"utf8");return K3[f]};HM.slurpFile=Qa});var H3=H((fW0,$r)=>{var{defineProperty:u5,getOwnPropertyDescriptor:Ka,getOwnPropertyNames:Za}=Object,Ja=Object.prototype.hasOwnProperty,v1=(f,h)=>u5(f,"name",{value:h,configurable:!0}),Va=(f,h)=>{for(var w in h)u5(f,w,{get:h[w],enumerable:!0})},J3=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Za(h))if(!Ja.call(f,$)&&$!==w)u5(f,$,{get:()=>h[$],enumerable:!(s=Ka(h,$))||s.enumerable})}return f},P3=(f,h,w)=>(J3(f,h,"default"),w&&J3(w,h,"default")),Pa=(f)=>J3(u5({},"__esModule",{value:!0}),f),sr={};Va(sr,{CONFIG_PREFIX_SEPARATOR:()=>Uw,DEFAULT_PROFILE:()=>yM,ENV_PROFILE:()=>kM,getProfileName:()=>Ha,loadSharedConfigFiles:()=>OM,loadSsoSessionData:()=>ia,parseKnownFiles:()=>ga});$r.exports=Pa(sr);P3(sr,Ys(),$r.exports);var kM="AWS_PROFILE",yM="default",Ha=v1((f)=>f.profile||process.env[kM]||yM,"getProfileName");P3(sr,Q3(),$r.exports);P3(sr,PM(),$r.exports);var p5=F1(),Na=v1((f)=>Object.entries(f).filter(([h])=>{let w=h.indexOf(Uw);if(w===-1)return!1;return Object.values(p5.IniSectionType).includes(h.substring(0,w))}).reduce((h,[w,s])=>{let $=w.indexOf(Uw),r=w.substring(0,$)===p5.IniSectionType.PROFILE?w.substring($+1):w;return h[r]=s,h},{...f.default&&{default:f.default}}),"getConfigData"),o5=B0("node:path"),Da=Ys(),qa="AWS_CONFIG_FILE",jM=v1(()=>process.env[qa]||o5.join(Da.getHomeDir(),".aws","config"),"getConfigFilepath"),ka=Ys(),ya="AWS_SHARED_CREDENTIALS_FILE",ja=v1(()=>process.env[ya]||o5.join(ka.getHomeDir(),".aws","credentials"),"getCredentialsFilepath"),Oa=Ys(),la=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,va=["__proto__","profile __proto__"],V3=v1((f)=>{let h={},w,s;for(let $ of f.split(/\r?\n/)){let r=$.split(/(^|\s)[;#]/)[0].trim();if(r[0]==="["&&r[r.length-1]==="]"){w=void 0,s=void 0;let T=r.substring(1,r.length-1),U=la.exec(T);if(U){let[,F,,C]=U;if(Object.values(p5.IniSectionType).includes(F))w=[F,C].join(Uw)}else w=T;if(va.includes(T))throw new Error(`Found invalid profile name "${T}"`)}else if(w){let T=r.indexOf("=");if(![0,-1].includes(T)){let[U,F]=[r.substring(0,T).trim(),r.substring(T+1).trim()];if(F==="")s=U;else{if(s&&$.trimStart()===$)s=void 0;h[w]=h[w]||{};let C=s?[s,U].join(Uw):U;h[w][C]=F}}}}return h},"parseIni"),DM=Z3(),qM=v1(()=>({}),"swallowError"),Uw=".",OM=v1(async(f={})=>{let{filepath:h=ja(),configFilepath:w=jM()}=f,s=Oa.getHomeDir(),$="~/",r=h;if(h.startsWith("~/"))r=o5.join(s,h.slice(2));let E=w;if(w.startsWith("~/"))E=o5.join(s,w.slice(2));let T=await Promise.all([DM.slurpFile(E,{ignoreCache:f.ignoreCache}).then(V3).then(Na).catch(qM),DM.slurpFile(r,{ignoreCache:f.ignoreCache}).then(V3).catch(qM)]);return{configFile:T[0],credentialsFile:T[1]}},"loadSharedConfigFiles"),ba=v1((f)=>Object.entries(f).filter(([h])=>h.startsWith(p5.IniSectionType.SSO_SESSION+Uw)).reduce((h,[w,s])=>({...h,[w.substring(w.indexOf(Uw)+1)]:s}),{}),"getSsoSessionData"),ma=Z3(),da=v1(()=>({}),"swallowError"),ia=v1(async(f={})=>ma.slurpFile(f.configFilepath??jM()).then(V3).then(ba).catch(da),"loadSsoSessionData"),ca=v1((...f)=>{let h={};for(let w of f)for(let[s,$]of Object.entries(w))if(h[s]!==void 0)Object.assign(h[s],$);else h[s]=$;return h},"mergeConfigFiles"),ga=v1(async(f)=>{let h=await OM(f);return ca(h.configFile,h.credentialsFile)},"parseKnownFiles")});var Qs=H((hW0,bM)=>{var{defineProperty:t5,getOwnPropertyDescriptor:xa,getOwnPropertyNames:_a}=Object,na=Object.prototype.hasOwnProperty,Ms=(f,h)=>t5(f,"name",{value:h,configurable:!0}),ea=(f,h)=>{for(var w in h)t5(f,w,{get:h[w],enumerable:!0})},aa=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of _a(h))if(!na.call(f,$)&&$!==w)t5(f,$,{get:()=>h[$],enumerable:!(s=xa(h,$))||s.enumerable})}return f},pa=(f)=>aa(t5({},"__esModule",{value:!0}),f),vM={};ea(vM,{loadConfig:()=>hp});bM.exports=pa(vM);var rr=D$();function N3(f){try{let h=new Set(Array.from(f.match(/([A-Z_]){3,}/g)??[]));return h.delete("CONFIG"),h.delete("CONFIG_PREFIX_SEPARATOR"),h.delete("ENV"),[...h].join(", ")}catch(h){return f}}Ms(N3,"getSelectorName");var oa=Ms((f,h)=>async()=>{try{let w=f(process.env);if(w===void 0)throw new Error;return w}catch(w){throw new rr.CredentialsProviderError(w.message||`Not found in ENV: ${N3(f.toString())}`,{logger:h})}},"fromEnv"),lM=H3(),ua=Ms((f,{preferredFile:h="config",...w}={})=>async()=>{let s=lM.getProfileName(w),{configFile:$,credentialsFile:r}=await lM.loadSharedConfigFiles(w),E=r[s]||{},T=$[s]||{},U=h==="config"?{...E,...T}:{...T,...E};try{let C=f(U,h==="config"?$:r);if(C===void 0)throw new Error;return C}catch(F){throw new rr.CredentialsProviderError(F.message||`Not found in config files w/ profile [${s}]: ${N3(f.toString())}`,{logger:w.logger})}},"fromSharedConfigFiles"),ta=Ms((f)=>typeof f==="function","isFunction"),fp=Ms((f)=>ta(f)?async()=>await f():rr.fromStatic(f),"fromStatic"),hp=Ms(({environmentVariableSelector:f,configFileSelector:h,default:w},s={})=>rr.memoize(rr.chain(oa(f),ua(h,s),fp(w))),"loadConfig")});var xM=H((cM)=>{Object.defineProperty(cM,"__esModule",{value:!0});cM.getEndpointUrlConfig=void 0;var mM=H3(),dM="AWS_ENDPOINT_URL",iM="endpoint_url",wp=(f)=>({environmentVariableSelector:(h)=>{let w=f.split(" ").map((r)=>r.toUpperCase()),s=h[[dM,...w].join("_")];if(s)return s;let $=h[dM];if($)return $;return},configFileSelector:(h,w)=>{if(w&&h.services){let $=w[["services",h.services].join(mM.CONFIG_PREFIX_SEPARATOR)];if($){let r=f.split(" ").map((T)=>T.toLowerCase()),E=$[[r.join("_"),iM].join(mM.CONFIG_PREFIX_SEPARATOR)];if(E)return E}}let s=h[iM];if(s)return s;return},default:void 0});cM.getEndpointUrlConfig=wp});var D3=H((_M)=>{Object.defineProperty(_M,"__esModule",{value:!0});_M.getEndpointFromConfig=void 0;var sp=Qs(),$p=xM(),rp=async(f)=>sp.loadConfig($p.getEndpointUrlConfig(f!==null&&f!==void 0?f:""))();_M.getEndpointFromConfig=rp});var oM=H(($W0,pM)=>{var{defineProperty:fE,getOwnPropertyDescriptor:Ep,getOwnPropertyNames:Tp}=Object,Up=Object.prototype.hasOwnProperty,Fp=(f,h)=>fE(f,"name",{value:h,configurable:!0}),Cp=(f,h)=>{for(var w in h)fE(f,w,{get:h[w],enumerable:!0})},Ip=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Tp(h))if(!Up.call(f,$)&&$!==w)fE(f,$,{get:()=>h[$],enumerable:!(s=Ep(h,$))||s.enumerable})}return f},Lp=(f)=>Ip(fE({},"__esModule",{value:!0}),f),eM={};Cp(eM,{parseQueryString:()=>aM});pM.exports=Lp(eM);function aM(f){let h={};if(f=f.replace(/^\?/,""),f)for(let w of f.split("&")){let[s,$=null]=w.split("=");if(s=decodeURIComponent(s),$)$=decodeURIComponent($);if(!(s in h))h[s]=$;else if(Array.isArray(h[s]))h[s].push($);else h[s]=[h[s],$]}return h}Fp(aM,"parseQueryString")});var Er=H((rW0,fQ)=>{var{defineProperty:hE,getOwnPropertyDescriptor:Bp,getOwnPropertyNames:Gp}=Object,Wp=Object.prototype.hasOwnProperty,Ap=(f,h)=>hE(f,"name",{value:h,configurable:!0}),zp=(f,h)=>{for(var w in h)hE(f,w,{get:h[w],enumerable:!0})},Rp=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Gp(h))if(!Wp.call(f,$)&&$!==w)hE(f,$,{get:()=>h[$],enumerable:!(s=Bp(h,$))||s.enumerable})}return f},Xp=(f)=>Rp(hE({},"__esModule",{value:!0}),f),uM={};zp(uM,{parseUrl:()=>tM});fQ.exports=Xp(uM);var Sp=oM(),tM=Ap((f)=>{if(typeof f==="string")return tM(new URL(f));let{hostname:h,pathname:w,port:s,protocol:$,search:r}=f,E;if(r)E=Sp.parseQueryString(r);return{hostname:h,port:s?parseInt(s):void 0,protocol:$,path:w,query:E}},"parseUrl")});var Ks=H((EW0,TQ)=>{var{defineProperty:sE,getOwnPropertyDescriptor:Yp,getOwnPropertyNames:Mp}=Object,Qp=Object.prototype.hasOwnProperty,Tf=(f,h)=>sE(f,"name",{value:h,configurable:!0}),Kp=(f,h)=>{for(var w in h)sE(f,w,{get:h[w],enumerable:!0})},Zp=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Mp(h))if(!Qp.call(f,$)&&$!==w)sE(f,$,{get:()=>h[$],enumerable:!(s=Yp(h,$))||s.enumerable})}return f},Jp=(f)=>Zp(sE({},"__esModule",{value:!0}),f),wQ={};Kp(wQ,{endpointMiddleware:()=>rQ,endpointMiddlewareOptions:()=>EQ,getEndpointFromInstructions:()=>sQ,getEndpointPlugin:()=>lp,resolveEndpointConfig:()=>bp,resolveParams:()=>$Q,toEndpointV1:()=>q3});TQ.exports=Jp(wQ);var Vp=Tf(async(f)=>{let h=f?.Bucket||"";if(typeof f.Bucket==="string")f.Bucket=h.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(qp(h)){if(f.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!Dp(h)||h.indexOf(".")!==-1&&!String(f.Endpoint).startsWith("http:")||h.toLowerCase()!==h||h.length<3)f.ForcePathStyle=!0;if(f.DisableMultiRegionAccessPoints)f.disableMultiRegionAccessPoints=!0,f.DisableMRAP=!0;return f},"resolveParamsForS3"),Pp=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,Hp=/(\d+\.){3}\d+/,Np=/\.\./,Dp=Tf((f)=>Pp.test(f)&&!Hp.test(f)&&!Np.test(f),"isDnsCompatibleBucketName"),qp=Tf((f)=>{let[h,w,s,,,$]=f.split(":"),r=h==="arn"&&f.split(":").length>=6,E=Boolean(r&&w&&s&&$);if(r&&!E)throw new Error(`Invalid ARN: ${f} was an invalid ARN.`);return E},"isArnBucketName"),kp=Tf((f,h,w)=>{let s=Tf(async()=>{let $=w[f]??w[h];if(typeof $==="function")return $();return $},"configProvider");if(f==="credentialScope"||h==="CredentialScope")return async()=>{let $=typeof w.credentials==="function"?await w.credentials():w.credentials;return $?.credentialScope??$?.CredentialScope};if(f==="accountId"||h==="AccountId")return async()=>{let $=typeof w.credentials==="function"?await w.credentials():w.credentials;return $?.accountId??$?.AccountId};if(f==="endpoint"||h==="endpoint")return async()=>{let $=await s();if($&&typeof $==="object"){if("url"in $)return $.url.href;if("hostname"in $){let{protocol:r,hostname:E,port:T,path:U}=$;return`${r}//${E}${T?":"+T:""}${U}`}}return $};return s},"createConfigValueProvider"),yp=D3(),hQ=Er(),q3=Tf((f)=>{if(typeof f==="object"){if("url"in f)return hQ.parseUrl(f.url);return f}return hQ.parseUrl(f)},"toEndpointV1"),sQ=Tf(async(f,h,w,s)=>{if(!w.endpoint){let E;if(w.serviceConfiguredEndpoint)E=await w.serviceConfiguredEndpoint();else E=await yp.getEndpointFromConfig(w.serviceId);if(E)w.endpoint=()=>Promise.resolve(q3(E))}let $=await $Q(f,h,w);if(typeof w.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return w.endpointProvider($,s)},"getEndpointFromInstructions"),$Q=Tf(async(f,h,w)=>{let s={},$=h?.getEndpointParameterInstructions?.()||{};for(let[r,E]of Object.entries($))switch(E.type){case"staticContextParams":s[r]=E.value;break;case"contextParams":s[r]=f[E.name];break;case"clientContextParams":case"builtInParams":s[r]=await kp(E.name,r,w)();break;case"operationContextParams":s[r]=E.get(f);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(E))}if(Object.keys($).length===0)Object.assign(s,w);if(String(w.serviceId).toLowerCase()==="s3")await Vp(s);return s},"resolveParams"),jp=m0(),wE=Ih(),rQ=Tf(({config:f,instructions:h})=>{return(w,s)=>async($)=>{if(f.endpoint)jp.setFeature(s,"ENDPOINT_OVERRIDE","N");let r=await sQ($.input,{getEndpointParameterInstructions(){return h}},{...f},s);s.endpointV2=r,s.authSchemes=r.properties?.authSchemes;let E=s.authSchemes?.[0];if(E){s.signing_region=E.signingRegion,s.signing_service=E.signingName;let U=wE.getSmithyContext(s)?.selectedHttpAuthScheme?.httpAuthOption;if(U)U.signingProperties=Object.assign(U.signingProperties||{},{signing_region:E.signingRegion,signingRegion:E.signingRegion,signing_service:E.signingName,signingName:E.signingName,signingRegionSet:E.signingRegionSet},E.properties)}return w({...$})}},"endpointMiddleware"),Op=qw(),EQ={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:Op.serializerMiddlewareOption.name},lp=Tf((f,h)=>({applyToStack:(w)=>{w.addRelativeTo(rQ({config:f,instructions:h}),EQ)}}),"getEndpointPlugin"),vp=D3(),bp=Tf((f)=>{let h=f.tls??!0,{endpoint:w,useDualstackEndpoint:s,useFipsEndpoint:$}=f,r=w!=null?async()=>q3(await wE.normalizeProvider(w)()):void 0,T=Object.assign(f,{endpoint:r,tls:h,isCustomEndpoint:!!w,useDualstackEndpoint:wE.normalizeProvider(s??!1),useFipsEndpoint:wE.normalizeProvider($??!1)}),U=void 0;return T.serviceConfiguredEndpoint=async()=>{if(f.serviceId&&!U)U=vp.getEndpointFromConfig(f.serviceId);return U},T},"resolveEndpointConfig")});var y3=H((TW0,CQ)=>{var{defineProperty:$E,getOwnPropertyDescriptor:mp,getOwnPropertyNames:dp}=Object,ip=Object.prototype.hasOwnProperty,Zs=(f,h)=>$E(f,"name",{value:h,configurable:!0}),cp=(f,h)=>{for(var w in h)$E(f,w,{get:h[w],enumerable:!0})},gp=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of dp(h))if(!ip.call(f,$)&&$!==w)$E(f,$,{get:()=>h[$],enumerable:!(s=mp(h,$))||s.enumerable})}return f},xp=(f)=>gp($E({},"__esModule",{value:!0}),f),UQ={};cp(UQ,{isClockSkewCorrectedError:()=>FQ,isClockSkewError:()=>up,isRetryableByTrait:()=>op,isServerError:()=>fo,isThrottlingError:()=>tp,isTransientError:()=>k3});CQ.exports=xp(UQ);var _p=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],np=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],ep=["TimeoutError","RequestTimeout","RequestTimeoutException"],ap=[500,502,503,504],pp=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],op=Zs((f)=>f.$retryable!==void 0,"isRetryableByTrait"),up=Zs((f)=>_p.includes(f.name),"isClockSkewError"),FQ=Zs((f)=>f.$metadata?.clockSkewCorrected,"isClockSkewCorrectedError"),tp=Zs((f)=>f.$metadata?.httpStatusCode===429||np.includes(f.name)||f.$retryable?.throttling==!0,"isThrottlingError"),k3=Zs((f,h=0)=>FQ(f)||ep.includes(f.name)||pp.includes(f?.code||"")||ap.includes(f.$metadata?.httpStatusCode||0)||f.cause!==void 0&&h<=10&&k3(f.cause,h+1),"isTransientError"),fo=Zs((f)=>{if(f.$metadata?.httpStatusCode!==void 0){let h=f.$metadata.httpStatusCode;if(500<=h&&h<=599&&!k3(f))return!0;return!1}return!1},"isServerError")});var EE=H((UW0,XQ)=>{var{defineProperty:rE,getOwnPropertyDescriptor:ho,getOwnPropertyNames:wo}=Object,so=Object.prototype.hasOwnProperty,Uf=(f,h)=>rE(f,"name",{value:h,configurable:!0}),$o=(f,h)=>{for(var w in h)rE(f,w,{get:h[w],enumerable:!0})},ro=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of wo(h))if(!so.call(f,$)&&$!==w)rE(f,$,{get:()=>h[$],enumerable:!(s=ho(h,$))||s.enumerable})}return f},Eo=(f)=>ro(rE({},"__esModule",{value:!0}),f),LQ={};$o(LQ,{AdaptiveRetryStrategy:()=>Lo,ConfiguredRetryStrategy:()=>Bo,DEFAULT_MAX_ATTEMPTS:()=>j3,DEFAULT_RETRY_DELAY_BASE:()=>Tr,DEFAULT_RETRY_MODE:()=>To,DefaultRateLimiter:()=>GQ,INITIAL_RETRY_TOKENS:()=>O3,INVOCATION_ID_HEADER:()=>Fo,MAXIMUM_RETRY_DELAY:()=>l3,NO_RETRY_INCREMENT:()=>RQ,REQUEST_HEADER:()=>Co,RETRY_COST:()=>AQ,RETRY_MODES:()=>BQ,StandardRetryStrategy:()=>v3,THROTTLING_RETRY_DELAY_BASE:()=>WQ,TIMEOUT_RETRY_COST:()=>zQ});XQ.exports=Eo(LQ);var BQ=((f)=>{return f.STANDARD="standard",f.ADAPTIVE="adaptive",f})(BQ||{}),j3=3,To="standard",Uo=y3(),GQ=class f{constructor(h){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=h?.beta??0.7,this.minCapacity=h?.minCapacity??1,this.minFillRate=h?.minFillRate??0.5,this.scaleConstant=h?.scaleConstant??0.4,this.smooth=h?.smooth??0.8;let w=this.getCurrentTimeInSeconds();this.lastThrottleTime=w,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}static{Uf(this,"DefaultRateLimiter")}static{this.setTimeoutFn=setTimeout}getCurrentTimeInSeconds(){return Date.now()/1000}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(h){if(!this.enabled)return;if(this.refillTokenBucket(),h>this.currentCapacity){let w=(h-this.currentCapacity)/this.fillRate*1000;await new Promise((s)=>f.setTimeoutFn(s,w))}this.currentCapacity=this.currentCapacity-h}refillTokenBucket(){let h=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=h;return}let w=(h-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+w),this.lastTimestamp=h}updateClientSendingRate(h){let w;if(this.updateMeasuredRate(),Uo.isThrottlingError(h)){let $=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=$,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),w=this.cubicThrottle($),this.enableTokenBucket()}else this.calculateTimeWindow(),w=this.cubicSuccess(this.getCurrentTimeInSeconds());let s=Math.min(w,2*this.measuredTxRate);this.updateTokenBucketRate(s)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(h){return this.getPrecise(h*this.beta)}cubicSuccess(h){return this.getPrecise(this.scaleConstant*Math.pow(h-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(h){this.refillTokenBucket(),this.fillRate=Math.max(h,this.minFillRate),this.maxCapacity=Math.max(h,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){let h=this.getCurrentTimeInSeconds(),w=Math.floor(h*2)/2;if(this.requestCount++,w>this.lastTxRateBucket){let s=this.requestCount/(w-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(s*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=w}}getPrecise(h){return parseFloat(h.toFixed(8))}},Tr=100,l3=20000,WQ=500,O3=500,AQ=5,zQ=10,RQ=1,Fo="amz-sdk-invocation-id",Co="amz-sdk-request",Io=Uf(()=>{let f=Tr;return{computeNextBackoffDelay:Uf((s)=>{return Math.floor(Math.min(l3,Math.random()*2**s*f))},"computeNextBackoffDelay"),setDelayBase:Uf((s)=>{f=s},"setDelayBase")}},"getDefaultRetryBackoffStrategy"),IQ=Uf(({retryDelay:f,retryCount:h,retryCost:w})=>{return{getRetryCount:Uf(()=>h,"getRetryCount"),getRetryDelay:Uf(()=>Math.min(l3,f),"getRetryDelay"),getRetryCost:Uf(()=>w,"getRetryCost")}},"createDefaultRetryToken"),v3=class{constructor(f){this.maxAttempts=f,this.mode="standard",this.capacity=O3,this.retryBackoffStrategy=Io(),this.maxAttemptsProvider=typeof f==="function"?f:async()=>f}static{Uf(this,"StandardRetryStrategy")}async acquireInitialRetryToken(f){return IQ({retryDelay:Tr,retryCount:0})}async refreshRetryTokenForRetry(f,h){let w=await this.getMaxAttempts();if(this.shouldRetry(f,h,w)){let s=h.errorType;this.retryBackoffStrategy.setDelayBase(s==="THROTTLING"?WQ:Tr);let $=this.retryBackoffStrategy.computeNextBackoffDelay(f.getRetryCount()),r=h.retryAfterHint?Math.max(h.retryAfterHint.getTime()-Date.now()||0,$):$,E=this.getCapacityCost(s);return this.capacity-=E,IQ({retryDelay:r,retryCount:f.getRetryCount()+1,retryCost:E})}throw new Error("No retry token available")}recordSuccess(f){this.capacity=Math.max(O3,this.capacity+(f.getRetryCost()??RQ))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(f){return console.warn(`Max attempts provider could not resolve. Using default of ${j3}`),j3}}shouldRetry(f,h,w){return f.getRetryCount()+1<w&&this.capacity>=this.getCapacityCost(h.errorType)&&this.isRetryableError(h.errorType)}getCapacityCost(f){return f==="TRANSIENT"?zQ:AQ}isRetryableError(f){return f==="THROTTLING"||f==="TRANSIENT"}},Lo=class{constructor(f,h){this.maxAttemptsProvider=f,this.mode="adaptive";let{rateLimiter:w}=h??{};this.rateLimiter=w??new GQ,this.standardRetryStrategy=new v3(f)}static{Uf(this,"AdaptiveRetryStrategy")}async acquireInitialRetryToken(f){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(f)}async refreshRetryTokenForRetry(f,h){return this.rateLimiter.updateClientSendingRate(h),this.standardRetryStrategy.refreshRetryTokenForRetry(f,h)}recordSuccess(f){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(f)}},Bo=class extends v3{static{Uf(this,"ConfiguredRetryStrategy")}constructor(f,h=Tr){super(typeof f==="function"?f:async()=>f);if(typeof h==="number")this.computeNextBackoffDelay=()=>h;else this.computeNextBackoffDelay=h}async refreshRetryTokenForRetry(f,h){let w=await super.refreshRetryTokenForRetry(f,h);return w.getRetryDelay=()=>this.computeNextBackoffDelay(w.getRetryCount()),w}}});var MQ=H((SQ)=>{Object.defineProperty(SQ,"__esModule",{value:!0});SQ.isStreamingPayload=void 0;var Go=B0("node:stream"),Wo=(f)=>(f===null||f===void 0?void 0:f.body)instanceof Go.Readable||typeof ReadableStream!=="undefined"&&(f===null||f===void 0?void 0:f.body)instanceof ReadableStream;SQ.isStreamingPayload=Wo});var Ur=H((BW0,lQ)=>{var{defineProperty:TE,getOwnPropertyDescriptor:Ao,getOwnPropertyNames:zo}=Object,Ro=Object.prototype.hasOwnProperty,x0=(f,h)=>TE(f,"name",{value:h,configurable:!0}),Xo=(f,h)=>{for(var w in h)TE(f,w,{get:h[w],enumerable:!0})},So=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of zo(h))if(!Ro.call(f,$)&&$!==w)TE(f,$,{get:()=>h[$],enumerable:!(s=Ao(h,$))||s.enumerable})}return f},Yo=(f)=>So(TE({},"__esModule",{value:!0}),f),KQ={};Xo(KQ,{AdaptiveRetryStrategy:()=>Ko,CONFIG_MAX_ATTEMPTS:()=>m3,CONFIG_RETRY_MODE:()=>DQ,ENV_MAX_ATTEMPTS:()=>b3,ENV_RETRY_MODE:()=>NQ,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>Zo,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>Vo,StandardRetryStrategy:()=>HQ,defaultDelayDecider:()=>JQ,defaultRetryDecider:()=>VQ,getOmitRetryHeadersPlugin:()=>Po,getRetryAfterHint:()=>OQ,getRetryPlugin:()=>yo,omitRetryHeadersMiddleware:()=>qQ,omitRetryHeadersMiddlewareOptions:()=>kQ,resolveRetryConfig:()=>Jo,retryMiddleware:()=>yQ,retryMiddlewareOptions:()=>jQ});lQ.exports=Yo(KQ);var Js=t0(),ZQ=PF(),l0=EE(),Mo=x0((f,h)=>{let w=f,s=h?.noRetryIncrement??l0.NO_RETRY_INCREMENT,$=h?.retryCost??l0.RETRY_COST,r=h?.timeoutRetryCost??l0.TIMEOUT_RETRY_COST,E=f,T=x0((I)=>I.name==="TimeoutError"?r:$,"getCapacityAmount"),U=x0((I)=>T(I)<=E,"hasRetryTokens");return Object.freeze({hasRetryTokens:U,retrieveRetryTokens:x0((I)=>{if(!U(I))throw new Error("No retry token available");let L=T(I);return E-=L,L},"retrieveRetryTokens"),releaseRetryTokens:x0((I)=>{E+=I??s,E=Math.min(E,w)},"releaseRetryTokens")})},"getDefaultRetryQuota"),JQ=x0((f,h)=>Math.floor(Math.min(l0.MAXIMUM_RETRY_DELAY,Math.random()*2**h*f)),"defaultDelayDecider"),kh=y3(),VQ=x0((f)=>{if(!f)return!1;return kh.isRetryableByTrait(f)||kh.isClockSkewError(f)||kh.isThrottlingError(f)||kh.isTransientError(f)},"defaultRetryDecider"),PQ=x0((f)=>{if(f instanceof Error)return f;if(f instanceof Object)return Object.assign(new Error,f);if(typeof f==="string")return new Error(f);return new Error(`AWS SDK error wrapper for ${f}`)},"asSdkError"),HQ=class{constructor(f,h){this.maxAttemptsProvider=f,this.mode=l0.RETRY_MODES.STANDARD,this.retryDecider=h?.retryDecider??VQ,this.delayDecider=h?.delayDecider??JQ,this.retryQuota=h?.retryQuota??Mo(l0.INITIAL_RETRY_TOKENS)}static{x0(this,"StandardRetryStrategy")}shouldRetry(f,h,w){return h<w&&this.retryDecider(f)&&this.retryQuota.hasRetryTokens(f)}async getMaxAttempts(){let f;try{f=await this.maxAttemptsProvider()}catch(h){f=l0.DEFAULT_MAX_ATTEMPTS}return f}async retry(f,h,w){let s,$=0,r=0,E=await this.getMaxAttempts(),{request:T}=h;if(Js.HttpRequest.isInstance(T))T.headers[l0.INVOCATION_ID_HEADER]=ZQ.v4();while(!0)try{if(Js.HttpRequest.isInstance(T))T.headers[l0.REQUEST_HEADER]=`attempt=${$+1}; max=${E}`;if(w?.beforeRequest)await w.beforeRequest();let{response:U,output:F}=await f(h);if(w?.afterRequest)w.afterRequest(U);return this.retryQuota.releaseRetryTokens(s),F.$metadata.attempts=$+1,F.$metadata.totalRetryDelay=r,{response:U,output:F}}catch(U){let F=PQ(U);if($++,this.shouldRetry(F,$,E)){s=this.retryQuota.retrieveRetryTokens(F);let C=this.delayDecider(kh.isThrottlingError(F)?l0.THROTTLING_RETRY_DELAY_BASE:l0.DEFAULT_RETRY_DELAY_BASE,$),I=Qo(F.$response),L=Math.max(I||0,C);r+=L,await new Promise((W)=>setTimeout(W,L));continue}if(!F.$metadata)F.$metadata={};throw F.$metadata.attempts=$,F.$metadata.totalRetryDelay=r,F}}},Qo=x0((f)=>{if(!Js.HttpResponse.isInstance(f))return;let h=Object.keys(f.headers).find((r)=>r.toLowerCase()==="retry-after");if(!h)return;let w=f.headers[h],s=Number(w);if(!Number.isNaN(s))return s*1000;return new Date(w).getTime()-Date.now()},"getDelayFromRetryAfterHeader"),Ko=class extends HQ{static{x0(this,"AdaptiveRetryStrategy")}constructor(f,h){let{rateLimiter:w,...s}=h??{};super(f,s);this.rateLimiter=w??new l0.DefaultRateLimiter,this.mode=l0.RETRY_MODES.ADAPTIVE}async retry(f,h){return super.retry(f,h,{beforeRequest:async()=>{return this.rateLimiter.getSendToken()},afterRequest:(w)=>{this.rateLimiter.updateClientSendingRate(w)}})}},QQ=Ih(),b3="AWS_MAX_ATTEMPTS",m3="max_attempts",Zo={environmentVariableSelector:(f)=>{let h=f[b3];if(!h)return;let w=parseInt(h);if(Number.isNaN(w))throw new Error(`Environment variable ${b3} mast be a number, got "${h}"`);return w},configFileSelector:(f)=>{let h=f[m3];if(!h)return;let w=parseInt(h);if(Number.isNaN(w))throw new Error(`Shared config file entry ${m3} mast be a number, got "${h}"`);return w},default:l0.DEFAULT_MAX_ATTEMPTS},Jo=x0((f)=>{let{retryStrategy:h,retryMode:w,maxAttempts:s}=f,$=QQ.normalizeProvider(s??l0.DEFAULT_MAX_ATTEMPTS);return Object.assign(f,{maxAttempts:$,retryStrategy:async()=>{if(h)return h;if(await QQ.normalizeProvider(w)()===l0.RETRY_MODES.ADAPTIVE)return new l0.AdaptiveRetryStrategy($);return new l0.StandardRetryStrategy($)}})},"resolveRetryConfig"),NQ="AWS_RETRY_MODE",DQ="retry_mode",Vo={environmentVariableSelector:(f)=>f[NQ],configFileSelector:(f)=>f[DQ],default:l0.DEFAULT_RETRY_MODE},qQ=x0(()=>(f)=>async(h)=>{let{request:w}=h;if(Js.HttpRequest.isInstance(w))delete w.headers[l0.INVOCATION_ID_HEADER],delete w.headers[l0.REQUEST_HEADER];return f(h)},"omitRetryHeadersMiddleware"),kQ={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},Po=x0((f)=>({applyToStack:(h)=>{h.addRelativeTo(qQ(),kQ)}}),"getOmitRetryHeadersPlugin"),Ho=J0(),No=MQ(),yQ=x0((f)=>(h,w)=>async(s)=>{let $=await f.retryStrategy(),r=await f.maxAttempts();if(Do($)){$=$;let E=await $.acquireInitialRetryToken(w.partition_id),T=new Error,U=0,F=0,{request:C}=s,I=Js.HttpRequest.isInstance(C);if(I)C.headers[l0.INVOCATION_ID_HEADER]=ZQ.v4();while(!0)try{if(I)C.headers[l0.REQUEST_HEADER]=`attempt=${U+1}; max=${r}`;let{response:L,output:W}=await h(s);return $.recordSuccess(E),W.$metadata.attempts=U+1,W.$metadata.totalRetryDelay=F,{response:L,output:W}}catch(L){let W=qo(L);if(T=PQ(L),I&&No.isStreamingPayload(C))throw(w.logger instanceof Ho.NoOpLogger?console:w.logger)?.warn("An error was encountered in a non-retryable streaming request."),T;try{E=await $.refreshRetryTokenForRetry(E,W)}catch(Q){if(!T.$metadata)T.$metadata={};throw T.$metadata.attempts=U+1,T.$metadata.totalRetryDelay=F,T}U=E.getRetryCount();let X=E.getRetryDelay();F+=X,await new Promise((Q)=>setTimeout(Q,X))}}else{if($=$,$?.mode)w.userAgent=[...w.userAgent||[],["cfg/retry-mode",$.mode]];return $.retry(h,s)}},"retryMiddleware"),Do=x0((f)=>typeof f.acquireInitialRetryToken!=="undefined"&&typeof f.refreshRetryTokenForRetry!=="undefined"&&typeof f.recordSuccess!=="undefined","isRetryStrategyV2"),qo=x0((f)=>{let h={error:f,errorType:ko(f)},w=OQ(f.$response);if(w)h.retryAfterHint=w;return h},"getRetryErrorInfo"),ko=x0((f)=>{if(kh.isThrottlingError(f))return"THROTTLING";if(kh.isTransientError(f))return"TRANSIENT";if(kh.isServerError(f))return"SERVER_ERROR";return"CLIENT_ERROR"},"getRetryErrorType"),jQ={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},yo=x0((f)=>({applyToStack:(h)=>{h.add(yQ(f),jQ)}}),"getRetryPlugin"),OQ=x0((f)=>{if(!Js.HttpResponse.isInstance(f))return;let h=Object.keys(f.headers).find((r)=>r.toLowerCase()==="retry-after");if(!h)return;let w=f.headers[h],s=Number(w);if(!Number.isNaN(s))return new Date(s*1000);return new Date(w)},"getRetryAfterHint")});var d3=H((bQ)=>{Object.defineProperty(bQ,"__esModule",{value:!0});bQ.resolveHttpAuthSchemeConfig=bQ.defaultSSOOIDCHttpAuthSchemeProvider=bQ.defaultSSOOIDCHttpAuthSchemeParametersProvider=void 0;var jo=O0(),vQ=Ih(),Oo=async(f,h,w)=>{return{operation:vQ.getSmithyContext(h).operation,region:await vQ.normalizeProvider(f.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};bQ.defaultSSOOIDCHttpAuthSchemeParametersProvider=Oo;function lo(f){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:f.region},propertiesExtractor:(h,w)=>({signingProperties:{config:h,context:w}})}}function vo(f){return{schemeId:"smithy.api#noAuth"}}var bo=(f)=>{let h=[];switch(f.operation){case"CreateToken":{h.push(vo(f));break}default:h.push(lo(f))}return h};bQ.defaultSSOOIDCHttpAuthSchemeProvider=bo;var mo=(f)=>{let h=jo.resolveAwsSdkSigV4Config(f);return Object.assign(h,{})};bQ.resolveHttpAuthSchemeConfig=mo});var i3=H((zW0,go)=>{go.exports={name:"@aws-sdk/nested-clients",version:"3.775.0",description:"Nested clients for AWS SDK packages.",main:"./dist-cjs/index.js",module:"./dist-es/index.js",types:"./dist-types/index.d.ts",scripts:{build:"yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline nested-clients","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",lint:"node ../../scripts/validation/submodules-linter.js --pkg nested-clients",test:"yarn g:vitest run","test:watch":"yarn g:vitest watch"},engines:{node:">=18.0.0"},author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.775.0","@aws-sdk/middleware-host-header":"3.775.0","@aws-sdk/middleware-logger":"3.775.0","@aws-sdk/middleware-recursion-detection":"3.775.0","@aws-sdk/middleware-user-agent":"3.775.0","@aws-sdk/region-config-resolver":"3.775.0","@aws-sdk/types":"3.775.0","@aws-sdk/util-endpoints":"3.775.0","@aws-sdk/util-user-agent-browser":"3.775.0","@aws-sdk/util-user-agent-node":"3.775.0","@smithy/config-resolver":"^4.1.0","@smithy/core":"^3.2.0","@smithy/fetch-http-handler":"^5.0.2","@smithy/hash-node":"^4.0.2","@smithy/invalid-dependency":"^4.0.2","@smithy/middleware-content-length":"^4.0.2","@smithy/middleware-endpoint":"^4.1.0","@smithy/middleware-retry":"^4.1.0","@smithy/middleware-serde":"^4.0.3","@smithy/middleware-stack":"^4.0.2","@smithy/node-config-provider":"^4.0.2","@smithy/node-http-handler":"^4.0.4","@smithy/protocol-http":"^5.1.0","@smithy/smithy-client":"^4.2.0","@smithy/types":"^4.2.0","@smithy/url-parser":"^4.0.2","@smithy/util-base64":"^4.0.0","@smithy/util-body-length-browser":"^4.0.0","@smithy/util-body-length-node":"^4.0.0","@smithy/util-defaults-mode-browser":"^4.0.8","@smithy/util-defaults-mode-node":"^4.0.8","@smithy/util-endpoints":"^3.0.2","@smithy/util-middleware":"^4.0.2","@smithy/util-retry":"^4.0.2","@smithy/util-utf8":"^4.0.0",tslib:"^2.6.2"},devDependencies:{concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~5.2.2"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["./sso-oidc.d.ts","./sso-oidc.js","./sts.d.ts","./sts.js","dist-*/**"],browser:{"./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"packages/nested-clients"},exports:{"./sso-oidc":{types:"./dist-types/submodules/sso-oidc/index.d.ts",module:"./dist-es/submodules/sso-oidc/index.js",node:"./dist-cjs/submodules/sso-oidc/index.js",import:"./dist-es/submodules/sso-oidc/index.js",require:"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{types:"./dist-types/submodules/sts/index.d.ts",module:"./dist-es/submodules/sts/index.js",node:"./dist-cjs/submodules/sts/index.js",import:"./dist-es/submodules/sts/index.js",require:"./dist-cjs/submodules/sts/index.js"}}}});var g3=H((RW0,nQ)=>{var{defineProperty:FE,getOwnPropertyDescriptor:xo,getOwnPropertyNames:_o}=Object,no=Object.prototype.hasOwnProperty,UE=(f,h)=>FE(f,"name",{value:h,configurable:!0}),eo=(f,h)=>{for(var w in h)FE(f,w,{get:h[w],enumerable:!0})},ao=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of _o(h))if(!no.call(f,$)&&$!==w)FE(f,$,{get:()=>h[$],enumerable:!(s=xo(h,$))||s.enumerable})}return f},po=(f)=>ao(FE({},"__esModule",{value:!0}),f),iQ={};eo(iQ,{NODE_APP_ID_CONFIG_OPTIONS:()=>hu,UA_APP_ID_ENV_NAME:()=>xQ,UA_APP_ID_INI_NAME:()=>_Q,createDefaultUserAgentProvider:()=>gQ,crtAvailability:()=>cQ,defaultUserAgent:()=>uo});nQ.exports=po(iQ);var dQ=B0("node:os"),c3=B0("node:process"),cQ={isCrtAvailable:!1},oo=UE(()=>{if(cQ.isCrtAvailable)return["md/crt-avail"];return null},"isCrtAvailable"),gQ=UE(({serviceId:f,clientVersion:h})=>{return async(w)=>{let s=[["aws-sdk-js",h],["ua","2.1"],[`os/${dQ.platform()}`,dQ.release()],["lang/js"],["md/nodejs",`${c3.versions.node}`]],$=oo();if($)s.push($);if(f)s.push([`api/${f}`,h]);if(c3.env.AWS_EXECUTION_ENV)s.push([`exec-env/${c3.env.AWS_EXECUTION_ENV}`]);let r=await w?.userAgentAppId?.();return r?[...s,[`app/${r}`]]:[...s]}},"createDefaultUserAgentProvider"),uo=gQ,to=x5(),xQ="AWS_SDK_UA_APP_ID",_Q="sdk_ua_app_id",fu="sdk-ua-app-id",hu={environmentVariableSelector:UE((f)=>f[xQ],"environmentVariableSelector"),configFileSelector:UE((f)=>f[_Q]??f[fu],"configFileSelector"),default:to.DEFAULT_UA_APP_ID}});var n3=H((XW0,oQ)=>{var{defineProperty:CE,getOwnPropertyDescriptor:wu,getOwnPropertyNames:su}=Object,$u=Object.prototype.hasOwnProperty,aQ=(f,h)=>CE(f,"name",{value:h,configurable:!0}),ru=(f,h)=>{for(var w in h)CE(f,w,{get:h[w],enumerable:!0})},Eu=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of su(h))if(!$u.call(f,$)&&$!==w)CE(f,$,{get:()=>h[$],enumerable:!(s=wu(h,$))||s.enumerable})}return f},Tu=(f)=>Eu(CE({},"__esModule",{value:!0}),f),pQ={};ru(pQ,{Hash:()=>Cu});oQ.exports=Tu(pQ);var x3=kw(),Uu=u1(),Fu=B0("node:buffer"),eQ=B0("node:crypto"),Cu=class{static{aQ(this,"Hash")}constructor(f,h){this.algorithmIdentifier=f,this.secret=h,this.reset()}update(f,h){this.hash.update(Uu.toUint8Array(_3(f,h)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?eQ.createHmac(this.algorithmIdentifier,_3(this.secret)):eQ.createHash(this.algorithmIdentifier)}};function _3(f,h){if(Fu.Buffer.isBuffer(f))return f;if(typeof f==="string")return x3.fromString(f,h);if(ArrayBuffer.isView(f))return x3.fromArrayBuffer(f.buffer,f.byteOffset,f.byteLength);return x3.fromArrayBuffer(f)}aQ(_3,"castSourceData")});var e3=H((YW0,fK)=>{var{defineProperty:IE,getOwnPropertyDescriptor:Iu,getOwnPropertyNames:Lu}=Object,Bu=Object.prototype.hasOwnProperty,Gu=(f,h)=>IE(f,"name",{value:h,configurable:!0}),Wu=(f,h)=>{for(var w in h)IE(f,w,{get:h[w],enumerable:!0})},Au=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Lu(h))if(!Bu.call(f,$)&&$!==w)IE(f,$,{get:()=>h[$],enumerable:!(s=Iu(h,$))||s.enumerable})}return f},zu=(f)=>Au(IE({},"__esModule",{value:!0}),f),tQ={};Wu(tQ,{calculateBodyLength:()=>Ru});fK.exports=zu(tQ);var uQ=B0("node:fs"),Ru=Gu((f)=>{if(!f)return 0;if(typeof f==="string")return Buffer.byteLength(f);else if(typeof f.byteLength==="number")return f.byteLength;else if(typeof f.size==="number")return f.size;else if(typeof f.start==="number"&&typeof f.end==="number")return f.end+1-f.start;else if(typeof f.path==="string"||Buffer.isBuffer(f.path))return uQ.lstatSync(f.path).size;else if(typeof f.fd==="number")return uQ.fstatSync(f.fd).size;throw new Error(`Body Length computation failed for ${f}`)},"calculateBodyLength")});var zK=H((WK)=>{Object.defineProperty(WK,"__esModule",{value:!0});WK.ruleSet=void 0;var IK="required",m1="fn",d1="argv",Hs="ref",hK=!0,wK="isSet",Fr="booleanEquals",Vs="error",Ps="endpoint",pf="tree",a3="PartitionResult",p3="getAttr",sK={[IK]:!1,type:"String"},$K={[IK]:!0,default:!1,type:"Boolean"},rK={[Hs]:"Endpoint"},LK={[m1]:Fr,[d1]:[{[Hs]:"UseFIPS"},!0]},BK={[m1]:Fr,[d1]:[{[Hs]:"UseDualStack"},!0]},b1={},EK={[m1]:p3,[d1]:[{[Hs]:a3},"supportsFIPS"]},GK={[Hs]:a3},TK={[m1]:Fr,[d1]:[!0,{[m1]:p3,[d1]:[GK,"supportsDualStack"]}]},UK=[LK],FK=[BK],CK=[{[Hs]:"Region"}],Xu={version:"1.0",parameters:{Region:sK,UseDualStack:$K,UseFIPS:$K,Endpoint:sK},rules:[{conditions:[{[m1]:wK,[d1]:[rK]}],rules:[{conditions:UK,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:Vs},{conditions:FK,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:Vs},{endpoint:{url:rK,properties:b1,headers:b1},type:Ps}],type:pf},{conditions:[{[m1]:wK,[d1]:CK}],rules:[{conditions:[{[m1]:"aws.partition",[d1]:CK,assign:a3}],rules:[{conditions:[LK,BK],rules:[{conditions:[{[m1]:Fr,[d1]:[hK,EK]},TK],rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:b1,headers:b1},type:Ps}],type:pf},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:Vs}],type:pf},{conditions:UK,rules:[{conditions:[{[m1]:Fr,[d1]:[EK,hK]}],rules:[{conditions:[{[m1]:"stringEquals",[d1]:[{[m1]:p3,[d1]:[GK,"name"]},"aws-us-gov"]}],endpoint:{url:"https://oidc.{Region}.amazonaws.com",properties:b1,headers:b1},type:Ps},{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",properties:b1,headers:b1},type:Ps}],type:pf},{error:"FIPS is enabled but this partition does not support FIPS",type:Vs}],type:pf},{conditions:FK,rules:[{conditions:[TK],rules:[{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:b1,headers:b1},type:Ps}],type:pf},{error:"DualStack is enabled but this partition does not support DualStack",type:Vs}],type:pf},{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dnsSuffix}",properties:b1,headers:b1},type:Ps}],type:pf}],type:pf},{error:"Invalid Configuration: Missing Region",type:Vs}]};WK.ruleSet=Xu});var SK=H((RK)=>{Object.defineProperty(RK,"__esModule",{value:!0});RK.defaultEndpointResolver=void 0;var Su=i5(),o3=m5(),Yu=zK(),Mu=new o3.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Qu=(f,h={})=>{return Mu.get(f,()=>o3.resolveEndpoint(Yu.ruleSet,{endpointParams:f,logger:h.logger}))};RK.defaultEndpointResolver=Qu;o3.customEndpointFunctions.aws=Su.awsEndpointFunctions});var ZK=H((QK)=>{Object.defineProperty(QK,"__esModule",{value:!0});QK.getRuntimeConfig=void 0;var Ku=O0(),Zu=m0(),Ju=J0(),Vu=Er(),YK=Bh(),MK=u1(),Pu=d3(),Hu=SK(),Nu=(f)=>{return{apiVersion:"2019-06-10",base64Decoder:f?.base64Decoder??YK.fromBase64,base64Encoder:f?.base64Encoder??YK.toBase64,disableHostPrefix:f?.disableHostPrefix??!1,endpointProvider:f?.endpointProvider??Hu.defaultEndpointResolver,extensions:f?.extensions??[],httpAuthSchemeProvider:f?.httpAuthSchemeProvider??Pu.defaultSSOOIDCHttpAuthSchemeProvider,httpAuthSchemes:f?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(h)=>h.getIdentityProvider("aws.auth#sigv4"),signer:new Ku.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(h)=>h.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Zu.NoAuthSigner}],logger:f?.logger??new Ju.NoOpLogger,serviceId:f?.serviceId??"SSO OIDC",urlParser:f?.urlParser??Vu.parseUrl,utf8Decoder:f?.utf8Decoder??MK.fromUtf8,utf8Encoder:f?.utf8Encoder??MK.toUtf8}};QK.getRuntimeConfig=Nu});var bK=H((ZW0,vK)=>{var{defineProperty:GE,getOwnPropertyDescriptor:Du,getOwnPropertyNames:qu}=Object,ku=Object.prototype.hasOwnProperty,_0=(f,h)=>GE(f,"name",{value:h,configurable:!0}),yu=(f,h)=>{for(var w in h)GE(f,w,{get:h[w],enumerable:!0})},ju=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of qu(h))if(!ku.call(f,$)&&$!==w)GE(f,$,{get:()=>h[$],enumerable:!(s=Du(h,$))||s.enumerable})}return f},Ou=(f)=>ju(GE({},"__esModule",{value:!0}),f),HK={};yu(HK,{DEFAULT_MAX_RETRIES:()=>kK,DEFAULT_TIMEOUT:()=>qK,ENV_CMDS_AUTH_TOKEN:()=>f8,ENV_CMDS_FULL_URI:()=>LE,ENV_CMDS_RELATIVE_URI:()=>BE,Endpoint:()=>yK,fromContainerMetadata:()=>mu,fromInstanceMetadata:()=>Tt,getInstanceMetadataEndpoint:()=>OK,httpRequest:()=>Ns,providerConfigFromInit:()=>h8});vK.exports=Ou(HK);var lu=B0("node:url"),Zf=D$(),vu=B0("node:buffer"),bu=B0("node:http");function Ns(f){return new Promise((h,w)=>{let s=bu.request({method:"GET",...f,hostname:f.hostname?.replace(/^\[(.+)\]$/,"$1")});s.on("error",($)=>{w(Object.assign(new Zf.ProviderError("Unable to connect to instance metadata service"),$)),s.destroy()}),s.on("timeout",()=>{w(new Zf.ProviderError("TimeoutError from instance metadata service")),s.destroy()}),s.on("response",($)=>{let{statusCode:r=400}=$;if(r<200||300<=r)w(Object.assign(new Zf.ProviderError("Error response received from instance metadata service"),{statusCode:r})),s.destroy();let E=[];$.on("data",(T)=>{E.push(T)}),$.on("end",()=>{h(vu.Buffer.concat(E)),s.destroy()})}),s.end()})}_0(Ns,"httpRequest");var NK=_0((f)=>Boolean(f)&&typeof f==="object"&&typeof f.AccessKeyId==="string"&&typeof f.SecretAccessKey==="string"&&typeof f.Token==="string"&&typeof f.Expiration==="string","isImdsCredentials"),DK=_0((f)=>({accessKeyId:f.AccessKeyId,secretAccessKey:f.SecretAccessKey,sessionToken:f.Token,expiration:new Date(f.Expiration),...f.AccountId&&{accountId:f.AccountId}}),"fromImdsCredentials"),qK=1000,kK=0,h8=_0(({maxRetries:f=kK,timeout:h=qK})=>({maxRetries:f,timeout:h}),"providerConfigFromInit"),t3=_0((f,h)=>{let w=f();for(let s=0;s<h;s++)w=w.catch(f);return w},"retry"),LE="AWS_CONTAINER_CREDENTIALS_FULL_URI",BE="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",f8="AWS_CONTAINER_AUTHORIZATION_TOKEN",mu=_0((f={})=>{let{timeout:h,maxRetries:w}=h8(f);return()=>t3(async()=>{let s=await xu({logger:f.logger}),$=JSON.parse(await du(h,s));if(!NK($))throw new Zf.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:f.logger});return DK($)},w)},"fromContainerMetadata"),du=_0(async(f,h)=>{if(process.env[f8])h.headers={...h.headers,Authorization:process.env[f8]};return(await Ns({...h,timeout:f})).toString()},"requestFromEcsImds"),iu="169.254.170.2",cu={localhost:!0,"127.0.0.1":!0},gu={"http:":!0,"https:":!0},xu=_0(async({logger:f})=>{if(process.env[BE])return{hostname:iu,path:process.env[BE]};if(process.env[LE]){let h=lu.parse(process.env[LE]);if(!h.hostname||!(h.hostname in cu))throw new Zf.CredentialsProviderError(`${h.hostname} is not a valid container metadata service hostname`,{tryNextLink:!1,logger:f});if(!h.protocol||!(h.protocol in gu))throw new Zf.CredentialsProviderError(`${h.protocol} is not a valid container metadata service protocol`,{tryNextLink:!1,logger:f});return{...h,port:h.port?parseInt(h.port,10):void 0}}throw new Zf.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${BE} or ${LE} environment variable is set`,{tryNextLink:!1,logger:f})},"getCmdsUri"),_u=class f extends Zf.CredentialsProviderError{constructor(h,w=!0){super(h,w);this.tryNextLink=w,this.name="InstanceMetadataV1FallbackError",Object.setPrototypeOf(this,f.prototype)}static{_0(this,"InstanceMetadataV1FallbackError")}},w8=Qs(),nu=Er(),yK=((f)=>{return f.IPv4="http://169.254.169.254",f.IPv6="http://[fd00:ec2::254]",f})(yK||{}),eu="AWS_EC2_METADATA_SERVICE_ENDPOINT",au="ec2_metadata_service_endpoint",pu={environmentVariableSelector:(f)=>f[eu],configFileSelector:(f)=>f[au],default:void 0},jK=((f)=>{return f.IPv4="IPv4",f.IPv6="IPv6",f})(jK||{}),ou="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",uu="ec2_metadata_service_endpoint_mode",tu={environmentVariableSelector:(f)=>f[ou],configFileSelector:(f)=>f[uu],default:"IPv4"},OK=_0(async()=>nu.parseUrl(await ft()||await ht()),"getInstanceMetadataEndpoint"),ft=_0(async()=>w8.loadConfig(pu)(),"getFromEndpointConfig"),ht=_0(async()=>{let f=await w8.loadConfig(tu)();switch(f){case"IPv4":return"http://169.254.169.254";case"IPv6":return"http://[fd00:ec2::254]";default:throw new Error(`Unsupported endpoint mode: ${f}. Select from ${Object.values(jK)}`)}},"getFromEndpointModeConfig"),wt=300,st=300,$t="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",JK=_0((f,h)=>{let w=wt+Math.floor(Math.random()*st),s=new Date(Date.now()+w*1000);h.warn(`Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(s)}.
|
|
50
|
+
For more information, please visit: `+$t);let $=f.originalExpiration??f.expiration;return{...f,...$?{originalExpiration:$}:{},expiration:s}},"getExtendedInstanceMetadataCredentials"),rt=_0((f,h={})=>{let w=h?.logger||console,s;return async()=>{let $;try{if($=await f(),$.expiration&&$.expiration.getTime()<Date.now())$=JK($,w)}catch(r){if(s)w.warn("Credential renew failed: ",r),$=JK(s,w);else throw r}return s=$,$}},"staticStabilityProvider"),lK="/latest/meta-data/iam/security-credentials/",Et="/latest/api/token",u3="AWS_EC2_METADATA_V1_DISABLED",VK="ec2_metadata_v1_disabled",PK="x-aws-ec2-metadata-token",Tt=_0((f={})=>rt(Ut(f),{logger:f.logger}),"fromInstanceMetadata"),Ut=_0((f={})=>{let h=!1,{logger:w,profile:s}=f,{timeout:$,maxRetries:r}=h8(f),E=_0(async(T,U)=>{if(h||U.headers?.[PK]==null){let I=!1,L=!1,W=await w8.loadConfig({environmentVariableSelector:(X)=>{let Q=X[u3];if(L=!!Q&&Q!=="false",Q===void 0)throw new Zf.CredentialsProviderError(`${u3} not set in env, checking config file next.`,{logger:f.logger});return L},configFileSelector:(X)=>{let Q=X[VK];return I=!!Q&&Q!=="false",I},default:!1},{profile:s})();if(f.ec2MetadataV1Disabled||W){let X=[];if(f.ec2MetadataV1Disabled)X.push("credential provider initialization (runtime option ec2MetadataV1Disabled)");if(I)X.push(`config file profile (${VK})`);if(L)X.push(`process environment variable (${u3})`);throw new _u(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${X.join(", ")}].`)}}let C=(await t3(async()=>{let I;try{I=await Ct(U)}catch(L){if(L.statusCode===401)h=!1;throw L}return I},T)).trim();return t3(async()=>{let I;try{I=await It(C,U,f)}catch(L){if(L.statusCode===401)h=!1;throw L}return I},T)},"getCredentials");return async()=>{let T=await OK();if(h)return w?.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)"),E(r,{...T,timeout:$});else{let U;try{U=(await Ft({...T,timeout:$})).toString()}catch(F){if(F?.statusCode===400)throw Object.assign(F,{message:"EC2 Metadata token request returned error"});else if(F.message==="TimeoutError"||[403,404,405].includes(F.statusCode))h=!0;return w?.debug("AWS SDK Instance Metadata","using v1 fallback (initial)"),E(r,{...T,timeout:$})}return E(r,{...T,headers:{[PK]:U},timeout:$})}}},"getInstanceMetadataProvider"),Ft=_0(async(f)=>Ns({...f,path:Et,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),"getMetadataToken"),Ct=_0(async(f)=>(await Ns({...f,path:lK})).toString(),"getProfile"),It=_0(async(f,h,w)=>{let s=JSON.parse((await Ns({...h,path:lK+f})).toString());if(!NK(s))throw new Zf.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:w.logger});return DK(s)},"getCredentialsFromProfile")});var $8=H((JW0,xK)=>{var{create:Lt,defineProperty:Cr,getOwnPropertyDescriptor:Bt,getOwnPropertyNames:Gt,getPrototypeOf:Wt}=Object,At=Object.prototype.hasOwnProperty,s8=(f,h)=>Cr(f,"name",{value:h,configurable:!0}),zt=(f,h)=>{for(var w in h)Cr(f,w,{get:h[w],enumerable:!0})},cK=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Gt(h))if(!At.call(f,$)&&$!==w)Cr(f,$,{get:()=>h[$],enumerable:!(s=Bt(h,$))||s.enumerable})}return f},Rt=(f,h,w)=>(w=f!=null?Lt(Wt(f)):{},cK(h||!f||!f.__esModule?Cr(w,"default",{value:f,enumerable:!0}):w,f)),Xt=(f)=>cK(Cr({},"__esModule",{value:!0}),f),gK={};zt(gK,{resolveDefaultsModeConfig:()=>Ht});xK.exports=Xt(gK);var St=Ss(),mK=Qs(),Yt=D$(),Mt="AWS_EXECUTION_ENV",dK="AWS_REGION",iK="AWS_DEFAULT_REGION",Qt="AWS_EC2_METADATA_DISABLED",Kt=["in-region","cross-region","mobile","standard","legacy"],Zt="/latest/meta-data/placement/region",Jt="AWS_DEFAULTS_MODE",Vt="defaults_mode",Pt={environmentVariableSelector:(f)=>{return f[Jt]},configFileSelector:(f)=>{return f[Vt]},default:"legacy"},Ht=s8(({region:f=mK.loadConfig(St.NODE_REGION_CONFIG_OPTIONS),defaultsMode:h=mK.loadConfig(Pt)}={})=>Yt.memoize(async()=>{let w=typeof h==="function"?await h():h;switch(w?.toLowerCase()){case"auto":return Nt(f);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(w?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${Kt.join(", ")}, got ${w}`)}}),"resolveDefaultsModeConfig"),Nt=s8(async(f)=>{if(f){let h=typeof f==="function"?await f():f,w=await Dt();if(!w)return"standard";if(h===w)return"in-region";else return"cross-region"}return"standard"},"resolveNodeDefaultsModeAuto"),Dt=s8(async()=>{if(process.env[Mt]&&(process.env[dK]||process.env[iK]))return process.env[dK]??process.env[iK];if(!process.env[Qt])try{let{getInstanceMetadataEndpoint:f,httpRequest:h}=await Promise.resolve().then(()=>Rt(bK())),w=await f();return(await h({...w,path:Zt})).toString()}catch(f){}},"inferPhysicalRegion")});var oK=H((aK)=>{Object.defineProperty(aK,"__esModule",{value:!0});aK.getRuntimeConfig=void 0;var qt=l4(),kt=qt.__importDefault(i3()),yt=O0(),_K=g3(),WE=Ss(),jt=n3(),nK=Ur(),Ds=Qs(),eK=X4(),Ot=e3(),lt=EE(),vt=ZK(),bt=J0(),mt=$8(),dt=J0(),it=(f)=>{dt.emitWarningIfUnsupportedVersion(process.version);let h=mt.resolveDefaultsModeConfig(f),w=()=>h().then(bt.loadConfigsForDefaultMode),s=vt.getRuntimeConfig(f);yt.emitWarningIfUnsupportedVersion(process.version);let $={profile:f?.profile};return{...s,...f,runtime:"node",defaultsMode:h,bodyLengthChecker:f?.bodyLengthChecker??Ot.calculateBodyLength,defaultUserAgentProvider:f?.defaultUserAgentProvider??_K.createDefaultUserAgentProvider({serviceId:s.serviceId,clientVersion:kt.default.version}),maxAttempts:f?.maxAttempts??Ds.loadConfig(nK.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,f),region:f?.region??Ds.loadConfig(WE.NODE_REGION_CONFIG_OPTIONS,{...WE.NODE_REGION_CONFIG_FILE_OPTIONS,...$}),requestHandler:eK.NodeHttpHandler.create(f?.requestHandler??w),retryMode:f?.retryMode??Ds.loadConfig({...nK.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await w()).retryMode||lt.DEFAULT_RETRY_MODE},f),sha256:f?.sha256??jt.Hash.bind(null,"sha256"),streamCollector:f?.streamCollector??eK.streamCollector,useDualstackEndpoint:f?.useDualstackEndpoint??Ds.loadConfig(WE.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,$),useFipsEndpoint:f?.useFipsEndpoint??Ds.loadConfig(WE.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,$),userAgentAppId:f?.userAgentAppId??Ds.loadConfig(_K.NODE_APP_ID_CONFIG_OPTIONS,$)}};aK.getRuntimeConfig=it});var r8=H((PW0,sZ)=>{var{defineProperty:AE,getOwnPropertyDescriptor:ct,getOwnPropertyNames:gt}=Object,xt=Object.prototype.hasOwnProperty,Jf=(f,h)=>AE(f,"name",{value:h,configurable:!0}),_t=(f,h)=>{for(var w in h)AE(f,w,{get:h[w],enumerable:!0})},nt=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of gt(h))if(!xt.call(f,$)&&$!==w)AE(f,$,{get:()=>h[$],enumerable:!(s=ct(h,$))||s.enumerable})}return f},et=(f)=>nt(AE({},"__esModule",{value:!0}),f),tK={};_t(tK,{NODE_REGION_CONFIG_FILE_OPTIONS:()=>ut,NODE_REGION_CONFIG_OPTIONS:()=>ot,REGION_ENV_NAME:()=>fZ,REGION_INI_NAME:()=>hZ,getAwsRegionExtensionConfiguration:()=>at,resolveAwsRegionExtensionConfiguration:()=>pt,resolveRegionConfig:()=>tt});sZ.exports=et(tK);var at=Jf((f)=>{return{setRegion(h){f.region=h},region(){return f.region}}},"getAwsRegionExtensionConfiguration"),pt=Jf((f)=>{return{region:f.region()}},"resolveAwsRegionExtensionConfiguration"),fZ="AWS_REGION",hZ="region",ot={environmentVariableSelector:Jf((f)=>f[fZ],"environmentVariableSelector"),configFileSelector:Jf((f)=>f[hZ],"configFileSelector"),default:Jf(()=>{throw new Error("Region is missing")},"default")},ut={preferredFile:"credentials"},wZ=Jf((f)=>typeof f==="string"&&(f.startsWith("fips-")||f.endsWith("-fips")),"isFipsRegion"),uK=Jf((f)=>wZ(f)?["fips-aws-global","aws-fips"].includes(f)?"us-east-1":f.replace(/fips-(dkr-|prod-)?|-fips/,""):f,"getRealRegion"),tt=Jf((f)=>{let{region:h,useFipsEndpoint:w}=f;if(!h)throw new Error("Region is missing");return Object.assign(f,{region:Jf(async()=>{if(typeof h==="string")return uK(h);let s=await h();return uK(s)},"region"),useFipsEndpoint:Jf(async()=>{let s=typeof h==="string"?h:await h();if(wZ(s))return!0;return typeof w!=="function"?Promise.resolve(!!w):w()},"useFipsEndpoint")})},"resolveRegionConfig")});var U8=H((HW0,NZ)=>{var{defineProperty:zE,getOwnPropertyDescriptor:f00,getOwnPropertyNames:h00}=Object,w00=Object.prototype.hasOwnProperty,w0=(f,h)=>zE(f,"name",{value:h,configurable:!0}),s00=(f,h)=>{for(var w in h)zE(f,w,{get:h[w],enumerable:!0})},$00=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of h00(h))if(!w00.call(f,$)&&$!==w)zE(f,$,{get:()=>h[$],enumerable:!(s=f00(h,$))||s.enumerable})}return f},r00=(f)=>$00(zE({},"__esModule",{value:!0}),f),IZ={};s00(IZ,{$Command:()=>GZ.Command,AccessDeniedException:()=>WZ,AuthorizationPendingException:()=>AZ,CreateTokenCommand:()=>PZ,CreateTokenRequestFilterSensitiveLog:()=>zZ,CreateTokenResponseFilterSensitiveLog:()=>RZ,ExpiredTokenException:()=>XZ,InternalServerException:()=>SZ,InvalidClientException:()=>YZ,InvalidGrantException:()=>MZ,InvalidRequestException:()=>QZ,InvalidScopeException:()=>KZ,SSOOIDC:()=>HZ,SSOOIDCClient:()=>BZ,SSOOIDCServiceException:()=>Z1,SlowDownException:()=>ZZ,UnauthorizedClientException:()=>JZ,UnsupportedGrantTypeException:()=>VZ,__Client:()=>LZ.Client});NZ.exports=r00(IZ);var $Z=U3(),E00=C3(),T00=L3(),rZ=x5(),U00=Ss(),E8=m0(),F00=Y3(),C00=Ks(),EZ=Ur(),LZ=J0(),TZ=d3(),I00=w0((f)=>{return Object.assign(f,{useDualstackEndpoint:f.useDualstackEndpoint??!1,useFipsEndpoint:f.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"})},"resolveClientEndpointParameters"),L00={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},B00=oK(),UZ=r8(),FZ=t0(),CZ=J0(),G00=w0((f)=>{let{httpAuthSchemes:h,httpAuthSchemeProvider:w,credentials:s}=f;return{setHttpAuthScheme($){let r=h.findIndex((E)=>E.schemeId===$.schemeId);if(r===-1)h.push($);else h.splice(r,1,$)},httpAuthSchemes(){return h},setHttpAuthSchemeProvider($){w=$},httpAuthSchemeProvider(){return w},setCredentials($){s=$},credentials(){return s}}},"getHttpAuthExtensionConfiguration"),W00=w0((f)=>{return{httpAuthSchemes:f.httpAuthSchemes(),httpAuthSchemeProvider:f.httpAuthSchemeProvider(),credentials:f.credentials()}},"resolveHttpAuthRuntimeConfig"),A00=w0((f,h)=>{let w=Object.assign(UZ.getAwsRegionExtensionConfiguration(f),CZ.getDefaultExtensionConfiguration(f),FZ.getHttpHandlerExtensionConfiguration(f),G00(f));return h.forEach((s)=>s.configure(w)),Object.assign(f,UZ.resolveAwsRegionExtensionConfiguration(w),CZ.resolveDefaultRuntimeConfig(w),FZ.resolveHttpHandlerRuntimeConfig(w),W00(w))},"resolveRuntimeExtensions"),BZ=class extends LZ.Client{static{w0(this,"SSOOIDCClient")}config;constructor(...[f]){let h=B00.getRuntimeConfig(f||{});super(h);this.initConfig=h;let w=I00(h),s=rZ.resolveUserAgentConfig(w),$=EZ.resolveRetryConfig(s),r=U00.resolveRegionConfig($),E=$Z.resolveHostHeaderConfig(r),T=C00.resolveEndpointConfig(E),U=TZ.resolveHttpAuthSchemeConfig(T),F=A00(U,f?.extensions||[]);this.config=F,this.middlewareStack.use(rZ.getUserAgentPlugin(this.config)),this.middlewareStack.use(EZ.getRetryPlugin(this.config)),this.middlewareStack.use(F00.getContentLengthPlugin(this.config)),this.middlewareStack.use($Z.getHostHeaderPlugin(this.config)),this.middlewareStack.use(E00.getLoggerPlugin(this.config)),this.middlewareStack.use(T00.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(E8.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:TZ.defaultSSOOIDCHttpAuthSchemeParametersProvider,identityProviderConfigProvider:w0(async(C)=>new E8.DefaultIdentityProviderConfig({"aws.auth#sigv4":C.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(E8.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}},z00=J0(),R00=Ks(),X00=qw(),GZ=J0(),qs=J0(),S00=J0(),Z1=class f extends S00.ServiceException{static{w0(this,"SSOOIDCServiceException")}constructor(h){super(h);Object.setPrototypeOf(this,f.prototype)}},WZ=class f extends Z1{static{w0(this,"AccessDeniedException")}name="AccessDeniedException";$fault="client";error;error_description;constructor(h){super({name:"AccessDeniedException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype),this.error=h.error,this.error_description=h.error_description}},AZ=class f extends Z1{static{w0(this,"AuthorizationPendingException")}name="AuthorizationPendingException";$fault="client";error;error_description;constructor(h){super({name:"AuthorizationPendingException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype),this.error=h.error,this.error_description=h.error_description}},zZ=w0((f)=>({...f,...f.clientSecret&&{clientSecret:qs.SENSITIVE_STRING},...f.refreshToken&&{refreshToken:qs.SENSITIVE_STRING},...f.codeVerifier&&{codeVerifier:qs.SENSITIVE_STRING}}),"CreateTokenRequestFilterSensitiveLog"),RZ=w0((f)=>({...f,...f.accessToken&&{accessToken:qs.SENSITIVE_STRING},...f.refreshToken&&{refreshToken:qs.SENSITIVE_STRING},...f.idToken&&{idToken:qs.SENSITIVE_STRING}}),"CreateTokenResponseFilterSensitiveLog"),XZ=class f extends Z1{static{w0(this,"ExpiredTokenException")}name="ExpiredTokenException";$fault="client";error;error_description;constructor(h){super({name:"ExpiredTokenException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype),this.error=h.error,this.error_description=h.error_description}},SZ=class f extends Z1{static{w0(this,"InternalServerException")}name="InternalServerException";$fault="server";error;error_description;constructor(h){super({name:"InternalServerException",$fault:"server",...h});Object.setPrototypeOf(this,f.prototype),this.error=h.error,this.error_description=h.error_description}},YZ=class f extends Z1{static{w0(this,"InvalidClientException")}name="InvalidClientException";$fault="client";error;error_description;constructor(h){super({name:"InvalidClientException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype),this.error=h.error,this.error_description=h.error_description}},MZ=class f extends Z1{static{w0(this,"InvalidGrantException")}name="InvalidGrantException";$fault="client";error;error_description;constructor(h){super({name:"InvalidGrantException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype),this.error=h.error,this.error_description=h.error_description}},QZ=class f extends Z1{static{w0(this,"InvalidRequestException")}name="InvalidRequestException";$fault="client";error;error_description;constructor(h){super({name:"InvalidRequestException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype),this.error=h.error,this.error_description=h.error_description}},KZ=class f extends Z1{static{w0(this,"InvalidScopeException")}name="InvalidScopeException";$fault="client";error;error_description;constructor(h){super({name:"InvalidScopeException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype),this.error=h.error,this.error_description=h.error_description}},ZZ=class f extends Z1{static{w0(this,"SlowDownException")}name="SlowDownException";$fault="client";error;error_description;constructor(h){super({name:"SlowDownException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype),this.error=h.error,this.error_description=h.error_description}},JZ=class f extends Z1{static{w0(this,"UnauthorizedClientException")}name="UnauthorizedClientException";$fault="client";error;error_description;constructor(h){super({name:"UnauthorizedClientException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype),this.error=h.error,this.error_description=h.error_description}},VZ=class f extends Z1{static{w0(this,"UnsupportedGrantTypeException")}name="UnsupportedGrantTypeException";$fault="client";error;error_description;constructor(h){super({name:"UnsupportedGrantTypeException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype),this.error=h.error,this.error_description=h.error_description}},T8=O0(),Y00=m0(),x=J0(),M00=w0(async(f,h)=>{let w=Y00.requestBuilder(f,h),s={"content-type":"application/json"};w.bp("/token");let $;return $=JSON.stringify(x.take(f,{clientId:[],clientSecret:[],code:[],codeVerifier:[],deviceCode:[],grantType:[],redirectUri:[],refreshToken:[],scope:w0((r)=>x._json(r),"scope")})),w.m("POST").h(s).b($),w.build()},"se_CreateTokenCommand"),Q00=w0(async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return K00(f,h);let w=x.map({$metadata:i1(f)}),s=x.expectNonNull(x.expectObject(await T8.parseJsonBody(f.body,h)),"body"),$=x.take(s,{accessToken:x.expectString,expiresIn:x.expectInt32,idToken:x.expectString,refreshToken:x.expectString,tokenType:x.expectString});return Object.assign(w,$),w},"de_CreateTokenCommand"),K00=w0(async(f,h)=>{let w={...f,body:await T8.parseJsonErrorBody(f.body,h)},s=T8.loadRestJsonErrorCode(f,w.body);switch(s){case"AccessDeniedException":case"com.amazonaws.ssooidc#AccessDeniedException":throw await J00(w,h);case"AuthorizationPendingException":case"com.amazonaws.ssooidc#AuthorizationPendingException":throw await V00(w,h);case"ExpiredTokenException":case"com.amazonaws.ssooidc#ExpiredTokenException":throw await P00(w,h);case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await H00(w,h);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await N00(w,h);case"InvalidGrantException":case"com.amazonaws.ssooidc#InvalidGrantException":throw await D00(w,h);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await q00(w,h);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await k00(w,h);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await y00(w,h);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await j00(w,h);case"UnsupportedGrantTypeException":case"com.amazonaws.ssooidc#UnsupportedGrantTypeException":throw await O00(w,h);default:let $=w.body;return Z00({output:f,parsedBody:$,errorCode:s})}},"de_CommandError"),Z00=x.withBaseException(Z1),J00=w0(async(f,h)=>{let w=x.map({}),s=f.body,$=x.take(s,{error:x.expectString,error_description:x.expectString});Object.assign(w,$);let r=new WZ({$metadata:i1(f),...w});return x.decorateServiceException(r,f.body)},"de_AccessDeniedExceptionRes"),V00=w0(async(f,h)=>{let w=x.map({}),s=f.body,$=x.take(s,{error:x.expectString,error_description:x.expectString});Object.assign(w,$);let r=new AZ({$metadata:i1(f),...w});return x.decorateServiceException(r,f.body)},"de_AuthorizationPendingExceptionRes"),P00=w0(async(f,h)=>{let w=x.map({}),s=f.body,$=x.take(s,{error:x.expectString,error_description:x.expectString});Object.assign(w,$);let r=new XZ({$metadata:i1(f),...w});return x.decorateServiceException(r,f.body)},"de_ExpiredTokenExceptionRes"),H00=w0(async(f,h)=>{let w=x.map({}),s=f.body,$=x.take(s,{error:x.expectString,error_description:x.expectString});Object.assign(w,$);let r=new SZ({$metadata:i1(f),...w});return x.decorateServiceException(r,f.body)},"de_InternalServerExceptionRes"),N00=w0(async(f,h)=>{let w=x.map({}),s=f.body,$=x.take(s,{error:x.expectString,error_description:x.expectString});Object.assign(w,$);let r=new YZ({$metadata:i1(f),...w});return x.decorateServiceException(r,f.body)},"de_InvalidClientExceptionRes"),D00=w0(async(f,h)=>{let w=x.map({}),s=f.body,$=x.take(s,{error:x.expectString,error_description:x.expectString});Object.assign(w,$);let r=new MZ({$metadata:i1(f),...w});return x.decorateServiceException(r,f.body)},"de_InvalidGrantExceptionRes"),q00=w0(async(f,h)=>{let w=x.map({}),s=f.body,$=x.take(s,{error:x.expectString,error_description:x.expectString});Object.assign(w,$);let r=new QZ({$metadata:i1(f),...w});return x.decorateServiceException(r,f.body)},"de_InvalidRequestExceptionRes"),k00=w0(async(f,h)=>{let w=x.map({}),s=f.body,$=x.take(s,{error:x.expectString,error_description:x.expectString});Object.assign(w,$);let r=new KZ({$metadata:i1(f),...w});return x.decorateServiceException(r,f.body)},"de_InvalidScopeExceptionRes"),y00=w0(async(f,h)=>{let w=x.map({}),s=f.body,$=x.take(s,{error:x.expectString,error_description:x.expectString});Object.assign(w,$);let r=new ZZ({$metadata:i1(f),...w});return x.decorateServiceException(r,f.body)},"de_SlowDownExceptionRes"),j00=w0(async(f,h)=>{let w=x.map({}),s=f.body,$=x.take(s,{error:x.expectString,error_description:x.expectString});Object.assign(w,$);let r=new JZ({$metadata:i1(f),...w});return x.decorateServiceException(r,f.body)},"de_UnauthorizedClientExceptionRes"),O00=w0(async(f,h)=>{let w=x.map({}),s=f.body,$=x.take(s,{error:x.expectString,error_description:x.expectString});Object.assign(w,$);let r=new VZ({$metadata:i1(f),...w});return x.decorateServiceException(r,f.body)},"de_UnsupportedGrantTypeExceptionRes"),i1=w0((f)=>({httpStatusCode:f.statusCode,requestId:f.headers["x-amzn-requestid"]??f.headers["x-amzn-request-id"]??f.headers["x-amz-request-id"],extendedRequestId:f.headers["x-amz-id-2"],cfId:f.headers["x-amz-cf-id"]}),"deserializeMetadata"),PZ=class extends GZ.Command.classBuilder().ep(L00).m(function(f,h,w,s){return[X00.getSerdePlugin(w,this.serialize,this.deserialize),R00.getEndpointPlugin(w,f.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","CreateToken",{}).n("SSOOIDCClient","CreateTokenCommand").f(zZ,RZ).ser(M00).de(Q00).build(){static{w0(this,"CreateTokenCommand")}},l00={CreateTokenCommand:PZ},HZ=class extends BZ{static{w0(this,"SSOOIDC")}};z00.createAggregatedClient(l00,HZ)});var DZ=async(f,h={})=>{let{SSOOIDCClient:w}=await Promise.resolve().then(() => o(U8(),1));return new w(Object.assign({},h.clientConfig??{},{region:f??h.clientConfig?.region,logger:h.clientConfig?.logger??h.parentClientConfig?.logger}))};var qZ=async(f,h,w={})=>{let{CreateTokenCommand:s}=await Promise.resolve().then(() => o(U8(),1));return(await DZ(h,w)).send(new s({clientId:f.clientId,clientSecret:f.clientSecret,refreshToken:f.refreshToken,grantType:"refresh_token"}))};var kZ=()=>{};var F8=(f)=>{if(f.expiration&&f.expiration.getTime()<Date.now())throw new S1(`Token is expired. ${Rs}`,!1)};var yZ=B(()=>{Y0()});var yh=(f,h,w=!1)=>{if(typeof h==="undefined")throw new S1(`Value not present for '${f}' in SSO Token${w?". Cannot refresh":""}. ${Rs}`,!1)};var jZ=B(()=>{Y0()});import{promises as v00}from"node:fs";var b00,OZ=(f,h)=>{let w=E5(f),s=JSON.stringify(h,null,2);return b00(w,s)};var lZ=B(()=>{hf();({writeFile:b00}=v00)});var vZ,bZ=(f={})=>async({callerClientConfig:h}={})=>{let w={...f,parentClientConfig:{...h,...f.parentClientConfig}};w.logger?.debug("@aws-sdk/token-providers - fromSso");let s=await Zh(w),$=y1({profile:w.profile??h?.profile}),r=s[$];if(!r)throw new S1(`Profile '${$}' could not be found in shared credentials file.`,!1);else if(!r.sso_session)throw new S1(`Profile '${$}' is missing required property 'sso_session'.`);let E=r.sso_session,U=(await C5(w))[E];if(!U)throw new S1(`Sso session '${E}' could not be found in shared credentials file.`,!1);for(let Q of["sso_start_url","sso_region"])if(!U[Q])throw new S1(`Sso session '${E}' is missing required property '${Q}'.`,!1);let{sso_start_url:F,sso_region:C}=U,I;try{I=await T5(E)}catch(Q){throw new S1(`The SSO session token associated with profile=${$} was not found or is invalid. ${Rs}`,!1)}yh("accessToken",I.accessToken),yh("expiresAt",I.expiresAt);let{accessToken:L,expiresAt:W}=I,X={token:L,expiration:new Date(W)};if(X.expiration.getTime()-Date.now()>C9)return X;if(Date.now()-vZ.getTime()<30000)return F8(X),X;yh("clientId",I.clientId,!0),yh("clientSecret",I.clientSecret,!0),yh("refreshToken",I.refreshToken,!0);try{vZ.setTime(Date.now());let Q=await qZ(I,C,w);yh("accessToken",Q.accessToken),yh("expiresIn",Q.expiresIn);let M=new Date(Date.now()+Q.expiresIn*1000);try{await OZ(E,{...I,accessToken:Q.accessToken,expiresAt:M.toISOString(),refreshToken:Q.refreshToken})}catch(q){}return{token:Q.accessToken,expiration:M}}catch(Q){return F8(X),X}};var mZ=B(()=>{Y0();hf();kZ();yZ();jZ();lZ();vZ=new Date(0)});var dZ=B(()=>{Y0()});var iZ=B(()=>{Y0()});var cZ=B(()=>{mZ();dZ();iZ()});function m00(f){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:f.region},propertiesExtractor:(h,w)=>({signingProperties:{config:h,context:w}})}}function RE(f){return{schemeId:"smithy.api#noAuth"}}var gZ,xZ=async(f,h,w)=>{return{operation:Yh(h).operation,region:await B1(f.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}},_Z=(f)=>{let h=[];switch(f.operation){case"GetRoleCredentials":{h.push(RE(f));break}case"ListAccountRoles":{h.push(RE(f));break}case"ListAccounts":{h.push(RE(f));break}case"Logout":{h.push(RE(f));break}default:h.push(m00(f))}return h},nZ=(f)=>{let h=gZ.resolveAwsSdkSigV4Config(f);return Object.assign(h,{})};var C8=B(()=>{gZ=o(O0(),1);gf()});var eZ=(f)=>{return Object.assign(f,{useDualstackEndpoint:f.useDualstackEndpoint??!1,useFipsEndpoint:f.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"})},jh;var ks=B(()=>{jh={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var pZ;var aZ=B(()=>{pZ={name:"@aws-sdk/client-sso",description:"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",version:"3.775.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.775.0","@aws-sdk/middleware-host-header":"3.775.0","@aws-sdk/middleware-logger":"3.775.0","@aws-sdk/middleware-recursion-detection":"3.775.0","@aws-sdk/middleware-user-agent":"3.775.0","@aws-sdk/region-config-resolver":"3.775.0","@aws-sdk/types":"3.775.0","@aws-sdk/util-endpoints":"3.775.0","@aws-sdk/util-user-agent-browser":"3.775.0","@aws-sdk/util-user-agent-node":"3.775.0","@smithy/config-resolver":"^4.1.0","@smithy/core":"^3.2.0","@smithy/fetch-http-handler":"^5.0.2","@smithy/hash-node":"^4.0.2","@smithy/invalid-dependency":"^4.0.2","@smithy/middleware-content-length":"^4.0.2","@smithy/middleware-endpoint":"^4.1.0","@smithy/middleware-retry":"^4.1.0","@smithy/middleware-serde":"^4.0.3","@smithy/middleware-stack":"^4.0.2","@smithy/node-config-provider":"^4.0.2","@smithy/node-http-handler":"^4.0.4","@smithy/protocol-http":"^5.1.0","@smithy/smithy-client":"^4.2.0","@smithy/types":"^4.2.0","@smithy/url-parser":"^4.0.2","@smithy/util-base64":"^4.0.0","@smithy/util-body-length-browser":"^4.0.0","@smithy/util-body-length-node":"^4.0.0","@smithy/util-defaults-mode-browser":"^4.0.8","@smithy/util-defaults-mode-node":"^4.0.8","@smithy/util-endpoints":"^3.0.2","@smithy/util-middleware":"^4.0.2","@smithy/util-retry":"^4.0.2","@smithy/util-utf8":"^4.0.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node18":"18.2.4","@types/node":"^18.19.69",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~5.2.2"},engines:{node:">=18.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 I8;var L8=B(()=>{I8={isCrtAvailable:!1}});var oZ=()=>{if(I8.isCrtAvailable)return["md/crt-avail"];return null};var uZ=B(()=>{L8()});import{platform as i00,release as c00}from"node:os";import{env as tZ,versions as g00}from"node:process";var ys=({serviceId:f,clientVersion:h})=>{return async(w)=>{let s=[["aws-sdk-js",h],["ua","2.1"],[`os/${i00()}`,c00()],["lang/js"],["md/nodejs",`${g00.node}`]],$=oZ();if($)s.push($);if(f)s.push([`api/${f}`,h]);if(tZ.AWS_EXECUTION_ENV)s.push([`exec-env/${tZ.AWS_EXECUTION_ENV}`]);let r=await w?.userAgentAppId?.();return r?[...s,[`app/${r}`]]:[...s]}};var fJ=B(()=>{uZ();L8()});var x00="AWS_SDK_UA_APP_ID",_00="sdk_ua_app_id",n00="sdk-ua-app-id",js;var hJ=B(()=>{m$();js={environmentVariableSelector:(f)=>f[x00],configFileSelector:(f)=>f[_00]??f[n00],default:FU}});var XE=B(()=>{fJ();hJ()});var wJ=(f)=>typeof ArrayBuffer==="function"&&f instanceof ArrayBuffer||Object.prototype.toString.call(f)==="[object ArrayBuffer]";import{Buffer as B8}from"node:buffer";var Fw=(f,h=0,w=f.byteLength-h)=>{if(!wJ(f))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof f} (${f})`);return B8.from(f,h,w)},Os=(f,h)=>{if(typeof f!=="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof f} (${f})`);return h?B8.from(f,h):B8.from(f)};var ls=()=>{};var Vf=(f)=>{let h=Os(f,"utf8");return new Uint8Array(h.buffer,h.byteOffset,h.byteLength/Uint8Array.BYTES_PER_ELEMENT)};var G8=B(()=>{ls()});var sJ=(f)=>{if(typeof f==="string")return Vf(f);if(ArrayBuffer.isView(f))return new Uint8Array(f.buffer,f.byteOffset,f.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(f)};var $J=B(()=>{G8()});var vs=(f)=>{if(typeof f==="string")return f;if(typeof f!=="object"||typeof f.byteOffset!=="number"||typeof f.byteLength!=="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return Fw(f.buffer,f.byteOffset,f.byteLength).toString("utf8")};var rJ=B(()=>{ls()});var bs=B(()=>{G8();$J();rJ()});import{Buffer as e00}from"node:buffer";import{createHash as a00,createHmac as p00}from"node:crypto";class Cw{constructor(f,h){this.algorithmIdentifier=f,this.secret=h,this.reset()}update(f,h){this.hash.update(sJ(EJ(f,h)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?p00(this.algorithmIdentifier,EJ(this.secret)):a00(this.algorithmIdentifier)}}function EJ(f,h){if(e00.isBuffer(f))return f;if(typeof f==="string")return Os(f,h);if(ArrayBuffer.isView(f))return Fw(f.buffer,f.byteOffset,f.byteLength);return Fw(f)}var SE=B(()=>{ls();bs()});import{fstatSync as o00,lstatSync as u00}from"node:fs";var ms=(f)=>{if(!f)return 0;if(typeof f==="string")return Buffer.byteLength(f);else if(typeof f.byteLength==="number")return f.byteLength;else if(typeof f.size==="number")return f.size;else if(typeof f.start==="number"&&typeof f.end==="number")return f.end+1-f.start;else if(typeof f.path==="string"||Buffer.isBuffer(f.path))return u00(f.path).size;else if(typeof f.fd==="number")return o00(f.fd).size;throw new Error(`Body Length computation failed for ${f}`)};var TJ=()=>{};var YE=B(()=>{TJ()});var t00,ds=(f)=>{if(f.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!t00.exec(f))throw new TypeError("Invalid base64 string.");let h=Os(f,"base64");return new Uint8Array(h.buffer,h.byteOffset,h.byteLength)};var UJ=B(()=>{ls();t00=/^[A-Za-z0-9+/]*={0,2}$/});var is=(f)=>{let h;if(typeof f==="string")h=Vf(f);else h=f;if(typeof h!=="object"||typeof h.byteOffset!=="number"||typeof h.byteLength!=="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return Fw(h.buffer,h.byteOffset,h.byteLength).toString("base64")};var FJ=B(()=>{ls();bs()});var ME=B(()=>{UJ();FJ()});var CJ,IJ,LJ,RJ,XJ,c1,BJ,SJ,GJ,WJ,AJ,zJ,f10,YJ;var MJ=B(()=>{CJ={["required"]:!1,type:"String"},IJ={["required"]:!0,default:!1,type:"Boolean"},LJ={["ref"]:"Endpoint"},RJ={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},XJ={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},c1={},BJ={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},SJ={["ref"]:"PartitionResult"},GJ={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[SJ,"supportsDualStack"]}]},WJ=[RJ],AJ=[XJ],zJ=[{["ref"]:"Region"}],f10={version:"1.0",parameters:{Region:CJ,UseDualStack:IJ,UseFIPS:IJ,Endpoint:CJ},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[LJ]}],rules:[{conditions:WJ,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:AJ,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:LJ,properties:c1,headers:c1},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:zJ}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:zJ,assign:"PartitionResult"}],rules:[{conditions:[RJ,XJ],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,BJ]},GJ],rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:c1,headers:c1},type:"endpoint"}],type:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}],type:"tree"},{conditions:WJ,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[BJ,!0]}],rules:[{conditions:[{["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[SJ,"name"]},"aws-us-gov"]}],endpoint:{url:"https://portal.sso.{Region}.amazonaws.com",properties:c1,headers:c1},type:"endpoint"},{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",properties:c1,headers:c1},type:"endpoint"}],type:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",type:"error"}],type:"tree"},{conditions:AJ,rules:[{conditions:[GJ],rules:[{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:c1,headers:c1},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:c1,headers:c1},type:"endpoint"}],type:"tree"}],type:"tree"},{error:"Invalid Configuration: Missing Region",type:"error"}]},YJ=f10});var h10,QJ=(f,h={})=>{return h10.get(f,()=>nh(YJ,{endpointParams:f,logger:h.logger}))};var KJ=B(()=>{N$();cf();MJ();h10=new _h({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]});t1.aws=eh});var ZJ,JJ,VJ=(f)=>{return{apiVersion:"2019-06-10",base64Decoder:f?.base64Decoder??ds,base64Encoder:f?.base64Encoder??is,disableHostPrefix:f?.disableHostPrefix??!1,endpointProvider:f?.endpointProvider??QJ,extensions:f?.extensions??[],httpAuthSchemeProvider:f?.httpAuthSchemeProvider??_Z,httpAuthSchemes:f?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(h)=>h.getIdentityProvider("aws.auth#sigv4"),signer:new ZJ.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(h)=>h.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new JJ.NoAuthSigner}],logger:f?.logger??new nf,serviceId:f?.serviceId??"SSO",urlParser:f?.urlParser??O1,utf8Decoder:f?.utf8Decoder??Vf,utf8Encoder:f?.utf8Encoder??vs}};var PJ=B(()=>{ZJ=o(O0(),1),JJ=o(m0(),1);J();uw();ME();bs();C8();KJ()});var HJ="AWS_EXECUTION_ENV",W8="AWS_REGION",A8="AWS_DEFAULT_REGION",NJ="AWS_EC2_METADATA_DISABLED",DJ,qJ="/latest/meta-data/placement/region";var kJ=B(()=>{DJ=["in-region","cross-region","mobile","standard","legacy"]});var yJ;var jJ=B(()=>{yJ={environmentVariableSelector:(f)=>{return f.AWS_DEFAULTS_MODE},configFileSelector:(f)=>{return f.defaults_mode},default:"legacy"}});var cs=({region:f=z0(Mh),defaultsMode:h=z0(yJ)}={})=>fw(async()=>{let w=typeof h==="function"?await h():h;switch(w?.toLowerCase()){case"auto":return w10(f);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(w?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${DJ.join(", ")}, got ${w}`)}}),w10=async(f)=>{if(f){let h=typeof f==="function"?await f():f,w=await s10();if(!w)return"standard";if(h===w)return"in-region";else return"cross-region"}return"standard"},s10=async()=>{if(process.env[HJ]&&(process.env[W8]||process.env[A8]))return process.env[W8]??process.env[A8];if(!process.env[NJ])try{let{getInstanceMetadataEndpoint:f,httpRequest:h}=await Promise.resolve().then(() => (fr(),t$)),w=await f();return(await h({...w,path:qJ})).toString()}catch(f){}};var OJ=B(()=>{Qh();Jh();Y0();kJ();jJ()});var QE=B(()=>{OJ()});var lJ,vJ=(f)=>{Is(process.version);let h=cs(f),w=()=>h().then(Cs),s=VJ(f);lJ.emitWarningIfUnsupportedVersion(process.version);let $={profile:f?.profile};return{...s,...f,runtime:"node",defaultsMode:h,bodyLengthChecker:f?.bodyLengthChecker??ms,defaultUserAgentProvider:f?.defaultUserAgentProvider??ys({serviceId:s.serviceId,clientVersion:pZ.version}),maxAttempts:f?.maxAttempts??z0(ss,f),region:f?.region??z0(Mh,{...nw,...$}),requestHandler:rf.create(f?.requestHandler??w),retryMode:f?.retryMode??z0({...rs,default:async()=>(await w()).retryMode||Vh},f),sha256:f?.sha256??Cw.bind(null,"sha256"),streamCollector:f?.streamCollector??zs,useDualstackEndpoint:f?.useDualstackEndpoint??z0(xw,$),useFipsEndpoint:f?.useFipsEndpoint??z0(_w,$),userAgentAppId:f?.userAgentAppId??z0(js,$)}};var bJ=B(()=>{aZ();lJ=o(O0(),1);XE();Qh();SE();Ew();Jh();hr();YE();wf();PJ();J();QE();J()});var gs=(f)=>{return{setRegion(h){f.region=h},region(){return f.region}}},xs=(f)=>{return{region:f.region()}};var mJ=()=>{};var dJ=()=>{};var iJ=B(()=>{dJ()});var cJ=B(()=>{mJ();iJ()});var KE=B(()=>{cJ()});var gJ=(f)=>{let{httpAuthSchemes:h,httpAuthSchemeProvider:w,credentials:s}=f;return{setHttpAuthScheme($){let r=h.findIndex((E)=>E.schemeId===$.schemeId);if(r===-1)h.push($);else h.splice(r,1,$)},httpAuthSchemes(){return h},setHttpAuthSchemeProvider($){w=$},httpAuthSchemeProvider(){return w},setCredentials($){s=$},credentials(){return s}}},xJ=(f)=>{return{httpAuthSchemes:f.httpAuthSchemes(),httpAuthSchemeProvider:f.httpAuthSchemeProvider(),credentials:f.credentials()}};var _J=(f,h)=>{let w=Object.assign(gs(f),Ls(f),Jw(f),gJ(f));return h.forEach((s)=>s.configure(w)),Object.assign(f,xs(w),Bs(w),Vw(w),xJ(w))};var nJ=B(()=>{KE();C1();J()});var _s,of;var Ir=B(()=>{r4();E4();T4();m$();Qh();_s=o(m0(),1);$5();D();Ew();J();C8();ks();bJ();nJ();of=class of extends $w{config;constructor(...[f]){let h=vJ(f||{});super(h);this.initConfig=h;let w=eZ(h),s=Ow(w),$=$s(s),r=ew($),E=Pw(r),T=tw(E),U=nZ(T),F=_J(U,f?.extensions||[]);this.config=F,this.middlewareStack.use(cw(this.config)),this.middlewareStack.use(Ws(this.config)),this.middlewareStack.use(aw(this.config)),this.middlewareStack.use(Hw(this.config)),this.middlewareStack.use(Nw(this.config)),this.middlewareStack.use(Dw(this.config)),this.middlewareStack.use(_s.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:xZ,identityProviderConfigProvider:async(C)=>new _s.DefaultIdentityProviderConfig({"aws.auth#sigv4":C.credentials})})),this.middlewareStack.use(_s.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}});var uf;var z8=B(()=>{J();uf=class uf extends $f{constructor(f){super(f);Object.setPrototypeOf(this,uf.prototype)}}});var ZE,JE,VE,PE,eJ=(f)=>({...f,...f.accessToken&&{accessToken:U0}}),r10=(f)=>({...f,...f.secretAccessKey&&{secretAccessKey:U0},...f.sessionToken&&{sessionToken:U0}}),aJ=(f)=>({...f,...f.roleCredentials&&{roleCredentials:r10(f.roleCredentials)}}),pJ=(f)=>({...f,...f.accessToken&&{accessToken:U0}}),oJ=(f)=>({...f,...f.accessToken&&{accessToken:U0}}),uJ=(f)=>({...f,...f.accessToken&&{accessToken:U0}});var Iw=B(()=>{J();z8();ZE=class ZE extends uf{name="InvalidRequestException";$fault="client";constructor(f){super({name:"InvalidRequestException",$fault:"client",...f});Object.setPrototypeOf(this,ZE.prototype)}};JE=class JE extends uf{name="ResourceNotFoundException";$fault="client";constructor(f){super({name:"ResourceNotFoundException",$fault:"client",...f});Object.setPrototypeOf(this,JE.prototype)}};VE=class VE extends uf{name="TooManyRequestsException";$fault="client";constructor(f){super({name:"TooManyRequestsException",$fault:"client",...f});Object.setPrototypeOf(this,VE.prototype)}};PE=class PE extends uf{name="UnauthorizedException";$fault="client";constructor(f){super({name:"UnauthorizedException",$fault:"client",...f});Object.setPrototypeOf(this,PE.prototype)}}});var Oh,Lr,tJ=async(f,h)=>{let w=Lr.requestBuilder(f,h),s=Y({},p$,{[DE]:f[NE]});w.bp("/federation/credentials");let $=Y({[L10]:[,j(f[I10],"roleName")],[UV]:[,j(f[TV],"accountId")]}),r;return w.m("GET").h(s).q($).b(r),w.build()},fV=async(f,h)=>{let w=Lr.requestBuilder(f,h),s=Y({},p$,{[DE]:f[NE]});w.bp("/assignment/roles");let $=Y({[LV]:[,f[IV]],[CV]:[()=>f.maxResults!==void 0,()=>f[FV].toString()],[UV]:[,j(f[TV],"accountId")]}),r;return w.m("GET").h(s).q($).b(r),w.build()},hV=async(f,h)=>{let w=Lr.requestBuilder(f,h),s=Y({},p$,{[DE]:f[NE]});w.bp("/assignment/accounts");let $=Y({[LV]:[,f[IV]],[CV]:[()=>f.maxResults!==void 0,()=>f[FV].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},wV=async(f,h)=>{let w=Lr.requestBuilder(f,h),s=Y({},p$,{[DE]:f[NE]});w.bp("/logout");let $;return w.m("POST").h(s).b($),w.build()},sV=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return HE(f,h);let w=Y({$metadata:lh(f)}),s=j(g(await Oh.parseJsonBody(f.body,h)),"body"),$=N0(s,{roleCredentials:v});return Object.assign(w,$),w},$V=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return HE(f,h);let w=Y({$metadata:lh(f)}),s=j(g(await Oh.parseJsonBody(f.body,h)),"body"),$=N0(s,{nextToken:G,roleList:v});return Object.assign(w,$),w},rV=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return HE(f,h);let w=Y({$metadata:lh(f)}),s=j(g(await Oh.parseJsonBody(f.body,h)),"body"),$=N0(s,{accountList:v,nextToken:G});return Object.assign(w,$),w},EV=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return HE(f,h);let w=Y({$metadata:lh(f)});return await G1.collectBody(f.body,h),w},HE=async(f,h)=>{let w={...f,body:await Oh.parseJsonErrorBody(f.body,h)},s=Oh.loadRestJsonErrorCode(f,w.body);switch(s){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await T10(w,h);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await U10(w,h);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await F10(w,h);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await C10(w,h);default:let $=w.body;return E10({output:f,parsedBody:$,errorCode:s})}},E10,T10=async(f,h)=>{let w=Y({}),s=f.body,$=N0(s,{message:G});Object.assign(w,$);let r=new ZE({$metadata:lh(f),...w});return l(r,f.body)},U10=async(f,h)=>{let w=Y({}),s=f.body,$=N0(s,{message:G});Object.assign(w,$);let r=new JE({$metadata:lh(f),...w});return l(r,f.body)},F10=async(f,h)=>{let w=Y({}),s=f.body,$=N0(s,{message:G});Object.assign(w,$);let r=new VE({$metadata:lh(f),...w});return l(r,f.body)},C10=async(f,h)=>{let w=Y({}),s=f.body,$=N0(s,{message:G});Object.assign(w,$);let r=new PE({$metadata:lh(f),...w});return l(r,f.body)},lh=(f)=>({httpStatusCode:f.statusCode,requestId:f.headers["x-amzn-requestid"]??f.headers["x-amzn-request-id"]??f.headers["x-amz-request-id"],extendedRequestId:f.headers["x-amz-id-2"],cfId:f.headers["x-amz-cf-id"]}),TV="accountId",NE="accessToken",UV="account_id",FV="maxResults",CV="max_result",IV="nextToken",LV="next_token",I10="roleName",L10="role_name",DE="x-amz-sso_bearer_token";var Br=B(()=>{Oh=o(O0(),1),Lr=o(m0(),1);J();Iw();z8();E10=Fs(uf)});var Gr;var R8=B(()=>{D();k();J();ks();Iw();Br();Gr=class Gr extends A.classBuilder().ep(jh).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("SWBPortalService","GetRoleCredentials",{}).n("SSOClient","GetRoleCredentialsCommand").f(eJ,aJ).ser(tJ).de(sV).build(){}});var Wr;var qE=B(()=>{D();k();J();ks();Iw();Br();Wr=class Wr extends A.classBuilder().ep(jh).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("SWBPortalService","ListAccountRoles",{}).n("SSOClient","ListAccountRolesCommand").f(pJ,void 0).ser(fV).de($V).build(){}});var Ar;var kE=B(()=>{D();k();J();ks();Iw();Br();Ar=class Ar extends A.classBuilder().ep(jh).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("SWBPortalService","ListAccounts",{}).n("SSOClient","ListAccountsCommand").f(oJ,void 0).ser(hV).de(rV).build(){}});var X8;var S8=B(()=>{D();k();J();ks();Iw();Br();X8=class X8 extends A.classBuilder().ep(jh).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("SWBPortalService","Logout",{}).n("SSOClient","LogoutCommand").f(uJ,void 0).ser(wV).de(EV).build(){}});var B10,BV;var GV=B(()=>{J();R8();qE();kE();S8();Ir();B10={GetRoleCredentialsCommand:Gr,ListAccountRolesCommand:Wr,ListAccountsCommand:Ar,LogoutCommand:X8};BV=class BV extends of{};Ts(B10,BV)});var WV=B(()=>{R8();qE();kE();S8()});var AV=()=>{};var zV,WR0;var RV=B(()=>{zV=o(m0(),1);qE();Ir();WR0=zV.createPaginator(of,Wr,"nextToken","nextToken","maxResults")});var XV,XR0;var SV=B(()=>{XV=o(m0(),1);kE();Ir();XR0=XV.createPaginator(of,Ar,"nextToken","nextToken","maxResults")});var YV=B(()=>{AV();RV();SV()});var MV=B(()=>{Iw()});var QV=B(()=>{Ir();GV();WV();YV();MV()});var KV={};Ch(KV,{SSOClient:()=>of,GetRoleCredentialsCommand:()=>Gr});var ZV=B(()=>{QV()});var Y8,zr=!1,M8=async({ssoStartUrl:f,ssoSession:h,ssoAccountId:w,ssoRegion:s,ssoRoleName:$,ssoClient:r,clientConfig:E,parentClientConfig:T,profile:U,logger:F})=>{let C,I="To refresh this SSO session run aws sso login with the corresponding profile.";if(h)try{let X0=await bZ({profile:U})();C={accessToken:X0.token,expiresAt:new Date(X0.expiration).toISOString()}}catch(X0){throw new a(X0.message,{tryNextLink:zr,logger:F})}else try{C=await T5(f)}catch(X0){throw new a("The SSO session associated with this profile is invalid. To refresh this SSO session run aws sso login with the corresponding profile.",{tryNextLink:zr,logger:F})}if(new Date(C.expiresAt).getTime()-Date.now()<=0)throw new a("The SSO session associated with this profile has expired. To refresh this SSO session run aws sso login with the corresponding profile.",{tryNextLink:zr,logger:F});let{accessToken:L}=C,{SSOClient:W,GetRoleCredentialsCommand:X}=await Promise.resolve().then(() => (ZV(),KV)),Q=r||new W(Object.assign({},E??{},{logger:E?.logger??T?.logger,region:E?.region??s})),M;try{M=await Q.send(new X({accountId:w,roleName:$,accessToken:L}))}catch(X0){throw new a(X0,{tryNextLink:zr,logger:F})}let{roleCredentials:{accessKeyId:q,secretAccessKey:N,sessionToken:y,expiration:n,credentialScope:L0,accountId:b0}={}}=M;if(!q||!N||!y||!n)throw new a("SSO returns an invalid temporary credential.",{tryNextLink:zr,logger:F});let r1={accessKeyId:q,secretAccessKey:N,sessionToken:y,expiration:new Date(n),...L0&&{credentialScope:L0},...b0&&{accountId:b0}};if(h)Y8.setCredentialFeature(r1,"CREDENTIALS_SSO","s");else Y8.setCredentialFeature(r1,"CREDENTIALS_SSO_LEGACY","u");return r1};var JV=B(()=>{Y8=o(I1(),1);cZ();Y0();hf()});var Q8=(f,h)=>{let{sso_start_url:w,sso_account_id:s,sso_region:$,sso_role_name:r}=f;if(!w||!s||!$||!r)throw new a(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(f).join(", ")}
|
|
51
|
+
Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:!1,logger:h});return f};var K8=B(()=>{Y0()});var G10=(f={})=>async({callerClientConfig:h}={})=>{f.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");let{ssoStartUrl:w,ssoAccountId:s,ssoRegion:$,ssoRoleName:r,ssoSession:E}=f,{ssoClient:T}=f,U=y1({profile:f.profile??h?.profile});if(!w&&!s&&!$&&!r&&!E){let C=(await Zh(f))[U];if(!C)throw new a(`Profile ${U} was not found.`,{logger:f.logger});if(!T3(C))throw new a(`Profile ${U} is not configured with SSO credentials.`,{logger:f.logger});if(C?.sso_session){let q=(await C5(f))[C.sso_session],N=` configurations in profile ${U} and sso-session ${C.sso_session}`;if($&&$!==q.sso_region)throw new a("Conflicting SSO region"+N,{tryNextLink:!1,logger:f.logger});if(w&&w!==q.sso_start_url)throw new a("Conflicting SSO start_url"+N,{tryNextLink:!1,logger:f.logger});C.sso_region=q.sso_region,C.sso_start_url=q.sso_start_url}let{sso_start_url:I,sso_account_id:L,sso_region:W,sso_role_name:X,sso_session:Q}=Q8(C,f.logger);return M8({ssoStartUrl:I,ssoSession:Q,ssoAccountId:L,ssoRegion:W,ssoRoleName:X,ssoClient:T,clientConfig:f.clientConfig,parentClientConfig:f.parentClientConfig,profile:U})}else if(!w||!s||!$||!r)throw new a('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:!1,logger:f.logger});else return M8({ssoStartUrl:w,ssoSession:E,ssoAccountId:s,ssoRegion:$,ssoRoleName:r,ssoClient:T,clientConfig:f.clientConfig,parentClientConfig:f.parentClientConfig,profile:U})};var VV=B(()=>{Y0();hf();JV();K8()});var PV=()=>{};var Z8={};Ch(Z8,{validateSsoProfile:()=>Q8,isSsoProfile:()=>T3,fromSSO:()=>G10});var J8=B(()=>{VV();PV();K8()});var HV,NV=(f,h,w)=>{let s={EcsContainer:async($)=>{let{fromHttp:r}=await Promise.resolve().then(() => (E3(),r3)),{fromContainerMetadata:E}=await Promise.resolve().then(() => (fr(),t$));return w?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer"),async()=>xf(r($??{}),E($))().then(V8)},Ec2InstanceMetadata:async($)=>{w?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");let{fromInstanceMetadata:r}=await Promise.resolve().then(() => (fr(),t$));return async()=>r($)().then(V8)},Environment:async($)=>{w?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");let{fromEnv:r}=await Promise.resolve().then(() => (gF(),XY));return async()=>r($)().then(V8)}};if(f in s)return s[f];else throw new a(`Unsupported credential source in profile ${h}. Got ${f}, expected EcsContainer or Ec2InstanceMetadata or Environment.`,{logger:w})},V8=(f)=>HV.setCredentialFeature(f,"CREDENTIALS_PROFILE_NAMED_PROVIDER","p");var DV=B(()=>{HV=o(I1(),1);Y0()});var P8=H((kV)=>{Object.defineProperty(kV,"__esModule",{value:!0});kV.resolveHttpAuthSchemeConfig=kV.resolveStsAuthConfig=kV.defaultSTSHttpAuthSchemeProvider=kV.defaultSTSHttpAuthSchemeParametersProvider=void 0;var W10=O0(),qV=Ih(),A10=Rr(),z10=async(f,h,w)=>{return{operation:qV.getSmithyContext(h).operation,region:await qV.normalizeProvider(f.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};kV.defaultSTSHttpAuthSchemeParametersProvider=z10;function R10(f){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:f.region},propertiesExtractor:(h,w)=>({signingProperties:{config:h,context:w}})}}function X10(f){return{schemeId:"smithy.api#noAuth"}}var S10=(f)=>{let h=[];switch(f.operation){case"AssumeRoleWithWebIdentity":{h.push(X10(f));break}default:h.push(R10(f))}return h};kV.defaultSTSHttpAuthSchemeProvider=S10;var Y10=(f)=>Object.assign(f,{stsClientCtor:A10.STSClient});kV.resolveStsAuthConfig=Y10;var M10=(f)=>{let h=kV.resolveStsAuthConfig(f),w=W10.resolveAwsSdkSigV4Config(h);return Object.assign(w,{})};kV.resolveHttpAuthSchemeConfig=M10});var Xr=H((OV)=>{Object.defineProperty(OV,"__esModule",{value:!0});OV.commonParams=OV.resolveClientEndpointParameters=void 0;var Z10=(f)=>{return Object.assign(f,{useDualstackEndpoint:f.useDualstackEndpoint??!1,useFipsEndpoint:f.useFipsEndpoint??!1,useGlobalEndpoint:f.useGlobalEndpoint??!1,defaultSigningName:"sts"})};OV.resolveClientEndpointParameters=Z10;OV.commonParams={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 TP=H((rP)=>{Object.defineProperty(rP,"__esModule",{value:!0});rP.ruleSet=void 0;var aV="required",t="type",W0="fn",A0="argv",bh="ref",vV=!1,H8=!0,vh="booleanEquals",w1="stringEquals",pV="sigv4",oV="sts",uV="us-east-1",D0="endpoint",bV="https://sts.{Region}.{PartitionResult#dnsSuffix}",Pf="tree",ns="error",D8="getAttr",mV={[aV]:!1,[t]:"String"},N8={[aV]:!0,default:!1,[t]:"Boolean"},tV={[bh]:"Endpoint"},dV={[W0]:"isSet",[A0]:[{[bh]:"Region"}]},s1={[bh]:"Region"},iV={[W0]:"aws.partition",[A0]:[s1],assign:"PartitionResult"},fP={[bh]:"UseFIPS"},hP={[bh]:"UseDualStack"},T1={url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:pV,signingName:oV,signingRegion:uV}]},headers:{}},J1={},cV={conditions:[{[W0]:w1,[A0]:[s1,"aws-global"]}],[D0]:T1,[t]:D0},wP={[W0]:vh,[A0]:[fP,!0]},sP={[W0]:vh,[A0]:[hP,!0]},gV={[W0]:D8,[A0]:[{[bh]:"PartitionResult"},"supportsFIPS"]},$P={[bh]:"PartitionResult"},xV={[W0]:vh,[A0]:[!0,{[W0]:D8,[A0]:[$P,"supportsDualStack"]}]},_V=[{[W0]:"isSet",[A0]:[tV]}],nV=[wP],eV=[sP],V10={version:"1.0",parameters:{Region:mV,UseDualStack:N8,UseFIPS:N8,Endpoint:mV,UseGlobalEndpoint:N8},rules:[{conditions:[{[W0]:vh,[A0]:[{[bh]:"UseGlobalEndpoint"},H8]},{[W0]:"not",[A0]:_V},dV,iV,{[W0]:vh,[A0]:[fP,vV]},{[W0]:vh,[A0]:[hP,vV]}],rules:[{conditions:[{[W0]:w1,[A0]:[s1,"ap-northeast-1"]}],endpoint:T1,[t]:D0},{conditions:[{[W0]:w1,[A0]:[s1,"ap-south-1"]}],endpoint:T1,[t]:D0},{conditions:[{[W0]:w1,[A0]:[s1,"ap-southeast-1"]}],endpoint:T1,[t]:D0},{conditions:[{[W0]:w1,[A0]:[s1,"ap-southeast-2"]}],endpoint:T1,[t]:D0},cV,{conditions:[{[W0]:w1,[A0]:[s1,"ca-central-1"]}],endpoint:T1,[t]:D0},{conditions:[{[W0]:w1,[A0]:[s1,"eu-central-1"]}],endpoint:T1,[t]:D0},{conditions:[{[W0]:w1,[A0]:[s1,"eu-north-1"]}],endpoint:T1,[t]:D0},{conditions:[{[W0]:w1,[A0]:[s1,"eu-west-1"]}],endpoint:T1,[t]:D0},{conditions:[{[W0]:w1,[A0]:[s1,"eu-west-2"]}],endpoint:T1,[t]:D0},{conditions:[{[W0]:w1,[A0]:[s1,"eu-west-3"]}],endpoint:T1,[t]:D0},{conditions:[{[W0]:w1,[A0]:[s1,"sa-east-1"]}],endpoint:T1,[t]:D0},{conditions:[{[W0]:w1,[A0]:[s1,uV]}],endpoint:T1,[t]:D0},{conditions:[{[W0]:w1,[A0]:[s1,"us-east-2"]}],endpoint:T1,[t]:D0},{conditions:[{[W0]:w1,[A0]:[s1,"us-west-1"]}],endpoint:T1,[t]:D0},{conditions:[{[W0]:w1,[A0]:[s1,"us-west-2"]}],endpoint:T1,[t]:D0},{endpoint:{url:bV,properties:{authSchemes:[{name:pV,signingName:oV,signingRegion:"{Region}"}]},headers:J1},[t]:D0}],[t]:Pf},{conditions:_V,rules:[{conditions:nV,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[t]:ns},{conditions:eV,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[t]:ns},{endpoint:{url:tV,properties:J1,headers:J1},[t]:D0}],[t]:Pf},{conditions:[dV],rules:[{conditions:[iV],rules:[{conditions:[wP,sP],rules:[{conditions:[{[W0]:vh,[A0]:[H8,gV]},xV],rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:J1,headers:J1},[t]:D0}],[t]:Pf},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",[t]:ns}],[t]:Pf},{conditions:nV,rules:[{conditions:[{[W0]:vh,[A0]:[gV,H8]}],rules:[{conditions:[{[W0]:w1,[A0]:[{[W0]:D8,[A0]:[$P,"name"]},"aws-us-gov"]}],endpoint:{url:"https://sts.{Region}.amazonaws.com",properties:J1,headers:J1},[t]:D0},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:J1,headers:J1},[t]:D0}],[t]:Pf},{error:"FIPS is enabled but this partition does not support FIPS",[t]:ns}],[t]:Pf},{conditions:eV,rules:[{conditions:[xV],rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:J1,headers:J1},[t]:D0}],[t]:Pf},{error:"DualStack is enabled but this partition does not support DualStack",[t]:ns}],[t]:Pf},cV,{endpoint:{url:bV,properties:J1,headers:J1},[t]:D0}],[t]:Pf}],[t]:Pf},{error:"Invalid Configuration: Missing Region",[t]:ns}]};rP.ruleSet=V10});var CP=H((UP)=>{Object.defineProperty(UP,"__esModule",{value:!0});UP.defaultEndpointResolver=void 0;var P10=i5(),q8=m5(),H10=TP(),N10=new q8.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),D10=(f,h={})=>{return N10.get(f,()=>q8.resolveEndpoint(H10.ruleSet,{endpointParams:f,logger:h.logger}))};UP.defaultEndpointResolver=D10;q8.customEndpointFunctions.aws=P10.awsEndpointFunctions});var WP=H((BP)=>{Object.defineProperty(BP,"__esModule",{value:!0});BP.getRuntimeConfig=void 0;var q10=O0(),k10=m0(),y10=J0(),j10=Er(),IP=Bh(),LP=u1(),O10=P8(),l10=CP(),v10=(f)=>{return{apiVersion:"2011-06-15",base64Decoder:f?.base64Decoder??IP.fromBase64,base64Encoder:f?.base64Encoder??IP.toBase64,disableHostPrefix:f?.disableHostPrefix??!1,endpointProvider:f?.endpointProvider??l10.defaultEndpointResolver,extensions:f?.extensions??[],httpAuthSchemeProvider:f?.httpAuthSchemeProvider??O10.defaultSTSHttpAuthSchemeProvider,httpAuthSchemes:f?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(h)=>h.getIdentityProvider("aws.auth#sigv4"),signer:new q10.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(h)=>h.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new k10.NoAuthSigner}],logger:f?.logger??new y10.NoOpLogger,serviceId:f?.serviceId??"STS",urlParser:f?.urlParser??j10.parseUrl,utf8Decoder:f?.utf8Decoder??LP.fromUtf8,utf8Encoder:f?.utf8Encoder??LP.toUtf8}};BP.getRuntimeConfig=v10});var MP=H((SP)=>{Object.defineProperty(SP,"__esModule",{value:!0});SP.getRuntimeConfig=void 0;var b10=l4(),m10=b10.__importDefault(i3()),AP=O0(),zP=g3(),yE=Ss(),d10=m0(),i10=n3(),RP=Ur(),es=Qs(),XP=X4(),c10=e3(),g10=EE(),x10=WP(),_10=J0(),n10=$8(),e10=J0(),a10=(f)=>{e10.emitWarningIfUnsupportedVersion(process.version);let h=n10.resolveDefaultsModeConfig(f),w=()=>h().then(_10.loadConfigsForDefaultMode),s=x10.getRuntimeConfig(f);AP.emitWarningIfUnsupportedVersion(process.version);let $={profile:f?.profile};return{...s,...f,runtime:"node",defaultsMode:h,bodyLengthChecker:f?.bodyLengthChecker??c10.calculateBodyLength,defaultUserAgentProvider:f?.defaultUserAgentProvider??zP.createDefaultUserAgentProvider({serviceId:s.serviceId,clientVersion:m10.default.version}),httpAuthSchemes:f?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(r)=>r.getIdentityProvider("aws.auth#sigv4")||(async(E)=>await f.credentialDefaultProvider(E?.__config||{})()),signer:new AP.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(r)=>r.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new d10.NoAuthSigner}],maxAttempts:f?.maxAttempts??es.loadConfig(RP.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,f),region:f?.region??es.loadConfig(yE.NODE_REGION_CONFIG_OPTIONS,{...yE.NODE_REGION_CONFIG_FILE_OPTIONS,...$}),requestHandler:XP.NodeHttpHandler.create(f?.requestHandler??w),retryMode:f?.retryMode??es.loadConfig({...RP.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await w()).retryMode||g10.DEFAULT_RETRY_MODE},f),sha256:f?.sha256??i10.Hash.bind(null,"sha256"),streamCollector:f?.streamCollector??XP.streamCollector,useDualstackEndpoint:f?.useDualstackEndpoint??es.loadConfig(yE.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,$),useFipsEndpoint:f?.useFipsEndpoint??es.loadConfig(yE.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,$),userAgentAppId:f?.userAgentAppId??es.loadConfig(zP.NODE_APP_ID_CONFIG_OPTIONS,$)}};SP.getRuntimeConfig=a10});var ZP=H((QP)=>{Object.defineProperty(QP,"__esModule",{value:!0});QP.resolveHttpAuthRuntimeConfig=QP.getHttpAuthExtensionConfiguration=void 0;var p10=(f)=>{let{httpAuthSchemes:h,httpAuthSchemeProvider:w,credentials:s}=f;return{setHttpAuthScheme($){let r=h.findIndex((E)=>E.schemeId===$.schemeId);if(r===-1)h.push($);else h.splice(r,1,$)},httpAuthSchemes(){return h},setHttpAuthSchemeProvider($){w=$},httpAuthSchemeProvider(){return w},setCredentials($){s=$},credentials(){return s}}};QP.getHttpAuthExtensionConfiguration=p10;var o10=(f)=>{return{httpAuthSchemes:f.httpAuthSchemes(),httpAuthSchemeProvider:f.httpAuthSchemeProvider(),credentials:f.credentials()}};QP.resolveHttpAuthRuntimeConfig=o10});var qP=H((NP)=>{Object.defineProperty(NP,"__esModule",{value:!0});NP.resolveRuntimeExtensions=void 0;var JP=r8(),VP=t0(),PP=J0(),HP=ZP(),t10=(f,h)=>{let w=Object.assign(JP.getAwsRegionExtensionConfiguration(f),PP.getDefaultExtensionConfiguration(f),VP.getHttpHandlerExtensionConfiguration(f),HP.getHttpAuthExtensionConfiguration(f));return h.forEach((s)=>s.configure(w)),Object.assign(f,JP.resolveAwsRegionExtensionConfiguration(w),PP.resolveDefaultRuntimeConfig(w),VP.resolveHttpHandlerRuntimeConfig(w),HP.resolveHttpAuthRuntimeConfig(w))};NP.resolveRuntimeExtensions=t10});var Rr=H((y8)=>{Object.defineProperty(y8,"__esModule",{value:!0});y8.STSClient=y8.__Client=void 0;var kP=U3(),ff0=C3(),hf0=L3(),yP=x5(),wf0=Ss(),k8=m0(),sf0=Y3(),$f0=Ks(),jP=Ur(),lP=J0();Object.defineProperty(y8,"__Client",{enumerable:!0,get:function(){return lP.Client}});var OP=P8(),rf0=Xr(),Ef0=MP(),Tf0=qP();class vP extends lP.Client{config;constructor(...[f]){let h=Ef0.getRuntimeConfig(f||{});super(h);this.initConfig=h;let w=rf0.resolveClientEndpointParameters(h),s=yP.resolveUserAgentConfig(w),$=jP.resolveRetryConfig(s),r=wf0.resolveRegionConfig($),E=kP.resolveHostHeaderConfig(r),T=$f0.resolveEndpointConfig(E),U=OP.resolveHttpAuthSchemeConfig(T),F=Tf0.resolveRuntimeExtensions(U,f?.extensions||[]);this.config=F,this.middlewareStack.use(yP.getUserAgentPlugin(this.config)),this.middlewareStack.use(jP.getRetryPlugin(this.config)),this.middlewareStack.use(sf0.getContentLengthPlugin(this.config)),this.middlewareStack.use(kP.getHostHeaderPlugin(this.config)),this.middlewareStack.use(ff0.getLoggerPlugin(this.config)),this.middlewareStack.use(hf0.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(k8.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:OP.defaultSTSHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async(C)=>new k8.DefaultIdentityProviderConfig({"aws.auth#sigv4":C.credentials})})),this.middlewareStack.use(k8.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}y8.STSClient=vP});var I6=H((UX0,C6)=>{var{defineProperty:jE,getOwnPropertyDescriptor:Uf0,getOwnPropertyNames:Ff0}=Object,Cf0=Object.prototype.hasOwnProperty,e=(f,h)=>jE(f,"name",{value:h,configurable:!0}),If0=(f,h)=>{for(var w in h)jE(f,w,{get:h[w],enumerable:!0})},s6=(f,h,w,s)=>{if(h&&typeof h==="object"||typeof h==="function"){for(let $ of Ff0(h))if(!Cf0.call(f,$)&&$!==w)jE(f,$,{get:()=>h[$],enumerable:!(s=Uf0(h,$))||s.enumerable})}return f},Lf0=(f,h,w)=>(s6(f,h,"default"),w&&s6(w,h,"default")),Bf0=(f)=>s6(jE({},"__esModule",{value:!0}),f),r6={};If0(r6,{AssumeRoleCommand:()=>U6,AssumeRoleResponseFilterSensitiveLog:()=>iP,AssumeRoleWithWebIdentityCommand:()=>F6,AssumeRoleWithWebIdentityRequestFilterSensitiveLog:()=>aP,AssumeRoleWithWebIdentityResponseFilterSensitiveLog:()=>pP,ClientInputEndpointParameters:()=>rh0.ClientInputEndpointParameters,CredentialsFilterSensitiveLog:()=>E6,ExpiredTokenException:()=>cP,IDPCommunicationErrorException:()=>oP,IDPRejectedClaimException:()=>nP,InvalidIdentityTokenException:()=>eP,MalformedPolicyDocumentException:()=>gP,PackedPolicyTooLargeException:()=>xP,RegionDisabledException:()=>_P,STS:()=>UH,STSServiceException:()=>fh,decorateDefaultCredentialProvider:()=>Uh0,getDefaultRoleAssumer:()=>GH,getDefaultRoleAssumerWithWebIdentity:()=>WH});C6.exports=Bf0(r6);Lf0(r6,Rr(),C6.exports);var Gf0=J0(),Wf0=Ks(),Af0=qw(),zf0=J0(),Rf0=Xr(),dP=J0(),Xf0=J0(),fh=class f extends Xf0.ServiceException{static{e(this,"STSServiceException")}constructor(h){super(h);Object.setPrototypeOf(this,f.prototype)}},E6=e((f)=>({...f,...f.SecretAccessKey&&{SecretAccessKey:dP.SENSITIVE_STRING}}),"CredentialsFilterSensitiveLog"),iP=e((f)=>({...f,...f.Credentials&&{Credentials:E6(f.Credentials)}}),"AssumeRoleResponseFilterSensitiveLog"),cP=class f extends fh{static{e(this,"ExpiredTokenException")}name="ExpiredTokenException";$fault="client";constructor(h){super({name:"ExpiredTokenException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype)}},gP=class f extends fh{static{e(this,"MalformedPolicyDocumentException")}name="MalformedPolicyDocumentException";$fault="client";constructor(h){super({name:"MalformedPolicyDocumentException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype)}},xP=class f extends fh{static{e(this,"PackedPolicyTooLargeException")}name="PackedPolicyTooLargeException";$fault="client";constructor(h){super({name:"PackedPolicyTooLargeException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype)}},_P=class f extends fh{static{e(this,"RegionDisabledException")}name="RegionDisabledException";$fault="client";constructor(h){super({name:"RegionDisabledException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype)}},nP=class f extends fh{static{e(this,"IDPRejectedClaimException")}name="IDPRejectedClaimException";$fault="client";constructor(h){super({name:"IDPRejectedClaimException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype)}},eP=class f extends fh{static{e(this,"InvalidIdentityTokenException")}name="InvalidIdentityTokenException";$fault="client";constructor(h){super({name:"InvalidIdentityTokenException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype)}},aP=e((f)=>({...f,...f.WebIdentityToken&&{WebIdentityToken:dP.SENSITIVE_STRING}}),"AssumeRoleWithWebIdentityRequestFilterSensitiveLog"),pP=e((f)=>({...f,...f.Credentials&&{Credentials:E6(f.Credentials)}}),"AssumeRoleWithWebIdentityResponseFilterSensitiveLog"),oP=class f extends fh{static{e(this,"IDPCommunicationErrorException")}name="IDPCommunicationErrorException";$fault="client";constructor(h){super({name:"IDPCommunicationErrorException",$fault:"client",...h});Object.setPrototypeOf(this,f.prototype)}},T6=O0(),Sf0=t0(),R0=J0(),Yf0=e(async(f,h)=>{let w=sH,s;return s=TH({...qf0(f,h),[rH]:pf0,[EH]:$H}),wH(h,w,"/",void 0,s)},"se_AssumeRoleCommand"),Mf0=e(async(f,h)=>{let w=sH,s;return s=TH({...kf0(f,h),[rH]:of0,[EH]:$H}),wH(h,w,"/",void 0,s)},"se_AssumeRoleWithWebIdentityCommand"),Qf0=e(async(f,h)=>{if(f.statusCode>=300)return uP(f,h);let w=await T6.parseXmlBody(f.body,h),s={};return s=mf0(w.AssumeRoleResult,h),{$metadata:hh(f),...s}},"de_AssumeRoleCommand"),Kf0=e(async(f,h)=>{if(f.statusCode>=300)return uP(f,h);let w=await T6.parseXmlBody(f.body,h),s={};return s=df0(w.AssumeRoleWithWebIdentityResult,h),{$metadata:hh(f),...s}},"de_AssumeRoleWithWebIdentityCommand"),uP=e(async(f,h)=>{let w={...f,body:await T6.parseXmlErrorBody(f.body,h)},s=uf0(f,w.body);switch(s){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await Zf0(w,h);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await Hf0(w,h);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await Nf0(w,h);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await Df0(w,h);case"IDPCommunicationError":case"com.amazonaws.sts#IDPCommunicationErrorException":throw await Jf0(w,h);case"IDPRejectedClaim":case"com.amazonaws.sts#IDPRejectedClaimException":throw await Vf0(w,h);case"InvalidIdentityToken":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await Pf0(w,h);default:let $=w.body;return af0({output:f,parsedBody:$.Error,errorCode:s})}},"de_CommandError"),Zf0=e(async(f,h)=>{let w=f.body,s=if0(w.Error,h),$=new cP({$metadata:hh(f),...s});return R0.decorateServiceException($,w)},"de_ExpiredTokenExceptionRes"),Jf0=e(async(f,h)=>{let w=f.body,s=cf0(w.Error,h),$=new oP({$metadata:hh(f),...s});return R0.decorateServiceException($,w)},"de_IDPCommunicationErrorExceptionRes"),Vf0=e(async(f,h)=>{let w=f.body,s=gf0(w.Error,h),$=new nP({$metadata:hh(f),...s});return R0.decorateServiceException($,w)},"de_IDPRejectedClaimExceptionRes"),Pf0=e(async(f,h)=>{let w=f.body,s=xf0(w.Error,h),$=new eP({$metadata:hh(f),...s});return R0.decorateServiceException($,w)},"de_InvalidIdentityTokenExceptionRes"),Hf0=e(async(f,h)=>{let w=f.body,s=_f0(w.Error,h),$=new gP({$metadata:hh(f),...s});return R0.decorateServiceException($,w)},"de_MalformedPolicyDocumentExceptionRes"),Nf0=e(async(f,h)=>{let w=f.body,s=nf0(w.Error,h),$=new xP({$metadata:hh(f),...s});return R0.decorateServiceException($,w)},"de_PackedPolicyTooLargeExceptionRes"),Df0=e(async(f,h)=>{let w=f.body,s=ef0(w.Error,h),$=new _P({$metadata:hh(f),...s});return R0.decorateServiceException($,w)},"de_RegionDisabledExceptionRes"),qf0=e((f,h)=>{let w={};if(f[h$]!=null)w[h$]=f[h$];if(f[w$]!=null)w[w$]=f[w$];if(f[ts]!=null){let s=tP(f[ts],h);if(f[ts]?.length===0)w.PolicyArns=[];Object.entries(s).forEach(([$,r])=>{let E=`PolicyArns.${$}`;w[E]=r})}if(f[us]!=null)w[us]=f[us];if(f[os]!=null)w[os]=f[os];if(f[o8]!=null){let s=bf0(f[o8],h);if(f[o8]?.length===0)w.Tags=[];Object.entries(s).forEach(([$,r])=>{let E=`Tags.${$}`;w[E]=r})}if(f[t8]!=null){let s=vf0(f[t8],h);if(f[t8]?.length===0)w.TransitiveTagKeys=[];Object.entries(s).forEach(([$,r])=>{let E=`TransitiveTagKeys.${$}`;w[E]=r})}if(f[d8]!=null)w[d8]=f[d8];if(f[a8]!=null)w[a8]=f[a8];if(f[u8]!=null)w[u8]=f[u8];if(f[tf]!=null)w[tf]=f[tf];if(f[g8]!=null){let s=Of0(f[g8],h);if(f[g8]?.length===0)w.ProvidedContexts=[];Object.entries(s).forEach(([$,r])=>{let E=`ProvidedContexts.${$}`;w[E]=r})}return w},"se_AssumeRoleRequest"),kf0=e((f,h)=>{let w={};if(f[h$]!=null)w[h$]=f[h$];if(f[w$]!=null)w[w$]=f[w$];if(f[h6]!=null)w[h6]=f[h6];if(f[x8]!=null)w[x8]=f[x8];if(f[ts]!=null){let s=tP(f[ts],h);if(f[ts]?.length===0)w.PolicyArns=[];Object.entries(s).forEach(([$,r])=>{let E=`PolicyArns.${$}`;w[E]=r})}if(f[us]!=null)w[us]=f[us];if(f[os]!=null)w[os]=f[os];return w},"se_AssumeRoleWithWebIdentityRequest"),tP=e((f,h)=>{let w={},s=1;for(let $ of f){if($===null)continue;let r=yf0($,h);Object.entries(r).forEach(([E,T])=>{w[`member.${s}.${E}`]=T}),s++}return w},"se_policyDescriptorListType"),yf0=e((f,h)=>{let w={};if(f[w6]!=null)w[w6]=f[w6];return w},"se_PolicyDescriptorType"),jf0=e((f,h)=>{let w={};if(f[c8]!=null)w[c8]=f[c8];if(f[b8]!=null)w[b8]=f[b8];return w},"se_ProvidedContext"),Of0=e((f,h)=>{let w={},s=1;for(let $ of f){if($===null)continue;let r=jf0($,h);Object.entries(r).forEach(([E,T])=>{w[`member.${s}.${E}`]=T}),s++}return w},"se_ProvidedContextsListType"),lf0=e((f,h)=>{let w={};if(f[i8]!=null)w[i8]=f[i8];if(f[f6]!=null)w[f6]=f[f6];return w},"se_Tag"),vf0=e((f,h)=>{let w={},s=1;for(let $ of f){if($===null)continue;w[`member.${s}`]=$,s++}return w},"se_tagKeyListType"),bf0=e((f,h)=>{let w={},s=1;for(let $ of f){if($===null)continue;let r=lf0($,h);Object.entries(r).forEach(([E,T])=>{w[`member.${s}.${E}`]=T}),s++}return w},"se_tagListType"),fH=e((f,h)=>{let w={};if(f[O8]!=null)w[O8]=R0.expectString(f[O8]);if(f[l8]!=null)w[l8]=R0.expectString(f[l8]);return w},"de_AssumedRoleUser"),mf0=e((f,h)=>{let w={};if(f[ps]!=null)w[ps]=hH(f[ps],h);if(f[as]!=null)w[as]=fH(f[as],h);if(f[f$]!=null)w[f$]=R0.strictParseInt32(f[f$]);if(f[tf]!=null)w[tf]=R0.expectString(f[tf]);return w},"de_AssumeRoleResponse"),df0=e((f,h)=>{let w={};if(f[ps]!=null)w[ps]=hH(f[ps],h);if(f[e8]!=null)w[e8]=R0.expectString(f[e8]);if(f[as]!=null)w[as]=fH(f[as],h);if(f[f$]!=null)w[f$]=R0.strictParseInt32(f[f$]);if(f[_8]!=null)w[_8]=R0.expectString(f[_8]);if(f[v8]!=null)w[v8]=R0.expectString(f[v8]);if(f[tf]!=null)w[tf]=R0.expectString(f[tf]);return w},"de_AssumeRoleWithWebIdentityResponse"),hH=e((f,h)=>{let w={};if(f[j8]!=null)w[j8]=R0.expectString(f[j8]);if(f[n8]!=null)w[n8]=R0.expectString(f[n8]);if(f[p8]!=null)w[p8]=R0.expectString(f[p8]);if(f[m8]!=null)w[m8]=R0.expectNonNull(R0.parseRfc3339DateTimeWithOffset(f[m8]));return w},"de_Credentials"),if0=e((f,h)=>{let w={};if(f[i0]!=null)w[i0]=R0.expectString(f[i0]);return w},"de_ExpiredTokenException"),cf0=e((f,h)=>{let w={};if(f[i0]!=null)w[i0]=R0.expectString(f[i0]);return w},"de_IDPCommunicationErrorException"),gf0=e((f,h)=>{let w={};if(f[i0]!=null)w[i0]=R0.expectString(f[i0]);return w},"de_IDPRejectedClaimException"),xf0=e((f,h)=>{let w={};if(f[i0]!=null)w[i0]=R0.expectString(f[i0]);return w},"de_InvalidIdentityTokenException"),_f0=e((f,h)=>{let w={};if(f[i0]!=null)w[i0]=R0.expectString(f[i0]);return w},"de_MalformedPolicyDocumentException"),nf0=e((f,h)=>{let w={};if(f[i0]!=null)w[i0]=R0.expectString(f[i0]);return w},"de_PackedPolicyTooLargeException"),ef0=e((f,h)=>{let w={};if(f[i0]!=null)w[i0]=R0.expectString(f[i0]);return w},"de_RegionDisabledException"),hh=e((f)=>({httpStatusCode:f.statusCode,requestId:f.headers["x-amzn-requestid"]??f.headers["x-amzn-request-id"]??f.headers["x-amz-request-id"],extendedRequestId:f.headers["x-amz-id-2"],cfId:f.headers["x-amz-cf-id"]}),"deserializeMetadata"),af0=R0.withBaseException(fh),wH=e(async(f,h,w,s,$)=>{let{hostname:r,protocol:E="https",port:T,path:U}=await f.endpoint(),F={protocol:E,hostname:r,port:T,method:"POST",path:U.endsWith("/")?U.slice(0,-1)+w:U+w,headers:h};if(s!==void 0)F.hostname=s;if($!==void 0)F.body=$;return new Sf0.HttpRequest(F)},"buildHttpRpcRequest"),sH={"content-type":"application/x-www-form-urlencoded"},$H="2011-06-15",rH="Action",j8="AccessKeyId",pf0="AssumeRole",O8="AssumedRoleId",as="AssumedRoleUser",of0="AssumeRoleWithWebIdentity",l8="Arn",v8="Audience",ps="Credentials",b8="ContextAssertion",os="DurationSeconds",m8="Expiration",d8="ExternalId",i8="Key",us="Policy",ts="PolicyArns",c8="ProviderArn",g8="ProvidedContexts",x8="ProviderId",f$="PackedPolicySize",_8="Provider",h$="RoleArn",w$="RoleSessionName",n8="SecretAccessKey",e8="SubjectFromWebIdentityToken",tf="SourceIdentity",a8="SerialNumber",p8="SessionToken",o8="Tags",u8="TokenCode",t8="TransitiveTagKeys",EH="Version",f6="Value",h6="WebIdentityToken",w6="arn",i0="message",TH=e((f)=>Object.entries(f).map(([h,w])=>R0.extendedEncodeURIComponent(h)+"="+R0.extendedEncodeURIComponent(w)).join("&"),"buildFormUrlencodedString"),uf0=e((f,h)=>{if(h.Error?.Code!==void 0)return h.Error.Code;if(f.statusCode==404)return"NotFound"},"loadQueryErrorCode"),U6=class extends zf0.Command.classBuilder().ep(Rf0.commonParams).m(function(f,h,w,s){return[Af0.getSerdePlugin(w,this.serialize,this.deserialize),Wf0.getEndpointPlugin(w,f.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRole",{}).n("STSClient","AssumeRoleCommand").f(void 0,iP).ser(Yf0).de(Qf0).build(){static{e(this,"AssumeRoleCommand")}},tf0=Ks(),fh0=qw(),hh0=J0(),wh0=Xr(),F6=class extends hh0.Command.classBuilder().ep(wh0.commonParams).m(function(f,h,w,s){return[fh0.getSerdePlugin(w,this.serialize,this.deserialize),tf0.getEndpointPlugin(w,f.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithWebIdentity",{}).n("STSClient","AssumeRoleWithWebIdentityCommand").f(aP,pP).ser(Mf0).de(Kf0).build(){static{e(this,"AssumeRoleWithWebIdentityCommand")}},sh0=Rr(),$h0={AssumeRoleCommand:U6,AssumeRoleWithWebIdentityCommand:F6},UH=class extends sh0.STSClient{static{e(this,"STS")}};Gf0.createAggregatedClient($h0,UH);var rh0=Xr(),$6=I1(),mP="us-east-1",FH=e((f)=>{if(typeof f?.Arn==="string"){let h=f.Arn.split(":");if(h.length>4&&h[4]!=="")return h[4]}return},"getAccountIdFromAssumedRoleUser"),CH=e(async(f,h,w)=>{let s=typeof f==="function"?await f():f,$=typeof h==="function"?await h():h;return w?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${s} (provider)`,`${$} (parent client)`,`${mP} (STS default)`),s??$??mP},"resolveRegion"),Eh0=e((f,h)=>{let w,s;return async($,r)=>{if(s=$,!w){let{logger:C=f?.parentClientConfig?.logger,region:I,requestHandler:L=f?.parentClientConfig?.requestHandler,credentialProviderLogger:W}=f,X=await CH(I,f?.parentClientConfig?.region,W),Q=!IH(L);w=new h({profile:f?.parentClientConfig?.profile,credentialDefaultProvider:e(()=>async()=>s,"credentialDefaultProvider"),region:X,requestHandler:Q?L:void 0,logger:C})}let{Credentials:E,AssumedRoleUser:T}=await w.send(new U6(r));if(!E||!E.AccessKeyId||!E.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${r.RoleArn}`);let U=FH(T),F={accessKeyId:E.AccessKeyId,secretAccessKey:E.SecretAccessKey,sessionToken:E.SessionToken,expiration:E.Expiration,...E.CredentialScope&&{credentialScope:E.CredentialScope},...U&&{accountId:U}};return $6.setCredentialFeature(F,"CREDENTIALS_STS_ASSUME_ROLE","i"),F}},"getDefaultRoleAssumer"),Th0=e((f,h)=>{let w;return async(s)=>{if(!w){let{logger:U=f?.parentClientConfig?.logger,region:F,requestHandler:C=f?.parentClientConfig?.requestHandler,credentialProviderLogger:I}=f,L=await CH(F,f?.parentClientConfig?.region,I),W=!IH(C);w=new h({profile:f?.parentClientConfig?.profile,region:L,requestHandler:W?C:void 0,logger:U})}let{Credentials:$,AssumedRoleUser:r}=await w.send(new F6(s));if(!$||!$.AccessKeyId||!$.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${s.RoleArn}`);let E=FH(r),T={accessKeyId:$.AccessKeyId,secretAccessKey:$.SecretAccessKey,sessionToken:$.SessionToken,expiration:$.Expiration,...$.CredentialScope&&{credentialScope:$.CredentialScope},...E&&{accountId:E}};if(E)$6.setCredentialFeature(T,"RESOLVED_ACCOUNT_ID","T");return $6.setCredentialFeature(T,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k"),T}},"getDefaultRoleAssumerWithWebIdentity"),IH=e((f)=>{return f?.metadata?.handlerProtocol==="h2"},"isH2"),LH=Rr(),BH=e((f,h)=>{if(!h)return f;else return class w extends f{static{e(this,"CustomizableSTSClient")}constructor(s){super(s);for(let $ of h)this.middlewareStack.use($)}}},"getCustomizableStsClientCtor"),GH=e((f={},h)=>Eh0(f,BH(LH.STSClient,h)),"getDefaultRoleAssumer"),WH=e((f={},h)=>Th0(f,BH(LH.STSClient,h)),"getDefaultRoleAssumerWithWebIdentity"),Uh0=e((f)=>(h)=>f({roleAssumer:GH(h),roleAssumerWithWebIdentity:WH(h),...h}),"decorateDefaultCredentialProvider")});var L6,zH=(f,{profile:h="default",logger:w}={})=>{return Boolean(f)&&typeof f==="object"&&typeof f.role_arn==="string"&&["undefined","string"].indexOf(typeof f.role_session_name)>-1&&["undefined","string"].indexOf(typeof f.external_id)>-1&&["undefined","string"].indexOf(typeof f.mfa_serial)>-1&&(Fh0(f,{profile:h,logger:w})||Ch0(f,{profile:h,logger:w}))},Fh0=(f,{profile:h,logger:w})=>{let s=typeof f.source_profile==="string"&&typeof f.credential_source==="undefined";if(s)w?.debug?.(` ${h} isAssumeRoleWithSourceProfile source_profile=${f.source_profile}`);return s},Ch0=(f,{profile:h,logger:w})=>{let s=typeof f.credential_source==="string"&&typeof f.source_profile==="undefined";if(s)w?.debug?.(` ${h} isCredentialSourceProfile credential_source=${f.credential_source}`);return s},RH=async(f,h,w,s={})=>{w.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");let $=h[f],{source_profile:r,region:E}=$;if(!w.roleAssumer){let{getDefaultRoleAssumer:U}=await Promise.resolve().then(() => o(I6(),1));w.roleAssumer=U({...w.clientConfig,credentialProviderLogger:w.logger,parentClientConfig:{...w?.parentClientConfig,region:E??w?.parentClientConfig?.region}},w.clientPlugins)}if(r&&r in s)throw new a(`Detected a cycle attempting to resolve credentials for profile ${y1(w)}. Profiles visited: `+Object.keys(s).join(", "),{logger:w.logger});w.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${r?`source_profile=[${r}]`:`profile=[${f}]`}`);let T=r?OE(r,h,w,{...s,[r]:!0},AH(h[r]??{})):(await NV($.credential_source,f,w.logger)(w))();if(AH($))return T.then((U)=>L6.setCredentialFeature(U,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"));else{let U={RoleArn:$.role_arn,RoleSessionName:$.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:$.external_id,DurationSeconds:parseInt($.duration_seconds||"3600",10)},{mfa_serial:F}=$;if(F){if(!w.mfaCodeProvider)throw new a(`Profile ${f} requires multi-factor authentication, but no MFA code callback was provided.`,{logger:w.logger,tryNextLink:!1});U.SerialNumber=F,U.TokenCode=await w.mfaCodeProvider(F)}let C=await T;return w.roleAssumer(C,U).then((I)=>L6.setCredentialFeature(I,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"))}},AH=(f)=>{return!f.role_arn&&!!f.credential_source};var XH=B(()=>{L6=o(I1(),1);Y0();hf();DV();B6()});var SH,YH=(f,h,w)=>{if(h.Version!==1)throw Error(`Profile ${f} credential_process did not return Version 1.`);if(h.AccessKeyId===void 0||h.SecretAccessKey===void 0)throw Error(`Profile ${f} credential_process returned invalid credentials.`);if(h.Expiration){let r=new Date;if(new Date(h.Expiration)<r)throw Error(`Profile ${f} credential_process returned expired credentials.`)}let s=h.AccountId;if(!s&&w?.[f]?.aws_account_id)s=w[f].aws_account_id;let $={accessKeyId:h.AccessKeyId,secretAccessKey:h.SecretAccessKey,...h.SessionToken&&{sessionToken:h.SessionToken},...h.Expiration&&{expiration:new Date(h.Expiration)},...h.CredentialScope&&{credentialScope:h.CredentialScope},...s&&{accountId:s}};return SH.setCredentialFeature($,"CREDENTIALS_PROCESS","w"),$};var MH=B(()=>{SH=o(I1(),1)});import{exec as Ih0}from"node:child_process";import{promisify as Lh0}from"node:util";var QH=async(f,h,w)=>{let s=h[f];if(h[f]){let $=s.credential_process;if($!==void 0){let r=Lh0(Ih0);try{let{stdout:E}=await r($),T;try{T=JSON.parse(E.trim())}catch{throw Error(`Profile ${f} credential_process returned invalid JSON.`)}return YH(f,T,h)}catch(E){throw new a(E.message,{logger:w})}}else throw new a(`Profile ${f} did not contain credential_process.`,{logger:w})}else throw new a(`Profile ${f} could not be found in shared credentials file.`,{logger:w})};var KH=B(()=>{Y0();MH()});var Bh0=(f={})=>async({callerClientConfig:h}={})=>{f.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");let w=await Zh(f);return QH(y1({profile:f.profile??h?.profile}),w,f.logger)};var ZH=B(()=>{hf();KH()});var G6={};Ch(G6,{fromProcess:()=>Bh0});var W6=B(()=>{ZH()});var JH,VH=(f)=>Boolean(f)&&typeof f==="object"&&typeof f.credential_process==="string",PH=async(f,h)=>Promise.resolve().then(() => (W6(),G6)).then(({fromProcess:w})=>w({...f,profile:h})().then((s)=>JH.setCredentialFeature(s,"CREDENTIALS_PROFILE_PROCESS","v")));var HH=B(()=>{JH=o(I1(),1)});var A6,NH=async(f,h,w={})=>{let{fromSSO:s}=await Promise.resolve().then(() => (J8(),Z8));return s({profile:f,logger:w.logger,parentClientConfig:w.parentClientConfig,clientConfig:w.clientConfig})().then(($)=>{if(h.sso_session)return A6.setCredentialFeature($,"CREDENTIALS_PROFILE_SSO","r");else return A6.setCredentialFeature($,"CREDENTIALS_PROFILE_SSO_LEGACY","t")})},DH=(f)=>f&&(typeof f.sso_start_url==="string"||typeof f.sso_account_id==="string"||typeof f.sso_session==="string"||typeof f.sso_region==="string"||typeof f.sso_role_name==="string");var qH=B(()=>{A6=o(I1(),1)});var kH,z6=(f)=>Boolean(f)&&typeof f==="object"&&typeof f.aws_access_key_id==="string"&&typeof f.aws_secret_access_key==="string"&&["undefined","string"].indexOf(typeof f.aws_session_token)>-1&&["undefined","string"].indexOf(typeof f.aws_account_id)>-1,R6=async(f,h)=>{h?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");let w={accessKeyId:f.aws_access_key_id,secretAccessKey:f.aws_secret_access_key,sessionToken:f.aws_session_token,...f.aws_credential_scope&&{credentialScope:f.aws_credential_scope},...f.aws_account_id&&{accountId:f.aws_account_id}};return kH.setCredentialFeature(w,"CREDENTIALS_PROFILE","n")};var yH=B(()=>{kH=o(I1(),1)});var X6=(f)=>async(h)=>{f.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");let{roleArn:w,roleSessionName:s,webIdentityToken:$,providerId:r,policyArns:E,policy:T,durationSeconds:U}=f,{roleAssumerWithWebIdentity:F}=f;if(!F){let{getDefaultRoleAssumerWithWebIdentity:C}=await Promise.resolve().then(() => o(I6(),1));F=C({...f.clientConfig,credentialProviderLogger:f.logger,parentClientConfig:{...h?.callerClientConfig,...f.parentClientConfig}},f.clientPlugins)}return F({RoleArn:w,RoleSessionName:s??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:$,ProviderId:r,PolicyArns:E,Policy:T,DurationSeconds:U})};import{readFileSync as Gh0}from"node:fs";var OH,jH="AWS_WEB_IDENTITY_TOKEN_FILE",Wh0="AWS_ROLE_ARN",Ah0="AWS_ROLE_SESSION_NAME",zh0=(f={})=>async()=>{f.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");let h=f?.webIdentityTokenFile??process.env[jH],w=f?.roleArn??process.env[Wh0],s=f?.roleSessionName??process.env[Ah0];if(!h||!w)throw new a("Web identity configuration not specified",{logger:f.logger});let $=await X6({...f,webIdentityToken:Gh0(h,{encoding:"ascii"}),roleArn:w,roleSessionName:s})();if(h===process.env[jH])OH.setCredentialFeature($,"CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN","h");return $};var lH=B(()=>{OH=o(I1(),1);Y0()});var S6={};Ch(S6,{fromWebToken:()=>X6,fromTokenFile:()=>zh0});var Y6=B(()=>{lH()});var vH,bH=(f)=>Boolean(f)&&typeof f==="object"&&typeof f.web_identity_token_file==="string"&&typeof f.role_arn==="string"&&["undefined","string"].indexOf(typeof f.role_session_name)>-1,mH=async(f,h)=>Promise.resolve().then(() => (Y6(),S6)).then(({fromTokenFile:w})=>w({webIdentityTokenFile:f.web_identity_token_file,roleArn:f.role_arn,roleSessionName:f.role_session_name,roleAssumerWithWebIdentity:h.roleAssumerWithWebIdentity,logger:h.logger,parentClientConfig:h.parentClientConfig})().then((s)=>vH.setCredentialFeature(s,"CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN","q")));var dH=B(()=>{vH=o(I1(),1)});var OE=async(f,h,w,s={},$=!1)=>{let r=h[f];if(Object.keys(s).length>0&&z6(r))return R6(r,w);if($||zH(r,{profile:f,logger:w.logger}))return RH(f,h,w,s);if(z6(r))return R6(r,w);if(bH(r))return mH(r,w);if(VH(r))return PH(w,f);if(DH(r))return await NH(f,r,w);throw new a(`Could not resolve credentials using profile: [${f}] in configuration/credentials file(s).`,{logger:w.logger})};var B6=B(()=>{Y0();XH();HH();qH();yH();dH()});var Rh0=(f={})=>async({callerClientConfig:h}={})=>{let w={...f,parentClientConfig:{...h,...f.parentClientConfig}};w.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");let s=await Zh(w);return OE(y1({profile:f.profile??h?.profile}),s,w)};var iH=B(()=>{hf();B6()});var cH={};Ch(cH,{fromIni:()=>Rh0});var gH=B(()=>{iH()});r4();E4();T4();m$();Qh();var $$=o(m0(),1);$5();D();Ew();J();var TY=o(O0(),1);gf();var UY=async(f,h,w)=>{return{operation:Yh(h).operation,region:await B1(f.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};function X_(f){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"route53",region:f.region},propertiesExtractor:(h,w)=>({signingProperties:{config:h,context:w}})}}var FY=(f)=>{let h=[];switch(f.operation){default:h.push(X_(f))}return h},CY=(f)=>{let h=TY.resolveAwsSdkSigV4Config(f);return Object.assign(h,{})};var IY=(f)=>{return Object.assign(f,{useDualstackEndpoint:f.useDualstackEndpoint??!1,useFipsEndpoint:f.useFipsEndpoint??!1,defaultSigningName:"route53"})},K={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var LY={name:"@aws-sdk/client-route-53",description:"AWS SDK for JavaScript Route 53 Client for Node.js, Browser and React Native",version:"3.775.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/core":"3.775.0","@aws-sdk/credential-provider-node":"3.775.0","@aws-sdk/middleware-host-header":"3.775.0","@aws-sdk/middleware-logger":"3.775.0","@aws-sdk/middleware-recursion-detection":"3.775.0","@aws-sdk/middleware-sdk-route53":"3.775.0","@aws-sdk/middleware-user-agent":"3.775.0","@aws-sdk/region-config-resolver":"3.775.0","@aws-sdk/types":"3.775.0","@aws-sdk/util-endpoints":"3.775.0","@aws-sdk/util-user-agent-browser":"3.775.0","@aws-sdk/util-user-agent-node":"3.775.0","@aws-sdk/xml-builder":"3.775.0","@smithy/config-resolver":"^4.1.0","@smithy/core":"^3.2.0","@smithy/fetch-http-handler":"^5.0.2","@smithy/hash-node":"^4.0.2","@smithy/invalid-dependency":"^4.0.2","@smithy/middleware-content-length":"^4.0.2","@smithy/middleware-endpoint":"^4.1.0","@smithy/middleware-retry":"^4.1.0","@smithy/middleware-serde":"^4.0.3","@smithy/middleware-stack":"^4.0.2","@smithy/node-config-provider":"^4.0.2","@smithy/node-http-handler":"^4.0.4","@smithy/protocol-http":"^5.1.0","@smithy/smithy-client":"^4.2.0","@smithy/types":"^4.2.0","@smithy/url-parser":"^4.0.2","@smithy/util-base64":"^4.0.0","@smithy/util-body-length-browser":"^4.0.0","@smithy/util-body-length-node":"^4.0.0","@smithy/util-defaults-mode-browser":"^4.0.8","@smithy/util-defaults-mode-node":"^4.0.8","@smithy/util-endpoints":"^3.0.2","@smithy/util-middleware":"^4.0.2","@smithy/util-retry":"^4.0.2","@smithy/util-utf8":"^4.0.0","@smithy/util-waiter":"^4.0.3",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node18":"18.2.4","@types/node":"^18.19.69",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~5.2.2"},engines:{node:">=18.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 FN=o(O0(),1);gF();Y0();hf();Y0();var U9="AWS_EC2_METADATA_DISABLED",F9=async(f)=>{let{ENV_CMDS_FULL_URI:h,ENV_CMDS_RELATIVE_URI:w,fromContainerMetadata:s,fromInstanceMetadata:$}=await Promise.resolve().then(() => (fr(),t$));if(process.env[w]||process.env[h]){f.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");let{fromHttp:r}=await Promise.resolve().then(() => (E3(),r3));return xf(r(f),s(f))}if(process.env[U9]&&process.env[U9]!=="false")return async()=>{throw new a("EC2 Instance Metadata Service access disabled",{logger:f.logger})};return f.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata"),$(f)};var xH=!1,lE=(f={})=>fw(xf(async()=>{if(f.profile??process.env[DR]){if(process.env[Q5]&&process.env[K5]){if(!xH)(f.logger?.warn&&f.logger?.constructor?.name!=="NoOpLogger"?f.logger.warn:console.warn)(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING:
|
|
52
52
|
Multiple credential sources detected:
|
|
53
53
|
Both AWS_PROFILE and the pair AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY static credentials are set.
|
|
54
54
|
This SDK will proceed with the AWS_PROFILE value.
|
|
@@ -56,9 +56,9 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht
|
|
|
56
56
|
However, a future version may change this behavior to prefer the ENV static credentials.
|
|
57
57
|
Please ensure that your environment only sets either the AWS_PROFILE or the
|
|
58
58
|
AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY pair.
|
|
59
|
-
`),uN=!0}throw new a("AWS_PROFILE is set, skipping fromEnv provider.",{logger:f.logger,tryNextLink:!0})}return f.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"),_F(f)()},async()=>{f.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");let{ssoStartUrl:h,ssoAccountId:w,ssoRegion:s,ssoRoleName:$,ssoSession:r}=f;if(!h&&!w&&!s&&!$&&!r)throw new a("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:f.logger});let{fromSSO:E}=await Promise.resolve().then(() => (HC(),PC));return E(f)()},async()=>{f.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");let{fromIni:h}=await Promise.resolve().then(() => (pN(),oN));return h(f)()},async()=>{f.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");let{fromProcess:h}=await Promise.resolve().then(() => (R6(),z6));return h(f)()},async()=>{f.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");let{fromTokenFile:h}=await Promise.resolve().then(() => (K6(),Q6));return h(f)()},async()=>{return f.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"),(await WM(f))()},async()=>{throw new a("Could not load credentials from any providers",{tryNextLink:!1,logger:f.logger})}),Vw0,Jw0),Jw0=(f)=>f?.expiration!==void 0,Vw0=(f)=>f?.expiration!==void 0&&f.expiration.getTime()-Date.now()<300000;M5();Kh();Q5();Uw();Vh();Tr();K5();w1();var AD=u(O0(),1);J();ws();Z5();cs();j$();g1();var tN={["required"]:!1,type:"String"},fD={["required"]:!0,default:!1,type:"Boolean"},hD={["ref"]:"Endpoint"},d5={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},ID={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},$f={},wD={["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"name"]},"aws"]},T$={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"name"]},Aw={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!1]},sh={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!1]},sD={["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"us-east-1"}]},$D={["fn"]:"stringEquals",["argv"]:[T$,"aws-us-gov"]},rD={url:"https://route53.us-gov.amazonaws.com",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"us-gov-west-1"}]},headers:{}},ED={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},TD={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsDualStack"]}]},UD=[d5],FD=[ID],CD=[{["ref"]:"Region"}],Pw0={version:"1.0",parameters:{Region:tN,UseDualStack:fD,UseFIPS:fD,Endpoint:tN},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[hD]}],rules:[{conditions:UD,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:FD,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:hD,properties:$f,headers:$f},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:CD}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:CD,assign:"PartitionResult"}],rules:[{conditions:[wD,Aw,sh],endpoint:{url:"https://route53.amazonaws.com",properties:sD,headers:$f},type:"endpoint"},{conditions:[wD,d5,sh],endpoint:{url:"https://route53-fips.amazonaws.com",properties:sD,headers:$f},type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[T$,"aws-cn"]},Aw,sh],endpoint:{url:"https://route53.amazonaws.com.cn",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"cn-northwest-1"}]},headers:$f},type:"endpoint"},{conditions:[$D,Aw,sh],endpoint:rD,type:"endpoint"},{conditions:[$D,d5,sh],endpoint:rD,type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[T$,"aws-iso"]},Aw,sh],endpoint:{url:"https://route53.c2s.ic.gov",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"us-iso-east-1"}]},headers:$f},type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[T$,"aws-iso-b"]},Aw,sh],endpoint:{url:"https://route53.sc2s.sgov.gov",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"us-isob-east-1"}]},headers:$f},type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[T$,"aws-iso-e"]},Aw,sh],endpoint:{url:"https://route53.cloud.adc-e.uk",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"eu-isoe-west-1"}]},headers:$f},type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[T$,"aws-iso-f"]},Aw,sh],endpoint:{url:"https://route53.csp.hci.ic.gov",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"us-isof-south-1"}]},headers:$f},type:"endpoint"},{conditions:[d5,ID],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,ED]},TD],rules:[{endpoint:{url:"https://route53-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:$f,headers:$f},type:"endpoint"}],type:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}],type:"tree"},{conditions:UD,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[ED,!0]}],rules:[{endpoint:{url:"https://route53-fips.{Region}.{PartitionResult#dnsSuffix}",properties:$f,headers:$f},type:"endpoint"}],type:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",type:"error"}],type:"tree"},{conditions:FD,rules:[{conditions:[TD],rules:[{endpoint:{url:"https://route53.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:$f,headers:$f},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:$f,headers:$f},type:"endpoint"}],type:"tree"}],type:"tree"},{error:"Invalid Configuration: Missing Region",type:"error"}]},LD=Pw0;var Hw0=new eh({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),BD=(f,h={})=>{return Hw0.get(f,()=>ah(LD,{endpointParams:f,logger:h.logger}))};tf.aws=oh;var GD=(f)=>{return{apiVersion:"2013-04-01",base64Decoder:f?.base64Decoder??xs,base64Encoder:f?.base64Encoder??_s,disableHostPrefix:f?.disableHostPrefix??!1,endpointProvider:f?.endpointProvider??BD,extensions:f?.extensions??[],httpAuthSchemeProvider:f?.httpAuthSchemeProvider??A9,httpAuthSchemes:f?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(h)=>h.getIdentityProvider("aws.auth#sigv4"),signer:new AD.AwsSdkSigV4Signer}],logger:f?.logger??new e1,serviceId:f?.serviceId??"Route 53",urlParser:f?.urlParser??jf,utf8Decoder:f?.utf8Decoder??V1,utf8Encoder:f?.utf8Encoder??is}};J();J5();J();var zD=(f)=>{Gs(process.version);let h=ns(f),w=()=>h().then(As),s=GD(f);WD.emitWarningIfUnsupportedVersion(process.version);let $={profile:f?.profile};return{...s,...f,runtime:"node",defaultsMode:h,bodyLengthChecker:f?.bodyLengthChecker??gs,credentialDefaultProvider:f?.credentialDefaultProvider??m5,defaultUserAgentProvider:f?.defaultUserAgentProvider??vs({serviceId:s.serviceId,clientVersion:z9.version}),maxAttempts:f?.maxAttempts??z0(Ts,f),region:f?.region??z0(Qh,{...pw,...$}),requestHandler:r1.create(f?.requestHandler??w),retryMode:f?.retryMode??z0({...Fs,default:async()=>(await w()).retryMode||Ph},f),sha256:f?.sha256??Lw.bind(null,"sha256"),streamCollector:f?.streamCollector??Ys,useDualstackEndpoint:f?.useDualstackEndpoint??z0(aw,$),useFipsEndpoint:f?.useFipsEndpoint??z0(ow,$),userAgentAppId:f?.userAgentAppId??z0(bs,$)}};V5();Ff();J();var RD=(f)=>{let{httpAuthSchemes:h,httpAuthSchemeProvider:w,credentials:s}=f;return{setHttpAuthScheme($){let r=h.findIndex((E)=>E.schemeId===$.schemeId);if(r===-1)h.push($);else h.splice(r,1,$)},httpAuthSchemes(){return h},setHttpAuthSchemeProvider($){w=$},httpAuthSchemeProvider(){return w},setCredentials($){s=$},credentials(){return s}}},SD=(f)=>{return{httpAuthSchemes:f.httpAuthSchemes(),httpAuthSchemeProvider:f.httpAuthSchemeProvider(),credentials:f.credentials()}};var XD=(f,h)=>{let w=Object.assign(es(f),Ws(f),Pw(f),RD(f));return h.forEach((s)=>s.configure(w)),Object.assign(f,as(w),zs(w),Hw(w),SD(w))};class Z6 extends Ew{config;constructor(...[f]){let h=zD(f||{});super(h);this.initConfig=h;let w=W9(h),s=mw(w),$=Us(s),r=uw($),E=qw(r),T=ss(E),U=G9(T),F=XD(U,f?.extensions||[]);this.config=F,this.middlewareStack.use(nw(this.config)),this.middlewareStack.use(Ss(this.config)),this.middlewareStack.use(tw(this.config)),this.middlewareStack.use(kw(this.config)),this.middlewareStack.use(yw(this.config)),this.middlewareStack.use(jw(this.config)),this.middlewareStack.use(U$.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:B9,identityProviderConfigProvider:async(C)=>new U$.DefaultIdentityProviderConfig({"aws.auth#sigv4":C.credentials})})),this.middlewareStack.use(U$.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}J();var i5=/^\/(hostedzone|change|delegationset)\//;function Nw0(){return(f)=>async(h)=>{let{ChangeBatch:w}=h.input,s=[];for(let $ of w.Changes){let{AliasTarget:r}=$.ResourceRecordSet;if(r)s.push({...$,ResourceRecordSet:{...$.ResourceRecordSet,AliasTarget:{...r,HostedZoneId:r.HostedZoneId.replace(i5,"")}}});else s.push($)}return f({...h,input:{...h.input,ChangeBatch:{...w,Changes:s}}})}}var Dw0={step:"initialize",tags:["ROUTE53_IDS","CHANGE_RESOURCE_RECORD_SETS"],name:"changeResourceRecordSetsMiddleware",override:!0},YD=(f)=>({applyToStack:(h)=>{h.add(Nw0(),Dw0)}});var qw0=["DelegationSetId","HostedZoneId","Id"];function kw0(){return(f)=>async(h)=>{let w={...h.input};for(let s of qw0){let $=w[s];if($)w[s]=$.replace(i5,"")}return f({...h,input:w})}}var yw0={step:"initialize",tags:["ROUTE53_IDS"],name:"idNormalizerMiddleware",override:!0},O=(f)=>({applyToStack:(h)=>{h.add(kw0(),yw0)}});D();k();J();var _=u(O0(),1);function MD(f){return f.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}function QD(f){return f.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
").replace(/\n/g,"
").replace(/\u0085/g,"…").replace(/\u2028/,"
")}class J6{value;constructor(f){this.value=f}toString(){return QD(""+this.value)}}class P{name;children;attributes={};static of(f,h,w){let s=new P(f);if(h!==void 0)s.addChildNode(new J6(h));if(w!==void 0)s.withName(w);return s}constructor(f,h=[]){this.name=f,this.children=h}withName(f){return this.name=f,this}addAttribute(f,h){return this.attributes[f]=h,this}addChildNode(f){return this.children.push(f),this}removeAttribute(f){return delete this.attributes[f],this}n(f){return this.name=f,this}c(f){return this.children.push(f),this}a(f,h){if(h!=null)this.attributes[f]=h;return this}cc(f,h,w=h){if(f[h]!=null){let s=P.of(h,f[h]).withName(w);this.c(s)}}l(f,h,w,s){if(f[h]!=null)s().map((r)=>{r.withName(w),this.c(r)})}lc(f,h,w,s){if(f[h]!=null){let $=s(),r=new P(w);$.map((E)=>{r.c(E)}),this.c(r)}}toString(){let f=Boolean(this.children.length),h=`<${this.name}`,w=this.attributes;for(let s of Object.keys(w)){let $=w[s];if($!=null)h+=` ${s}="${MD(""+$)}"`}return h+=!f?"/>":`>${this.children.map((s)=>s.toString()).join("")}</${this.name}>`}}var d=u(m0(),1);J();J();class m extends $1{constructor(f){super(f);Object.setPrototypeOf(this,m.prototype)}}class c5 extends m{name="ConcurrentModification";$fault="client";constructor(f){super({name:"ConcurrentModification",$fault:"client",...f});Object.setPrototypeOf(this,c5.prototype)}}class g5 extends m{name="InvalidInput";$fault="client";constructor(f){super({name:"InvalidInput",$fault:"client",...f});Object.setPrototypeOf(this,g5.prototype)}}class x5 extends m{name="InvalidKeySigningKeyStatus";$fault="client";constructor(f){super({name:"InvalidKeySigningKeyStatus",$fault:"client",...f});Object.setPrototypeOf(this,x5.prototype)}}class _5 extends m{name="InvalidKMSArn";$fault="client";constructor(f){super({name:"InvalidKMSArn",$fault:"client",...f});Object.setPrototypeOf(this,_5.prototype)}}class n5 extends m{name="InvalidSigningStatus";$fault="client";constructor(f){super({name:"InvalidSigningStatus",$fault:"client",...f});Object.setPrototypeOf(this,n5.prototype)}}class e5 extends m{name="NoSuchKeySigningKey";$fault="client";constructor(f){super({name:"NoSuchKeySigningKey",$fault:"client",...f});Object.setPrototypeOf(this,e5.prototype)}}class a5 extends m{name="ConflictingDomainExists";$fault="client";constructor(f){super({name:"ConflictingDomainExists",$fault:"client",...f});Object.setPrototypeOf(this,a5.prototype)}}class o5 extends m{name="InvalidVPCId";$fault="client";constructor(f){super({name:"InvalidVPCId",$fault:"client",...f});Object.setPrototypeOf(this,o5.prototype)}}class p5 extends m{name="LimitsExceeded";$fault="client";constructor(f){super({name:"LimitsExceeded",$fault:"client",...f});Object.setPrototypeOf(this,p5.prototype)}}class u5 extends m{name="NoSuchHostedZone";$fault="client";constructor(f){super({name:"NoSuchHostedZone",$fault:"client",...f});Object.setPrototypeOf(this,u5.prototype)}}class t5 extends m{name="NotAuthorizedException";$fault="client";constructor(f){super({name:"NotAuthorizedException",$fault:"client",...f});Object.setPrototypeOf(this,t5.prototype)}}class f2 extends m{name="PriorRequestNotComplete";$fault="client";constructor(f){super({name:"PriorRequestNotComplete",$fault:"client",...f});Object.setPrototypeOf(this,f2.prototype)}}class h2 extends m{name="PublicZoneVPCAssociation";$fault="client";constructor(f){super({name:"PublicZoneVPCAssociation",$fault:"client",...f});Object.setPrototypeOf(this,h2.prototype)}}class w2 extends m{name="CidrBlockInUseException";$fault="client";Message;constructor(f){super({name:"CidrBlockInUseException",$fault:"client",...f});Object.setPrototypeOf(this,w2.prototype),this.Message=f.Message}}class s2 extends m{name="CidrCollectionVersionMismatchException";$fault="client";Message;constructor(f){super({name:"CidrCollectionVersionMismatchException",$fault:"client",...f});Object.setPrototypeOf(this,s2.prototype),this.Message=f.Message}}class $2 extends m{name="NoSuchCidrCollectionException";$fault="client";Message;constructor(f){super({name:"NoSuchCidrCollectionException",$fault:"client",...f});Object.setPrototypeOf(this,$2.prototype),this.Message=f.Message}}class r2 extends m{name="InvalidChangeBatch";$fault="client";messages;constructor(f){super({name:"InvalidChangeBatch",$fault:"client",...f});Object.setPrototypeOf(this,r2.prototype),this.messages=f.messages}}class E2 extends m{name="NoSuchHealthCheck";$fault="client";constructor(f){super({name:"NoSuchHealthCheck",$fault:"client",...f});Object.setPrototypeOf(this,E2.prototype)}}class T2 extends m{name="ThrottlingException";$fault="client";constructor(f){super({name:"ThrottlingException",$fault:"client",...f});Object.setPrototypeOf(this,T2.prototype)}}class U2 extends m{name="CidrCollectionAlreadyExistsException";$fault="client";Message;constructor(f){super({name:"CidrCollectionAlreadyExistsException",$fault:"client",...f});Object.setPrototypeOf(this,U2.prototype),this.Message=f.Message}}class F2 extends m{name="HealthCheckAlreadyExists";$fault="client";constructor(f){super({name:"HealthCheckAlreadyExists",$fault:"client",...f});Object.setPrototypeOf(this,F2.prototype)}}class C2 extends m{name="TooManyHealthChecks";$fault="client";constructor(f){super({name:"TooManyHealthChecks",$fault:"client",...f});Object.setPrototypeOf(this,C2.prototype)}}class I2 extends m{name="DelegationSetNotAvailable";$fault="client";constructor(f){super({name:"DelegationSetNotAvailable",$fault:"client",...f});Object.setPrototypeOf(this,I2.prototype)}}class L2 extends m{name="DelegationSetNotReusable";$fault="client";constructor(f){super({name:"DelegationSetNotReusable",$fault:"client",...f});Object.setPrototypeOf(this,L2.prototype)}}class B2 extends m{name="HostedZoneAlreadyExists";$fault="client";constructor(f){super({name:"HostedZoneAlreadyExists",$fault:"client",...f});Object.setPrototypeOf(this,B2.prototype)}}class A2 extends m{name="InvalidDomainName";$fault="client";constructor(f){super({name:"InvalidDomainName",$fault:"client",...f});Object.setPrototypeOf(this,A2.prototype)}}class G2 extends m{name="NoSuchDelegationSet";$fault="client";constructor(f){super({name:"NoSuchDelegationSet",$fault:"client",...f});Object.setPrototypeOf(this,G2.prototype)}}class W2 extends m{name="TooManyHostedZones";$fault="client";constructor(f){super({name:"TooManyHostedZones",$fault:"client",...f});Object.setPrototypeOf(this,W2.prototype)}}class z2 extends m{name="InvalidArgument";$fault="client";constructor(f){super({name:"InvalidArgument",$fault:"client",...f});Object.setPrototypeOf(this,z2.prototype)}}class R2 extends m{name="InvalidKeySigningKeyName";$fault="client";constructor(f){super({name:"InvalidKeySigningKeyName",$fault:"client",...f});Object.setPrototypeOf(this,R2.prototype)}}class S2 extends m{name="KeySigningKeyAlreadyExists";$fault="client";constructor(f){super({name:"KeySigningKeyAlreadyExists",$fault:"client",...f});Object.setPrototypeOf(this,S2.prototype)}}class X2 extends m{name="TooManyKeySigningKeys";$fault="client";constructor(f){super({name:"TooManyKeySigningKeys",$fault:"client",...f});Object.setPrototypeOf(this,X2.prototype)}}class Y2 extends m{name="InsufficientCloudWatchLogsResourcePolicy";$fault="client";constructor(f){super({name:"InsufficientCloudWatchLogsResourcePolicy",$fault:"client",...f});Object.setPrototypeOf(this,Y2.prototype)}}class M2 extends m{name="NoSuchCloudWatchLogsLogGroup";$fault="client";constructor(f){super({name:"NoSuchCloudWatchLogsLogGroup",$fault:"client",...f});Object.setPrototypeOf(this,M2.prototype)}}class Q2 extends m{name="QueryLoggingConfigAlreadyExists";$fault="client";constructor(f){super({name:"QueryLoggingConfigAlreadyExists",$fault:"client",...f});Object.setPrototypeOf(this,Q2.prototype)}}class K2 extends m{name="DelegationSetAlreadyCreated";$fault="client";constructor(f){super({name:"DelegationSetAlreadyCreated",$fault:"client",...f});Object.setPrototypeOf(this,K2.prototype)}}class Z2 extends m{name="DelegationSetAlreadyReusable";$fault="client";constructor(f){super({name:"DelegationSetAlreadyReusable",$fault:"client",...f});Object.setPrototypeOf(this,Z2.prototype)}}class J2 extends m{name="HostedZoneNotFound";$fault="client";constructor(f){super({name:"HostedZoneNotFound",$fault:"client",...f});Object.setPrototypeOf(this,J2.prototype)}}class V2 extends m{name="InvalidTrafficPolicyDocument";$fault="client";constructor(f){super({name:"InvalidTrafficPolicyDocument",$fault:"client",...f});Object.setPrototypeOf(this,V2.prototype)}}class P2 extends m{name="TooManyTrafficPolicies";$fault="client";constructor(f){super({name:"TooManyTrafficPolicies",$fault:"client",...f});Object.setPrototypeOf(this,P2.prototype)}}class H2 extends m{name="TrafficPolicyAlreadyExists";$fault="client";constructor(f){super({name:"TrafficPolicyAlreadyExists",$fault:"client",...f});Object.setPrototypeOf(this,H2.prototype)}}class N2 extends m{name="NoSuchTrafficPolicy";$fault="client";constructor(f){super({name:"NoSuchTrafficPolicy",$fault:"client",...f});Object.setPrototypeOf(this,N2.prototype)}}class D2 extends m{name="TooManyTrafficPolicyInstances";$fault="client";constructor(f){super({name:"TooManyTrafficPolicyInstances",$fault:"client",...f});Object.setPrototypeOf(this,D2.prototype)}}class q2 extends m{name="TrafficPolicyInstanceAlreadyExists";$fault="client";constructor(f){super({name:"TrafficPolicyInstanceAlreadyExists",$fault:"client",...f});Object.setPrototypeOf(this,q2.prototype)}}class k2 extends m{name="TooManyTrafficPolicyVersionsForCurrentPolicy";$fault="client";constructor(f){super({name:"TooManyTrafficPolicyVersionsForCurrentPolicy",$fault:"client",...f});Object.setPrototypeOf(this,k2.prototype)}}class y2 extends m{name="TooManyVPCAssociationAuthorizations";$fault="client";constructor(f){super({name:"TooManyVPCAssociationAuthorizations",$fault:"client",...f});Object.setPrototypeOf(this,y2.prototype)}}class j2 extends m{name="KeySigningKeyInParentDSRecord";$fault="client";constructor(f){super({name:"KeySigningKeyInParentDSRecord",$fault:"client",...f});Object.setPrototypeOf(this,j2.prototype)}}class O2 extends m{name="KeySigningKeyInUse";$fault="client";constructor(f){super({name:"KeySigningKeyInUse",$fault:"client",...f});Object.setPrototypeOf(this,O2.prototype)}}class l2 extends m{name="CidrCollectionInUseException";$fault="client";Message;constructor(f){super({name:"CidrCollectionInUseException",$fault:"client",...f});Object.setPrototypeOf(this,l2.prototype),this.Message=f.Message}}class v2 extends m{name="HealthCheckInUse";$fault="client";constructor(f){super({name:"HealthCheckInUse",$fault:"client",...f});Object.setPrototypeOf(this,v2.prototype)}}class b2 extends m{name="HostedZoneNotEmpty";$fault="client";constructor(f){super({name:"HostedZoneNotEmpty",$fault:"client",...f});Object.setPrototypeOf(this,b2.prototype)}}class m2 extends m{name="NoSuchQueryLoggingConfig";$fault="client";constructor(f){super({name:"NoSuchQueryLoggingConfig",$fault:"client",...f});Object.setPrototypeOf(this,m2.prototype)}}class d2 extends m{name="DelegationSetInUse";$fault="client";constructor(f){super({name:"DelegationSetInUse",$fault:"client",...f});Object.setPrototypeOf(this,d2.prototype)}}class i2 extends m{name="TrafficPolicyInUse";$fault="client";constructor(f){super({name:"TrafficPolicyInUse",$fault:"client",...f});Object.setPrototypeOf(this,i2.prototype)}}class c2 extends m{name="NoSuchTrafficPolicyInstance";$fault="client";constructor(f){super({name:"NoSuchTrafficPolicyInstance",$fault:"client",...f});Object.setPrototypeOf(this,c2.prototype)}}class g2 extends m{name="VPCAssociationAuthorizationNotFound";$fault="client";constructor(f){super({name:"VPCAssociationAuthorizationNotFound",$fault:"client",...f});Object.setPrototypeOf(this,g2.prototype)}}class x2 extends m{name="DNSSECNotFound";$fault="client";constructor(f){super({name:"DNSSECNotFound",$fault:"client",...f});Object.setPrototypeOf(this,x2.prototype)}}class _2 extends m{name="LastVPCAssociation";$fault="client";constructor(f){super({name:"LastVPCAssociation",$fault:"client",...f});Object.setPrototypeOf(this,_2.prototype)}}class n2 extends m{name="VPCAssociationNotFound";$fault="client";constructor(f){super({name:"VPCAssociationNotFound",$fault:"client",...f});Object.setPrototypeOf(this,n2.prototype)}}class e2 extends m{name="HostedZonePartiallyDelegated";$fault="client";constructor(f){super({name:"HostedZonePartiallyDelegated",$fault:"client",...f});Object.setPrototypeOf(this,e2.prototype)}}class a2 extends m{name="KeySigningKeyWithActiveStatusNotFound";$fault="client";constructor(f){super({name:"KeySigningKeyWithActiveStatusNotFound",$fault:"client",...f});Object.setPrototypeOf(this,a2.prototype)}}class o2 extends m{name="NoSuchChange";$fault="client";constructor(f){super({name:"NoSuchChange",$fault:"client",...f});Object.setPrototypeOf(this,o2.prototype)}}class p2 extends m{name="NoSuchGeoLocation";$fault="client";constructor(f){super({name:"NoSuchGeoLocation",$fault:"client",...f});Object.setPrototypeOf(this,p2.prototype)}}class u2 extends m{name="IncompatibleVersion";$fault="client";constructor(f){super({name:"IncompatibleVersion",$fault:"client",...f});Object.setPrototypeOf(this,u2.prototype)}}class t2 extends m{name="HostedZoneNotPrivate";$fault="client";constructor(f){super({name:"HostedZoneNotPrivate",$fault:"client",...f});Object.setPrototypeOf(this,t2.prototype)}}class fT extends m{name="NoSuchCidrLocationException";$fault="client";Message;constructor(f){super({name:"NoSuchCidrLocationException",$fault:"client",...f});Object.setPrototypeOf(this,fT.prototype),this.Message=f.Message}}class hT extends m{name="InvalidPaginationToken";$fault="client";constructor(f){super({name:"InvalidPaginationToken",$fault:"client",...f});Object.setPrototypeOf(this,hT.prototype)}}class wT extends m{name="HealthCheckVersionMismatch";$fault="client";constructor(f){super({name:"HealthCheckVersionMismatch",$fault:"client",...f});Object.setPrototypeOf(this,wT.prototype)}}class sT extends m{name="ConflictingTypes";$fault="client";constructor(f){super({name:"ConflictingTypes",$fault:"client",...f});Object.setPrototypeOf(this,sT.prototype)}}var DD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/keysigningkey/{HostedZoneId}/{Name}/activate"),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1),w.p("Name",()=>f.Name,"{Name}",!1);let $;return w.m("POST").h(s).b($),w.build()},qD=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/hostedzone/{HostedZoneId}/associatevpc"),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1);let $;$=c0;let r=new P(Wr0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[F0]!=null)r.c(P.of(Gr0,f[F0]).n(F0));if(f[P0]!=null)r.c(f4(f[P0],h).n(P0));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},kD=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/cidrcollection/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;$=c0;let r=new P(Xr0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r.lc(f,"Changes","Changes",()=>w$0(f[Sy],h)),f[$T]!=null)r.c(P.of($T,String(f[$T])).n($T));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},yD=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/hostedzone/{HostedZoneId}/rrset"),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1);let $;$=c0;let r=new P(qr0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[ET]!=null)r.c(ts0(f[ET],h).n(ET));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},jD=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/tags/{ResourceType}/{ResourceId}"),w.p("ResourceType",()=>f.ResourceType,"{ResourceType}",!1),w.p("ResourceId",()=>f.ResourceId,"{ResourceId}",!1);let $;$=c0;let r=new P(kr0);return r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r.lc(f,"AddTags","AddTags",()=>W$0(f[Ar0],h)),r.lc(f,"RemoveTagKeys","RemoveTagKeys",()=>G$0(f[F40],h)),$+=r.toString(),w.m("POST").h(s).b($),w.build()},OD=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/cidrcollection");let $;$=c0;let r=new P(Yr0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[q0]!=null)r.c(P.of(Pr0,f[q0]).n(q0));if(f[o]!=null)r.c(P.of(Hr0,f[o]).n(o));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},lD=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/healthcheck");let $;$=c0;let r=new P(Mr0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[q0]!=null)r.c(P.of(nr0,f[q0]).n(q0));if(f[Jw]!=null)r.c(U$0(f[Jw],h).n(Jw));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},vD=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/hostedzone");let $;$=c0;let r=new P(Qr0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[q0]!=null)r.c(P.of(j8,f[q0]).n(q0));if(f[UT]!=null)r.c(P.of(j1,f[UT]).n(UT));if(f[FT]!=null)r.c(F$0(f[FT],h).n(FT));if(f[o]!=null)r.c(P.of(G1,f[o]).n(o));if(f[P0]!=null)r.c(f4(f[P0],h).n(P0));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},bD=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/keysigningkey");let $;$=c0;let r=new P(Kr0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[q0]!=null)r.c(P.of(j8,f[q0]).n(q0));if(f[h0]!=null)r.c(P.of(j1,f[h0]).n(h0));if(f[n6]!=null)r.c(P.of(B40,f[n6]).n(n6));if(f[o]!=null)r.c(P.of(L40,f[o]).n(o));if(f[Gf]!=null)r.c(P.of(A40,f[Gf]).n(Gf));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},mD=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/queryloggingconfig");let $;$=c0;let r=new P(Nr0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r.cc(f,TT),f[h0]!=null)r.c(P.of(j1,f[h0]).n(h0));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},dD=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/delegationset");let $;$=c0;let r=new P(Dr0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[q0]!=null)r.c(P.of(j8,f[q0]).n(q0));if(f[h0]!=null)r.c(P.of(j1,f[h0]).n(h0));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},iD=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/trafficpolicy");let $;$=c0;let r=new P(jr0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[F0]!=null)r.c(P.of(l8,f[F0]).n(F0));if(f[rh]!=null)r.c(P.of(My,f[rh]).n(rh));if(f[o]!=null)r.c(P.of(S40,f[o]).n(o));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},cD=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/trafficpolicyinstance");let $;$=c0;let r=new P(yr0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[h0]!=null)r.c(P.of(j1,f[h0]).n(h0));if(f[o]!=null)r.c(P.of(G1,f[o]).n(o));if(f[p0]!=null)r.c(P.of(p0,String(f[p0])).n(p0));if(r.cc(f,Y$),f[gf]!=null)r.c(P.of(gf,String(f[gf])).n(gf));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},gD=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/trafficpolicy/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;$=c0;let r=new P(Or0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[F0]!=null)r.c(P.of(l8,f[F0]).n(F0));if(f[rh]!=null)r.c(P.of(My,f[rh]).n(rh));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},xD=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/hostedzone/{HostedZoneId}/authorizevpcassociation"),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1);let $;$=c0;let r=new P(lr0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[P0]!=null)r.c(f4(f[P0],h).n(P0));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},_D=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/keysigningkey/{HostedZoneId}/{Name}/deactivate"),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1),w.p("Name",()=>f.Name,"{Name}",!1);let $;return w.m("POST").h(s).b($),w.build()},nD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/cidrcollection/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;return w.m("DELETE").h(s).b($),w.build()},eD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/healthcheck/{HealthCheckId}"),w.p("HealthCheckId",()=>f.HealthCheckId,"{HealthCheckId}",!1);let $;return w.m("DELETE").h(s).b($),w.build()},aD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/hostedzone/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;return w.m("DELETE").h(s).b($),w.build()},oD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/keysigningkey/{HostedZoneId}/{Name}"),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1),w.p("Name",()=>f.Name,"{Name}",!1);let $;return w.m("DELETE").h(s).b($),w.build()},pD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/queryloggingconfig/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;return w.m("DELETE").h(s).b($),w.build()},uD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/delegationset/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;return w.m("DELETE").h(s).b($),w.build()},tD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/trafficpolicy/{Id}/{Version}"),w.p("Id",()=>f.Id,"{Id}",!1),w.p("Version",()=>f.Version.toString(),"{Version}",!1);let $;return w.m("DELETE").h(s).b($),w.build()},fq=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/trafficpolicyinstance/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;return w.m("DELETE").h(s).b($),w.build()},hq=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/hostedzone/{HostedZoneId}/deauthorizevpcassociation"),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1);let $;$=c0;let r=new P(br0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[P0]!=null)r.c(f4(f[P0],h).n(P0));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},wq=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/hostedzone/{HostedZoneId}/disable-dnssec"),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1);let $;return w.m("POST").h(s).b($),w.build()},sq=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/hostedzone/{HostedZoneId}/disassociatevpc"),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1);let $;$=c0;let r=new P(dr0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[F0]!=null)r.c(P.of(mr0,f[F0]).n(F0));if(f[P0]!=null)r.c(f4(f[P0],h).n(P0));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},$q=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/hostedzone/{HostedZoneId}/enable-dnssec"),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1);let $;return w.m("POST").h(s).b($),w.build()},rq=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/accountlimit/{Type}"),w.p("Type",()=>f.Type,"{Type}",!1);let $;return w.m("GET").h(s).b($),w.build()},Eq=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/change/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;return w.m("GET").h(s).b($),w.build()},Tq=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/checkeripranges");let $;return w.m("GET").h(s).b($),w.build()},Uq=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/hostedzone/{HostedZoneId}/dnssec"),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1);let $;return w.m("GET").h(s).b($),w.build()},Fq=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/geolocation");let $=Y({[V40]:[,f[k1]],[P40]:[,f[y1]],[b40]:[,f[O1]]}),r;return w.m("GET").h(s).q($).b(r),w.build()},Cq=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/healthcheck/{HealthCheckId}"),w.p("HealthCheckId",()=>f.HealthCheckId,"{HealthCheckId}",!1);let $;return w.m("GET").h(s).b($),w.build()},Iq=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/healthcheckcount");let $;return w.m("GET").h(s).b($),w.build()},Lq=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/healthcheck/{HealthCheckId}/lastfailurereason"),w.p("HealthCheckId",()=>f.HealthCheckId,"{HealthCheckId}",!1);let $;return w.m("GET").h(s).b($),w.build()},Bq=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/healthcheck/{HealthCheckId}/status"),w.p("HealthCheckId",()=>f.HealthCheckId,"{HealthCheckId}",!1);let $;return w.m("GET").h(s).b($),w.build()},Aq=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/hostedzone/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;return w.m("GET").h(s).b($),w.build()},Gq=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/hostedzonecount");let $;return w.m("GET").h(s).b($),w.build()},Wq=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/hostedzonelimit/{HostedZoneId}/{Type}"),w.p("Type",()=>f.Type,"{Type}",!1),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1);let $;return w.m("GET").h(s).b($),w.build()},zq=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/queryloggingconfig/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;return w.m("GET").h(s).b($),w.build()},Rq=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/delegationset/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;return w.m("GET").h(s).b($),w.build()},Sq=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/reusabledelegationsetlimit/{DelegationSetId}/{Type}"),w.p("Type",()=>f.Type,"{Type}",!1),w.p("DelegationSetId",()=>f.DelegationSetId,"{DelegationSetId}",!1);let $;return w.m("GET").h(s).b($),w.build()},Xq=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/trafficpolicy/{Id}/{Version}"),w.p("Id",()=>f.Id,"{Id}",!1),w.p("Version",()=>f.Version.toString(),"{Version}",!1);let $;return w.m("GET").h(s).b($),w.build()},Yq=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/trafficpolicyinstance/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;return w.m("GET").h(s).b($),w.build()},Mq=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/trafficpolicyinstancecount");let $;return w.m("GET").h(s).b($),w.build()},Qq=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/cidrcollection/{CollectionId}/cidrblocks"),w.p("CollectionId",()=>f.CollectionId,"{CollectionId}",!1);let $=Y({[l1]:[,f[Uf]],[Q$]:[,f[k0]],[r4]:[()=>f.MaxResults!==void 0,()=>f[s4].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},Kq=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/cidrcollection");let $=Y({[Q$]:[,f[k0]],[r4]:[()=>f.MaxResults!==void 0,()=>f[s4].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},Zq=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/cidrcollection/{CollectionId}"),w.p("CollectionId",()=>f.CollectionId,"{CollectionId}",!1);let $=Y({[Q$]:[,f[k0]],[r4]:[()=>f.MaxResults!==void 0,()=>f[s4].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},Jq=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/geolocations");let $=Y({[m40]:[,f[C40]],[d40]:[,f[I40]],[i40]:[,f[R40]],[af]:[()=>f.MaxItems!==void 0,()=>f[p].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},Vq=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/healthcheck");let $=Y({[v8]:[,f[xf]],[af]:[()=>f.MaxItems!==void 0,()=>f[p].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},Pq=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/hostedzone");let $=Y({[v8]:[,f[xf]],[af]:[()=>f.MaxItems!==void 0,()=>f[p].toString()],[H40]:[,f[UT]],[k40]:[,f[or0]]}),r;return w.m("GET").h(s).q($).b(r),w.build()},Hq=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/hostedzonesbyname");let $=Y({[N40]:[,f[G1]],[$4]:[,f[h0]],[af]:[()=>f.MaxItems!==void 0,()=>f[p].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},Nq=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/hostedzonesbyvpc");let $=Y({[_40]:[,j(f[ur],"VPCId")],[e40]:[,j(f[tr],"VPCRegion")],[af]:[()=>f.MaxItems!==void 0,()=>f[p].toString()],[Q$]:[,f[k0]]}),r;return w.m("GET").h(s).q($).b(r),w.build()},Dq=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/queryloggingconfig");let $=Y({[$4]:[,f[h0]],[Q$]:[,f[k0]],[r4]:[()=>f.MaxResults!==void 0,()=>f[s4].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},qq=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/hostedzone/{HostedZoneId}/rrset"),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1);let $=Y({[j40]:[,f[W40]],[c40]:[,f[z40]],[y40]:[,f[G40]],[af]:[()=>f.MaxItems!==void 0,()=>f[p].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},kq=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/delegationset");let $=Y({[v8]:[,f[xf]],[af]:[()=>f.MaxItems!==void 0,()=>f[p].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},yq=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/tags/{ResourceType}/{ResourceId}"),w.p("ResourceType",()=>f.ResourceType,"{ResourceType}",!1),w.p("ResourceId",()=>f.ResourceId,"{ResourceId}",!1);let $;return w.m("GET").h(s).b($),w.build()},jq=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/tags/{ResourceType}"),w.p("ResourceType",()=>f.ResourceType,"{ResourceType}",!1);let $;$=c0;let r=new P(ur0);return r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r.lc(f,"ResourceIds","ResourceIds",()=>z$0(f[w40],h)),$+=r.toString(),w.m("POST").h(s).b($),w.build()},Oq=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/trafficpolicies");let $=Y({[g40]:[,f[zT]],[af]:[()=>f.MaxItems!==void 0,()=>f[p].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},lq=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/trafficpolicyinstances");let $=Y({[$4]:[,f[dh]],[b8]:[,f[_f]],[m8]:[,f[nf]],[af]:[()=>f.MaxItems!==void 0,()=>f[p].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},vq=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/trafficpolicyinstances/hostedzone");let $=Y({[Qy]:[,j(f[h0],"HostedZoneId")],[b8]:[,f[_f]],[m8]:[,f[nf]],[af]:[()=>f.MaxItems!==void 0,()=>f[p].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},bq=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/trafficpolicyinstances/trafficpolicy");let $=Y({[Qy]:[,j(f[Y$],"TrafficPolicyId")],[n40]:[j(f.TrafficPolicyVersion,"TrafficPolicyVersion")!=null,()=>f[gf].toString()],[$4]:[,f[dh]],[b8]:[,f[_f]],[m8]:[,f[nf]],[af]:[()=>f.MaxItems!==void 0,()=>f[p].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},mq=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/trafficpolicies/{Id}/versions"),w.p("Id",()=>f.Id,"{Id}",!1);let $=Y({[x40]:[,f[RT]],[af]:[()=>f.MaxItems!==void 0,()=>f[p].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},dq=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/hostedzone/{HostedZoneId}/authorizevpcassociation"),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1);let $=Y({[Q$]:[,f[k0]],[r4]:[()=>f.MaxResults!==void 0,()=>f[s4].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},iq=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/testdnsanswer");let $=Y({[$4]:[,j(f[h0],"HostedZoneId")],[O40]:[,j(f[AT],"RecordName")],[l40]:[,j(f[GT],"RecordType")],[v40]:[,f[h40]],[D40]:[,f[ir0]],[q40]:[,f[cr0]]}),r;return w.m("GET").h(s).q($).b(r),w.build()},cq=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/healthcheck/{HealthCheckId}"),w.p("HealthCheckId",()=>f.HealthCheckId,"{HealthCheckId}",!1);let $;$=c0;let r=new P(M40);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[q1]!=null)r.c(Fy(f[q1],h).n(q1));if(r.lc(f,"ChildHealthChecks","ChildHealthChecks",()=>Cy(f[Gw],h)),f[F1]!=null)r.c(P.of(F1,String(f[F1])).n(F1));if(f[C1]!=null)r.c(P.of(C1,String(f[C1])).n(C1));if(f[I1]!=null)r.c(P.of(I1,String(f[I1])).n(I1));if(r.cc(f,xr),f[Rw]!=null)r.c(P.of(Rw,String(f[Rw])).n(Rw));if(f[L1]!=null)r.c(P.of(L1,String(f[L1])).n(L1));if(r.cc(f,ih),r.cc(f,er),f[B1]!=null)r.c(P.of(B1,String(f[B1])).n(B1));if(f[A1]!=null)r.c(P.of(A1,String(f[A1])).n(A1));return r.lc(f,"Regions","Regions",()=>Iy(f[Ww],h)),r.lc(f,"ResetElements","ResetElements",()=>C$0(f[f40],h)),r.cc(f,ar),r.cc(f,pr),$+=r.toString(),w.m("POST").h(s).b($),w.build()},gq=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/hostedzone/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;$=c0;let r=new P(Q40);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[F0]!=null)r.c(P.of(O8,f[F0]).n(F0));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},xq=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/trafficpolicy/{Id}/{Version}"),w.p("Id",()=>f.Id,"{Id}",!1),w.p("Version",()=>f.Version.toString(),"{Version}",!1);let $;$=c0;let r=new P(K40);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[F0]!=null)r.c(P.of(l8,f[F0]).n(F0));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},_q=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/trafficpolicyinstance/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;$=c0;let r=new P(Z40);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[p0]!=null)r.c(P.of(p0,String(f[p0])).n(p0));if(r.cc(f,Y$),f[gf]!=null)r.c(P.of(gf,String(f[gf])).n(gf));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},nq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[$0]!=null)w[$0]=ef(s[$0],h);return w},eq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[$0]!=null)w[$0]=ef(s[$0],h);return w},aq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[I0]!=null)w[I0]=A(s[I0]);return w},oq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[$0]!=null)w[$0]=ef(s[$0],h);return w},pq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)});return await Bf.collectBody(f.body,h),w},uq=async(f,h)=>{if(f.statusCode!==201&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f),[Fh]:[,f.headers[l1]]}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[y6]!=null)w[y6]=Z$0(s[y6],h);return w},tq=async(f,h)=>{if(f.statusCode!==201&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f),[Fh]:[,f.headers[l1]]}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[W1]!=null)w[W1]=MT(s[W1],h);return w},fk=async(f,h)=>{if(f.statusCode!==201&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f),[Fh]:[,f.headers[l1]]}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[$0]!=null)w[$0]=ef(s[$0],h);if(s[Mf]!=null)w[Mf]=h4(s[Mf],h);if(s[Jf]!=null)w[Jf]=QT(s[Jf],h);if(s[P0]!=null)w[P0]=y8(s[P0],h);return w},hk=async(f,h)=>{if(f.statusCode!==201&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f),[Fh]:[,f.headers[l1]]}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[$0]!=null)w[$0]=ef(s[$0],h);if(s[e6]!=null)w[e6]=Gy(s[e6],h);return w},wk=async(f,h)=>{if(f.statusCode!==201&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f),[Fh]:[,f.headers[l1]]}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[ch]!=null)w[ch]=q8(s[ch],h);return w},sk=async(f,h)=>{if(f.statusCode!==201&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f),[Fh]:[,f.headers[l1]]}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[Mf]!=null)w[Mf]=h4(s[Mf],h);return w},$k=async(f,h)=>{if(f.statusCode!==201&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f),[Fh]:[,f.headers[l1]]}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[Qf]!=null)w[Qf]=w4(s[Qf],h);return w},rk=async(f,h)=>{if(f.statusCode!==201&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f),[Fh]:[,f.headers[l1]]}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[Wf]!=null)w[Wf]=KT(s[Wf],h);return w},Ek=async(f,h)=>{if(f.statusCode!==201&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f),[Fh]:[,f.headers[l1]]}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[Qf]!=null)w[Qf]=w4(s[Qf],h);return w},Tk=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[h0]!=null)w[h0]=A(s[h0]);if(s[P0]!=null)w[P0]=y8(s[P0],h);return w},Uk=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[$0]!=null)w[$0]=ef(s[$0],h);return w},Fk=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)});return await Bf.collectBody(f.body,h),w},Ck=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)});return await Bf.collectBody(f.body,h),w},Ik=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[$0]!=null)w[$0]=ef(s[$0],h);return w},Lk=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[$0]!=null)w[$0]=ef(s[$0],h);return w},Bk=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)});return await Bf.collectBody(f.body,h),w},Ak=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)});return await Bf.collectBody(f.body,h),w},Gk=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)});return await Bf.collectBody(f.body,h),w},Wk=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)});return await Bf.collectBody(f.body,h),w},zk=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)});return await Bf.collectBody(f.body,h),w},Rk=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[$0]!=null)w[$0]=ef(s[$0],h);return w},Sk=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[$0]!=null)w[$0]=ef(s[$0],h);return w},Xk=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[$0]!=null)w[$0]=ef(s[$0],h);return w},Yk=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[$h]!=null)w[$h]=Ef(s[$h]);if(s[Eh]!=null)w[Eh]=R$0(s[Eh],h);return w},Mk=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[$0]!=null)w[$0]=ef(s[$0],h);return w},Qk=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s.CheckerIpRanges==="")w[Pr]=[];else if(s[Pr]!=null&&s[Pr][z1]!=null)w[Pr]=Y$0(A0(s[Pr][z1]),h);return w},Kk=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s.KeySigningKeys==="")w[jr]=[];else if(s[jr]!=null&&s[jr][z1]!=null)w[jr]=a$0(A0(s[jr][z1]),h);if(s[Gf]!=null)w[Gf]=j$0(s[Gf],h);return w},Zk=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[_r]!=null)w[_r]=Ly(s[_r],h);return w},Jk=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[W1]!=null)w[W1]=MT(s[W1],h);return w},Vk=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[g6]!=null)w[g6]=Ef(s[g6]);return w},Pk=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s.HealthCheckObservations==="")w[H1]=[];else if(s[H1]!=null&&s[H1][ST]!=null)w[H1]=By(A0(s[H1][ST]),h);return w},Hk=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s.HealthCheckObservations==="")w[H1]=[];else if(s[H1]!=null&&s[H1][ST]!=null)w[H1]=By(A0(s[H1][ST]),h);return w},Nk=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[Mf]!=null)w[Mf]=h4(s[Mf],h);if(s[Jf]!=null)w[Jf]=QT(s[Jf],h);if(s.VPCs==="")w[D1]=[];else if(s[D1]!=null&&s[D1][P0]!=null)w[D1]=Ry(A0(s[D1][P0]),h);return w},Dk=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[x6]!=null)w[x6]=Ef(s[x6]);return w},qk=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[$h]!=null)w[$h]=Ef(s[$h]);if(s[Eh]!=null)w[Eh]=x$0(s[Eh],h);return w},kk=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[ch]!=null)w[ch]=q8(s[ch],h);return w},yk=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[Mf]!=null)w[Mf]=h4(s[Mf],h);return w},jk=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[$h]!=null)w[$h]=Ef(s[$h]);if(s[Eh]!=null)w[Eh]=rr0(s[Eh],h);return w},Ok=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[Qf]!=null)w[Qf]=w4(s[Qf],h);return w},lk=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[Wf]!=null)w[Wf]=KT(s[Wf],h);return w},vk=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[P8]!=null)w[P8]=M0(s[P8]);return w},bk=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s.CidrBlocks==="")w[Jr]=[];else if(s[Jr]!=null&&s[Jr][z1]!=null)w[Jr]=Q$0(A0(s[Jr][z1]),h);if(s[k0]!=null)w[k0]=A(s[k0]);return w},mk=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s.CidrCollections==="")w[Vr]=[];else if(s[Vr]!=null&&s[Vr][z1]!=null)w[Vr]=P$0(A0(s[Vr][z1]),h);if(s[k0]!=null)w[k0]=A(s[k0]);return w},dk=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s.CidrLocations==="")w[Hr]=[];else if(s[Hr]!=null&&s[Hr][z1]!=null)w[Hr]=o$0(A0(s[Hr][z1]),h);if(s[k0]!=null)w[k0]=A(s[k0]);return w},ik=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s.GeoLocationDetailsList==="")w[qr]=[];else if(s[qr]!=null&&s[qr][_r]!=null)w[qr]=v$0(A0(s[qr][_r]),h);if(s[C0]!=null)w[C0]=e0(s[C0]);if(s[p]!=null)w[p]=M0(s[p]);if(s[t6]!=null)w[t6]=A(s[t6]);if(s[f8]!=null)w[f8]=A(s[f8]);if(s[E8]!=null)w[E8]=A(s[E8]);return w},ck=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s.HealthChecks==="")w[kr]=[];else if(s[kr]!=null&&s[kr][W1]!=null)w[kr]=c$0(A0(s[kr][W1]),h);if(s[C0]!=null)w[C0]=e0(s[C0]);if(s[xf]!=null)w[xf]=A(s[xf]);if(s[p]!=null)w[p]=M0(s[p]);if(s[Th]!=null)w[Th]=A(s[Th]);return w},gk=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s.HostedZones==="")w[N1]=[];else if(s[N1]!=null&&s[N1][Jf]!=null)w[N1]=Ay(A0(s[N1][Jf]),h);if(s[C0]!=null)w[C0]=e0(s[C0]);if(s[xf]!=null)w[xf]=A(s[xf]);if(s[p]!=null)w[p]=M0(s[p]);if(s[Th]!=null)w[Th]=A(s[Th]);return w},xk=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[G1]!=null)w[G1]=A(s[G1]);if(s[h0]!=null)w[h0]=A(s[h0]);if(s.HostedZones==="")w[N1]=[];else if(s[N1]!=null&&s[N1][Jf]!=null)w[N1]=Ay(A0(s[N1][Jf]),h);if(s[C0]!=null)w[C0]=e0(s[C0]);if(s[p]!=null)w[p]=M0(s[p]);if(s[h8]!=null)w[h8]=A(s[h8]);if(s[w8]!=null)w[w8]=A(s[w8]);return w},_k=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s.HostedZoneSummaries==="")w[yr]=[];else if(s[yr]!=null&&s[yr][JD]!=null)w[yr]=n$0(A0(s[yr][JD]),h);if(s[p]!=null)w[p]=M0(s[p]);if(s[k0]!=null)w[k0]=A(s[k0]);return w},nk=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[k0]!=null)w[k0]=A(s[k0]);if(s.QueryLoggingConfigs==="")w[lr]=[];else if(s[lr]!=null&&s[lr][ch]!=null)w[lr]=u$0(A0(s[lr][ch]),h);return w},ek=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[C0]!=null)w[C0]=e0(s[C0]);if(s[p]!=null)w[p]=M0(s[p]);if(s[s8]!=null)w[s8]=A(s[s8]);if(s[$8]!=null)w[$8]=A(s[$8]);if(s[r8]!=null)w[r8]=A(s[r8]);if(s.ResourceRecordSets==="")w[br]=[];else if(s[br]!=null&&s[br][R$]!=null)w[br]=sr0(A0(s[br][R$]),h);return w},ak=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s.DelegationSets==="")w[Nr]=[];else if(s[Nr]!=null&&s[Nr][Mf]!=null)w[Nr]=q$0(A0(s[Nr][Mf]),h);if(s[C0]!=null)w[C0]=e0(s[C0]);if(s[xf]!=null)w[xf]=A(s[xf]);if(s[p]!=null)w[p]=M0(s[p]);if(s[Th]!=null)w[Th]=A(s[Th]);return w},ok=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[or]!=null)w[or]=zy(s[or],h);return w},pk=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s.ResourceTagSets==="")w[mr]=[];else if(s[mr]!=null&&s[mr][or]!=null)w[mr]=$r0(A0(s[mr][or]),h);return w},uk=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[C0]!=null)w[C0]=e0(s[C0]);if(s[p]!=null)w[p]=M0(s[p]);if(s[zT]!=null)w[zT]=A(s[zT]);if(s.TrafficPolicySummaries==="")w[dr]=[];else if(s[dr]!=null&&s[dr][ND]!=null)w[dr]=Cr0(A0(s[dr][ND]),h);return w},tk=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[dh]!=null)w[dh]=A(s[dh]);if(s[C0]!=null)w[C0]=e0(s[C0]);if(s[p]!=null)w[p]=M0(s[p]);if(s[_f]!=null)w[_f]=A(s[_f]);if(s[nf]!=null)w[nf]=A(s[nf]);if(s.TrafficPolicyInstances==="")w[Af]=[];else if(s[Af]!=null&&s[Af][Wf]!=null)w[Af]=k8(A0(s[Af][Wf]),h);return w},fy=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[C0]!=null)w[C0]=e0(s[C0]);if(s[p]!=null)w[p]=M0(s[p]);if(s[_f]!=null)w[_f]=A(s[_f]);if(s[nf]!=null)w[nf]=A(s[nf]);if(s.TrafficPolicyInstances==="")w[Af]=[];else if(s[Af]!=null&&s[Af][Wf]!=null)w[Af]=k8(A0(s[Af][Wf]),h);return w},hy=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[dh]!=null)w[dh]=A(s[dh]);if(s[C0]!=null)w[C0]=e0(s[C0]);if(s[p]!=null)w[p]=M0(s[p]);if(s[_f]!=null)w[_f]=A(s[_f]);if(s[nf]!=null)w[nf]=A(s[nf]);if(s.TrafficPolicyInstances==="")w[Af]=[];else if(s[Af]!=null&&s[Af][Wf]!=null)w[Af]=k8(A0(s[Af][Wf]),h);return w},wy=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[C0]!=null)w[C0]=e0(s[C0]);if(s[p]!=null)w[p]=M0(s[p]);if(s.TrafficPolicies==="")w[ir]=[];else if(s[ir]!=null&&s[ir][Qf]!=null)w[ir]=Fr0(A0(s[ir][Qf]),h);if(s[RT]!=null)w[RT]=A(s[RT]);return w},sy=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[h0]!=null)w[h0]=A(s[h0]);if(s[k0]!=null)w[k0]=A(s[k0]);if(s.VPCs==="")w[D1]=[];else if(s[D1]!=null&&s[D1][P0]!=null)w[D1]=Ry(A0(s[D1][P0]),h);return w},$y=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[T8]!=null)w[T8]=A(s[T8]);if(s[A8]!=null)w[A8]=A(s[A8]);if(s.RecordData==="")w[vr]=[];else if(s[vr]!=null&&s[vr][PD]!=null)w[vr]=t$0(A0(s[vr][PD]),h);if(s[AT]!=null)w[AT]=A(s[AT]);if(s[GT]!=null)w[GT]=A(s[GT]);if(s[G8]!=null)w[G8]=A(s[G8]);return w},ry=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[W1]!=null)w[W1]=MT(s[W1],h);return w},Ey=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[Jf]!=null)w[Jf]=QT(s[Jf],h);return w},Ty=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[Qf]!=null)w[Qf]=w4(s[Qf],h);return w},Uy=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[Wf]!=null)w[Wf]=KT(s[Wf],h);return w},i=async(f,h)=>{let w={...f,body:await _.parseXmlErrorBody(f.body,h)},s=_.loadRestXmlErrorCode(f,w.body);switch(s){case"ConcurrentModification":case"com.amazonaws.route53#ConcurrentModification":throw await mw0(w,h);case"InvalidInput":case"com.amazonaws.route53#InvalidInput":throw await Us0(w,h);case"InvalidKMSArn":case"com.amazonaws.route53#InvalidKMSArn":throw await Is0(w,h);case"InvalidKeySigningKeyStatus":case"com.amazonaws.route53#InvalidKeySigningKeyStatus":throw await Cs0(w,h);case"InvalidSigningStatus":case"com.amazonaws.route53#InvalidSigningStatus":throw await Bs0(w,h);case"NoSuchKeySigningKey":case"com.amazonaws.route53#NoSuchKeySigningKey":throw await Ns0(w,h);case"ConflictingDomainExists":case"com.amazonaws.route53#ConflictingDomainExists":throw await dw0(w,h);case"InvalidVPCId":case"com.amazonaws.route53#InvalidVPCId":throw await Gs0(w,h);case"LimitsExceeded":case"com.amazonaws.route53#LimitsExceeded":throw await Ys0(w,h);case"NoSuchHostedZone":case"com.amazonaws.route53#NoSuchHostedZone":throw await Hs0(w,h);case"NotAuthorizedException":case"com.amazonaws.route53#NotAuthorizedException":throw await ys0(w,h);case"PriorRequestNotComplete":case"com.amazonaws.route53#PriorRequestNotComplete":throw await js0(w,h);case"PublicZoneVPCAssociation":case"com.amazonaws.route53#PublicZoneVPCAssociation":throw await Os0(w,h);case"CidrBlockInUseException":case"com.amazonaws.route53#CidrBlockInUseException":throw await Ow0(w,h);case"CidrCollectionVersionMismatchException":case"com.amazonaws.route53#CidrCollectionVersionMismatchException":throw await bw0(w,h);case"NoSuchCidrCollectionException":case"com.amazonaws.route53#NoSuchCidrCollectionException":throw await Qs0(w,h);case"InvalidChangeBatch":case"com.amazonaws.route53#InvalidChangeBatch":throw await Es0(w,h);case"NoSuchHealthCheck":case"com.amazonaws.route53#NoSuchHealthCheck":throw await Ps0(w,h);case"ThrottlingException":case"com.amazonaws.route53#ThrottlingException":throw await vs0(w,h);case"CidrCollectionAlreadyExistsException":case"com.amazonaws.route53#CidrCollectionAlreadyExistsException":throw await lw0(w,h);case"HealthCheckAlreadyExists":case"com.amazonaws.route53#HealthCheckAlreadyExists":throw await aw0(w,h);case"TooManyHealthChecks":case"com.amazonaws.route53#TooManyHealthChecks":throw await bs0(w,h);case"DelegationSetNotAvailable":case"com.amazonaws.route53#DelegationSetNotAvailable":throw await _w0(w,h);case"DelegationSetNotReusable":case"com.amazonaws.route53#DelegationSetNotReusable":throw await nw0(w,h);case"HostedZoneAlreadyExists":case"com.amazonaws.route53#HostedZoneAlreadyExists":throw await uw0(w,h);case"InvalidDomainName":case"com.amazonaws.route53#InvalidDomainName":throw await Ts0(w,h);case"NoSuchDelegationSet":case"com.amazonaws.route53#NoSuchDelegationSet":throw await Js0(w,h);case"TooManyHostedZones":case"com.amazonaws.route53#TooManyHostedZones":throw await ms0(w,h);case"InvalidArgument":case"com.amazonaws.route53#InvalidArgument":throw await rs0(w,h);case"InvalidKeySigningKeyName":case"com.amazonaws.route53#InvalidKeySigningKeyName":throw await Fs0(w,h);case"KeySigningKeyAlreadyExists":case"com.amazonaws.route53#KeySigningKeyAlreadyExists":throw await Ws0(w,h);case"TooManyKeySigningKeys":case"com.amazonaws.route53#TooManyKeySigningKeys":throw await ds0(w,h);case"InsufficientCloudWatchLogsResourcePolicy":case"com.amazonaws.route53#InsufficientCloudWatchLogsResourcePolicy":throw await $s0(w,h);case"NoSuchCloudWatchLogsLogGroup":case"com.amazonaws.route53#NoSuchCloudWatchLogsLogGroup":throw await Zs0(w,h);case"QueryLoggingConfigAlreadyExists":case"com.amazonaws.route53#QueryLoggingConfigAlreadyExists":throw await ls0(w,h);case"DelegationSetAlreadyCreated":case"com.amazonaws.route53#DelegationSetAlreadyCreated":throw await cw0(w,h);case"DelegationSetAlreadyReusable":case"com.amazonaws.route53#DelegationSetAlreadyReusable":throw await gw0(w,h);case"HostedZoneNotFound":case"com.amazonaws.route53#HostedZoneNotFound":throw await fs0(w,h);case"InvalidTrafficPolicyDocument":case"com.amazonaws.route53#InvalidTrafficPolicyDocument":throw await As0(w,h);case"TooManyTrafficPolicies":case"com.amazonaws.route53#TooManyTrafficPolicies":throw await is0(w,h);case"TrafficPolicyAlreadyExists":case"com.amazonaws.route53#TrafficPolicyAlreadyExists":throw await _s0(w,h);case"NoSuchTrafficPolicy":case"com.amazonaws.route53#NoSuchTrafficPolicy":throw await qs0(w,h);case"TooManyTrafficPolicyInstances":case"com.amazonaws.route53#TooManyTrafficPolicyInstances":throw await cs0(w,h);case"TrafficPolicyInstanceAlreadyExists":case"com.amazonaws.route53#TrafficPolicyInstanceAlreadyExists":throw await ns0(w,h);case"TooManyTrafficPolicyVersionsForCurrentPolicy":case"com.amazonaws.route53#TooManyTrafficPolicyVersionsForCurrentPolicy":throw await gs0(w,h);case"TooManyVPCAssociationAuthorizations":case"com.amazonaws.route53#TooManyVPCAssociationAuthorizations":throw await xs0(w,h);case"KeySigningKeyInParentDSRecord":case"com.amazonaws.route53#KeySigningKeyInParentDSRecord":throw await zs0(w,h);case"KeySigningKeyInUse":case"com.amazonaws.route53#KeySigningKeyInUse":throw await Rs0(w,h);case"CidrCollectionInUseException":case"com.amazonaws.route53#CidrCollectionInUseException":throw await vw0(w,h);case"HealthCheckInUse":case"com.amazonaws.route53#HealthCheckInUse":throw await ow0(w,h);case"HostedZoneNotEmpty":case"com.amazonaws.route53#HostedZoneNotEmpty":throw await tw0(w,h);case"NoSuchQueryLoggingConfig":case"com.amazonaws.route53#NoSuchQueryLoggingConfig":throw await Ds0(w,h);case"DelegationSetInUse":case"com.amazonaws.route53#DelegationSetInUse":throw await xw0(w,h);case"TrafficPolicyInUse":case"com.amazonaws.route53#TrafficPolicyInUse":throw await es0(w,h);case"NoSuchTrafficPolicyInstance":case"com.amazonaws.route53#NoSuchTrafficPolicyInstance":throw await ks0(w,h);case"VPCAssociationAuthorizationNotFound":case"com.amazonaws.route53#VPCAssociationAuthorizationNotFound":throw await as0(w,h);case"DNSSECNotFound":case"com.amazonaws.route53#DNSSECNotFound":throw await ew0(w,h);case"LastVPCAssociation":case"com.amazonaws.route53#LastVPCAssociation":throw await Xs0(w,h);case"VPCAssociationNotFound":case"com.amazonaws.route53#VPCAssociationNotFound":throw await os0(w,h);case"HostedZonePartiallyDelegated":case"com.amazonaws.route53#HostedZonePartiallyDelegated":throw await ws0(w,h);case"KeySigningKeyWithActiveStatusNotFound":case"com.amazonaws.route53#KeySigningKeyWithActiveStatusNotFound":throw await Ss0(w,h);case"NoSuchChange":case"com.amazonaws.route53#NoSuchChange":throw await Ms0(w,h);case"NoSuchGeoLocation":case"com.amazonaws.route53#NoSuchGeoLocation":throw await Vs0(w,h);case"IncompatibleVersion":case"com.amazonaws.route53#IncompatibleVersion":throw await ss0(w,h);case"HostedZoneNotPrivate":case"com.amazonaws.route53#HostedZoneNotPrivate":throw await hs0(w,h);case"NoSuchCidrLocationException":case"com.amazonaws.route53#NoSuchCidrLocationException":throw await Ks0(w,h);case"InvalidPaginationToken":case"com.amazonaws.route53#InvalidPaginationToken":throw await Ls0(w,h);case"HealthCheckVersionMismatch":case"com.amazonaws.route53#HealthCheckVersionMismatch":throw await pw0(w,h);case"ConflictingTypes":case"com.amazonaws.route53#ConflictingTypes":throw await iw0(w,h);default:let $=w.body;return jw0({output:f,parsedBody:$.Error,errorCode:s})}},jw0=Bs(m),Ow0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[v0]!=null)w[v0]=A(s[v0]);let $=new w2({$metadata:Z(f),...w});return l($,f.body.Error)},lw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[v0]!=null)w[v0]=A(s[v0]);let $=new U2({$metadata:Z(f),...w});return l($,f.body.Error)},vw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[v0]!=null)w[v0]=A(s[v0]);let $=new l2({$metadata:Z(f),...w});return l($,f.body.Error)},bw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[v0]!=null)w[v0]=A(s[v0]);let $=new s2({$metadata:Z(f),...w});return l($,f.body.Error)},mw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new c5({$metadata:Z(f),...w});return l($,f.body.Error)},dw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new a5({$metadata:Z(f),...w});return l($,f.body.Error)},iw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new sT({$metadata:Z(f),...w});return l($,f.body.Error)},cw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new K2({$metadata:Z(f),...w});return l($,f.body.Error)},gw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new Z2({$metadata:Z(f),...w});return l($,f.body.Error)},xw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new d2({$metadata:Z(f),...w});return l($,f.body.Error)},_w0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new I2({$metadata:Z(f),...w});return l($,f.body.Error)},nw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new L2({$metadata:Z(f),...w});return l($,f.body.Error)},ew0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new x2({$metadata:Z(f),...w});return l($,f.body.Error)},aw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new F2({$metadata:Z(f),...w});return l($,f.body.Error)},ow0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new v2({$metadata:Z(f),...w});return l($,f.body.Error)},pw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new wT({$metadata:Z(f),...w});return l($,f.body.Error)},uw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new B2({$metadata:Z(f),...w});return l($,f.body.Error)},tw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new b2({$metadata:Z(f),...w});return l($,f.body.Error)},fs0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new J2({$metadata:Z(f),...w});return l($,f.body.Error)},hs0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new t2({$metadata:Z(f),...w});return l($,f.body.Error)},ws0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new e2({$metadata:Z(f),...w});return l($,f.body.Error)},ss0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new u2({$metadata:Z(f),...w});return l($,f.body.Error)},$s0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new Y2({$metadata:Z(f),...w});return l($,f.body.Error)},rs0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new z2({$metadata:Z(f),...w});return l($,f.body.Error)},Es0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);if(s.messages==="")w[gr]=[];else if(s[gr]!=null&&s[gr][v0]!=null)w[gr]=O$0(A0(s[gr][v0]),h);let $=new r2({$metadata:Z(f),...w});return l($,f.body.Error)},Ts0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new A2({$metadata:Z(f),...w});return l($,f.body.Error)},Us0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new g5({$metadata:Z(f),...w});return l($,f.body.Error)},Fs0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new R2({$metadata:Z(f),...w});return l($,f.body.Error)},Cs0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new x5({$metadata:Z(f),...w});return l($,f.body.Error)},Is0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new _5({$metadata:Z(f),...w});return l($,f.body.Error)},Ls0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new hT({$metadata:Z(f),...w});return l($,f.body.Error)},Bs0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new n5({$metadata:Z(f),...w});return l($,f.body.Error)},As0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new V2({$metadata:Z(f),...w});return l($,f.body.Error)},Gs0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new o5({$metadata:Z(f),...w});return l($,f.body.Error)},Ws0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new S2({$metadata:Z(f),...w});return l($,f.body.Error)},zs0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new j2({$metadata:Z(f),...w});return l($,f.body.Error)},Rs0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new O2({$metadata:Z(f),...w});return l($,f.body.Error)},Ss0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new a2({$metadata:Z(f),...w});return l($,f.body.Error)},Xs0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new _2({$metadata:Z(f),...w});return l($,f.body.Error)},Ys0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new p5({$metadata:Z(f),...w});return l($,f.body.Error)},Ms0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new o2({$metadata:Z(f),...w});return l($,f.body.Error)},Qs0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[v0]!=null)w[v0]=A(s[v0]);let $=new $2({$metadata:Z(f),...w});return l($,f.body.Error)},Ks0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[v0]!=null)w[v0]=A(s[v0]);let $=new fT({$metadata:Z(f),...w});return l($,f.body.Error)},Zs0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new M2({$metadata:Z(f),...w});return l($,f.body.Error)},Js0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new G2({$metadata:Z(f),...w});return l($,f.body.Error)},Vs0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new p2({$metadata:Z(f),...w});return l($,f.body.Error)},Ps0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new E2({$metadata:Z(f),...w});return l($,f.body.Error)},Hs0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new u5({$metadata:Z(f),...w});return l($,f.body.Error)},Ns0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new e5({$metadata:Z(f),...w});return l($,f.body.Error)},Ds0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new m2({$metadata:Z(f),...w});return l($,f.body.Error)},qs0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new N2({$metadata:Z(f),...w});return l($,f.body.Error)},ks0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new c2({$metadata:Z(f),...w});return l($,f.body.Error)},ys0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new t5({$metadata:Z(f),...w});return l($,f.body.Error)},js0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new f2({$metadata:Z(f),...w});return l($,f.body.Error)},Os0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new h2({$metadata:Z(f),...w});return l($,f.body.Error)},ls0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new Q2({$metadata:Z(f),...w});return l($,f.body.Error)},vs0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new T2({$metadata:Z(f),...w});return l($,f.body.Error)},bs0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new C2({$metadata:Z(f),...w});return l($,f.body.Error)},ms0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new W2({$metadata:Z(f),...w});return l($,f.body.Error)},ds0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new X2({$metadata:Z(f),...w});return l($,f.body.Error)},is0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new P2({$metadata:Z(f),...w});return l($,f.body.Error)},cs0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new D2({$metadata:Z(f),...w});return l($,f.body.Error)},gs0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new k2({$metadata:Z(f),...w});return l($,f.body.Error)},xs0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new y2({$metadata:Z(f),...w});return l($,f.body.Error)},_s0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new H2({$metadata:Z(f),...w});return l($,f.body.Error)},ns0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new q2({$metadata:Z(f),...w});return l($,f.body.Error)},es0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new i2({$metadata:Z(f),...w});return l($,f.body.Error)},as0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new g2({$metadata:Z(f),...w});return l($,f.body.Error)},os0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[X]!=null)w[X]=A(s[X]);let $=new n2({$metadata:Z(f),...w});return l($,f.body.Error)},Fy=(f,h)=>{let w=new P(q1);if(f[u0]!=null)w.c(P.of(vr0,f[u0]).n(u0));if(f[o]!=null)w.c(P.of(Br0,f[o]).n(o));return w},ps0=(f,h)=>{let w=new P(Yw);if(f[h0]!=null)w.c(P.of(j1,f[h0]).n(h0));if(w.cc(f,G1),f[B$]!=null)w.c(P.of(Lr0,String(f[B$])).n(B$));return w},us0=(f,h)=>{let w=new P(Xy);if(f[C$]!=null)w.c(P.of(zr0,f[C$]).n(C$));if(f[R$]!=null)w.c(B$0(f[R$],h).n(R$));return w},ts0=(f,h)=>{let w=new P(ET);if(f[F0]!=null)w.c(P.of(O8,f[F0]).n(F0));return w.lc(f,"Changes","Changes",()=>f$0(f[Sy],h)),w},f$0=(f,h)=>{return f.filter((w)=>w!=null).map((w)=>{return us0(w,h).n(Xy)})},Cy=(f,h)=>{return f.filter((w)=>w!=null).map((w)=>{return P.of(nr,w).n(D8)})},h$0=(f,h)=>{let w=new P(Rr0);if(f[Uf]!=null)w.c(P.of(Jr0,f[Uf]).n(Uf));if(f[C$]!=null)w.c(P.of(Sr0,f[C$]).n(C$));return w.lc(f,"CidrList","CidrList",()=>s$0(f[Vr0],h)),w},w$0=(f,h)=>{return f.filter((w)=>w!=null).map((w)=>{return h$0(w,h).n(z1)})},s$0=(f,h)=>{return f.filter((w)=>w!=null).map((w)=>{return P.of(KD,w).n(KD)})},$$0=(f,h)=>{let w=new P(Mw);if(f[L$]!=null)w.c(P.of(J40,f[L$]).n(L$));if(f[Uf]!=null)w.c(P.of(Zr0,f[Uf]).n(Uf));return w},r$0=(f,h)=>{let w=new P(Qw);return w.cc(f,IT),w.cc(f,LT),w},E$0=(f,h)=>{let w=new P(Kw);if(f[k1]!=null)w.c(P.of(gr0,f[k1]).n(k1));if(f[y1]!=null)w.c(P.of(xr0,f[y1]).n(y1));if(f[O1]!=null)w.c(P.of(_r0,f[O1]).n(O1));return w},T$0=(f,h)=>{let w=new P(Zw);if(w.cc(f,rT),w.cc(f,CT),f[Qw]!=null)w.c(r$0(f[Qw],h).n(Qw));if(f[zw]!=null)w.c(P.of(zw,String(f[zw])).n(zw));return w},U$0=(f,h)=>{let w=new P(Jw);if(w.cc(f,ih),f[A1]!=null)w.c(P.of(A1,String(f[A1])).n(A1));if(f[Z0]!=null)w.c(P.of(ar0,f[Z0]).n(Z0));if(w.cc(f,ar),w.cc(f,xr),w.cc(f,pr),f[Xw]!=null)w.c(P.of(Xw,String(f[Xw])).n(Xw));if(f[I1]!=null)w.c(P.of(I1,String(f[I1])).n(I1));if(f[Sw]!=null)w.c(P.of(Sw,String(f[Sw])).n(Sw));if(f[B1]!=null)w.c(P.of(B1,String(f[B1])).n(B1));if(f[F1]!=null)w.c(P.of(F1,String(f[F1])).n(F1));if(f[L1]!=null)w.c(P.of(L1,String(f[L1])).n(L1));if(w.lc(f,"ChildHealthChecks","ChildHealthChecks",()=>Cy(f[Gw],h)),f[C1]!=null)w.c(P.of(C1,String(f[C1])).n(C1));if(w.lc(f,"Regions","Regions",()=>Iy(f[Ww],h)),f[q1]!=null)w.c(Fy(f[q1],h).n(q1));return w.cc(f,er),w.cc(f,BT),w},Iy=(f,h)=>{return f.filter((w)=>w!=null).map((w)=>{return P.of(er0,w).n(u0)})},F$0=(f,h)=>{let w=new P(FT);if(f[F0]!=null)w.c(P.of(O8,f[F0]).n(F0));if(f[z$]!=null)w.c(P.of(pr0,String(f[z$])).n(z$));return w},C$0=(f,h)=>{return f.filter((w)=>w!=null).map((w)=>{return P.of(HD,w).n(HD)})},I$0=(f,h)=>{let w=new P(XT);if(f[y0]!=null)w.c(P.of(tr0,f[y0]).n(y0));return w},L$0=(f,h)=>{return f.filter((w)=>w!=null).map((w)=>{return I$0(w,h).n(XT)})},B$0=(f,h)=>{let w=new P(R$);if(f[o]!=null)w.c(P.of(G1,f[o]).n(o));if(f[Z0]!=null)w.c(P.of(U40,f[Z0]).n(Z0));if(f[S$]!=null)w.c(P.of($40,f[S$]).n(S$));if(f[M$]!=null)w.c(P.of(T40,String(f[M$])).n(M$));if(f[u0]!=null)w.c(P.of(E40,f[u0]).n(u0));if(f[Kw]!=null)w.c(E$0(f[Kw],h).n(Kw));if(f[A$]!=null)w.c(P.of(s40,f[A$]).n(A$));if(f[W$]!=null)w.c(P.of(r40,String(f[W$])).n(W$));if(f[p0]!=null)w.c(P.of(p0,String(f[p0])).n(p0));if(w.lc(f,"ResourceRecords","ResourceRecords",()=>L$0(f[F$],h)),f[Yw]!=null)w.c(ps0(f[Yw],h).n(Yw));if(w.cc(f,nr),w.cc(f,WT),f[Mw]!=null)w.c($$0(f[Mw],h).n(Mw));if(f[Zw]!=null)w.c(T$0(f[Zw],h).n(Zw));return w},A$0=(f,h)=>{let w=new P(YT);if(f[Vw]!=null)w.c(P.of(Yy,f[Vw]).n(Vw));if(f[y0]!=null)w.c(P.of(Y40,f[y0]).n(y0));return w},G$0=(f,h)=>{return f.filter((w)=>w!=null).map((w)=>{return P.of(Yy,w).n(Vw)})},W$0=(f,h)=>{return f.filter((w)=>w!=null).map((w)=>{return A$0(w,h).n(YT)})},z$0=(f,h)=>{return f.filter((w)=>w!=null).map((w)=>{return P.of(X40,w).n(j1)})},f4=(f,h)=>{let w=new P(P0);return w.cc(f,tr),w.cc(f,ur),w},R$0=(f,h)=>{let w={};if(f[Z0]!=null)w[Z0]=A(f[Z0]);if(f[y0]!=null)w[y0]=Ef(f[y0]);return w},S$0=(f,h)=>{let w={};if(f[u0]!=null)w[u0]=A(f[u0]);if(f[o]!=null)w[o]=A(f[o]);return w},X$0=(f,h)=>{let w={};if(f[h0]!=null)w[h0]=A(f[h0]);if(f[G1]!=null)w[G1]=A(f[G1]);if(f[B$]!=null)w[B$]=e0(f[B$]);return w},ef=(f,h)=>{let w={};if(f[I0]!=null)w[I0]=A(f[I0]);if(f[Gf]!=null)w[Gf]=A(f[Gf]);if(f[R8]!=null)w[R8]=j(fr(f[R8]));if(f[F0]!=null)w[F0]=A(f[F0]);return w},Y$0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return A(w)})},M$0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return A(w)})},Q$0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return K$0(w,h)})},K$0=(f,h)=>{let w={};if(f[V6]!=null)w[V6]=A(f[V6]);if(f[Uf]!=null)w[Uf]=A(f[Uf]);return w},Z$0=(f,h)=>{let w={};if(f[I$]!=null)w[I$]=A(f[I$]);if(f[I0]!=null)w[I0]=A(f[I0]);if(f[o]!=null)w[o]=A(f[o]);if(f[Uh]!=null)w[Uh]=Ef(f[Uh]);return w},J$0=(f,h)=>{let w={};if(f[L$]!=null)w[L$]=A(f[L$]);if(f[Uf]!=null)w[Uf]=A(f[Uf]);return w},V$0=(f,h)=>{let w={};if(f[i6]!=null)w[i6]=M0(f[i6]);if(f[N8]!=null)w[N8]=cY(f[N8]);if(f[D6]!=null)w[D6]=A(f[D6]);if(f[B8]!=null)w[B8]=M0(f[B8]);if(f[u6]!=null)w[u6]=A(f[u6]);if(f[U8]!=null)w[U8]=A(f[U8]);if(f[Z8]!=null)w[Z8]=A(f[Z8]);if(f.Dimensions==="")w[Dr]=[];else if(f[Dr]!=null&&f[Dr][ZD]!=null)w[Dr]=y$0(A0(f[Dr][ZD]),h);return w},P$0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return H$0(w,h)})},H$0=(f,h)=>{let w={};if(f[I$]!=null)w[I$]=A(f[I$]);if(f[I0]!=null)w[I0]=A(f[I0]);if(f[o]!=null)w[o]=A(f[o]);if(f[Uh]!=null)w[Uh]=Ef(f[Uh]);return w},N$0=(f,h)=>{let w={};if(f[IT]!=null)w[IT]=A(f[IT]);if(f[LT]!=null)w[LT]=A(f[LT]);return w},h4=(f,h)=>{let w={};if(f[I0]!=null)w[I0]=A(f[I0]);if(f[q0]!=null)w[q0]=A(f[q0]);if(f.NameServers==="")w[Or]=[];else if(f[Or]!=null&&f[Or][VD]!=null)w[Or]=D$0(A0(f[Or][VD]),h);return w},D$0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return A(w)})},q$0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return h4(w,h)})},k$0=(f,h)=>{let w={};if(f[o]!=null)w[o]=A(f[o]);if(f[y0]!=null)w[y0]=A(f[y0]);return w},y$0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return k$0(w,h)})},j$0=(f,h)=>{let w={};if(f[K8]!=null)w[K8]=A(f[K8]);if(f[X$]!=null)w[X$]=A(f[X$]);return w},O$0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return A(w)})},l$0=(f,h)=>{let w={};if(f[k1]!=null)w[k1]=A(f[k1]);if(f[y1]!=null)w[y1]=A(f[y1]);if(f[O1]!=null)w[O1]=A(f[O1]);return w},Ly=(f,h)=>{let w={};if(f[k1]!=null)w[k1]=A(f[k1]);if(f[H6]!=null)w[H6]=A(f[H6]);if(f[y1]!=null)w[y1]=A(f[y1]);if(f[N6]!=null)w[N6]=A(f[N6]);if(f[O1]!=null)w[O1]=A(f[O1]);if(f[Y8]!=null)w[Y8]=A(f[Y8]);return w},v$0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return Ly(w,h)})},b$0=(f,h)=>{let w={};if(f[rT]!=null)w[rT]=A(f[rT]);if(f[CT]!=null)w[CT]=A(f[CT]);if(f[Qw]!=null)w[Qw]=N$0(f[Qw],h);if(f[zw]!=null)w[zw]=M0(f[zw]);return w},MT=(f,h)=>{let w={};if(f[I0]!=null)w[I0]=A(f[I0]);if(f[q0]!=null)w[q0]=A(f[q0]);if(f[G$]!=null)w[G$]=Wy(f[G$],h);if(f[Jw]!=null)w[Jw]=m$0(f[Jw],h);if(f[Rw]!=null)w[Rw]=Ef(f[Rw]);if(f[k6]!=null)w[k6]=V$0(f[k6],h);return w},m$0=(f,h)=>{let w={};if(f[ih]!=null)w[ih]=A(f[ih]);if(f[A1]!=null)w[A1]=M0(f[A1]);if(f[Z0]!=null)w[Z0]=A(f[Z0]);if(f[ar]!=null)w[ar]=A(f[ar]);if(f[xr]!=null)w[xr]=A(f[xr]);if(f[pr]!=null)w[pr]=A(f[pr]);if(f[Xw]!=null)w[Xw]=M0(f[Xw]);if(f[I1]!=null)w[I1]=M0(f[I1]);if(f[Sw]!=null)w[Sw]=e0(f[Sw]);if(f[B1]!=null)w[B1]=e0(f[B1]);if(f[F1]!=null)w[F1]=e0(f[F1]);if(f[L1]!=null)w[L1]=M0(f[L1]);if(f.ChildHealthChecks==="")w[Gw]=[];else if(f[Gw]!=null&&f[Gw][D8]!=null)w[Gw]=M$0(A0(f[Gw][D8]),h);if(f[C1]!=null)w[C1]=e0(f[C1]);if(f.Regions==="")w[Ww]=[];else if(f[Ww]!=null&&f[Ww][u0]!=null)w[Ww]=i$0(A0(f[Ww][u0]),h);if(f[q1]!=null)w[q1]=S$0(f[q1],h);if(f[er]!=null)w[er]=A(f[er]);if(f[BT]!=null)w[BT]=A(f[BT]);return w},d$0=(f,h)=>{let w={};if(f[u0]!=null)w[u0]=A(f[u0]);if(f[ih]!=null)w[ih]=A(f[ih]);if(f[Q8]!=null)w[Q8]=Er0(f[Q8],h);return w},By=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return d$0(w,h)})},i$0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return A(w)})},c$0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return MT(w,h)})},QT=(f,h)=>{let w={};if(f[I0]!=null)w[I0]=A(f[I0]);if(f[o]!=null)w[o]=A(f[o]);if(f[q0]!=null)w[q0]=A(f[q0]);if(f[j6]!=null)w[j6]=g$0(f[j6],h);if(f[W8]!=null)w[W8]=Ef(f[W8]);if(f[G$]!=null)w[G$]=Wy(f[G$],h);return w},g$0=(f,h)=>{let w={};if(f[F0]!=null)w[F0]=A(f[F0]);if(f[z$]!=null)w[z$]=e0(f[z$]);return w},x$0=(f,h)=>{let w={};if(f[Z0]!=null)w[Z0]=A(f[Z0]);if(f[y0]!=null)w[y0]=Ef(f[y0]);return w},_$0=(f,h)=>{let w={};if(f[C8]!=null)w[C8]=A(f[C8]);if(f[I8]!=null)w[I8]=A(f[I8]);return w},Ay=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return QT(w,h)})},n$0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return e$0(w,h)})},e$0=(f,h)=>{let w={};if(f[h0]!=null)w[h0]=A(f[h0]);if(f[o]!=null)w[o]=A(f[o]);if(f[F8]!=null)w[F8]=_$0(f[F8],h);return w},Gy=(f,h)=>{let w={};if(f[o]!=null)w[o]=A(f[o]);if(f[_6]!=null)w[_6]=A(f[_6]);if(f[c6]!=null)w[c6]=M0(f[c6]);if(f[S8]!=null)w[S8]=A(f[S8]);if(f[X8]!=null)w[X8]=M0(f[X8]);if(f[O6]!=null)w[O6]=A(f[O6]);if(f[l6]!=null)w[l6]=M0(f[l6]);if(f[a6]!=null)w[a6]=M0(f[a6]);if(f[m6]!=null)w[m6]=A(f[m6]);if(f[L8]!=null)w[L8]=A(f[L8]);if(f[b6]!=null)w[b6]=A(f[b6]);if(f[v6]!=null)w[v6]=A(f[v6]);if(f[Gf]!=null)w[Gf]=A(f[Gf]);if(f[X$]!=null)w[X$]=A(f[X$]);if(f[P6]!=null)w[P6]=j(fr(f[P6]));if(f[o6]!=null)w[o6]=j(fr(f[o6]));return w},a$0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return Gy(w,h)})},Wy=(f,h)=>{let w={};if(f[M8]!=null)w[M8]=A(f[M8]);if(f[d6]!=null)w[d6]=A(f[d6]);return w},o$0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return p$0(w,h)})},p$0=(f,h)=>{let w={};if(f[Uf]!=null)w[Uf]=A(f[Uf]);return w},q8=(f,h)=>{let w={};if(f[I0]!=null)w[I0]=A(f[I0]);if(f[h0]!=null)w[h0]=A(f[h0]);if(f[TT]!=null)w[TT]=A(f[TT]);return w},u$0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return q8(w,h)})},t$0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return A(w)})},fr0=(f,h)=>{let w={};if(f[y0]!=null)w[y0]=A(f[y0]);return w},hr0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return fr0(w,h)})},wr0=(f,h)=>{let w={};if(f[o]!=null)w[o]=A(f[o]);if(f[Z0]!=null)w[Z0]=A(f[Z0]);if(f[S$]!=null)w[S$]=A(f[S$]);if(f[M$]!=null)w[M$]=Ef(f[M$]);if(f[u0]!=null)w[u0]=A(f[u0]);if(f[Kw]!=null)w[Kw]=l$0(f[Kw],h);if(f[A$]!=null)w[A$]=A(f[A$]);if(f[W$]!=null)w[W$]=e0(f[W$]);if(f[p0]!=null)w[p0]=Ef(f[p0]);if(f.ResourceRecords==="")w[F$]=[];else if(f[F$]!=null&&f[F$][XT]!=null)w[F$]=hr0(A0(f[F$][XT]),h);if(f[Yw]!=null)w[Yw]=X$0(f[Yw],h);if(f[nr]!=null)w[nr]=A(f[nr]);if(f[WT]!=null)w[WT]=A(f[WT]);if(f[Mw]!=null)w[Mw]=J$0(f[Mw],h);if(f[Zw]!=null)w[Zw]=b$0(f[Zw],h);return w},sr0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return wr0(w,h)})},zy=(f,h)=>{let w={};if(f[z8]!=null)w[z8]=A(f[z8]);if(f[j1]!=null)w[j1]=A(f[j1]);if(f.Tags==="")w[cr]=[];else if(f[cr]!=null&&f[cr][YT]!=null)w[cr]=Ur0(A0(f[cr][YT]),h);return w},$r0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return zy(w,h)})},rr0=(f,h)=>{let w={};if(f[Z0]!=null)w[Z0]=A(f[Z0]);if(f[y0]!=null)w[y0]=Ef(f[y0]);return w},Er0=(f,h)=>{let w={};if(f[Gf]!=null)w[Gf]=A(f[Gf]);if(f[q6]!=null)w[q6]=j(fr(f[q6]));return w},Tr0=(f,h)=>{let w={};if(f[Vw]!=null)w[Vw]=A(f[Vw]);if(f[y0]!=null)w[y0]=A(f[y0]);return w},Ur0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return Tr0(w,h)})},Fr0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return w4(w,h)})},w4=(f,h)=>{let w={};if(f[I0]!=null)w[I0]=A(f[I0]);if(f[Uh]!=null)w[Uh]=M0(f[Uh]);if(f[o]!=null)w[o]=A(f[o]);if(f[Z0]!=null)w[Z0]=A(f[Z0]);if(f[rh]!=null)w[rh]=A(f[rh]);if(f[F0]!=null)w[F0]=A(f[F0]);return w},KT=(f,h)=>{let w={};if(f[I0]!=null)w[I0]=A(f[I0]);if(f[h0]!=null)w[h0]=A(f[h0]);if(f[o]!=null)w[o]=A(f[o]);if(f[p0]!=null)w[p0]=Ef(f[p0]);if(f[J8]!=null)w[J8]=A(f[J8]);if(f[v0]!=null)w[v0]=A(f[v0]);if(f[Y$]!=null)w[Y$]=A(f[Y$]);if(f[gf]!=null)w[gf]=M0(f[gf]);if(f[H8]!=null)w[H8]=A(f[H8]);return w},k8=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return KT(w,h)})},Cr0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return Ir0(w,h)})},Ir0=(f,h)=>{let w={};if(f[I0]!=null)w[I0]=A(f[I0]);if(f[o]!=null)w[o]=A(f[o]);if(f[Z0]!=null)w[Z0]=A(f[Z0]);if(f[p6]!=null)w[p6]=M0(f[p6]);if(f[V8]!=null)w[V8]=M0(f[V8]);return w},y8=(f,h)=>{let w={};if(f[tr]!=null)w[tr]=A(f[tr]);if(f[ur]!=null)w[ur]=A(f[ur]);return w},Ry=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return y8(w,h)})},Z=(f)=>({httpStatusCode:f.statusCode,requestId:f.headers["x-amzn-requestid"]??f.headers["x-amzn-request-id"]??f.headers["x-amz-request-id"],extendedRequestId:f.headers["x-amz-id-2"],cfId:f.headers["x-amz-cf-id"]});var C$="Action",Lr0="AliasHealthEnabled",q1="AlarmIdentifier",Br0="AlarmName",Ar0="AddTags",Yw="AliasTarget",Gr0="AssociateVPCComment",Wr0="AssociateVPCWithHostedZoneRequest",rT="AWSRegion",I$="Arn",zw="Bias",F0="Comment",zr0="ChangeAction",ET="ChangeBatch",Jr="CidrBlocks",V6="CidrBlock",k1="ContinentCode",Rr0="CidrCollectionChange",Sr0="CidrCollectionChangeAction",Xr0="ChangeCidrCollectionRequest",Yr0="CreateCidrCollectionRequest",Vr="CidrCollections",y1="CountryCode",P6="CreatedDate",Gw="ChildHealthChecks",Mr0="CreateHealthCheckRequest",D8="ChildHealthCheck",Qr0="CreateHostedZoneRequest",$0="ChangeInfo",Pr="CheckerIpRanges",L$="CollectionId",Kr0="CreateKeySigningKeyRequest",Hr="CidrLocations",Zr0="CidrLocationNameDefaultAllowed",Jr0="CidrLocationNameDefaultNotAllowed",Vr0="CidrList",Pr0="CidrNonce",Hr0="CollectionName",H6="ContinentName",N6="CountryName",D6="ComparisonOperator",Nr0="CreateQueryLoggingConfigRequest",q0="CallerReference",Mw="CidrRoutingConfig",Dr0="CreateReusableDelegationSetRequest",qr0="ChangeResourceRecordSetsRequest",q6="CheckedTime",kr0="ChangeTagsForResourceRequest",yr0="CreateTrafficPolicyInstanceRequest",jr0="CreateTrafficPolicyRequest",Or0="CreateTrafficPolicyVersionRequest",$T="CollectionVersion",lr0="CreateVPCAssociationAuthorizationRequest",k6="CloudWatchAlarmConfiguration",TT="CloudWatchLogsLogGroupArn",vr0="CloudWatchRegion",Sy="Changes",Xy="Change",KD="Cidr",y6="Collection",j6="Config",Qw="Coordinates",$h="Count",rh="Document",O6="DigestAlgorithmMnemonic",l6="DigestAlgorithmType",v6="DNSKEYRecord",G1="DNSName",Mf="DelegationSet",UT="DelegationSetId",b6="DSRecord",Nr="DelegationSets",m6="DigestValue",br0="DeleteVPCAssociationAuthorizationRequest",mr0="DisassociateVPCComment",dr0="DisassociateVPCFromHostedZoneRequest",d6="Description",F1="Disabled",Dr="Dimensions",ZD="Dimension",ir0="EDNS0ClientSubnetIP",cr0="EDNS0ClientSubnetMask",i6="EvaluationPeriods",C1="EnableSNI",B$="EvaluateTargetHealth",A$="Failover",xr="FullyQualifiedDomainName",I1="FailureThreshold",c6="Flag",Kw="GeoLocation",gr0="GeoLocationContinentCode",xr0="GeoLocationCountryCode",_r="GeoLocationDetails",qr="GeoLocationDetailsList",_r0="GeoLocationSubdivisionCode",Zw="GeoProximityLocation",W1="HealthCheck",Jw="HealthCheckConfig",g6="HealthCheckCount",nr="HealthCheckId",nr0="HealthCheckNonce",H1="HealthCheckObservations",ST="HealthCheckObservation",er0="HealthCheckRegion",ar0="HealthCheckType",Rw="HealthCheckVersion",kr="HealthChecks",L1="HealthThreshold",Jf="HostedZone",FT="HostedZoneConfig",x6="HostedZoneCount",h0="HostedZoneId",dh="HostedZoneIdMarker",yr="HostedZoneSummaries",JD="HostedZoneSummary",or0="HostedZoneType",N1="HostedZones",B1="Inverted",er="InsufficientDataHealthStatus",ih="IPAddress",pr0="IsPrivateZone",C0="IsTruncated",I0="Id",Vw="Key",_6="KmsArn",n6="KeyManagementServiceArn",e6="KeySigningKey",jr="KeySigningKeys",a6="KeyTag",Fh="Location",o6="LastModifiedDate",Uf="LocationName",G$="LinkedService",ur0="ListTagsForResourcesRequest",p6="LatestVersion",CT="LocalZoneGroup",IT="Latitude",Eh="Limit",LT="Longitude",xf="Marker",p="MaxItems",Sw="MeasureLatency",u6="MetricName",s4="MaxResults",W$="MultiValueAnswer",v0="Message",o="Name",t6="NextContinentCode",f8="NextCountryCode",h8="NextDNSName",w8="NextHostedZoneId",Th="NextMarker",s8="NextRecordIdentifier",$8="NextRecordName",r8="NextRecordType",Or="NameServers",E8="NextSubdivisionCode",VD="NameServer",k0="NextToken",T8="Nameserver",U8="Namespace",j8="Nonce",F8="Owner",C8="OwningAccount",I8="OwningService",A1="Port",L8="PublicKey",z$="PrivateZone",B8="Period",A8="Protocol",ch="QueryLoggingConfig",lr="QueryLoggingConfigs",Ww="Regions",G8="ResponseCode",BT="RoutingControlArn",O8="ResourceDescription",PD="RecordDataEntry",tr0="RData",vr="RecordData",f40="ResetElements",HD="ResettableElementName",j1="ResourceId",h40="ResolverIP",w40="ResourceIds",Xw="RequestInterval",AT="RecordName",ar="ResourcePath",XT="ResourceRecord",br="ResourceRecordSets",W8="ResourceRecordSetCount",s40="ResourceRecordSetFailover",$40="ResourceRecordSetIdentifier",r40="ResourceRecordSetMultiValueAnswer",E40="ResourceRecordSetRegion",T40="ResourceRecordSetWeight",R$="ResourceRecordSet",U40="RRType",F$="ResourceRecords",GT="RecordType",F40="RemoveTagKeys",or="ResourceTagSet",mr="ResourceTagSets",z8="ResourceType",u0="Region",Gf="Status",R8="SubmittedAt",S8="SigningAlgorithmMnemonic",X8="SigningAlgorithmType",O1="SubdivisionCode",C40="StartContinentCode",I40="StartCountryCode",S$="SetIdentifier",L40="SigningKeyName",B40="SigningKeyString",A40="SigningKeyStatus",X$="StatusMessage",Y8="SubdivisionName",M8="ServicePrincipal",Q8="StatusReport",G40="StartRecordIdentifier",W40="StartRecordName",z40="StartRecordType",pr="SearchString",R40="StartSubdivisionCode",K8="ServeSignature",Z8="Statistic",J8="State",Z0="Type",Yy="TagKey",Qf="TrafficPolicy",l8="TrafficPolicyComment",V8="TrafficPolicyCount",My="TrafficPolicyDocument",Y$="TrafficPolicyId",P8="TrafficPolicyInstanceCount",WT="TrafficPolicyInstanceId",zT="TrafficPolicyIdMarker",_f="TrafficPolicyInstanceNameMarker",nf="TrafficPolicyInstanceTypeMarker",Wf="TrafficPolicyInstance",Af="TrafficPolicyInstances",S40="TrafficPolicyName",dr="TrafficPolicySummaries",ND="TrafficPolicySummary",H8="TrafficPolicyType",gf="TrafficPolicyVersion",RT="TrafficPolicyVersionMarker",ir="TrafficPolicies",X40="TagResourceId",p0="TTL",Y40="TagValue",YT="Tag",cr="Tags",N8="Threshold",M40="UpdateHealthCheckRequest",Q40="UpdateHostedZoneCommentRequest",K40="UpdateTrafficPolicyCommentRequest",Z40="UpdateTrafficPolicyInstanceRequest",J40="UUID",y0="Value",P0="VPC",ur="VPCId",tr="VPCRegion",D1="VPCs",Uh="Version",M$="Weight",V40="continentcode",P40="countrycode",H40="delegationsetid",N40="dnsname",D40="edns0clientsubnetip",q40="edns0clientsubnetmask",k40="hostedzonetype",$4="hostedzoneid",y40="identifier",Qy="id",l1="location",r4="maxresults",af="maxitems",v8="marker",z1="member",X="message",gr="messages",Q$="nexttoken",j40="name",O40="recordname",l40="recordtype",v40="resolverip",b40="subdivisioncode",m40="startcontinentcode",d40="startcountrycode",i40="startsubdivisioncode",c40="type",g40="trafficpolicyid",b8="trafficpolicyinstancename",m8="trafficpolicyinstancetype",x40="trafficpolicyversion",_40="vpcid",c0='<?xml version="1.0" encoding="UTF-8"?>',n40="version",e40="vpcregion";class d8 extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","ActivateKeySigningKey",{}).n("Route53Client","ActivateKeySigningKeyCommand").f(void 0,void 0).ser(DD).de(nq).build(){}D();k();J();class i8 extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","AssociateVPCWithHostedZone",{}).n("Route53Client","AssociateVPCWithHostedZoneCommand").f(void 0,void 0).ser(qD).de(eq).build(){}D();k();J();class c8 extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","ChangeCidrCollection",{}).n("Route53Client","ChangeCidrCollectionCommand").f(void 0,void 0).ser(kD).de(aq).build(){}D();k();J();class g8 extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),YD(w),O(w)]}).s("AWSDnsV20130401","ChangeResourceRecordSets",{}).n("Route53Client","ChangeResourceRecordSetsCommand").f(void 0,void 0).ser(yD).de(oq).build(){}D();k();J();class x8 extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ChangeTagsForResource",{}).n("Route53Client","ChangeTagsForResourceCommand").f(void 0,void 0).ser(jD).de(pq).build(){}D();k();J();class _8 extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","CreateCidrCollection",{}).n("Route53Client","CreateCidrCollectionCommand").f(void 0,void 0).ser(OD).de(uq).build(){}D();k();J();class n8 extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","CreateHealthCheck",{}).n("Route53Client","CreateHealthCheckCommand").f(void 0,void 0).ser(lD).de(tq).build(){}D();k();J();class e8 extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","CreateHostedZone",{}).n("Route53Client","CreateHostedZoneCommand").f(void 0,void 0).ser(vD).de(fk).build(){}D();k();J();class a8 extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","CreateKeySigningKey",{}).n("Route53Client","CreateKeySigningKeyCommand").f(void 0,void 0).ser(bD).de(hk).build(){}D();k();J();class o8 extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","CreateQueryLoggingConfig",{}).n("Route53Client","CreateQueryLoggingConfigCommand").f(void 0,void 0).ser(mD).de(wk).build(){}D();k();J();class p8 extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","CreateReusableDelegationSet",{}).n("Route53Client","CreateReusableDelegationSetCommand").f(void 0,void 0).ser(dD).de(sk).build(){}D();k();J();class u8 extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","CreateTrafficPolicy",{}).n("Route53Client","CreateTrafficPolicyCommand").f(void 0,void 0).ser(iD).de($k).build(){}D();k();J();class t8 extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","CreateTrafficPolicyInstance",{}).n("Route53Client","CreateTrafficPolicyInstanceCommand").f(void 0,void 0).ser(cD).de(rk).build(){}D();k();J();class fI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","CreateTrafficPolicyVersion",{}).n("Route53Client","CreateTrafficPolicyVersionCommand").f(void 0,void 0).ser(gD).de(Ek).build(){}D();k();J();class hI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","CreateVPCAssociationAuthorization",{}).n("Route53Client","CreateVPCAssociationAuthorizationCommand").f(void 0,void 0).ser(xD).de(Tk).build(){}D();k();J();class wI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","DeactivateKeySigningKey",{}).n("Route53Client","DeactivateKeySigningKeyCommand").f(void 0,void 0).ser(_D).de(Uk).build(){}D();k();J();class sI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","DeleteCidrCollection",{}).n("Route53Client","DeleteCidrCollectionCommand").f(void 0,void 0).ser(nD).de(Fk).build(){}D();k();J();class $I extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","DeleteHealthCheck",{}).n("Route53Client","DeleteHealthCheckCommand").f(void 0,void 0).ser(eD).de(Ck).build(){}D();k();J();class rI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","DeleteHostedZone",{}).n("Route53Client","DeleteHostedZoneCommand").f(void 0,void 0).ser(aD).de(Ik).build(){}D();k();J();class EI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","DeleteKeySigningKey",{}).n("Route53Client","DeleteKeySigningKeyCommand").f(void 0,void 0).ser(oD).de(Lk).build(){}D();k();J();class TI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","DeleteQueryLoggingConfig",{}).n("Route53Client","DeleteQueryLoggingConfigCommand").f(void 0,void 0).ser(pD).de(Bk).build(){}D();k();J();class UI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","DeleteReusableDelegationSet",{}).n("Route53Client","DeleteReusableDelegationSetCommand").f(void 0,void 0).ser(uD).de(Ak).build(){}D();k();J();class FI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","DeleteTrafficPolicy",{}).n("Route53Client","DeleteTrafficPolicyCommand").f(void 0,void 0).ser(tD).de(Gk).build(){}D();k();J();class CI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","DeleteTrafficPolicyInstance",{}).n("Route53Client","DeleteTrafficPolicyInstanceCommand").f(void 0,void 0).ser(fq).de(Wk).build(){}D();k();J();class II extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","DeleteVPCAssociationAuthorization",{}).n("Route53Client","DeleteVPCAssociationAuthorizationCommand").f(void 0,void 0).ser(hq).de(zk).build(){}D();k();J();class LI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","DisableHostedZoneDNSSEC",{}).n("Route53Client","DisableHostedZoneDNSSECCommand").f(void 0,void 0).ser(wq).de(Rk).build(){}D();k();J();class BI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","DisassociateVPCFromHostedZone",{}).n("Route53Client","DisassociateVPCFromHostedZoneCommand").f(void 0,void 0).ser(sq).de(Sk).build(){}D();k();J();class AI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","EnableHostedZoneDNSSEC",{}).n("Route53Client","EnableHostedZoneDNSSECCommand").f(void 0,void 0).ser($q).de(Xk).build(){}D();k();J();class GI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetAccountLimit",{}).n("Route53Client","GetAccountLimitCommand").f(void 0,void 0).ser(rq).de(Yk).build(){}D();k();J();class WI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","GetChange",{}).n("Route53Client","GetChangeCommand").f(void 0,void 0).ser(Eq).de(Mk).build(){}D();k();J();class zI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetCheckerIpRanges",{}).n("Route53Client","GetCheckerIpRangesCommand").f(void 0,void 0).ser(Tq).de(Qk).build(){}D();k();J();class RI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","GetDNSSEC",{}).n("Route53Client","GetDNSSECCommand").f(void 0,void 0).ser(Uq).de(Kk).build(){}D();k();J();class SI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetGeoLocation",{}).n("Route53Client","GetGeoLocationCommand").f(void 0,void 0).ser(Fq).de(Zk).build(){}D();k();J();class XI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetHealthCheck",{}).n("Route53Client","GetHealthCheckCommand").f(void 0,void 0).ser(Cq).de(Jk).build(){}D();k();J();class YI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetHealthCheckCount",{}).n("Route53Client","GetHealthCheckCountCommand").f(void 0,void 0).ser(Iq).de(Vk).build(){}D();k();J();class MI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetHealthCheckLastFailureReason",{}).n("Route53Client","GetHealthCheckLastFailureReasonCommand").f(void 0,void 0).ser(Lq).de(Pk).build(){}D();k();J();class QI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetHealthCheckStatus",{}).n("Route53Client","GetHealthCheckStatusCommand").f(void 0,void 0).ser(Bq).de(Hk).build(){}D();k();J();class KI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","GetHostedZone",{}).n("Route53Client","GetHostedZoneCommand").f(void 0,void 0).ser(Aq).de(Nk).build(){}D();k();J();class ZI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetHostedZoneCount",{}).n("Route53Client","GetHostedZoneCountCommand").f(void 0,void 0).ser(Gq).de(Dk).build(){}D();k();J();class JI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","GetHostedZoneLimit",{}).n("Route53Client","GetHostedZoneLimitCommand").f(void 0,void 0).ser(Wq).de(qk).build(){}D();k();J();class VI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","GetQueryLoggingConfig",{}).n("Route53Client","GetQueryLoggingConfigCommand").f(void 0,void 0).ser(zq).de(kk).build(){}D();k();J();class PI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","GetReusableDelegationSet",{}).n("Route53Client","GetReusableDelegationSetCommand").f(void 0,void 0).ser(Rq).de(yk).build(){}D();k();J();class HI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","GetReusableDelegationSetLimit",{}).n("Route53Client","GetReusableDelegationSetLimitCommand").f(void 0,void 0).ser(Sq).de(jk).build(){}D();k();J();class NI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","GetTrafficPolicy",{}).n("Route53Client","GetTrafficPolicyCommand").f(void 0,void 0).ser(Xq).de(Ok).build(){}D();k();J();class DI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","GetTrafficPolicyInstance",{}).n("Route53Client","GetTrafficPolicyInstanceCommand").f(void 0,void 0).ser(Yq).de(lk).build(){}D();k();J();class qI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetTrafficPolicyInstanceCount",{}).n("Route53Client","GetTrafficPolicyInstanceCountCommand").f(void 0,void 0).ser(Mq).de(vk).build(){}D();k();J();class kI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListCidrBlocks",{}).n("Route53Client","ListCidrBlocksCommand").f(void 0,void 0).ser(Qq).de(bk).build(){}D();k();J();class yI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListCidrCollections",{}).n("Route53Client","ListCidrCollectionsCommand").f(void 0,void 0).ser(Kq).de(mk).build(){}D();k();J();class jI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListCidrLocations",{}).n("Route53Client","ListCidrLocationsCommand").f(void 0,void 0).ser(Zq).de(dk).build(){}D();k();J();class OI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListGeoLocations",{}).n("Route53Client","ListGeoLocationsCommand").f(void 0,void 0).ser(Jq).de(ik).build(){}D();k();J();class lI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListHealthChecks",{}).n("Route53Client","ListHealthChecksCommand").f(void 0,void 0).ser(Vq).de(ck).build(){}D();k();J();class vI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","ListHostedZonesByName",{}).n("Route53Client","ListHostedZonesByNameCommand").f(void 0,void 0).ser(Hq).de(xk).build(){}D();k();J();class bI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListHostedZonesByVPC",{}).n("Route53Client","ListHostedZonesByVPCCommand").f(void 0,void 0).ser(Nq).de(_k).build(){}D();k();J();class mI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","ListHostedZones",{}).n("Route53Client","ListHostedZonesCommand").f(void 0,void 0).ser(Pq).de(gk).build(){}D();k();J();class dI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","ListQueryLoggingConfigs",{}).n("Route53Client","ListQueryLoggingConfigsCommand").f(void 0,void 0).ser(Dq).de(nk).build(){}D();k();J();class iI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","ListResourceRecordSets",{}).n("Route53Client","ListResourceRecordSetsCommand").f(void 0,void 0).ser(qq).de(ek).build(){}D();k();J();class cI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListReusableDelegationSets",{}).n("Route53Client","ListReusableDelegationSetsCommand").f(void 0,void 0).ser(kq).de(ak).build(){}D();k();J();class gI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListTagsForResource",{}).n("Route53Client","ListTagsForResourceCommand").f(void 0,void 0).ser(yq).de(ok).build(){}D();k();J();class xI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListTagsForResources",{}).n("Route53Client","ListTagsForResourcesCommand").f(void 0,void 0).ser(jq).de(pk).build(){}D();k();J();class _I extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListTrafficPolicies",{}).n("Route53Client","ListTrafficPoliciesCommand").f(void 0,void 0).ser(Oq).de(uk).build(){}D();k();J();class nI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","ListTrafficPolicyInstancesByHostedZone",{}).n("Route53Client","ListTrafficPolicyInstancesByHostedZoneCommand").f(void 0,void 0).ser(vq).de(fy).build(){}D();k();J();class eI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListTrafficPolicyInstancesByPolicy",{}).n("Route53Client","ListTrafficPolicyInstancesByPolicyCommand").f(void 0,void 0).ser(bq).de(hy).build(){}D();k();J();class aI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListTrafficPolicyInstances",{}).n("Route53Client","ListTrafficPolicyInstancesCommand").f(void 0,void 0).ser(lq).de(tk).build(){}D();k();J();class oI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","ListTrafficPolicyVersions",{}).n("Route53Client","ListTrafficPolicyVersionsCommand").f(void 0,void 0).ser(mq).de(wy).build(){}D();k();J();class pI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","ListVPCAssociationAuthorizations",{}).n("Route53Client","ListVPCAssociationAuthorizationsCommand").f(void 0,void 0).ser(dq).de(sy).build(){}D();k();J();class uI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","TestDNSAnswer",{}).n("Route53Client","TestDNSAnswerCommand").f(void 0,void 0).ser(iq).de($y).build(){}D();k();J();class tI extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","UpdateHealthCheck",{}).n("Route53Client","UpdateHealthCheckCommand").f(void 0,void 0).ser(cq).de(ry).build(){}D();k();J();class fL extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","UpdateHostedZoneComment",{}).n("Route53Client","UpdateHostedZoneCommentCommand").f(void 0,void 0).ser(gq).de(Ey).build(){}D();k();J();class hL extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","UpdateTrafficPolicyComment",{}).n("Route53Client","UpdateTrafficPolicyCommentCommand").f(void 0,void 0).ser(xq).de(Ty).build(){}D();k();J();class wL extends W.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","UpdateTrafficPolicyInstance",{}).n("Route53Client","UpdateTrafficPolicyInstanceCommand").f(void 0,void 0).ser(_q).de(Uy).build(){}var a40={ActivateKeySigningKeyCommand:d8,AssociateVPCWithHostedZoneCommand:i8,ChangeCidrCollectionCommand:c8,ChangeResourceRecordSetsCommand:g8,ChangeTagsForResourceCommand:x8,CreateCidrCollectionCommand:_8,CreateHealthCheckCommand:n8,CreateHostedZoneCommand:e8,CreateKeySigningKeyCommand:a8,CreateQueryLoggingConfigCommand:o8,CreateReusableDelegationSetCommand:p8,CreateTrafficPolicyCommand:u8,CreateTrafficPolicyInstanceCommand:t8,CreateTrafficPolicyVersionCommand:fI,CreateVPCAssociationAuthorizationCommand:hI,DeactivateKeySigningKeyCommand:wI,DeleteCidrCollectionCommand:sI,DeleteHealthCheckCommand:$I,DeleteHostedZoneCommand:rI,DeleteKeySigningKeyCommand:EI,DeleteQueryLoggingConfigCommand:TI,DeleteReusableDelegationSetCommand:UI,DeleteTrafficPolicyCommand:FI,DeleteTrafficPolicyInstanceCommand:CI,DeleteVPCAssociationAuthorizationCommand:II,DisableHostedZoneDNSSECCommand:LI,DisassociateVPCFromHostedZoneCommand:BI,EnableHostedZoneDNSSECCommand:AI,GetAccountLimitCommand:GI,GetChangeCommand:WI,GetCheckerIpRangesCommand:zI,GetDNSSECCommand:RI,GetGeoLocationCommand:SI,GetHealthCheckCommand:XI,GetHealthCheckCountCommand:YI,GetHealthCheckLastFailureReasonCommand:MI,GetHealthCheckStatusCommand:QI,GetHostedZoneCommand:KI,GetHostedZoneCountCommand:ZI,GetHostedZoneLimitCommand:JI,GetQueryLoggingConfigCommand:VI,GetReusableDelegationSetCommand:PI,GetReusableDelegationSetLimitCommand:HI,GetTrafficPolicyCommand:NI,GetTrafficPolicyInstanceCommand:DI,GetTrafficPolicyInstanceCountCommand:qI,ListCidrBlocksCommand:kI,ListCidrCollectionsCommand:yI,ListCidrLocationsCommand:jI,ListGeoLocationsCommand:OI,ListHealthChecksCommand:lI,ListHostedZonesCommand:mI,ListHostedZonesByNameCommand:vI,ListHostedZonesByVPCCommand:bI,ListQueryLoggingConfigsCommand:dI,ListResourceRecordSetsCommand:iI,ListReusableDelegationSetsCommand:cI,ListTagsForResourceCommand:gI,ListTagsForResourcesCommand:xI,ListTrafficPoliciesCommand:_I,ListTrafficPolicyInstancesCommand:aI,ListTrafficPolicyInstancesByHostedZoneCommand:nI,ListTrafficPolicyInstancesByPolicyCommand:eI,ListTrafficPolicyVersionsCommand:oI,ListVPCAssociationAuthorizationsCommand:pI,TestDNSAnswerCommand:uI,UpdateHealthCheckCommand:tI,UpdateHostedZoneCommentCommand:fL,UpdateTrafficPolicyCommentCommand:hL,UpdateTrafficPolicyInstanceCommand:wL};class gh extends Z6{}Is(a40,gh);F4();C4();I4();x$();Kh();var K$=u(m0(),1);UE();D();Uw();J();var Ky=u(O0(),1);x1();var Zy=async(f,h,w)=>{return{operation:Mh(h).operation,region:await Lf(f.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};function o40(f){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"route53domains",region:f.region},propertiesExtractor:(h,w)=>({signingProperties:{config:h,context:w}})}}var Jy=(f)=>{let h=[];switch(f.operation){default:h.push(o40(f))}return h},Vy=(f)=>{let h=Ky.resolveAwsSdkSigV4Config(f);return Object.assign(h,{})};var Py=(f)=>{return Object.assign(f,{useDualstackEndpoint:f.useDualstackEndpoint??!1,useFipsEndpoint:f.useFipsEndpoint??!1,defaultSigningName:"route53domains"})},c={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var Hy={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.775.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/core":"3.775.0","@aws-sdk/credential-provider-node":"3.775.0","@aws-sdk/middleware-host-header":"3.775.0","@aws-sdk/middleware-logger":"3.775.0","@aws-sdk/middleware-recursion-detection":"3.775.0","@aws-sdk/middleware-user-agent":"3.775.0","@aws-sdk/region-config-resolver":"3.775.0","@aws-sdk/types":"3.775.0","@aws-sdk/util-endpoints":"3.775.0","@aws-sdk/util-user-agent-browser":"3.775.0","@aws-sdk/util-user-agent-node":"3.775.0","@smithy/config-resolver":"^4.1.0","@smithy/core":"^3.2.0","@smithy/fetch-http-handler":"^5.0.2","@smithy/hash-node":"^4.0.2","@smithy/invalid-dependency":"^4.0.2","@smithy/middleware-content-length":"^4.0.2","@smithy/middleware-endpoint":"^4.1.0","@smithy/middleware-retry":"^4.1.0","@smithy/middleware-serde":"^4.0.3","@smithy/middleware-stack":"^4.0.2","@smithy/node-config-provider":"^4.0.2","@smithy/node-http-handler":"^4.0.4","@smithy/protocol-http":"^5.1.0","@smithy/smithy-client":"^4.2.0","@smithy/types":"^4.2.0","@smithy/url-parser":"^4.0.2","@smithy/util-base64":"^4.0.0","@smithy/util-body-length-browser":"^4.0.0","@smithy/util-body-length-node":"^4.0.0","@smithy/util-defaults-mode-browser":"^4.0.8","@smithy/util-defaults-mode-node":"^4.0.8","@smithy/util-endpoints":"^3.0.2","@smithy/util-middleware":"^4.0.2","@smithy/util-retry":"^4.0.2","@smithy/util-utf8":"^4.0.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node18":"18.2.4","@types/node":"^18.19.69",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~5.2.2"},engines:{node:">=18.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 gy=u(O0(),1);M5();Kh();Q5();Uw();Vh();Tr();K5();w1();var iy=u(O0(),1);J();ws();Z5();cs();j$();g1();var Ny={["required"]:!1,type:"String"},Dy={["required"]:!0,default:!1,type:"Boolean"},qy={["ref"]:"Endpoint"},vy={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},by={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},v1={},ky={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},yy={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsDualStack"]}]},jy=[vy],Oy=[by],ly=[{["ref"]:"Region"}],u40={version:"1.0",parameters:{Region:Ny,UseDualStack:Dy,UseFIPS:Dy,Endpoint:Ny},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[qy]}],rules:[{conditions:jy,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:Oy,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:qy,properties:v1,headers:v1},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:ly}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:ly,assign:"PartitionResult"}],rules:[{conditions:[vy,by],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,ky]},yy],rules:[{endpoint:{url:"https://route53domains-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:v1,headers:v1},type:"endpoint"}],type:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}],type:"tree"},{conditions:jy,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[ky,!0]}],rules:[{endpoint:{url:"https://route53domains-fips.{Region}.{PartitionResult#dnsSuffix}",properties:v1,headers:v1},type:"endpoint"}],type:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",type:"error"}],type:"tree"},{conditions:Oy,rules:[{conditions:[yy],rules:[{endpoint:{url:"https://route53domains.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:v1,headers:v1},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:v1,headers:v1},type:"endpoint"}],type:"tree"}],type:"tree"},{error:"Invalid Configuration: Missing Region",type:"error"}]},my=u40;var t40=new eh({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),dy=(f,h={})=>{return t40.get(f,()=>ah(my,{endpointParams:f,logger:h.logger}))};tf.aws=oh;var cy=(f)=>{return{apiVersion:"2014-05-15",base64Decoder:f?.base64Decoder??xs,base64Encoder:f?.base64Encoder??_s,disableHostPrefix:f?.disableHostPrefix??!1,endpointProvider:f?.endpointProvider??dy,extensions:f?.extensions??[],httpAuthSchemeProvider:f?.httpAuthSchemeProvider??Jy,httpAuthSchemes:f?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(h)=>h.getIdentityProvider("aws.auth#sigv4"),signer:new iy.AwsSdkSigV4Signer}],logger:f?.logger??new e1,serviceId:f?.serviceId??"Route 53 Domains",urlParser:f?.urlParser??jf,utf8Decoder:f?.utf8Decoder??V1,utf8Encoder:f?.utf8Encoder??is}};J();J5();J();var xy=(f)=>{Gs(process.version);let h=ns(f),w=()=>h().then(As),s=cy(f);gy.emitWarningIfUnsupportedVersion(process.version);let $={profile:f?.profile};return{...s,...f,runtime:"node",defaultsMode:h,bodyLengthChecker:f?.bodyLengthChecker??gs,credentialDefaultProvider:f?.credentialDefaultProvider??m5,defaultUserAgentProvider:f?.defaultUserAgentProvider??vs({serviceId:s.serviceId,clientVersion:Hy.version}),maxAttempts:f?.maxAttempts??z0(Ts,f),region:f?.region??z0(Qh,{...pw,...$}),requestHandler:r1.create(f?.requestHandler??w),retryMode:f?.retryMode??z0({...Fs,default:async()=>(await w()).retryMode||Ph},f),sha256:f?.sha256??Lw.bind(null,"sha256"),streamCollector:f?.streamCollector??Ys,useDualstackEndpoint:f?.useDualstackEndpoint??z0(aw,$),useFipsEndpoint:f?.useFipsEndpoint??z0(ow,$),userAgentAppId:f?.userAgentAppId??z0(bs,$)}};V5();Ff();J();var _y=(f)=>{let{httpAuthSchemes:h,httpAuthSchemeProvider:w,credentials:s}=f;return{setHttpAuthScheme($){let r=h.findIndex((E)=>E.schemeId===$.schemeId);if(r===-1)h.push($);else h.splice(r,1,$)},httpAuthSchemes(){return h},setHttpAuthSchemeProvider($){w=$},httpAuthSchemeProvider(){return w},setCredentials($){s=$},credentials(){return s}}},ny=(f)=>{return{httpAuthSchemes:f.httpAuthSchemes(),httpAuthSchemeProvider:f.httpAuthSchemeProvider(),credentials:f.credentials()}};var ey=(f,h)=>{let w=Object.assign(es(f),Ws(f),Pw(f),_y(f));return h.forEach((s)=>s.configure(w)),Object.assign(f,as(w),zs(w),Hw(w),ny(w))};class sL extends Ew{config;constructor(...[f]){let h=xy(f||{});super(h);this.initConfig=h;let w=Py(h),s=mw(w),$=Us(s),r=uw($),E=qw(r),T=ss(E),U=Vy(T),F=ey(U,f?.extensions||[]);this.config=F,this.middlewareStack.use(nw(this.config)),this.middlewareStack.use(Ss(this.config)),this.middlewareStack.use(tw(this.config)),this.middlewareStack.use(kw(this.config)),this.middlewareStack.use(yw(this.config)),this.middlewareStack.use(jw(this.config)),this.middlewareStack.use(K$.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:Zy,identityProviderConfigProvider:async(C)=>new K$.DefaultIdentityProviderConfig({"aws.auth#sigv4":C.credentials})})),this.middlewareStack.use(K$.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}J();D();k();J();J();J();class of extends $1{constructor(f){super(f);Object.setPrototypeOf(this,of.prototype)}}class ZT extends of{name="DomainLimitExceeded";$fault="client";constructor(f){super({name:"DomainLimitExceeded",$fault:"client",...f});Object.setPrototypeOf(this,ZT.prototype)}}class JT extends of{name="InvalidInput";$fault="client";constructor(f){super({name:"InvalidInput",$fault:"client",...f});Object.setPrototypeOf(this,JT.prototype)}}class VT extends of{name="OperationLimitExceeded";$fault="client";constructor(f){super({name:"OperationLimitExceeded",$fault:"client",...f});Object.setPrototypeOf(this,VT.prototype)}}class PT extends of{name="UnsupportedTLD";$fault="client";constructor(f){super({name:"UnsupportedTLD",$fault:"client",...f});Object.setPrototypeOf(this,PT.prototype)}}class HT extends of{name="DnssecLimitExceeded";$fault="client";constructor(f){super({name:"DnssecLimitExceeded",$fault:"client",...f});Object.setPrototypeOf(this,HT.prototype)}}class NT extends of{name="DuplicateRequest";$fault="client";requestId;constructor(f){super({name:"DuplicateRequest",$fault:"client",...f});Object.setPrototypeOf(this,NT.prototype),this.requestId=f.requestId}}class DT extends of{name="TLDRulesViolation";$fault="client";constructor(f){super({name:"TLDRulesViolation",$fault:"client",...f});Object.setPrototypeOf(this,DT.prototype)}}var ay=(f)=>({...f,...f.Password&&{Password:U0}}),oy=(f)=>({...f,...f.AuthCode&&{AuthCode:U0}});var py=(f)=>({...f,...f.AdminContact&&{AdminContact:U0},...f.RegistrantContact&&{RegistrantContact:U0},...f.TechContact&&{TechContact:U0},...f.AbuseContactEmail&&{AbuseContactEmail:U0},...f.AbuseContactPhone&&{AbuseContactPhone:U0},...f.BillingContact&&{BillingContact:U0}}),uy=(f)=>({...f,...f.AdminContact&&{AdminContact:U0},...f.RegistrantContact&&{RegistrantContact:U0},...f.TechContact&&{TechContact:U0},...f.BillingContact&&{BillingContact:U0}}),ty=(f)=>({...f,...f.emailAddress&&{emailAddress:U0}}),fj=(f)=>({...f,...f.AuthCode&&{AuthCode:U0}}),hj=(f)=>({...f,...f.AuthCode&&{AuthCode:U0},...f.AdminContact&&{AdminContact:U0},...f.RegistrantContact&&{RegistrantContact:U0},...f.TechContact&&{TechContact:U0},...f.BillingContact&&{BillingContact:U0}}),wj=(f)=>({...f,...f.Password&&{Password:U0}}),sj=(f)=>({...f,...f.AdminContact&&{AdminContact:U0},...f.RegistrantContact&&{RegistrantContact:U0},...f.TechContact&&{TechContact:U0},...f.BillingContact&&{BillingContact:U0}}),$j=(f)=>({...f,...f.FIAuthKey&&{FIAuthKey:U0}});var s0=u(O0(),1);Ff();J();var rj=async(f,h)=>{let w=T0("AcceptDomainTransferFromAnotherAwsAccount"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Ej=async(f,h)=>{let w=T0("AssociateDelegationSignerToDomain"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Tj=async(f,h)=>{let w=T0("CancelDomainTransferToAnotherAwsAccount"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Uj=async(f,h)=>{let w=T0("CheckDomainAvailability"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Fj=async(f,h)=>{let w=T0("CheckDomainTransferability"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Cj=async(f,h)=>{let w=T0("DeleteDomain"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Ij=async(f,h)=>{let w=T0("DeleteTagsForDomain"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Lj=async(f,h)=>{let w=T0("DisableDomainAutoRenew"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Bj=async(f,h)=>{let w=T0("DisableDomainTransferLock"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Aj=async(f,h)=>{let w=T0("DisassociateDelegationSignerFromDomain"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Gj=async(f,h)=>{let w=T0("EnableDomainAutoRenew"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Wj=async(f,h)=>{let w=T0("EnableDomainTransferLock"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},zj=async(f,h)=>{let w=T0("GetContactReachabilityStatus"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Rj=async(f,h)=>{let w=T0("GetDomainDetail"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Sj=async(f,h)=>{let w=T0("GetDomainSuggestions"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Xj=async(f,h)=>{let w=T0("GetOperationDetail"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Yj=async(f,h)=>{let w=T0("ListDomains"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Mj=async(f,h)=>{let w=T0("ListOperations"),s;return s=JSON.stringify(UE0(f,h)),E0(h,w,"/",void 0,s)},Qj=async(f,h)=>{let w=T0("ListPrices"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Kj=async(f,h)=>{let w=T0("ListTagsForDomain"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Zj=async(f,h)=>{let w=T0("PushDomain"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Jj=async(f,h)=>{let w=T0("RegisterDomain"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Vj=async(f,h)=>{let w=T0("RejectDomainTransferFromAnotherAwsAccount"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Pj=async(f,h)=>{let w=T0("RenewDomain"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Hj=async(f,h)=>{let w=T0("ResendContactReachabilityEmail"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Nj=async(f,h)=>{let w=T0("ResendOperationAuthorization"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Dj=async(f,h)=>{let w=T0("RetrieveDomainAuthCode"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},qj=async(f,h)=>{let w=T0("TransferDomain"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},kj=async(f,h)=>{let w=T0("TransferDomainToAnotherAwsAccount"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},yj=async(f,h)=>{let w=T0("UpdateDomainContact"),s;return s=JSON.stringify(FE0(f,h)),E0(h,w,"/",void 0,s)},jj=async(f,h)=>{let w=T0("UpdateDomainContactPrivacy"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Oj=async(f,h)=>{let w=T0("UpdateDomainNameservers"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},lj=async(f,h)=>{let w=T0("UpdateTagsForDomain"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},vj=async(f,h)=>{let w=T0("ViewBilling"),s;return s=JSON.stringify(CE0(f,h)),E0(h,w,"/",void 0,s)},bj=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},mj=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},dj=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},ij=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},cj=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},gj=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},xj=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},_j=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},nj=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},ej=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},aj=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},oj=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},pj=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},uj=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=zE0(w,h),{$metadata:f0(f),...s}},tj=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},fO=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=RE0(w,h),{$metadata:f0(f),...s}},hO=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=SE0(w,h),{$metadata:f0(f),...s}},wO=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=XE0(w,h),{$metadata:f0(f),...s}},sO=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=YE0(w,h),{$metadata:f0(f),...s}},$O=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},rO=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);return await Bf.collectBody(f.body,h),{$metadata:f0(f)}},EO=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},TO=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},UO=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},FO=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},CO=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);return await Bf.collectBody(f.body,h),{$metadata:f0(f)}},IO=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},LO=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},BO=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},AO=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},GO=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},WO=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},zO=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},RO=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=KE0(w,h),{$metadata:f0(f),...s}},r0=async(f,h)=>{let w={...f,body:await s0.parseJsonErrorBody(f.body,h)},s=s0.loadRestJsonErrorCode(f,w.body);switch(s){case"DomainLimitExceeded":case"com.amazonaws.route53domains#DomainLimitExceeded":throw await hE0(w,h);case"InvalidInput":case"com.amazonaws.route53domains#InvalidInput":throw await sE0(w,h);case"OperationLimitExceeded":case"com.amazonaws.route53domains#OperationLimitExceeded":throw await $E0(w,h);case"UnsupportedTLD":case"com.amazonaws.route53domains#UnsupportedTLD":throw await EE0(w,h);case"DnssecLimitExceeded":case"com.amazonaws.route53domains#DnssecLimitExceeded":throw await fE0(w,h);case"DuplicateRequest":case"com.amazonaws.route53domains#DuplicateRequest":throw await wE0(w,h);case"TLDRulesViolation":case"com.amazonaws.route53domains#TLDRulesViolation":throw await rE0(w,h);default:let $=w.body;return ZE0({output:f,parsedBody:$,errorCode:s})}},fE0=async(f,h)=>{let w=f.body,s=v(w),$=new HT({$metadata:f0(f),...s});return l($,w)},hE0=async(f,h)=>{let w=f.body,s=v(w),$=new ZT({$metadata:f0(f),...s});return l($,w)},wE0=async(f,h)=>{let w=f.body,s=v(w),$=new NT({$metadata:f0(f),...s});return l($,w)},sE0=async(f,h)=>{let w=f.body,s=v(w),$=new JT({$metadata:f0(f),...s});return l($,w)},$E0=async(f,h)=>{let w=f.body,s=v(w),$=new VT({$metadata:f0(f),...s});return l($,w)},rE0=async(f,h)=>{let w=f.body,s=v(w),$=new DT({$metadata:f0(f),...s});return l($,w)},EE0=async(f,h)=>{let w=f.body,s=v(w),$=new PT({$metadata:f0(f),...s});return l($,w)},TE0=(f,h)=>{return N0(f,{Currency:[],MaxPrice:U9})},UE0=(f,h)=>{return N0(f,{Marker:[],MaxItems:[],SortBy:[],SortOrder:[],Status:v,SubmittedSince:(w)=>w.getTime()/1000,Type:v})},FE0=(f,h)=>{return N0(f,{AdminContact:v,BillingContact:v,Consent:(w)=>TE0(w,h),DomainName:[],RegistrantContact:v,TechContact:v})},CE0=(f,h)=>{return N0(f,{End:(w)=>w.getTime()/1000,Marker:[],MaxItems:[],Start:(w)=>w.getTime()/1000})},IE0=(f,h)=>{return N0(f,{BillDate:(w)=>j(Q1(Xf(w))),DomainName:A,InvoiceId:A,Operation:A,Price:dF})},LE0=(f,h)=>{return(f||[]).filter((s)=>s!=null).map((s)=>{return IE0(s,h)})},BE0=(f,h)=>{return N0(f,{ChangeOwnershipPrice:(w)=>E4(w,h),Name:A,RegistrationPrice:(w)=>E4(w,h),RenewalPrice:(w)=>E4(w,h),RestorationPrice:(w)=>E4(w,h),TransferPrice:(w)=>E4(w,h)})},AE0=(f,h)=>{return(f||[]).filter((s)=>s!=null).map((s)=>{return BE0(s,h)})},GE0=(f,h)=>{return N0(f,{AutoRenew:Nh,DomainName:A,Expiry:(w)=>j(Q1(Xf(w))),TransferLock:Nh})},WE0=(f,h)=>{return(f||[]).filter((s)=>s!=null).map((s)=>{return GE0(s,h)})},zE0=(f,h)=>{return N0(f,{AbuseContactEmail:A,AbuseContactPhone:A,AdminContact:v,AdminPrivacy:Nh,AutoRenew:Nh,BillingContact:v,BillingPrivacy:Nh,CreationDate:(w)=>j(Q1(Xf(w))),DnsSec:A,DnssecKeys:v,DomainName:A,ExpirationDate:(w)=>j(Q1(Xf(w))),Nameservers:v,RegistrantContact:v,RegistrantPrivacy:Nh,RegistrarName:A,RegistrarUrl:A,RegistryDomainId:A,Reseller:A,StatusList:v,TechContact:v,TechPrivacy:Nh,UpdatedDate:(w)=>j(Q1(Xf(w))),WhoIsServer:A})},RE0=(f,h)=>{return N0(f,{DomainName:A,LastUpdatedDate:(w)=>j(Q1(Xf(w))),Message:A,OperationId:A,Status:A,StatusFlag:A,SubmittedDate:(w)=>j(Q1(Xf(w))),Type:A})},SE0=(f,h)=>{return N0(f,{Domains:(w)=>WE0(w,h),NextPageMarker:A})},XE0=(f,h)=>{return N0(f,{NextPageMarker:A,Operations:(w)=>QE0(w,h)})},YE0=(f,h)=>{return N0(f,{NextPageMarker:A,Prices:(w)=>AE0(w,h)})},ME0=(f,h)=>{return N0(f,{DomainName:A,LastUpdatedDate:(w)=>j(Q1(Xf(w))),Message:A,OperationId:A,Status:A,StatusFlag:A,SubmittedDate:(w)=>j(Q1(Xf(w))),Type:A})},QE0=(f,h)=>{return(f||[]).filter((s)=>s!=null).map((s)=>{return ME0(s,h)})},E4=(f,h)=>{return N0(f,{Currency:A,Price:dF})},KE0=(f,h)=>{return N0(f,{BillingRecords:(w)=>LE0(w,h),NextPageMarker:A})},f0=(f)=>({httpStatusCode:f.statusCode,requestId:f.headers["x-amzn-requestid"]??f.headers["x-amzn-request-id"]??f.headers["x-amz-request-id"],extendedRequestId:f.headers["x-amz-id-2"],cfId:f.headers["x-amz-cf-id"]});var ZE0=Bs(of),E0=async(f,h,w,s,$)=>{let{hostname:r,protocol:E="https",port:T,path:U}=await f.endpoint(),F={protocol:E,hostname:r,port:T,method:"POST",path:U.endsWith("/")?U.slice(0,-1)+w:U+w,headers:h};if(s!==void 0)F.hostname=s;if($!==void 0)F.body=$;return new n0(F)};function T0(f){return{"content-type":"application/x-amz-json-1.1","x-amz-target":`Route53Domains_v20140515.${f}`}}class $L extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","AcceptDomainTransferFromAnotherAwsAccount",{}).n("Route53DomainsClient","AcceptDomainTransferFromAnotherAwsAccountCommand").f(ay,void 0).ser(rj).de(bj).build(){}D();k();J();class rL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","AssociateDelegationSignerToDomain",{}).n("Route53DomainsClient","AssociateDelegationSignerToDomainCommand").f(void 0,void 0).ser(Ej).de(mj).build(){}D();k();J();class EL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","CancelDomainTransferToAnotherAwsAccount",{}).n("Route53DomainsClient","CancelDomainTransferToAnotherAwsAccountCommand").f(void 0,void 0).ser(Tj).de(dj).build(){}D();k();J();class TL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","CheckDomainAvailability",{}).n("Route53DomainsClient","CheckDomainAvailabilityCommand").f(void 0,void 0).ser(Uj).de(ij).build(){}D();k();J();class UL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","CheckDomainTransferability",{}).n("Route53DomainsClient","CheckDomainTransferabilityCommand").f(oy,void 0).ser(Fj).de(cj).build(){}D();k();J();class FL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","DeleteDomain",{}).n("Route53DomainsClient","DeleteDomainCommand").f(void 0,void 0).ser(Cj).de(gj).build(){}D();k();J();class CL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","DeleteTagsForDomain",{}).n("Route53DomainsClient","DeleteTagsForDomainCommand").f(void 0,void 0).ser(Ij).de(xj).build(){}D();k();J();class IL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","DisableDomainAutoRenew",{}).n("Route53DomainsClient","DisableDomainAutoRenewCommand").f(void 0,void 0).ser(Lj).de(_j).build(){}D();k();J();class LL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","DisableDomainTransferLock",{}).n("Route53DomainsClient","DisableDomainTransferLockCommand").f(void 0,void 0).ser(Bj).de(nj).build(){}D();k();J();class BL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","DisassociateDelegationSignerFromDomain",{}).n("Route53DomainsClient","DisassociateDelegationSignerFromDomainCommand").f(void 0,void 0).ser(Aj).de(ej).build(){}D();k();J();class AL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","EnableDomainAutoRenew",{}).n("Route53DomainsClient","EnableDomainAutoRenewCommand").f(void 0,void 0).ser(Gj).de(aj).build(){}D();k();J();class GL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","EnableDomainTransferLock",{}).n("Route53DomainsClient","EnableDomainTransferLockCommand").f(void 0,void 0).ser(Wj).de(oj).build(){}D();k();J();class WL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","GetContactReachabilityStatus",{}).n("Route53DomainsClient","GetContactReachabilityStatusCommand").f(void 0,void 0).ser(zj).de(pj).build(){}D();k();J();class zL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","GetDomainDetail",{}).n("Route53DomainsClient","GetDomainDetailCommand").f(void 0,py).ser(Rj).de(uj).build(){}D();k();J();class RL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","GetDomainSuggestions",{}).n("Route53DomainsClient","GetDomainSuggestionsCommand").f(void 0,void 0).ser(Sj).de(tj).build(){}D();k();J();class SL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","GetOperationDetail",{}).n("Route53DomainsClient","GetOperationDetailCommand").f(void 0,void 0).ser(Xj).de(fO).build(){}D();k();J();class XL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ListDomains",{}).n("Route53DomainsClient","ListDomainsCommand").f(void 0,void 0).ser(Yj).de(hO).build(){}D();k();J();class YL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ListOperations",{}).n("Route53DomainsClient","ListOperationsCommand").f(void 0,void 0).ser(Mj).de(wO).build(){}D();k();J();class ML extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ListPrices",{}).n("Route53DomainsClient","ListPricesCommand").f(void 0,void 0).ser(Qj).de(sO).build(){}D();k();J();class QL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ListTagsForDomain",{}).n("Route53DomainsClient","ListTagsForDomainCommand").f(void 0,void 0).ser(Kj).de($O).build(){}D();k();J();class KL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","PushDomain",{}).n("Route53DomainsClient","PushDomainCommand").f(void 0,void 0).ser(Zj).de(rO).build(){}D();k();J();class ZL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","RegisterDomain",{}).n("Route53DomainsClient","RegisterDomainCommand").f(uy,void 0).ser(Jj).de(EO).build(){}D();k();J();class JL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","RejectDomainTransferFromAnotherAwsAccount",{}).n("Route53DomainsClient","RejectDomainTransferFromAnotherAwsAccountCommand").f(void 0,void 0).ser(Vj).de(TO).build(){}D();k();J();class VL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","RenewDomain",{}).n("Route53DomainsClient","RenewDomainCommand").f(void 0,void 0).ser(Pj).de(UO).build(){}D();k();J();class PL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ResendContactReachabilityEmail",{}).n("Route53DomainsClient","ResendContactReachabilityEmailCommand").f(void 0,ty).ser(Hj).de(FO).build(){}D();k();J();class HL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ResendOperationAuthorization",{}).n("Route53DomainsClient","ResendOperationAuthorizationCommand").f(void 0,void 0).ser(Nj).de(CO).build(){}D();k();J();class NL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","RetrieveDomainAuthCode",{}).n("Route53DomainsClient","RetrieveDomainAuthCodeCommand").f(void 0,fj).ser(Dj).de(IO).build(){}D();k();J();class DL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","TransferDomain",{}).n("Route53DomainsClient","TransferDomainCommand").f(hj,void 0).ser(qj).de(LO).build(){}D();k();J();class qL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","TransferDomainToAnotherAwsAccount",{}).n("Route53DomainsClient","TransferDomainToAnotherAwsAccountCommand").f(void 0,wj).ser(kj).de(BO).build(){}D();k();J();class kL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","UpdateDomainContact",{}).n("Route53DomainsClient","UpdateDomainContactCommand").f(sj,void 0).ser(yj).de(AO).build(){}D();k();J();class yL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","UpdateDomainContactPrivacy",{}).n("Route53DomainsClient","UpdateDomainContactPrivacyCommand").f(void 0,void 0).ser(jj).de(GO).build(){}D();k();J();class jL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","UpdateDomainNameservers",{}).n("Route53DomainsClient","UpdateDomainNameserversCommand").f($j,void 0).ser(Oj).de(WO).build(){}D();k();J();class OL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","UpdateTagsForDomain",{}).n("Route53DomainsClient","UpdateTagsForDomainCommand").f(void 0,void 0).ser(lj).de(zO).build(){}D();k();J();class lL extends W.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ViewBilling",{}).n("Route53DomainsClient","ViewBillingCommand").f(void 0,void 0).ser(vj).de(RO).build(){}var JE0={AcceptDomainTransferFromAnotherAwsAccountCommand:$L,AssociateDelegationSignerToDomainCommand:rL,CancelDomainTransferToAnotherAwsAccountCommand:EL,CheckDomainAvailabilityCommand:TL,CheckDomainTransferabilityCommand:UL,DeleteDomainCommand:FL,DeleteTagsForDomainCommand:CL,DisableDomainAutoRenewCommand:IL,DisableDomainTransferLockCommand:LL,DisassociateDelegationSignerFromDomainCommand:BL,EnableDomainAutoRenewCommand:AL,EnableDomainTransferLockCommand:GL,GetContactReachabilityStatusCommand:WL,GetDomainDetailCommand:zL,GetDomainSuggestionsCommand:RL,GetOperationDetailCommand:SL,ListDomainsCommand:XL,ListOperationsCommand:YL,ListPricesCommand:ML,ListTagsForDomainCommand:QL,PushDomainCommand:KL,RegisterDomainCommand:ZL,RejectDomainTransferFromAnotherAwsAccountCommand:JL,RenewDomainCommand:VL,ResendContactReachabilityEmailCommand:PL,ResendOperationAuthorizationCommand:HL,RetrieveDomainAuthCodeCommand:NL,TransferDomainCommand:DL,TransferDomainToAnotherAwsAccountCommand:qL,UpdateDomainContactCommand:kL,UpdateDomainContactPrivacyCommand:yL,UpdateDomainNameserversCommand:jL,UpdateTagsForDomainCommand:OL,ViewBillingCommand:lL};class T4 extends sL{}Is(JE0,T4);import{runAction as VE0}from"@stacksjs/actions";import{config as XO}from"@stacksjs/config";import{Action as PE0}from"@stacksjs/enums";import{err as Ch,handleError as b1,ok as Z$}from"@stacksjs/error-handling";import{log as Vf}from"@stacksjs/logging";import{path as HE0}from"@stacksjs/path";import{fs as SO}from"@stacksjs/storage";async function wb0(f){let h=new gh,w=await h.listHostedZonesByName({DNSName:f});if(!w||!w.HostedZones)return Ch(b1(`No hosted zones found for domain: ${f}`));let s=w.HostedZones.find((r)=>r.Name===`${f}.`);if(!s)return Ch(b1(`Hosted Zone not found for domain: ${f}`));let $=await h.listResourceRecordSets({HostedZoneId:s.Id});if(!$||!$.ResourceRecordSets)return Ch(b1(`No DNS records found for domain: ${f}`));for(let r of $.ResourceRecordSets)if(r.Type!=="NS"&&r.Type!=="SOA")await h.changeResourceRecordSets({HostedZoneId:s.Id,ChangeBatch:{Changes:[{Action:"DELETE",ResourceRecordSet:r}]}});return await h.deleteHostedZone({Id:s.Id}),Vf.info(`Deleted Hosted Zone for domain: ${f}`),Z$("success")}async function sb0(f){let h=new gh,w=await h.listHostedZonesByName({DNSName:f});if(!w||!w.HostedZones)return Ch(b1(`No hosted zones found for domain: ${f}`));let s=w.HostedZones.find((r)=>r.Name===`${f}.`);if(!s)return Ch(b1(`Hosted Zone not found for domain: ${f}`));let $=await h.listResourceRecordSets({HostedZoneId:s.Id});if(!$||!$.ResourceRecordSets)return Ch(b1(`No DNS records found for domain: ${f}`));for(let r of $.ResourceRecordSets)if(r.Type!=="NS"&&r.Type!=="SOA")await h.changeResourceRecordSets({HostedZoneId:s.Id,ChangeBatch:{Changes:[{Action:"DELETE",ResourceRecordSet:r}]}});return Vf.info(`Deleted DNS records for domain: ${f}`),Z$("success")}async function $b0(f){let h=new gh,s=(await h.listHostedZonesByName({DNSName:f})).HostedZones?.find((r)=>r.Name===`${f}.`);if(s)return Z$(s);let $=await h.createHostedZone({Name:f,CallerReference:`${Date.now()}`});if(!$.HostedZone)return Ch(b1("Failed to create hosted zone"));return Z$($)}function NE0(f){try{let h=HE0.projectConfigPath("dns.ts"),s=SO.readFileSync(h,"utf-8").replace(/nameservers: \[.*?\]/s,`nameservers: [${f.map(($)=>`'${$}'`).join(", ")}]`);SO.writeFileSync(h,s,"utf-8"),Vf.info("Nameservers have been set.")}catch(h){console.error("Error updating nameservers:",h)}}async function rb0(f){try{let h=new gh,{HostedZones:w}=await h.listHostedZonesByName({DNSName:f});if(!w)return Ch(b1(`No hosted zones found for domain ${f}`));let s=w[0];if(s&&s.Name===`${f}.`)return Z$(s.Id);return Z$(null)}catch(h){return Ch(b1(`Failed to find hosted zone for domain ${f}`,h))}}async function DE0(f){if(Vf.debug("Getting nameservers for domain:",f),!f)return[];try{return(await new T4().getDomainDetail({DomainName:f}))?.Nameservers?.map((s)=>s.Name)||[]}catch(h){b1("Error getting domain detail",h)}}async function qE0(f,h){if(!h)h=XO.app.url;let w=await DE0(h);if(w&&f&&JSON.stringify(w.sort())!==JSON.stringify(f.sort()))return Vf.info("Updating your domain nameservers to match the ones in your hosted zone..."),Vf.debug("Hosted zone nameservers:",f),Vf.debug("Domain nameservers:",w),await new T4().updateDomainNameservers({DomainName:h,Nameservers:f.map(($)=>({Name:$}))}),NE0(f),Vf.info("Nameservers updated."),!0;Vf.success("Your nameservers are up to date.")}async function Eb0(f){if(Vf.debug("Checking if domain has been added to cloud..."),!f)f=XO.app.url;Vf.debug("domainName:",f);let h=new gh,w=await h.listHostedZonesByName({DNSName:f});if(Vf.debug("Existing hosted zones:",w),!w||!w.HostedZones)return!1;let s=w.HostedZones.find(($)=>$.Name===`${f}.`);if(s){Vf.debug("Hosted zone found:",s);let r=(await h.getHostedZone({Id:s.Id})).DelegationSet?.NameServers||[];return await qE0(r,f),!0}return!1}async function Tb0(f){return await VE0(PE0.DomainsAdd,f)}import{Buffer as JO}from"node:buffer";import{Buffer as gL}from"node:buffer";import cE0 from"node:dgram";import gE0 from"node:https";import xE0 from"node:net";import _E0 from"node:tls";import{URL as MO}from"node:url";import{promises as nE0}from"node:fs";import{platform as eE0}from"node:os";var kE0=Object.create,{getPrototypeOf:yE0,defineProperty:YO,getOwnPropertyNames:jE0}=Object,OE0=Object.prototype.hasOwnProperty,lE0=(f,h,w)=>{w=f!=null?kE0(yE0(f)):{};let s=h||!f||!f.__esModule?YO(w,"default",{value:f,enumerable:!0}):w;for(let $ of jE0(f))if(!OE0.call(s,$))YO(s,$,{get:()=>f[$],enumerable:!0});return s},vE0=(f,h)=>()=>(h||f((h={exports:{}}).exports,h),h.exports),bE0=vE0((f,h)=>{var w=process||{},s=w.argv||[],$=w.env||{},r=!(!!$.NO_COLOR||s.includes("--no-color"))&&(!!$.FORCE_COLOR||s.includes("--color")||w.platform==="win32"||(w.stdout||{}).isTTY&&$.TERM!=="dumb"||!!$.CI),E=(F,C,I=F)=>(B)=>{let G=""+B,S=G.indexOf(C,F.length);return~S?F+T(G,C,I,S)+C:F+G+C},T=(F,C,I,B)=>{let G="",S=0;do G+=F.substring(S,B)+I,S=B+C.length,B=F.indexOf(C,S);while(~B);return G+F.substring(S)},U=(F=r)=>{let C=F?E:()=>String;return{isColorSupported:F,reset:C("\x1B[0m","\x1B[0m"),bold:C("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:C("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:C("\x1B[3m","\x1B[23m"),underline:C("\x1B[4m","\x1B[24m"),inverse:C("\x1B[7m","\x1B[27m"),hidden:C("\x1B[8m","\x1B[28m"),strikethrough:C("\x1B[9m","\x1B[29m"),black:C("\x1B[30m","\x1B[39m"),red:C("\x1B[31m","\x1B[39m"),green:C("\x1B[32m","\x1B[39m"),yellow:C("\x1B[33m","\x1B[39m"),blue:C("\x1B[34m","\x1B[39m"),magenta:C("\x1B[35m","\x1B[39m"),cyan:C("\x1B[36m","\x1B[39m"),white:C("\x1B[37m","\x1B[39m"),gray:C("\x1B[90m","\x1B[39m"),bgBlack:C("\x1B[40m","\x1B[49m"),bgRed:C("\x1B[41m","\x1B[49m"),bgGreen:C("\x1B[42m","\x1B[49m"),bgYellow:C("\x1B[43m","\x1B[49m"),bgBlue:C("\x1B[44m","\x1B[49m"),bgMagenta:C("\x1B[45m","\x1B[49m"),bgCyan:C("\x1B[46m","\x1B[49m"),bgWhite:C("\x1B[47m","\x1B[49m"),blackBright:C("\x1B[90m","\x1B[39m"),redBright:C("\x1B[91m","\x1B[39m"),greenBright:C("\x1B[92m","\x1B[39m"),yellowBright:C("\x1B[93m","\x1B[39m"),blueBright:C("\x1B[94m","\x1B[39m"),magentaBright:C("\x1B[95m","\x1B[39m"),cyanBright:C("\x1B[96m","\x1B[39m"),whiteBright:C("\x1B[97m","\x1B[39m"),bgBlackBright:C("\x1B[100m","\x1B[49m"),bgRedBright:C("\x1B[101m","\x1B[49m"),bgGreenBright:C("\x1B[102m","\x1B[49m"),bgYellowBright:C("\x1B[103m","\x1B[49m"),bgBlueBright:C("\x1B[104m","\x1B[49m"),bgMagentaBright:C("\x1B[105m","\x1B[49m"),bgCyanBright:C("\x1B[106m","\x1B[49m"),bgWhiteBright:C("\x1B[107m","\x1B[49m")}};h.exports=U(),h.exports.createColors=U}),xh;((f)=>{f[f.A=1]="A",f[f.NS=2]="NS",f[f.CNAME=5]="CNAME",f[f.SOA=6]="SOA",f[f.PTR=12]="PTR",f[f.MX=15]="MX",f[f.TXT=16]="TXT",f[f.AAAA=28]="AAAA",f[f.SRV=33]="SRV",f[f.NAPTR=35]="NAPTR",f[f.OPT=41]="OPT",f[f.SSHFP=44]="SSHFP",f[f.TLSA=52]="TLSA",f[f.DNSKEY=48]="DNSKEY",f[f.CAA=257]="CAA"})(xh||={});var dL;((f)=>{f[f.IN=1]="IN",f[f.CH=3]="CH",f[f.HS=4]="HS"})(dL||={});var QO;((f)=>{f.Disable="disable",f.Hide="hide",f.Show="show"})(QO||={});var KO;((f)=>{f[f.NoError=0]="NoError",f[f.FormErr=1]="FormErr",f[f.ServFail=2]="ServFail",f[f.NXDomain=3]="NXDomain",f[f.NotImp=4]="NotImp",f[f.Refused=5]="Refused",f[f.YXDomain=6]="YXDomain",f[f.YXRRSet=7]="YXRRSet",f[f.NXRRSet=8]="NXRRSet",f[f.NotAuth=9]="NotAuth",f[f.NotZone=10]="NotZone"})(KO||={});var ZO;((f)=>{f.TruncatedPacket="TRUNCATED_PACKET",f.InvalidLength="INVALID_LENGTH",f.InvalidFormat="INVALID_FORMAT",f.InvalidName="INVALID_NAME",f.InvalidLabel="INVALID_LABEL",f.InvalidPointer="INVALID_POINTER",f.InvalidType="INVALID_TYPE",f.InvalidClass="INVALID_CLASS",f.NetworkError="NETWORK_ERROR"})(ZO||={});function mE0(f){if(!f)return;let h=Array.isArray(f)?f:[f],w={};for(let s of h)if(s==="aa"||s==="authoritative")w.authoritative=!0;else if(s==="ad"||s==="authentic")w.authenticData=!0;else if(s==="cd"||s==="checking-disabled")w.checkingDisabled=!0;else if(s.startsWith("bufsize="))w.udpPayloadSize=Number.parseInt(s.split("=")[1]);return w}function X0(f,h,w){if(w)console.debug(`[dnsx:${f}] ${h}`)}var dE0=12,iE0=63;class U4{response=!1;opcode=0;authoritative=!1;truncated=!1;recursionDesired=!1;recursionAvailable=!1;authenticData=!1;checkingDisabled=!1;responseCode=0;static fromBuffer(f){let h=new U4,w=f.readUInt16BE(0);return h.response=(w&32768)!==0,h.opcode=(w&30720)>>>11,h.authoritative=(w&1024)!==0,h.truncated=(w&512)!==0,h.recursionDesired=(w&256)!==0,h.recursionAvailable=(w&128)!==0,h.authenticData=(w&32)!==0,h.checkingDisabled=(w&16)!==0,h.responseCode=w&15,h}toBuffer(){let f=JO.alloc(2),h=0;if(this.response)h|=32768;if(h|=(this.opcode&15)<<11,this.authoritative)h|=1024;if(this.truncated)h|=512;if(this.recursionDesired)h|=256;if(this.recursionAvailable)h|=128;if(this.authenticData)h|=32;if(this.checkingDisabled)h|=16;return h|=this.responseCode&15,f.writeUInt16BE(h,0),f}}class iL{buffer;offset;nameOffsets;verbose;constructor(f=512,h){this.buffer=JO.alloc(f),this.offset=0,this.nameOffsets=new Map,this.verbose=h}writeHeader(f,h,w){X0("encoder",`Writing DNS header: ${JSON.stringify({id:f,flags:{response:h.response,opcode:h.opcode,recursionDesired:h.recursionDesired},counts:w})}`,this.verbose),this.writeUint16(f);let s=h.toBuffer();this.buffer.set(s,this.offset),this.offset+=2,this.writeUint16(w.qdcount),this.writeUint16(w.ancount),this.writeUint16(w.nscount),this.writeUint16(w.arcount)}writeName(f){X0("encoder",`Writing DNS name: ${f}`,this.verbose);let h=f.split(".");for(let w of h){if(w.length>iE0)throw new Error(`Label too long: ${w}`);this.buffer[this.offset++]=w.length,this.buffer.write(w,this.offset),this.offset+=w.length}this.buffer[this.offset++]=0}writeQuestion(f){this.writeName(f.name),this.writeUint16(f.type),this.writeUint16(f.class)}writeUint16(f){this.buffer.writeUInt16BE(f,this.offset),this.offset+=2}writeUint32(f){this.buffer.writeUInt32BE(f,this.offset),this.offset+=4}getBuffer(){return this.buffer.slice(0,this.offset)}}class cL{buffer;offset;constructor(f){this.buffer=f,this.offset=0}canRead(f){return this.offset+f<=this.buffer.length}readName(){let f=[],h=!1,w=this.offset;for(let s=0;s<5;s++){if(w>=this.buffer.length)throw new Error("Out of bounds access");let $=this.buffer[w];if($===0){if(!h)this.offset=w+1;break}if(($&192)===192){if(!this.canRead(2))throw new Error("Out of bounds access");if(!h)this.offset=w+2,h=!0;w=($&63)<<8|this.buffer[w+1];continue}if(w++,w+$>this.buffer.length)throw new Error("Out of bounds access");let r=this.buffer.slice(w,w+$).toString("ascii");f.push(r),w+=$}return f.join(".")}readHeader(){if(!this.canRead(dE0))throw new Error(`Invalid DNS header size: ${this.buffer.length} bytes`);let f=this.readUint16(),h=U4.fromBuffer(this.buffer.slice(this.offset,this.offset+2));this.offset+=2;let w={qdcount:this.readUint16(),ancount:this.readUint16(),nscount:this.readUint16(),arcount:this.readUint16()};return{id:f,flags:h,counts:w}}readQuestion(){let f=this.readName();if(!this.canRead(4))throw new Error("Out of bounds access");let h=this.readUint16(),w=this.readUint16();return{name:f,type:h,class:w}}readAnswer(){let f=this.readName();if(!this.canRead(10))throw new Error("Out of bounds access");let h=this.readUint16(),w=this.readUint16(),s=this.readUint32(),$=this.readUint16();if(!this.canRead($))throw new Error("Out of bounds access");let r=this.readRData(h,$);return{name:f,type:h,class:w,ttl:s,data:r}}readRData(f,h){let w=this.offset,s;switch(f){case 1:if(h!==4)throw new Error("Invalid IPv4 length");s=this.readIPv4();break;case 28:if(h!==16)throw new Error("Invalid IPv6 length");s=this.readIPv6();break;case 15:if(h<3)throw new Error("Invalid MX record length");s={preference:this.readUint16(),exchange:this.readName()};break;case 16:s=this.readString(h);break;case 5:case 2:case 12:s=this.readName();break;default:s=this.buffer.slice(this.offset,this.offset+h).toString("hex"),this.offset+=h}if(this.offset-w!==h)this.offset=w+h;return s}readUint16(){if(!this.canRead(2))throw new Error("Out of bounds access");let f=this.buffer.readUInt16BE(this.offset);return this.offset+=2,f}readUint32(){if(!this.canRead(4))throw new Error("Out of bounds access");let f=this.buffer.readUInt32BE(this.offset);return this.offset+=4,f}readIPv4(){if(!this.canRead(4))throw new Error("Out of bounds access");let f=[];for(let h=0;h<4;h++)f.push(this.buffer[this.offset++]);return f.join(".")}readIPv6(){if(!this.canRead(16))throw new Error("Out of bounds access");let f=[];for(let h=0;h<8;h++)f.push(this.buffer.readUInt16BE(this.offset).toString(16)),this.offset+=2;return f.join(":")}readString(f){if(!this.canRead(f))throw new Error("Out of bounds access");let h=this.buffer.slice(this.offset,this.offset+f).toString();return this.offset+=f,h}}function VO(f,h={}){let w=new iL(512,h.verbose),s=new U4;s.recursionDesired=!0,s.response=!1;let $=h.txid??h.id??Math.floor(Math.random()*65536);return w.writeHeader($,s,{qdcount:1,ancount:0,nscount:0,arcount:0}),w.writeQuestion({name:f.name,type:typeof f.type==="string"?xh[f.type]:f.type,class:f.class}),w.getBuffer()}function bL(f){let h=new cL(f);if((f.readUInt16BE(2)&32768)===0)throw new Error("Not a DNS response");let{id:w,flags:s,counts:$}=h.readHeader();for(let U=0;U<$.qdcount;U++)h.readQuestion();let r=[];for(let U=0;U<$.ancount;U++)r.push(h.readAnswer());let E=[];for(let U=0;U<$.nscount;U++)E.push(h.readAnswer());let T=[];for(let U=0;U<$.arcount;U++)T.push(h.readAnswer());return{id:w,flags:s,answers:r,authorities:E,additionals:T}}var PO;((f)=>{f.UDP="udp",f.TCP="tcp",f.TLS="tls",f.HTTPS="https"})(PO||={});class kT{static DEFAULT_PORT=53;static TIMEOUT=5000;async query(f,h){return new Promise((w,s)=>{let $=cE0.createSocket("udp4"),r,E,T=kT.DEFAULT_PORT;if(f.includes(":")){let[F,C]=f.split(":");E=F;let I=Number.parseInt(C,10);if(I>0&&I<65536)T=I}else E=f;$.on("error",(F)=>{clearTimeout(r),$.close(),s(F)}),$.on("message",(F)=>{clearTimeout(r),$.close(),w(F)}),r=setTimeout(()=>{$.close(),s(new Error("UDP query timed out"))},kT.TIMEOUT);let U=new Uint8Array(h.buffer,h.byteOffset,h.length);$.send(U,T,E,(F)=>{if(F)clearTimeout(r),$.close(),s(F)})})}}class yT{static DEFAULT_PORT=53;static TIMEOUT=5000;async query(f,h){return new Promise((w,s)=>{let $=new xE0.Socket,r,E=new Uint8Array(0),T=-1;$.on("error",(C)=>{clearTimeout(r),$.destroy(),s(C)}),$.on("data",(C)=>{let I=new Uint8Array(E.length+C.length);if(I.set(E),I.set(new Uint8Array(C.buffer,C.byteOffset,C.length),E.length),E=I,T===-1&&E.length>=2)T=new DataView(E.buffer,E.byteOffset).getUint16(0)+2;if(T!==-1&&E.length>=T)clearTimeout(r),$.destroy(),w(gL.from(E.slice(2,T)))}),r=setTimeout(()=>{$.destroy(),s(new Error("TCP query timed out"))},yT.TIMEOUT);let[U,F=yT.DEFAULT_PORT]=f.split(":");$.connect(Number(F),U,()=>{let C=new Uint8Array(2);new DataView(C.buffer).setUint16(0,h.length);let I=new Uint8Array(h.buffer,h.byteOffset,h.length),B=new Uint8Array(C.length+I.length);B.set(C),B.set(I,C.length),$.write(B,(G)=>{if(G)clearTimeout(r),$.destroy(),s(G)})})})}}class jT{static DEFAULT_PORT=853;static TIMEOUT=5000;async query(f,h){return new Promise((w,s)=>{let $={host:f.split(":")[0],port:Number(f.split(":")[1])||jT.DEFAULT_PORT,servername:f.split(":")[0]},r,E=_E0.connect($,()=>{if(!E.authorized){E.destroy(),s(new Error("TLS authorization failed"));return}let F=new Uint8Array(2);new DataView(F.buffer).setUint16(0,h.length);let C=new Uint8Array(h.buffer,h.byteOffset,h.length),I=new Uint8Array(F.length+C.length);I.set(F),I.set(C,F.length),E.write(I,(B)=>{if(B)clearTimeout(r),E.destroy(),s(B)})}),T=new Uint8Array(0),U=-1;E.on("error",(F)=>{clearTimeout(r),E.destroy(),s(F)}),E.on("data",(F)=>{let C=new Uint8Array(T.length+F.length);if(C.set(T),C.set(new Uint8Array(F.buffer,F.byteOffset,F.length),T.length),T=C,U===-1&&T.length>=2)U=new DataView(T.buffer,T.byteOffset).getUint16(0)+2;if(U!==-1&&T.length>=U)clearTimeout(r),E.destroy(),w(gL.from(T.slice(2,U)))}),r=setTimeout(()=>{E.destroy(),s(new Error("TLS query timed out"))},jT.TIMEOUT)})}}class J${static TIMEOUT=5000;static CONTENT_TYPE="application/dns-message";async query(f,h){return new Promise((w,s)=>{let $;try{$=new MO(f)}catch{$=new MO(`https://${f}/dns-query`)}let r={method:"POST",headers:{"Content-Type":J$.CONTENT_TYPE,"Content-Length":h.length.toString(),Accept:J$.CONTENT_TYPE},timeout:J$.TIMEOUT},E=gE0.request($,r,(T)=>{let U=[];T.on("data",(F)=>{U.push(new Uint8Array(F.buffer,F.byteOffset,F.length))}),T.on("end",()=>{if(T.statusCode!==200){s(new Error(`HTTPS query failed with status ${T.statusCode}`));return}let F=T.headers["content-type"];if(F!==J$.CONTENT_TYPE){s(new Error(`Invalid content type: ${F}`));return}let C=U.reduce((G,S)=>G+S.length,0),I=new Uint8Array(C),B=0;for(let G of U)I.set(G,B),B+=G.length;w(gL.from(I))})});E.on("error",s),E.on("timeout",()=>{E.destroy(),s(new Error("HTTPS query timed out"))}),E.write(new Uint8Array(h.buffer,h.byteOffset,h.length)),E.end()})}}function mL(f){switch(f){case"udp":return new kT;case"tcp":return new yT;case"tls":return new jT;case"https":return new J$}}class Pf{options;static DEFAULT_NAMESERVER="1.1.1.1";static RESOLV_CONF_PATH="/etc/resolv.conf";static WINDOWS_DNS_KEY="SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters\\Nameserver";validateDomainName(f){if(f.includes(".."))throw new Error(`Invalid domain name: ${f} (consecutive dots)`);if(f.startsWith(".")||f.endsWith("."))throw new Error(`Invalid domain name: ${f} (starts or ends with dot)`);if(f.length>253)throw new Error(`Domain name too long: ${f}`);let h=f.split(".");for(let w of h){if(w.length>63)throw new Error(`Label too long in domain: ${f}`);if(!/^[a-z0-9-]+$/i.test(w))throw new Error(`Invalid characters in domain label: ${w}`)}}validateRecordType(f){if(typeof f==="string"){if(!(f.toUpperCase()in xh))throw new Error(`Invalid record type: ${f}`)}else if(typeof f==="number"){if(!Object.values(xh).filter((h)=>typeof h==="number").includes(f))throw new Error(`Invalid record type number: ${f}`)}else throw new TypeError("Record type must be string or number")}constructor(f){this.options={transport:{type:"udp"},verbose:!1,...f},this.validateOptions()}async query(){try{let f=this.determineTransportType();X0("client",`Selected transport type: ${f}`,this.options.verbose);let h=mL(f);if(!h)throw new Error(`Failed to create transport for type: ${f}`);let w=[],s=await this.resolveNameserver();if(X0("client",`Resolved nameserver: ${s}`,this.options.verbose),!s)throw new Error("Failed to resolve nameserver");let $=this.buildQueries();X0("client",`Built ${$.length} queries`,this.options.verbose);for(let r of $){X0("client",`Processing query: ${JSON.stringify({query:r,nameserver:s,transportType:f})}`,this.options.verbose);let E=VO(r,{txid:this.options.txid,edns:this.options.edns,tweaks:this.options.tweaks,verbose:this.options.verbose});X0("client",`Built DNS request: ${JSON.stringify({hexData:E.toString("hex"),length:E.length,txid:E.readUInt16BE(0),flags:E.readUInt16BE(2).toString(16)})}`,this.options.verbose);let T=this.options.retries||3;for(let U=0;U<T;U++)try{X0("client",`Attempt ${U+1}/${T}`,this.options.verbose);let F=await h.query(s,E);if(X0("client",`Received DNS response: ${JSON.stringify({hexData:F.toString("hex"),length:F.length,txid:F.readUInt16BE(0),flags:F.readUInt16BE(2).toString(16)})}`,this.options.verbose),F.length<12)throw new Error(`Response too short: ${F.length} bytes`);if(!(F.readUInt16BE(2)&32768))throw new Error("Response flag not set in DNS message");let C=bL(F);if(X0("client",`Parsed DNS response: ${JSON.stringify({id:C.id,answerCount:C.answers.length,authorityCount:C.authorities.length,additionalCount:C.additionals.length})}`,this.options.verbose),f==="udp"&&C.flags.truncated){X0("client","Response truncated, retrying with TCP",this.options.verbose);let I=await mL("tcp").query(s,E);w.push(bL(I))}else w.push(C);break}catch(F){if(X0("client",`Attempt ${U+1} failed: ${F.message}`,this.options.verbose),U===T-1)throw X0("client","All retry attempts failed",this.options.verbose),F;let C=2**U*1000;X0("client",`Waiting ${C}ms before retry`,this.options.verbose),await new Promise((I)=>setTimeout(I,C))}}if(w.length===0)throw new Error("No responses received");return w}catch(f){let h=f instanceof Error?f.message:"Unknown error occurred";throw X0("client",`Query failed with error: ${h}`,this.options.verbose),X0("client",`Full error: ${JSON.stringify(f)}`,this.options.verbose),new Error(`DNS query failed: ${h}`)}}buildQueries(){let f=[];if(!this.options.domains?.length)throw new Error("No domains specified");let h=Array.isArray(this.options.domains)?this.options.domains:[this.options.domains],w=this.resolveTypes(),s=this.resolveClasses();for(let $ of h)for(let r of w)for(let E of s)f.push({name:$,type:r,class:E});return X0("client",`Built queries: ${JSON.stringify(f)}`,this.options.verbose),f}resolveTypes(){if(!this.options.type)return[1];return(Array.isArray(this.options.type)?this.options.type:[this.options.type]).map((f)=>{if(this.validateRecordType(f),typeof f==="number")return f;let h=f.toUpperCase();return xh[h]})}resolveClasses(){if(!this.options.class)return[1];return(Array.isArray(this.options.class)?this.options.class:[this.options.class]).map((f)=>{if(typeof f==="number")return f;let h=f.toUpperCase(),w=dL[h];if(w===void 0)throw new Error(`Invalid query class: ${f}`);return w})}validateNameserver(f){if(f.startsWith("https://"))return!0;if(f.includes("%"))return!1;if(/^(?:\d{1,3}\.){3}\d{1,3}$/.test(f))return f.split(".").every((h)=>{let w=Number.parseInt(h,10);return w>=0&&w<=255});if(f.includes(":"))return!1;return!1}async resolveNameserver(){try{if(this.options.nameserver){if(X0("client",`Checking configured nameserver: ${this.options.nameserver}`,this.options.verbose),this.validateNameserver(this.options.nameserver))return this.options.nameserver}let f=eE0();X0("client",`Resolving nameserver for platform: ${f}`,this.options.verbose);let h;if(f==="win32")h=await this.resolveWindowsNameserver();else h=await this.resolveUnixNameserver();if(this.validateNameserver(h))return h;return X0("client",`Using default nameserver: ${Pf.DEFAULT_NAMESERVER}`,this.options.verbose),Pf.DEFAULT_NAMESERVER}catch(f){return X0("client",`Failed to resolve nameserver: ${f.message}`,this.options.verbose),X0("client",`Using default nameserver: ${Pf.DEFAULT_NAMESERVER}`,this.options.verbose),Pf.DEFAULT_NAMESERVER}}async resolveUnixNameserver(){try{let f=(await nE0.readFile(Pf.RESOLV_CONF_PATH,"utf-8")).split(`
|
|
60
|
-
`),h=[];for(let s of f){let $=s.trim();if($.startsWith("nameserver")){let[,r]=$.split(/\s+/);if(r&&!r.includes("%"))h.push(r)}}let w=h.find((s)=>!s.includes(":"));if(w)return
|
|
61
|
-
Authority Records:`);for(let $ of s.authorities)w.push(
|
|
62
|
-
Additional Records:`);for(let $ of s.additionals)w.push(
|
|
63
|
-
Query time: ${
|
|
64
|
-
`)}function
|
|
59
|
+
`),xH=!0}throw new a("AWS_PROFILE is set, skipping fromEnv provider.",{logger:f.logger,tryNextLink:!0})}return f.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"),cF(f)()},async()=>{f.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");let{ssoStartUrl:h,ssoAccountId:w,ssoRegion:s,ssoRoleName:$,ssoSession:r}=f;if(!h&&!w&&!s&&!$&&!r)throw new a("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:f.logger});let{fromSSO:E}=await Promise.resolve().then(() => (J8(),Z8));return E(f)()},async()=>{f.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");let{fromIni:h}=await Promise.resolve().then(() => (gH(),cH));return h(f)()},async()=>{f.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");let{fromProcess:h}=await Promise.resolve().then(() => (W6(),G6));return h(f)()},async()=>{f.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");let{fromTokenFile:h}=await Promise.resolve().then(() => (Y6(),S6));return h(f)()},async()=>{return f.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"),(await F9(f))()},async()=>{throw new a("Could not load credentials from any providers",{tryNextLink:!1,logger:f.logger})}),Sh0,Xh0),Xh0=(f)=>f?.expiration!==void 0,Sh0=(f)=>f?.expiration!==void 0&&f.expiration.getTime()-Date.now()<300000;XE();Qh();SE();Ew();Jh();hr();YE();wf();var TN=o(O0(),1);J();uw();ME();bs();N$();cf();var _H={["required"]:!1,type:"String"},nH={["required"]:!0,default:!1,type:"Boolean"},eH={["ref"]:"Endpoint"},vE={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},$N={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},$1={},aH={["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"name"]},"aws"]},s$={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"name"]},Lw={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!1]},wh={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!1]},pH={["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"us-east-1"}]},oH={["fn"]:"stringEquals",["argv"]:[s$,"aws-us-gov"]},uH={url:"https://route53.us-gov.amazonaws.com",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"us-gov-west-1"}]},headers:{}},tH={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},fN={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsDualStack"]}]},hN=[vE],wN=[$N],sN=[{["ref"]:"Region"}],Yh0={version:"1.0",parameters:{Region:_H,UseDualStack:nH,UseFIPS:nH,Endpoint:_H},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[eH]}],rules:[{conditions:hN,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:wN,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:eH,properties:$1,headers:$1},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:sN}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:sN,assign:"PartitionResult"}],rules:[{conditions:[aH,Lw,wh],endpoint:{url:"https://route53.amazonaws.com",properties:pH,headers:$1},type:"endpoint"},{conditions:[aH,vE,wh],endpoint:{url:"https://route53-fips.amazonaws.com",properties:pH,headers:$1},type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[s$,"aws-cn"]},Lw,wh],endpoint:{url:"https://route53.amazonaws.com.cn",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"cn-northwest-1"}]},headers:$1},type:"endpoint"},{conditions:[oH,Lw,wh],endpoint:uH,type:"endpoint"},{conditions:[oH,vE,wh],endpoint:uH,type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[s$,"aws-iso"]},Lw,wh],endpoint:{url:"https://route53.c2s.ic.gov",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"us-iso-east-1"}]},headers:$1},type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[s$,"aws-iso-b"]},Lw,wh],endpoint:{url:"https://route53.sc2s.sgov.gov",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"us-isob-east-1"}]},headers:$1},type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[s$,"aws-iso-e"]},Lw,wh],endpoint:{url:"https://route53.cloud.adc-e.uk",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"eu-isoe-west-1"}]},headers:$1},type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[s$,"aws-iso-f"]},Lw,wh],endpoint:{url:"https://route53.csp.hci.ic.gov",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"us-isof-south-1"}]},headers:$1},type:"endpoint"},{conditions:[vE,$N],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,tH]},fN],rules:[{endpoint:{url:"https://route53-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:$1,headers:$1},type:"endpoint"}],type:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}],type:"tree"},{conditions:hN,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[tH,!0]}],rules:[{endpoint:{url:"https://route53-fips.{Region}.{PartitionResult#dnsSuffix}",properties:$1,headers:$1},type:"endpoint"}],type:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",type:"error"}],type:"tree"},{conditions:wN,rules:[{conditions:[fN],rules:[{endpoint:{url:"https://route53.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:$1,headers:$1},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:$1,headers:$1},type:"endpoint"}],type:"tree"}],type:"tree"},{error:"Invalid Configuration: Missing Region",type:"error"}]},rN=Yh0;var Mh0=new _h({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),EN=(f,h={})=>{return Mh0.get(f,()=>nh(rN,{endpointParams:f,logger:h.logger}))};t1.aws=eh;var UN=(f)=>{return{apiVersion:"2013-04-01",base64Decoder:f?.base64Decoder??ds,base64Encoder:f?.base64Encoder??is,disableHostPrefix:f?.disableHostPrefix??!1,endpointProvider:f?.endpointProvider??EN,extensions:f?.extensions??[],httpAuthSchemeProvider:f?.httpAuthSchemeProvider??FY,httpAuthSchemes:f?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(h)=>h.getIdentityProvider("aws.auth#sigv4"),signer:new TN.AwsSdkSigV4Signer}],logger:f?.logger??new nf,serviceId:f?.serviceId??"Route 53",urlParser:f?.urlParser??O1,utf8Decoder:f?.utf8Decoder??Vf,utf8Encoder:f?.utf8Encoder??vs}};J();QE();J();var CN=(f)=>{Is(process.version);let h=cs(f),w=()=>h().then(Cs),s=UN(f);FN.emitWarningIfUnsupportedVersion(process.version);let $={profile:f?.profile};return{...s,...f,runtime:"node",defaultsMode:h,bodyLengthChecker:f?.bodyLengthChecker??ms,credentialDefaultProvider:f?.credentialDefaultProvider??lE,defaultUserAgentProvider:f?.defaultUserAgentProvider??ys({serviceId:s.serviceId,clientVersion:LY.version}),maxAttempts:f?.maxAttempts??z0(ss,f),region:f?.region??z0(Mh,{...nw,...$}),requestHandler:rf.create(f?.requestHandler??w),retryMode:f?.retryMode??z0({...rs,default:async()=>(await w()).retryMode||Vh},f),sha256:f?.sha256??Cw.bind(null,"sha256"),streamCollector:f?.streamCollector??zs,useDualstackEndpoint:f?.useDualstackEndpoint??z0(xw,$),useFipsEndpoint:f?.useFipsEndpoint??z0(_w,$),userAgentAppId:f?.userAgentAppId??z0(js,$)}};KE();C1();J();var IN=(f)=>{let{httpAuthSchemes:h,httpAuthSchemeProvider:w,credentials:s}=f;return{setHttpAuthScheme($){let r=h.findIndex((E)=>E.schemeId===$.schemeId);if(r===-1)h.push($);else h.splice(r,1,$)},httpAuthSchemes(){return h},setHttpAuthSchemeProvider($){w=$},httpAuthSchemeProvider(){return w},setCredentials($){s=$},credentials(){return s}}},LN=(f)=>{return{httpAuthSchemes:f.httpAuthSchemes(),httpAuthSchemeProvider:f.httpAuthSchemeProvider(),credentials:f.credentials()}};var BN=(f,h)=>{let w=Object.assign(gs(f),Ls(f),Jw(f),IN(f));return h.forEach((s)=>s.configure(w)),Object.assign(f,xs(w),Bs(w),Vw(w),LN(w))};class M6 extends $w{config;constructor(...[f]){let h=CN(f||{});super(h);this.initConfig=h;let w=IY(h),s=Ow(w),$=$s(s),r=ew($),E=Pw(r),T=tw(E),U=CY(T),F=BN(U,f?.extensions||[]);this.config=F,this.middlewareStack.use(cw(this.config)),this.middlewareStack.use(Ws(this.config)),this.middlewareStack.use(aw(this.config)),this.middlewareStack.use(Hw(this.config)),this.middlewareStack.use(Nw(this.config)),this.middlewareStack.use(Dw(this.config)),this.middlewareStack.use($$.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:UY,identityProviderConfigProvider:async(C)=>new $$.DefaultIdentityProviderConfig({"aws.auth#sigv4":C.credentials})})),this.middlewareStack.use($$.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}J();var bE=/^\/(hostedzone|change|delegationset)\//;function Qh0(){return(f)=>async(h)=>{let{ChangeBatch:w}=h.input,s=[];for(let $ of w.Changes){let{AliasTarget:r}=$.ResourceRecordSet;if(r)s.push({...$,ResourceRecordSet:{...$.ResourceRecordSet,AliasTarget:{...r,HostedZoneId:r.HostedZoneId.replace(bE,"")}}});else s.push($)}return f({...h,input:{...h.input,ChangeBatch:{...w,Changes:s}}})}}var Kh0={step:"initialize",tags:["ROUTE53_IDS","CHANGE_RESOURCE_RECORD_SETS"],name:"changeResourceRecordSetsMiddleware",override:!0},GN=(f)=>({applyToStack:(h)=>{h.add(Qh0(),Kh0)}});var Zh0=["DelegationSetId","HostedZoneId","Id"];function Jh0(){return(f)=>async(h)=>{let w={...h.input};for(let s of Zh0){let $=w[s];if($)w[s]=$.replace(bE,"")}return f({...h,input:w})}}var Vh0={step:"initialize",tags:["ROUTE53_IDS"],name:"idNormalizerMiddleware",override:!0},O=(f)=>({applyToStack:(h)=>{h.add(Jh0(),Vh0)}});D();k();J();var _=o(O0(),1);function WN(f){return f.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}function AN(f){return f.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
").replace(/\n/g,"
").replace(/\u0085/g,"…").replace(/\u2028/,"
")}class Q6{value;constructor(f){this.value=f}toString(){return AN(""+this.value)}}class P{name;children;attributes={};static of(f,h,w){let s=new P(f);if(h!==void 0)s.addChildNode(new Q6(h));if(w!==void 0)s.withName(w);return s}constructor(f,h=[]){this.name=f,this.children=h}withName(f){return this.name=f,this}addAttribute(f,h){return this.attributes[f]=h,this}addChildNode(f){return this.children.push(f),this}removeAttribute(f){return delete this.attributes[f],this}n(f){return this.name=f,this}c(f){return this.children.push(f),this}a(f,h){if(h!=null)this.attributes[f]=h;return this}cc(f,h,w=h){if(f[h]!=null){let s=P.of(h,f[h]).withName(w);this.c(s)}}l(f,h,w,s){if(f[h]!=null)s().map((r)=>{r.withName(w),this.c(r)})}lc(f,h,w,s){if(f[h]!=null){let $=s(),r=new P(w);$.map((E)=>{r.c(E)}),this.c(r)}}toString(){let f=Boolean(this.children.length),h=`<${this.name}`,w=this.attributes;for(let s of Object.keys(w)){let $=w[s];if($!=null)h+=` ${s}="${WN(""+$)}"`}return h+=!f?"/>":`>${this.children.map((s)=>s.toString()).join("")}</${this.name}>`}}var d=o(m0(),1);J();J();class m extends $f{constructor(f){super(f);Object.setPrototypeOf(this,m.prototype)}}class mE extends m{name="ConcurrentModification";$fault="client";constructor(f){super({name:"ConcurrentModification",$fault:"client",...f});Object.setPrototypeOf(this,mE.prototype)}}class dE extends m{name="InvalidInput";$fault="client";constructor(f){super({name:"InvalidInput",$fault:"client",...f});Object.setPrototypeOf(this,dE.prototype)}}class iE extends m{name="InvalidKeySigningKeyStatus";$fault="client";constructor(f){super({name:"InvalidKeySigningKeyStatus",$fault:"client",...f});Object.setPrototypeOf(this,iE.prototype)}}class cE extends m{name="InvalidKMSArn";$fault="client";constructor(f){super({name:"InvalidKMSArn",$fault:"client",...f});Object.setPrototypeOf(this,cE.prototype)}}class gE extends m{name="InvalidSigningStatus";$fault="client";constructor(f){super({name:"InvalidSigningStatus",$fault:"client",...f});Object.setPrototypeOf(this,gE.prototype)}}class xE extends m{name="NoSuchKeySigningKey";$fault="client";constructor(f){super({name:"NoSuchKeySigningKey",$fault:"client",...f});Object.setPrototypeOf(this,xE.prototype)}}class _E extends m{name="ConflictingDomainExists";$fault="client";constructor(f){super({name:"ConflictingDomainExists",$fault:"client",...f});Object.setPrototypeOf(this,_E.prototype)}}class nE extends m{name="InvalidVPCId";$fault="client";constructor(f){super({name:"InvalidVPCId",$fault:"client",...f});Object.setPrototypeOf(this,nE.prototype)}}class eE extends m{name="LimitsExceeded";$fault="client";constructor(f){super({name:"LimitsExceeded",$fault:"client",...f});Object.setPrototypeOf(this,eE.prototype)}}class aE extends m{name="NoSuchHostedZone";$fault="client";constructor(f){super({name:"NoSuchHostedZone",$fault:"client",...f});Object.setPrototypeOf(this,aE.prototype)}}class pE extends m{name="NotAuthorizedException";$fault="client";constructor(f){super({name:"NotAuthorizedException",$fault:"client",...f});Object.setPrototypeOf(this,pE.prototype)}}class oE extends m{name="PriorRequestNotComplete";$fault="client";constructor(f){super({name:"PriorRequestNotComplete",$fault:"client",...f});Object.setPrototypeOf(this,oE.prototype)}}class uE extends m{name="PublicZoneVPCAssociation";$fault="client";constructor(f){super({name:"PublicZoneVPCAssociation",$fault:"client",...f});Object.setPrototypeOf(this,uE.prototype)}}class tE extends m{name="CidrBlockInUseException";$fault="client";Message;constructor(f){super({name:"CidrBlockInUseException",$fault:"client",...f});Object.setPrototypeOf(this,tE.prototype),this.Message=f.Message}}class f2 extends m{name="CidrCollectionVersionMismatchException";$fault="client";Message;constructor(f){super({name:"CidrCollectionVersionMismatchException",$fault:"client",...f});Object.setPrototypeOf(this,f2.prototype),this.Message=f.Message}}class h2 extends m{name="NoSuchCidrCollectionException";$fault="client";Message;constructor(f){super({name:"NoSuchCidrCollectionException",$fault:"client",...f});Object.setPrototypeOf(this,h2.prototype),this.Message=f.Message}}class w2 extends m{name="InvalidChangeBatch";$fault="client";messages;constructor(f){super({name:"InvalidChangeBatch",$fault:"client",...f});Object.setPrototypeOf(this,w2.prototype),this.messages=f.messages}}class s2 extends m{name="NoSuchHealthCheck";$fault="client";constructor(f){super({name:"NoSuchHealthCheck",$fault:"client",...f});Object.setPrototypeOf(this,s2.prototype)}}class $2 extends m{name="ThrottlingException";$fault="client";constructor(f){super({name:"ThrottlingException",$fault:"client",...f});Object.setPrototypeOf(this,$2.prototype)}}class r2 extends m{name="CidrCollectionAlreadyExistsException";$fault="client";Message;constructor(f){super({name:"CidrCollectionAlreadyExistsException",$fault:"client",...f});Object.setPrototypeOf(this,r2.prototype),this.Message=f.Message}}class E2 extends m{name="HealthCheckAlreadyExists";$fault="client";constructor(f){super({name:"HealthCheckAlreadyExists",$fault:"client",...f});Object.setPrototypeOf(this,E2.prototype)}}class T2 extends m{name="TooManyHealthChecks";$fault="client";constructor(f){super({name:"TooManyHealthChecks",$fault:"client",...f});Object.setPrototypeOf(this,T2.prototype)}}class U2 extends m{name="DelegationSetNotAvailable";$fault="client";constructor(f){super({name:"DelegationSetNotAvailable",$fault:"client",...f});Object.setPrototypeOf(this,U2.prototype)}}class F2 extends m{name="DelegationSetNotReusable";$fault="client";constructor(f){super({name:"DelegationSetNotReusable",$fault:"client",...f});Object.setPrototypeOf(this,F2.prototype)}}class C2 extends m{name="HostedZoneAlreadyExists";$fault="client";constructor(f){super({name:"HostedZoneAlreadyExists",$fault:"client",...f});Object.setPrototypeOf(this,C2.prototype)}}class I2 extends m{name="InvalidDomainName";$fault="client";constructor(f){super({name:"InvalidDomainName",$fault:"client",...f});Object.setPrototypeOf(this,I2.prototype)}}class L2 extends m{name="NoSuchDelegationSet";$fault="client";constructor(f){super({name:"NoSuchDelegationSet",$fault:"client",...f});Object.setPrototypeOf(this,L2.prototype)}}class B2 extends m{name="TooManyHostedZones";$fault="client";constructor(f){super({name:"TooManyHostedZones",$fault:"client",...f});Object.setPrototypeOf(this,B2.prototype)}}class G2 extends m{name="InvalidArgument";$fault="client";constructor(f){super({name:"InvalidArgument",$fault:"client",...f});Object.setPrototypeOf(this,G2.prototype)}}class W2 extends m{name="InvalidKeySigningKeyName";$fault="client";constructor(f){super({name:"InvalidKeySigningKeyName",$fault:"client",...f});Object.setPrototypeOf(this,W2.prototype)}}class A2 extends m{name="KeySigningKeyAlreadyExists";$fault="client";constructor(f){super({name:"KeySigningKeyAlreadyExists",$fault:"client",...f});Object.setPrototypeOf(this,A2.prototype)}}class z2 extends m{name="TooManyKeySigningKeys";$fault="client";constructor(f){super({name:"TooManyKeySigningKeys",$fault:"client",...f});Object.setPrototypeOf(this,z2.prototype)}}class R2 extends m{name="InsufficientCloudWatchLogsResourcePolicy";$fault="client";constructor(f){super({name:"InsufficientCloudWatchLogsResourcePolicy",$fault:"client",...f});Object.setPrototypeOf(this,R2.prototype)}}class X2 extends m{name="NoSuchCloudWatchLogsLogGroup";$fault="client";constructor(f){super({name:"NoSuchCloudWatchLogsLogGroup",$fault:"client",...f});Object.setPrototypeOf(this,X2.prototype)}}class S2 extends m{name="QueryLoggingConfigAlreadyExists";$fault="client";constructor(f){super({name:"QueryLoggingConfigAlreadyExists",$fault:"client",...f});Object.setPrototypeOf(this,S2.prototype)}}class Y2 extends m{name="DelegationSetAlreadyCreated";$fault="client";constructor(f){super({name:"DelegationSetAlreadyCreated",$fault:"client",...f});Object.setPrototypeOf(this,Y2.prototype)}}class M2 extends m{name="DelegationSetAlreadyReusable";$fault="client";constructor(f){super({name:"DelegationSetAlreadyReusable",$fault:"client",...f});Object.setPrototypeOf(this,M2.prototype)}}class Q2 extends m{name="HostedZoneNotFound";$fault="client";constructor(f){super({name:"HostedZoneNotFound",$fault:"client",...f});Object.setPrototypeOf(this,Q2.prototype)}}class K2 extends m{name="InvalidTrafficPolicyDocument";$fault="client";constructor(f){super({name:"InvalidTrafficPolicyDocument",$fault:"client",...f});Object.setPrototypeOf(this,K2.prototype)}}class Z2 extends m{name="TooManyTrafficPolicies";$fault="client";constructor(f){super({name:"TooManyTrafficPolicies",$fault:"client",...f});Object.setPrototypeOf(this,Z2.prototype)}}class J2 extends m{name="TrafficPolicyAlreadyExists";$fault="client";constructor(f){super({name:"TrafficPolicyAlreadyExists",$fault:"client",...f});Object.setPrototypeOf(this,J2.prototype)}}class V2 extends m{name="NoSuchTrafficPolicy";$fault="client";constructor(f){super({name:"NoSuchTrafficPolicy",$fault:"client",...f});Object.setPrototypeOf(this,V2.prototype)}}class P2 extends m{name="TooManyTrafficPolicyInstances";$fault="client";constructor(f){super({name:"TooManyTrafficPolicyInstances",$fault:"client",...f});Object.setPrototypeOf(this,P2.prototype)}}class H2 extends m{name="TrafficPolicyInstanceAlreadyExists";$fault="client";constructor(f){super({name:"TrafficPolicyInstanceAlreadyExists",$fault:"client",...f});Object.setPrototypeOf(this,H2.prototype)}}class N2 extends m{name="TooManyTrafficPolicyVersionsForCurrentPolicy";$fault="client";constructor(f){super({name:"TooManyTrafficPolicyVersionsForCurrentPolicy",$fault:"client",...f});Object.setPrototypeOf(this,N2.prototype)}}class D2 extends m{name="TooManyVPCAssociationAuthorizations";$fault="client";constructor(f){super({name:"TooManyVPCAssociationAuthorizations",$fault:"client",...f});Object.setPrototypeOf(this,D2.prototype)}}class q2 extends m{name="KeySigningKeyInParentDSRecord";$fault="client";constructor(f){super({name:"KeySigningKeyInParentDSRecord",$fault:"client",...f});Object.setPrototypeOf(this,q2.prototype)}}class k2 extends m{name="KeySigningKeyInUse";$fault="client";constructor(f){super({name:"KeySigningKeyInUse",$fault:"client",...f});Object.setPrototypeOf(this,k2.prototype)}}class y2 extends m{name="CidrCollectionInUseException";$fault="client";Message;constructor(f){super({name:"CidrCollectionInUseException",$fault:"client",...f});Object.setPrototypeOf(this,y2.prototype),this.Message=f.Message}}class j2 extends m{name="HealthCheckInUse";$fault="client";constructor(f){super({name:"HealthCheckInUse",$fault:"client",...f});Object.setPrototypeOf(this,j2.prototype)}}class O2 extends m{name="HostedZoneNotEmpty";$fault="client";constructor(f){super({name:"HostedZoneNotEmpty",$fault:"client",...f});Object.setPrototypeOf(this,O2.prototype)}}class l2 extends m{name="NoSuchQueryLoggingConfig";$fault="client";constructor(f){super({name:"NoSuchQueryLoggingConfig",$fault:"client",...f});Object.setPrototypeOf(this,l2.prototype)}}class v2 extends m{name="DelegationSetInUse";$fault="client";constructor(f){super({name:"DelegationSetInUse",$fault:"client",...f});Object.setPrototypeOf(this,v2.prototype)}}class b2 extends m{name="TrafficPolicyInUse";$fault="client";constructor(f){super({name:"TrafficPolicyInUse",$fault:"client",...f});Object.setPrototypeOf(this,b2.prototype)}}class m2 extends m{name="NoSuchTrafficPolicyInstance";$fault="client";constructor(f){super({name:"NoSuchTrafficPolicyInstance",$fault:"client",...f});Object.setPrototypeOf(this,m2.prototype)}}class d2 extends m{name="VPCAssociationAuthorizationNotFound";$fault="client";constructor(f){super({name:"VPCAssociationAuthorizationNotFound",$fault:"client",...f});Object.setPrototypeOf(this,d2.prototype)}}class i2 extends m{name="DNSSECNotFound";$fault="client";constructor(f){super({name:"DNSSECNotFound",$fault:"client",...f});Object.setPrototypeOf(this,i2.prototype)}}class c2 extends m{name="LastVPCAssociation";$fault="client";constructor(f){super({name:"LastVPCAssociation",$fault:"client",...f});Object.setPrototypeOf(this,c2.prototype)}}class g2 extends m{name="VPCAssociationNotFound";$fault="client";constructor(f){super({name:"VPCAssociationNotFound",$fault:"client",...f});Object.setPrototypeOf(this,g2.prototype)}}class x2 extends m{name="HostedZonePartiallyDelegated";$fault="client";constructor(f){super({name:"HostedZonePartiallyDelegated",$fault:"client",...f});Object.setPrototypeOf(this,x2.prototype)}}class _2 extends m{name="KeySigningKeyWithActiveStatusNotFound";$fault="client";constructor(f){super({name:"KeySigningKeyWithActiveStatusNotFound",$fault:"client",...f});Object.setPrototypeOf(this,_2.prototype)}}class n2 extends m{name="NoSuchChange";$fault="client";constructor(f){super({name:"NoSuchChange",$fault:"client",...f});Object.setPrototypeOf(this,n2.prototype)}}class e2 extends m{name="NoSuchGeoLocation";$fault="client";constructor(f){super({name:"NoSuchGeoLocation",$fault:"client",...f});Object.setPrototypeOf(this,e2.prototype)}}class a2 extends m{name="IncompatibleVersion";$fault="client";constructor(f){super({name:"IncompatibleVersion",$fault:"client",...f});Object.setPrototypeOf(this,a2.prototype)}}class p2 extends m{name="HostedZoneNotPrivate";$fault="client";constructor(f){super({name:"HostedZoneNotPrivate",$fault:"client",...f});Object.setPrototypeOf(this,p2.prototype)}}class o2 extends m{name="NoSuchCidrLocationException";$fault="client";Message;constructor(f){super({name:"NoSuchCidrLocationException",$fault:"client",...f});Object.setPrototypeOf(this,o2.prototype),this.Message=f.Message}}class u2 extends m{name="InvalidPaginationToken";$fault="client";constructor(f){super({name:"InvalidPaginationToken",$fault:"client",...f});Object.setPrototypeOf(this,u2.prototype)}}class t2 extends m{name="HealthCheckVersionMismatch";$fault="client";constructor(f){super({name:"HealthCheckVersionMismatch",$fault:"client",...f});Object.setPrototypeOf(this,t2.prototype)}}class fT extends m{name="ConflictingTypes";$fault="client";constructor(f){super({name:"ConflictingTypes",$fault:"client",...f});Object.setPrototypeOf(this,fT.prototype)}}var KN=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/keysigningkey/{HostedZoneId}/{Name}/activate"),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1),w.p("Name",()=>f.Name,"{Name}",!1);let $;return w.m("POST").h(s).b($),w.build()},ZN=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/hostedzone/{HostedZoneId}/associatevpc"),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1);let $;$=c0;let r=new P(F$0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[F0]!=null)r.c(P.of(U$0,f[F0]).n(F0));if(f[P0]!=null)r.c(er(f[P0],h).n(P0));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},JN=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/cidrcollection/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;$=c0;let r=new P(B$0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r.lc(f,"Changes","Changes",()=>aw0(f[Lk],h)),f[hT]!=null)r.c(P.of(hT,String(f[hT])).n(hT));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},VN=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/hostedzone/{HostedZoneId}/rrset"),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1);let $;$=c0;let r=new P(Z$0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[sT]!=null)r.c(_w0(f[sT],h).n(sT));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},PN=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/tags/{ResourceType}/{ResourceId}"),w.p("ResourceType",()=>f.ResourceType,"{ResourceType}",!1),w.p("ResourceId",()=>f.ResourceId,"{ResourceId}",!1);let $;$=c0;let r=new P(J$0);return r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r.lc(f,"AddTags","AddTags",()=>Fs0(f[T$0],h)),r.lc(f,"RemoveTagKeys","RemoveTagKeys",()=>Us0(f[wr0],h)),$+=r.toString(),w.m("POST").h(s).b($),w.build()},HN=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/cidrcollection");let $;$=c0;let r=new P(G$0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[q0]!=null)r.c(P.of(Y$0,f[q0]).n(q0));if(f[p]!=null)r.c(P.of(M$0,f[p]).n(p));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},NN=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/healthcheck");let $;$=c0;let r=new P(W$0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[q0]!=null)r.c(P.of(m$0,f[q0]).n(q0));if(f[Kw]!=null)r.c(hs0(f[Kw],h).n(Kw));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},DN=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/hostedzone");let $;$=c0;let r=new P(A$0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[q0]!=null)r.c(P.of(qC,f[q0]).n(q0));if(f[rT]!=null)r.c(P.of(jf,f[rT]).n(rT));if(f[ET]!=null)r.c(ws0(f[ET],h).n(ET));if(f[p]!=null)r.c(P.of(Wf,f[p]).n(p));if(f[P0]!=null)r.c(er(f[P0],h).n(P0));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},qN=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/keysigningkey");let $;$=c0;let r=new P(z$0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[q0]!=null)r.c(P.of(qC,f[q0]).n(q0));if(f[h0]!=null)r.c(P.of(jf,f[h0]).n(h0));if(f[g6]!=null)r.c(P.of(Er0,f[g6]).n(g6));if(f[p]!=null)r.c(P.of(rr0,f[p]).n(p));if(f[A1]!=null)r.c(P.of(Tr0,f[A1]).n(A1));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},kN=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/queryloggingconfig");let $;$=c0;let r=new P(Q$0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r.cc(f,$T),f[h0]!=null)r.c(P.of(jf,f[h0]).n(h0));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},yN=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/delegationset");let $;$=c0;let r=new P(K$0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[q0]!=null)r.c(P.of(qC,f[q0]).n(q0));if(f[h0]!=null)r.c(P.of(jf,f[h0]).n(h0));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},jN=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/trafficpolicy");let $;$=c0;let r=new P(P$0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[F0]!=null)r.c(P.of(yC,f[F0]).n(F0));if(f[$h]!=null)r.c(P.of(Wk,f[$h]).n($h));if(f[p]!=null)r.c(P.of(Lr0,f[p]).n(p));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},ON=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/trafficpolicyinstance");let $;$=c0;let r=new P(V$0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[h0]!=null)r.c(P.of(jf,f[h0]).n(h0));if(f[p]!=null)r.c(P.of(Wf,f[p]).n(p));if(f[o0]!=null)r.c(P.of(o0,String(f[o0])).n(o0));if(r.cc(f,z$),f[g1]!=null)r.c(P.of(g1,String(f[g1])).n(g1));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},lN=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/trafficpolicy/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;$=c0;let r=new P(H$0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[F0]!=null)r.c(P.of(yC,f[F0]).n(F0));if(f[$h]!=null)r.c(P.of(Wk,f[$h]).n($h));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},vN=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/hostedzone/{HostedZoneId}/authorizevpcassociation"),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1);let $;$=c0;let r=new P(N$0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[P0]!=null)r.c(er(f[P0],h).n(P0));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},bN=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/keysigningkey/{HostedZoneId}/{Name}/deactivate"),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1),w.p("Name",()=>f.Name,"{Name}",!1);let $;return w.m("POST").h(s).b($),w.build()},mN=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/cidrcollection/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;return w.m("DELETE").h(s).b($),w.build()},dN=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/healthcheck/{HealthCheckId}"),w.p("HealthCheckId",()=>f.HealthCheckId,"{HealthCheckId}",!1);let $;return w.m("DELETE").h(s).b($),w.build()},iN=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/hostedzone/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;return w.m("DELETE").h(s).b($),w.build()},cN=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/keysigningkey/{HostedZoneId}/{Name}"),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1),w.p("Name",()=>f.Name,"{Name}",!1);let $;return w.m("DELETE").h(s).b($),w.build()},gN=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/queryloggingconfig/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;return w.m("DELETE").h(s).b($),w.build()},xN=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/delegationset/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;return w.m("DELETE").h(s).b($),w.build()},_N=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/trafficpolicy/{Id}/{Version}"),w.p("Id",()=>f.Id,"{Id}",!1),w.p("Version",()=>f.Version.toString(),"{Version}",!1);let $;return w.m("DELETE").h(s).b($),w.build()},nN=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/trafficpolicyinstance/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;return w.m("DELETE").h(s).b($),w.build()},eN=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/hostedzone/{HostedZoneId}/deauthorizevpcassociation"),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1);let $;$=c0;let r=new P(q$0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[P0]!=null)r.c(er(f[P0],h).n(P0));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},aN=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/hostedzone/{HostedZoneId}/disable-dnssec"),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1);let $;return w.m("POST").h(s).b($),w.build()},pN=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/hostedzone/{HostedZoneId}/disassociatevpc"),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1);let $;$=c0;let r=new P(y$0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[F0]!=null)r.c(P.of(k$0,f[F0]).n(F0));if(f[P0]!=null)r.c(er(f[P0],h).n(P0));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},oN=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/hostedzone/{HostedZoneId}/enable-dnssec"),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1);let $;return w.m("POST").h(s).b($),w.build()},uN=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/accountlimit/{Type}"),w.p("Type",()=>f.Type,"{Type}",!1);let $;return w.m("GET").h(s).b($),w.build()},tN=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/change/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;return w.m("GET").h(s).b($),w.build()},fD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/checkeripranges");let $;return w.m("GET").h(s).b($),w.build()},hD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/hostedzone/{HostedZoneId}/dnssec"),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1);let $;return w.m("GET").h(s).b($),w.build()},wD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/geolocation");let $=Y({[Sr0]:[,f[kf]],[Yr0]:[,f[yf]],[qr0]:[,f[Of]]}),r;return w.m("GET").h(s).q($).b(r),w.build()},sD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/healthcheck/{HealthCheckId}"),w.p("HealthCheckId",()=>f.HealthCheckId,"{HealthCheckId}",!1);let $;return w.m("GET").h(s).b($),w.build()},$D=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/healthcheckcount");let $;return w.m("GET").h(s).b($),w.build()},rD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/healthcheck/{HealthCheckId}/lastfailurereason"),w.p("HealthCheckId",()=>f.HealthCheckId,"{HealthCheckId}",!1);let $;return w.m("GET").h(s).b($),w.build()},ED=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/healthcheck/{HealthCheckId}/status"),w.p("HealthCheckId",()=>f.HealthCheckId,"{HealthCheckId}",!1);let $;return w.m("GET").h(s).b($),w.build()},TD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/hostedzone/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;return w.m("GET").h(s).b($),w.build()},UD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/hostedzonecount");let $;return w.m("GET").h(s).b($),w.build()},FD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/hostedzonelimit/{HostedZoneId}/{Type}"),w.p("Type",()=>f.Type,"{Type}",!1),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1);let $;return w.m("GET").h(s).b($),w.build()},CD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/queryloggingconfig/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;return w.m("GET").h(s).b($),w.build()},ID=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/delegationset/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;return w.m("GET").h(s).b($),w.build()},LD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/reusabledelegationsetlimit/{DelegationSetId}/{Type}"),w.p("Type",()=>f.Type,"{Type}",!1),w.p("DelegationSetId",()=>f.DelegationSetId,"{DelegationSetId}",!1);let $;return w.m("GET").h(s).b($),w.build()},BD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/trafficpolicy/{Id}/{Version}"),w.p("Id",()=>f.Id,"{Id}",!1),w.p("Version",()=>f.Version.toString(),"{Version}",!1);let $;return w.m("GET").h(s).b($),w.build()},GD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/trafficpolicyinstance/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;return w.m("GET").h(s).b($),w.build()},WD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/trafficpolicyinstancecount");let $;return w.m("GET").h(s).b($),w.build()},AD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/cidrcollection/{CollectionId}/cidrblocks"),w.p("CollectionId",()=>f.CollectionId,"{CollectionId}",!1);let $=Y({[lf]:[,f[U1]],[X$]:[,f[k0]],[tr]:[()=>f.MaxResults!==void 0,()=>f[or].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},zD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/cidrcollection");let $=Y({[X$]:[,f[k0]],[tr]:[()=>f.MaxResults!==void 0,()=>f[or].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},RD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/cidrcollection/{CollectionId}"),w.p("CollectionId",()=>f.CollectionId,"{CollectionId}",!1);let $=Y({[X$]:[,f[k0]],[tr]:[()=>f.MaxResults!==void 0,()=>f[or].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},XD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/geolocations");let $=Y({[kr0]:[,f[sr0]],[yr0]:[,f[$r0]],[jr0]:[,f[Ir0]],[a1]:[()=>f.MaxItems!==void 0,()=>f[u].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},SD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/healthcheck");let $=Y({[jC]:[,f[x1]],[a1]:[()=>f.MaxItems!==void 0,()=>f[u].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},YD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/hostedzone");let $=Y({[jC]:[,f[x1]],[a1]:[()=>f.MaxItems!==void 0,()=>f[u].toString()],[Mr0]:[,f[rT]],[Jr0]:[,f[c$0]]}),r;return w.m("GET").h(s).q($).b(r),w.build()},MD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/hostedzonesbyname");let $=Y({[Qr0]:[,f[Wf]],[ur]:[,f[h0]],[a1]:[()=>f.MaxItems!==void 0,()=>f[u].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},QD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/hostedzonesbyvpc");let $=Y({[br0]:[,j(f[_r],"VPCId")],[dr0]:[,j(f[nr],"VPCRegion")],[a1]:[()=>f.MaxItems!==void 0,()=>f[u].toString()],[X$]:[,f[k0]]}),r;return w.m("GET").h(s).q($).b(r),w.build()},KD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/queryloggingconfig");let $=Y({[ur]:[,f[h0]],[X$]:[,f[k0]],[tr]:[()=>f.MaxResults!==void 0,()=>f[or].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},ZD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/hostedzone/{HostedZoneId}/rrset"),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1);let $=Y({[Pr0]:[,f[Fr0]],[Or0]:[,f[Cr0]],[Vr0]:[,f[Ur0]],[a1]:[()=>f.MaxItems!==void 0,()=>f[u].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},JD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/delegationset");let $=Y({[jC]:[,f[x1]],[a1]:[()=>f.MaxItems!==void 0,()=>f[u].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},VD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/tags/{ResourceType}/{ResourceId}"),w.p("ResourceType",()=>f.ResourceType,"{ResourceType}",!1),w.p("ResourceId",()=>f.ResourceId,"{ResourceId}",!1);let $;return w.m("GET").h(s).b($),w.build()},PD=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/tags/{ResourceType}"),w.p("ResourceType",()=>f.ResourceType,"{ResourceType}",!1);let $;$=c0;let r=new P(x$0);return r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r.lc(f,"ResourceIds","ResourceIds",()=>Cs0(f[a$0],h)),$+=r.toString(),w.m("POST").h(s).b($),w.build()},HD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/trafficpolicies");let $=Y({[lr0]:[,f[GT]],[a1]:[()=>f.MaxItems!==void 0,()=>f[u].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},ND=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/trafficpolicyinstances");let $=Y({[ur]:[,f[mh]],[OC]:[,f[_1]],[lC]:[,f[n1]],[a1]:[()=>f.MaxItems!==void 0,()=>f[u].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},DD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/trafficpolicyinstances/hostedzone");let $=Y({[Ak]:[,j(f[h0],"HostedZoneId")],[OC]:[,f[_1]],[lC]:[,f[n1]],[a1]:[()=>f.MaxItems!==void 0,()=>f[u].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},qD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/trafficpolicyinstances/trafficpolicy");let $=Y({[Ak]:[,j(f[z$],"TrafficPolicyId")],[mr0]:[j(f.TrafficPolicyVersion,"TrafficPolicyVersion")!=null,()=>f[g1].toString()],[ur]:[,f[mh]],[OC]:[,f[_1]],[lC]:[,f[n1]],[a1]:[()=>f.MaxItems!==void 0,()=>f[u].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},kD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/trafficpolicies/{Id}/versions"),w.p("Id",()=>f.Id,"{Id}",!1);let $=Y({[vr0]:[,f[WT]],[a1]:[()=>f.MaxItems!==void 0,()=>f[u].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},yD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/hostedzone/{HostedZoneId}/authorizevpcassociation"),w.p("HostedZoneId",()=>f.HostedZoneId,"{HostedZoneId}",!1);let $=Y({[X$]:[,f[k0]],[tr]:[()=>f.MaxResults!==void 0,()=>f[or].toString()]}),r;return w.m("GET").h(s).q($).b(r),w.build()},jD=async(f,h)=>{let w=d.requestBuilder(f,h),s={};w.bp("/2013-04-01/testdnsanswer");let $=Y({[ur]:[,j(f[h0],"HostedZoneId")],[Hr0]:[,j(f[IT],"RecordName")],[Nr0]:[,j(f[LT],"RecordType")],[Dr0]:[,f[e$0]],[Kr0]:[,f[j$0]],[Zr0]:[,f[O$0]]}),r;return w.m("GET").h(s).q($).b(r),w.build()},OD=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/healthcheck/{HealthCheckId}"),w.p("HealthCheckId",()=>f.HealthCheckId,"{HealthCheckId}",!1);let $;$=c0;let r=new P(Wr0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[qf]!=null)r.c(wk(f[qf],h).n(qf));if(r.lc(f,"ChildHealthChecks","ChildHealthChecks",()=>sk(f[Bw],h)),f[Ff]!=null)r.c(P.of(Ff,String(f[Ff])).n(Ff));if(f[Cf]!=null)r.c(P.of(Cf,String(f[Cf])).n(Cf));if(f[If]!=null)r.c(P.of(If,String(f[If])).n(If));if(r.cc(f,br),f[Aw]!=null)r.c(P.of(Aw,String(f[Aw])).n(Aw));if(f[Lf]!=null)r.c(P.of(Lf,String(f[Lf])).n(Lf));if(r.cc(f,dh),r.cc(f,ir),f[Bf]!=null)r.c(P.of(Bf,String(f[Bf])).n(Bf));if(f[Gf]!=null)r.c(P.of(Gf,String(f[Gf])).n(Gf));return r.lc(f,"Regions","Regions",()=>$k(f[Gw],h)),r.lc(f,"ResetElements","ResetElements",()=>ss0(f[n$0],h)),r.cc(f,cr),r.cc(f,xr),$+=r.toString(),w.m("POST").h(s).b($),w.build()},lD=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/hostedzone/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;$=c0;let r=new P(Ar0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[F0]!=null)r.c(P.of(kC,f[F0]).n(F0));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},vD=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/trafficpolicy/{Id}/{Version}"),w.p("Id",()=>f.Id,"{Id}",!1),w.p("Version",()=>f.Version.toString(),"{Version}",!1);let $;$=c0;let r=new P(zr0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[F0]!=null)r.c(P.of(yC,f[F0]).n(F0));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},bD=async(f,h)=>{let w=d.requestBuilder(f,h),s={"content-type":"application/xml"};w.bp("/2013-04-01/trafficpolicyinstance/{Id}"),w.p("Id",()=>f.Id,"{Id}",!1);let $;$=c0;let r=new P(Rr0);if(r.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),f[o0]!=null)r.c(P.of(o0,String(f[o0])).n(o0));if(r.cc(f,z$),f[g1]!=null)r.c(P.of(g1,String(f[g1])).n(g1));return $+=r.toString(),w.m("POST").h(s).b($),w.build()},mD=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[$0]!=null)w[$0]=e1(s[$0],h);return w},dD=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[$0]!=null)w[$0]=e1(s[$0],h);return w},iD=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[I0]!=null)w[I0]=G(s[I0]);return w},cD=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[$0]!=null)w[$0]=e1(s[$0],h);return w},gD=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)});return await G1.collectBody(f.body,h),w},xD=async(f,h)=>{if(f.statusCode!==201&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f),[Uh]:[,f.headers[lf]]}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[D6]!=null)w[D6]=Rs0(s[D6],h);return w},_D=async(f,h)=>{if(f.statusCode!==201&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f),[Uh]:[,f.headers[lf]]}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[Af]!=null)w[Af]=XT(s[Af],h);return w},nD=async(f,h)=>{if(f.statusCode!==201&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f),[Uh]:[,f.headers[lf]]}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[$0]!=null)w[$0]=e1(s[$0],h);if(s[Q1]!=null)w[Q1]=ar(s[Q1],h);if(s[V1]!=null)w[V1]=ST(s[V1],h);if(s[P0]!=null)w[P0]=DC(s[P0],h);return w},eD=async(f,h)=>{if(f.statusCode!==201&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f),[Uh]:[,f.headers[lf]]}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[$0]!=null)w[$0]=e1(s[$0],h);if(s[x6]!=null)w[x6]=Uk(s[x6],h);return w},aD=async(f,h)=>{if(f.statusCode!==201&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f),[Uh]:[,f.headers[lf]]}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[ih]!=null)w[ih]=HC(s[ih],h);return w},pD=async(f,h)=>{if(f.statusCode!==201&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f),[Uh]:[,f.headers[lf]]}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[Q1]!=null)w[Q1]=ar(s[Q1],h);return w},oD=async(f,h)=>{if(f.statusCode!==201&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f),[Uh]:[,f.headers[lf]]}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[K1]!=null)w[K1]=pr(s[K1],h);return w},uD=async(f,h)=>{if(f.statusCode!==201&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f),[Uh]:[,f.headers[lf]]}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[z1]!=null)w[z1]=YT(s[z1],h);return w},tD=async(f,h)=>{if(f.statusCode!==201&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f),[Uh]:[,f.headers[lf]]}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[K1]!=null)w[K1]=pr(s[K1],h);return w},fq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[h0]!=null)w[h0]=G(s[h0]);if(s[P0]!=null)w[P0]=DC(s[P0],h);return w},hq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[$0]!=null)w[$0]=e1(s[$0],h);return w},wq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)});return await G1.collectBody(f.body,h),w},sq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)});return await G1.collectBody(f.body,h),w},$q=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[$0]!=null)w[$0]=e1(s[$0],h);return w},rq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[$0]!=null)w[$0]=e1(s[$0],h);return w},Eq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)});return await G1.collectBody(f.body,h),w},Tq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)});return await G1.collectBody(f.body,h),w},Uq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)});return await G1.collectBody(f.body,h),w},Fq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)});return await G1.collectBody(f.body,h),w},Cq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)});return await G1.collectBody(f.body,h),w},Iq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[$0]!=null)w[$0]=e1(s[$0],h);return w},Lq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[$0]!=null)w[$0]=e1(s[$0],h);return w},Bq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[$0]!=null)w[$0]=e1(s[$0],h);return w},Gq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[sh]!=null)w[sh]=E1(s[sh]);if(s[rh]!=null)w[rh]=Is0(s[rh],h);return w},Wq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[$0]!=null)w[$0]=e1(s[$0],h);return w},Aq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s.CheckerIpRanges==="")w[Mr]=[];else if(s[Mr]!=null&&s[Mr][zf]!=null)w[Mr]=Gs0(G0(s[Mr][zf]),h);return w},zq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s.KeySigningKeys==="")w[Hr]=[];else if(s[Hr]!=null&&s[Hr][zf]!=null)w[Hr]=is0(G0(s[Hr][zf]),h);if(s[A1]!=null)w[A1]=Ps0(s[A1],h);return w},Rq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[mr]!=null)w[mr]=rk(s[mr],h);return w},Xq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[Af]!=null)w[Af]=XT(s[Af],h);return w},Sq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[d6]!=null)w[d6]=E1(s[d6]);return w},Yq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s.HealthCheckObservations==="")w[Hf]=[];else if(s[Hf]!=null&&s[Hf][AT]!=null)w[Hf]=Ek(G0(s[Hf][AT]),h);return w},Mq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s.HealthCheckObservations==="")w[Hf]=[];else if(s[Hf]!=null&&s[Hf][AT]!=null)w[Hf]=Ek(G0(s[Hf][AT]),h);return w},Qq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[Q1]!=null)w[Q1]=ar(s[Q1],h);if(s[V1]!=null)w[V1]=ST(s[V1],h);if(s.VPCs==="")w[Df]=[];else if(s[Df]!=null&&s[Df][P0]!=null)w[Df]=Ik(G0(s[Df][P0]),h);return w},Kq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[i6]!=null)w[i6]=E1(s[i6]);return w},Zq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[sh]!=null)w[sh]=E1(s[sh]);if(s[rh]!=null)w[rh]=vs0(s[rh],h);return w},Jq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[ih]!=null)w[ih]=HC(s[ih],h);return w},Vq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[Q1]!=null)w[Q1]=ar(s[Q1],h);return w},Pq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[sh]!=null)w[sh]=E1(s[sh]);if(s[rh]!=null)w[rh]=us0(s[rh],h);return w},Hq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[K1]!=null)w[K1]=pr(s[K1],h);return w},Nq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[z1]!=null)w[z1]=YT(s[z1],h);return w},Dq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[ZC]!=null)w[ZC]=M0(s[ZC]);return w},qq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s.CidrBlocks==="")w[Sr]=[];else if(s[Sr]!=null&&s[Sr][zf]!=null)w[Sr]=As0(G0(s[Sr][zf]),h);if(s[k0]!=null)w[k0]=G(s[k0]);return w},kq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s.CidrCollections==="")w[Yr]=[];else if(s[Yr]!=null&&s[Yr][zf]!=null)w[Yr]=Ys0(G0(s[Yr][zf]),h);if(s[k0]!=null)w[k0]=G(s[k0]);return w},yq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s.CidrLocations==="")w[Qr]=[];else if(s[Qr]!=null&&s[Qr][zf]!=null)w[Qr]=cs0(G0(s[Qr][zf]),h);if(s[k0]!=null)w[k0]=G(s[k0]);return w},jq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s.GeoLocationDetailsList==="")w[Jr]=[];else if(s[Jr]!=null&&s[Jr][mr]!=null)w[Jr]=Ds0(G0(s[Jr][mr]),h);if(s[C0]!=null)w[C0]=e0(s[C0]);if(s[u]!=null)w[u]=M0(s[u]);if(s[p6]!=null)w[p6]=G(s[p6]);if(s[o6]!=null)w[o6]=G(s[o6]);if(s[sC]!=null)w[sC]=G(s[sC]);return w},Oq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s.HealthChecks==="")w[Vr]=[];else if(s[Vr]!=null&&s[Vr][Af]!=null)w[Vr]=Os0(G0(s[Vr][Af]),h);if(s[C0]!=null)w[C0]=e0(s[C0]);if(s[x1]!=null)w[x1]=G(s[x1]);if(s[u]!=null)w[u]=M0(s[u]);if(s[Eh]!=null)w[Eh]=G(s[Eh]);return w},lq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s.HostedZones==="")w[Nf]=[];else if(s[Nf]!=null&&s[Nf][V1]!=null)w[Nf]=Tk(G0(s[Nf][V1]),h);if(s[C0]!=null)w[C0]=e0(s[C0]);if(s[x1]!=null)w[x1]=G(s[x1]);if(s[u]!=null)w[u]=M0(s[u]);if(s[Eh]!=null)w[Eh]=G(s[Eh]);return w},vq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[Wf]!=null)w[Wf]=G(s[Wf]);if(s[h0]!=null)w[h0]=G(s[h0]);if(s.HostedZones==="")w[Nf]=[];else if(s[Nf]!=null&&s[Nf][V1]!=null)w[Nf]=Tk(G0(s[Nf][V1]),h);if(s[C0]!=null)w[C0]=e0(s[C0]);if(s[u]!=null)w[u]=M0(s[u]);if(s[u6]!=null)w[u6]=G(s[u6]);if(s[t6]!=null)w[t6]=G(s[t6]);return w},bq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s.HostedZoneSummaries==="")w[Pr]=[];else if(s[Pr]!=null&&s[Pr][XN]!=null)w[Pr]=ms0(G0(s[Pr][XN]),h);if(s[u]!=null)w[u]=M0(s[u]);if(s[k0]!=null)w[k0]=G(s[k0]);return w},mq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[k0]!=null)w[k0]=G(s[k0]);if(s.QueryLoggingConfigs==="")w[Dr]=[];else if(s[Dr]!=null&&s[Dr][ih]!=null)w[Dr]=xs0(G0(s[Dr][ih]),h);return w},dq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[C0]!=null)w[C0]=e0(s[C0]);if(s[u]!=null)w[u]=M0(s[u]);if(s[fC]!=null)w[fC]=G(s[fC]);if(s[hC]!=null)w[hC]=G(s[hC]);if(s[wC]!=null)w[wC]=G(s[wC]);if(s.ResourceRecordSets==="")w[kr]=[];else if(s[kr]!=null&&s[kr][G$]!=null)w[kr]=ps0(G0(s[kr][G$]),h);return w},iq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s.DelegationSets==="")w[Kr]=[];else if(s[Kr]!=null&&s[Kr][Q1]!=null)w[Kr]=Zs0(G0(s[Kr][Q1]),h);if(s[C0]!=null)w[C0]=e0(s[C0]);if(s[x1]!=null)w[x1]=G(s[x1]);if(s[u]!=null)w[u]=M0(s[u]);if(s[Eh]!=null)w[Eh]=G(s[Eh]);return w},cq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[gr]!=null)w[gr]=Ck(s[gr],h);return w},gq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s.ResourceTagSets==="")w[yr]=[];else if(s[yr]!=null&&s[yr][gr]!=null)w[yr]=os0(G0(s[yr][gr]),h);return w},xq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[C0]!=null)w[C0]=e0(s[C0]);if(s[u]!=null)w[u]=M0(s[u]);if(s[GT]!=null)w[GT]=G(s[GT]);if(s.TrafficPolicySummaries==="")w[jr]=[];else if(s[jr]!=null&&s[jr][QN]!=null)w[jr]=s$0(G0(s[jr][QN]),h);return w},_q=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[mh]!=null)w[mh]=G(s[mh]);if(s[C0]!=null)w[C0]=e0(s[C0]);if(s[u]!=null)w[u]=M0(s[u]);if(s[_1]!=null)w[_1]=G(s[_1]);if(s[n1]!=null)w[n1]=G(s[n1]);if(s.TrafficPolicyInstances==="")w[W1]=[];else if(s[W1]!=null&&s[W1][z1]!=null)w[W1]=NC(G0(s[W1][z1]),h);return w},nq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[C0]!=null)w[C0]=e0(s[C0]);if(s[u]!=null)w[u]=M0(s[u]);if(s[_1]!=null)w[_1]=G(s[_1]);if(s[n1]!=null)w[n1]=G(s[n1]);if(s.TrafficPolicyInstances==="")w[W1]=[];else if(s[W1]!=null&&s[W1][z1]!=null)w[W1]=NC(G0(s[W1][z1]),h);return w},eq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[mh]!=null)w[mh]=G(s[mh]);if(s[C0]!=null)w[C0]=e0(s[C0]);if(s[u]!=null)w[u]=M0(s[u]);if(s[_1]!=null)w[_1]=G(s[_1]);if(s[n1]!=null)w[n1]=G(s[n1]);if(s.TrafficPolicyInstances==="")w[W1]=[];else if(s[W1]!=null&&s[W1][z1]!=null)w[W1]=NC(G0(s[W1][z1]),h);return w},aq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[C0]!=null)w[C0]=e0(s[C0]);if(s[u]!=null)w[u]=M0(s[u]);if(s.TrafficPolicies==="")w[Or]=[];else if(s[Or]!=null&&s[Or][K1]!=null)w[Or]=w$0(G0(s[Or][K1]),h);if(s[WT]!=null)w[WT]=G(s[WT]);return w},pq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[h0]!=null)w[h0]=G(s[h0]);if(s[k0]!=null)w[k0]=G(s[k0]);if(s.VPCs==="")w[Df]=[];else if(s[Df]!=null&&s[Df][P0]!=null)w[Df]=Ik(G0(s[Df][P0]),h);return w},oq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[$C]!=null)w[$C]=G(s[$C]);if(s[IC]!=null)w[IC]=G(s[IC]);if(s.RecordData==="")w[qr]=[];else if(s[qr]!=null&&s[qr][YN]!=null)w[qr]=_s0(G0(s[qr][YN]),h);if(s[IT]!=null)w[IT]=G(s[IT]);if(s[LT]!=null)w[LT]=G(s[LT]);if(s[LC]!=null)w[LC]=G(s[LC]);return w},uq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[Af]!=null)w[Af]=XT(s[Af],h);return w},tq=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[V1]!=null)w[V1]=ST(s[V1],h);return w},fk=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[K1]!=null)w[K1]=pr(s[K1],h);return w},hk=async(f,h)=>{if(f.statusCode!==200&&f.statusCode>=300)return i(f,h);let w=Y({$metadata:Z(f)}),s=j(g(await _.parseXmlBody(f.body,h)),"body");if(s[z1]!=null)w[z1]=YT(s[z1],h);return w},i=async(f,h)=>{let w={...f,body:await _.parseXmlErrorBody(f.body,h)},s=_.loadRestXmlErrorCode(f,w.body);switch(s){case"ConcurrentModification":case"com.amazonaws.route53#ConcurrentModification":throw await kh0(w,h);case"InvalidInput":case"com.amazonaws.route53#InvalidInput":throw await hw0(w,h);case"InvalidKMSArn":case"com.amazonaws.route53#InvalidKMSArn":throw await $w0(w,h);case"InvalidKeySigningKeyStatus":case"com.amazonaws.route53#InvalidKeySigningKeyStatus":throw await sw0(w,h);case"InvalidSigningStatus":case"com.amazonaws.route53#InvalidSigningStatus":throw await Ew0(w,h);case"NoSuchKeySigningKey":case"com.amazonaws.route53#NoSuchKeySigningKey":throw await Qw0(w,h);case"ConflictingDomainExists":case"com.amazonaws.route53#ConflictingDomainExists":throw await yh0(w,h);case"InvalidVPCId":case"com.amazonaws.route53#InvalidVPCId":throw await Uw0(w,h);case"LimitsExceeded":case"com.amazonaws.route53#LimitsExceeded":throw await Gw0(w,h);case"NoSuchHostedZone":case"com.amazonaws.route53#NoSuchHostedZone":throw await Mw0(w,h);case"NotAuthorizedException":case"com.amazonaws.route53#NotAuthorizedException":throw await Vw0(w,h);case"PriorRequestNotComplete":case"com.amazonaws.route53#PriorRequestNotComplete":throw await Pw0(w,h);case"PublicZoneVPCAssociation":case"com.amazonaws.route53#PublicZoneVPCAssociation":throw await Hw0(w,h);case"CidrBlockInUseException":case"com.amazonaws.route53#CidrBlockInUseException":throw await Hh0(w,h);case"CidrCollectionVersionMismatchException":case"com.amazonaws.route53#CidrCollectionVersionMismatchException":throw await qh0(w,h);case"NoSuchCidrCollectionException":case"com.amazonaws.route53#NoSuchCidrCollectionException":throw await Aw0(w,h);case"InvalidChangeBatch":case"com.amazonaws.route53#InvalidChangeBatch":throw await th0(w,h);case"NoSuchHealthCheck":case"com.amazonaws.route53#NoSuchHealthCheck":throw await Yw0(w,h);case"ThrottlingException":case"com.amazonaws.route53#ThrottlingException":throw await Dw0(w,h);case"CidrCollectionAlreadyExistsException":case"com.amazonaws.route53#CidrCollectionAlreadyExistsException":throw await Nh0(w,h);case"HealthCheckAlreadyExists":case"com.amazonaws.route53#HealthCheckAlreadyExists":throw await ih0(w,h);case"TooManyHealthChecks":case"com.amazonaws.route53#TooManyHealthChecks":throw await qw0(w,h);case"DelegationSetNotAvailable":case"com.amazonaws.route53#DelegationSetNotAvailable":throw await bh0(w,h);case"DelegationSetNotReusable":case"com.amazonaws.route53#DelegationSetNotReusable":throw await mh0(w,h);case"HostedZoneAlreadyExists":case"com.amazonaws.route53#HostedZoneAlreadyExists":throw await xh0(w,h);case"InvalidDomainName":case"com.amazonaws.route53#InvalidDomainName":throw await fw0(w,h);case"NoSuchDelegationSet":case"com.amazonaws.route53#NoSuchDelegationSet":throw await Xw0(w,h);case"TooManyHostedZones":case"com.amazonaws.route53#TooManyHostedZones":throw await kw0(w,h);case"InvalidArgument":case"com.amazonaws.route53#InvalidArgument":throw await uh0(w,h);case"InvalidKeySigningKeyName":case"com.amazonaws.route53#InvalidKeySigningKeyName":throw await ww0(w,h);case"KeySigningKeyAlreadyExists":case"com.amazonaws.route53#KeySigningKeyAlreadyExists":throw await Fw0(w,h);case"TooManyKeySigningKeys":case"com.amazonaws.route53#TooManyKeySigningKeys":throw await yw0(w,h);case"InsufficientCloudWatchLogsResourcePolicy":case"com.amazonaws.route53#InsufficientCloudWatchLogsResourcePolicy":throw await oh0(w,h);case"NoSuchCloudWatchLogsLogGroup":case"com.amazonaws.route53#NoSuchCloudWatchLogsLogGroup":throw await Rw0(w,h);case"QueryLoggingConfigAlreadyExists":case"com.amazonaws.route53#QueryLoggingConfigAlreadyExists":throw await Nw0(w,h);case"DelegationSetAlreadyCreated":case"com.amazonaws.route53#DelegationSetAlreadyCreated":throw await Oh0(w,h);case"DelegationSetAlreadyReusable":case"com.amazonaws.route53#DelegationSetAlreadyReusable":throw await lh0(w,h);case"HostedZoneNotFound":case"com.amazonaws.route53#HostedZoneNotFound":throw await nh0(w,h);case"InvalidTrafficPolicyDocument":case"com.amazonaws.route53#InvalidTrafficPolicyDocument":throw await Tw0(w,h);case"TooManyTrafficPolicies":case"com.amazonaws.route53#TooManyTrafficPolicies":throw await jw0(w,h);case"TrafficPolicyAlreadyExists":case"com.amazonaws.route53#TrafficPolicyAlreadyExists":throw await bw0(w,h);case"NoSuchTrafficPolicy":case"com.amazonaws.route53#NoSuchTrafficPolicy":throw await Zw0(w,h);case"TooManyTrafficPolicyInstances":case"com.amazonaws.route53#TooManyTrafficPolicyInstances":throw await Ow0(w,h);case"TrafficPolicyInstanceAlreadyExists":case"com.amazonaws.route53#TrafficPolicyInstanceAlreadyExists":throw await mw0(w,h);case"TooManyTrafficPolicyVersionsForCurrentPolicy":case"com.amazonaws.route53#TooManyTrafficPolicyVersionsForCurrentPolicy":throw await lw0(w,h);case"TooManyVPCAssociationAuthorizations":case"com.amazonaws.route53#TooManyVPCAssociationAuthorizations":throw await vw0(w,h);case"KeySigningKeyInParentDSRecord":case"com.amazonaws.route53#KeySigningKeyInParentDSRecord":throw await Cw0(w,h);case"KeySigningKeyInUse":case"com.amazonaws.route53#KeySigningKeyInUse":throw await Iw0(w,h);case"CidrCollectionInUseException":case"com.amazonaws.route53#CidrCollectionInUseException":throw await Dh0(w,h);case"HealthCheckInUse":case"com.amazonaws.route53#HealthCheckInUse":throw await ch0(w,h);case"HostedZoneNotEmpty":case"com.amazonaws.route53#HostedZoneNotEmpty":throw await _h0(w,h);case"NoSuchQueryLoggingConfig":case"com.amazonaws.route53#NoSuchQueryLoggingConfig":throw await Kw0(w,h);case"DelegationSetInUse":case"com.amazonaws.route53#DelegationSetInUse":throw await vh0(w,h);case"TrafficPolicyInUse":case"com.amazonaws.route53#TrafficPolicyInUse":throw await dw0(w,h);case"NoSuchTrafficPolicyInstance":case"com.amazonaws.route53#NoSuchTrafficPolicyInstance":throw await Jw0(w,h);case"VPCAssociationAuthorizationNotFound":case"com.amazonaws.route53#VPCAssociationAuthorizationNotFound":throw await iw0(w,h);case"DNSSECNotFound":case"com.amazonaws.route53#DNSSECNotFound":throw await dh0(w,h);case"LastVPCAssociation":case"com.amazonaws.route53#LastVPCAssociation":throw await Bw0(w,h);case"VPCAssociationNotFound":case"com.amazonaws.route53#VPCAssociationNotFound":throw await cw0(w,h);case"HostedZonePartiallyDelegated":case"com.amazonaws.route53#HostedZonePartiallyDelegated":throw await ah0(w,h);case"KeySigningKeyWithActiveStatusNotFound":case"com.amazonaws.route53#KeySigningKeyWithActiveStatusNotFound":throw await Lw0(w,h);case"NoSuchChange":case"com.amazonaws.route53#NoSuchChange":throw await Ww0(w,h);case"NoSuchGeoLocation":case"com.amazonaws.route53#NoSuchGeoLocation":throw await Sw0(w,h);case"IncompatibleVersion":case"com.amazonaws.route53#IncompatibleVersion":throw await ph0(w,h);case"HostedZoneNotPrivate":case"com.amazonaws.route53#HostedZoneNotPrivate":throw await eh0(w,h);case"NoSuchCidrLocationException":case"com.amazonaws.route53#NoSuchCidrLocationException":throw await zw0(w,h);case"InvalidPaginationToken":case"com.amazonaws.route53#InvalidPaginationToken":throw await rw0(w,h);case"HealthCheckVersionMismatch":case"com.amazonaws.route53#HealthCheckVersionMismatch":throw await gh0(w,h);case"ConflictingTypes":case"com.amazonaws.route53#ConflictingTypes":throw await jh0(w,h);default:let $=w.body;return Ph0({output:f,parsedBody:$.Error,errorCode:s})}},Ph0=Fs(m),Hh0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[v0]!=null)w[v0]=G(s[v0]);let $=new tE({$metadata:Z(f),...w});return l($,f.body.Error)},Nh0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[v0]!=null)w[v0]=G(s[v0]);let $=new r2({$metadata:Z(f),...w});return l($,f.body.Error)},Dh0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[v0]!=null)w[v0]=G(s[v0]);let $=new y2({$metadata:Z(f),...w});return l($,f.body.Error)},qh0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[v0]!=null)w[v0]=G(s[v0]);let $=new f2({$metadata:Z(f),...w});return l($,f.body.Error)},kh0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new mE({$metadata:Z(f),...w});return l($,f.body.Error)},yh0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new _E({$metadata:Z(f),...w});return l($,f.body.Error)},jh0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new fT({$metadata:Z(f),...w});return l($,f.body.Error)},Oh0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new Y2({$metadata:Z(f),...w});return l($,f.body.Error)},lh0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new M2({$metadata:Z(f),...w});return l($,f.body.Error)},vh0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new v2({$metadata:Z(f),...w});return l($,f.body.Error)},bh0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new U2({$metadata:Z(f),...w});return l($,f.body.Error)},mh0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new F2({$metadata:Z(f),...w});return l($,f.body.Error)},dh0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new i2({$metadata:Z(f),...w});return l($,f.body.Error)},ih0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new E2({$metadata:Z(f),...w});return l($,f.body.Error)},ch0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new j2({$metadata:Z(f),...w});return l($,f.body.Error)},gh0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new t2({$metadata:Z(f),...w});return l($,f.body.Error)},xh0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new C2({$metadata:Z(f),...w});return l($,f.body.Error)},_h0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new O2({$metadata:Z(f),...w});return l($,f.body.Error)},nh0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new Q2({$metadata:Z(f),...w});return l($,f.body.Error)},eh0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new p2({$metadata:Z(f),...w});return l($,f.body.Error)},ah0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new x2({$metadata:Z(f),...w});return l($,f.body.Error)},ph0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new a2({$metadata:Z(f),...w});return l($,f.body.Error)},oh0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new R2({$metadata:Z(f),...w});return l($,f.body.Error)},uh0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new G2({$metadata:Z(f),...w});return l($,f.body.Error)},th0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);if(s.messages==="")w[vr]=[];else if(s[vr]!=null&&s[vr][v0]!=null)w[vr]=Hs0(G0(s[vr][v0]),h);let $=new w2({$metadata:Z(f),...w});return l($,f.body.Error)},fw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new I2({$metadata:Z(f),...w});return l($,f.body.Error)},hw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new dE({$metadata:Z(f),...w});return l($,f.body.Error)},ww0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new W2({$metadata:Z(f),...w});return l($,f.body.Error)},sw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new iE({$metadata:Z(f),...w});return l($,f.body.Error)},$w0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new cE({$metadata:Z(f),...w});return l($,f.body.Error)},rw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new u2({$metadata:Z(f),...w});return l($,f.body.Error)},Ew0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new gE({$metadata:Z(f),...w});return l($,f.body.Error)},Tw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new K2({$metadata:Z(f),...w});return l($,f.body.Error)},Uw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new nE({$metadata:Z(f),...w});return l($,f.body.Error)},Fw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new A2({$metadata:Z(f),...w});return l($,f.body.Error)},Cw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new q2({$metadata:Z(f),...w});return l($,f.body.Error)},Iw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new k2({$metadata:Z(f),...w});return l($,f.body.Error)},Lw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new _2({$metadata:Z(f),...w});return l($,f.body.Error)},Bw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new c2({$metadata:Z(f),...w});return l($,f.body.Error)},Gw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new eE({$metadata:Z(f),...w});return l($,f.body.Error)},Ww0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new n2({$metadata:Z(f),...w});return l($,f.body.Error)},Aw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[v0]!=null)w[v0]=G(s[v0]);let $=new h2({$metadata:Z(f),...w});return l($,f.body.Error)},zw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[v0]!=null)w[v0]=G(s[v0]);let $=new o2({$metadata:Z(f),...w});return l($,f.body.Error)},Rw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new X2({$metadata:Z(f),...w});return l($,f.body.Error)},Xw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new L2({$metadata:Z(f),...w});return l($,f.body.Error)},Sw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new e2({$metadata:Z(f),...w});return l($,f.body.Error)},Yw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new s2({$metadata:Z(f),...w});return l($,f.body.Error)},Mw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new aE({$metadata:Z(f),...w});return l($,f.body.Error)},Qw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new xE({$metadata:Z(f),...w});return l($,f.body.Error)},Kw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new l2({$metadata:Z(f),...w});return l($,f.body.Error)},Zw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new V2({$metadata:Z(f),...w});return l($,f.body.Error)},Jw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new m2({$metadata:Z(f),...w});return l($,f.body.Error)},Vw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new pE({$metadata:Z(f),...w});return l($,f.body.Error)},Pw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new oE({$metadata:Z(f),...w});return l($,f.body.Error)},Hw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new uE({$metadata:Z(f),...w});return l($,f.body.Error)},Nw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new S2({$metadata:Z(f),...w});return l($,f.body.Error)},Dw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new $2({$metadata:Z(f),...w});return l($,f.body.Error)},qw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new T2({$metadata:Z(f),...w});return l($,f.body.Error)},kw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new B2({$metadata:Z(f),...w});return l($,f.body.Error)},yw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new z2({$metadata:Z(f),...w});return l($,f.body.Error)},jw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new Z2({$metadata:Z(f),...w});return l($,f.body.Error)},Ow0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new P2({$metadata:Z(f),...w});return l($,f.body.Error)},lw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new N2({$metadata:Z(f),...w});return l($,f.body.Error)},vw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new D2({$metadata:Z(f),...w});return l($,f.body.Error)},bw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new J2({$metadata:Z(f),...w});return l($,f.body.Error)},mw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new H2({$metadata:Z(f),...w});return l($,f.body.Error)},dw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new b2({$metadata:Z(f),...w});return l($,f.body.Error)},iw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new d2({$metadata:Z(f),...w});return l($,f.body.Error)},cw0=async(f,h)=>{let w=Y({}),s=f.body.Error;if(s[S]!=null)w[S]=G(s[S]);let $=new g2({$metadata:Z(f),...w});return l($,f.body.Error)},wk=(f,h)=>{let w=new P(qf);if(f[u0]!=null)w.c(P.of(D$0,f[u0]).n(u0));if(f[p]!=null)w.c(P.of(E$0,f[p]).n(p));return w},gw0=(f,h)=>{let w=new P(Xw);if(f[h0]!=null)w.c(P.of(jf,f[h0]).n(h0));if(w.cc(f,Wf),f[F$]!=null)w.c(P.of(r$0,String(f[F$])).n(F$));return w},xw0=(f,h)=>{let w=new P(Bk);if(f[E$]!=null)w.c(P.of(C$0,f[E$]).n(E$));if(f[G$]!=null)w.c(Es0(f[G$],h).n(G$));return w},_w0=(f,h)=>{let w=new P(sT);if(f[F0]!=null)w.c(P.of(kC,f[F0]).n(F0));return w.lc(f,"Changes","Changes",()=>nw0(f[Lk],h)),w},nw0=(f,h)=>{return f.filter((w)=>w!=null).map((w)=>{return xw0(w,h).n(Bk)})},sk=(f,h)=>{return f.filter((w)=>w!=null).map((w)=>{return P.of(dr,w).n(PC)})},ew0=(f,h)=>{let w=new P(I$0);if(f[U1]!=null)w.c(P.of(X$0,f[U1]).n(U1));if(f[E$]!=null)w.c(P.of(L$0,f[E$]).n(E$));return w.lc(f,"CidrList","CidrList",()=>pw0(f[S$0],h)),w},aw0=(f,h)=>{return f.filter((w)=>w!=null).map((w)=>{return ew0(w,h).n(zf)})},pw0=(f,h)=>{return f.filter((w)=>w!=null).map((w)=>{return P.of(zN,w).n(zN)})},ow0=(f,h)=>{let w=new P(Sw);if(f[U$]!=null)w.c(P.of(Xr0,f[U$]).n(U$));if(f[U1]!=null)w.c(P.of(R$0,f[U1]).n(U1));return w},uw0=(f,h)=>{let w=new P(Yw);return w.cc(f,UT),w.cc(f,FT),w},tw0=(f,h)=>{let w=new P(Mw);if(f[kf]!=null)w.c(P.of(l$0,f[kf]).n(kf));if(f[yf]!=null)w.c(P.of(v$0,f[yf]).n(yf));if(f[Of]!=null)w.c(P.of(b$0,f[Of]).n(Of));return w},fs0=(f,h)=>{let w=new P(Qw);if(w.cc(f,wT),w.cc(f,TT),f[Yw]!=null)w.c(uw0(f[Yw],h).n(Yw));if(f[Ww]!=null)w.c(P.of(Ww,String(f[Ww])).n(Ww));return w},hs0=(f,h)=>{let w=new P(Kw);if(w.cc(f,dh),f[Gf]!=null)w.c(P.of(Gf,String(f[Gf])).n(Gf));if(f[Z0]!=null)w.c(P.of(i$0,f[Z0]).n(Z0));if(w.cc(f,cr),w.cc(f,br),w.cc(f,xr),f[Rw]!=null)w.c(P.of(Rw,String(f[Rw])).n(Rw));if(f[If]!=null)w.c(P.of(If,String(f[If])).n(If));if(f[zw]!=null)w.c(P.of(zw,String(f[zw])).n(zw));if(f[Bf]!=null)w.c(P.of(Bf,String(f[Bf])).n(Bf));if(f[Ff]!=null)w.c(P.of(Ff,String(f[Ff])).n(Ff));if(f[Lf]!=null)w.c(P.of(Lf,String(f[Lf])).n(Lf));if(w.lc(f,"ChildHealthChecks","ChildHealthChecks",()=>sk(f[Bw],h)),f[Cf]!=null)w.c(P.of(Cf,String(f[Cf])).n(Cf));if(w.lc(f,"Regions","Regions",()=>$k(f[Gw],h)),f[qf]!=null)w.c(wk(f[qf],h).n(qf));return w.cc(f,ir),w.cc(f,CT),w},$k=(f,h)=>{return f.filter((w)=>w!=null).map((w)=>{return P.of(d$0,w).n(u0)})},ws0=(f,h)=>{let w=new P(ET);if(f[F0]!=null)w.c(P.of(kC,f[F0]).n(F0));if(f[B$]!=null)w.c(P.of(g$0,String(f[B$])).n(B$));return w},ss0=(f,h)=>{return f.filter((w)=>w!=null).map((w)=>{return P.of(MN,w).n(MN)})},$s0=(f,h)=>{let w=new P(zT);if(f[y0]!=null)w.c(P.of(_$0,f[y0]).n(y0));return w},rs0=(f,h)=>{return f.filter((w)=>w!=null).map((w)=>{return $s0(w,h).n(zT)})},Es0=(f,h)=>{let w=new P(G$);if(f[p]!=null)w.c(P.of(Wf,f[p]).n(p));if(f[Z0]!=null)w.c(P.of(hr0,f[Z0]).n(Z0));if(f[W$]!=null)w.c(P.of(o$0,f[W$]).n(W$));if(f[R$]!=null)w.c(P.of(fr0,String(f[R$])).n(R$));if(f[u0]!=null)w.c(P.of(t$0,f[u0]).n(u0));if(f[Mw]!=null)w.c(tw0(f[Mw],h).n(Mw));if(f[C$]!=null)w.c(P.of(p$0,f[C$]).n(C$));if(f[L$]!=null)w.c(P.of(u$0,String(f[L$])).n(L$));if(f[o0]!=null)w.c(P.of(o0,String(f[o0])).n(o0));if(w.lc(f,"ResourceRecords","ResourceRecords",()=>rs0(f[r$],h)),f[Xw]!=null)w.c(gw0(f[Xw],h).n(Xw));if(w.cc(f,dr),w.cc(f,BT),f[Sw]!=null)w.c(ow0(f[Sw],h).n(Sw));if(f[Qw]!=null)w.c(fs0(f[Qw],h).n(Qw));return w},Ts0=(f,h)=>{let w=new P(RT);if(f[Zw]!=null)w.c(P.of(Gk,f[Zw]).n(Zw));if(f[y0]!=null)w.c(P.of(Gr0,f[y0]).n(y0));return w},Us0=(f,h)=>{return f.filter((w)=>w!=null).map((w)=>{return P.of(Gk,w).n(Zw)})},Fs0=(f,h)=>{return f.filter((w)=>w!=null).map((w)=>{return Ts0(w,h).n(RT)})},Cs0=(f,h)=>{return f.filter((w)=>w!=null).map((w)=>{return P.of(Br0,w).n(jf)})},er=(f,h)=>{let w=new P(P0);return w.cc(f,nr),w.cc(f,_r),w},Is0=(f,h)=>{let w={};if(f[Z0]!=null)w[Z0]=G(f[Z0]);if(f[y0]!=null)w[y0]=E1(f[y0]);return w},Ls0=(f,h)=>{let w={};if(f[u0]!=null)w[u0]=G(f[u0]);if(f[p]!=null)w[p]=G(f[p]);return w},Bs0=(f,h)=>{let w={};if(f[h0]!=null)w[h0]=G(f[h0]);if(f[Wf]!=null)w[Wf]=G(f[Wf]);if(f[F$]!=null)w[F$]=e0(f[F$]);return w},e1=(f,h)=>{let w={};if(f[I0]!=null)w[I0]=G(f[I0]);if(f[A1]!=null)w[A1]=G(f[A1]);if(f[WC]!=null)w[WC]=j(a$(f[WC]));if(f[F0]!=null)w[F0]=G(f[F0]);return w},Gs0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return G(w)})},Ws0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return G(w)})},As0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return zs0(w,h)})},zs0=(f,h)=>{let w={};if(f[K6]!=null)w[K6]=G(f[K6]);if(f[U1]!=null)w[U1]=G(f[U1]);return w},Rs0=(f,h)=>{let w={};if(f[T$]!=null)w[T$]=G(f[T$]);if(f[I0]!=null)w[I0]=G(f[I0]);if(f[p]!=null)w[p]=G(f[p]);if(f[Th]!=null)w[Th]=E1(f[Th]);return w},Xs0=(f,h)=>{let w={};if(f[U$]!=null)w[U$]=G(f[U$]);if(f[U1]!=null)w[U1]=G(f[U1]);return w},Ss0=(f,h)=>{let w={};if(f[b6]!=null)w[b6]=M0(f[b6]);if(f[VC]!=null)w[VC]=vS(f[VC]);if(f[P6]!=null)w[P6]=G(f[P6]);if(f[CC]!=null)w[CC]=M0(f[CC]);if(f[a6]!=null)w[a6]=G(f[a6]);if(f[rC]!=null)w[rC]=G(f[rC]);if(f[MC]!=null)w[MC]=G(f[MC]);if(f.Dimensions==="")w[Zr]=[];else if(f[Zr]!=null&&f[Zr][RN]!=null)w[Zr]=Vs0(G0(f[Zr][RN]),h);return w},Ys0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return Ms0(w,h)})},Ms0=(f,h)=>{let w={};if(f[T$]!=null)w[T$]=G(f[T$]);if(f[I0]!=null)w[I0]=G(f[I0]);if(f[p]!=null)w[p]=G(f[p]);if(f[Th]!=null)w[Th]=E1(f[Th]);return w},Qs0=(f,h)=>{let w={};if(f[UT]!=null)w[UT]=G(f[UT]);if(f[FT]!=null)w[FT]=G(f[FT]);return w},ar=(f,h)=>{let w={};if(f[I0]!=null)w[I0]=G(f[I0]);if(f[q0]!=null)w[q0]=G(f[q0]);if(f.NameServers==="")w[Nr]=[];else if(f[Nr]!=null&&f[Nr][SN]!=null)w[Nr]=Ks0(G0(f[Nr][SN]),h);return w},Ks0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return G(w)})},Zs0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return ar(w,h)})},Js0=(f,h)=>{let w={};if(f[p]!=null)w[p]=G(f[p]);if(f[y0]!=null)w[y0]=G(f[y0]);return w},Vs0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return Js0(w,h)})},Ps0=(f,h)=>{let w={};if(f[YC]!=null)w[YC]=G(f[YC]);if(f[A$]!=null)w[A$]=G(f[A$]);return w},Hs0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return G(w)})},Ns0=(f,h)=>{let w={};if(f[kf]!=null)w[kf]=G(f[kf]);if(f[yf]!=null)w[yf]=G(f[yf]);if(f[Of]!=null)w[Of]=G(f[Of]);return w},rk=(f,h)=>{let w={};if(f[kf]!=null)w[kf]=G(f[kf]);if(f[J6]!=null)w[J6]=G(f[J6]);if(f[yf]!=null)w[yf]=G(f[yf]);if(f[V6]!=null)w[V6]=G(f[V6]);if(f[Of]!=null)w[Of]=G(f[Of]);if(f[RC]!=null)w[RC]=G(f[RC]);return w},Ds0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return rk(w,h)})},qs0=(f,h)=>{let w={};if(f[wT]!=null)w[wT]=G(f[wT]);if(f[TT]!=null)w[TT]=G(f[TT]);if(f[Yw]!=null)w[Yw]=Qs0(f[Yw],h);if(f[Ww]!=null)w[Ww]=M0(f[Ww]);return w},XT=(f,h)=>{let w={};if(f[I0]!=null)w[I0]=G(f[I0]);if(f[q0]!=null)w[q0]=G(f[q0]);if(f[I$]!=null)w[I$]=Fk(f[I$],h);if(f[Kw]!=null)w[Kw]=ks0(f[Kw],h);if(f[Aw]!=null)w[Aw]=E1(f[Aw]);if(f[N6]!=null)w[N6]=Ss0(f[N6],h);return w},ks0=(f,h)=>{let w={};if(f[dh]!=null)w[dh]=G(f[dh]);if(f[Gf]!=null)w[Gf]=M0(f[Gf]);if(f[Z0]!=null)w[Z0]=G(f[Z0]);if(f[cr]!=null)w[cr]=G(f[cr]);if(f[br]!=null)w[br]=G(f[br]);if(f[xr]!=null)w[xr]=G(f[xr]);if(f[Rw]!=null)w[Rw]=M0(f[Rw]);if(f[If]!=null)w[If]=M0(f[If]);if(f[zw]!=null)w[zw]=e0(f[zw]);if(f[Bf]!=null)w[Bf]=e0(f[Bf]);if(f[Ff]!=null)w[Ff]=e0(f[Ff]);if(f[Lf]!=null)w[Lf]=M0(f[Lf]);if(f.ChildHealthChecks==="")w[Bw]=[];else if(f[Bw]!=null&&f[Bw][PC]!=null)w[Bw]=Ws0(G0(f[Bw][PC]),h);if(f[Cf]!=null)w[Cf]=e0(f[Cf]);if(f.Regions==="")w[Gw]=[];else if(f[Gw]!=null&&f[Gw][u0]!=null)w[Gw]=js0(G0(f[Gw][u0]),h);if(f[qf]!=null)w[qf]=Ls0(f[qf],h);if(f[ir]!=null)w[ir]=G(f[ir]);if(f[CT]!=null)w[CT]=G(f[CT]);return w},ys0=(f,h)=>{let w={};if(f[u0]!=null)w[u0]=G(f[u0]);if(f[dh]!=null)w[dh]=G(f[dh]);if(f[SC]!=null)w[SC]=ts0(f[SC],h);return w},Ek=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return ys0(w,h)})},js0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return G(w)})},Os0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return XT(w,h)})},ST=(f,h)=>{let w={};if(f[I0]!=null)w[I0]=G(f[I0]);if(f[p]!=null)w[p]=G(f[p]);if(f[q0]!=null)w[q0]=G(f[q0]);if(f[q6]!=null)w[q6]=ls0(f[q6],h);if(f[BC]!=null)w[BC]=E1(f[BC]);if(f[I$]!=null)w[I$]=Fk(f[I$],h);return w},ls0=(f,h)=>{let w={};if(f[F0]!=null)w[F0]=G(f[F0]);if(f[B$]!=null)w[B$]=e0(f[B$]);return w},vs0=(f,h)=>{let w={};if(f[Z0]!=null)w[Z0]=G(f[Z0]);if(f[y0]!=null)w[y0]=E1(f[y0]);return w},bs0=(f,h)=>{let w={};if(f[TC]!=null)w[TC]=G(f[TC]);if(f[UC]!=null)w[UC]=G(f[UC]);return w},Tk=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return ST(w,h)})},ms0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return ds0(w,h)})},ds0=(f,h)=>{let w={};if(f[h0]!=null)w[h0]=G(f[h0]);if(f[p]!=null)w[p]=G(f[p]);if(f[EC]!=null)w[EC]=bs0(f[EC],h);return w},Uk=(f,h)=>{let w={};if(f[p]!=null)w[p]=G(f[p]);if(f[c6]!=null)w[c6]=G(f[c6]);if(f[m6]!=null)w[m6]=M0(f[m6]);if(f[AC]!=null)w[AC]=G(f[AC]);if(f[zC]!=null)w[zC]=M0(f[zC]);if(f[k6]!=null)w[k6]=G(f[k6]);if(f[y6]!=null)w[y6]=M0(f[y6]);if(f[_6]!=null)w[_6]=M0(f[_6]);if(f[l6]!=null)w[l6]=G(f[l6]);if(f[FC]!=null)w[FC]=G(f[FC]);if(f[O6]!=null)w[O6]=G(f[O6]);if(f[j6]!=null)w[j6]=G(f[j6]);if(f[A1]!=null)w[A1]=G(f[A1]);if(f[A$]!=null)w[A$]=G(f[A$]);if(f[Z6]!=null)w[Z6]=j(a$(f[Z6]));if(f[n6]!=null)w[n6]=j(a$(f[n6]));return w},is0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return Uk(w,h)})},Fk=(f,h)=>{let w={};if(f[XC]!=null)w[XC]=G(f[XC]);if(f[v6]!=null)w[v6]=G(f[v6]);return w},cs0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return gs0(w,h)})},gs0=(f,h)=>{let w={};if(f[U1]!=null)w[U1]=G(f[U1]);return w},HC=(f,h)=>{let w={};if(f[I0]!=null)w[I0]=G(f[I0]);if(f[h0]!=null)w[h0]=G(f[h0]);if(f[$T]!=null)w[$T]=G(f[$T]);return w},xs0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return HC(w,h)})},_s0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return G(w)})},ns0=(f,h)=>{let w={};if(f[y0]!=null)w[y0]=G(f[y0]);return w},es0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return ns0(w,h)})},as0=(f,h)=>{let w={};if(f[p]!=null)w[p]=G(f[p]);if(f[Z0]!=null)w[Z0]=G(f[Z0]);if(f[W$]!=null)w[W$]=G(f[W$]);if(f[R$]!=null)w[R$]=E1(f[R$]);if(f[u0]!=null)w[u0]=G(f[u0]);if(f[Mw]!=null)w[Mw]=Ns0(f[Mw],h);if(f[C$]!=null)w[C$]=G(f[C$]);if(f[L$]!=null)w[L$]=e0(f[L$]);if(f[o0]!=null)w[o0]=E1(f[o0]);if(f.ResourceRecords==="")w[r$]=[];else if(f[r$]!=null&&f[r$][zT]!=null)w[r$]=es0(G0(f[r$][zT]),h);if(f[Xw]!=null)w[Xw]=Bs0(f[Xw],h);if(f[dr]!=null)w[dr]=G(f[dr]);if(f[BT]!=null)w[BT]=G(f[BT]);if(f[Sw]!=null)w[Sw]=Xs0(f[Sw],h);if(f[Qw]!=null)w[Qw]=qs0(f[Qw],h);return w},ps0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return as0(w,h)})},Ck=(f,h)=>{let w={};if(f[GC]!=null)w[GC]=G(f[GC]);if(f[jf]!=null)w[jf]=G(f[jf]);if(f.Tags==="")w[lr]=[];else if(f[lr]!=null&&f[lr][RT]!=null)w[lr]=h$0(G0(f[lr][RT]),h);return w},os0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return Ck(w,h)})},us0=(f,h)=>{let w={};if(f[Z0]!=null)w[Z0]=G(f[Z0]);if(f[y0]!=null)w[y0]=E1(f[y0]);return w},ts0=(f,h)=>{let w={};if(f[A1]!=null)w[A1]=G(f[A1]);if(f[H6]!=null)w[H6]=j(a$(f[H6]));return w},f$0=(f,h)=>{let w={};if(f[Zw]!=null)w[Zw]=G(f[Zw]);if(f[y0]!=null)w[y0]=G(f[y0]);return w},h$0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return f$0(w,h)})},w$0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return pr(w,h)})},pr=(f,h)=>{let w={};if(f[I0]!=null)w[I0]=G(f[I0]);if(f[Th]!=null)w[Th]=M0(f[Th]);if(f[p]!=null)w[p]=G(f[p]);if(f[Z0]!=null)w[Z0]=G(f[Z0]);if(f[$h]!=null)w[$h]=G(f[$h]);if(f[F0]!=null)w[F0]=G(f[F0]);return w},YT=(f,h)=>{let w={};if(f[I0]!=null)w[I0]=G(f[I0]);if(f[h0]!=null)w[h0]=G(f[h0]);if(f[p]!=null)w[p]=G(f[p]);if(f[o0]!=null)w[o0]=E1(f[o0]);if(f[QC]!=null)w[QC]=G(f[QC]);if(f[v0]!=null)w[v0]=G(f[v0]);if(f[z$]!=null)w[z$]=G(f[z$]);if(f[g1]!=null)w[g1]=M0(f[g1]);if(f[JC]!=null)w[JC]=G(f[JC]);return w},NC=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return YT(w,h)})},s$0=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return $$0(w,h)})},$$0=(f,h)=>{let w={};if(f[I0]!=null)w[I0]=G(f[I0]);if(f[p]!=null)w[p]=G(f[p]);if(f[Z0]!=null)w[Z0]=G(f[Z0]);if(f[e6]!=null)w[e6]=M0(f[e6]);if(f[KC]!=null)w[KC]=M0(f[KC]);return w},DC=(f,h)=>{let w={};if(f[nr]!=null)w[nr]=G(f[nr]);if(f[_r]!=null)w[_r]=G(f[_r]);return w},Ik=(f,h)=>{return(f||[]).filter((w)=>w!=null).map((w)=>{return DC(w,h)})},Z=(f)=>({httpStatusCode:f.statusCode,requestId:f.headers["x-amzn-requestid"]??f.headers["x-amzn-request-id"]??f.headers["x-amz-request-id"],extendedRequestId:f.headers["x-amz-id-2"],cfId:f.headers["x-amz-cf-id"]});var E$="Action",r$0="AliasHealthEnabled",qf="AlarmIdentifier",E$0="AlarmName",T$0="AddTags",Xw="AliasTarget",U$0="AssociateVPCComment",F$0="AssociateVPCWithHostedZoneRequest",wT="AWSRegion",T$="Arn",Ww="Bias",F0="Comment",C$0="ChangeAction",sT="ChangeBatch",Sr="CidrBlocks",K6="CidrBlock",kf="ContinentCode",I$0="CidrCollectionChange",L$0="CidrCollectionChangeAction",B$0="ChangeCidrCollectionRequest",G$0="CreateCidrCollectionRequest",Yr="CidrCollections",yf="CountryCode",Z6="CreatedDate",Bw="ChildHealthChecks",W$0="CreateHealthCheckRequest",PC="ChildHealthCheck",A$0="CreateHostedZoneRequest",$0="ChangeInfo",Mr="CheckerIpRanges",U$="CollectionId",z$0="CreateKeySigningKeyRequest",Qr="CidrLocations",R$0="CidrLocationNameDefaultAllowed",X$0="CidrLocationNameDefaultNotAllowed",S$0="CidrList",Y$0="CidrNonce",M$0="CollectionName",J6="ContinentName",V6="CountryName",P6="ComparisonOperator",Q$0="CreateQueryLoggingConfigRequest",q0="CallerReference",Sw="CidrRoutingConfig",K$0="CreateReusableDelegationSetRequest",Z$0="ChangeResourceRecordSetsRequest",H6="CheckedTime",J$0="ChangeTagsForResourceRequest",V$0="CreateTrafficPolicyInstanceRequest",P$0="CreateTrafficPolicyRequest",H$0="CreateTrafficPolicyVersionRequest",hT="CollectionVersion",N$0="CreateVPCAssociationAuthorizationRequest",N6="CloudWatchAlarmConfiguration",$T="CloudWatchLogsLogGroupArn",D$0="CloudWatchRegion",Lk="Changes",Bk="Change",zN="Cidr",D6="Collection",q6="Config",Yw="Coordinates",sh="Count",$h="Document",k6="DigestAlgorithmMnemonic",y6="DigestAlgorithmType",j6="DNSKEYRecord",Wf="DNSName",Q1="DelegationSet",rT="DelegationSetId",O6="DSRecord",Kr="DelegationSets",l6="DigestValue",q$0="DeleteVPCAssociationAuthorizationRequest",k$0="DisassociateVPCComment",y$0="DisassociateVPCFromHostedZoneRequest",v6="Description",Ff="Disabled",Zr="Dimensions",RN="Dimension",j$0="EDNS0ClientSubnetIP",O$0="EDNS0ClientSubnetMask",b6="EvaluationPeriods",Cf="EnableSNI",F$="EvaluateTargetHealth",C$="Failover",br="FullyQualifiedDomainName",If="FailureThreshold",m6="Flag",Mw="GeoLocation",l$0="GeoLocationContinentCode",v$0="GeoLocationCountryCode",mr="GeoLocationDetails",Jr="GeoLocationDetailsList",b$0="GeoLocationSubdivisionCode",Qw="GeoProximityLocation",Af="HealthCheck",Kw="HealthCheckConfig",d6="HealthCheckCount",dr="HealthCheckId",m$0="HealthCheckNonce",Hf="HealthCheckObservations",AT="HealthCheckObservation",d$0="HealthCheckRegion",i$0="HealthCheckType",Aw="HealthCheckVersion",Vr="HealthChecks",Lf="HealthThreshold",V1="HostedZone",ET="HostedZoneConfig",i6="HostedZoneCount",h0="HostedZoneId",mh="HostedZoneIdMarker",Pr="HostedZoneSummaries",XN="HostedZoneSummary",c$0="HostedZoneType",Nf="HostedZones",Bf="Inverted",ir="InsufficientDataHealthStatus",dh="IPAddress",g$0="IsPrivateZone",C0="IsTruncated",I0="Id",Zw="Key",c6="KmsArn",g6="KeyManagementServiceArn",x6="KeySigningKey",Hr="KeySigningKeys",_6="KeyTag",Uh="Location",n6="LastModifiedDate",U1="LocationName",I$="LinkedService",x$0="ListTagsForResourcesRequest",e6="LatestVersion",TT="LocalZoneGroup",UT="Latitude",rh="Limit",FT="Longitude",x1="Marker",u="MaxItems",zw="MeasureLatency",a6="MetricName",or="MaxResults",L$="MultiValueAnswer",v0="Message",p="Name",p6="NextContinentCode",o6="NextCountryCode",u6="NextDNSName",t6="NextHostedZoneId",Eh="NextMarker",fC="NextRecordIdentifier",hC="NextRecordName",wC="NextRecordType",Nr="NameServers",sC="NextSubdivisionCode",SN="NameServer",k0="NextToken",$C="Nameserver",rC="Namespace",qC="Nonce",EC="Owner",TC="OwningAccount",UC="OwningService",Gf="Port",FC="PublicKey",B$="PrivateZone",CC="Period",IC="Protocol",ih="QueryLoggingConfig",Dr="QueryLoggingConfigs",Gw="Regions",LC="ResponseCode",CT="RoutingControlArn",kC="ResourceDescription",YN="RecordDataEntry",_$0="RData",qr="RecordData",n$0="ResetElements",MN="ResettableElementName",jf="ResourceId",e$0="ResolverIP",a$0="ResourceIds",Rw="RequestInterval",IT="RecordName",cr="ResourcePath",zT="ResourceRecord",kr="ResourceRecordSets",BC="ResourceRecordSetCount",p$0="ResourceRecordSetFailover",o$0="ResourceRecordSetIdentifier",u$0="ResourceRecordSetMultiValueAnswer",t$0="ResourceRecordSetRegion",fr0="ResourceRecordSetWeight",G$="ResourceRecordSet",hr0="RRType",r$="ResourceRecords",LT="RecordType",wr0="RemoveTagKeys",gr="ResourceTagSet",yr="ResourceTagSets",GC="ResourceType",u0="Region",A1="Status",WC="SubmittedAt",AC="SigningAlgorithmMnemonic",zC="SigningAlgorithmType",Of="SubdivisionCode",sr0="StartContinentCode",$r0="StartCountryCode",W$="SetIdentifier",rr0="SigningKeyName",Er0="SigningKeyString",Tr0="SigningKeyStatus",A$="StatusMessage",RC="SubdivisionName",XC="ServicePrincipal",SC="StatusReport",Ur0="StartRecordIdentifier",Fr0="StartRecordName",Cr0="StartRecordType",xr="SearchString",Ir0="StartSubdivisionCode",YC="ServeSignature",MC="Statistic",QC="State",Z0="Type",Gk="TagKey",K1="TrafficPolicy",yC="TrafficPolicyComment",KC="TrafficPolicyCount",Wk="TrafficPolicyDocument",z$="TrafficPolicyId",ZC="TrafficPolicyInstanceCount",BT="TrafficPolicyInstanceId",GT="TrafficPolicyIdMarker",_1="TrafficPolicyInstanceNameMarker",n1="TrafficPolicyInstanceTypeMarker",z1="TrafficPolicyInstance",W1="TrafficPolicyInstances",Lr0="TrafficPolicyName",jr="TrafficPolicySummaries",QN="TrafficPolicySummary",JC="TrafficPolicyType",g1="TrafficPolicyVersion",WT="TrafficPolicyVersionMarker",Or="TrafficPolicies",Br0="TagResourceId",o0="TTL",Gr0="TagValue",RT="Tag",lr="Tags",VC="Threshold",Wr0="UpdateHealthCheckRequest",Ar0="UpdateHostedZoneCommentRequest",zr0="UpdateTrafficPolicyCommentRequest",Rr0="UpdateTrafficPolicyInstanceRequest",Xr0="UUID",y0="Value",P0="VPC",_r="VPCId",nr="VPCRegion",Df="VPCs",Th="Version",R$="Weight",Sr0="continentcode",Yr0="countrycode",Mr0="delegationsetid",Qr0="dnsname",Kr0="edns0clientsubnetip",Zr0="edns0clientsubnetmask",Jr0="hostedzonetype",ur="hostedzoneid",Vr0="identifier",Ak="id",lf="location",tr="maxresults",a1="maxitems",jC="marker",zf="member",S="message",vr="messages",X$="nexttoken",Pr0="name",Hr0="recordname",Nr0="recordtype",Dr0="resolverip",qr0="subdivisioncode",kr0="startcontinentcode",yr0="startcountrycode",jr0="startsubdivisioncode",Or0="type",lr0="trafficpolicyid",OC="trafficpolicyinstancename",lC="trafficpolicyinstancetype",vr0="trafficpolicyversion",br0="vpcid",c0='<?xml version="1.0" encoding="UTF-8"?>',mr0="version",dr0="vpcregion";class vC extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","ActivateKeySigningKey",{}).n("Route53Client","ActivateKeySigningKeyCommand").f(void 0,void 0).ser(KN).de(mD).build(){}D();k();J();class bC extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","AssociateVPCWithHostedZone",{}).n("Route53Client","AssociateVPCWithHostedZoneCommand").f(void 0,void 0).ser(ZN).de(dD).build(){}D();k();J();class mC extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","ChangeCidrCollection",{}).n("Route53Client","ChangeCidrCollectionCommand").f(void 0,void 0).ser(JN).de(iD).build(){}D();k();J();class dC extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),GN(w),O(w)]}).s("AWSDnsV20130401","ChangeResourceRecordSets",{}).n("Route53Client","ChangeResourceRecordSetsCommand").f(void 0,void 0).ser(VN).de(cD).build(){}D();k();J();class iC extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ChangeTagsForResource",{}).n("Route53Client","ChangeTagsForResourceCommand").f(void 0,void 0).ser(PN).de(gD).build(){}D();k();J();class cC extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","CreateCidrCollection",{}).n("Route53Client","CreateCidrCollectionCommand").f(void 0,void 0).ser(HN).de(xD).build(){}D();k();J();class gC extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","CreateHealthCheck",{}).n("Route53Client","CreateHealthCheckCommand").f(void 0,void 0).ser(NN).de(_D).build(){}D();k();J();class xC extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","CreateHostedZone",{}).n("Route53Client","CreateHostedZoneCommand").f(void 0,void 0).ser(DN).de(nD).build(){}D();k();J();class _C extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","CreateKeySigningKey",{}).n("Route53Client","CreateKeySigningKeyCommand").f(void 0,void 0).ser(qN).de(eD).build(){}D();k();J();class nC extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","CreateQueryLoggingConfig",{}).n("Route53Client","CreateQueryLoggingConfigCommand").f(void 0,void 0).ser(kN).de(aD).build(){}D();k();J();class eC extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","CreateReusableDelegationSet",{}).n("Route53Client","CreateReusableDelegationSetCommand").f(void 0,void 0).ser(yN).de(pD).build(){}D();k();J();class aC extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","CreateTrafficPolicy",{}).n("Route53Client","CreateTrafficPolicyCommand").f(void 0,void 0).ser(jN).de(oD).build(){}D();k();J();class pC extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","CreateTrafficPolicyInstance",{}).n("Route53Client","CreateTrafficPolicyInstanceCommand").f(void 0,void 0).ser(ON).de(uD).build(){}D();k();J();class oC extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","CreateTrafficPolicyVersion",{}).n("Route53Client","CreateTrafficPolicyVersionCommand").f(void 0,void 0).ser(lN).de(tD).build(){}D();k();J();class uC extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","CreateVPCAssociationAuthorization",{}).n("Route53Client","CreateVPCAssociationAuthorizationCommand").f(void 0,void 0).ser(vN).de(fq).build(){}D();k();J();class tC extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","DeactivateKeySigningKey",{}).n("Route53Client","DeactivateKeySigningKeyCommand").f(void 0,void 0).ser(bN).de(hq).build(){}D();k();J();class fI extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","DeleteCidrCollection",{}).n("Route53Client","DeleteCidrCollectionCommand").f(void 0,void 0).ser(mN).de(wq).build(){}D();k();J();class hI extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","DeleteHealthCheck",{}).n("Route53Client","DeleteHealthCheckCommand").f(void 0,void 0).ser(dN).de(sq).build(){}D();k();J();class wI extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","DeleteHostedZone",{}).n("Route53Client","DeleteHostedZoneCommand").f(void 0,void 0).ser(iN).de($q).build(){}D();k();J();class sI extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","DeleteKeySigningKey",{}).n("Route53Client","DeleteKeySigningKeyCommand").f(void 0,void 0).ser(cN).de(rq).build(){}D();k();J();class $I extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","DeleteQueryLoggingConfig",{}).n("Route53Client","DeleteQueryLoggingConfigCommand").f(void 0,void 0).ser(gN).de(Eq).build(){}D();k();J();class rI extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","DeleteReusableDelegationSet",{}).n("Route53Client","DeleteReusableDelegationSetCommand").f(void 0,void 0).ser(xN).de(Tq).build(){}D();k();J();class EI extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","DeleteTrafficPolicy",{}).n("Route53Client","DeleteTrafficPolicyCommand").f(void 0,void 0).ser(_N).de(Uq).build(){}D();k();J();class TI extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","DeleteTrafficPolicyInstance",{}).n("Route53Client","DeleteTrafficPolicyInstanceCommand").f(void 0,void 0).ser(nN).de(Fq).build(){}D();k();J();class UI extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","DeleteVPCAssociationAuthorization",{}).n("Route53Client","DeleteVPCAssociationAuthorizationCommand").f(void 0,void 0).ser(eN).de(Cq).build(){}D();k();J();class FI extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","DisableHostedZoneDNSSEC",{}).n("Route53Client","DisableHostedZoneDNSSECCommand").f(void 0,void 0).ser(aN).de(Iq).build(){}D();k();J();class CI extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","DisassociateVPCFromHostedZone",{}).n("Route53Client","DisassociateVPCFromHostedZoneCommand").f(void 0,void 0).ser(pN).de(Lq).build(){}D();k();J();class II extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","EnableHostedZoneDNSSEC",{}).n("Route53Client","EnableHostedZoneDNSSECCommand").f(void 0,void 0).ser(oN).de(Bq).build(){}D();k();J();class LI extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetAccountLimit",{}).n("Route53Client","GetAccountLimitCommand").f(void 0,void 0).ser(uN).de(Gq).build(){}D();k();J();class BI extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","GetChange",{}).n("Route53Client","GetChangeCommand").f(void 0,void 0).ser(tN).de(Wq).build(){}D();k();J();class GI extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetCheckerIpRanges",{}).n("Route53Client","GetCheckerIpRangesCommand").f(void 0,void 0).ser(fD).de(Aq).build(){}D();k();J();class WI extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","GetDNSSEC",{}).n("Route53Client","GetDNSSECCommand").f(void 0,void 0).ser(hD).de(zq).build(){}D();k();J();class AI extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetGeoLocation",{}).n("Route53Client","GetGeoLocationCommand").f(void 0,void 0).ser(wD).de(Rq).build(){}D();k();J();class zI extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetHealthCheck",{}).n("Route53Client","GetHealthCheckCommand").f(void 0,void 0).ser(sD).de(Xq).build(){}D();k();J();class RI extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetHealthCheckCount",{}).n("Route53Client","GetHealthCheckCountCommand").f(void 0,void 0).ser($D).de(Sq).build(){}D();k();J();class XI extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetHealthCheckLastFailureReason",{}).n("Route53Client","GetHealthCheckLastFailureReasonCommand").f(void 0,void 0).ser(rD).de(Yq).build(){}D();k();J();class SI extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetHealthCheckStatus",{}).n("Route53Client","GetHealthCheckStatusCommand").f(void 0,void 0).ser(ED).de(Mq).build(){}D();k();J();class YI extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","GetHostedZone",{}).n("Route53Client","GetHostedZoneCommand").f(void 0,void 0).ser(TD).de(Qq).build(){}D();k();J();class MI extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetHostedZoneCount",{}).n("Route53Client","GetHostedZoneCountCommand").f(void 0,void 0).ser(UD).de(Kq).build(){}D();k();J();class QI extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","GetHostedZoneLimit",{}).n("Route53Client","GetHostedZoneLimitCommand").f(void 0,void 0).ser(FD).de(Zq).build(){}D();k();J();class KI extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","GetQueryLoggingConfig",{}).n("Route53Client","GetQueryLoggingConfigCommand").f(void 0,void 0).ser(CD).de(Jq).build(){}D();k();J();class ZI extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","GetReusableDelegationSet",{}).n("Route53Client","GetReusableDelegationSetCommand").f(void 0,void 0).ser(ID).de(Vq).build(){}D();k();J();class JI extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","GetReusableDelegationSetLimit",{}).n("Route53Client","GetReusableDelegationSetLimitCommand").f(void 0,void 0).ser(LD).de(Pq).build(){}D();k();J();class VI extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","GetTrafficPolicy",{}).n("Route53Client","GetTrafficPolicyCommand").f(void 0,void 0).ser(BD).de(Hq).build(){}D();k();J();class PI extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","GetTrafficPolicyInstance",{}).n("Route53Client","GetTrafficPolicyInstanceCommand").f(void 0,void 0).ser(GD).de(Nq).build(){}D();k();J();class HI extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetTrafficPolicyInstanceCount",{}).n("Route53Client","GetTrafficPolicyInstanceCountCommand").f(void 0,void 0).ser(WD).de(Dq).build(){}D();k();J();class NI extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListCidrBlocks",{}).n("Route53Client","ListCidrBlocksCommand").f(void 0,void 0).ser(AD).de(qq).build(){}D();k();J();class DI extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListCidrCollections",{}).n("Route53Client","ListCidrCollectionsCommand").f(void 0,void 0).ser(zD).de(kq).build(){}D();k();J();class qI extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListCidrLocations",{}).n("Route53Client","ListCidrLocationsCommand").f(void 0,void 0).ser(RD).de(yq).build(){}D();k();J();class kI extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListGeoLocations",{}).n("Route53Client","ListGeoLocationsCommand").f(void 0,void 0).ser(XD).de(jq).build(){}D();k();J();class yI extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListHealthChecks",{}).n("Route53Client","ListHealthChecksCommand").f(void 0,void 0).ser(SD).de(Oq).build(){}D();k();J();class jI extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","ListHostedZonesByName",{}).n("Route53Client","ListHostedZonesByNameCommand").f(void 0,void 0).ser(MD).de(vq).build(){}D();k();J();class OI extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListHostedZonesByVPC",{}).n("Route53Client","ListHostedZonesByVPCCommand").f(void 0,void 0).ser(QD).de(bq).build(){}D();k();J();class lI extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","ListHostedZones",{}).n("Route53Client","ListHostedZonesCommand").f(void 0,void 0).ser(YD).de(lq).build(){}D();k();J();class vI extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","ListQueryLoggingConfigs",{}).n("Route53Client","ListQueryLoggingConfigsCommand").f(void 0,void 0).ser(KD).de(mq).build(){}D();k();J();class bI extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","ListResourceRecordSets",{}).n("Route53Client","ListResourceRecordSetsCommand").f(void 0,void 0).ser(ZD).de(dq).build(){}D();k();J();class mI extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListReusableDelegationSets",{}).n("Route53Client","ListReusableDelegationSetsCommand").f(void 0,void 0).ser(JD).de(iq).build(){}D();k();J();class dI extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListTagsForResource",{}).n("Route53Client","ListTagsForResourceCommand").f(void 0,void 0).ser(VD).de(cq).build(){}D();k();J();class iI extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListTagsForResources",{}).n("Route53Client","ListTagsForResourcesCommand").f(void 0,void 0).ser(PD).de(gq).build(){}D();k();J();class cI extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListTrafficPolicies",{}).n("Route53Client","ListTrafficPoliciesCommand").f(void 0,void 0).ser(HD).de(xq).build(){}D();k();J();class gI extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","ListTrafficPolicyInstancesByHostedZone",{}).n("Route53Client","ListTrafficPolicyInstancesByHostedZoneCommand").f(void 0,void 0).ser(DD).de(nq).build(){}D();k();J();class xI extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListTrafficPolicyInstancesByPolicy",{}).n("Route53Client","ListTrafficPolicyInstancesByPolicyCommand").f(void 0,void 0).ser(qD).de(eq).build(){}D();k();J();class _I extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListTrafficPolicyInstances",{}).n("Route53Client","ListTrafficPolicyInstancesCommand").f(void 0,void 0).ser(ND).de(_q).build(){}D();k();J();class nI extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","ListTrafficPolicyVersions",{}).n("Route53Client","ListTrafficPolicyVersionsCommand").f(void 0,void 0).ser(kD).de(aq).build(){}D();k();J();class eI extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","ListVPCAssociationAuthorizations",{}).n("Route53Client","ListVPCAssociationAuthorizationsCommand").f(void 0,void 0).ser(yD).de(pq).build(){}D();k();J();class aI extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","TestDNSAnswer",{}).n("Route53Client","TestDNSAnswerCommand").f(void 0,void 0).ser(jD).de(oq).build(){}D();k();J();class pI extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","UpdateHealthCheck",{}).n("Route53Client","UpdateHealthCheckCommand").f(void 0,void 0).ser(OD).de(uq).build(){}D();k();J();class oI extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","UpdateHostedZoneComment",{}).n("Route53Client","UpdateHostedZoneCommentCommand").f(void 0,void 0).ser(lD).de(tq).build(){}D();k();J();class uI extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","UpdateTrafficPolicyComment",{}).n("Route53Client","UpdateTrafficPolicyCommentCommand").f(void 0,void 0).ser(vD).de(fk).build(){}D();k();J();class tI extends A.classBuilder().ep(K).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions()),O(w)]}).s("AWSDnsV20130401","UpdateTrafficPolicyInstance",{}).n("Route53Client","UpdateTrafficPolicyInstanceCommand").f(void 0,void 0).ser(bD).de(hk).build(){}var ir0={ActivateKeySigningKeyCommand:vC,AssociateVPCWithHostedZoneCommand:bC,ChangeCidrCollectionCommand:mC,ChangeResourceRecordSetsCommand:dC,ChangeTagsForResourceCommand:iC,CreateCidrCollectionCommand:cC,CreateHealthCheckCommand:gC,CreateHostedZoneCommand:xC,CreateKeySigningKeyCommand:_C,CreateQueryLoggingConfigCommand:nC,CreateReusableDelegationSetCommand:eC,CreateTrafficPolicyCommand:aC,CreateTrafficPolicyInstanceCommand:pC,CreateTrafficPolicyVersionCommand:oC,CreateVPCAssociationAuthorizationCommand:uC,DeactivateKeySigningKeyCommand:tC,DeleteCidrCollectionCommand:fI,DeleteHealthCheckCommand:hI,DeleteHostedZoneCommand:wI,DeleteKeySigningKeyCommand:sI,DeleteQueryLoggingConfigCommand:$I,DeleteReusableDelegationSetCommand:rI,DeleteTrafficPolicyCommand:EI,DeleteTrafficPolicyInstanceCommand:TI,DeleteVPCAssociationAuthorizationCommand:UI,DisableHostedZoneDNSSECCommand:FI,DisassociateVPCFromHostedZoneCommand:CI,EnableHostedZoneDNSSECCommand:II,GetAccountLimitCommand:LI,GetChangeCommand:BI,GetCheckerIpRangesCommand:GI,GetDNSSECCommand:WI,GetGeoLocationCommand:AI,GetHealthCheckCommand:zI,GetHealthCheckCountCommand:RI,GetHealthCheckLastFailureReasonCommand:XI,GetHealthCheckStatusCommand:SI,GetHostedZoneCommand:YI,GetHostedZoneCountCommand:MI,GetHostedZoneLimitCommand:QI,GetQueryLoggingConfigCommand:KI,GetReusableDelegationSetCommand:ZI,GetReusableDelegationSetLimitCommand:JI,GetTrafficPolicyCommand:VI,GetTrafficPolicyInstanceCommand:PI,GetTrafficPolicyInstanceCountCommand:HI,ListCidrBlocksCommand:NI,ListCidrCollectionsCommand:DI,ListCidrLocationsCommand:qI,ListGeoLocationsCommand:kI,ListHealthChecksCommand:yI,ListHostedZonesCommand:lI,ListHostedZonesByNameCommand:jI,ListHostedZonesByVPCCommand:OI,ListQueryLoggingConfigsCommand:vI,ListResourceRecordSetsCommand:bI,ListReusableDelegationSetsCommand:mI,ListTagsForResourceCommand:dI,ListTagsForResourcesCommand:iI,ListTrafficPoliciesCommand:cI,ListTrafficPolicyInstancesCommand:_I,ListTrafficPolicyInstancesByHostedZoneCommand:gI,ListTrafficPolicyInstancesByPolicyCommand:xI,ListTrafficPolicyVersionsCommand:nI,ListVPCAssociationAuthorizationsCommand:eI,TestDNSAnswerCommand:aI,UpdateHealthCheckCommand:pI,UpdateHostedZoneCommentCommand:oI,UpdateTrafficPolicyCommentCommand:uI,UpdateTrafficPolicyInstanceCommand:tI};class ch extends M6{}Ts(ir0,ch);r4();E4();T4();m$();Qh();var S$=o(m0(),1);$5();D();Ew();J();var zk=o(O0(),1);gf();var Rk=async(f,h,w)=>{return{operation:Yh(h).operation,region:await B1(f.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};function cr0(f){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"route53domains",region:f.region},propertiesExtractor:(h,w)=>({signingProperties:{config:h,context:w}})}}var Xk=(f)=>{let h=[];switch(f.operation){default:h.push(cr0(f))}return h},Sk=(f)=>{let h=zk.resolveAwsSdkSigV4Config(f);return Object.assign(h,{})};var Yk=(f)=>{return Object.assign(f,{useDualstackEndpoint:f.useDualstackEndpoint??!1,useFipsEndpoint:f.useFipsEndpoint??!1,defaultSigningName:"route53domains"})},c={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var Mk={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.775.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/core":"3.775.0","@aws-sdk/credential-provider-node":"3.775.0","@aws-sdk/middleware-host-header":"3.775.0","@aws-sdk/middleware-logger":"3.775.0","@aws-sdk/middleware-recursion-detection":"3.775.0","@aws-sdk/middleware-user-agent":"3.775.0","@aws-sdk/region-config-resolver":"3.775.0","@aws-sdk/types":"3.775.0","@aws-sdk/util-endpoints":"3.775.0","@aws-sdk/util-user-agent-browser":"3.775.0","@aws-sdk/util-user-agent-node":"3.775.0","@smithy/config-resolver":"^4.1.0","@smithy/core":"^3.2.0","@smithy/fetch-http-handler":"^5.0.2","@smithy/hash-node":"^4.0.2","@smithy/invalid-dependency":"^4.0.2","@smithy/middleware-content-length":"^4.0.2","@smithy/middleware-endpoint":"^4.1.0","@smithy/middleware-retry":"^4.1.0","@smithy/middleware-serde":"^4.0.3","@smithy/middleware-stack":"^4.0.2","@smithy/node-config-provider":"^4.0.2","@smithy/node-http-handler":"^4.0.4","@smithy/protocol-http":"^5.1.0","@smithy/smithy-client":"^4.2.0","@smithy/types":"^4.2.0","@smithy/url-parser":"^4.0.2","@smithy/util-base64":"^4.0.0","@smithy/util-body-length-browser":"^4.0.0","@smithy/util-body-length-node":"^4.0.0","@smithy/util-defaults-mode-browser":"^4.0.8","@smithy/util-defaults-mode-node":"^4.0.8","@smithy/util-endpoints":"^3.0.2","@smithy/util-middleware":"^4.0.2","@smithy/util-retry":"^4.0.2","@smithy/util-utf8":"^4.0.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node18":"18.2.4","@types/node":"^18.19.69",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~5.2.2"},engines:{node:">=18.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 lk=o(O0(),1);XE();Qh();SE();Ew();Jh();hr();YE();wf();var jk=o(O0(),1);J();uw();ME();bs();N$();cf();var Qk={["required"]:!1,type:"String"},Kk={["required"]:!0,default:!1,type:"Boolean"},Zk={["ref"]:"Endpoint"},Dk={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},qk={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},vf={},Jk={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},Vk={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsDualStack"]}]},Pk=[Dk],Hk=[qk],Nk=[{["ref"]:"Region"}],xr0={version:"1.0",parameters:{Region:Qk,UseDualStack:Kk,UseFIPS:Kk,Endpoint:Qk},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[Zk]}],rules:[{conditions:Pk,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:Hk,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:Zk,properties:vf,headers:vf},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:Nk}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:Nk,assign:"PartitionResult"}],rules:[{conditions:[Dk,qk],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,Jk]},Vk],rules:[{endpoint:{url:"https://route53domains-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:Pk,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[Jk,!0]}],rules:[{endpoint:{url:"https://route53domains-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:Hk,rules:[{conditions:[Vk],rules:[{endpoint:{url:"https://route53domains.{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://route53domains.{Region}.{PartitionResult#dnsSuffix}",properties:vf,headers:vf},type:"endpoint"}],type:"tree"}],type:"tree"},{error:"Invalid Configuration: Missing Region",type:"error"}]},kk=xr0;var _r0=new _h({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),yk=(f,h={})=>{return _r0.get(f,()=>nh(kk,{endpointParams:f,logger:h.logger}))};t1.aws=eh;var Ok=(f)=>{return{apiVersion:"2014-05-15",base64Decoder:f?.base64Decoder??ds,base64Encoder:f?.base64Encoder??is,disableHostPrefix:f?.disableHostPrefix??!1,endpointProvider:f?.endpointProvider??yk,extensions:f?.extensions??[],httpAuthSchemeProvider:f?.httpAuthSchemeProvider??Xk,httpAuthSchemes:f?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(h)=>h.getIdentityProvider("aws.auth#sigv4"),signer:new jk.AwsSdkSigV4Signer}],logger:f?.logger??new nf,serviceId:f?.serviceId??"Route 53 Domains",urlParser:f?.urlParser??O1,utf8Decoder:f?.utf8Decoder??Vf,utf8Encoder:f?.utf8Encoder??vs}};J();QE();J();var vk=(f)=>{Is(process.version);let h=cs(f),w=()=>h().then(Cs),s=Ok(f);lk.emitWarningIfUnsupportedVersion(process.version);let $={profile:f?.profile};return{...s,...f,runtime:"node",defaultsMode:h,bodyLengthChecker:f?.bodyLengthChecker??ms,credentialDefaultProvider:f?.credentialDefaultProvider??lE,defaultUserAgentProvider:f?.defaultUserAgentProvider??ys({serviceId:s.serviceId,clientVersion:Mk.version}),maxAttempts:f?.maxAttempts??z0(ss,f),region:f?.region??z0(Mh,{...nw,...$}),requestHandler:rf.create(f?.requestHandler??w),retryMode:f?.retryMode??z0({...rs,default:async()=>(await w()).retryMode||Vh},f),sha256:f?.sha256??Cw.bind(null,"sha256"),streamCollector:f?.streamCollector??zs,useDualstackEndpoint:f?.useDualstackEndpoint??z0(xw,$),useFipsEndpoint:f?.useFipsEndpoint??z0(_w,$),userAgentAppId:f?.userAgentAppId??z0(js,$)}};KE();C1();J();var bk=(f)=>{let{httpAuthSchemes:h,httpAuthSchemeProvider:w,credentials:s}=f;return{setHttpAuthScheme($){let r=h.findIndex((E)=>E.schemeId===$.schemeId);if(r===-1)h.push($);else h.splice(r,1,$)},httpAuthSchemes(){return h},setHttpAuthSchemeProvider($){w=$},httpAuthSchemeProvider(){return w},setCredentials($){s=$},credentials(){return s}}},mk=(f)=>{return{httpAuthSchemes:f.httpAuthSchemes(),httpAuthSchemeProvider:f.httpAuthSchemeProvider(),credentials:f.credentials()}};var dk=(f,h)=>{let w=Object.assign(gs(f),Ls(f),Jw(f),bk(f));return h.forEach((s)=>s.configure(w)),Object.assign(f,xs(w),Bs(w),Vw(w),mk(w))};class fL extends $w{config;constructor(...[f]){let h=vk(f||{});super(h);this.initConfig=h;let w=Yk(h),s=Ow(w),$=$s(s),r=ew($),E=Pw(r),T=tw(E),U=Sk(T),F=dk(U,f?.extensions||[]);this.config=F,this.middlewareStack.use(cw(this.config)),this.middlewareStack.use(Ws(this.config)),this.middlewareStack.use(aw(this.config)),this.middlewareStack.use(Hw(this.config)),this.middlewareStack.use(Nw(this.config)),this.middlewareStack.use(Dw(this.config)),this.middlewareStack.use(S$.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:Rk,identityProviderConfigProvider:async(C)=>new S$.DefaultIdentityProviderConfig({"aws.auth#sigv4":C.credentials})})),this.middlewareStack.use(S$.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}J();D();k();J();J();J();class p1 extends $f{constructor(f){super(f);Object.setPrototypeOf(this,p1.prototype)}}class MT extends p1{name="DomainLimitExceeded";$fault="client";constructor(f){super({name:"DomainLimitExceeded",$fault:"client",...f});Object.setPrototypeOf(this,MT.prototype)}}class QT extends p1{name="InvalidInput";$fault="client";constructor(f){super({name:"InvalidInput",$fault:"client",...f});Object.setPrototypeOf(this,QT.prototype)}}class KT extends p1{name="OperationLimitExceeded";$fault="client";constructor(f){super({name:"OperationLimitExceeded",$fault:"client",...f});Object.setPrototypeOf(this,KT.prototype)}}class ZT extends p1{name="UnsupportedTLD";$fault="client";constructor(f){super({name:"UnsupportedTLD",$fault:"client",...f});Object.setPrototypeOf(this,ZT.prototype)}}class JT extends p1{name="DnssecLimitExceeded";$fault="client";constructor(f){super({name:"DnssecLimitExceeded",$fault:"client",...f});Object.setPrototypeOf(this,JT.prototype)}}class VT extends p1{name="DuplicateRequest";$fault="client";requestId;constructor(f){super({name:"DuplicateRequest",$fault:"client",...f});Object.setPrototypeOf(this,VT.prototype),this.requestId=f.requestId}}class PT extends p1{name="TLDRulesViolation";$fault="client";constructor(f){super({name:"TLDRulesViolation",$fault:"client",...f});Object.setPrototypeOf(this,PT.prototype)}}var ik=(f)=>({...f,...f.Password&&{Password:U0}}),ck=(f)=>({...f,...f.AuthCode&&{AuthCode:U0}});var gk=(f)=>({...f,...f.AdminContact&&{AdminContact:U0},...f.RegistrantContact&&{RegistrantContact:U0},...f.TechContact&&{TechContact:U0},...f.AbuseContactEmail&&{AbuseContactEmail:U0},...f.AbuseContactPhone&&{AbuseContactPhone:U0},...f.BillingContact&&{BillingContact:U0}}),xk=(f)=>({...f,...f.AdminContact&&{AdminContact:U0},...f.RegistrantContact&&{RegistrantContact:U0},...f.TechContact&&{TechContact:U0},...f.BillingContact&&{BillingContact:U0}}),_k=(f)=>({...f,...f.emailAddress&&{emailAddress:U0}}),nk=(f)=>({...f,...f.AuthCode&&{AuthCode:U0}}),ek=(f)=>({...f,...f.AuthCode&&{AuthCode:U0},...f.AdminContact&&{AdminContact:U0},...f.RegistrantContact&&{RegistrantContact:U0},...f.TechContact&&{TechContact:U0},...f.BillingContact&&{BillingContact:U0}}),ak=(f)=>({...f,...f.Password&&{Password:U0}}),pk=(f)=>({...f,...f.AdminContact&&{AdminContact:U0},...f.RegistrantContact&&{RegistrantContact:U0},...f.TechContact&&{TechContact:U0},...f.BillingContact&&{BillingContact:U0}}),ok=(f)=>({...f,...f.FIAuthKey&&{FIAuthKey:U0}});var s0=o(O0(),1);C1();J();var uk=async(f,h)=>{let w=T0("AcceptDomainTransferFromAnotherAwsAccount"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},tk=async(f,h)=>{let w=T0("AssociateDelegationSignerToDomain"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},fy=async(f,h)=>{let w=T0("CancelDomainTransferToAnotherAwsAccount"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},hy=async(f,h)=>{let w=T0("CheckDomainAvailability"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},wy=async(f,h)=>{let w=T0("CheckDomainTransferability"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},sy=async(f,h)=>{let w=T0("DeleteDomain"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},$y=async(f,h)=>{let w=T0("DeleteTagsForDomain"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},ry=async(f,h)=>{let w=T0("DisableDomainAutoRenew"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Ey=async(f,h)=>{let w=T0("DisableDomainTransferLock"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Ty=async(f,h)=>{let w=T0("DisassociateDelegationSignerFromDomain"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Uy=async(f,h)=>{let w=T0("EnableDomainAutoRenew"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Fy=async(f,h)=>{let w=T0("EnableDomainTransferLock"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Cy=async(f,h)=>{let w=T0("GetContactReachabilityStatus"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Iy=async(f,h)=>{let w=T0("GetDomainDetail"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Ly=async(f,h)=>{let w=T0("GetDomainSuggestions"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},By=async(f,h)=>{let w=T0("GetOperationDetail"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Gy=async(f,h)=>{let w=T0("ListDomains"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Wy=async(f,h)=>{let w=T0("ListOperations"),s;return s=JSON.stringify(h40(f,h)),E0(h,w,"/",void 0,s)},Ay=async(f,h)=>{let w=T0("ListPrices"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},zy=async(f,h)=>{let w=T0("ListTagsForDomain"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Ry=async(f,h)=>{let w=T0("PushDomain"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Xy=async(f,h)=>{let w=T0("RegisterDomain"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Sy=async(f,h)=>{let w=T0("RejectDomainTransferFromAnotherAwsAccount"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Yy=async(f,h)=>{let w=T0("RenewDomain"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},My=async(f,h)=>{let w=T0("ResendContactReachabilityEmail"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Qy=async(f,h)=>{let w=T0("ResendOperationAuthorization"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Ky=async(f,h)=>{let w=T0("RetrieveDomainAuthCode"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Zy=async(f,h)=>{let w=T0("TransferDomain"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Jy=async(f,h)=>{let w=T0("TransferDomainToAnotherAwsAccount"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Vy=async(f,h)=>{let w=T0("UpdateDomainContact"),s;return s=JSON.stringify(w40(f,h)),E0(h,w,"/",void 0,s)},Py=async(f,h)=>{let w=T0("UpdateDomainContactPrivacy"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Hy=async(f,h)=>{let w=T0("UpdateDomainNameservers"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Ny=async(f,h)=>{let w=T0("UpdateTagsForDomain"),s;return s=JSON.stringify(v(f)),E0(h,w,"/",void 0,s)},Dy=async(f,h)=>{let w=T0("ViewBilling"),s;return s=JSON.stringify(s40(f,h)),E0(h,w,"/",void 0,s)},qy=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},ky=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},yy=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},jy=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},Oy=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},ly=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},vy=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},by=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},my=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},dy=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},iy=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},cy=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},gy=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},xy=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=C40(w,h),{$metadata:f0(f),...s}},_y=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},ny=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=I40(w,h),{$metadata:f0(f),...s}},ey=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=L40(w,h),{$metadata:f0(f),...s}},ay=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=B40(w,h),{$metadata:f0(f),...s}},py=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=G40(w,h),{$metadata:f0(f),...s}},oy=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},uy=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);return await G1.collectBody(f.body,h),{$metadata:f0(f)}},ty=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},fj=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},hj=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},wj=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},sj=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);return await G1.collectBody(f.body,h),{$metadata:f0(f)}},$j=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},rj=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},Ej=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},Tj=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},Uj=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},Fj=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},Cj=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=v(w),{$metadata:f0(f),...s}},Ij=async(f,h)=>{if(f.statusCode>=300)return r0(f,h);let w=await s0.parseJsonBody(f.body,h),s={};return s=z40(w,h),{$metadata:f0(f),...s}},r0=async(f,h)=>{let w={...f,body:await s0.parseJsonErrorBody(f.body,h)},s=s0.loadRestJsonErrorCode(f,w.body);switch(s){case"DomainLimitExceeded":case"com.amazonaws.route53domains#DomainLimitExceeded":throw await er0(w,h);case"InvalidInput":case"com.amazonaws.route53domains#InvalidInput":throw await pr0(w,h);case"OperationLimitExceeded":case"com.amazonaws.route53domains#OperationLimitExceeded":throw await or0(w,h);case"UnsupportedTLD":case"com.amazonaws.route53domains#UnsupportedTLD":throw await tr0(w,h);case"DnssecLimitExceeded":case"com.amazonaws.route53domains#DnssecLimitExceeded":throw await nr0(w,h);case"DuplicateRequest":case"com.amazonaws.route53domains#DuplicateRequest":throw await ar0(w,h);case"TLDRulesViolation":case"com.amazonaws.route53domains#TLDRulesViolation":throw await ur0(w,h);default:let $=w.body;return R40({output:f,parsedBody:$,errorCode:s})}},nr0=async(f,h)=>{let w=f.body,s=v(w),$=new JT({$metadata:f0(f),...s});return l($,w)},er0=async(f,h)=>{let w=f.body,s=v(w),$=new MT({$metadata:f0(f),...s});return l($,w)},ar0=async(f,h)=>{let w=f.body,s=v(w),$=new VT({$metadata:f0(f),...s});return l($,w)},pr0=async(f,h)=>{let w=f.body,s=v(w),$=new QT({$metadata:f0(f),...s});return l($,w)},or0=async(f,h)=>{let w=f.body,s=v(w),$=new KT({$metadata:f0(f),...s});return l($,w)},ur0=async(f,h)=>{let w=f.body,s=v(w),$=new PT({$metadata:f0(f),...s});return l($,w)},tr0=async(f,h)=>{let w=f.body,s=v(w),$=new ZT({$metadata:f0(f),...s});return l($,w)},f40=(f,h)=>{return N0(f,{Currency:[],MaxPrice:sY})},h40=(f,h)=>{return N0(f,{Marker:[],MaxItems:[],SortBy:[],SortOrder:[],Status:v,SubmittedSince:(w)=>w.getTime()/1000,Type:v})},w40=(f,h)=>{return N0(f,{AdminContact:v,BillingContact:v,Consent:(w)=>f40(w,h),DomainName:[],RegistrantContact:v,TechContact:v})},s40=(f,h)=>{return N0(f,{End:(w)=>w.getTime()/1000,Marker:[],MaxItems:[],Start:(w)=>w.getTime()/1000})},$40=(f,h)=>{return N0(f,{BillDate:(w)=>j(Qf(Y1(w))),DomainName:G,InvoiceId:G,Operation:G,Price:lF})},r40=(f,h)=>{return(f||[]).filter((s)=>s!=null).map((s)=>{return $40(s,h)})},E40=(f,h)=>{return N0(f,{ChangeOwnershipPrice:(w)=>f4(w,h),Name:G,RegistrationPrice:(w)=>f4(w,h),RenewalPrice:(w)=>f4(w,h),RestorationPrice:(w)=>f4(w,h),TransferPrice:(w)=>f4(w,h)})},T40=(f,h)=>{return(f||[]).filter((s)=>s!=null).map((s)=>{return E40(s,h)})},U40=(f,h)=>{return N0(f,{AutoRenew:Hh,DomainName:G,Expiry:(w)=>j(Qf(Y1(w))),TransferLock:Hh})},F40=(f,h)=>{return(f||[]).filter((s)=>s!=null).map((s)=>{return U40(s,h)})},C40=(f,h)=>{return N0(f,{AbuseContactEmail:G,AbuseContactPhone:G,AdminContact:v,AdminPrivacy:Hh,AutoRenew:Hh,BillingContact:v,BillingPrivacy:Hh,CreationDate:(w)=>j(Qf(Y1(w))),DnsSec:G,DnssecKeys:v,DomainName:G,ExpirationDate:(w)=>j(Qf(Y1(w))),Nameservers:v,RegistrantContact:v,RegistrantPrivacy:Hh,RegistrarName:G,RegistrarUrl:G,RegistryDomainId:G,Reseller:G,StatusList:v,TechContact:v,TechPrivacy:Hh,UpdatedDate:(w)=>j(Qf(Y1(w))),WhoIsServer:G})},I40=(f,h)=>{return N0(f,{DomainName:G,LastUpdatedDate:(w)=>j(Qf(Y1(w))),Message:G,OperationId:G,Status:G,StatusFlag:G,SubmittedDate:(w)=>j(Qf(Y1(w))),Type:G})},L40=(f,h)=>{return N0(f,{Domains:(w)=>F40(w,h),NextPageMarker:G})},B40=(f,h)=>{return N0(f,{NextPageMarker:G,Operations:(w)=>A40(w,h)})},G40=(f,h)=>{return N0(f,{NextPageMarker:G,Prices:(w)=>T40(w,h)})},W40=(f,h)=>{return N0(f,{DomainName:G,LastUpdatedDate:(w)=>j(Qf(Y1(w))),Message:G,OperationId:G,Status:G,StatusFlag:G,SubmittedDate:(w)=>j(Qf(Y1(w))),Type:G})},A40=(f,h)=>{return(f||[]).filter((s)=>s!=null).map((s)=>{return W40(s,h)})},f4=(f,h)=>{return N0(f,{Currency:G,Price:lF})},z40=(f,h)=>{return N0(f,{BillingRecords:(w)=>r40(w,h),NextPageMarker:G})},f0=(f)=>({httpStatusCode:f.statusCode,requestId:f.headers["x-amzn-requestid"]??f.headers["x-amzn-request-id"]??f.headers["x-amz-request-id"],extendedRequestId:f.headers["x-amz-id-2"],cfId:f.headers["x-amz-cf-id"]});var R40=Fs(p1),E0=async(f,h,w,s,$)=>{let{hostname:r,protocol:E="https",port:T,path:U}=await f.endpoint(),F={protocol:E,hostname:r,port:T,method:"POST",path:U.endsWith("/")?U.slice(0,-1)+w:U+w,headers:h};if(s!==void 0)F.hostname=s;if($!==void 0)F.body=$;return new n0(F)};function T0(f){return{"content-type":"application/x-amz-json-1.1","x-amz-target":`Route53Domains_v20140515.${f}`}}class hL extends A.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","AcceptDomainTransferFromAnotherAwsAccount",{}).n("Route53DomainsClient","AcceptDomainTransferFromAnotherAwsAccountCommand").f(ik,void 0).ser(uk).de(qy).build(){}D();k();J();class wL extends A.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","AssociateDelegationSignerToDomain",{}).n("Route53DomainsClient","AssociateDelegationSignerToDomainCommand").f(void 0,void 0).ser(tk).de(ky).build(){}D();k();J();class sL extends A.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","CancelDomainTransferToAnotherAwsAccount",{}).n("Route53DomainsClient","CancelDomainTransferToAnotherAwsAccountCommand").f(void 0,void 0).ser(fy).de(yy).build(){}D();k();J();class $L extends A.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","CheckDomainAvailability",{}).n("Route53DomainsClient","CheckDomainAvailabilityCommand").f(void 0,void 0).ser(hy).de(jy).build(){}D();k();J();class rL extends A.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","CheckDomainTransferability",{}).n("Route53DomainsClient","CheckDomainTransferabilityCommand").f(ck,void 0).ser(wy).de(Oy).build(){}D();k();J();class EL extends A.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","DeleteDomain",{}).n("Route53DomainsClient","DeleteDomainCommand").f(void 0,void 0).ser(sy).de(ly).build(){}D();k();J();class TL extends A.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","DeleteTagsForDomain",{}).n("Route53DomainsClient","DeleteTagsForDomainCommand").f(void 0,void 0).ser($y).de(vy).build(){}D();k();J();class UL extends A.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","DisableDomainAutoRenew",{}).n("Route53DomainsClient","DisableDomainAutoRenewCommand").f(void 0,void 0).ser(ry).de(by).build(){}D();k();J();class FL extends A.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","DisableDomainTransferLock",{}).n("Route53DomainsClient","DisableDomainTransferLockCommand").f(void 0,void 0).ser(Ey).de(my).build(){}D();k();J();class CL extends A.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","DisassociateDelegationSignerFromDomain",{}).n("Route53DomainsClient","DisassociateDelegationSignerFromDomainCommand").f(void 0,void 0).ser(Ty).de(dy).build(){}D();k();J();class IL extends A.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","EnableDomainAutoRenew",{}).n("Route53DomainsClient","EnableDomainAutoRenewCommand").f(void 0,void 0).ser(Uy).de(iy).build(){}D();k();J();class LL extends A.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","EnableDomainTransferLock",{}).n("Route53DomainsClient","EnableDomainTransferLockCommand").f(void 0,void 0).ser(Fy).de(cy).build(){}D();k();J();class BL extends A.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","GetContactReachabilityStatus",{}).n("Route53DomainsClient","GetContactReachabilityStatusCommand").f(void 0,void 0).ser(Cy).de(gy).build(){}D();k();J();class GL extends A.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","GetDomainDetail",{}).n("Route53DomainsClient","GetDomainDetailCommand").f(void 0,gk).ser(Iy).de(xy).build(){}D();k();J();class WL extends A.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","GetDomainSuggestions",{}).n("Route53DomainsClient","GetDomainSuggestionsCommand").f(void 0,void 0).ser(Ly).de(_y).build(){}D();k();J();class AL extends A.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","GetOperationDetail",{}).n("Route53DomainsClient","GetOperationDetailCommand").f(void 0,void 0).ser(By).de(ny).build(){}D();k();J();class zL extends A.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ListDomains",{}).n("Route53DomainsClient","ListDomainsCommand").f(void 0,void 0).ser(Gy).de(ey).build(){}D();k();J();class RL extends A.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ListOperations",{}).n("Route53DomainsClient","ListOperationsCommand").f(void 0,void 0).ser(Wy).de(ay).build(){}D();k();J();class XL extends A.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ListPrices",{}).n("Route53DomainsClient","ListPricesCommand").f(void 0,void 0).ser(Ay).de(py).build(){}D();k();J();class SL extends A.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ListTagsForDomain",{}).n("Route53DomainsClient","ListTagsForDomainCommand").f(void 0,void 0).ser(zy).de(oy).build(){}D();k();J();class YL extends A.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","PushDomain",{}).n("Route53DomainsClient","PushDomainCommand").f(void 0,void 0).ser(Ry).de(uy).build(){}D();k();J();class ML extends A.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","RegisterDomain",{}).n("Route53DomainsClient","RegisterDomainCommand").f(xk,void 0).ser(Xy).de(ty).build(){}D();k();J();class QL extends A.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","RejectDomainTransferFromAnotherAwsAccount",{}).n("Route53DomainsClient","RejectDomainTransferFromAnotherAwsAccountCommand").f(void 0,void 0).ser(Sy).de(fj).build(){}D();k();J();class KL extends A.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","RenewDomain",{}).n("Route53DomainsClient","RenewDomainCommand").f(void 0,void 0).ser(Yy).de(hj).build(){}D();k();J();class ZL extends A.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ResendContactReachabilityEmail",{}).n("Route53DomainsClient","ResendContactReachabilityEmailCommand").f(void 0,_k).ser(My).de(wj).build(){}D();k();J();class JL extends A.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ResendOperationAuthorization",{}).n("Route53DomainsClient","ResendOperationAuthorizationCommand").f(void 0,void 0).ser(Qy).de(sj).build(){}D();k();J();class VL extends A.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","RetrieveDomainAuthCode",{}).n("Route53DomainsClient","RetrieveDomainAuthCodeCommand").f(void 0,nk).ser(Ky).de($j).build(){}D();k();J();class PL extends A.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","TransferDomain",{}).n("Route53DomainsClient","TransferDomainCommand").f(ek,void 0).ser(Zy).de(rj).build(){}D();k();J();class HL extends A.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","TransferDomainToAnotherAwsAccount",{}).n("Route53DomainsClient","TransferDomainToAnotherAwsAccountCommand").f(void 0,ak).ser(Jy).de(Ej).build(){}D();k();J();class NL extends A.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","UpdateDomainContact",{}).n("Route53DomainsClient","UpdateDomainContactCommand").f(pk,void 0).ser(Vy).de(Tj).build(){}D();k();J();class DL extends A.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","UpdateDomainContactPrivacy",{}).n("Route53DomainsClient","UpdateDomainContactPrivacyCommand").f(void 0,void 0).ser(Py).de(Uj).build(){}D();k();J();class qL extends A.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","UpdateDomainNameservers",{}).n("Route53DomainsClient","UpdateDomainNameserversCommand").f(ok,void 0).ser(Hy).de(Fj).build(){}D();k();J();class kL extends A.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","UpdateTagsForDomain",{}).n("Route53DomainsClient","UpdateTagsForDomainCommand").f(void 0,void 0).ser(Ny).de(Cj).build(){}D();k();J();class yL extends A.classBuilder().ep(c).m(function(f,h,w,s){return[z(w,this.serialize,this.deserialize),R(w,f.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ViewBilling",{}).n("Route53DomainsClient","ViewBillingCommand").f(void 0,void 0).ser(Dy).de(Ij).build(){}var X40={AcceptDomainTransferFromAnotherAwsAccountCommand:hL,AssociateDelegationSignerToDomainCommand:wL,CancelDomainTransferToAnotherAwsAccountCommand:sL,CheckDomainAvailabilityCommand:$L,CheckDomainTransferabilityCommand:rL,DeleteDomainCommand:EL,DeleteTagsForDomainCommand:TL,DisableDomainAutoRenewCommand:UL,DisableDomainTransferLockCommand:FL,DisassociateDelegationSignerFromDomainCommand:CL,EnableDomainAutoRenewCommand:IL,EnableDomainTransferLockCommand:LL,GetContactReachabilityStatusCommand:BL,GetDomainDetailCommand:GL,GetDomainSuggestionsCommand:WL,GetOperationDetailCommand:AL,ListDomainsCommand:zL,ListOperationsCommand:RL,ListPricesCommand:XL,ListTagsForDomainCommand:SL,PushDomainCommand:YL,RegisterDomainCommand:ML,RejectDomainTransferFromAnotherAwsAccountCommand:QL,RenewDomainCommand:KL,ResendContactReachabilityEmailCommand:ZL,ResendOperationAuthorizationCommand:JL,RetrieveDomainAuthCodeCommand:VL,TransferDomainCommand:PL,TransferDomainToAnotherAwsAccountCommand:HL,UpdateDomainContactCommand:NL,UpdateDomainContactPrivacyCommand:DL,UpdateDomainNameserversCommand:qL,UpdateTagsForDomainCommand:kL,ViewBillingCommand:yL};class h4 extends fL{}Ts(X40,h4);import{runAction as S40}from"@stacksjs/actions";import{config as Bj}from"@stacksjs/config";import{Action as Y40}from"@stacksjs/enums";import{err as Fh,handleError as bf,ok as Y$}from"@stacksjs/error-handling";import{log as P1}from"@stacksjs/logging";import{path as M40}from"@stacksjs/path";import{fs as Lj}from"@stacksjs/storage";async function WO0(f){let h=new ch,w=await h.listHostedZonesByName({DNSName:f});if(!w||!w.HostedZones)return Fh(bf(`No hosted zones found for domain: ${f}`));let s=w.HostedZones.find((r)=>r.Name===`${f}.`);if(!s)return Fh(bf(`Hosted Zone not found for domain: ${f}`));let $=await h.listResourceRecordSets({HostedZoneId:s.Id});if(!$||!$.ResourceRecordSets)return Fh(bf(`No DNS records found for domain: ${f}`));for(let r of $.ResourceRecordSets)if(r.Type!=="NS"&&r.Type!=="SOA")await h.changeResourceRecordSets({HostedZoneId:s.Id,ChangeBatch:{Changes:[{Action:"DELETE",ResourceRecordSet:r}]}});return await h.deleteHostedZone({Id:s.Id}),P1.info(`Deleted Hosted Zone for domain: ${f}`),Y$("success")}async function AO0(f){let h=new ch,w=await h.listHostedZonesByName({DNSName:f});if(!w||!w.HostedZones)return Fh(bf(`No hosted zones found for domain: ${f}`));let s=w.HostedZones.find((r)=>r.Name===`${f}.`);if(!s)return Fh(bf(`Hosted Zone not found for domain: ${f}`));let $=await h.listResourceRecordSets({HostedZoneId:s.Id});if(!$||!$.ResourceRecordSets)return Fh(bf(`No DNS records found for domain: ${f}`));for(let r of $.ResourceRecordSets)if(r.Type!=="NS"&&r.Type!=="SOA")await h.changeResourceRecordSets({HostedZoneId:s.Id,ChangeBatch:{Changes:[{Action:"DELETE",ResourceRecordSet:r}]}});return P1.info(`Deleted DNS records for domain: ${f}`),Y$("success")}async function zO0(f){let h=new ch,s=(await h.listHostedZonesByName({DNSName:f})).HostedZones?.find((r)=>r.Name===`${f}.`);if(s)return Y$(s);let $=await h.createHostedZone({Name:f,CallerReference:`${Date.now()}`});if(!$.HostedZone)return Fh(bf("Failed to create hosted zone"));return Y$($)}function Q40(f){try{let h=M40.projectConfigPath("dns.ts"),s=Lj.readFileSync(h,"utf-8").replace(/nameservers: \[.*?\]/s,`nameservers: [${f.map(($)=>`'${$}'`).join(", ")}]`);Lj.writeFileSync(h,s,"utf-8"),P1.info("Nameservers have been set.")}catch(h){console.error("Error updating nameservers:",h)}}async function RO0(f){try{let h=new ch,{HostedZones:w}=await h.listHostedZonesByName({DNSName:f});if(!w)return Fh(bf(`No hosted zones found for domain ${f}`));let s=w[0];if(s&&s.Name===`${f}.`)return Y$(s.Id);return Y$(null)}catch(h){return Fh(bf(`Failed to find hosted zone for domain ${f}`,h))}}async function K40(f){if(P1.debug("Getting nameservers for domain:",f),!f)return[];try{return(await new h4().getDomainDetail({DomainName:f}))?.Nameservers?.map((s)=>s.Name)||[]}catch(h){bf("Error getting domain detail",h)}}async function Z40(f,h){if(!h)h=Bj.app.url;let w=await K40(h);if(w&&f&&JSON.stringify(w.sort())!==JSON.stringify(f.sort()))return P1.info("Updating your domain nameservers to match the ones in your hosted zone..."),P1.debug("Hosted zone nameservers:",f),P1.debug("Domain nameservers:",w),await new h4().updateDomainNameservers({DomainName:h,Nameservers:f.map(($)=>({Name:$}))}),Q40(f),P1.info("Nameservers updated."),!0;P1.success("Your nameservers are up to date.")}async function XO0(f){if(P1.debug("Checking if domain has been added to cloud..."),!f)f=Bj.app.url;P1.debug("domainName:",f);let h=new ch,w=await h.listHostedZonesByName({DNSName:f});if(P1.debug("Existing hosted zones:",w),!w||!w.HostedZones)return!1;let s=w.HostedZones.find(($)=>$.Name===`${f}.`);if(s){P1.debug("Hosted zone found:",s);let r=(await h.getHostedZone({Id:s.Id})).DelegationSet?.NameServers||[];return await Z40(r,f),!0}return!1}async function SO0(f){return await S40(Y40.DomainsAdd,f)}import{Buffer as Xj}from"node:buffer";import{Buffer as dL}from"node:buffer";import O40 from"node:dgram";import l40 from"node:https";import v40 from"node:net";import b40 from"node:tls";import{URL as Wj}from"node:url";import{promises as m40}from"node:fs";import{platform as d40}from"node:os";var J40=Object.create,{getPrototypeOf:V40,defineProperty:Gj,getOwnPropertyNames:P40}=Object,H40=Object.prototype.hasOwnProperty,N40=(f,h,w)=>{w=f!=null?J40(V40(f)):{};let s=h||!f||!f.__esModule?Gj(w,"default",{value:f,enumerable:!0}):w;for(let $ of P40(f))if(!H40.call(s,$))Gj(s,$,{get:()=>f[$],enumerable:!0});return s},D40=(f,h)=>()=>(h||f((h={exports:{}}).exports,h),h.exports),q40=D40((f,h)=>{var w=process||{},s=w.argv||[],$=w.env||{},r=!(!!$.NO_COLOR||s.includes("--no-color"))&&(!!$.FORCE_COLOR||s.includes("--color")||w.platform==="win32"||(w.stdout||{}).isTTY&&$.TERM!=="dumb"||!!$.CI),E=(F,C,I=F)=>(L)=>{let W=""+L,X=W.indexOf(C,F.length);return~X?F+T(W,C,I,X)+C:F+W+C},T=(F,C,I,L)=>{let W="",X=0;do W+=F.substring(X,L)+I,X=L+C.length,L=F.indexOf(C,X);while(~L);return W+F.substring(X)},U=(F=r)=>{let C=F?E:()=>String;return{isColorSupported:F,reset:C("\x1B[0m","\x1B[0m"),bold:C("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:C("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:C("\x1B[3m","\x1B[23m"),underline:C("\x1B[4m","\x1B[24m"),inverse:C("\x1B[7m","\x1B[27m"),hidden:C("\x1B[8m","\x1B[28m"),strikethrough:C("\x1B[9m","\x1B[29m"),black:C("\x1B[30m","\x1B[39m"),red:C("\x1B[31m","\x1B[39m"),green:C("\x1B[32m","\x1B[39m"),yellow:C("\x1B[33m","\x1B[39m"),blue:C("\x1B[34m","\x1B[39m"),magenta:C("\x1B[35m","\x1B[39m"),cyan:C("\x1B[36m","\x1B[39m"),white:C("\x1B[37m","\x1B[39m"),gray:C("\x1B[90m","\x1B[39m"),bgBlack:C("\x1B[40m","\x1B[49m"),bgRed:C("\x1B[41m","\x1B[49m"),bgGreen:C("\x1B[42m","\x1B[49m"),bgYellow:C("\x1B[43m","\x1B[49m"),bgBlue:C("\x1B[44m","\x1B[49m"),bgMagenta:C("\x1B[45m","\x1B[49m"),bgCyan:C("\x1B[46m","\x1B[49m"),bgWhite:C("\x1B[47m","\x1B[49m"),blackBright:C("\x1B[90m","\x1B[39m"),redBright:C("\x1B[91m","\x1B[39m"),greenBright:C("\x1B[92m","\x1B[39m"),yellowBright:C("\x1B[93m","\x1B[39m"),blueBright:C("\x1B[94m","\x1B[39m"),magentaBright:C("\x1B[95m","\x1B[39m"),cyanBright:C("\x1B[96m","\x1B[39m"),whiteBright:C("\x1B[97m","\x1B[39m"),bgBlackBright:C("\x1B[100m","\x1B[49m"),bgRedBright:C("\x1B[101m","\x1B[49m"),bgGreenBright:C("\x1B[102m","\x1B[49m"),bgYellowBright:C("\x1B[103m","\x1B[49m"),bgBlueBright:C("\x1B[104m","\x1B[49m"),bgMagentaBright:C("\x1B[105m","\x1B[49m"),bgCyanBright:C("\x1B[106m","\x1B[49m"),bgWhiteBright:C("\x1B[107m","\x1B[49m")}};h.exports=U(),h.exports.createColors=U}),gh;((f)=>{f[f.A=1]="A",f[f.NS=2]="NS",f[f.CNAME=5]="CNAME",f[f.SOA=6]="SOA",f[f.PTR=12]="PTR",f[f.MX=15]="MX",f[f.TXT=16]="TXT",f[f.AAAA=28]="AAAA",f[f.SRV=33]="SRV",f[f.NAPTR=35]="NAPTR",f[f.OPT=41]="OPT",f[f.SSHFP=44]="SSHFP",f[f.TLSA=52]="TLSA",f[f.DNSKEY=48]="DNSKEY",f[f.CAA=257]="CAA"})(gh||={});var vL;((f)=>{f[f.IN=1]="IN",f[f.CH=3]="CH",f[f.HS=4]="HS"})(vL||={});var Aj;((f)=>{f.Disable="disable",f.Hide="hide",f.Show="show"})(Aj||={});var zj;((f)=>{f[f.NoError=0]="NoError",f[f.FormErr=1]="FormErr",f[f.ServFail=2]="ServFail",f[f.NXDomain=3]="NXDomain",f[f.NotImp=4]="NotImp",f[f.Refused=5]="Refused",f[f.YXDomain=6]="YXDomain",f[f.YXRRSet=7]="YXRRSet",f[f.NXRRSet=8]="NXRRSet",f[f.NotAuth=9]="NotAuth",f[f.NotZone=10]="NotZone"})(zj||={});var Rj;((f)=>{f.TruncatedPacket="TRUNCATED_PACKET",f.InvalidLength="INVALID_LENGTH",f.InvalidFormat="INVALID_FORMAT",f.InvalidName="INVALID_NAME",f.InvalidLabel="INVALID_LABEL",f.InvalidPointer="INVALID_POINTER",f.InvalidType="INVALID_TYPE",f.InvalidClass="INVALID_CLASS",f.NetworkError="NETWORK_ERROR"})(Rj||={});function k40(f){if(!f)return;let h=Array.isArray(f)?f:[f],w={};for(let s of h)if(s==="aa"||s==="authoritative")w.authoritative=!0;else if(s==="ad"||s==="authentic")w.authenticData=!0;else if(s==="cd"||s==="checking-disabled")w.checkingDisabled=!0;else if(s.startsWith("bufsize="))w.udpPayloadSize=Number.parseInt(s.split("=")[1]);return w}function S0(f,h,w){if(w)console.debug(`[dnsx:${f}] ${h}`)}var y40=12,j40=63;class w4{response=!1;opcode=0;authoritative=!1;truncated=!1;recursionDesired=!1;recursionAvailable=!1;authenticData=!1;checkingDisabled=!1;responseCode=0;static fromBuffer(f){let h=new w4,w=f.readUInt16BE(0);return h.response=(w&32768)!==0,h.opcode=(w&30720)>>>11,h.authoritative=(w&1024)!==0,h.truncated=(w&512)!==0,h.recursionDesired=(w&256)!==0,h.recursionAvailable=(w&128)!==0,h.authenticData=(w&32)!==0,h.checkingDisabled=(w&16)!==0,h.responseCode=w&15,h}toBuffer(){let f=Xj.alloc(2),h=0;if(this.response)h|=32768;if(h|=(this.opcode&15)<<11,this.authoritative)h|=1024;if(this.truncated)h|=512;if(this.recursionDesired)h|=256;if(this.recursionAvailable)h|=128;if(this.authenticData)h|=32;if(this.checkingDisabled)h|=16;return h|=this.responseCode&15,f.writeUInt16BE(h,0),f}}class bL{buffer;offset;nameOffsets;verbose;constructor(f=512,h){this.buffer=Xj.alloc(f),this.offset=0,this.nameOffsets=new Map,this.verbose=h}writeHeader(f,h,w){S0("encoder",`Writing DNS header: ${JSON.stringify({id:f,flags:{response:h.response,opcode:h.opcode,recursionDesired:h.recursionDesired},counts:w})}`,this.verbose),this.writeUint16(f);let s=h.toBuffer();this.buffer.set(s,this.offset),this.offset+=2,this.writeUint16(w.qdcount),this.writeUint16(w.ancount),this.writeUint16(w.nscount),this.writeUint16(w.arcount)}writeName(f){S0("encoder",`Writing DNS name: ${f}`,this.verbose);let h=f.split(".");for(let w of h){if(w.length>j40)throw new Error(`Label too long: ${w}`);this.buffer[this.offset++]=w.length,this.buffer.write(w,this.offset),this.offset+=w.length}this.buffer[this.offset++]=0}writeQuestion(f){this.writeName(f.name),this.writeUint16(f.type),this.writeUint16(f.class)}writeUint16(f){this.buffer.writeUInt16BE(f,this.offset),this.offset+=2}writeUint32(f){this.buffer.writeUInt32BE(f,this.offset),this.offset+=4}getBuffer(){return this.buffer.slice(0,this.offset)}}class mL{buffer;offset;constructor(f){this.buffer=f,this.offset=0}canRead(f){return this.offset+f<=this.buffer.length}readName(){let f=[],h=!1,w=this.offset;for(let s=0;s<5;s++){if(w>=this.buffer.length)throw new Error("Out of bounds access");let $=this.buffer[w];if($===0){if(!h)this.offset=w+1;break}if(($&192)===192){if(!this.canRead(2))throw new Error("Out of bounds access");if(!h)this.offset=w+2,h=!0;w=($&63)<<8|this.buffer[w+1];continue}if(w++,w+$>this.buffer.length)throw new Error("Out of bounds access");let r=this.buffer.slice(w,w+$).toString("ascii");f.push(r),w+=$}return f.join(".")}readHeader(){if(!this.canRead(y40))throw new Error(`Invalid DNS header size: ${this.buffer.length} bytes`);let f=this.readUint16(),h=w4.fromBuffer(this.buffer.slice(this.offset,this.offset+2));this.offset+=2;let w={qdcount:this.readUint16(),ancount:this.readUint16(),nscount:this.readUint16(),arcount:this.readUint16()};return{id:f,flags:h,counts:w}}readQuestion(){let f=this.readName();if(!this.canRead(4))throw new Error("Out of bounds access");let h=this.readUint16(),w=this.readUint16();return{name:f,type:h,class:w}}readAnswer(){let f=this.readName();if(!this.canRead(10))throw new Error("Out of bounds access");let h=this.readUint16(),w=this.readUint16(),s=this.readUint32(),$=this.readUint16();if(!this.canRead($))throw new Error("Out of bounds access");let r=this.readRData(h,$);return{name:f,type:h,class:w,ttl:s,data:r}}readRData(f,h){let w=this.offset,s;switch(f){case 1:if(h!==4)throw new Error("Invalid IPv4 length");s=this.readIPv4();break;case 28:if(h!==16)throw new Error("Invalid IPv6 length");s=this.readIPv6();break;case 15:if(h<3)throw new Error("Invalid MX record length");s={preference:this.readUint16(),exchange:this.readName()};break;case 16:s=this.readString(h);break;case 5:case 2:case 12:s=this.readName();break;default:s=this.buffer.slice(this.offset,this.offset+h).toString("hex"),this.offset+=h}if(this.offset-w!==h)this.offset=w+h;return s}readUint16(){if(!this.canRead(2))throw new Error("Out of bounds access");let f=this.buffer.readUInt16BE(this.offset);return this.offset+=2,f}readUint32(){if(!this.canRead(4))throw new Error("Out of bounds access");let f=this.buffer.readUInt32BE(this.offset);return this.offset+=4,f}readIPv4(){if(!this.canRead(4))throw new Error("Out of bounds access");let f=[];for(let h=0;h<4;h++)f.push(this.buffer[this.offset++]);return f.join(".")}readIPv6(){if(!this.canRead(16))throw new Error("Out of bounds access");let f=[];for(let h=0;h<8;h++)f.push(this.buffer.readUInt16BE(this.offset).toString(16)),this.offset+=2;return f.join(":")}readString(f){if(!this.canRead(f))throw new Error("Out of bounds access");let h=this.buffer.slice(this.offset,this.offset+f).toString();return this.offset+=f,h}}function Sj(f,h={}){let w=new bL(512,h.verbose),s=new w4;s.recursionDesired=!0,s.response=!1;let $=h.txid??h.id??Math.floor(Math.random()*65536);return w.writeHeader($,s,{qdcount:1,ancount:0,nscount:0,arcount:0}),w.writeQuestion({name:f.name,type:typeof f.type==="string"?gh[f.type]:f.type,class:f.class}),w.getBuffer()}function OL(f){let h=new mL(f);if((f.readUInt16BE(2)&32768)===0)throw new Error("Not a DNS response");let{id:w,flags:s,counts:$}=h.readHeader();for(let U=0;U<$.qdcount;U++)h.readQuestion();let r=[];for(let U=0;U<$.ancount;U++)r.push(h.readAnswer());let E=[];for(let U=0;U<$.nscount;U++)E.push(h.readAnswer());let T=[];for(let U=0;U<$.arcount;U++)T.push(h.readAnswer());return{id:w,flags:s,answers:r,authorities:E,additionals:T}}var Yj;((f)=>{f.UDP="udp",f.TCP="tcp",f.TLS="tls",f.HTTPS="https"})(Yj||={});class NT{static DEFAULT_PORT=53;static TIMEOUT=5000;async query(f,h){return new Promise((w,s)=>{let $=O40.createSocket("udp4"),r,E,T=NT.DEFAULT_PORT;if(f.includes(":")){let[F,C]=f.split(":");E=F;let I=Number.parseInt(C,10);if(I>0&&I<65536)T=I}else E=f;$.on("error",(F)=>{clearTimeout(r),$.close(),s(F)}),$.on("message",(F)=>{clearTimeout(r),$.close(),w(F)}),r=setTimeout(()=>{$.close(),s(new Error("UDP query timed out"))},NT.TIMEOUT);let U=new Uint8Array(h.buffer,h.byteOffset,h.length);$.send(U,T,E,(F)=>{if(F)clearTimeout(r),$.close(),s(F)})})}}class DT{static DEFAULT_PORT=53;static TIMEOUT=5000;async query(f,h){return new Promise((w,s)=>{let $=new v40.Socket,r,E=new Uint8Array(0),T=-1;$.on("error",(C)=>{clearTimeout(r),$.destroy(),s(C)}),$.on("data",(C)=>{let I=new Uint8Array(E.length+C.length);if(I.set(E),I.set(new Uint8Array(C.buffer,C.byteOffset,C.length),E.length),E=I,T===-1&&E.length>=2)T=new DataView(E.buffer,E.byteOffset).getUint16(0)+2;if(T!==-1&&E.length>=T)clearTimeout(r),$.destroy(),w(dL.from(E.slice(2,T)))}),r=setTimeout(()=>{$.destroy(),s(new Error("TCP query timed out"))},DT.TIMEOUT);let[U,F=DT.DEFAULT_PORT]=f.split(":");$.connect(Number(F),U,()=>{let C=new Uint8Array(2);new DataView(C.buffer).setUint16(0,h.length);let I=new Uint8Array(h.buffer,h.byteOffset,h.length),L=new Uint8Array(C.length+I.length);L.set(C),L.set(I,C.length),$.write(L,(W)=>{if(W)clearTimeout(r),$.destroy(),s(W)})})})}}class qT{static DEFAULT_PORT=853;static TIMEOUT=5000;async query(f,h){return new Promise((w,s)=>{let $={host:f.split(":")[0],port:Number(f.split(":")[1])||qT.DEFAULT_PORT,servername:f.split(":")[0]},r,E=b40.connect($,()=>{if(!E.authorized){E.destroy(),s(new Error("TLS authorization failed"));return}let F=new Uint8Array(2);new DataView(F.buffer).setUint16(0,h.length);let C=new Uint8Array(h.buffer,h.byteOffset,h.length),I=new Uint8Array(F.length+C.length);I.set(F),I.set(C,F.length),E.write(I,(L)=>{if(L)clearTimeout(r),E.destroy(),s(L)})}),T=new Uint8Array(0),U=-1;E.on("error",(F)=>{clearTimeout(r),E.destroy(),s(F)}),E.on("data",(F)=>{let C=new Uint8Array(T.length+F.length);if(C.set(T),C.set(new Uint8Array(F.buffer,F.byteOffset,F.length),T.length),T=C,U===-1&&T.length>=2)U=new DataView(T.buffer,T.byteOffset).getUint16(0)+2;if(U!==-1&&T.length>=U)clearTimeout(r),E.destroy(),w(dL.from(T.slice(2,U)))}),r=setTimeout(()=>{E.destroy(),s(new Error("TLS query timed out"))},qT.TIMEOUT)})}}class M${static TIMEOUT=5000;static CONTENT_TYPE="application/dns-message";async query(f,h){return new Promise((w,s)=>{let $;try{$=new Wj(f)}catch{$=new Wj(`https://${f}/dns-query`)}let r={method:"POST",headers:{"Content-Type":M$.CONTENT_TYPE,"Content-Length":h.length.toString(),Accept:M$.CONTENT_TYPE},timeout:M$.TIMEOUT},E=l40.request($,r,(T)=>{let U=[];T.on("data",(F)=>{U.push(new Uint8Array(F.buffer,F.byteOffset,F.length))}),T.on("end",()=>{if(T.statusCode!==200){s(new Error(`HTTPS query failed with status ${T.statusCode}`));return}let F=T.headers["content-type"];if(F!==M$.CONTENT_TYPE){s(new Error(`Invalid content type: ${F}`));return}let C=U.reduce((W,X)=>W+X.length,0),I=new Uint8Array(C),L=0;for(let W of U)I.set(W,L),L+=W.length;w(dL.from(I))})});E.on("error",s),E.on("timeout",()=>{E.destroy(),s(new Error("HTTPS query timed out"))}),E.write(new Uint8Array(h.buffer,h.byteOffset,h.length)),E.end()})}}function lL(f){switch(f){case"udp":return new NT;case"tcp":return new DT;case"tls":return new qT;case"https":return new M$}}class H1{options;static DEFAULT_NAMESERVER="1.1.1.1";static RESOLV_CONF_PATH="/etc/resolv.conf";static WINDOWS_DNS_KEY="SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters\\Nameserver";validateDomainName(f){if(f.includes(".."))throw new Error(`Invalid domain name: ${f} (consecutive dots)`);if(f.startsWith(".")||f.endsWith("."))throw new Error(`Invalid domain name: ${f} (starts or ends with dot)`);if(f.length>253)throw new Error(`Domain name too long: ${f}`);let h=f.split(".");for(let w of h){if(w.length>63)throw new Error(`Label too long in domain: ${f}`);if(!/^[a-z0-9-]+$/i.test(w))throw new Error(`Invalid characters in domain label: ${w}`)}}validateRecordType(f){if(typeof f==="string"){if(!(f.toUpperCase()in gh))throw new Error(`Invalid record type: ${f}`)}else if(typeof f==="number"){if(!Object.values(gh).filter((h)=>typeof h==="number").includes(f))throw new Error(`Invalid record type number: ${f}`)}else throw new TypeError("Record type must be string or number")}constructor(f){this.options={transport:{type:"udp"},verbose:!1,...f},this.validateOptions()}async query(){try{let f=this.determineTransportType();S0("client",`Selected transport type: ${f}`,this.options.verbose);let h=lL(f);if(!h)throw new Error(`Failed to create transport for type: ${f}`);let w=[],s=await this.resolveNameserver();if(S0("client",`Resolved nameserver: ${s}`,this.options.verbose),!s)throw new Error("Failed to resolve nameserver");let $=this.buildQueries();S0("client",`Built ${$.length} queries`,this.options.verbose);for(let r of $){S0("client",`Processing query: ${JSON.stringify({query:r,nameserver:s,transportType:f})}`,this.options.verbose);let E=Sj(r,{txid:this.options.txid,edns:this.options.edns,tweaks:this.options.tweaks,verbose:this.options.verbose});S0("client",`Built DNS request: ${JSON.stringify({hexData:E.toString("hex"),length:E.length,txid:E.readUInt16BE(0),flags:E.readUInt16BE(2).toString(16)})}`,this.options.verbose);let T=this.options.retries||3;for(let U=0;U<T;U++)try{S0("client",`Attempt ${U+1}/${T}`,this.options.verbose);let F=await h.query(s,E);if(S0("client",`Received DNS response: ${JSON.stringify({hexData:F.toString("hex"),length:F.length,txid:F.readUInt16BE(0),flags:F.readUInt16BE(2).toString(16)})}`,this.options.verbose),F.length<12)throw new Error(`Response too short: ${F.length} bytes`);if(!(F.readUInt16BE(2)&32768))throw new Error("Response flag not set in DNS message");let C=OL(F);if(S0("client",`Parsed DNS response: ${JSON.stringify({id:C.id,answerCount:C.answers.length,authorityCount:C.authorities.length,additionalCount:C.additionals.length})}`,this.options.verbose),f==="udp"&&C.flags.truncated){S0("client","Response truncated, retrying with TCP",this.options.verbose);let I=await lL("tcp").query(s,E);w.push(OL(I))}else w.push(C);break}catch(F){if(S0("client",`Attempt ${U+1} failed: ${F.message}`,this.options.verbose),U===T-1)throw S0("client","All retry attempts failed",this.options.verbose),F;let C=2**U*1000;S0("client",`Waiting ${C}ms before retry`,this.options.verbose),await new Promise((I)=>setTimeout(I,C))}}if(w.length===0)throw new Error("No responses received");return w}catch(f){let h=f instanceof Error?f.message:"Unknown error occurred";throw S0("client",`Query failed with error: ${h}`,this.options.verbose),S0("client",`Full error: ${JSON.stringify(f)}`,this.options.verbose),new Error(`DNS query failed: ${h}`)}}buildQueries(){let f=[];if(!this.options.domains?.length)throw new Error("No domains specified");let h=Array.isArray(this.options.domains)?this.options.domains:[this.options.domains],w=this.resolveTypes(),s=this.resolveClasses();for(let $ of h)for(let r of w)for(let E of s)f.push({name:$,type:r,class:E});return S0("client",`Built queries: ${JSON.stringify(f)}`,this.options.verbose),f}resolveTypes(){if(!this.options.type)return[1];return(Array.isArray(this.options.type)?this.options.type:[this.options.type]).map((f)=>{if(this.validateRecordType(f),typeof f==="number")return f;let h=f.toUpperCase();return gh[h]})}resolveClasses(){if(!this.options.class)return[1];return(Array.isArray(this.options.class)?this.options.class:[this.options.class]).map((f)=>{if(typeof f==="number")return f;let h=f.toUpperCase(),w=vL[h];if(w===void 0)throw new Error(`Invalid query class: ${f}`);return w})}validateNameserver(f){if(f.startsWith("https://"))return!0;if(f.includes("%"))return!1;if(/^(?:\d{1,3}\.){3}\d{1,3}$/.test(f))return f.split(".").every((h)=>{let w=Number.parseInt(h,10);return w>=0&&w<=255});if(f.includes(":"))return!1;return!1}async resolveNameserver(){try{if(this.options.nameserver){if(S0("client",`Checking configured nameserver: ${this.options.nameserver}`,this.options.verbose),this.validateNameserver(this.options.nameserver))return this.options.nameserver}let f=d40();S0("client",`Resolving nameserver for platform: ${f}`,this.options.verbose);let h;if(f==="win32")h=await this.resolveWindowsNameserver();else h=await this.resolveUnixNameserver();if(this.validateNameserver(h))return h;return S0("client",`Using default nameserver: ${H1.DEFAULT_NAMESERVER}`,this.options.verbose),H1.DEFAULT_NAMESERVER}catch(f){return S0("client",`Failed to resolve nameserver: ${f.message}`,this.options.verbose),S0("client",`Using default nameserver: ${H1.DEFAULT_NAMESERVER}`,this.options.verbose),H1.DEFAULT_NAMESERVER}}async resolveUnixNameserver(){try{let f=(await m40.readFile(H1.RESOLV_CONF_PATH,"utf-8")).split(`
|
|
60
|
+
`),h=[];for(let s of f){let $=s.trim();if($.startsWith("nameserver")){let[,r]=$.split(/\s+/);if(r&&!r.includes("%"))h.push(r)}}let w=h.find((s)=>!s.includes(":"));if(w)return S0("client",`Using IPv4 nameserver from resolv.conf: ${w}`,this.options.verbose),w;return S0("client",`No valid nameserver found in resolv.conf, using fallback: ${H1.DEFAULT_NAMESERVER}`,this.options.verbose),H1.DEFAULT_NAMESERVER}catch(f){return S0("client",`Failed to read resolv.conf: ${f.message}`,this.options.verbose),S0("client",`Using fallback nameserver: ${H1.DEFAULT_NAMESERVER}`,this.options.verbose),H1.DEFAULT_NAMESERVER}}async resolveWindowsNameserver(){try{return S0("client",`Using default nameserver for Windows: ${H1.DEFAULT_NAMESERVER}`,this.options.verbose),H1.DEFAULT_NAMESERVER}catch(f){throw S0("client",`Failed to get Windows nameserver: ${f.message}`,this.options.verbose),new Error("Failed to get Windows nameserver")}}determineTransportType(){if(this.options.https)return"https";if(this.options.tls)return"tls";if(this.options.tcp)return"tcp";if(this.options.udp)return"udp";if(typeof this.options.transport==="object")return this.options.transport.type||"udp";return"udp"}validateOptions(){if(this.options.domains)for(let f of Array.isArray(this.options.domains)?this.options.domains:[this.options.domains])this.validateDomainName(f);if(this.options.type){let f=Array.isArray(this.options.type)?this.options.type:[this.options.type];for(let h of f)this.validateRecordType(h)}if([this.options.udp,this.options.tcp,this.options.tls,this.options.https].filter(Boolean).length>1)throw new Error("Only one transport type can be specified");if(this.options.https&&!this.options.nameserver?.startsWith("https://"))throw new Error("HTTPS transport requires an HTTPS nameserver URL");S0("client","Options validation completed successfully",this.options.verbose)}}var i40=N40(q40(),1),c40={A:"green",AAAA:"green",CNAME:"yellow",MX:"cyan",NS:"red",PTR:"red",SOA:"magenta",SRV:"cyan",TXT:"yellow",CAA:"red",TLSA:"yellow"};function g40(f,h){if(h.json)return x40(f,h.showDuration);return _40(f,h)}function x40(f,h){let w={responses:f.map((s)=>({id:s.id,answers:s.answers.map(jL),authorities:s.authorities.map(jL),additionals:s.additionals.map(jL)}))};if(h!==void 0)w.duration={ms:h};return JSON.stringify(w,null,2)}function jL(f){let h={name:f.name,type:gh[f.type]||f.type,ttl:f.ttl};switch(f.type){case 1:case 28:return{...h,address:f.data};case 5:case 12:case 2:return{...h,target:f.data};case 15:return{...h,preference:f.data.preference,exchange:f.data.exchange};case 16:return{...h,text:f.data};case 33:return{...h,priority:f.data.priority,weight:f.data.weight,port:f.data.port,target:f.data.target};case 257:return{...h,flags:f.data.flags,tag:f.data.tag,value:f.data.value};default:return{...h,data:f.data}}}function _40(f,h){let w=[];for(let s of f){if(h.short){if(s.answers.length>0)w.push(HT(s.answers[0],h));continue}if(s.answers.length>0)for(let $ of s.answers)w.push(HT($,h));if(s.authorities.length>0){w.push(`
|
|
61
|
+
Authority Records:`);for(let $ of s.authorities)w.push(HT($,h))}if(s.additionals.length>0){w.push(`
|
|
62
|
+
Additional Records:`);for(let $ of s.additionals)w.push(HT($,h))}}if(h.showDuration!==void 0)w.push(`
|
|
63
|
+
Query time: ${e40(h.showDuration,h.rawSeconds)}`);return w.join(`
|
|
64
|
+
`)}function HT(f,h){let w=gh[f.type]||f.type.toString(),s=c40[w]||"white",$=h.colors.enabled?i40.default[s](w.padEnd(6)):w.padEnd(6),r=n40(f.ttl,h.rawSeconds).padStart(8),E;switch(f.type){case 1:case 28:E=f.data;break;case 5:case 12:case 2:E=f.data;break;case 15:E=`${f.data.preference} ${f.data.exchange}`;break;case 16:E=`"${f.data}"`;break;case 33:E=`${f.data.priority} ${f.data.weight} ${f.data.port} ${f.data.target}`;break;case 257:E=`${f.data.flags} ${f.data.tag} "${f.data.value}"`;break;default:E=JSON.stringify(f.data)}return`${$} ${r} ${f.name.padEnd(30)} ${E}`}function n40(f,h){if(h)return f.toString();if(f<60)return`${f}s`;if(f<3600){let $=Math.floor(f/60),r=f%60;return`${$}m${r}s`}if(f<86400){let $=Math.floor(f/3600),r=Math.floor(f%3600/60);return`${$}h${r}m`}let w=Math.floor(f/86400),s=Math.floor(f%86400/3600);return`${w}d${s}h`}function e40(f,h){if(h)return`${f}ms`;if(f<1000)return`${f}ms`;return`${(f/1000).toFixed(2)}s`}var{create:a40,defineProperty:Kj,getOwnPropertyDescriptor:p40,getOwnPropertyNames:o40,getPrototypeOf:u40}=Object,t40=Object.prototype.hasOwnProperty,f50=(f,h)=>()=>(h||f((h={exports:{}}).exports,h),h.exports),h50=(f,h,w,s)=>{if(h&&typeof h=="object"||typeof h=="function")for(let $ of o40(h))!t40.call(f,$)&&$!==w&&Kj(f,$,{get:()=>h[$],enumerable:!(s=p40(h,$))||s.enumerable});return f},w50=(f,h,w)=>(w=f!=null?a40(u40(f)):{},h50(h||!f||!f.__esModule?Kj(w,"default",{value:f,enumerable:!0}):w,f)),s50=f50((f,h)=>{function w(E){if(typeof E!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(E))}function s(E,T){for(var U="",F=0,C=-1,I=0,L,W=0;W<=E.length;++W){if(W<E.length)L=E.charCodeAt(W);else{if(L===47)break;L=47}if(L===47){if(!(C===W-1||I===1))if(C!==W-1&&I===2){if(U.length<2||F!==2||U.charCodeAt(U.length-1)!==46||U.charCodeAt(U.length-2)!==46){if(U.length>2){var X=U.lastIndexOf("/");if(X!==U.length-1){X===-1?(U="",F=0):(U=U.slice(0,X),F=U.length-1-U.lastIndexOf("/")),C=W,I=0;continue}}else if(U.length===2||U.length===1){U="",F=0,C=W,I=0;continue}}T&&(U.length>0?U+="/..":U="..",F=2)}else U.length>0?U+="/"+E.slice(C+1,W):U=E.slice(C+1,W),F=W-C-1;C=W,I=0}else L===46&&I!==-1?++I:I=-1}return U}function $(E,T){var U=T.dir||T.root,F=T.base||(T.name||"")+(T.ext||"");return U?U===T.root?U+F:U+E+F:F}var r={resolve:function(){for(var E="",T=!1,U,F=arguments.length-1;F>=-1&&!T;F--){var C;F>=0?C=arguments[F]:(U===void 0&&(U=process.cwd()),C=U),w(C),C.length!==0&&(E=C+"/"+E,T=C.charCodeAt(0)===47)}return E=s(E,!T),T?E.length>0?"/"+E:"/":E.length>0?E:"."},normalize:function(E){if(w(E),E.length===0)return".";var T=E.charCodeAt(0)===47,U=E.charCodeAt(E.length-1)===47;return E=s(E,!T),E.length===0&&!T&&(E="."),E.length>0&&U&&(E+="/"),T?"/"+E:E},isAbsolute:function(E){return w(E),E.length>0&&E.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var E,T=0;T<arguments.length;++T){var U=arguments[T];w(U),U.length>0&&(E===void 0?E=U:E+="/"+U)}return E===void 0?".":r.normalize(E)},relative:function(E,T){if(w(E),w(T),E===T||(E=r.resolve(E),T=r.resolve(T),E===T))return"";for(var U=1;U<E.length&&E.charCodeAt(U)===47;++U);for(var F=E.length,C=F-U,I=1;I<T.length&&T.charCodeAt(I)===47;++I);for(var L=T.length,W=L-I,X=C<W?C:W,Q=-1,M=0;M<=X;++M){if(M===X){if(W>X){if(T.charCodeAt(I+M)===47)return T.slice(I+M+1);if(M===0)return T.slice(I+M)}else C>X&&(E.charCodeAt(U+M)===47?Q=M:M===0&&(Q=0));break}var q=E.charCodeAt(U+M),N=T.charCodeAt(I+M);if(q!==N)break;q===47&&(Q=M)}var y="";for(M=U+Q+1;M<=F;++M)(M===F||E.charCodeAt(M)===47)&&(y.length===0?y+="..":y+="/..");return y.length>0?y+T.slice(I+Q):(I+=Q,T.charCodeAt(I)===47&&++I,T.slice(I))},_makeLong:function(E){return E},dirname:function(E){if(w(E),E.length===0)return".";for(var T=E.charCodeAt(0),U=T===47,F=-1,C=!0,I=E.length-1;I>=1;--I)if(T=E.charCodeAt(I),T===47){if(!C){F=I;break}}else C=!1;return F===-1?U?"/":".":U&&F===1?"//":E.slice(0,F)},basename:function(E,T){if(T!==void 0&&typeof T!="string")throw new TypeError('"ext" argument must be a string');w(E);var U=0,F=-1,C=!0,I;if(T!==void 0&&T.length>0&&T.length<=E.length){if(T.length===E.length&&T===E)return"";var L=T.length-1,W=-1;for(I=E.length-1;I>=0;--I){var X=E.charCodeAt(I);if(X===47){if(!C){U=I+1;break}}else W===-1&&(C=!1,W=I+1),L>=0&&(X===T.charCodeAt(L)?--L===-1&&(F=I):(L=-1,F=W))}return U===F?F=W:F===-1&&(F=E.length),E.slice(U,F)}else{for(I=E.length-1;I>=0;--I)if(E.charCodeAt(I)===47){if(!C){U=I+1;break}}else F===-1&&(C=!1,F=I+1);return F===-1?"":E.slice(U,F)}},extname:function(E){w(E);for(var T=-1,U=0,F=-1,C=!0,I=0,L=E.length-1;L>=0;--L){var W=E.charCodeAt(L);if(W===47){if(!C){U=L+1;break}continue}F===-1&&(C=!1,F=L+1),W===46?T===-1?T=L:I!==1&&(I=1):T!==-1&&(I=-1)}return T===-1||F===-1||I===0||I===1&&T===F-1&&T===U+1?"":E.slice(T,F)},format:function(E){if(E===null||typeof E!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof E);return $("/",E)},parse:function(E){w(E);var T={root:"",dir:"",base:"",ext:"",name:""};if(E.length===0)return T;var U=E.charCodeAt(0),F=U===47,C;F?(T.root="/",C=1):C=0;for(var I=-1,L=0,W=-1,X=!0,Q=E.length-1,M=0;Q>=C;--Q){if(U=E.charCodeAt(Q),U===47){if(!X){L=Q+1;break}continue}W===-1&&(X=!1,W=Q+1),U===46?I===-1?I=Q:M!==1&&(M=1):I!==-1&&(M=-1)}return I===-1||W===-1||M===0||M===1&&I===W-1&&I===L+1?W!==-1&&(L===0&&F?T.base=T.name=E.slice(1,W):T.base=T.name=E.slice(L,W)):(L===0&&F?(T.name=E.slice(1,I),T.base=E.slice(1,W)):(T.name=E.slice(L,I),T.base=E.slice(L,W)),T.ext=E.slice(I,W)),L>0?T.dir=E.slice(0,L-1):F&&(T.dir="/"),T},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,h.exports=r}),Zj=w50(s50()),g0=Zj,$50=Zj,Mj=function(f){return f},Jj=function(){throw new Error("Not implemented")};g0.parse??=Jj;$50.parse??=Jj;var K$={resolve:g0.resolve.bind(g0),normalize:g0.normalize.bind(g0),isAbsolute:g0.isAbsolute.bind(g0),join:g0.join.bind(g0),relative:g0.relative.bind(g0),toNamespacedPath:Mj,dirname:g0.dirname.bind(g0),basename:g0.basename.bind(g0),extname:g0.extname.bind(g0),format:g0.format.bind(g0),parse:g0.parse.bind(g0),sep:"/",delimiter:":",win32:void 0,posix:void 0,_makeLong:Mj},Qj={sep:"\\",delimiter:";",win32:void 0,...K$,posix:K$};K$.win32=Qj.win32=Qj;K$.posix=K$;var{resolve:r50,normalize:kO0,isAbsolute:yO0,join:jO0,relative:OO0,toNamespacedPath:lO0,dirname:vO0,basename:bO0,extname:mO0,format:dO0,parse:iO0,sep:cO0,delimiter:gO0}=K$;function kT(f,h){if(Array.isArray(h)&&!Array.isArray(f))return h;if(Array.isArray(h)&&Array.isArray(f))return h.map((s,$)=>{let r=f[$];if(Q$(s)&&Q$(r))return kT(r,s);return s});if(!Q$(h)||!Q$(f))return h;let w={...f};for(let s in h)if(Object.prototype.hasOwnProperty.call(h,s)){let $=h[s],r=w[s];if($===null||$===void 0)w[s]=$;else if(Q$($)&&Q$(r))w[s]=kT(r,$);else w[s]=$}return w}function Q$(f){return Boolean(f&&typeof f==="object"&&!Array.isArray(f))}async function E50({name:f,cwd:h,defaultConfig:w,endpoint:s,headers:$={Accept:"application/json","Content-Type":"application/json"}}){if(typeof window==="undefined"){let r=r50(h||"../../../",`${f}.config`);try{let E=await import(r),T=E.default||E;return kT(w,T)}catch(E){return w}}if(!s)return console.warn("An API endpoint is required to load the client config."),w;try{let r=await fetch(s,{method:"GET",headers:$});if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);let E=await r.json();return kT(w,E)}catch(r){return console.error("Failed to load client config:",r),w}}var T50={verbose:!0},xO0=await E50({name:"dnsx",defaultConfig:T50});export{Q40 as writeNameserversToConfig,Z40 as updateNameservers,OL as parseResponse,k40 as parseProtocolTweaks,XO0 as hasUserDomainBeenAddedToCloud,K40 as getNameservers,g40 as formatOutput,RO0 as findHostedZone,AO0 as deleteHostedZoneRecords,WO0 as deleteHostedZone,S0 as debugLog,lL as createTransport,zO0 as createHostedZone,xO0 as config,Sj as buildQuery,SO0 as addDomain,Rj as WireError,Yj as TransportType,gh as RecordType,vL as QClass,Aj as EDNSMode,zj as DnsResponseCode,w4 as DnsFlags,bL as DnsEncoder,mL as DnsDecoder,H1 as DnsClient};
|