gemi 0.5.3 → 0.7.1
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/app/App.d.ts +1 -0
- package/dist/app/App.d.ts.map +1 -1
- package/dist/app/index.js +2 -2
- package/dist/app/index.js.map +3 -3
- package/dist/bin/index.js +16 -57
- package/dist/broadcasting/index.js +1 -1
- package/dist/chunk-29e47ya6.js +4 -0
- package/dist/{chunk-bt35atmf.js.map → chunk-29e47ya6.js.map} +2 -2
- package/dist/{chunk-ch0p7trm.js → chunk-40n82x2t.js} +2 -2
- package/dist/{chunk-ch0p7trm.js.map → chunk-40n82x2t.js.map} +1 -1
- package/dist/{chunk-yaqp7fex.js → chunk-7gjzt5mt.js} +2 -2
- package/dist/{chunk-yaqp7fex.js.map → chunk-7gjzt5mt.js.map} +1 -1
- package/dist/{chunk-3saf3cee.js → chunk-7j1dd4f2.js} +3 -3
- package/dist/{chunk-3saf3cee.js.map → chunk-7j1dd4f2.js.map} +1 -1
- package/dist/{chunk-6y378xez.js → chunk-7mernq2y.js} +2 -2
- package/dist/{chunk-6y378xez.js.map → chunk-7mernq2y.js.map} +1 -1
- package/dist/{chunk-hnyegpzf.js → chunk-9j0y1qh6.js} +3 -3
- package/dist/{chunk-hnyegpzf.js.map → chunk-9j0y1qh6.js.map} +1 -1
- package/dist/{chunk-77gdtbj7.js → chunk-aj66pefs.js} +2 -2
- package/dist/{chunk-77gdtbj7.js.map → chunk-aj66pefs.js.map} +1 -1
- package/dist/{chunk-7tq73gy6.js → chunk-cd9b5bzy.js} +2 -2
- package/dist/{chunk-7tq73gy6.js.map → chunk-cd9b5bzy.js.map} +1 -1
- package/dist/chunk-d1egpgtj.js +4 -0
- package/dist/{chunk-zze295mv.js.map → chunk-d1egpgtj.js.map} +2 -2
- package/dist/{chunk-azwtbn3m.js → chunk-ehc0mn9k.js} +2 -2
- package/dist/{chunk-azwtbn3m.js.map → chunk-ehc0mn9k.js.map} +1 -1
- package/dist/chunk-enrcacxy.js +4 -0
- package/dist/{chunk-3pfpq2xc.js.map → chunk-enrcacxy.js.map} +1 -1
- package/dist/{chunk-ewp71f92.js → chunk-fffvz62j.js} +2 -2
- package/dist/{chunk-ewp71f92.js.map → chunk-fffvz62j.js.map} +1 -1
- package/dist/chunk-fnfwj35q.js +4 -0
- package/dist/{chunk-njjn5kvb.js.map → chunk-fnfwj35q.js.map} +2 -2
- package/dist/{chunk-srsjrh5y.js → chunk-hfbzs201.js} +3 -3
- package/dist/{chunk-srsjrh5y.js.map → chunk-hfbzs201.js.map} +1 -1
- package/dist/{chunk-0gs55008.js → chunk-hrbw2kv8.js} +2 -2
- package/dist/{chunk-0gs55008.js.map → chunk-hrbw2kv8.js.map} +1 -1
- package/dist/{chunk-83snmykp.js → chunk-n30t8qwk.js} +3 -3
- package/dist/{chunk-83snmykp.js.map → chunk-n30t8qwk.js.map} +1 -1
- package/dist/{chunk-95hz1khz.js → chunk-ndyf70tp.js} +2 -2
- package/dist/{chunk-95hz1khz.js.map → chunk-ndyf70tp.js.map} +1 -1
- package/dist/{chunk-rr5j1686.js → chunk-nxr0f68f.js} +2 -2
- package/dist/{chunk-rr5j1686.js.map → chunk-nxr0f68f.js.map} +1 -1
- package/dist/{chunk-7v15p9nn.js → chunk-nypmy0sk.js} +3 -3
- package/dist/{chunk-7v15p9nn.js.map → chunk-nypmy0sk.js.map} +1 -1
- package/dist/{chunk-740bx4ar.js → chunk-s5375554.js} +2 -2
- package/dist/{chunk-740bx4ar.js.map → chunk-s5375554.js.map} +1 -1
- package/dist/{chunk-wthx7151.js → chunk-sa6cw8g8.js} +3 -3
- package/dist/{chunk-wthx7151.js.map → chunk-sa6cw8g8.js.map} +1 -1
- package/dist/chunk-t6e82v6r.js +4 -0
- package/dist/{chunk-t34vnmky.js.map → chunk-t6e82v6r.js.map} +1 -1
- package/dist/{chunk-ac7dhq1c.js → chunk-t7t45jw7.js} +2 -2
- package/dist/{chunk-ac7dhq1c.js.map → chunk-t7t45jw7.js.map} +1 -1
- package/dist/{chunk-0q8sry4s.js → chunk-tmba4sjp.js} +2 -2
- package/dist/{chunk-0q8sry4s.js.map → chunk-tmba4sjp.js.map} +1 -1
- package/dist/{chunk-9877dbvm.js → chunk-x1ry5x7k.js} +2 -2
- package/dist/{chunk-9877dbvm.js.map → chunk-x1ry5x7k.js.map} +1 -1
- package/dist/{chunk-0s3yapam.js → chunk-xbh456md.js} +3 -3
- package/dist/{chunk-0s3yapam.js.map → chunk-xbh456md.js.map} +1 -1
- package/dist/{chunk-9em80ypy.js → chunk-y05jg3hz.js} +2 -2
- package/dist/{chunk-9em80ypy.js.map → chunk-y05jg3hz.js.map} +1 -1
- package/dist/chunk-ytd79zth.js +20 -0
- package/dist/{chunk-9we58rz2.js.map → chunk-ytd79zth.js.map} +7 -7
- package/dist/{chunk-ckn0v6nd.js → chunk-zsw4pga0.js} +3 -3
- package/dist/{chunk-ckn0v6nd.js.map → chunk-zsw4pga0.js.map} +1 -1
- package/dist/client/ClientRouterContext.d.ts.map +1 -1
- package/dist/client/HttpClientContext.d.ts +12 -0
- package/dist/client/HttpClientContext.d.ts.map +1 -0
- package/dist/client/QueryManagerContext.d.ts.map +1 -1
- package/dist/client/QueryResource.d.ts +3 -1
- package/dist/client/QueryResource.d.ts.map +1 -1
- package/dist/client/i18n/I18nContext.d.ts.map +1 -1
- package/dist/client/i18n/useLocale.d.ts.map +1 -1
- package/dist/client/index.d.ts +2 -1
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +209 -159
- package/dist/client/index.js.map +1 -1
- package/dist/client/init.d.ts +1 -0
- package/dist/client/init.d.ts.map +1 -1
- package/dist/client/useMutation.d.ts.map +1 -1
- package/dist/client/useNavigate.d.ts.map +1 -1
- package/dist/email/index.js +2 -2
- package/dist/email/index.js.map +1 -1
- package/dist/facades/index.js +2 -2
- package/dist/facades/index.js.map +5 -4
- package/dist/http/index.js +2 -2
- package/dist/http/index.js.map +1 -1
- package/dist/kernel/Kernel.d.ts +2 -0
- package/dist/kernel/Kernel.d.ts.map +1 -1
- package/dist/kernel/index.js +2 -2
- package/dist/kernel/index.js.map +3 -3
- package/dist/server/index.js +5 -5
- package/dist/server/index.js.map +5 -6
- package/dist/services/image-optimization/ImageOptimizationServiceContainer.d.ts +14 -0
- package/dist/services/image-optimization/ImageOptimizationServiceContainer.d.ts.map +1 -0
- package/dist/services/image-optimization/ImageOptimizationServiceProvider.d.ts +7 -0
- package/dist/services/image-optimization/ImageOptimizationServiceProvider.d.ts.map +1 -0
- package/dist/services/image-optimization/drivers/ImageOptimizationDriver.d.ts +5 -0
- package/dist/services/image-optimization/drivers/ImageOptimizationDriver.d.ts.map +1 -0
- package/dist/services/image-optimization/drivers/SharpDriver.d.ts +6 -0
- package/dist/services/image-optimization/drivers/SharpDriver.d.ts.map +1 -0
- package/dist/services/image-optimization/drivers/types.d.ts +14 -0
- package/dist/services/image-optimization/drivers/types.d.ts.map +1 -0
- package/dist/services/index.d.ts +4 -0
- package/dist/services/index.d.ts.map +1 -1
- package/dist/services/index.js +3 -12
- package/dist/services/index.js.map +8 -16
- package/dist/services/router/ApiRouterServiceContainer.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-3pfpq2xc.js +0 -4
- package/dist/chunk-9we58rz2.js +0 -20
- package/dist/chunk-bt35atmf.js +0 -4
- package/dist/chunk-njjn5kvb.js +0 -4
- package/dist/chunk-t34vnmky.js +0 -4
- package/dist/chunk-zze295mv.js +0 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiRouterServiceContainer.d.ts","sourceRoot":"","sources":["../../../services/router/ApiRouterServiceContainer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"ApiRouterServiceContainer.d.ts","sourceRoot":"","sources":["../../../services/router/ApiRouterServiceContainer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAOzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAuB,KAAK,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEhF,qBAAa,yBAA0B,SAAQ,gBAAgB;IAK1C,OAAO,EAAE,wBAAwB;IAJpD,MAAM,CAAC,KAAK,SAA+B;IAE3C,UAAU,EAAE,aAAa,CAAM;gBAEZ,OAAO,EAAE,wBAAwB;IAW7C,wBAAwB,CAAC,GAAG,EAAE,OAAO;;;;IAuBtC,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW;IAyBzD,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;IAgCxC,gBAAgB,CAAC,GAAG,EAAE,OAAO;CAkDpC"}
|
package/package.json
CHANGED
package/dist/chunk-3pfpq2xc.js
DELETED
package/dist/chunk-9we58rz2.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import{wa as Y1,xa as LU}from"./chunk-wthx7151.js";import{Aa as v,Ba as MU,Da as kU,Ea as JX,Ga as IX,Ia as p8,Ja as Bz,Ra as H6}from"./chunk-3saf3cee.js";import{Ab as ZU}from"./chunk-ac7dhq1c.js";import{Eb as I1}from"./chunk-srsjrh5y.js";import{Nb as HX}from"./chunk-740bx4ar.js";import{Pb as k9,Qb as g8}from"./chunk-7v15p9nn.js";import{Ub as mF}from"./chunk-hnyegpzf.js";import{Vb as p,Wb as M}from"./chunk-rr5j1686.js";var s=M((HJ,_U)=>{var{defineProperty:i1,getOwnPropertyDescriptor:bX,getOwnPropertyNames:PX}=Object,SX=Object.prototype.hasOwnProperty,yU=($,U)=>i1($,"name",{value:U,configurable:!0}),kX=($,U)=>{for(var G in U)i1($,G,{get:U[G],enumerable:!0})},DX=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of PX(U))if(!SX.call($,w)&&w!==G)i1($,w,{get:()=>U[w],enumerable:!(W=bX(U,w))||W.enumerable})}return $},hX=($)=>DX(i1({},"__esModule",{value:!0}),$),cU={};kX(cU,{getSmithyContext:()=>xX,normalizeProvider:()=>vX});_U.exports=hX(cU);var vU=I1(),xX=yU(($)=>$[vU.SMITHY_CONTEXT_KEY]||($[vU.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),vX=yU(($)=>{if(typeof $==="function")return $;let U=Promise.resolve($);return()=>U},"normalizeProvider")});var U0=M((AJ,sU)=>{var{defineProperty:r1,getOwnPropertyDescriptor:yX,getOwnPropertyNames:cX}=Object,_X=Object.prototype.hasOwnProperty,W1=($,U)=>r1($,"name",{value:U,configurable:!0}),uX=($,U)=>{for(var G in U)r1($,G,{get:U[G],enumerable:!0})},dX=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of cX(U))if(!_X.call($,w)&&w!==G)r1($,w,{get:()=>U[w],enumerable:!(W=yX(U,w))||W.enumerable})}return $},gX=($)=>dX(r1({},"__esModule",{value:!0}),$),uU={};uX(uU,{CredentialsProviderError:()=>pX,ProviderError:()=>o1,TokenProviderError:()=>sX,chain:()=>lX,fromStatic:()=>mX,memoize:()=>nX});sU.exports=gX(uU);var dU=class $ extends Error{constructor(U,G=!0){var W;let w,X=!0;if(typeof G==="boolean")w=void 0,X=G;else if(G!=null&&typeof G==="object")w=G.logger,X=G.tryNextLink??!0;super(U);this.name="ProviderError",this.tryNextLink=X,Object.setPrototypeOf(this,$.prototype),(W=w==null?void 0:w.debug)==null||W.call(w,`@smithy/property-provider ${X?"->":"(!)"} ${U}`)}static from(U,G=!0){return Object.assign(new this(U.message,G),U)}};W1(dU,"ProviderError");var o1=dU,gU=class $ extends o1{constructor(U,G=!0){super(U,G);this.name="CredentialsProviderError",Object.setPrototypeOf(this,$.prototype)}};W1(gU,"CredentialsProviderError");var pX=gU,pU=class $ extends o1{constructor(U,G=!0){super(U,G);this.name="TokenProviderError",Object.setPrototypeOf(this,$.prototype)}};W1(pU,"TokenProviderError");var sX=pU,lX=W1((...$)=>async()=>{if($.length===0)throw new o1("No providers in chain");let U;for(let G of $)try{return await G()}catch(W){if(U=W,W==null?void 0:W.tryNextLink)continue;throw W}throw U},"chain"),mX=W1(($)=>()=>Promise.resolve($),"fromStatic"),nX=W1(($,U,G)=>{let W,w,X,Z=!1,L=W1(async()=>{if(!w)w=$();try{W=await w,X=!0,Z=!1}finally{w=void 0}return W},"coalesceProvider");if(U===void 0)return async(Y)=>{if(!X||(Y==null?void 0:Y.forceRefresh))W=await L();return W};return async(Y)=>{if(!X||(Y==null?void 0:Y.forceRefresh))W=await L();if(Z)return W;if(G&&!G(W))return Z=!0,W;if(U(W))return await L(),W;return W}},"memoize")});var R1=M((lU)=>{Object.defineProperty(lU,"__esModule",{value:!0});lU.getHomeDir=void 0;var iX=import.meta.require("os"),rX=import.meta.require("path"),G0={},oX=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},aX=()=>{let{HOME:$,USERPROFILE:U,HOMEPATH:G,HOMEDRIVE:W=`C:${rX.sep}`}=process.env;if($)return $;if(U)return U;if(G)return`${W}${G}`;let w=oX();if(!G0[w])G0[w]=iX.homedir();return G0[w]};lU.getHomeDir=aX});var W0=M((nU)=>{Object.defineProperty(nU,"__esModule",{value:!0});nU.getSSOTokenFilepath=void 0;var tX=import.meta.require("crypto"),eX=import.meta.require("path"),$Z=R1(),UZ=($)=>{let G=tX.createHash("sha1").update($).digest("hex");return eX.join($Z.getHomeDir(),".aws","sso","cache",`${G}.json`)};nU.getSSOTokenFilepath=UZ});var aU=M((rU)=>{Object.defineProperty(rU,"__esModule",{value:!0});rU.getSSOTokenFromFile=void 0;var GZ=import.meta.require("fs"),WZ=W0(),{readFile:wZ}=GZ.promises,XZ=async($)=>{let U=WZ.getSSOTokenFilepath($),G=await wZ(U,"utf8");return JSON.parse(G)};rU.getSSOTokenFromFile=XZ});var X0=M((tU)=>{Object.defineProperty(tU,"__esModule",{value:!0});tU.slurpFile=void 0;var ZZ=import.meta.require("fs"),{readFile:LZ}=ZZ.promises,w0={},YZ=($,U)=>{if(!w0[$]||(U===null||U===void 0?void 0:U.ignoreCache))w0[$]=LZ($,"utf8");return w0[$]};tU.slurpFile=YZ});var z0=M((CJ,q1)=>{var{defineProperty:e1,getOwnPropertyDescriptor:zZ,getOwnPropertyNames:QZ}=Object,FZ=Object.prototype.hasOwnProperty,y=($,U)=>e1($,"name",{value:U,configurable:!0}),JZ=($,U)=>{for(var G in U)e1($,G,{get:U[G],enumerable:!0})},Z0=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of QZ(U))if(!FZ.call($,w)&&w!==G)e1($,w,{get:()=>U[w],enumerable:!(W=zZ(U,w))||W.enumerable})}return $},Y0=($,U,G)=>(Z0($,U,"default"),G&&Z0(G,U,"default")),IZ=($)=>Z0(e1({},"__esModule",{value:!0}),$),j1={};JZ(j1,{CONFIG_PREFIX_SEPARATOR:()=>w1,DEFAULT_PROFILE:()=>WG,ENV_PROFILE:()=>GG,getProfileName:()=>RZ,loadSharedConfigFiles:()=>XG,loadSsoSessionData:()=>jZ,parseKnownFiles:()=>bZ});q1.exports=IZ(j1);Y0(j1,R1(),q1.exports);var GG="AWS_PROFILE",WG="default",RZ=y(($)=>$.profile||process.env[GG]||WG,"getProfileName");Y0(j1,W0(),q1.exports);Y0(j1,aU(),q1.exports);var a1=I1(),KZ=y(($)=>Object.entries($).filter(([U])=>{let G=U.indexOf(w1);if(G===-1)return!1;return Object.values(a1.IniSectionType).includes(U.substring(0,G))}).reduce((U,[G,W])=>{let w=G.indexOf(w1),X=G.substring(0,w)===a1.IniSectionType.PROFILE?G.substring(w+1):G;return U[X]=W,U},{...$.default&&{default:$.default}}),"getConfigData"),t1=import.meta.require("path"),MZ=R1(),BZ="AWS_CONFIG_FILE",wG=y(()=>process.env[BZ]||t1.join(MZ.getHomeDir(),".aws","config"),"getConfigFilepath"),VZ=R1(),HZ="AWS_SHARED_CREDENTIALS_FILE",AZ=y(()=>process.env[HZ]||t1.join(VZ.getHomeDir(),".aws","credentials"),"getCredentialsFilepath"),EZ=R1(),TZ=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,OZ=["__proto__","profile __proto__"],L0=y(($)=>{let U={},G,W;for(let w of $.split(/\r?\n/)){let X=w.split(/(^|\s)[;#]/)[0].trim();if(X[0]==="["&&X[X.length-1]==="]"){G=void 0,W=void 0;let L=X.substring(1,X.length-1),Y=TZ.exec(L);if(Y){let[,z,,Q]=Y;if(Object.values(a1.IniSectionType).includes(z))G=[z,Q].join(w1)}else G=L;if(OZ.includes(L))throw new Error(`Found invalid profile name "${L}"`)}else if(G){let L=X.indexOf("=");if(![0,-1].includes(L)){let[Y,z]=[X.substring(0,L).trim(),X.substring(L+1).trim()];if(z==="")W=Y;else{if(W&&w.trimStart()===w)W=void 0;U[G]=U[G]||{};let Q=W?[W,Y].join(w1):Y;U[G][Q]=z}}}}return U},"parseIni"),$G=X0(),UG=y(()=>({}),"swallowError"),w1=".",XG=y(async($={})=>{let{filepath:U=AZ(),configFilepath:G=wG()}=$,W=EZ.getHomeDir(),w="~/",X=U;if(U.startsWith("~/"))X=t1.join(W,U.slice(2));let Z=G;if(G.startsWith("~/"))Z=t1.join(W,G.slice(2));let L=await Promise.all([$G.slurpFile(Z,{ignoreCache:$.ignoreCache}).then(L0).then(KZ).catch(UG),$G.slurpFile(X,{ignoreCache:$.ignoreCache}).then(L0).catch(UG)]);return{configFile:L[0],credentialsFile:L[1]}},"loadSharedConfigFiles"),fZ=y(($)=>Object.entries($).filter(([U])=>U.startsWith(a1.IniSectionType.SSO_SESSION+w1)).reduce((U,[G,W])=>({...U,[G.substring(G.indexOf(w1)+1)]:W}),{}),"getSsoSessionData"),CZ=X0(),NZ=y(()=>({}),"swallowError"),jZ=y(async($={})=>CZ.slurpFile($.configFilepath??wG()).then(L0).then(fZ).catch(NZ),"loadSsoSessionData"),qZ=y((...$)=>{let U={};for(let G of $)for(let[W,w]of Object.entries(G))if(U[W]!==void 0)Object.assign(U[W],w);else U[W]=w;return U},"mergeConfigFiles"),bZ=y(async($)=>{let U=await XG($);return qZ(U.configFile,U.credentialsFile)},"parseKnownFiles")});var zG=M((NJ,YG)=>{var{defineProperty:$$,getOwnPropertyDescriptor:PZ,getOwnPropertyNames:SZ}=Object,kZ=Object.prototype.hasOwnProperty,K1=($,U)=>$$($,"name",{value:U,configurable:!0}),DZ=($,U)=>{for(var G in U)$$($,G,{get:U[G],enumerable:!0})},hZ=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of SZ(U))if(!kZ.call($,w)&&w!==G)$$($,w,{get:()=>U[w],enumerable:!(W=PZ(U,w))||W.enumerable})}return $},xZ=($)=>hZ($$({},"__esModule",{value:!0}),$),LG={};DZ(LG,{loadConfig:()=>uZ});YG.exports=xZ(LG);var b1=U0();function Q0($){try{let U=new Set(Array.from($.match(/([A-Z_]){3,}/g)??[]));return U.delete("CONFIG"),U.delete("CONFIG_PREFIX_SEPARATOR"),U.delete("ENV"),[...U].join(", ")}catch(U){return $}}K1(Q0,"getSelectorName");var vZ=K1(($,U)=>async()=>{try{let G=$(process.env);if(G===void 0)throw new Error;return G}catch(G){throw new b1.CredentialsProviderError(G.message||`Not found in ENV: ${Q0($.toString())}`,{logger:U})}},"fromEnv"),ZG=z0(),yZ=K1(($,{preferredFile:U="config",...G}={})=>async()=>{let W=ZG.getProfileName(G),{configFile:w,credentialsFile:X}=await ZG.loadSharedConfigFiles(G),Z=X[W]||{},L=w[W]||{},Y=U==="config"?{...Z,...L}:{...L,...Z};try{let Q=$(Y,U==="config"?w:X);if(Q===void 0)throw new Error;return Q}catch(z){throw new b1.CredentialsProviderError(z.message||`Not found in config files w/ profile [${W}]: ${Q0($.toString())}`,{logger:G.logger})}},"fromSharedConfigFiles"),cZ=K1(($)=>typeof $==="function","isFunction"),_Z=K1(($)=>cZ($)?async()=>await $():b1.fromStatic($),"fromStatic"),uZ=K1(({environmentVariableSelector:$,configFileSelector:U,default:G},W={})=>b1.memoize(b1.chain(vZ($),yZ(U,W),_Z(G))),"loadConfig")});var KG=M((IG)=>{Object.defineProperty(IG,"__esModule",{value:!0});IG.getEndpointUrlConfig=void 0;var QG=z0(),FG="AWS_ENDPOINT_URL",JG="endpoint_url",dZ=($)=>({environmentVariableSelector:(U)=>{let G=$.split(" ").map((X)=>X.toUpperCase()),W=U[[FG,...G].join("_")];if(W)return W;let w=U[FG];if(w)return w;return},configFileSelector:(U,G)=>{if(G&&U.services){let w=G[["services",U.services].join(QG.CONFIG_PREFIX_SEPARATOR)];if(w){let X=$.split(" ").map((L)=>L.toLowerCase()),Z=w[[X.join("_"),JG].join(QG.CONFIG_PREFIX_SEPARATOR)];if(Z)return Z}}let W=U[JG];if(W)return W;return},default:void 0});IG.getEndpointUrlConfig=dZ});var F0=M((MG)=>{Object.defineProperty(MG,"__esModule",{value:!0});MG.getEndpointFromConfig=void 0;var gZ=zG(),pZ=KG(),sZ=async($)=>gZ.loadConfig(pZ.getEndpointUrlConfig($!==null&&$!==void 0?$:""))();MG.getEndpointFromConfig=sZ});var EG=M((bJ,AG)=>{var{defineProperty:U$,getOwnPropertyDescriptor:lZ,getOwnPropertyNames:mZ}=Object,nZ=Object.prototype.hasOwnProperty,iZ=($,U)=>U$($,"name",{value:U,configurable:!0}),rZ=($,U)=>{for(var G in U)U$($,G,{get:U[G],enumerable:!0})},oZ=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of mZ(U))if(!nZ.call($,w)&&w!==G)U$($,w,{get:()=>U[w],enumerable:!(W=lZ(U,w))||W.enumerable})}return $},aZ=($)=>oZ(U$({},"__esModule",{value:!0}),$),VG={};rZ(VG,{parseQueryString:()=>HG});AG.exports=aZ(VG);function HG($){let U={};if($=$.replace(/^\?/,""),$)for(let G of $.split("&")){let[W,w=null]=G.split("=");if(W=decodeURIComponent(W),w)w=decodeURIComponent(w);if(!(W in U))U[W]=w;else if(Array.isArray(U[W]))U[W].push(w);else U[W]=[U[W],w]}return U}iZ(HG,"parseQueryString")});var CG=M((PJ,fG)=>{var{defineProperty:G$,getOwnPropertyDescriptor:tZ,getOwnPropertyNames:eZ}=Object,$L=Object.prototype.hasOwnProperty,UL=($,U)=>G$($,"name",{value:U,configurable:!0}),GL=($,U)=>{for(var G in U)G$($,G,{get:U[G],enumerable:!0})},WL=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of eZ(U))if(!$L.call($,w)&&w!==G)G$($,w,{get:()=>U[w],enumerable:!(W=tZ(U,w))||W.enumerable})}return $},wL=($)=>WL(G$({},"__esModule",{value:!0}),$),TG={};GL(TG,{parseUrl:()=>OG});fG.exports=wL(TG);var XL=EG(),OG=UL(($)=>{if(typeof $==="string")return OG(new URL($));let{hostname:U,pathname:G,port:W,protocol:w,search:X}=$,Z;if(X)Z=XL.parseQueryString(X);return{hostname:U,port:W?parseInt(W):void 0,protocol:w,path:G,query:Z}},"parseUrl")});var I0=M((SJ,kG)=>{var{defineProperty:W$,getOwnPropertyDescriptor:ZL,getOwnPropertyNames:LL}=Object,YL=Object.prototype.hasOwnProperty,J0=($,U)=>W$($,"name",{value:U,configurable:!0}),zL=($,U)=>{for(var G in U)W$($,G,{get:U[G],enumerable:!0})},QL=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of LL(U))if(!YL.call($,w)&&w!==G)W$($,w,{get:()=>U[w],enumerable:!(W=ZL(U,w))||W.enumerable})}return $},FL=($)=>QL(W$({},"__esModule",{value:!0}),$),NG={};zL(NG,{deserializerMiddleware:()=>jG,deserializerMiddlewareOption:()=>bG,getSerdePlugin:()=>SG,serializerMiddleware:()=>qG,serializerMiddlewareOption:()=>PG});kG.exports=FL(NG);var jG=J0(($,U)=>(G)=>async(W)=>{let{response:w}=await G(W);try{let X=await U(w,$);return{response:w,output:X}}catch(X){if(Object.defineProperty(X,"$response",{value:w}),!("$metadata"in X)){if(X.message+="\n Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.",typeof X.$responseBodyText!=="undefined"){if(X.$response)X.$response.body=X.$responseBodyText}}throw X}},"deserializerMiddleware"),qG=J0(($,U)=>(G,W)=>async(w)=>{var X;let Z=((X=W.endpointV2)==null?void 0:X.url)&&$.urlParser?async()=>$.urlParser(W.endpointV2.url):$.endpoint;if(!Z)throw new Error("No valid endpoint provider available.");let L=await U(w.input,{...$,endpoint:Z});return G({...w,request:L})},"serializerMiddleware"),bG={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},PG={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function SG($,U,G){return{applyToStack:(W)=>{W.add(jG($,G),bG),W.add(qG($,U),PG)}}}J0(SG,"getSerdePlugin")});var uG=M((kJ,_G)=>{var{defineProperty:X$,getOwnPropertyDescriptor:JL,getOwnPropertyNames:IL}=Object,RL=Object.prototype.hasOwnProperty,d=($,U)=>X$($,"name",{value:U,configurable:!0}),KL=($,U)=>{for(var G in U)X$($,G,{get:U[G],enumerable:!0})},ML=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of IL(U))if(!RL.call($,w)&&w!==G)X$($,w,{get:()=>U[w],enumerable:!(W=JL(U,w))||W.enumerable})}return $},BL=($)=>ML(X$({},"__esModule",{value:!0}),$),hG={};KL(hG,{endpointMiddleware:()=>yG,endpointMiddlewareOptions:()=>cG,getEndpointFromInstructions:()=>xG,getEndpointPlugin:()=>jL,resolveEndpointConfig:()=>bL,resolveParams:()=>vG,toEndpointV1:()=>R0});_G.exports=BL(hG);var VL=d(async($)=>{let U=($==null?void 0:$.Bucket)||"";if(typeof $.Bucket==="string")$.Bucket=U.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(OL(U)){if($.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!TL(U)||U.indexOf(".")!==-1&&!String($.Endpoint).startsWith("http:")||U.toLowerCase()!==U||U.length<3)$.ForcePathStyle=!0;if($.DisableMultiRegionAccessPoints)$.disableMultiRegionAccessPoints=!0,$.DisableMRAP=!0;return $},"resolveParamsForS3"),HL=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,AL=/(\d+\.){3}\d+/,EL=/\.\./,TL=d(($)=>HL.test($)&&!AL.test($)&&!EL.test($),"isDnsCompatibleBucketName"),OL=d(($)=>{let[U,G,W,,,w]=$.split(":"),X=U==="arn"&&$.split(":").length>=6,Z=Boolean(X&&G&&W&&w);if(X&&!Z)throw new Error(`Invalid ARN: ${$} was an invalid ARN.`);return Z},"isArnBucketName"),fL=d(($,U,G)=>{let W=d(async()=>{let w=G[$]??G[U];if(typeof w==="function")return w();return w},"configProvider");if($==="credentialScope"||U==="CredentialScope")return async()=>{let w=typeof G.credentials==="function"?await G.credentials():G.credentials;return(w==null?void 0:w.credentialScope)??(w==null?void 0:w.CredentialScope)};if($==="accountId"||U==="AccountId")return async()=>{let w=typeof G.credentials==="function"?await G.credentials():G.credentials;return(w==null?void 0:w.accountId)??(w==null?void 0:w.AccountId)};if($==="endpoint"||U==="endpoint")return async()=>{let w=await W();if(w&&typeof w==="object"){if("url"in w)return w.url.href;if("hostname"in w){let{protocol:X,hostname:Z,port:L,path:Y}=w;return`${X}//${Z}${L?":"+L:""}${Y}`}}return w};return W},"createConfigValueProvider"),CL=F0(),DG=CG(),R0=d(($)=>{if(typeof $==="object"){if("url"in $)return DG.parseUrl($.url);return $}return DG.parseUrl($)},"toEndpointV1"),xG=d(async($,U,G,W)=>{if(!G.endpoint){let Z;if(G.serviceConfiguredEndpoint)Z=await G.serviceConfiguredEndpoint();else Z=await CL.getEndpointFromConfig(G.serviceId);if(Z)G.endpoint=()=>Promise.resolve(R0(Z))}let w=await vG($,U,G);if(typeof G.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return G.endpointProvider(w,W)},"getEndpointFromInstructions"),vG=d(async($,U,G)=>{var W;let w={},X=((W=U==null?void 0:U.getEndpointParameterInstructions)==null?void 0:W.call(U))||{};for(let[Z,L]of Object.entries(X))switch(L.type){case"staticContextParams":w[Z]=L.value;break;case"contextParams":w[Z]=$[L.name];break;case"clientContextParams":case"builtInParams":w[Z]=await fL(L.name,Z,G)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(L))}if(Object.keys(X).length===0)Object.assign(w,G);if(String(G.serviceId).toLowerCase()==="s3")await VL(w);return w},"resolveParams"),w$=s(),yG=d(({config:$,instructions:U})=>{return(G,W)=>async(w)=>{var X,Z,L;let Y=await xG(w.input,{getEndpointParameterInstructions(){return U}},{...$},W);W.endpointV2=Y,W.authSchemes=(X=Y.properties)==null?void 0:X.authSchemes;let z=(Z=W.authSchemes)==null?void 0:Z[0];if(z){W.signing_region=z.signingRegion,W.signing_service=z.signingName;let Q=w$.getSmithyContext(W),F=(L=Q==null?void 0:Q.selectedHttpAuthScheme)==null?void 0:L.httpAuthOption;if(F)F.signingProperties=Object.assign(F.signingProperties||{},{signing_region:z.signingRegion,signingRegion:z.signingRegion,signing_service:z.signingName,signingName:z.signingName,signingRegionSet:z.signingRegionSet},z.properties)}return G({...w})}},"endpointMiddleware"),NL=I0(),cG={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:NL.serializerMiddlewareOption.name},jL=d(($,U)=>({applyToStack:(G)=>{G.addRelativeTo(yG({config:$,instructions:U}),cG)}}),"getEndpointPlugin"),qL=F0(),bL=d(($)=>{let U=$.tls??!0,{endpoint:G}=$,W=G!=null?async()=>R0(await w$.normalizeProvider(G)()):void 0,X={...$,endpoint:W,tls:U,isCustomEndpoint:!!G,useDualstackEndpoint:w$.normalizeProvider($.useDualstackEndpoint??!1),useFipsEndpoint:w$.normalizeProvider($.useFipsEndpoint??!1)},Z=void 0;return X.serviceConfiguredEndpoint=async()=>{if($.serviceId&&!Z)Z=qL.getEndpointFromConfig($.serviceId);return Z},X},"resolveEndpointConfig")});var m=M((DJ,rG)=>{var{defineProperty:Z$,getOwnPropertyDescriptor:PL,getOwnPropertyNames:SL}=Object,kL=Object.prototype.hasOwnProperty,r=($,U)=>Z$($,"name",{value:U,configurable:!0}),DL=($,U)=>{for(var G in U)Z$($,G,{get:U[G],enumerable:!0})},hL=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of SL(U))if(!kL.call($,w)&&w!==G)Z$($,w,{get:()=>U[w],enumerable:!(W=PL(U,w))||W.enumerable})}return $},xL=($)=>hL(Z$({},"__esModule",{value:!0}),$),dG={};DL(dG,{Field:()=>cL,Fields:()=>_L,HttpRequest:()=>uL,HttpResponse:()=>dL,IHttpRequest:()=>gG.HttpRequest,getHttpHandlerExtensionConfiguration:()=>vL,isValidHostname:()=>iG,resolveHttpHandlerRuntimeConfig:()=>yL});rG.exports=xL(dG);var vL=r(($)=>{let U=$.httpHandler;return{setHttpHandler(G){U=G},httpHandler(){return U},updateHttpClientConfig(G,W){U.updateHttpClientConfig(G,W)},httpHandlerConfigs(){return U.httpHandlerConfigs()}}},"getHttpHandlerExtensionConfiguration"),yL=r(($)=>{return{httpHandler:$.httpHandler()}},"resolveHttpHandlerRuntimeConfig"),gG=I1(),pG=class ${constructor({name:U,kind:G=gG.FieldPosition.HEADER,values:W=[]}){this.name=U,this.kind=G,this.values=W}add(U){this.values.push(U)}set(U){this.values=U}remove(U){this.values=this.values.filter((G)=>G!==U)}toString(){return this.values.map((U)=>U.includes(",")||U.includes(" ")?`"${U}"`:U).join(", ")}get(){return this.values}};r(pG,"Field");var cL=pG,sG=class ${constructor({fields:U=[],encoding:G="utf-8"}){this.entries={},U.forEach(this.setField.bind(this)),this.encoding=G}setField(U){this.entries[U.name.toLowerCase()]=U}getField(U){return this.entries[U.toLowerCase()]}removeField(U){delete this.entries[U.toLowerCase()]}getByType(U){return Object.values(this.entries).filter((G)=>G.kind===U)}};r(sG,"Fields");var _L=sG,lG=class ${constructor(U){this.method=U.method||"GET",this.hostname=U.hostname||"localhost",this.port=U.port,this.query=U.query||{},this.headers=U.headers||{},this.body=U.body,this.protocol=U.protocol?U.protocol.slice(-1)!==":"?`${U.protocol}:`:U.protocol:"https:",this.path=U.path?U.path.charAt(0)!=="/"?`/${U.path}`:U.path:"/",this.username=U.username,this.password=U.password,this.fragment=U.fragment}static clone(U){let G=new $({...U,headers:{...U.headers}});if(G.query)G.query=mG(G.query);return G}static isInstance(U){if(!U)return!1;let G=U;return"method"in G&&"protocol"in G&&"hostname"in G&&"path"in G&&typeof G.query==="object"&&typeof G.headers==="object"}clone(){return $.clone(this)}};r(lG,"HttpRequest");var uL=lG;function mG($){return Object.keys($).reduce((U,G)=>{let W=$[G];return{...U,[G]:Array.isArray(W)?[...W]:W}},{})}r(mG,"cloneQuery");var nG=class ${constructor(U){this.statusCode=U.statusCode,this.reason=U.reason,this.headers=U.headers||{},this.body=U.body}static isInstance(U){if(!U)return!1;let G=U;return typeof G.statusCode==="number"&&typeof G.headers==="object"}};r(nG,"HttpResponse");var dL=nG;function iG($){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test($)}r(iG,"isValidHostname")});var X1=M((hJ,eG)=>{var{defineProperty:L$,getOwnPropertyDescriptor:gL,getOwnPropertyNames:pL}=Object,sL=Object.prototype.hasOwnProperty,M1=($,U)=>L$($,"name",{value:U,configurable:!0}),lL=($,U)=>{for(var G in U)L$($,G,{get:U[G],enumerable:!0})},mL=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of pL(U))if(!sL.call($,w)&&w!==G)L$($,w,{get:()=>U[w],enumerable:!(W=gL(U,w))||W.enumerable})}return $},nL=($)=>mL(L$({},"__esModule",{value:!0}),$),oG={};lL(oG,{isClockSkewCorrectedError:()=>aG,isClockSkewError:()=>$2,isRetryableByTrait:()=>eL,isServerError:()=>G2,isThrottlingError:()=>U2,isTransientError:()=>tG});eG.exports=nL(oG);var iL=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],rL=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],oL=["TimeoutError","RequestTimeout","RequestTimeoutException"],aL=[500,502,503,504],tL=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],eL=M1(($)=>$.$retryable!==void 0,"isRetryableByTrait"),$2=M1(($)=>iL.includes($.name),"isClockSkewError"),aG=M1(($)=>{var U;return(U=$.$metadata)==null?void 0:U.clockSkewCorrected},"isClockSkewCorrectedError"),U2=M1(($)=>{var U,G;return((U=$.$metadata)==null?void 0:U.httpStatusCode)===429||rL.includes($.name)||((G=$.$retryable)==null?void 0:G.throttling)==!0},"isThrottlingError"),tG=M1(($)=>{var U;return aG($)||oL.includes($.name)||tL.includes(($==null?void 0:$.code)||"")||aL.includes(((U=$.$metadata)==null?void 0:U.httpStatusCode)||0)},"isTransientError"),G2=M1(($)=>{var U;if(((U=$.$metadata)==null?void 0:U.httpStatusCode)!==void 0){let G=$.$metadata.httpStatusCode;if(500<=G&&G<=599&&!tG($))return!0;return!1}return!1},"isServerError")});var IW=M((xJ,JW)=>{var{defineProperty:Y$,getOwnPropertyDescriptor:W2,getOwnPropertyNames:w2}=Object,X2=Object.prototype.hasOwnProperty,g=($,U)=>Y$($,"name",{value:U,configurable:!0}),Z2=($,U)=>{for(var G in U)Y$($,G,{get:U[G],enumerable:!0})},L2=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of w2(U))if(!X2.call($,w)&&w!==G)Y$($,w,{get:()=>U[w],enumerable:!(W=W2(U,w))||W.enumerable})}return $},Y2=($)=>L2(Y$({},"__esModule",{value:!0}),$),UW={};Z2(UW,{AdaptiveRetryStrategy:()=>R2,ConfiguredRetryStrategy:()=>K2,DEFAULT_MAX_ATTEMPTS:()=>K0,DEFAULT_RETRY_DELAY_BASE:()=>P1,DEFAULT_RETRY_MODE:()=>z2,DefaultRateLimiter:()=>wW,INITIAL_RETRY_TOKENS:()=>M0,INVOCATION_ID_HEADER:()=>F2,MAXIMUM_RETRY_DELAY:()=>B0,NO_RETRY_INCREMENT:()=>YW,REQUEST_HEADER:()=>J2,RETRY_COST:()=>ZW,RETRY_MODES:()=>GW,StandardRetryStrategy:()=>V0,THROTTLING_RETRY_DELAY_BASE:()=>XW,TIMEOUT_RETRY_COST:()=>LW});JW.exports=Y2(UW);var GW=(($)=>{return $.STANDARD="standard",$.ADAPTIVE="adaptive",$})(GW||{}),K0=3,z2="standard",Q2=X1(),WW=class ${constructor(U){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=(U==null?void 0:U.beta)??0.7,this.minCapacity=(U==null?void 0:U.minCapacity)??1,this.minFillRate=(U==null?void 0:U.minFillRate)??0.5,this.scaleConstant=(U==null?void 0:U.scaleConstant)??0.4,this.smooth=(U==null?void 0:U.smooth)??0.8;let G=this.getCurrentTimeInSeconds();this.lastThrottleTime=G,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(U){if(!this.enabled)return;if(this.refillTokenBucket(),U>this.currentCapacity){let G=(U-this.currentCapacity)/this.fillRate*1000;await new Promise((W)=>setTimeout(W,G))}this.currentCapacity=this.currentCapacity-U}refillTokenBucket(){let U=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=U;return}let G=(U-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+G),this.lastTimestamp=U}updateClientSendingRate(U){let G;if(this.updateMeasuredRate(),Q2.isThrottlingError(U)){let w=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=w,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),G=this.cubicThrottle(w),this.enableTokenBucket()}else this.calculateTimeWindow(),G=this.cubicSuccess(this.getCurrentTimeInSeconds());let W=Math.min(G,2*this.measuredTxRate);this.updateTokenBucketRate(W)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(U){return this.getPrecise(U*this.beta)}cubicSuccess(U){return this.getPrecise(this.scaleConstant*Math.pow(U-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(U){this.refillTokenBucket(),this.fillRate=Math.max(U,this.minFillRate),this.maxCapacity=Math.max(U,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){let U=this.getCurrentTimeInSeconds(),G=Math.floor(U*2)/2;if(this.requestCount++,G>this.lastTxRateBucket){let W=this.requestCount/(G-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(W*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=G}}getPrecise(U){return parseFloat(U.toFixed(8))}};g(WW,"DefaultRateLimiter");var wW=WW,P1=100,B0=20000,XW=500,M0=500,ZW=5,LW=10,YW=1,F2="amz-sdk-invocation-id",J2="amz-sdk-request",I2=g(()=>{let $=P1;return{computeNextBackoffDelay:g((W)=>{return Math.floor(Math.min(B0,Math.random()*2**W*$))},"computeNextBackoffDelay"),setDelayBase:g((W)=>{$=W},"setDelayBase")}},"getDefaultRetryBackoffStrategy"),$W=g(({retryDelay:$,retryCount:U,retryCost:G})=>{return{getRetryCount:g(()=>U,"getRetryCount"),getRetryDelay:g(()=>Math.min(B0,$),"getRetryDelay"),getRetryCost:g(()=>G,"getRetryCost")}},"createDefaultRetryToken"),zW=class ${constructor(U){this.maxAttempts=U,this.mode="standard",this.capacity=M0,this.retryBackoffStrategy=I2(),this.maxAttemptsProvider=typeof U==="function"?U:async()=>U}async acquireInitialRetryToken(U){return $W({retryDelay:P1,retryCount:0})}async refreshRetryTokenForRetry(U,G){let W=await this.getMaxAttempts();if(this.shouldRetry(U,G,W)){let w=G.errorType;this.retryBackoffStrategy.setDelayBase(w==="THROTTLING"?XW:P1);let X=this.retryBackoffStrategy.computeNextBackoffDelay(U.getRetryCount()),Z=G.retryAfterHint?Math.max(G.retryAfterHint.getTime()-Date.now()||0,X):X,L=this.getCapacityCost(w);return this.capacity-=L,$W({retryDelay:Z,retryCount:U.getRetryCount()+1,retryCost:L})}throw new Error("No retry token available")}recordSuccess(U){this.capacity=Math.max(M0,this.capacity+(U.getRetryCost()??YW))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(U){return console.warn(`Max attempts provider could not resolve. Using default of ${K0}`),K0}}shouldRetry(U,G,W){return U.getRetryCount()+1<W&&this.capacity>=this.getCapacityCost(G.errorType)&&this.isRetryableError(G.errorType)}getCapacityCost(U){return U==="TRANSIENT"?LW:ZW}isRetryableError(U){return U==="THROTTLING"||U==="TRANSIENT"}};g(zW,"StandardRetryStrategy");var V0=zW,QW=class ${constructor(U,G){this.maxAttemptsProvider=U,this.mode="adaptive";let{rateLimiter:W}=G??{};this.rateLimiter=W??new wW,this.standardRetryStrategy=new V0(U)}async acquireInitialRetryToken(U){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(U)}async refreshRetryTokenForRetry(U,G){return this.rateLimiter.updateClientSendingRate(G),this.standardRetryStrategy.refreshRetryTokenForRetry(U,G)}recordSuccess(U){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(U)}};g(QW,"AdaptiveRetryStrategy");var R2=QW,FW=class $ extends V0{constructor(U,G=P1){super(typeof U==="function"?U:async()=>U);if(typeof G==="number")this.computeNextBackoffDelay=()=>G;else this.computeNextBackoffDelay=G}async refreshRetryTokenForRetry(U,G){let W=await super.refreshRetryTokenForRetry(U,G);return W.getRetryDelay=()=>this.computeNextBackoffDelay(W.getRetryCount()),W}};g(FW,"ConfiguredRetryStrategy");var K2=FW});var H0=M((vJ,KW)=>{var{defineProperty:z$,getOwnPropertyDescriptor:M2,getOwnPropertyNames:B2}=Object,V2=Object.prototype.hasOwnProperty,H2=($,U)=>z$($,"name",{value:U,configurable:!0}),A2=($,U)=>{for(var G in U)z$($,G,{get:U[G],enumerable:!0})},E2=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of B2(U))if(!V2.call($,w)&&w!==G)z$($,w,{get:()=>U[w],enumerable:!(W=M2(U,w))||W.enumerable})}return $},T2=($)=>E2(z$({},"__esModule",{value:!0}),$),RW={};A2(RW,{isArrayBuffer:()=>O2});KW.exports=T2(RW);var O2=H2(($)=>typeof ArrayBuffer==="function"&&$ instanceof ArrayBuffer||Object.prototype.toString.call($)==="[object ArrayBuffer]","isArrayBuffer")});var S1=M((yJ,VW)=>{var{defineProperty:Q$,getOwnPropertyDescriptor:f2,getOwnPropertyNames:C2}=Object,N2=Object.prototype.hasOwnProperty,MW=($,U)=>Q$($,"name",{value:U,configurable:!0}),j2=($,U)=>{for(var G in U)Q$($,G,{get:U[G],enumerable:!0})},q2=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of C2(U))if(!N2.call($,w)&&w!==G)Q$($,w,{get:()=>U[w],enumerable:!(W=f2(U,w))||W.enumerable})}return $},b2=($)=>q2(Q$({},"__esModule",{value:!0}),$),BW={};j2(BW,{fromArrayBuffer:()=>S2,fromString:()=>k2});VW.exports=b2(BW);var P2=H0(),A0=import.meta.require("buffer"),S2=MW(($,U=0,G=$.byteLength-U)=>{if(!P2.isArrayBuffer($))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof $} (${$})`);return A0.Buffer.from($,U,G)},"fromArrayBuffer"),k2=MW(($,U)=>{if(typeof $!=="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof $} (${$})`);return U?A0.Buffer.from($,U):A0.Buffer.from($)},"fromString")});var EW=M((HW)=>{Object.defineProperty(HW,"__esModule",{value:!0});HW.fromBase64=void 0;var D2=S1(),h2=/^[A-Za-z0-9+/]*={0,2}$/,x2=($)=>{if($.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!h2.exec($))throw new TypeError("Invalid base64 string.");let U=D2.fromString($,"base64");return new Uint8Array(U.buffer,U.byteOffset,U.byteLength)};HW.fromBase64=x2});var o=M((_J,CW)=>{var{defineProperty:F$,getOwnPropertyDescriptor:v2,getOwnPropertyNames:y2}=Object,c2=Object.prototype.hasOwnProperty,E0=($,U)=>F$($,"name",{value:U,configurable:!0}),_2=($,U)=>{for(var G in U)F$($,G,{get:U[G],enumerable:!0})},u2=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of y2(U))if(!c2.call($,w)&&w!==G)F$($,w,{get:()=>U[w],enumerable:!(W=v2(U,w))||W.enumerable})}return $},d2=($)=>u2(F$({},"__esModule",{value:!0}),$),TW={};_2(TW,{fromUtf8:()=>fW,toUint8Array:()=>g2,toUtf8:()=>p2});CW.exports=d2(TW);var OW=S1(),fW=E0(($)=>{let U=OW.fromString($,"utf8");return new Uint8Array(U.buffer,U.byteOffset,U.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8"),g2=E0(($)=>{if(typeof $==="string")return fW($);if(ArrayBuffer.isView($))return new Uint8Array($.buffer,$.byteOffset,$.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array($)},"toUint8Array"),p2=E0(($)=>{if(typeof $==="string")return $;if(typeof $!=="object"||typeof $.byteOffset!=="number"||typeof $.byteLength!=="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return OW.fromArrayBuffer($.buffer,$.byteOffset,$.byteLength).toString("utf8")},"toUtf8")});var qW=M((NW)=>{Object.defineProperty(NW,"__esModule",{value:!0});NW.toBase64=void 0;var s2=S1(),l2=o(),m2=($)=>{let U;if(typeof $==="string")U=l2.fromUtf8($);else U=$;if(typeof U!=="object"||typeof U.byteOffset!=="number"||typeof U.byteLength!=="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return s2.fromArrayBuffer(U.buffer,U.byteOffset,U.byteLength).toString("base64")};NW.toBase64=m2});var I$=M((dJ,J$)=>{var{defineProperty:bW,getOwnPropertyDescriptor:n2,getOwnPropertyNames:i2}=Object,r2=Object.prototype.hasOwnProperty,T0=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of i2(U))if(!r2.call($,w)&&w!==G)bW($,w,{get:()=>U[w],enumerable:!(W=n2(U,w))||W.enumerable})}return $},PW=($,U,G)=>(T0($,U,"default"),G&&T0(G,U,"default")),o2=($)=>T0(bW({},"__esModule",{value:!0}),$),O0={};J$.exports=o2(O0);PW(O0,EW(),J$.exports);PW(O0,qW(),J$.exports)});var DW=M((SW)=>{Object.defineProperty(SW,"__esModule",{value:!0});SW.getAwsChunkedEncodingStream=void 0;var a2=import.meta.require("stream"),t2=($,U)=>{let{base64Encoder:G,bodyLengthChecker:W,checksumAlgorithmFn:w,checksumLocationName:X,streamHasher:Z}=U,L=G!==void 0&&w!==void 0&&X!==void 0&&Z!==void 0,Y=L?Z(w,$):void 0,z=new a2.Readable({read:()=>{}});return $.on("data",(Q)=>{let F=W(Q)||0;z.push(`${F.toString(16)}\r\n`),z.push(Q),z.push("\r\n")}),$.on("end",async()=>{if(z.push("0\r\n"),L){let Q=G(await Y);z.push(`${X}:${Q}\r\n`),z.push("\r\n")}z.push(null)}),z};SW.getAwsChunkedEncodingStream=t2});var C0=M((pJ,vW)=>{var{defineProperty:R$,getOwnPropertyDescriptor:e2,getOwnPropertyNames:$Y}=Object,UY=Object.prototype.hasOwnProperty,f0=($,U)=>R$($,"name",{value:U,configurable:!0}),GY=($,U)=>{for(var G in U)R$($,G,{get:U[G],enumerable:!0})},WY=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of $Y(U))if(!UY.call($,w)&&w!==G)R$($,w,{get:()=>U[w],enumerable:!(W=e2(U,w))||W.enumerable})}return $},wY=($)=>WY(R$({},"__esModule",{value:!0}),$),hW={};GY(hW,{escapeUri:()=>xW,escapeUriPath:()=>ZY});vW.exports=wY(hW);var xW=f0(($)=>encodeURIComponent($).replace(/[!'()*]/g,XY),"escapeUri"),XY=f0(($)=>`%${$.charCodeAt(0).toString(16).toUpperCase()}`,"hexEncode"),ZY=f0(($)=>$.split("/").map(xW).join("/"),"escapeUriPath")});var j0=M((sJ,_W)=>{var{defineProperty:K$,getOwnPropertyDescriptor:LY,getOwnPropertyNames:YY}=Object,zY=Object.prototype.hasOwnProperty,QY=($,U)=>K$($,"name",{value:U,configurable:!0}),FY=($,U)=>{for(var G in U)K$($,G,{get:U[G],enumerable:!0})},JY=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of YY(U))if(!zY.call($,w)&&w!==G)K$($,w,{get:()=>U[w],enumerable:!(W=LY(U,w))||W.enumerable})}return $},IY=($)=>JY(K$({},"__esModule",{value:!0}),$),yW={};FY(yW,{buildQueryString:()=>cW});_W.exports=IY(yW);var N0=C0();function cW($){let U=[];for(let G of Object.keys($).sort()){let W=$[G];if(G=N0.escapeUri(G),Array.isArray(W))for(let w=0,X=W.length;w<X;w++)U.push(`${G}=${N0.escapeUri(W[w])}`);else{let w=G;if(W||typeof W==="string")w+=`=${N0.escapeUri(W)}`;U.push(w)}}return U.join("&")}QY(cW,"buildQueryString")});var w6=M((lJ,W6)=>{var{create:RY,defineProperty:k1,getOwnPropertyDescriptor:KY,getOwnPropertyNames:MY,getPrototypeOf:BY}=Object,VY=Object.prototype.hasOwnProperty,H=($,U)=>k1($,"name",{value:U,configurable:!0}),HY=($,U)=>{for(var G in U)k1($,G,{get:U[G],enumerable:!0})},sW=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of MY(U))if(!VY.call($,w)&&w!==G)k1($,w,{get:()=>U[w],enumerable:!(W=KY(U,w))||W.enumerable})}return $},AY=($,U,G)=>(G=$!=null?RY(BY($)):{},sW(U||!$||!$.__esModule?k1(G,"default",{value:$,enumerable:!0}):G,$)),EY=($)=>sW(k1({},"__esModule",{value:!0}),$),lW={};HY(lW,{DEFAULT_REQUEST_TIMEOUT:()=>jY,NodeHttp2Handler:()=>kY,NodeHttpHandler:()=>qY,streamCollector:()=>hY});W6.exports=EY(lW);var mW=m(),nW=j0(),q0=import.meta.require("http"),b0=import.meta.require("https"),TY=["ECONNRESET","EPIPE","ETIMEDOUT"],iW=H(($)=>{let U={};for(let G of Object.keys($)){let W=$[G];U[G]=Array.isArray(W)?W.join(","):W}return U},"getTransformedHeaders"),uW=1000,OY=H(($,U,G=0)=>{if(!G)return-1;let W=H((w)=>{let X=setTimeout(()=>{$.destroy(),U(Object.assign(new Error(`Socket timed out without establishing a connection within ${G} ms`),{name:"TimeoutError"}))},G-w),Z=H((L)=>{if(L==null?void 0:L.connecting)L.on("connect",()=>{clearTimeout(X)});else clearTimeout(X)},"doWithSocket");if($.socket)Z($.socket);else $.on("socket",Z)},"registerTimeout");if(G<2000)return W(0),0;return setTimeout(W.bind(null,uW),uW)},"setConnectionTimeout"),fY=3000,CY=H(($,{keepAlive:U,keepAliveMsecs:G},W=fY)=>{if(U!==!0)return-1;let w=H(()=>{if($.socket)$.socket.setKeepAlive(U,G||0);else $.on("socket",(X)=>{X.setKeepAlive(U,G||0)})},"registerListener");if(W===0)return w(),0;return setTimeout(w,W)},"setSocketKeepAlive"),dW=3000,NY=H(($,U,G=0)=>{let W=H((w)=>{$.setTimeout(G-w,()=>{$.destroy(),U(Object.assign(new Error(`Connection timed out after ${G} ms`),{name:"TimeoutError"}))})},"registerTimeout");if(0<G&&G<6000)return W(0),0;return setTimeout(W.bind(null,G===0?0:dW),dW)},"setSocketTimeout"),rW=import.meta.require("stream"),gW=1000;async function P0($,U,G=gW){let W=U.headers??{},w=W.Expect||W.expect,X=-1,Z=!1;if(w==="100-continue")await Promise.race([new Promise((L)=>{X=Number(setTimeout(L,Math.max(gW,G)))}),new Promise((L)=>{$.on("continue",()=>{clearTimeout(X),L()}),$.on("error",()=>{Z=!0,clearTimeout(X),L()})})]);if(!Z)oW($,U.body)}H(P0,"writeRequestBody");function oW($,U){if(U instanceof rW.Readable){U.pipe($);return}if(U){if(Buffer.isBuffer(U)||typeof U==="string"){$.end(U);return}let G=U;if(typeof G==="object"&&G.buffer&&typeof G.byteOffset==="number"&&typeof G.byteLength==="number"){$.end(Buffer.from(G.buffer,G.byteOffset,G.byteLength));return}$.end(Buffer.from(U));return}$.end()}H(oW,"writeBody");var jY=0,aW=class ${constructor(U){this.socketWarningTimestamp=0,this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((G,W)=>{if(typeof U==="function")U().then((w)=>{G(this.resolveDefaultConfig(w))}).catch(W);else G(this.resolveDefaultConfig(U))})}static create(U){if(typeof(U==null?void 0:U.handle)==="function")return U;return new $(U)}static checkSocketUsage(U,G,W=console){var w,X,Z;let{sockets:L,requests:Y,maxSockets:z}=U;if(typeof z!=="number"||z===1/0)return G;let Q=15000;if(Date.now()-Q<G)return G;if(L&&Y)for(let F in L){let I=((w=L[F])==null?void 0:w.length)??0,R=((X=Y[F])==null?void 0:X.length)??0;if(I>=z&&R>=2*z)return(Z=W==null?void 0:W.warn)==null||Z.call(W,`@smithy/node-http-handler:WARN - socket usage at capacity=${I} and ${R} additional requests are enqueued.
|
|
2
|
-
See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
|
|
3
|
-
or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return G}resolveDefaultConfig(U){let{requestTimeout:G,connectionTimeout:W,socketTimeout:w,httpAgent:X,httpsAgent:Z}=U||{},L=!0,Y=50;return{connectionTimeout:W,requestTimeout:G??w,httpAgent:(()=>{if(X instanceof q0.Agent||typeof(X==null?void 0:X.destroy)==="function")return X;return new q0.Agent({keepAlive:!0,maxSockets:50,...X})})(),httpsAgent:(()=>{if(Z instanceof b0.Agent||typeof(Z==null?void 0:Z.destroy)==="function")return Z;return new b0.Agent({keepAlive:!0,maxSockets:50,...Z})})(),logger:console}}destroy(){var U,G,W,w;(G=(U=this.config)==null?void 0:U.httpAgent)==null||G.destroy(),(w=(W=this.config)==null?void 0:W.httpsAgent)==null||w.destroy()}async handle(U,{abortSignal:G}={}){if(!this.config)this.config=await this.configProvider;return new Promise((W,w)=>{let X=void 0,Z=[],L=H(async(V)=>{await X,Z.forEach(clearTimeout),W(V)},"resolve"),Y=H(async(V)=>{await X,Z.forEach(clearTimeout),w(V)},"reject");if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(G==null?void 0:G.aborted){let V=new Error("Request aborted");V.name="AbortError",Y(V);return}let z=U.protocol==="https:",Q=z?this.config.httpsAgent:this.config.httpAgent;Z.push(setTimeout(()=>{this.socketWarningTimestamp=$.checkSocketUsage(Q,this.socketWarningTimestamp,this.config.logger)},this.config.socketAcquisitionWarningTimeout??(this.config.requestTimeout??2000)+(this.config.connectionTimeout??1000)));let F=nW.buildQueryString(U.query||{}),I=void 0;if(U.username!=null||U.password!=null){let V=U.username??"",E=U.password??"";I=`${V}:${E}`}let R=U.path;if(F)R+=`?${F}`;if(U.fragment)R+=`#${U.fragment}`;let K=U.hostname??"";if(K[0]==="["&&K.endsWith("]"))K=U.hostname.slice(1,-1);else K=U.hostname;let B={headers:U.headers,host:K,method:U.method,path:R,port:U.port,agent:Q,auth:I},P=(z?b0.request:q0.request)(B,(V)=>{let E=new mW.HttpResponse({statusCode:V.statusCode||-1,reason:V.statusMessage,headers:iW(V.headers),body:V});L({response:E})});if(P.on("error",(V)=>{if(TY.includes(V.code))Y(Object.assign(V,{name:"TimeoutError"}));else Y(V)}),G){let V=H(()=>{P.destroy();let E=new Error("Request aborted");E.name="AbortError",Y(E)},"onAbort");if(typeof G.addEventListener==="function"){let E=G;E.addEventListener("abort",V,{once:!0}),P.once("close",()=>E.removeEventListener("abort",V))}else G.onabort=V}Z.push(OY(P,Y,this.config.connectionTimeout)),Z.push(NY(P,Y,this.config.requestTimeout));let O=B.agent;if(typeof O==="object"&&"keepAlive"in O)Z.push(CY(P,{keepAlive:O.keepAlive,keepAliveMsecs:O.keepAliveMsecs}));X=P0(P,U,this.config.requestTimeout).catch((V)=>{return Z.forEach(clearTimeout),w(V)})})}updateHttpClientConfig(U,G){this.config=void 0,this.configProvider=this.configProvider.then((W)=>{return{...W,[U]:G}})}httpHandlerConfigs(){return this.config??{}}};H(aW,"NodeHttpHandler");var qY=aW,pW=import.meta.require("http2"),bY=AY(import.meta.require("http2")),tW=class ${constructor(U){this.sessions=[],this.sessions=U??[]}poll(){if(this.sessions.length>0)return this.sessions.shift()}offerLast(U){this.sessions.push(U)}contains(U){return this.sessions.includes(U)}remove(U){this.sessions=this.sessions.filter((G)=>G!==U)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}destroy(U){for(let G of this.sessions)if(G===U){if(!G.destroyed)G.destroy()}}};H(tW,"NodeHttp2ConnectionPool");var PY=tW,eW=class ${constructor(U){if(this.sessionCache=new Map,this.config=U,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrency must be greater than zero.")}lease(U,G){let W=this.getUrlString(U),w=this.sessionCache.get(W);if(w){let Y=w.poll();if(Y&&!this.config.disableConcurrency)return Y}let X=bY.default.connect(W);if(this.config.maxConcurrency)X.settings({maxConcurrentStreams:this.config.maxConcurrency},(Y)=>{if(Y)throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+U.destination.toString())});X.unref();let Z=H(()=>{X.destroy(),this.deleteSession(W,X)},"destroySessionCb");if(X.on("goaway",Z),X.on("error",Z),X.on("frameError",Z),X.on("close",()=>this.deleteSession(W,X)),G.requestTimeout)X.setTimeout(G.requestTimeout,Z);let L=this.sessionCache.get(W)||new PY;return L.offerLast(X),this.sessionCache.set(W,L),X}deleteSession(U,G){let W=this.sessionCache.get(U);if(!W)return;if(!W.contains(G))return;W.remove(G),this.sessionCache.set(U,W)}release(U,G){var W;let w=this.getUrlString(U);(W=this.sessionCache.get(w))==null||W.offerLast(G)}destroy(){for(let[U,G]of this.sessionCache){for(let W of G){if(!W.destroyed)W.destroy();G.remove(W)}this.sessionCache.delete(U)}}setMaxConcurrentStreams(U){if(this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=U}setDisableConcurrentStreams(U){this.config.disableConcurrency=U}getUrlString(U){return U.destination.toString()}};H(eW,"NodeHttp2ConnectionManager");var SY=eW,$6=class ${constructor(U){this.metadata={handlerProtocol:"h2"},this.connectionManager=new SY({}),this.configProvider=new Promise((G,W)=>{if(typeof U==="function")U().then((w)=>{G(w||{})}).catch(W);else G(U||{})})}static create(U){if(typeof(U==null?void 0:U.handle)==="function")return U;return new $(U)}destroy(){this.connectionManager.destroy()}async handle(U,{abortSignal:G}={}){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:W,disableConcurrentStreams:w}=this.config;return new Promise((X,Z)=>{var L;let Y=!1,z=void 0,Q=H(async(N)=>{await z,X(N)},"resolve"),F=H(async(N)=>{await z,Z(N)},"reject");if(G==null?void 0:G.aborted){Y=!0;let N=new Error("Request aborted");N.name="AbortError",F(N);return}let{hostname:I,method:R,port:K,protocol:B,query:A}=U,P="";if(U.username!=null||U.password!=null){let N=U.username??"",u=U.password??"";P=`${N}:${u}@`}let O=`${B}//${P}${I}${K?`:${K}`:""}`,V={destination:new URL(O)},E=this.connectionManager.lease(V,{requestTimeout:(L=this.config)==null?void 0:L.sessionTimeout,disableConcurrentStreams:w||!1}),k=H((N)=>{if(w)this.destroySession(E);Y=!0,F(N)},"rejectWithDestroy"),G1=nW.buildQueryString(A||{}),$0=U.path;if(G1)$0+=`?${G1}`;if(U.fragment)$0+=`#${U.fragment}`;let x=E.request({...U.headers,[pW.constants.HTTP2_HEADER_PATH]:$0,[pW.constants.HTTP2_HEADER_METHOD]:R});if(E.ref(),x.on("response",(N)=>{let u=new mW.HttpResponse({statusCode:N[":status"]||-1,headers:iW(N),body:x});if(Y=!0,Q({response:u}),w)E.close(),this.connectionManager.deleteSession(O,E)}),W)x.setTimeout(W,()=>{x.close();let N=new Error(`Stream timed out because of no activity for ${W} ms`);N.name="TimeoutError",k(N)});if(G){let N=H(()=>{x.close();let u=new Error("Request aborted");u.name="AbortError",k(u)},"onAbort");if(typeof G.addEventListener==="function"){let u=G;u.addEventListener("abort",N,{once:!0}),x.once("close",()=>u.removeEventListener("abort",N))}else G.onabort=N}x.on("frameError",(N,u,AX)=>{k(new Error(`Frame type id ${N} in stream id ${AX} has failed with code ${u}.`))}),x.on("error",k),x.on("aborted",()=>{k(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${x.rstCode}.`))}),x.on("close",()=>{if(E.unref(),w)E.destroy();if(!Y)k(new Error("Unexpected error: http2 request did not get a response"))}),z=P0(x,U,W)})}updateHttpClientConfig(U,G){this.config=void 0,this.configProvider=this.configProvider.then((W)=>{return{...W,[U]:G}})}httpHandlerConfigs(){return this.config??{}}destroySession(U){if(!U.destroyed)U.destroy()}};H($6,"NodeHttp2Handler");var kY=$6,U6=class $ extends rW.Writable{constructor(){super(...arguments);this.bufferedBytes=[]}_write(U,G,W){this.bufferedBytes.push(U),W()}};H(U6,"Collector");var DY=U6,hY=H(($)=>{if(xY($))return G6($);return new Promise((U,G)=>{let W=new DY;$.pipe(W),$.on("error",(w)=>{W.end(),G(w)}),W.on("error",G),W.on("finish",function(){let w=new Uint8Array(Buffer.concat(this.bufferedBytes));U(w)})})},"streamCollector"),xY=H(($)=>typeof ReadableStream==="function"&&$ instanceof ReadableStream,"isReadableStreamInstance");async function G6($){let U=[],G=$.getReader(),W=!1,w=0;while(!W){let{done:L,value:Y}=await G.read();if(Y)U.push(Y),w+=Y.length;W=L}let X=new Uint8Array(w),Z=0;for(let L of U)X.set(L,Z),Z+=L.length;return X}H(G6,"collectReadableStream")});var I6=M((mJ,J6)=>{var{defineProperty:B$,getOwnPropertyDescriptor:vY,getOwnPropertyNames:yY}=Object,cY=Object.prototype.hasOwnProperty,n=($,U)=>B$($,"name",{value:U,configurable:!0}),_Y=($,U)=>{for(var G in U)B$($,G,{get:U[G],enumerable:!0})},uY=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of yY(U))if(!cY.call($,w)&&w!==G)B$($,w,{get:()=>U[w],enumerable:!(W=vY(U,w))||W.enumerable})}return $},dY=($)=>uY(B$({},"__esModule",{value:!0}),$),Z6={};_Y(Z6,{FetchHttpHandler:()=>pY,keepAliveSupport:()=>M$,streamCollector:()=>lY});J6.exports=dY(Z6);var X6=m(),gY=j0();function L6($=0){return new Promise((U,G)=>{if($)setTimeout(()=>{let W=new Error(`Request did not complete within ${$} ms`);W.name="TimeoutError",G(W)},$)})}n(L6,"requestTimeout");var M$={supported:void 0},Y6=class ${static create(U){if(typeof(U==null?void 0:U.handle)==="function")return U;return new $(U)}constructor(U){if(typeof U==="function")this.configProvider=U().then((G)=>G||{});else this.config=U??{},this.configProvider=Promise.resolve(this.config);if(M$.supported===void 0)M$.supported=Boolean(typeof Request!=="undefined"&&"keepalive"in new Request("https://[::1]"))}destroy(){}async handle(U,{abortSignal:G}={}){var W;if(!this.config)this.config=await this.configProvider;let w=this.config.requestTimeout,X=this.config.keepAlive===!0,Z=this.config.credentials;if(G==null?void 0:G.aborted){let O=new Error("Request aborted");return O.name="AbortError",Promise.reject(O)}let L=U.path,Y=gY.buildQueryString(U.query||{});if(Y)L+=`?${Y}`;if(U.fragment)L+=`#${U.fragment}`;let z="";if(U.username!=null||U.password!=null){let O=U.username??"",V=U.password??"";z=`${O}:${V}@`}let{port:Q,method:F}=U,I=`${U.protocol}//${z}${U.hostname}${Q?`:${Q}`:""}${L}`,R=F==="GET"||F==="HEAD"?void 0:U.body,K={body:R,headers:new Headers(U.headers),method:F,credentials:Z};if((W=this.config)==null?void 0:W.cache)K.cache=this.config.cache;if(R)K.duplex="half";if(typeof AbortController!=="undefined")K.signal=G;if(M$.supported)K.keepalive=X;if(typeof this.config.requestInit==="function")Object.assign(K,this.config.requestInit(U));let B=n(()=>{},"removeSignalEventListener"),A=new Request(I,K),P=[fetch(A).then((O)=>{let V=O.headers,E={};for(let G1 of V.entries())E[G1[0]]=G1[1];if(O.body==null)return O.blob().then((G1)=>({response:new X6.HttpResponse({headers:E,reason:O.statusText,statusCode:O.status,body:G1})}));return{response:new X6.HttpResponse({headers:E,reason:O.statusText,statusCode:O.status,body:O.body})}}),L6(w)];if(G)P.push(new Promise((O,V)=>{let E=n(()=>{let k=new Error("Request aborted");k.name="AbortError",V(k)},"onAbort");if(typeof G.addEventListener==="function"){let k=G;k.addEventListener("abort",E,{once:!0}),B=n(()=>k.removeEventListener("abort",E),"removeSignalEventListener")}else G.onabort=E}));return Promise.race(P).finally(B)}updateHttpClientConfig(U,G){this.config=void 0,this.configProvider=this.configProvider.then((W)=>{return W[U]=G,W})}httpHandlerConfigs(){return this.config??{}}};n(Y6,"FetchHttpHandler");var pY=Y6,sY=I$(),lY=n(($)=>{if(typeof Blob==="function"&&$ instanceof Blob)return z6($);return Q6($)},"streamCollector");async function z6($){let U=await F6($),G=sY.fromBase64(U);return new Uint8Array(G)}n(z6,"collectBlob");async function Q6($){let U=[],G=$.getReader(),W=!1,w=0;while(!W){let{done:L,value:Y}=await G.read();if(Y)U.push(Y),w+=Y.length;W=L}let X=new Uint8Array(w),Z=0;for(let L of U)X.set(L,Z),Z+=L.length;return X}n(Q6,"collectStream");function F6($){return new Promise((U,G)=>{let W=new FileReader;W.onloadend=()=>{if(W.readyState!==2)return G(new Error("Reader aborted too early"));let w=W.result??"",X=w.indexOf(","),Z=X>-1?X+1:w.length;U(w.substring(Z))},W.onabort=()=>G(new Error("Read aborted")),W.onerror=()=>G(W.error),W.readAsDataURL($)})}n(F6,"readToBase64")});var D1=M((R6)=>{Object.defineProperty(R6,"__esModule",{value:!0});R6.isReadableStream=void 0;var mY=($)=>{var U;return typeof ReadableStream==="function"&&(((U=$===null||$===void 0?void 0:$.constructor)===null||U===void 0?void 0:U.name)===ReadableStream.name||$ instanceof ReadableStream)};R6.isReadableStream=mY});var T6=M((A6)=>{Object.defineProperty(A6,"__esModule",{value:!0});A6.sdkStreamMixin=void 0;var nY=I6(),iY=I$(),rY=H6(),oY=o(),M6=D1(),B6="The stream has already been transformed.",aY=($)=>{var U,G;if(!V6($)&&!M6.isReadableStream($)){let Z=((G=(U=$===null||$===void 0?void 0:$.__proto__)===null||U===void 0?void 0:U.constructor)===null||G===void 0?void 0:G.name)||$;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${Z}`)}let W=!1,w=async()=>{if(W)throw new Error(B6);return W=!0,await nY.streamCollector($)},X=(Z)=>{if(typeof Z.stream!=="function")throw new Error("Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.\nIf you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body");return Z.stream()};return Object.assign($,{transformToByteArray:w,transformToString:async(Z)=>{let L=await w();if(Z==="base64")return iY.toBase64(L);else if(Z==="hex")return rY.toHex(L);else if(Z===void 0||Z==="utf8"||Z==="utf-8")return oY.toUtf8(L);else if(typeof TextDecoder==="function")return new TextDecoder(Z).decode(L);else throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(W)throw new Error(B6);if(W=!0,V6($))return X($);else if(M6.isReadableStream($))return $;else throw new Error(`Cannot transform payload to web stream, got ${$}`)}})};A6.sdkStreamMixin=aY;var V6=($)=>typeof Blob==="function"&&$ instanceof Blob});var N6=M((f6)=>{Object.defineProperty(f6,"__esModule",{value:!0});f6.sdkStreamMixin=void 0;var tY=w6(),eY=S1(),S0=import.meta.require("stream"),$z=import.meta.require("util"),Uz=T6(),O6="The stream has already been transformed.",Gz=($)=>{var U,G;if(!($ instanceof S0.Readable))try{return Uz.sdkStreamMixin($)}catch(X){let Z=((G=(U=$===null||$===void 0?void 0:$.__proto__)===null||U===void 0?void 0:U.constructor)===null||G===void 0?void 0:G.name)||$;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${Z}`)}let W=!1,w=async()=>{if(W)throw new Error(O6);return W=!0,await tY.streamCollector($)};return Object.assign($,{transformToByteArray:w,transformToString:async(X)=>{let Z=await w();if(X===void 0||Buffer.isEncoding(X))return eY.fromArrayBuffer(Z.buffer,Z.byteOffset,Z.byteLength).toString(X);else return new $z.TextDecoder(X).decode(Z)},transformToWebStream:()=>{if(W)throw new Error(O6);if($.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof S0.Readable.toWeb!=="function")throw new Error("Readable.toWeb() is not supported. Please make sure you are using Node.js >= 17.0.0, or polyfill is available.");return W=!0,S0.Readable.toWeb($)}})};f6.sdkStreamMixin=Gz});var b6=M((j6)=>{Object.defineProperty(j6,"__esModule",{value:!0});j6.splitStream=void 0;async function Wz($){if(typeof $.stream==="function")$=$.stream();return $.tee()}j6.splitStream=Wz});var D6=M((S6)=>{Object.defineProperty(S6,"__esModule",{value:!0});S6.splitStream=void 0;var P6=import.meta.require("stream"),wz=b6(),Xz=D1();async function Zz($){if(Xz.isReadableStream($))return wz.splitStream($);let U=new P6.PassThrough,G=new P6.PassThrough;return $.pipe(U),$.pipe(G),[U,G]}S6.splitStream=Zz});var v6=M((h6)=>{Object.defineProperty(h6,"__esModule",{value:!0});h6.headStream=void 0;async function Lz($,U){var G;let W=0,w=[],X=$.getReader(),Z=!1;while(!Z){let{done:z,value:Q}=await X.read();if(Q)w.push(Q),W+=(G=Q===null||Q===void 0?void 0:Q.byteLength)!==null&&G!==void 0?G:0;if(W>=U)break;Z=z}X.releaseLock();let L=new Uint8Array(Math.min(U,W)),Y=0;for(let z of w){if(z.byteLength>L.byteLength-Y){L.set(z.subarray(0,L.byteLength-Y),Y);break}else L.set(z,Y);Y+=z.length}return L}h6.headStream=Lz});var u6=M((c6)=>{Object.defineProperty(c6,"__esModule",{value:!0});c6.headStream=void 0;var Yz=import.meta.require("stream"),zz=v6(),Qz=D1(),Fz=($,U)=>{if(Qz.isReadableStream($))return zz.headStream($,U);return new Promise((G,W)=>{let w=new y6;w.limit=U,$.pipe(w),$.on("error",(X)=>{w.end(),W(X)}),w.on("error",W),w.on("finish",function(){let X=new Uint8Array(Buffer.concat(this.buffers));G(X)})})};c6.headStream=Fz;class y6 extends Yz.Writable{constructor(){super(...arguments);this.buffers=[],this.limit=1/0,this.bytesBuffered=0}_write($,U,G){var W;if(this.buffers.push($),this.bytesBuffered+=(W=$.byteLength)!==null&&W!==void 0?W:0,this.bytesBuffered>=this.limit){let w=this.bytesBuffered-this.limit,X=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=X.subarray(0,X.byteLength-w),this.emit("finish")}G()}}});var m6=M(($I,L1)=>{var{defineProperty:V$,getOwnPropertyDescriptor:Jz,getOwnPropertyNames:Iz}=Object,Rz=Object.prototype.hasOwnProperty,h0=($,U)=>V$($,"name",{value:U,configurable:!0}),Kz=($,U)=>{for(var G in U)V$($,G,{get:U[G],enumerable:!0})},k0=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of Iz(U))if(!Rz.call($,w)&&w!==G)V$($,w,{get:()=>U[w],enumerable:!(W=Jz(U,w))||W.enumerable})}return $},h1=($,U,G)=>(k0($,U,"default"),G&&k0(G,U,"default")),Mz=($)=>k0(V$({},"__esModule",{value:!0}),$),Z1={};Kz(Z1,{Uint8ArrayBlobAdapter:()=>D0});L1.exports=Mz(Z1);var d6=I$(),g6=o();function p6($,U="utf-8"){if(U==="base64")return d6.toBase64($);return g6.toUtf8($)}h0(p6,"transformToString");function s6($,U){if(U==="base64")return D0.mutate(d6.fromBase64($));return D0.mutate(g6.fromUtf8($))}h0(s6,"transformFromString");var l6=class $ extends Uint8Array{static fromString(U,G="utf-8"){switch(typeof U){case"string":return s6(U,G);default:throw new Error(`Unsupported conversion from ${typeof U} to Uint8ArrayBlobAdapter.`)}}static mutate(U){return Object.setPrototypeOf(U,$.prototype),U}transformToString(U="utf-8"){return p6(this,U)}};h0(l6,"Uint8ArrayBlobAdapter");var D0=l6;h1(Z1,DW(),L1.exports);h1(Z1,N6(),L1.exports);h1(Z1,D6(),L1.exports);h1(Z1,u6(),L1.exports);h1(Z1,D1(),L1.exports)});var A1=M((UI,Kw)=>{var{defineProperty:T$,getOwnPropertyDescriptor:Vz,getOwnPropertyNames:Hz}=Object,Az=Object.prototype.hasOwnProperty,J=($,U)=>T$($,"name",{value:U,configurable:!0}),Ez=($,U)=>{for(var G in U)T$($,G,{get:U[G],enumerable:!0})},Tz=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of Hz(U))if(!Az.call($,w)&&w!==G)T$($,w,{get:()=>U[w],enumerable:!(W=Vz(U,w))||W.enumerable})}return $},Oz=($)=>Tz(T$({},"__esModule",{value:!0}),$),i6={};Ez(i6,{Client:()=>Cz,Command:()=>e6,LazyJsonString:()=>E9,NoOpLogger:()=>fz,SENSITIVE_STRING:()=>qz,ServiceException:()=>z9,StringWrapper:()=>_1,_json:()=>d0,collectBody:()=>Nz,convertMap:()=>T9,createAggregatedClient:()=>bz,dateToUtcString:()=>Zw,decorateServiceException:()=>Yw,emitWarningIfUnsupportedVersion:()=>I9,expectBoolean:()=>Sz,expectByte:()=>u0,expectFloat32:()=>H$,expectInt:()=>Dz,expectInt32:()=>c0,expectLong:()=>y1,expectNonNull:()=>xz,expectNumber:()=>v1,expectObject:()=>Uw,expectShort:()=>_0,expectString:()=>vz,expectUnion:()=>yz,extendedEncodeURIComponent:()=>E$,getArrayIfSingleItem:()=>A9,getDefaultClientConfiguration:()=>V9,getDefaultExtensionConfiguration:()=>Qw,getValueFromTextNode:()=>Fw,handleFloat:()=>uz,limitedParseDouble:()=>s0,limitedParseFloat:()=>dz,limitedParseFloat32:()=>gz,loadConfigsForDefaultMode:()=>J9,logger:()=>c1,map:()=>m0,parseBoolean:()=>Pz,parseEpochTimestamp:()=>$9,parseRfc3339DateTime:()=>nz,parseRfc3339DateTimeWithOffset:()=>rz,parseRfc7231DateTime:()=>ez,resolveDefaultRuntimeConfig:()=>H9,resolvedPath:()=>j9,serializeDateTime:()=>b9,serializeFloat:()=>q9,splitEvery:()=>Rw,strictParseByte:()=>Xw,strictParseDouble:()=>p0,strictParseFloat:()=>cz,strictParseFloat32:()=>Gw,strictParseInt:()=>pz,strictParseInt32:()=>sz,strictParseLong:()=>ww,strictParseShort:()=>B1,take:()=>O9,throwDefaultError:()=>zw,withBaseException:()=>Q9});Kw.exports=Oz(i6);var r6=class ${trace(){}debug(){}info(){}warn(){}error(){}};J(r6,"NoOpLogger");var fz=r6,o6=Bz(),a6=class ${constructor(U){this.config=U,this.middlewareStack=o6.constructStack()}send(U,G,W){let w=typeof G!=="function"?G:void 0,X=typeof G==="function"?G:W,Z=w===void 0&&this.config.cacheMiddleware===!0,L;if(Z){if(!this.handlers)this.handlers=new WeakMap;let Y=this.handlers;if(Y.has(U.constructor))L=Y.get(U.constructor);else L=U.resolveMiddleware(this.middlewareStack,this.config,w),Y.set(U.constructor,L)}else delete this.handlers,L=U.resolveMiddleware(this.middlewareStack,this.config,w);if(X)L(U).then((Y)=>X(null,Y.output),(Y)=>X(Y)).catch(()=>{});else return L(U).then((Y)=>Y.output)}destroy(){var U,G,W;(W=(G=(U=this.config)==null?void 0:U.requestHandler)==null?void 0:G.destroy)==null||W.call(G),delete this.handlers}};J(a6,"Client");var Cz=a6,x0=m6(),Nz=J(async($=new Uint8Array,U)=>{if($ instanceof Uint8Array)return x0.Uint8ArrayBlobAdapter.mutate($);if(!$)return x0.Uint8ArrayBlobAdapter.mutate(new Uint8Array);let G=U.streamCollector($);return x0.Uint8ArrayBlobAdapter.mutate(await G)},"collectBody"),y0=I1(),t6=class ${constructor(){this.middlewareStack=o6.constructStack()}static classBuilder(){return new jz}resolveMiddlewareWithContext(U,G,W,{middlewareFn:w,clientName:X,commandName:Z,inputFilterSensitiveLog:L,outputFilterSensitiveLog:Y,smithyContext:z,additionalContext:Q,CommandCtor:F}){for(let A of w.bind(this)(F,U,G,W))this.middlewareStack.use(A);let I=U.concat(this.middlewareStack),{logger:R}=G,K={logger:R,clientName:X,commandName:Z,inputFilterSensitiveLog:L,outputFilterSensitiveLog:Y,[y0.SMITHY_CONTEXT_KEY]:{commandInstance:this,...z},...Q},{requestHandler:B}=G;return I.resolve((A)=>B.handle(A.request,W||{}),K)}};J(t6,"Command");var e6=t6,$w=class ${constructor(){this._init=()=>{},this._ep={},this._middlewareFn=()=>[],this._commandName="",this._clientName="",this._additionalContext={},this._smithyContext={},this._inputFilterSensitiveLog=(U)=>U,this._outputFilterSensitiveLog=(U)=>U,this._serializer=null,this._deserializer=null}init(U){this._init=U}ep(U){return this._ep=U,this}m(U){return this._middlewareFn=U,this}s(U,G,W={}){return this._smithyContext={service:U,operation:G,...W},this}c(U={}){return this._additionalContext=U,this}n(U,G){return this._clientName=U,this._commandName=G,this}f(U=(W)=>W,G=(W)=>W){return this._inputFilterSensitiveLog=U,this._outputFilterSensitiveLog=G,this}ser(U){return this._serializer=U,this}de(U){return this._deserializer=U,this}build(){var U;let G=this,W;return W=(U=class extends e6{constructor(...[w]){super();this.serialize=G._serializer,this.deserialize=G._deserializer,this.input=w??{},G._init(this)}static getEndpointParameterInstructions(){return G._ep}resolveMiddleware(w,X,Z){return this.resolveMiddlewareWithContext(w,X,Z,{CommandCtor:W,middlewareFn:G._middlewareFn,clientName:G._clientName,commandName:G._commandName,inputFilterSensitiveLog:G._inputFilterSensitiveLog,outputFilterSensitiveLog:G._outputFilterSensitiveLog,smithyContext:G._smithyContext,additionalContext:G._additionalContext})}},J(U,"CommandRef"),U)}};J($w,"ClassBuilder");var jz=$w,qz="***SensitiveInformation***",bz=J(($,U)=>{for(let G of Object.keys($)){let W=$[G],w=J(async function(Z,L,Y){let z=new W(Z);if(typeof L==="function")this.send(z,L);else if(typeof Y==="function"){if(typeof L!=="object")throw new Error(`Expected http options but got ${typeof L}`);this.send(z,L||{},Y)}else return this.send(z,L)},"methodImpl"),X=(G[0].toLowerCase()+G.slice(1)).replace(/Command$/,"");U.prototype[X]=w}},"createAggregatedClient"),Pz=J(($)=>{switch($){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${$}"`)}},"parseBoolean"),Sz=J(($)=>{if($===null||$===void 0)return;if(typeof $==="number"){if($===0||$===1)c1.warn(A$(`Expected boolean, got ${typeof $}: ${$}`));if($===0)return!1;if($===1)return!0}if(typeof $==="string"){let U=$.toLowerCase();if(U==="false"||U==="true")c1.warn(A$(`Expected boolean, got ${typeof $}: ${$}`));if(U==="false")return!1;if(U==="true")return!0}if(typeof $==="boolean")return $;throw new TypeError(`Expected boolean, got ${typeof $}: ${$}`)},"expectBoolean"),v1=J(($)=>{if($===null||$===void 0)return;if(typeof $==="string"){let U=parseFloat($);if(!Number.isNaN(U)){if(String(U)!==String($))c1.warn(A$(`Expected number but observed string: ${$}`));return U}}if(typeof $==="number")return $;throw new TypeError(`Expected number, got ${typeof $}: ${$}`)},"expectNumber"),kz=Math.ceil(340282346638528860000000000000000000000),H$=J(($)=>{let U=v1($);if(U!==void 0&&!Number.isNaN(U)&&U!==1/0&&U!==-1/0){if(Math.abs(U)>kz)throw new TypeError(`Expected 32-bit float, got ${$}`)}return U},"expectFloat32"),y1=J(($)=>{if($===null||$===void 0)return;if(Number.isInteger($)&&!Number.isNaN($))return $;throw new TypeError(`Expected integer, got ${typeof $}: ${$}`)},"expectLong"),Dz=y1,c0=J(($)=>g0($,32),"expectInt32"),_0=J(($)=>g0($,16),"expectShort"),u0=J(($)=>g0($,8),"expectByte"),g0=J(($,U)=>{let G=y1($);if(G!==void 0&&hz(G,U)!==G)throw new TypeError(`Expected ${U}-bit integer, got ${$}`);return G},"expectSizedInt"),hz=J(($,U)=>{switch(U){case 32:return Int32Array.of($)[0];case 16:return Int16Array.of($)[0];case 8:return Int8Array.of($)[0]}},"castInt"),xz=J(($,U)=>{if($===null||$===void 0){if(U)throw new TypeError(`Expected a non-null value for ${U}`);throw new TypeError("Expected a non-null value")}return $},"expectNonNull"),Uw=J(($)=>{if($===null||$===void 0)return;if(typeof $==="object"&&!Array.isArray($))return $;let U=Array.isArray($)?"array":typeof $;throw new TypeError(`Expected object, got ${U}: ${$}`)},"expectObject"),vz=J(($)=>{if($===null||$===void 0)return;if(typeof $==="string")return $;if(["boolean","number","bigint"].includes(typeof $))return c1.warn(A$(`Expected string, got ${typeof $}: ${$}`)),String($);throw new TypeError(`Expected string, got ${typeof $}: ${$}`)},"expectString"),yz=J(($)=>{if($===null||$===void 0)return;let U=Uw($),G=Object.entries(U).filter(([,W])=>W!=null).map(([W])=>W);if(G.length===0)throw new TypeError("Unions must have exactly one non-null member. None were found.");if(G.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${G} were not null.`);return U},"expectUnion"),p0=J(($)=>{if(typeof $=="string")return v1(H1($));return v1($)},"strictParseDouble"),cz=p0,Gw=J(($)=>{if(typeof $=="string")return H$(H1($));return H$($)},"strictParseFloat32"),_z=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,H1=J(($)=>{let U=$.match(_z);if(U===null||U[0].length!==$.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat($)},"parseNumber"),s0=J(($)=>{if(typeof $=="string")return Ww($);return v1($)},"limitedParseDouble"),uz=s0,dz=s0,gz=J(($)=>{if(typeof $=="string")return Ww($);return H$($)},"limitedParseFloat32"),Ww=J(($)=>{switch($){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new Error(`Unable to parse float value: ${$}`)}},"parseFloatString"),ww=J(($)=>{if(typeof $==="string")return y1(H1($));return y1($)},"strictParseLong"),pz=ww,sz=J(($)=>{if(typeof $==="string")return c0(H1($));return c0($)},"strictParseInt32"),B1=J(($)=>{if(typeof $==="string")return _0(H1($));return _0($)},"strictParseShort"),Xw=J(($)=>{if(typeof $==="string")return u0(H1($));return u0($)},"strictParseByte"),A$=J(($)=>{return String(new TypeError($).stack||$).split("\n").slice(0,5).filter((U)=>!U.includes("stackTraceWarning")).join("\n")},"stackTraceWarning"),c1={warn:console.warn},lz=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],l0=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Zw($){let U=$.getUTCFullYear(),G=$.getUTCMonth(),W=$.getUTCDay(),w=$.getUTCDate(),X=$.getUTCHours(),Z=$.getUTCMinutes(),L=$.getUTCSeconds(),Y=w<10?`0${w}`:`${w}`,z=X<10?`0${X}`:`${X}`,Q=Z<10?`0${Z}`:`${Z}`,F=L<10?`0${L}`:`${L}`;return`${lz[W]}, ${Y} ${l0[G]} ${U} ${z}:${Q}:${F} GMT`}J(Zw,"dateToUtcString");var mz=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),nz=J(($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let U=mz.exec($);if(!U)throw new TypeError("Invalid RFC-3339 date-time value");let[G,W,w,X,Z,L,Y,z]=U,Q=B1(V1(W)),F=l(w,"month",1,12),I=l(X,"day",1,31);return x1(Q,F,I,{hours:Z,minutes:L,seconds:Y,fractionalMilliseconds:z})},"parseRfc3339DateTime"),iz=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),rz=J(($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let U=iz.exec($);if(!U)throw new TypeError("Invalid RFC-3339 date-time value");let[G,W,w,X,Z,L,Y,z,Q]=U,F=B1(V1(W)),I=l(w,"month",1,12),R=l(X,"day",1,31),K=x1(F,I,R,{hours:Z,minutes:L,seconds:Y,fractionalMilliseconds:z});if(Q.toUpperCase()!="Z")K.setTime(K.getTime()-Y9(Q));return K},"parseRfc3339DateTimeWithOffset"),oz=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$/),az=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$/),tz=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})$/),ez=J(($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let U=oz.exec($);if(U){let[G,W,w,X,Z,L,Y,z]=U;return x1(B1(V1(X)),v0(w),l(W,"day",1,31),{hours:Z,minutes:L,seconds:Y,fractionalMilliseconds:z})}if(U=az.exec($),U){let[G,W,w,X,Z,L,Y,z]=U;return W9(x1(U9(X),v0(w),l(W,"day",1,31),{hours:Z,minutes:L,seconds:Y,fractionalMilliseconds:z}))}if(U=tz.exec($),U){let[G,W,w,X,Z,L,Y,z]=U;return x1(B1(V1(z)),v0(W),l(w.trimLeft(),"day",1,31),{hours:X,minutes:Z,seconds:L,fractionalMilliseconds:Y})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),$9=J(($)=>{if($===null||$===void 0)return;let U;if(typeof $==="number")U=$;else if(typeof $==="string")U=p0($);else if(typeof $==="object"&&$.tag===1)U=$.value;else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(U)||U===1/0||U===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(U*1000))},"parseEpochTimestamp"),x1=J(($,U,G,W)=>{let w=U-1;return X9($,w,G),new Date(Date.UTC($,w,G,l(W.hours,"hour",0,23),l(W.minutes,"minute",0,59),l(W.seconds,"seconds",0,60),L9(W.fractionalMilliseconds)))},"buildDate"),U9=J(($)=>{let U=new Date().getUTCFullYear(),G=Math.floor(U/100)*100+B1(V1($));if(G<U)return G+100;return G},"parseTwoDigitYear"),G9=1576800000000,W9=J(($)=>{if($.getTime()-new Date().getTime()>G9)return new Date(Date.UTC($.getUTCFullYear()-100,$.getUTCMonth(),$.getUTCDate(),$.getUTCHours(),$.getUTCMinutes(),$.getUTCSeconds(),$.getUTCMilliseconds()));return $},"adjustRfc850Year"),v0=J(($)=>{let U=l0.indexOf($);if(U<0)throw new TypeError(`Invalid month: ${$}`);return U+1},"parseMonthByShortName"),w9=[31,28,31,30,31,30,31,31,30,31,30,31],X9=J(($,U,G)=>{let W=w9[U];if(U===1&&Z9($))W=29;if(G>W)throw new TypeError(`Invalid day for ${l0[U]} in ${$}: ${G}`)},"validateDayOfMonth"),Z9=J(($)=>{return $%4===0&&($%100!==0||$%400===0)},"isLeapYear"),l=J(($,U,G,W)=>{let w=Xw(V1($));if(w<G||w>W)throw new TypeError(`${U} must be between ${G} and ${W}, inclusive`);return w},"parseDateValue"),L9=J(($)=>{if($===null||$===void 0)return 0;return Gw("0."+$)*1000},"parseMilliseconds"),Y9=J(($)=>{let U=$[0],G=1;if(U=="+")G=1;else if(U=="-")G=-1;else throw new TypeError(`Offset direction, ${U}, must be "+" or "-"`);let W=Number($.substring(1,3)),w=Number($.substring(4,6));return G*(W*60+w)*60*1000},"parseOffsetToMilliseconds"),V1=J(($)=>{let U=0;while(U<$.length-1&&$.charAt(U)==="0")U++;if(U===0)return $;return $.slice(U)},"stripLeadingZeroes"),Lw=class $ extends Error{constructor(U){super(U.message);Object.setPrototypeOf(this,$.prototype),this.name=U.name,this.$fault=U.$fault,this.$metadata=U.$metadata}};J(Lw,"ServiceException");var z9=Lw,Yw=J(($,U={})=>{Object.entries(U).filter(([,W])=>W!==void 0).forEach(([W,w])=>{if($[W]==null||$[W]==="")$[W]=w});let G=$.message||$.Message||"UnknownError";return $.message=G,delete $.Message,$},"decorateServiceException"),zw=J(({output:$,parsedBody:U,exceptionCtor:G,errorCode:W})=>{let w=F9($),X=w.httpStatusCode?w.httpStatusCode+"":void 0,Z=new G({name:(U==null?void 0:U.code)||(U==null?void 0:U.Code)||W||X||"UnknownError",$fault:"client",$metadata:w});throw Yw(Z,U)},"throwDefaultError"),Q9=J(($)=>{return({output:U,parsedBody:G,errorCode:W})=>{zw({output:U,parsedBody:G,exceptionCtor:$,errorCode:W})}},"withBaseException"),F9=J(($)=>({httpStatusCode:$.statusCode,requestId:$.headers["x-amzn-requestid"]??$.headers["x-amzn-request-id"]??$.headers["x-amz-request-id"],extendedRequestId:$.headers["x-amz-id-2"],cfId:$.headers["x-amz-cf-id"]}),"deserializeMetadata"),J9=J(($)=>{switch($){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"),n6=!1,I9=J(($)=>{if($&&!n6&&parseInt($.substring(1,$.indexOf(".")))<16)n6=!0},"emitWarningIfUnsupportedVersion"),R9=J(($)=>{let U=[];for(let G in y0.AlgorithmId){let W=y0.AlgorithmId[G];if($[W]===void 0)continue;U.push({algorithmId:()=>W,checksumConstructor:()=>$[W]})}return{_checksumAlgorithms:U,addChecksumAlgorithm(G){this._checksumAlgorithms.push(G)},checksumAlgorithms(){return this._checksumAlgorithms}}},"getChecksumConfiguration"),K9=J(($)=>{let U={};return $.checksumAlgorithms().forEach((G)=>{U[G.algorithmId()]=G.checksumConstructor()}),U},"resolveChecksumRuntimeConfig"),M9=J(($)=>{let U=$.retryStrategy;return{setRetryStrategy(G){U=G},retryStrategy(){return U}}},"getRetryConfiguration"),B9=J(($)=>{let U={};return U.retryStrategy=$.retryStrategy(),U},"resolveRetryRuntimeConfig"),Qw=J(($)=>{return{...R9($),...M9($)}},"getDefaultExtensionConfiguration"),V9=Qw,H9=J(($)=>{return{...K9($),...B9($)}},"resolveDefaultRuntimeConfig");function E$($){return encodeURIComponent($).replace(/[!'()*]/g,function(U){return"%"+U.charCodeAt(0).toString(16).toUpperCase()})}J(E$,"extendedEncodeURIComponent");var A9=J(($)=>Array.isArray($)?$:[$],"getArrayIfSingleItem"),Fw=J(($)=>{for(let G in $)if($.hasOwnProperty(G)&&$[G]["#text"]!==void 0)$[G]=$[G]["#text"];else if(typeof $[G]==="object"&&$[G]!==null)$[G]=Fw($[G]);return $},"getValueFromTextNode"),_1=J(function(){let $=Object.getPrototypeOf(this).constructor,G=new(Function.bind.apply(String,[null,...arguments]));return Object.setPrototypeOf(G,$.prototype),G},"StringWrapper");_1.prototype=Object.create(String.prototype,{constructor:{value:_1,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(_1,String);var Jw=class $ extends _1{deserializeJSON(){return JSON.parse(super.toString())}toJSON(){return super.toString()}static fromObject(U){if(U instanceof $)return U;else if(U instanceof String||typeof U==="string")return new $(U);return new $(JSON.stringify(U))}};J(Jw,"LazyJsonString");var E9=Jw;function m0($,U,G){let W,w,X;if(typeof U==="undefined"&&typeof G==="undefined")W={},X=$;else if(W=$,typeof U==="function")return w=U,X=G,f9(W,w,X);else X=U;for(let Z of Object.keys(X)){if(!Array.isArray(X[Z])){W[Z]=X[Z];continue}Iw(W,null,X,Z)}return W}J(m0,"map");var T9=J(($)=>{let U={};for(let[G,W]of Object.entries($||{}))U[G]=[,W];return U},"convertMap"),O9=J(($,U)=>{let G={};for(let W in U)Iw(G,$,U,W);return G},"take"),f9=J(($,U,G)=>{return m0($,Object.entries(G).reduce((W,[w,X])=>{if(Array.isArray(X))W[w]=X;else if(typeof X==="function")W[w]=[U,X()];else W[w]=[U,X];return W},{}))},"mapWithFilter"),Iw=J(($,U,G,W)=>{if(U!==null){let Z=G[W];if(typeof Z==="function")Z=[,Z];let[L=C9,Y=N9,z=W]=Z;if(typeof L==="function"&&L(U[z])||typeof L!=="function"&&!!L)$[W]=Y(U[z]);return}let[w,X]=G[W];if(typeof X==="function"){let Z,L=w===void 0&&(Z=X())!=null,Y=typeof w==="function"&&!!w(void 0)||typeof w!=="function"&&!!w;if(L)$[W]=Z;else if(Y)$[W]=X()}else{let Z=w===void 0&&X!=null,L=typeof w==="function"&&!!w(X)||typeof w!=="function"&&!!w;if(Z||L)$[W]=X}},"applyInstruction"),C9=J(($)=>$!=null,"nonNullish"),N9=J(($)=>$,"pass"),j9=J(($,U,G,W,w,X)=>{if(U!=null&&U[G]!==void 0){let Z=W();if(Z.length<=0)throw new Error("Empty value provided for input HTTP label: "+G+".");$=$.replace(w,X?Z.split("/").map((L)=>E$(L)).join("/"):E$(Z))}else throw new Error("No value provided for input HTTP label: "+G+".");return $},"resolvedPath"),q9=J(($)=>{if($!==$)return"NaN";switch($){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return $}},"serializeFloat"),b9=J(($)=>$.toISOString().replace(".000Z","Z"),"serializeDateTime"),d0=J(($)=>{if($==null)return{};if(Array.isArray($))return $.filter((U)=>U!=null).map(d0);if(typeof $==="object"){let U={};for(let G of Object.keys($)){if($[G]==null)continue;U[G]=d0($[G])}return U}return $},"_json");function Rw($,U,G){if(G<=0||!Number.isInteger(G))throw new Error("Invalid number of delimiters ("+G+") for splitEvery.");let W=$.split(U);if(G===1)return W;let w=[],X="";for(let Z=0;Z<W.length;Z++){if(X==="")X=W[Z];else X+=U+W[Z];if((Z+1)%G===0)w.push(X),X=""}if(X!=="")w.push(X);return w}J(Rw,"splitEvery")});var Vw=M((Mw)=>{Object.defineProperty(Mw,"__esModule",{value:!0});Mw.isStreamingPayload=void 0;var P9=import.meta.require("stream"),S9=($)=>($===null||$===void 0?void 0:$.body)instanceof P9.Readable||typeof ReadableStream!=="undefined"&&($===null||$===void 0?void 0:$.body)instanceof ReadableStream;Mw.isStreamingPayload=S9});var vw=M((wI,xw)=>{var{defineProperty:O$,getOwnPropertyDescriptor:D9,getOwnPropertyNames:h9}=Object,x9=Object.prototype.hasOwnProperty,q=($,U)=>O$($,"name",{value:U,configurable:!0}),v9=($,U)=>{for(var G in U)O$($,G,{get:U[G],enumerable:!0})},y9=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of h9(U))if(!x9.call($,w)&&w!==G)O$($,w,{get:()=>U[w],enumerable:!(W=D9(U,w))||W.enumerable})}return $},c9=($)=>y9(O$({},"__esModule",{value:!0}),$),Aw={};v9(Aw,{AdaptiveRetryStrategy:()=>d9,CONFIG_MAX_ATTEMPTS:()=>i0,CONFIG_RETRY_MODE:()=>bw,ENV_MAX_ATTEMPTS:()=>n0,ENV_RETRY_MODE:()=>qw,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>g9,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>s9,StandardRetryStrategy:()=>Nw,defaultDelayDecider:()=>Tw,defaultRetryDecider:()=>Ow,getOmitRetryHeadersPlugin:()=>l9,getRetryAfterHint:()=>hw,getRetryPlugin:()=>a9,omitRetryHeadersMiddleware:()=>Pw,omitRetryHeadersMiddlewareOptions:()=>Sw,resolveRetryConfig:()=>p9,retryMiddleware:()=>kw,retryMiddlewareOptions:()=>Dw});xw.exports=c9(Aw);var E1=m(),Ew=k9(),C=IW(),_9=q(($,U)=>{let G=$,W=(U==null?void 0:U.noRetryIncrement)??C.NO_RETRY_INCREMENT,w=(U==null?void 0:U.retryCost)??C.RETRY_COST,X=(U==null?void 0:U.timeoutRetryCost)??C.TIMEOUT_RETRY_COST,Z=$,L=q((F)=>F.name==="TimeoutError"?X:w,"getCapacityAmount"),Y=q((F)=>L(F)<=Z,"hasRetryTokens");return Object.freeze({hasRetryTokens:Y,retrieveRetryTokens:q((F)=>{if(!Y(F))throw new Error("No retry token available");let I=L(F);return Z-=I,I},"retrieveRetryTokens"),releaseRetryTokens:q((F)=>{Z+=F??W,Z=Math.min(Z,G)},"releaseRetryTokens")})},"getDefaultRetryQuota"),Tw=q(($,U)=>Math.floor(Math.min(C.MAXIMUM_RETRY_DELAY,Math.random()*2**U*$)),"defaultDelayDecider"),a=X1(),Ow=q(($)=>{if(!$)return!1;return a.isRetryableByTrait($)||a.isClockSkewError($)||a.isThrottlingError($)||a.isTransientError($)},"defaultRetryDecider"),fw=q(($)=>{if($ instanceof Error)return $;if($ instanceof Object)return Object.assign(new Error,$);if(typeof $==="string")return new Error($);return new Error(`AWS SDK error wrapper for ${$}`)},"asSdkError"),Cw=class ${constructor(U,G){this.maxAttemptsProvider=U,this.mode=C.RETRY_MODES.STANDARD,this.retryDecider=(G==null?void 0:G.retryDecider)??Ow,this.delayDecider=(G==null?void 0:G.delayDecider)??Tw,this.retryQuota=(G==null?void 0:G.retryQuota)??_9(C.INITIAL_RETRY_TOKENS)}shouldRetry(U,G,W){return G<W&&this.retryDecider(U)&&this.retryQuota.hasRetryTokens(U)}async getMaxAttempts(){let U;try{U=await this.maxAttemptsProvider()}catch(G){U=C.DEFAULT_MAX_ATTEMPTS}return U}async retry(U,G,W){let w,X=0,Z=0,L=await this.getMaxAttempts(),{request:Y}=G;if(E1.HttpRequest.isInstance(Y))Y.headers[C.INVOCATION_ID_HEADER]=Ew.v4();while(!0)try{if(E1.HttpRequest.isInstance(Y))Y.headers[C.REQUEST_HEADER]=`attempt=${X+1}; max=${L}`;if(W==null?void 0:W.beforeRequest)await W.beforeRequest();let{response:z,output:Q}=await U(G);if(W==null?void 0:W.afterRequest)W.afterRequest(z);return this.retryQuota.releaseRetryTokens(w),Q.$metadata.attempts=X+1,Q.$metadata.totalRetryDelay=Z,{response:z,output:Q}}catch(z){let Q=fw(z);if(X++,this.shouldRetry(Q,X,L)){w=this.retryQuota.retrieveRetryTokens(Q);let F=this.delayDecider(a.isThrottlingError(Q)?C.THROTTLING_RETRY_DELAY_BASE:C.DEFAULT_RETRY_DELAY_BASE,X),I=u9(Q.$response),R=Math.max(I||0,F);Z+=R,await new Promise((K)=>setTimeout(K,R));continue}if(!Q.$metadata)Q.$metadata={};throw Q.$metadata.attempts=X,Q.$metadata.totalRetryDelay=Z,Q}}};q(Cw,"StandardRetryStrategy");var Nw=Cw,u9=q(($)=>{if(!E1.HttpResponse.isInstance($))return;let U=Object.keys($.headers).find((X)=>X.toLowerCase()==="retry-after");if(!U)return;let G=$.headers[U],W=Number(G);if(!Number.isNaN(W))return W*1000;return new Date(G).getTime()-Date.now()},"getDelayFromRetryAfterHeader"),jw=class $ extends Nw{constructor(U,G){let{rateLimiter:W,...w}=G??{};super(U,w);this.rateLimiter=W??new C.DefaultRateLimiter,this.mode=C.RETRY_MODES.ADAPTIVE}async retry(U,G){return super.retry(U,G,{beforeRequest:async()=>{return this.rateLimiter.getSendToken()},afterRequest:(W)=>{this.rateLimiter.updateClientSendingRate(W)}})}};q(jw,"AdaptiveRetryStrategy");var d9=jw,Hw=s(),n0="AWS_MAX_ATTEMPTS",i0="max_attempts",g9={environmentVariableSelector:($)=>{let U=$[n0];if(!U)return;let G=parseInt(U);if(Number.isNaN(G))throw new Error(`Environment variable ${n0} mast be a number, got "${U}"`);return G},configFileSelector:($)=>{let U=$[i0];if(!U)return;let G=parseInt(U);if(Number.isNaN(G))throw new Error(`Shared config file entry ${i0} mast be a number, got "${U}"`);return G},default:C.DEFAULT_MAX_ATTEMPTS},p9=q(($)=>{let{retryStrategy:U}=$,G=Hw.normalizeProvider($.maxAttempts??C.DEFAULT_MAX_ATTEMPTS);return{...$,maxAttempts:G,retryStrategy:async()=>{if(U)return U;if(await Hw.normalizeProvider($.retryMode)()===C.RETRY_MODES.ADAPTIVE)return new C.AdaptiveRetryStrategy(G);return new C.StandardRetryStrategy(G)}}},"resolveRetryConfig"),qw="AWS_RETRY_MODE",bw="retry_mode",s9={environmentVariableSelector:($)=>$[qw],configFileSelector:($)=>$[bw],default:C.DEFAULT_RETRY_MODE},Pw=q(()=>($)=>async(U)=>{let{request:G}=U;if(E1.HttpRequest.isInstance(G))delete G.headers[C.INVOCATION_ID_HEADER],delete G.headers[C.REQUEST_HEADER];return $(U)},"omitRetryHeadersMiddleware"),Sw={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},l9=q(($)=>({applyToStack:(U)=>{U.addRelativeTo(Pw(),Sw)}}),"getOmitRetryHeadersPlugin"),m9=A1(),n9=Vw(),kw=q(($)=>(U,G)=>async(W)=>{var w;let X=await $.retryStrategy(),Z=await $.maxAttempts();if(i9(X)){X=X;let L=await X.acquireInitialRetryToken(G.partition_id),Y=new Error,z=0,Q=0,{request:F}=W,I=E1.HttpRequest.isInstance(F);if(I)F.headers[C.INVOCATION_ID_HEADER]=Ew.v4();while(!0)try{if(I)F.headers[C.REQUEST_HEADER]=`attempt=${z+1}; max=${Z}`;let{response:R,output:K}=await U(W);return X.recordSuccess(L),K.$metadata.attempts=z+1,K.$metadata.totalRetryDelay=Q,{response:R,output:K}}catch(R){let K=r9(R);if(Y=fw(R),I&&n9.isStreamingPayload(F))throw(w=G.logger instanceof m9.NoOpLogger?console:G.logger)==null||w.warn("An error was encountered in a non-retryable streaming request."),Y;try{L=await X.refreshRetryTokenForRetry(L,K)}catch(A){if(!Y.$metadata)Y.$metadata={};throw Y.$metadata.attempts=z+1,Y.$metadata.totalRetryDelay=Q,Y}z=L.getRetryCount();let B=L.getRetryDelay();Q+=B,await new Promise((A)=>setTimeout(A,B))}}else{if(X=X,X==null?void 0:X.mode)G.userAgent=[...G.userAgent||[],["cfg/retry-mode",X.mode]];return X.retry(U,W)}},"retryMiddleware"),i9=q(($)=>typeof $.acquireInitialRetryToken!=="undefined"&&typeof $.refreshRetryTokenForRetry!=="undefined"&&typeof $.recordSuccess!=="undefined","isRetryStrategyV2"),r9=q(($)=>{let U={error:$,errorType:o9($)},G=hw($.$response);if(G)U.retryAfterHint=G;return U},"getRetryErrorInfo"),o9=q(($)=>{if(a.isThrottlingError($))return"THROTTLING";if(a.isTransientError($))return"TRANSIENT";if(a.isServerError($))return"SERVER_ERROR";return"CLIENT_ERROR"},"getRetryErrorType"),Dw={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},a9=q(($)=>({applyToStack:(U)=>{U.add(kw($),Dw)}}),"getRetryPlugin"),hw=q(($)=>{if(!E1.HttpResponse.isInstance($))return;let U=Object.keys($.headers).find((X)=>X.toLowerCase()==="retry-after");if(!U)return;let G=$.headers[U],W=Number(G);if(!Number.isNaN(W))return new Date(W*1000);return new Date(G)},"getRetryAfterHint")});var o0=M((XI,U8)=>{var{defineProperty:C$,getOwnPropertyDescriptor:t9,getOwnPropertyNames:e9}=Object,$Q=Object.prototype.hasOwnProperty,f=($,U)=>C$($,"name",{value:U,configurable:!0}),UQ=($,U)=>{for(var G in U)C$($,G,{get:U[G],enumerable:!0})},GQ=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of e9(U))if(!$Q.call($,w)&&w!==G)C$($,w,{get:()=>U[w],enumerable:!(W=t9(U,w))||W.enumerable})}return $},WQ=($)=>GQ(C$({},"__esModule",{value:!0}),$),yw={};UQ(yw,{DefaultIdentityProviderConfig:()=>JQ,EXPIRATION_MS:()=>rw,HttpApiKeyAuthSigner:()=>IQ,HttpBearerAuthSigner:()=>RQ,NoAuthSigner:()=>KQ,RequestBuilder:()=>ew,createIsIdentityExpiredFunction:()=>iw,createPaginator:()=>$8,doesIdentityRequireRefresh:()=>ow,getHttpAuthSchemeEndpointRuleSetPlugin:()=>XQ,getHttpAuthSchemePlugin:()=>LQ,getHttpSigningPlugin:()=>FQ,getSmithyContext:()=>VQ,httpAuthSchemeEndpointRuleSetMiddlewareOptions:()=>uw,httpAuthSchemeMiddleware:()=>r0,httpAuthSchemeMiddlewareOptions:()=>dw,httpSigningMiddleware:()=>gw,httpSigningMiddlewareOptions:()=>pw,isIdentityExpired:()=>MQ,memoizeIdentityProvider:()=>BQ,normalizeProvider:()=>HQ,requestBuilder:()=>aw});U8.exports=WQ(yw);var cw=s();function _w($){let U=new Map;for(let G of $)U.set(G.schemeId,G);return U}f(_w,"convertHttpAuthSchemesToMap");var r0=f(($,U)=>(G,W)=>async(w)=>{var X;let Z=$.httpAuthSchemeProvider(await U.httpAuthSchemeParametersProvider($,W,w.input)),L=_w($.httpAuthSchemes),Y=cw.getSmithyContext(W),z=[];for(let Q of Z){let F=L.get(Q.schemeId);if(!F){z.push(`HttpAuthScheme \`${Q.schemeId}\` was not enabled for this service.`);continue}let I=F.identityProvider(await U.identityProviderConfigProvider($));if(!I){z.push(`HttpAuthScheme \`${Q.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:R={},signingProperties:K={}}=((X=Q.propertiesExtractor)==null?void 0:X.call(Q,$,W))||{};Q.identityProperties=Object.assign(Q.identityProperties||{},R),Q.signingProperties=Object.assign(Q.signingProperties||{},K),Y.selectedHttpAuthScheme={httpAuthOption:Q,identity:await I(Q.identityProperties),signer:F.signer};break}if(!Y.selectedHttpAuthScheme)throw new Error(z.join("\n"));return G(w)},"httpAuthSchemeMiddleware"),wQ=uG(),uw={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:wQ.endpointMiddlewareOptions.name},XQ=f(($,{httpAuthSchemeParametersProvider:U,identityProviderConfigProvider:G})=>({applyToStack:(W)=>{W.addRelativeTo(r0($,{httpAuthSchemeParametersProvider:U,identityProviderConfigProvider:G}),uw)}}),"getHttpAuthSchemeEndpointRuleSetPlugin"),ZQ=I0(),dw={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:ZQ.serializerMiddlewareOption.name},LQ=f(($,{httpAuthSchemeParametersProvider:U,identityProviderConfigProvider:G})=>({applyToStack:(W)=>{W.addRelativeTo(r0($,{httpAuthSchemeParametersProvider:U,identityProviderConfigProvider:G}),dw)}}),"getHttpAuthSchemePlugin"),N$=m(),YQ=f(($)=>(U)=>{throw U},"defaultErrorHandler"),zQ=f(($,U)=>{},"defaultSuccessHandler"),gw=f(($)=>(U,G)=>async(W)=>{if(!N$.HttpRequest.isInstance(W.request))return U(W);let X=cw.getSmithyContext(G).selectedHttpAuthScheme;if(!X)throw new Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:Z={}},identity:L,signer:Y}=X,z=await U({...W,request:await Y.sign(W.request,L,Z)}).catch((Y.errorHandler||YQ)(Z));return(Y.successHandler||zQ)(z.response,Z),z},"httpSigningMiddleware"),QQ=vw(),pw={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:QQ.retryMiddlewareOptions.name},FQ=f(($)=>({applyToStack:(U)=>{U.addRelativeTo(gw($),pw)}}),"getHttpSigningPlugin"),sw=class ${constructor(U){this.authSchemes=new Map;for(let[G,W]of Object.entries(U))if(W!==void 0)this.authSchemes.set(G,W)}getIdentityProvider(U){return this.authSchemes.get(U)}};f(sw,"DefaultIdentityProviderConfig");var JQ=sw,f$=I1(),lw=class ${async sign(U,G,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(!G.apiKey)throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined");let w=N$.HttpRequest.clone(U);if(W.in===f$.HttpApiKeyAuthLocation.QUERY)w.query[W.name]=G.apiKey;else if(W.in===f$.HttpApiKeyAuthLocation.HEADER)w.headers[W.name]=W.scheme?`${W.scheme} ${G.apiKey}`:G.apiKey;else throw new Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+W.in+"`");return w}};f(lw,"HttpApiKeyAuthSigner");var IQ=lw,mw=class ${async sign(U,G,W){let w=N$.HttpRequest.clone(U);if(!G.token)throw new Error("request could not be signed with `token` since the `token` is not defined");return w.headers.Authorization=`Bearer ${G.token}`,w}};f(mw,"HttpBearerAuthSigner");var RQ=mw,nw=class ${async sign(U,G,W){return U}};f(nw,"NoAuthSigner");var KQ=nw,iw=f(($)=>(U)=>ow(U)&&U.expiration.getTime()-Date.now()<$,"createIsIdentityExpiredFunction"),rw=300000,MQ=iw(rw),ow=f(($)=>$.expiration!==void 0,"doesIdentityRequireRefresh"),BQ=f(($,U,G)=>{if($===void 0)return;let W=typeof $!=="function"?async()=>Promise.resolve($):$,w,X,Z,L=!1,Y=f(async(z)=>{if(!X)X=W(z);try{w=await X,Z=!0,L=!1}finally{X=void 0}return w},"coalesceProvider");if(U===void 0)return async(z)=>{if(!Z||(z==null?void 0:z.forceRefresh))w=await Y(z);return w};return async(z)=>{if(!Z||(z==null?void 0:z.forceRefresh))w=await Y(z);if(L)return w;if(!G(w))return L=!0,w;if(U(w))return await Y(z),w;return w}},"memoizeIdentityProvider"),VQ=f(($)=>$[f$.SMITHY_CONTEXT_KEY]||($[f$.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),HQ=f(($)=>{if(typeof $==="function")return $;let U=Promise.resolve($);return()=>U},"normalizeProvider"),AQ=A1();function aw($,U){return new ew($,U)}f(aw,"requestBuilder");var tw=class ${constructor(U,G){this.input=U,this.context=G,this.query={},this.method="",this.headers={},this.path="",this.body=null,this.hostname="",this.resolvePathStack=[]}async build(){let{hostname:U,protocol:G="https",port:W,path:w}=await this.context.endpoint();this.path=w;for(let X of this.resolvePathStack)X(this.path);return new N$.HttpRequest({protocol:G,hostname:this.hostname||U,port:W,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(U){return this.hostname=U,this}bp(U){return this.resolvePathStack.push((G)=>{this.path=`${(G==null?void 0:G.endsWith("/"))?G.slice(0,-1):G||""}`+U}),this}p(U,G,W,w){return this.resolvePathStack.push((X)=>{this.path=AQ.resolvedPath(X,this.input,U,G,W,w)}),this}h(U){return this.headers=U,this}q(U){return this.query=U,this}b(U){return this.body=U,this}m(U){return this.method=U,this}};f(tw,"RequestBuilder");var ew=tw,EQ=f(async($,U,G,...W)=>{return await U.send(new $(G),...W)},"makePagedClientRequest");function $8($,U,G,W,w){return f(async function*X(Z,L,...Y){let z=Z.startingToken||void 0,Q=!0,F;while(Q){if(L[G]=z,w)L[w]=L[w]??Z.pageSize;if(Z.client instanceof $)F=await EQ(U,Z.client,L,...Y);else throw new Error(`Invalid client, expected instance of ${$.name}`);yield F;let I=z;z=TQ(F,W),Q=!!(z&&(!Z.stopOnSameToken||z!==I))}return},"paginateOperation")}f($8,"createPaginator");var TQ=f(($,U)=>{let G=$,W=U.split(".");for(let w of W){if(!G||typeof G!=="object")return;G=G[w]}return G},"get")});var n8=M((LV,m8)=>{var{defineProperty:s$,getOwnPropertyDescriptor:X7,getOwnPropertyNames:Z7}=Object,L7=Object.prototype.hasOwnProperty,Y7=($,U)=>s$($,"name",{value:U,configurable:!0}),z7=($,U)=>{for(var G in U)s$($,G,{get:U[G],enumerable:!0})},Q7=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of Z7(U))if(!L7.call($,w)&&w!==G)s$($,w,{get:()=>U[w],enumerable:!(W=X7(U,w))||W.enumerable})}return $},F7=($)=>Q7(s$({},"__esModule",{value:!0}),$),l8={};z7(l8,{emitWarningIfUnsupportedVersion:()=>J7});m8.exports=F7(l8);var s8=!1,J7=Y7(($)=>{if($&&!s8&&parseInt($.substring(1,$.indexOf(".")))<18)s8=!0,process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
|
|
4
|
-
no longer support Node.js 16.x on January 6, 2025.
|
|
5
|
-
|
|
6
|
-
To continue receiving updates to AWS services, bug fixes, and security
|
|
7
|
-
updates please upgrade to a supported Node.js LTS version.
|
|
8
|
-
|
|
9
|
-
More information can be found at: https://a.co/74kJMmI`)},"emitWarningIfUnsupportedVersion")});var I4=M((YV,J4)=>{var{defineProperty:o$,getOwnPropertyDescriptor:I7,getOwnPropertyNames:R7}=Object,K7=Object.prototype.hasOwnProperty,b=($,U)=>o$($,"name",{value:U,configurable:!0}),M7=($,U)=>{for(var G in U)o$($,G,{get:U[G],enumerable:!0})},B7=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of R7(U))if(!K7.call($,w)&&w!==G)o$($,w,{get:()=>U[w],enumerable:!(W=I7(U,w))||W.enumerable})}return $},V7=($)=>B7(o$({},"__esModule",{value:!0}),$),t8={};M7(t8,{SignatureV4:()=>s7,clearCredentialCache:()=>x7,createScope:()=>n$,getCanonicalHeaders:()=>AU,getCanonicalQuery:()=>Z4,getPayloadHash:()=>r$,getSigningKey:()=>X4,moveHeadersToQuery:()=>Q4,prepareRequest:()=>TU});J4.exports=V7(t8);var i8=s(),BU=o(),H7="X-Amz-Algorithm",A7="X-Amz-Credential",e8="X-Amz-Date",E7="X-Amz-SignedHeaders",T7="X-Amz-Expires",$4="X-Amz-Signature",U4="X-Amz-Security-Token",G4="authorization",W4=e8.toLowerCase(),O7="date",f7=[G4,W4,O7],C7=$4.toLowerCase(),HU="x-amz-content-sha256",N7=U4.toLowerCase(),j7={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},q7=/^proxy-/,b7=/^sec-/,VU="AWS4-HMAC-SHA256",P7="AWS4-HMAC-SHA256-PAYLOAD",S7="UNSIGNED-PAYLOAD",k7=50,w4="aws4_request",D7=604800,$1=H6(),h7=o(),N1={},m$=[],n$=b(($,U,G)=>`${$}/${U}/${G}/${w4}`,"createScope"),X4=b(async($,U,G,W,w)=>{let X=await r8($,U.secretAccessKey,U.accessKeyId),Z=`${G}:${W}:${w}:${$1.toHex(X)}:${U.sessionToken}`;if(Z in N1)return N1[Z];m$.push(Z);while(m$.length>k7)delete N1[m$.shift()];let L=`AWS4${U.secretAccessKey}`;for(let Y of[G,W,w,w4])L=await r8($,L,Y);return N1[Z]=L},"getSigningKey"),x7=b(()=>{m$.length=0,Object.keys(N1).forEach(($)=>{delete N1[$]})},"clearCredentialCache"),r8=b(($,U,G)=>{let W=new $(U);return W.update(h7.toUint8Array(G)),W.digest()},"hmac"),AU=b(({headers:$},U,G)=>{let W={};for(let w of Object.keys($).sort()){if($[w]==null)continue;let X=w.toLowerCase();if(X in j7||(U==null?void 0:U.has(X))||q7.test(X)||b7.test(X)){if(!G||G&&!G.has(X))continue}W[X]=$[w].trim().replace(/\s+/g," ")}return W},"getCanonicalHeaders"),i$=C0(),Z4=b(({query:$={}})=>{let U=[],G={};for(let W of Object.keys($)){if(W.toLowerCase()===C7)continue;let w=i$.escapeUri(W);U.push(w);let X=$[W];if(typeof X==="string")G[w]=`${w}=${i$.escapeUri(X)}`;else if(Array.isArray(X))G[w]=X.slice(0).reduce((Z,L)=>Z.concat([`${w}=${i$.escapeUri(L)}`]),[]).sort().join("&")}return U.sort().map((W)=>G[W]).filter((W)=>W).join("&")},"getCanonicalQuery"),v7=H0(),y7=o(),r$=b(async({headers:$,body:U},G)=>{for(let W of Object.keys($))if(W.toLowerCase()===HU)return $[W];if(U==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";else if(typeof U==="string"||ArrayBuffer.isView(U)||v7.isArrayBuffer(U)){let W=new G;return W.update(y7.toUint8Array(U)),$1.toHex(await W.digest())}return S7},"getPayloadHash"),o8=o(),L4=class ${format(U){let G=[];for(let X of Object.keys(U)){let Z=o8.fromUtf8(X);G.push(Uint8Array.from([Z.byteLength]),Z,this.formatHeaderValue(U[X]))}let W=new Uint8Array(G.reduce((X,Z)=>X+Z.byteLength,0)),w=0;for(let X of G)W.set(X,w),w+=X.byteLength;return W}formatHeaderValue(U){switch(U.type){case"boolean":return Uint8Array.from([U.value?0:1]);case"byte":return Uint8Array.from([2,U.value]);case"short":let G=new DataView(new ArrayBuffer(3));return G.setUint8(0,3),G.setInt16(1,U.value,!1),new Uint8Array(G.buffer);case"integer":let W=new DataView(new ArrayBuffer(5));return W.setUint8(0,4),W.setInt32(1,U.value,!1),new Uint8Array(W.buffer);case"long":let w=new Uint8Array(9);return w[0]=5,w.set(U.value.bytes,1),w;case"binary":let X=new DataView(new ArrayBuffer(3+U.value.byteLength));X.setUint8(0,6),X.setUint16(1,U.value.byteLength,!1);let Z=new Uint8Array(X.buffer);return Z.set(U.value,3),Z;case"string":let L=o8.fromUtf8(U.value),Y=new DataView(new ArrayBuffer(3+L.byteLength));Y.setUint8(0,7),Y.setUint16(1,L.byteLength,!1);let z=new Uint8Array(Y.buffer);return z.set(L,3),z;case"timestamp":let Q=new Uint8Array(9);return Q[0]=8,Q.set(u7.fromNumber(U.value.valueOf()).bytes,1),Q;case"uuid":if(!_7.test(U.value))throw new Error(`Invalid UUID received: ${U.value}`);let F=new Uint8Array(17);return F[0]=9,F.set($1.fromHex(U.value.replace(/\-/g,"")),1),F}}};b(L4,"HeaderFormatter");var c7=L4,_7=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,Y4=class ${constructor(U){if(this.bytes=U,U.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(U){if(U>9223372036854776000||U<-9223372036854776000)throw new Error(`${U} is too large (or, if negative, too small) to represent as an Int64`);let G=new Uint8Array(8);for(let W=7,w=Math.abs(Math.round(U));W>-1&&w>0;W--,w/=256)G[W]=w;if(U<0)EU(G);return new $(G)}valueOf(){let U=this.bytes.slice(0),G=U[0]&128;if(G)EU(U);return parseInt($1.toHex(U),16)*(G?-1:1)}toString(){return String(this.valueOf())}};b(Y4,"Int64");var u7=Y4;function EU($){for(let U=0;U<8;U++)$[U]^=255;for(let U=7;U>-1;U--)if($[U]++,$[U]!==0)break}b(EU,"negate");var d7=b(($,U)=>{$=$.toLowerCase();for(let G of Object.keys(U))if($===G.toLowerCase())return!0;return!1},"hasHeader"),z4=m(),Q4=b(($,U={})=>{var G;let{headers:W,query:w={}}=z4.HttpRequest.clone($);for(let X of Object.keys(W)){let Z=X.toLowerCase();if(Z.slice(0,6)==="x-amz-"&&!((G=U.unhoistableHeaders)==null?void 0:G.has(Z)))w[X]=W[X],delete W[X]}return{...$,headers:W,query:w}},"moveHeadersToQuery"),TU=b(($)=>{$=z4.HttpRequest.clone($);for(let U of Object.keys($.headers))if(f7.indexOf(U.toLowerCase())>-1)delete $.headers[U];return $},"prepareRequest"),g7=b(($)=>p7($).toISOString().replace(/\.\d{3}Z$/,"Z"),"iso8601"),p7=b(($)=>{if(typeof $==="number")return new Date($*1000);if(typeof $==="string"){if(Number($))return new Date(Number($)*1000);return new Date($)}return $},"toDate"),F4=class ${constructor({applyChecksum:U,credentials:G,region:W,service:w,sha256:X,uriEscapePath:Z=!0}){this.headerFormatter=new c7,this.service=w,this.sha256=X,this.uriEscapePath=Z,this.applyChecksum=typeof U==="boolean"?U:!0,this.regionProvider=i8.normalizeProvider(W),this.credentialProvider=i8.normalizeProvider(G)}async presign(U,G={}){let{signingDate:W=new Date,expiresIn:w=3600,unsignableHeaders:X,unhoistableHeaders:Z,signableHeaders:L,signingRegion:Y,signingService:z}=G,Q=await this.credentialProvider();this.validateResolvedCredentials(Q);let F=Y??await this.regionProvider(),{longDate:I,shortDate:R}=l$(W);if(w>D7)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let K=n$(R,F,z??this.service),B=Q4(TU(U),{unhoistableHeaders:Z});if(Q.sessionToken)B.query[U4]=Q.sessionToken;B.query[H7]=VU,B.query[A7]=`${Q.accessKeyId}/${K}`,B.query[e8]=I,B.query[T7]=w.toString(10);let A=AU(B,X,L);return B.query[E7]=a8(A),B.query[$4]=await this.getSignature(I,K,this.getSigningKey(Q,F,R,z),this.createCanonicalRequest(B,A,await r$(U,this.sha256))),B}async sign(U,G){if(typeof U==="string")return this.signString(U,G);else if(U.headers&&U.payload)return this.signEvent(U,G);else if(U.message)return this.signMessage(U,G);else return this.signRequest(U,G)}async signEvent({headers:U,payload:G},{signingDate:W=new Date,priorSignature:w,signingRegion:X,signingService:Z}){let L=X??await this.regionProvider(),{shortDate:Y,longDate:z}=l$(W),Q=n$(Y,L,Z??this.service),F=await r$({headers:{},body:G},this.sha256),I=new this.sha256;I.update(U);let R=$1.toHex(await I.digest()),K=[P7,z,Q,w,R,F].join("\n");return this.signString(K,{signingDate:W,signingRegion:L,signingService:Z})}async signMessage(U,{signingDate:G=new Date,signingRegion:W,signingService:w}){return this.signEvent({headers:this.headerFormatter.format(U.message.headers),payload:U.message.body},{signingDate:G,signingRegion:W,signingService:w,priorSignature:U.priorSignature}).then((Z)=>{return{message:U.message,signature:Z}})}async signString(U,{signingDate:G=new Date,signingRegion:W,signingService:w}={}){let X=await this.credentialProvider();this.validateResolvedCredentials(X);let Z=W??await this.regionProvider(),{shortDate:L}=l$(G),Y=new this.sha256(await this.getSigningKey(X,Z,L,w));return Y.update(BU.toUint8Array(U)),$1.toHex(await Y.digest())}async signRequest(U,{signingDate:G=new Date,signableHeaders:W,unsignableHeaders:w,signingRegion:X,signingService:Z}={}){let L=await this.credentialProvider();this.validateResolvedCredentials(L);let Y=X??await this.regionProvider(),z=TU(U),{longDate:Q,shortDate:F}=l$(G),I=n$(F,Y,Z??this.service);if(z.headers[W4]=Q,L.sessionToken)z.headers[N7]=L.sessionToken;let R=await r$(z,this.sha256);if(!d7(HU,z.headers)&&this.applyChecksum)z.headers[HU]=R;let K=AU(z,w,W),B=await this.getSignature(Q,I,this.getSigningKey(L,Y,F,Z),this.createCanonicalRequest(z,K,R));return z.headers[G4]=`${VU} Credential=${L.accessKeyId}/${I}, SignedHeaders=${a8(K)}, Signature=${B}`,z}createCanonicalRequest(U,G,W){let w=Object.keys(G).sort();return`${U.method}
|
|
10
|
-
${this.getCanonicalPath(U)}
|
|
11
|
-
${Z4(U)}
|
|
12
|
-
${w.map((X)=>`${X}:${G[X]}`).join("\n")}
|
|
13
|
-
|
|
14
|
-
${w.join(";")}
|
|
15
|
-
${W}`}async createStringToSign(U,G,W){let w=new this.sha256;w.update(BU.toUint8Array(W));let X=await w.digest();return`${VU}
|
|
16
|
-
${U}
|
|
17
|
-
${G}
|
|
18
|
-
${$1.toHex(X)}`}getCanonicalPath({path:U}){if(this.uriEscapePath){let G=[];for(let X of U.split("/")){if((X==null?void 0:X.length)===0)continue;if(X===".")continue;if(X==="..")G.pop();else G.push(X)}let W=`${(U==null?void 0:U.startsWith("/"))?"/":""}${G.join("/")}${G.length>0&&(U==null?void 0:U.endsWith("/"))?"/":""}`;return i$.escapeUri(W).replace(/%2F/g,"/")}return U}async getSignature(U,G,W,w){let X=await this.createStringToSign(U,G,w),Z=new this.sha256(await W);return Z.update(BU.toUint8Array(X)),$1.toHex(await Z.digest())}getSigningKey(U,G,W,w){return X4(this.sha256,U,W,G,w||this.service)}validateResolvedCredentials(U){if(typeof U!=="object"||typeof U.accessKeyId!=="string"||typeof U.secretAccessKey!=="string")throw new Error("Resolved credential object is not valid")}};b(F4,"SignatureV4");var s7=F4,l$=b(($)=>{let U=g7($).replace(/[\-:]/g,"");return{longDate:U,shortDate:U.slice(0,8)}},"formatDate"),a8=b(($)=>Object.keys($).sort().join(";"),"getCanonicalHeaderList")});var O4=M((zV,T4)=>{var{defineProperty:a$,getOwnPropertyDescriptor:l7,getOwnPropertyNames:m7}=Object,n7=Object.prototype.hasOwnProperty,D=($,U)=>a$($,"name",{value:U,configurable:!0}),i7=($,U)=>{for(var G in U)a$($,G,{get:U[G],enumerable:!0})},r7=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of m7(U))if(!n7.call($,w)&&w!==G)a$($,w,{get:()=>U[w],enumerable:!(W=l7(U,w))||W.enumerable})}return $},o7=($)=>r7(a$({},"__esModule",{value:!0}),$),V4={};i7(V4,{AWSSDKSigV4Signer:()=>$5,AwsSdkSigV4ASigner:()=>G5,AwsSdkSigV4Signer:()=>CU,NODE_SIGV4A_CONFIG_OPTIONS:()=>X5,resolveAWSSDKSigV4Config:()=>Z5,resolveAwsSdkSigV4AConfig:()=>w5,resolveAwsSdkSigV4Config:()=>E4,validateSigningProperties:()=>fU});T4.exports=o7(V4);var a7=m(),t7=m(),R4=D(($)=>{var U,G;return t7.HttpResponse.isInstance($)?((U=$.headers)==null?void 0:U.date)??((G=$.headers)==null?void 0:G.Date):void 0},"getDateHeader"),OU=D(($)=>new Date(Date.now()+$),"getSkewCorrectedDate"),e7=D(($,U)=>Math.abs(OU(U).getTime()-$)>=300000,"isClockSkewed"),K4=D(($,U)=>{let G=Date.parse($);if(e7(G,U))return G-Date.now();return U},"getUpdatedSystemClockOffset"),s1=D(($,U)=>{if(!U)throw new Error(`Property \`${$}\` is not resolved for AWS SDK SigV4Auth`);return U},"throwSigningPropertyError"),fU=D(async($)=>{var U,G,W;let w=s1("context",$.context),X=s1("config",$.config),Z=(W=(G=(U=w.endpointV2)==null?void 0:U.properties)==null?void 0:G.authSchemes)==null?void 0:W[0],Y=await s1("signer",X.signer)(Z),z=$==null?void 0:$.signingRegion,Q=$==null?void 0:$.signingRegionSet,F=$==null?void 0:$.signingName;return{config:X,signer:Y,signingRegion:z,signingRegionSet:Q,signingName:F}},"validateSigningProperties"),H4=class ${async sign(U,G,W){var w;if(!a7.HttpRequest.isInstance(U))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");let X=await fU(W),{config:Z,signer:L}=X,{signingRegion:Y,signingName:z}=X,Q=W.context;if(((w=Q==null?void 0:Q.authSchemes)==null?void 0:w.length)??0>1){let[I,R]=Q.authSchemes;if((I==null?void 0:I.name)==="sigv4a"&&(R==null?void 0:R.name)==="sigv4")Y=(R==null?void 0:R.signingRegion)??Y,z=(R==null?void 0:R.signingName)??z}return await L.sign(U,{signingDate:OU(Z.systemClockOffset),signingRegion:Y,signingService:z})}errorHandler(U){return(G)=>{let W=G.ServerTime??R4(G.$response);if(W){let w=s1("config",U.config),X=w.systemClockOffset;if(w.systemClockOffset=K4(W,w.systemClockOffset),w.systemClockOffset!==X&&G.$metadata)G.$metadata.clockSkewCorrected=!0}throw G}}successHandler(U,G){let W=R4(U);if(W){let w=s1("config",G.config);w.systemClockOffset=K4(W,w.systemClockOffset)}}};D(H4,"AwsSdkSigV4Signer");var CU=H4,$5=CU,U5=m(),A4=class $ extends CU{async sign(U,G,W){var w;if(!U5.HttpRequest.isInstance(U))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");let{config:X,signer:Z,signingRegion:L,signingRegionSet:Y,signingName:z}=await fU(W),F=(await((w=X.sigv4aSigningRegionSet)==null?void 0:w.call(X))??Y??[L]).join(",");return await Z.sign(U,{signingDate:OU(X.systemClockOffset),signingRegion:F,signingService:z})}};D(A4,"AwsSdkSigV4ASigner");var G5=A4,W5=o0(),M4=U0(),w5=D(($)=>{return $.sigv4aSigningRegionSet=W5.normalizeProvider($.sigv4aSigningRegionSet),$},"resolveAwsSdkSigV4AConfig"),X5={environmentVariableSelector($){if($.AWS_SIGV4A_SIGNING_REGION_SET)return $.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((U)=>U.trim());throw new M4.ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:!0})},configFileSelector($){if($.sigv4a_signing_region_set)return($.sigv4a_signing_region_set??"").split(",").map((U)=>U.trim());throw new M4.ProviderError("sigv4a_signing_region_set not set in profile.",{tryNextLink:!0})},default:void 0},F1=o0(),B4=I4(),E4=D(($)=>{let U;if($.credentials)U=F1.memoizeIdentityProvider($.credentials,F1.isIdentityExpired,F1.doesIdentityRequireRefresh);if(!U)if($.credentialDefaultProvider)U=F1.normalizeProvider($.credentialDefaultProvider(Object.assign({},$,{parentClientConfig:$})));else U=D(async()=>{throw new Error("`credentials` is missing")},"normalizedCreds");let{signingEscapePath:G=!0,systemClockOffset:W=$.systemClockOffset||0,sha256:w}=$,X;if($.signer)X=F1.normalizeProvider($.signer);else if($.regionInfoProvider)X=D(()=>F1.normalizeProvider($.region)().then(async(Z)=>[await $.regionInfoProvider(Z,{useFipsEndpoint:await $.useFipsEndpoint(),useDualstackEndpoint:await $.useDualstackEndpoint()})||{},Z]).then(([Z,L])=>{let{signingRegion:Y,signingService:z}=Z;$.signingRegion=$.signingRegion||Y||L,$.signingName=$.signingName||z||$.serviceId;let Q={...$,credentials:U,region:$.signingRegion,service:$.signingName,sha256:w,uriEscapePath:G};return new($.signerConstructor||B4.SignatureV4)(Q)}),"signer");else X=D(async(Z)=>{Z=Object.assign({},{name:"sigv4",signingName:$.signingName||$.defaultSigningName,signingRegion:await F1.normalizeProvider($.region)(),properties:{}},Z);let{signingRegion:L,signingName:Y}=Z;$.signingRegion=$.signingRegion||L,$.signingName=$.signingName||Y||$.serviceId;let z={...$,credentials:U,region:$.signingRegion,service:$.signingName,sha256:w,uriEscapePath:G};return new($.signerConstructor||B4.SignatureV4)(z)},"signer");return{...$,systemClockOffset:W,signingEscapePath:G,credentials:U,signer:X}},"resolveAwsSdkSigV4Config"),Z5=E4});var t$=M((F5)=>{var L5=":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",f4="[: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]["+L5+"]*",Y5=new RegExp("^"+f4+"$"),z5=function($,U){let G=[],W=U.exec($);while(W){let w=[];w.startIndex=U.lastIndex-W[0].length;let X=W.length;for(let Z=0;Z<X;Z++)w.push(W[Z]);G.push(w),W=U.exec($)}return G},Q5=function($){let U=Y5.exec($);return!(U===null||typeof U==="undefined")};F5.isExist=function($){return typeof $!=="undefined"};F5.isEmptyObject=function($){return Object.keys($).length===0};F5.merge=function($,U,G){if(U){let W=Object.keys(U),w=W.length;for(let X=0;X<w;X++)if(G==="strict")$[W[X]]=[U[W[X]]];else $[W[X]]=U[W[X]]}};F5.getValue=function($){if(F5.isExist($))return $;else return""};F5.isName=Q5;F5.getAllMatches=z5;F5.nameRegexp=f4});var jU=M((j5)=>{var NU=t$(),V5={allowBooleanAttributes:!1,unpairedTags:[]};j5.validate=function($,U){U=Object.assign({},V5,U);let G=[],W=!1,w=!1;if($[0]==="\uFEFF")$=$.substr(1);for(let X=0;X<$.length;X++)if($[X]==="<"&&$[X+1]==="?"){if(X+=2,X=j4($,X),X.err)return X}else if($[X]==="<"){let Z=X;if(X++,$[X]==="!"){X=q4($,X);continue}else{let L=!1;if($[X]==="/")L=!0,X++;let Y="";for(;X<$.length&&$[X]!==">"&&$[X]!==" "&&$[X]!=="\t"&&$[X]!=="\n"&&$[X]!=="\r";X++)Y+=$[X];if(Y=Y.trim(),Y[Y.length-1]==="/")Y=Y.substring(0,Y.length-1),X--;if(!N5(Y)){let F;if(Y.trim().length===0)F="Invalid space after '<'.";else F="Tag '"+Y+"' is an invalid name.";return j("InvalidTag",F,S($,X))}let z=E5($,X);if(z===!1)return j("InvalidAttr","Attributes for '"+Y+"' have open quote.",S($,X));let Q=z.value;if(X=z.index,Q[Q.length-1]==="/"){let F=X-Q.length;Q=Q.substring(0,Q.length-1);let I=b4(Q,U);if(I===!0)W=!0;else return j(I.err.code,I.err.msg,S($,F+I.err.line))}else if(L)if(!z.tagClosed)return j("InvalidTag","Closing tag '"+Y+"' doesn't have proper closing.",S($,X));else if(Q.trim().length>0)return j("InvalidTag","Closing tag '"+Y+"' can't have attributes or invalid starting.",S($,Z));else if(G.length===0)return j("InvalidTag","Closing tag '"+Y+"' has not been opened.",S($,Z));else{let F=G.pop();if(Y!==F.tagName){let I=S($,F.tagStartPos);return j("InvalidTag","Expected closing tag '"+F.tagName+"' (opened in line "+I.line+", col "+I.col+") instead of closing tag '"+Y+"'.",S($,Z))}if(G.length==0)w=!0}else{let F=b4(Q,U);if(F!==!0)return j(F.err.code,F.err.msg,S($,X-Q.length+F.err.line));if(w===!0)return j("InvalidXml","Multiple possible root nodes found.",S($,X));else if(U.unpairedTags.indexOf(Y)!==-1);else G.push({tagName:Y,tagStartPos:Z});W=!0}for(X++;X<$.length;X++)if($[X]==="<")if($[X+1]==="!"){X++,X=q4($,X);continue}else if($[X+1]==="?"){if(X=j4($,++X),X.err)return X}else break;else if($[X]==="&"){let F=f5($,X);if(F==-1)return j("InvalidChar","char '&' is not expected.",S($,X));X=F}else if(w===!0&&!N4($[X]))return j("InvalidXml","Extra text at the end",S($,X));if($[X]==="<")X--}}else{if(N4($[X]))continue;return j("InvalidChar","char '"+$[X]+"' is not expected.",S($,X))}if(!W)return j("InvalidXml","Start tag expected.",1);else if(G.length==1)return j("InvalidTag","Unclosed tag '"+G[0].tagName+"'.",S($,G[0].tagStartPos));else if(G.length>0)return j("InvalidXml","Invalid '"+JSON.stringify(G.map((X)=>X.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1});return!0};function N4($){return $===" "||$==="\t"||$==="\n"||$==="\r"}function j4($,U){let G=U;for(;U<$.length;U++)if($[U]=="?"||$[U]==" "){let W=$.substr(G,U-G);if(U>5&&W==="xml")return j("InvalidXml","XML declaration allowed only at the start of the document.",S($,U));else if($[U]=="?"&&$[U+1]==">"){U++;break}else continue}return U}function q4($,U){if($.length>U+5&&$[U+1]==="-"&&$[U+2]==="-"){for(U+=3;U<$.length;U++)if($[U]==="-"&&$[U+1]==="-"&&$[U+2]===">"){U+=2;break}}else if($.length>U+8&&$[U+1]==="D"&&$[U+2]==="O"&&$[U+3]==="C"&&$[U+4]==="T"&&$[U+5]==="Y"&&$[U+6]==="P"&&$[U+7]==="E"){let G=1;for(U+=8;U<$.length;U++)if($[U]==="<")G++;else if($[U]===">"){if(G--,G===0)break}}else if($.length>U+9&&$[U+1]==="["&&$[U+2]==="C"&&$[U+3]==="D"&&$[U+4]==="A"&&$[U+5]==="T"&&$[U+6]==="A"&&$[U+7]==="["){for(U+=8;U<$.length;U++)if($[U]==="]"&&$[U+1]==="]"&&$[U+2]===">"){U+=2;break}}return U}var H5='"',A5="'";function E5($,U){let G="",W="",w=!1;for(;U<$.length;U++){if($[U]===H5||$[U]===A5)if(W==="")W=$[U];else if(W!==$[U]);else W="";else if($[U]===">"){if(W===""){w=!0;break}}G+=$[U]}if(W!=="")return!1;return{value:G,index:U,tagClosed:w}}var T5=new RegExp('(\\s*)([^\\s=]+)(\\s*=)?(\\s*([\'"])(([\\s\\S])*?)\\5)?',"g");function b4($,U){let G=NU.getAllMatches($,T5),W={};for(let w=0;w<G.length;w++){if(G[w][1].length===0)return j("InvalidAttr","Attribute '"+G[w][2]+"' has no space in starting.",l1(G[w]));else if(G[w][3]!==void 0&&G[w][4]===void 0)return j("InvalidAttr","Attribute '"+G[w][2]+"' is without value.",l1(G[w]));else if(G[w][3]===void 0&&!U.allowBooleanAttributes)return j("InvalidAttr","boolean attribute '"+G[w][2]+"' is not allowed.",l1(G[w]));let X=G[w][2];if(!C5(X))return j("InvalidAttr","Attribute '"+X+"' is an invalid name.",l1(G[w]));if(!W.hasOwnProperty(X))W[X]=1;else return j("InvalidAttr","Attribute '"+X+"' is repeated.",l1(G[w]))}return!0}function O5($,U){let G=/\d/;if($[U]==="x")U++,G=/[\da-fA-F]/;for(;U<$.length;U++){if($[U]===";")return U;if(!$[U].match(G))break}return-1}function f5($,U){if(U++,$[U]===";")return-1;if($[U]==="#")return U++,O5($,U);let G=0;for(;U<$.length;U++,G++){if($[U].match(/\w/)&&G<20)continue;if($[U]===";")break;return-1}return U}function j($,U,G){return{err:{code:$,msg:U,line:G.line||G,col:G.col}}}function C5($){return NU.isName($)}function N5($){return NU.isName($)}function S($,U){let G=$.substring(0,U).split(/\r?\n/);return{line:G.length,col:G[G.length-1].length+1}}function l1($){return $.startIndex+$[1].length}});var S4=M((P5)=>{var P4={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($,U){return U},attributeValueProcessor:function($,U){return U},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function($,U,G){return $}},b5=function($){return Object.assign({},P4,$)};P5.buildOptions=b5;P5.defaultOptions=P4});var h4=M((IV,D4)=>{class k4{constructor($){this.tagname=$,this.child=[],this[":@"]={}}add($,U){if($==="__proto__")$="#__proto__";this.child.push({[$]:U})}addChild($){if($.tagname==="__proto__")$.tagname="#__proto__";if($[":@"]&&Object.keys($[":@"]).length>0)this.child.push({[$.tagname]:$.child,[":@"]:$[":@"]});else this.child.push({[$.tagname]:$.child})}}D4.exports=k4});var v4=M((RV,x4)=>{var D5=t$();function h5($,U){let G={};if($[U+3]==="O"&&$[U+4]==="C"&&$[U+5]==="T"&&$[U+6]==="Y"&&$[U+7]==="P"&&$[U+8]==="E"){U=U+9;let W=1,w=!1,X=!1,Z="";for(;U<$.length;U++)if($[U]==="<"&&!X){if(w&&y5($,U)){if(U+=7,[entityName,val,U]=x5($,U+1),val.indexOf("&")===-1)G[d5(entityName)]={regx:RegExp(`&${entityName};`,"g"),val}}else if(w&&c5($,U))U+=8;else if(w&&_5($,U))U+=8;else if(w&&u5($,U))U+=9;else if(v5)X=!0;else throw new Error("Invalid DOCTYPE");W++,Z=""}else if($[U]===">"){if(X){if($[U-1]==="-"&&$[U-2]==="-")X=!1,W--}else W--;if(W===0)break}else if($[U]==="[")w=!0;else Z+=$[U];if(W!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:G,i:U}}function x5($,U){let G="";for(;U<$.length&&($[U]!=="'"&&$[U]!=='"');U++)G+=$[U];if(G=G.trim(),G.indexOf(" ")!==-1)throw new Error("External entites are not supported");let W=$[U++],w="";for(;U<$.length&&$[U]!==W;U++)w+=$[U];return[G,w,U]}function v5($,U){if($[U+1]==="!"&&$[U+2]==="-"&&$[U+3]==="-")return!0;return!1}function y5($,U){if($[U+1]==="!"&&$[U+2]==="E"&&$[U+3]==="N"&&$[U+4]==="T"&&$[U+5]==="I"&&$[U+6]==="T"&&$[U+7]==="Y")return!0;return!1}function c5($,U){if($[U+1]==="!"&&$[U+2]==="E"&&$[U+3]==="L"&&$[U+4]==="E"&&$[U+5]==="M"&&$[U+6]==="E"&&$[U+7]==="N"&&$[U+8]==="T")return!0;return!1}function _5($,U){if($[U+1]==="!"&&$[U+2]==="A"&&$[U+3]==="T"&&$[U+4]==="T"&&$[U+5]==="L"&&$[U+6]==="I"&&$[U+7]==="S"&&$[U+8]==="T")return!0;return!1}function u5($,U){if($[U+1]==="!"&&$[U+2]==="N"&&$[U+3]==="O"&&$[U+4]==="T"&&$[U+5]==="A"&&$[U+6]==="T"&&$[U+7]==="I"&&$[U+8]==="O"&&$[U+9]==="N")return!0;return!1}function d5($){if(D5.isName($))return $;else throw new Error(`Invalid entity name ${$}`)}x4.exports=h5});var c4=M((KV,y4)=>{var g5=/^[-+]?0x[a-fA-F0-9]+$/,p5=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;if(!Number.parseInt&&window.parseInt)Number.parseInt=window.parseInt;if(!Number.parseFloat&&window.parseFloat)Number.parseFloat=window.parseFloat;var s5={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function l5($,U={}){if(U=Object.assign({},s5,U),!$||typeof $!=="string")return $;let G=$.trim();if(U.skipLike!==void 0&&U.skipLike.test(G))return $;else if(U.hex&&g5.test(G))return Number.parseInt(G,16);else{let W=p5.exec(G);if(W){let w=W[1],X=W[2],Z=m5(W[3]),L=W[4]||W[6];if(!U.leadingZeros&&X.length>0&&w&&G[2]!==".")return $;else if(!U.leadingZeros&&X.length>0&&!w&&G[1]!==".")return $;else{let Y=Number(G),z=""+Y;if(z.search(/[eE]/)!==-1)if(U.eNotation)return Y;else return $;else if(L)if(U.eNotation)return Y;else return $;else if(G.indexOf(".")!==-1)if(z==="0"&&Z==="")return Y;else if(z===Z)return Y;else if(w&&z==="-"+Z)return Y;else return $;if(X)if(Z===z)return Y;else if(w+Z===z)return Y;else return $;if(G===z)return Y;else if(G===w+z)return Y;return $}}else return $}}function m5($){if($&&$.indexOf(".")!==-1){if($=$.replace(/0+$/,""),$===".")$="0";else if($[0]===".")$="0"+$;else if($[$.length-1]===".")$=$.substr(0,$.length-1);return $}return $}y4.exports=l5});var g4=M((MV,d4)=>{var _4=t$(),m1=h4(),n5=v4(),i5=c4();class u4{constructor($){this.options=$,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:(U,G)=>String.fromCharCode(Number.parseInt(G,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(U,G)=>String.fromCharCode(Number.parseInt(G,16))}},this.addExternalEntities=r5,this.parseXml=$F,this.parseTextData=o5,this.resolveNameSpace=a5,this.buildAttributesMap=e5,this.isItStopNode=wF,this.replaceEntitiesValue=GF,this.readStopNodeData=ZF,this.saveTextToParentTag=WF,this.addChild=UF}}function r5($){let U=Object.keys($);for(let G=0;G<U.length;G++){let W=U[G];this.lastEntities[W]={regex:new RegExp("&"+W+";","g"),val:$[W]}}}function o5($,U,G,W,w,X,Z){if($!==void 0){if(this.options.trimValues&&!W)$=$.trim();if($.length>0){if(!Z)$=this.replaceEntitiesValue($);let L=this.options.tagValueProcessor(U,$,G,w,X);if(L===null||L===void 0)return $;else if(typeof L!==typeof $||L!==$)return L;else if(this.options.trimValues)return bU($,this.options.parseTagValue,this.options.numberParseOptions);else if($.trim()===$)return bU($,this.options.parseTagValue,this.options.numberParseOptions);else return $}}}function a5($){if(this.options.removeNSPrefix){let U=$.split(":"),G=$.charAt(0)==="/"?"/":"";if(U[0]==="xmlns")return"";if(U.length===2)$=G+U[1]}return $}var t5=new RegExp('([^\\s=]+)\\s*(=\\s*([\'"])([\\s\\S]*?)\\3)?',"gm");function e5($,U,G){if(!this.options.ignoreAttributes&&typeof $==="string"){let W=_4.getAllMatches($,t5),w=W.length,X={};for(let Z=0;Z<w;Z++){let L=this.resolveNameSpace(W[Z][1]),Y=W[Z][4],z=this.options.attributeNamePrefix+L;if(L.length){if(this.options.transformAttributeName)z=this.options.transformAttributeName(z);if(z==="__proto__")z="#__proto__";if(Y!==void 0){if(this.options.trimValues)Y=Y.trim();Y=this.replaceEntitiesValue(Y);let Q=this.options.attributeValueProcessor(L,Y,U);if(Q===null||Q===void 0)X[z]=Y;else if(typeof Q!==typeof Y||Q!==Y)X[z]=Q;else X[z]=bU(Y,this.options.parseAttributeValue,this.options.numberParseOptions)}else if(this.options.allowBooleanAttributes)X[z]=!0}}if(!Object.keys(X).length)return;if(this.options.attributesGroupName){let Z={};return Z[this.options.attributesGroupName]=X,Z}return X}}var $F=function($){$=$.replace(/\r\n?/g,"\n");let U=new m1("!xml"),G=U,W="",w="";for(let X=0;X<$.length;X++)if($[X]==="<")if($[X+1]==="/"){let L=J1($,">",X,"Closing Tag is not closed."),Y=$.substring(X+2,L).trim();if(this.options.removeNSPrefix){let F=Y.indexOf(":");if(F!==-1)Y=Y.substr(F+1)}if(this.options.transformTagName)Y=this.options.transformTagName(Y);if(G)W=this.saveTextToParentTag(W,G,w);let z=w.substring(w.lastIndexOf(".")+1);if(Y&&this.options.unpairedTags.indexOf(Y)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${Y}>`);let Q=0;if(z&&this.options.unpairedTags.indexOf(z)!==-1)Q=w.lastIndexOf(".",w.lastIndexOf(".")-1),this.tagsNodeStack.pop();else Q=w.lastIndexOf(".");w=w.substring(0,Q),G=this.tagsNodeStack.pop(),W="",X=L}else if($[X+1]==="?"){let L=qU($,X,!1,"?>");if(!L)throw new Error("Pi Tag is not closed.");if(W=this.saveTextToParentTag(W,G,w),this.options.ignoreDeclaration&&L.tagName==="?xml"||this.options.ignorePiTags);else{let Y=new m1(L.tagName);if(Y.add(this.options.textNodeName,""),L.tagName!==L.tagExp&&L.attrExpPresent)Y[":@"]=this.buildAttributesMap(L.tagExp,w,L.tagName);this.addChild(G,Y,w)}X=L.closeIndex+1}else if($.substr(X+1,3)==="!--"){let L=J1($,"-->",X+4,"Comment is not closed.");if(this.options.commentPropName){let Y=$.substring(X+4,L-2);W=this.saveTextToParentTag(W,G,w),G.add(this.options.commentPropName,[{[this.options.textNodeName]:Y}])}X=L}else if($.substr(X+1,2)==="!D"){let L=n5($,X);this.docTypeEntities=L.entities,X=L.i}else if($.substr(X+1,2)==="!["){let L=J1($,"]]>",X,"CDATA is not closed.")-2,Y=$.substring(X+9,L);W=this.saveTextToParentTag(W,G,w);let z=this.parseTextData(Y,G.tagname,w,!0,!1,!0,!0);if(z==null)z="";if(this.options.cdataPropName)G.add(this.options.cdataPropName,[{[this.options.textNodeName]:Y}]);else G.add(this.options.textNodeName,z);X=L+2}else{let L=qU($,X,this.options.removeNSPrefix),Y=L.tagName,z=L.rawTagName,Q=L.tagExp,F=L.attrExpPresent,I=L.closeIndex;if(this.options.transformTagName)Y=this.options.transformTagName(Y);if(G&&W){if(G.tagname!=="!xml")W=this.saveTextToParentTag(W,G,w,!1)}let R=G;if(R&&this.options.unpairedTags.indexOf(R.tagname)!==-1)G=this.tagsNodeStack.pop(),w=w.substring(0,w.lastIndexOf("."));if(Y!==U.tagname)w+=w?"."+Y:Y;if(this.isItStopNode(this.options.stopNodes,w,Y)){let K="";if(Q.length>0&&Q.lastIndexOf("/")===Q.length-1){if(Y[Y.length-1]==="/")Y=Y.substr(0,Y.length-1),w=w.substr(0,w.length-1),Q=Y;else Q=Q.substr(0,Q.length-1);X=L.closeIndex}else if(this.options.unpairedTags.indexOf(Y)!==-1)X=L.closeIndex;else{let A=this.readStopNodeData($,z,I+1);if(!A)throw new Error(`Unexpected end of ${z}`);X=A.i,K=A.tagContent}let B=new m1(Y);if(Y!==Q&&F)B[":@"]=this.buildAttributesMap(Q,w,Y);if(K)K=this.parseTextData(K,Y,w,!0,F,!0,!0);w=w.substr(0,w.lastIndexOf(".")),B.add(this.options.textNodeName,K),this.addChild(G,B,w)}else{if(Q.length>0&&Q.lastIndexOf("/")===Q.length-1){if(Y[Y.length-1]==="/")Y=Y.substr(0,Y.length-1),w=w.substr(0,w.length-1),Q=Y;else Q=Q.substr(0,Q.length-1);if(this.options.transformTagName)Y=this.options.transformTagName(Y);let K=new m1(Y);if(Y!==Q&&F)K[":@"]=this.buildAttributesMap(Q,w,Y);this.addChild(G,K,w),w=w.substr(0,w.lastIndexOf("."))}else{let K=new m1(Y);if(this.tagsNodeStack.push(G),Y!==Q&&F)K[":@"]=this.buildAttributesMap(Q,w,Y);this.addChild(G,K,w),G=K}W="",X=I}}else W+=$[X];return U.child};function UF($,U,G){let W=this.options.updateTag(U.tagname,G,U[":@"]);if(W===!1);else if(typeof W==="string")U.tagname=W,$.addChild(U);else $.addChild(U)}var GF=function($){if(this.options.processEntities){for(let U in this.docTypeEntities){let G=this.docTypeEntities[U];$=$.replace(G.regx,G.val)}for(let U in this.lastEntities){let G=this.lastEntities[U];$=$.replace(G.regex,G.val)}if(this.options.htmlEntities)for(let U in this.htmlEntities){let G=this.htmlEntities[U];$=$.replace(G.regex,G.val)}$=$.replace(this.ampEntity.regex,this.ampEntity.val)}return $};function WF($,U,G,W){if($){if(W===void 0)W=Object.keys(U.child).length===0;if($=this.parseTextData($,U.tagname,G,!1,U[":@"]?Object.keys(U[":@"]).length!==0:!1,W),$!==void 0&&$!=="")U.add(this.options.textNodeName,$);$=""}return $}function wF($,U,G){let W="*."+G;for(let w in $){let X=$[w];if(W===X||U===X)return!0}return!1}function XF($,U,G=">"){let W,w="";for(let X=U;X<$.length;X++){let Z=$[X];if(W){if(Z===W)W=""}else if(Z==='"'||Z==="'")W=Z;else if(Z===G[0])if(G[1]){if($[X+1]===G[1])return{data:w,index:X}}else return{data:w,index:X};else if(Z==="\t")Z=" ";w+=Z}}function J1($,U,G,W){let w=$.indexOf(U,G);if(w===-1)throw new Error(W);else return w+U.length-1}function qU($,U,G,W=">"){let w=XF($,U+1,W);if(!w)return;let{data:X,index:Z}=w,L=X.search(/\s/),Y=X,z=!0;if(L!==-1)Y=X.substring(0,L),X=X.substring(L+1).trimStart();let Q=Y;if(G){let F=Y.indexOf(":");if(F!==-1)Y=Y.substr(F+1),z=Y!==w.data.substr(F+1)}return{tagName:Y,tagExp:X,closeIndex:Z,attrExpPresent:z,rawTagName:Q}}function ZF($,U,G){let W=G,w=1;for(;G<$.length;G++)if($[G]==="<")if($[G+1]==="/"){let X=J1($,">",G,`${U} is not closed`);if($.substring(G+2,X).trim()===U){if(w--,w===0)return{tagContent:$.substring(W,G),i:X}}G=X}else if($[G+1]==="?")G=J1($,"?>",G+1,"StopNode is not closed.");else if($.substr(G+1,3)==="!--")G=J1($,"-->",G+3,"StopNode is not closed.");else if($.substr(G+1,2)==="![")G=J1($,"]]>",G,"StopNode is not closed.")-2;else{let X=qU($,G,">");if(X){if((X&&X.tagName)===U&&X.tagExp[X.tagExp.length-1]!=="/")w++;G=X.closeIndex}}}function bU($,U,G){if(U&&typeof $==="string"){let W=$.trim();if(W==="true")return!0;else if(W==="false")return!1;else return i5($,G)}else if(_4.isExist($))return $;else return""}d4.exports=u4});var s4=M((FF)=>{function LF($,U){return p4($,U)}function p4($,U,G){let W,w={};for(let X=0;X<$.length;X++){let Z=$[X],L=YF(Z),Y="";if(G===void 0)Y=L;else Y=G+"."+L;if(L===U.textNodeName)if(W===void 0)W=Z[L];else W+=""+Z[L];else if(L===void 0)continue;else if(Z[L]){let z=p4(Z[L],U,Y),Q=QF(z,U);if(Z[":@"])zF(z,Z[":@"],Y,U);else if(Object.keys(z).length===1&&z[U.textNodeName]!==void 0&&!U.alwaysCreateTextNode)z=z[U.textNodeName];else if(Object.keys(z).length===0)if(U.alwaysCreateTextNode)z[U.textNodeName]="";else z="";if(w[L]!==void 0&&w.hasOwnProperty(L)){if(!Array.isArray(w[L]))w[L]=[w[L]];w[L].push(z)}else if(U.isArray(L,Y,Q))w[L]=[z];else w[L]=z}}if(typeof W==="string"){if(W.length>0)w[U.textNodeName]=W}else if(W!==void 0)w[U.textNodeName]=W;return w}function YF($){let U=Object.keys($);for(let G=0;G<U.length;G++){let W=U[G];if(W!==":@")return W}}function zF($,U,G,W){if(U){let w=Object.keys(U),X=w.length;for(let Z=0;Z<X;Z++){let L=w[Z];if(W.isArray(L,G+"."+L,!0,!0))$[L]=[U[L]];else $[L]=U[L]}}}function QF($,U){let{textNodeName:G}=U,W=Object.keys($).length;if(W===0)return!0;if(W===1&&($[G]||typeof $[G]==="boolean"||$[G]===0))return!0;return!1}FF.prettify=LF});var n4=M((VV,m4)=>{var{buildOptions:IF}=S4(),RF=g4(),{prettify:KF}=s4(),MF=jU();class l4{constructor($){this.externalEntities={},this.options=IF($)}parse($,U){if(typeof $==="string");else if($.toString)$=$.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(U){if(U===!0)U={};let w=MF.validate($,U);if(w!==!0)throw Error(`${w.err.msg}:${w.err.line}:${w.err.col}`)}let G=new RF(this.options);G.addExternalEntities(this.externalEntities);let W=G.parseXml($);if(this.options.preserveOrder||W===void 0)return W;else return KF(W,this.options)}addEntity($,U){if(U.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");else if($.indexOf("&")!==-1||$.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");else if(U==="&")throw new Error("An entity with value '&' is not permitted");else this.externalEntities[$]=U}}m4.exports=l4});var t4=M((HV,a4)=>{function BF($,U){let G="";if(U.format&&U.indentBy.length>0)G="\n";return r4($,U,"",G)}function r4($,U,G,W){let w="",X=!1;for(let Z=0;Z<$.length;Z++){let L=$[Z],Y=VF(L);if(Y===void 0)continue;let z="";if(G.length===0)z=Y;else z=`${G}.${Y}`;if(Y===U.textNodeName){let K=L[Y];if(!HF(z,U))K=U.tagValueProcessor(Y,K),K=o4(K,U);if(X)w+=W;w+=K,X=!1;continue}else if(Y===U.cdataPropName){if(X)w+=W;w+=`<![CDATA[${L[Y][0][U.textNodeName]}]]>`,X=!1;continue}else if(Y===U.commentPropName){w+=W+`<!--${L[Y][0][U.textNodeName]}-->`,X=!0;continue}else if(Y[0]==="?"){let K=i4(L[":@"],U),B=Y==="?xml"?"":W,A=L[Y][0][U.textNodeName];A=A.length!==0?" "+A:"",w+=B+`<${Y}${A}${K}?>`,X=!0;continue}let Q=W;if(Q!=="")Q+=U.indentBy;let F=i4(L[":@"],U),I=W+`<${Y}${F}`,R=r4(L[Y],U,z,Q);if(U.unpairedTags.indexOf(Y)!==-1)if(U.suppressUnpairedNode)w+=I+">";else w+=I+"/>";else if((!R||R.length===0)&&U.suppressEmptyNode)w+=I+"/>";else if(R&&R.endsWith(">"))w+=I+`>${R}${W}</${Y}>`;else{if(w+=I+">",R&&W!==""&&(R.includes("/>")||R.includes("</")))w+=W+U.indentBy+R+W;else w+=R;w+=`</${Y}>`}X=!0}return w}function VF($){let U=Object.keys($);for(let G=0;G<U.length;G++){let W=U[G];if(!$.hasOwnProperty(W))continue;if(W!==":@")return W}}function i4($,U){let G="";if($&&!U.ignoreAttributes)for(let W in $){if(!$.hasOwnProperty(W))continue;let w=U.attributeValueProcessor(W,$[W]);if(w=o4(w,U),w===!0&&U.suppressBooleanAttributes)G+=` ${W.substr(U.attributeNamePrefix.length)}`;else G+=` ${W.substr(U.attributeNamePrefix.length)}="${w}"`}return G}function HF($,U){$=$.substr(0,$.length-U.textNodeName.length-1);let G=$.substr($.lastIndexOf(".")+1);for(let W in U.stopNodes)if(U.stopNodes[W]===$||U.stopNodes[W]==="*."+G)return!0;return!1}function o4($,U){if($&&$.length>0&&U.processEntities)for(let G=0;G<U.entities.length;G++){let W=U.entities[G];$=$.replace(W.regex,W.val)}return $}a4.exports=BF});var $X=M((AV,e4)=>{var AF=t4(),EF={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function($,U){return U},attributeValueProcessor:function($,U){return U},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 U1($){if(this.options=Object.assign({},EF,$),this.options.ignoreAttributes||this.options.attributesGroupName)this.isAttribute=function(){return!1};else this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=fF;if(this.processTextOrObjNode=TF,this.options.format)this.indentate=OF,this.tagEndChar=">\n",this.newLine="\n";else this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""}U1.prototype.build=function($){if(this.options.preserveOrder)return AF($,this.options);else{if(Array.isArray($)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1)$={[this.options.arrayNodeName]:$};return this.j2x($,0).val}};U1.prototype.j2x=function($,U){let G="",W="";for(let w in $){if(!Object.prototype.hasOwnProperty.call($,w))continue;if(typeof $[w]==="undefined"){if(this.isAttribute(w))W+=""}else if($[w]===null)if(this.isAttribute(w))W+="";else if(w[0]==="?")W+=this.indentate(U)+"<"+w+"?"+this.tagEndChar;else W+=this.indentate(U)+"<"+w+"/"+this.tagEndChar;else if($[w]instanceof Date)W+=this.buildTextValNode($[w],w,"",U);else if(typeof $[w]!=="object"){let X=this.isAttribute(w);if(X)G+=this.buildAttrPairStr(X,""+$[w]);else if(w===this.options.textNodeName){let Z=this.options.tagValueProcessor(w,""+$[w]);W+=this.replaceEntitiesValue(Z)}else W+=this.buildTextValNode($[w],w,"",U)}else if(Array.isArray($[w])){let X=$[w].length,Z="",L="";for(let Y=0;Y<X;Y++){let z=$[w][Y];if(typeof z==="undefined");else if(z===null)if(w[0]==="?")W+=this.indentate(U)+"<"+w+"?"+this.tagEndChar;else W+=this.indentate(U)+"<"+w+"/"+this.tagEndChar;else if(typeof z==="object")if(this.options.oneListGroup){let Q=this.j2x(z,U+1);if(Z+=Q.val,this.options.attributesGroupName&&z.hasOwnProperty(this.options.attributesGroupName))L+=Q.attrStr}else Z+=this.processTextOrObjNode(z,w,U);else if(this.options.oneListGroup){let Q=this.options.tagValueProcessor(w,z);Q=this.replaceEntitiesValue(Q),Z+=Q}else Z+=this.buildTextValNode(z,w,"",U)}if(this.options.oneListGroup)Z=this.buildObjectNode(Z,w,L,U);W+=Z}else if(this.options.attributesGroupName&&w===this.options.attributesGroupName){let X=Object.keys($[w]),Z=X.length;for(let L=0;L<Z;L++)G+=this.buildAttrPairStr(X[L],""+$[w][X[L]])}else W+=this.processTextOrObjNode($[w],w,U)}return{attrStr:G,val:W}};U1.prototype.buildAttrPairStr=function($,U){if(U=this.options.attributeValueProcessor($,""+U),U=this.replaceEntitiesValue(U),this.options.suppressBooleanAttributes&&U==="true")return" "+$;else return" "+$+'="'+U+'"'};function TF($,U,G){let W=this.j2x($,G+1);if($[this.options.textNodeName]!==void 0&&Object.keys($).length===1)return this.buildTextValNode($[this.options.textNodeName],U,W.attrStr,G);else return this.buildObjectNode(W.val,U,W.attrStr,G)}U1.prototype.buildObjectNode=function($,U,G,W){if($==="")if(U[0]==="?")return this.indentate(W)+"<"+U+G+"?"+this.tagEndChar;else return this.indentate(W)+"<"+U+G+this.closeTag(U)+this.tagEndChar;else{let w="</"+U+this.tagEndChar,X="";if(U[0]==="?")X="?",w="";if((G||G==="")&&$.indexOf("<")===-1)return this.indentate(W)+"<"+U+G+X+">"+$+w;else if(this.options.commentPropName!==!1&&U===this.options.commentPropName&&X.length===0)return this.indentate(W)+`<!--${$}-->`+this.newLine;else return this.indentate(W)+"<"+U+G+X+this.tagEndChar+$+this.indentate(W)+w}};U1.prototype.closeTag=function($){let U="";if(this.options.unpairedTags.indexOf($)!==-1){if(!this.options.suppressUnpairedNode)U="/"}else if(this.options.suppressEmptyNode)U="/";else U=`></${$}`;return U};U1.prototype.buildTextValNode=function($,U,G,W){if(this.options.cdataPropName!==!1&&U===this.options.cdataPropName)return this.indentate(W)+`<![CDATA[${$}]]>`+this.newLine;else if(this.options.commentPropName!==!1&&U===this.options.commentPropName)return this.indentate(W)+`<!--${$}-->`+this.newLine;else if(U[0]==="?")return this.indentate(W)+"<"+U+G+"?"+this.tagEndChar;else{let w=this.options.tagValueProcessor(U,$);if(w=this.replaceEntitiesValue(w),w==="")return this.indentate(W)+"<"+U+G+this.closeTag(U)+this.tagEndChar;else return this.indentate(W)+"<"+U+G+">"+w+"</"+U+this.tagEndChar}};U1.prototype.replaceEntitiesValue=function($){if($&&$.length>0&&this.options.processEntities)for(let U=0;U<this.options.entities.length;U++){let G=this.options.entities[U];$=$.replace(G.regex,G.val)}return $};function OF($){return this.options.indentBy.repeat($)}function fF($){if($.startsWith(this.options.attributeNamePrefix)&&$!==this.options.textNodeName)return $.substr(this.attrPrefixLen);else return!1}e4.exports=U1});var GX=M((EV,UX)=>{var CF=jU(),NF=n4(),jF=$X();UX.exports={XMLParser:NF,XMLValidator:CF,XMLBuilder:jF}});var YX=M((TV,LX)=>{var{defineProperty:e$,getOwnPropertyDescriptor:qF,getOwnPropertyNames:bF}=Object,PF=Object.prototype.hasOwnProperty,h=($,U)=>e$($,"name",{value:U,configurable:!0}),SF=($,U)=>{for(var G in U)e$($,G,{get:U[G],enumerable:!0})},kF=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of bF(U))if(!PF.call($,w)&&w!==G)e$($,w,{get:()=>U[w],enumerable:!(W=qF(U,w))||W.enumerable})}return $},DF=($)=>kF(e$({},"__esModule",{value:!0}),$),WX={};SF(WX,{_toBool:()=>xF,_toNum:()=>vF,_toStr:()=>hF,awsExpectUnion:()=>cF,loadRestJsonErrorCode:()=>dF,loadRestXmlErrorCode:()=>lF,parseJsonBody:()=>XX,parseJsonErrorBody:()=>uF,parseXmlBody:()=>ZX,parseXmlErrorBody:()=>sF});LX.exports=DF(WX);var hF=h(($)=>{if($==null)return $;if(typeof $==="number"||typeof $==="bigint"){let U=new Error(`Received number ${$} where a string was expected.`);return U.name="Warning",console.warn(U),String($)}if(typeof $==="boolean"){let U=new Error(`Received boolean ${$} where a string was expected.`);return U.name="Warning",console.warn(U),String($)}return $},"_toStr"),xF=h(($)=>{if($==null)return $;if(typeof $==="string"){let U=$.toLowerCase();if($!==""&&U!=="false"&&U!=="true"){let G=new Error(`Received string "${$}" where a boolean was expected.`);G.name="Warning",console.warn(G)}return $!==""&&U!=="false"}return $},"_toBool"),vF=h(($)=>{if($==null)return $;if(typeof $==="string"){let U=Number($);if(U.toString()!==$){let G=new Error(`Received string "${$}" where a number was expected.`);return G.name="Warning",console.warn(G),$}return U}return $},"_toNum"),yF=A1(),cF=h(($)=>{if($==null)return;if(typeof $==="object"&&"__type"in $)delete $.__type;return yF.expectUnion($)},"awsExpectUnion"),_F=A1(),wX=h(($,U)=>_F.collectBody($,U).then((G)=>U.utf8Encoder(G)),"collectBodyString"),XX=h(($,U)=>wX($,U).then((G)=>{if(G.length)try{return JSON.parse(G)}catch(W){if((W==null?void 0:W.name)==="SyntaxError")Object.defineProperty(W,"$responseBodyText",{value:G});throw W}return{}}),"parseJsonBody"),uF=h(async($,U)=>{let G=await XX($,U);return G.message=G.message??G.Message,G},"parseJsonErrorBody"),dF=h(($,U)=>{let G=h((X,Z)=>Object.keys(X).find((L)=>L.toLowerCase()===Z.toLowerCase()),"findKey"),W=h((X)=>{let Z=X;if(typeof Z==="number")Z=Z.toString();if(Z.indexOf(",")>=0)Z=Z.split(",")[0];if(Z.indexOf(":")>=0)Z=Z.split(":")[0];if(Z.indexOf("#")>=0)Z=Z.split("#")[1];return Z},"sanitizeErrorCode"),w=G($.headers,"x-amzn-errortype");if(w!==void 0)return W($.headers[w]);if(U.code!==void 0)return W(U.code);if(U.__type!==void 0)return W(U.__type)},"loadRestJsonErrorCode"),gF=A1(),pF=GX(),ZX=h(($,U)=>wX($,U).then((G)=>{if(G.length){let W=new pF.XMLParser({attributeNamePrefix:"",htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(Y,z)=>z.trim()===""&&z.includes("\n")?"":void 0});W.addEntity("#xD","\r"),W.addEntity("#10","\n");let w;try{w=W.parse(G,!0)}catch(Y){if(Y&&typeof Y==="object")Object.defineProperty(Y,"$responseBodyText",{value:G});throw Y}let X="#text",Z=Object.keys(w)[0],L=w[Z];if(L[X])L[Z]=L[X],delete L[X];return gF.getValueFromTextNode(L)}return{}}),"parseXmlBody"),sF=h(async($,U)=>{let G=await ZX($,U);if(G.Error)G.Error.message=G.Error.message??G.Error.Message;return G},"parseXmlErrorBody"),lF=h(($,U)=>{var G;if(((G=U==null?void 0:U.Error)==null?void 0:G.Code)!==void 0)return U.Error.Code;if((U==null?void 0:U.Code)!==void 0)return U.Code;if($.statusCode==404)return"NotFound"},"loadRestXmlErrorCode")});var nF=M((n1)=>{Object.defineProperty(n1,"__esModule",{value:!0});var PU=mF();PU.__exportStar(n8(),n1);PU.__exportStar(O4(),n1);PU.__exportStar(YX(),n1)});function zJ($){return $}var EX=($)=>(U)=>async(G)=>{if(!v.isInstance(G.request))return U(G);let{request:W}=G,{handlerProtocol:w=""}=$.requestHandler.metadata||{};if(w.indexOf("h2")>=0&&!W.headers[":authority"])delete W.headers.host,W.headers[":authority"]=W.hostname+(W.port?":"+W.port:"");else if(!W.headers.host){let X=W.hostname;if(W.port!=null)X+=`:${W.port}`;W.headers.host=X}return U(G)},TX={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},QJ=($)=>({applyToStack:(U)=>{U.add(EX($),TX)}});var OX=()=>($,U)=>async(G)=>{try{let W=await $(G),{clientName:w,commandName:X,logger:Z,dynamoDbDocumentClientOptions:L={}}=U,{overrideInputFilterSensitiveLog:Y,overrideOutputFilterSensitiveLog:z}=L,Q=Y??U.inputFilterSensitiveLog,F=z??U.outputFilterSensitiveLog,{$metadata:I,...R}=W.output;return Z?.info?.({clientName:w,commandName:X,input:Q(G.input),output:F(R),metadata:I}),W}catch(W){let{clientName:w,commandName:X,logger:Z,dynamoDbDocumentClientOptions:L={}}=U,{overrideInputFilterSensitiveLog:Y}=L,z=Y??U.inputFilterSensitiveLog;throw Z?.error?.({clientName:w,commandName:X,input:z(G.input),error:W,metadata:W.$metadata}),W}},fX={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},JJ=($)=>({applyToStack:(U)=>{U.add(OX(),fX)}});var xU="X-Amzn-Trace-Id",CX="AWS_LAMBDA_FUNCTION_NAME",NX="_X_AMZN_TRACE_ID",jX=($)=>(U)=>async(G)=>{let{request:W}=G;if(!v.isInstance(W)||$.runtime!=="node"||W.headers.hasOwnProperty(xU))return U(G);let w=process.env[CX],X=process.env[NX],Z=(L)=>typeof L==="string"&&L.length>0;if(Z(w)&&Z(X))W.headers[xU]=X;return U({...G,request:W})},qX={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},BJ=($)=>({applyToStack:(U)=>{U.add(jX($),qX)}});function ZI($){return{...$,customUserAgent:typeof $.customUserAgent==="string"?[[$.customUserAgent]]:$.customUserAgent}}class OQ{constructor({size:$,params:U}){if(this.data=new Map,this.parameters=[],this.capacity=$??50,U)this.parameters=U}get($,U){let G=this.hash($);if(G===!1)return U();if(!this.data.has(G)){if(this.data.size>this.capacity+10){let W=this.data.keys(),w=0;while(!0){let{value:X,done:Z}=W.next();if(this.data.delete(X),Z||++w>10)break}}this.data.set(G,U())}return this.data.get(G)}size(){return this.data.size}hash($){let U="",{parameters:G}=this;if(G.length===0)return!1;for(let W of G){let w=String($[W]??"");if(w.includes("|;"))return!1;U+=w+"|;"}return U}}var fQ=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}$"),u1=($)=>fQ.test($)||$.startsWith("[")&&$.endsWith("]");var CQ=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),d1=($,U=!1)=>{if(!U)return CQ.test($);let G=$.split(".");for(let W of G)if(!d1(W))return!1;return!0};var g1={};var i="endpoints";function c($){if(typeof $!=="object"||$==null)return $;if("ref"in $)return`\$${c($.ref)}`;if("fn"in $)return`${$.fn}(${($.argv||[]).map(c).join(", ")})`;return JSON.stringify($,null,2)}class T extends Error{constructor($){super($);this.name="EndpointError"}}var G8=($,U)=>$===U;var W8=($)=>{let U=$.split("."),G=[];for(let W of U){let w=W.indexOf("[");if(w!==-1){if(W.indexOf("]")!==W.length-1)throw new T(`Path: '${$}' does not end with ']'`);let X=W.slice(w+1,-1);if(Number.isNaN(parseInt(X)))throw new T(`Invalid array index: '${X}' in path: '${$}'`);if(w!==0)G.push(W.slice(0,w));G.push(X)}else G.push(W)}return G};var j$=($,U)=>W8(U).reduce((G,W)=>{if(typeof G!=="object")throw new T(`Index '${W}' in '${U}' not found in '${JSON.stringify($)}'`);else if(Array.isArray(G))return G[parseInt(W)];return G[W]},$);var w8=($)=>$!=null;var X8=($)=>!$;var q$=p(I1(),1);var a0={[q$.EndpointURLScheme.HTTP]:80,[q$.EndpointURLScheme.HTTPS]:443},Z8=($)=>{let U=(()=>{try{if($ instanceof URL)return $;if(typeof $==="object"&&"hostname"in $){let{hostname:I,port:R,protocol:K="",path:B="",query:A={}}=$,P=new URL(`${K}//${I}${R?`:${R}`:""}${B}`);return P.search=Object.entries(A).map(([O,V])=>`${O}=${V}`).join("&"),P}return new URL($)}catch(I){return null}})();if(!U)return console.error(`Unable to parse ${JSON.stringify($)} as a whatwg URL.`),null;let G=U.href,{host:W,hostname:w,pathname:X,protocol:Z,search:L}=U;if(L)return null;let Y=Z.slice(0,-1);if(!Object.values(q$.EndpointURLScheme).includes(Y))return null;let z=u1(w),Q=G.includes(`${W}:${a0[Y]}`)||typeof $==="string"&&$.includes(`${W}:${a0[Y]}`),F=`${W}${Q?`:${a0[Y]}`:""}`;return{scheme:Y,authority:F,path:X,normalizedPath:X.endsWith("/")?X:`${X}/`,isIp:z}};var L8=($,U)=>$===U;var Y8=($,U,G,W)=>{if(U>=G||$.length<G)return null;if(!W)return $.substring(U,G);return $.substring($.length-G,$.length-U)};var z8=($)=>encodeURIComponent($).replace(/[!*'()]/g,(U)=>`%${U.charCodeAt(0).toString(16).toUpperCase()}`);var Q8={booleanEquals:G8,getAttr:j$,isSet:w8,isValidHostLabel:d1,not:X8,parseURL:Z8,stringEquals:L8,substring:Y8,uriEncode:z8};var b$=($,U)=>{let G=[],W={...U.endpointParams,...U.referenceRecord},w=0;while(w<$.length){let X=$.indexOf("{",w);if(X===-1){G.push($.slice(w));break}G.push($.slice(w,X));let Z=$.indexOf("}",X);if(Z===-1){G.push($.slice(X));break}if($[X+1]==="{"&&$[Z+1]==="}")G.push($.slice(X+1,Z)),w=Z+2;let L=$.substring(X+1,Z);if(L.includes("#")){let[Y,z]=L.split("#");G.push(j$(W[Y],z))}else G.push(W[L]);w=Z+1}return G.join("")};var F8=({ref:$},U)=>{return{...U.endpointParams,...U.referenceRecord}[$]};var t=($,U,G)=>{if(typeof $==="string")return b$($,G);else if($.fn)return P$($,G);else if($.ref)return F8($,G);throw new T(`'${U}': ${String($)} is not a string, function or reference.`)};var P$=({fn:$,argv:U},G)=>{let W=U.map((X)=>["boolean","number"].includes(typeof X)?X:t(X,"arg",G)),w=$.split(".");if(w[0]in g1&&w[1]!=null)return g1[w[0]][w[1]](...W);return Q8[$](...W)};var J8=({assign:$,...U},G)=>{if($&&$ in G.referenceRecord)throw new T(`'${$}' is already defined in Reference Record.`);let W=P$(U,G);return G.logger?.debug?.(`${i} evaluateCondition: ${c(U)} = ${c(W)}`),{result:W===""?!0:!!W,...$!=null&&{toAssign:{name:$,value:W}}}};var T1=($=[],U)=>{let G={};for(let W of $){let{result:w,toAssign:X}=J8(W,{...U,referenceRecord:{...U.referenceRecord,...G}});if(!w)return{result:w};if(X)G[X.name]=X.value,U.logger?.debug?.(`${i} assign: ${X.name} := ${c(X.value)}`)}return{result:!0,referenceRecord:G}};var I8=($,U)=>Object.entries($).reduce((G,[W,w])=>({...G,[W]:w.map((X)=>{let Z=t(X,"Header value entry",U);if(typeof Z!=="string")throw new T(`Header '${W}' value '${Z}' is not a string`);return Z})}),{});var t0=($,U)=>{if(Array.isArray($))return $.map((G)=>t0(G,U));switch(typeof $){case"string":return b$($,U);case"object":if($===null)throw new T(`Unexpected endpoint property: ${$}`);return S$($,U);case"boolean":return $;default:throw new T(`Unexpected endpoint property type: ${typeof $}`)}};var S$=($,U)=>Object.entries($).reduce((G,[W,w])=>({...G,[W]:t0(w,U)}),{});var R8=($,U)=>{let G=t($,"Endpoint URL",U);if(typeof G==="string")try{return new URL(G)}catch(W){throw console.error(`Failed to construct URL with ${G}`,W),W}throw new T(`Endpoint URL must be a string, got ${typeof G}`)};var K8=($,U)=>{let{conditions:G,endpoint:W}=$,{result:w,referenceRecord:X}=T1(G,U);if(!w)return;let Z={...U,referenceRecord:{...U.referenceRecord,...X}},{url:L,properties:Y,headers:z}=W;return U.logger?.debug?.(`${i} Resolving endpoint from template: ${c(W)}`),{...z!=null&&{headers:I8(z,Z)},...Y!=null&&{properties:S$(Y,Z)},url:R8(L,Z)}};var M8=($,U)=>{let{conditions:G,error:W}=$,{result:w,referenceRecord:X}=T1(G,U);if(!w)return;throw new T(t(W,"Error",{...U,referenceRecord:{...U.referenceRecord,...X}}))};var B8=($,U)=>{let{conditions:G,rules:W}=$,{result:w,referenceRecord:X}=T1(G,U);if(!w)return;return k$(W,{...U,referenceRecord:{...U.referenceRecord,...X}})};var k$=($,U)=>{for(let G of $)if(G.type==="endpoint"){let W=K8(G,U);if(W)return W}else if(G.type==="error")M8(G,U);else if(G.type==="tree"){let W=B8(G,U);if(W)return W}else throw new T(`Unknown endpoint rule: ${G}`);throw new T("Rules evaluation failed")};var NQ=($,U)=>{let{endpointParams:G,logger:W}=U,{parameters:w,rules:X}=$;U.logger?.debug?.(`${i} Initial EndpointParams: ${c(G)}`);let Z=Object.entries(w).filter(([,z])=>z.default!=null).map(([z,Q])=>[z,Q.default]);if(Z.length>0)for(let[z,Q]of Z)G[z]=G[z]??Q;let L=Object.entries(w).filter(([,z])=>z.required).map(([z])=>z);for(let z of L)if(G[z]==null)throw new T(`Missing required parameter: '${z}'`);let Y=k$(X,{endpointParams:G,logger:W,referenceRecord:{}});return U.logger?.debug?.(`${i} Resolved endpoint: ${c(Y)}`),Y};var e0=($,U=!1)=>{if(U){for(let G of $.split("."))if(!e0(G))return!1;return!0}if(!d1($))return!1;if($.length<3||$.length>63)return!1;if($!==$.toLowerCase())return!1;if(u1($))return!1;return!0};var V8=($)=>{let U=$.split(":");if(U.length<6)return null;let[G,W,w,X,Z,...L]=U;if(G!=="arn"||W===""||w===""||L.join(":")==="")return null;let Y=L.map((z)=>z.split("/")).flat();return{partition:W,service:w,region:X,accountId:Z,resourceId:Y}};var H8={partitions:[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"aws-global":{description:"AWS Standard global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"AWS China global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"AWS GovCloud (US) global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"c2s.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"AWS ISO (US) global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"sc2s.sgov.gov",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"AWS ISOB (US) global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"cloud.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"csp.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{}}],version:"1.1"};var qQ=H8,bQ="",A8=($)=>{let{partitions:U}=qQ;for(let W of U){let{regions:w,outputs:X}=W;for(let[Z,L]of Object.entries(w))if(Z===$)return{...X,...L}}for(let W of U){let{regionRegex:w,outputs:X}=W;if(new RegExp(w).test($))return{...X}}let G=U.find((W)=>W.id==="aws");if(!G)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...G.outputs}};var E8=()=>bQ;var PQ={isVirtualHostableS3Bucket:e0,parseArn:V8,partition:A8};g1.aws=PQ;var $U="user-agent",D$="x-amz-user-agent",UU=" ",h$="/",T8=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,O8=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g,GU="-";var SQ=($)=>(U,G)=>async(W)=>{let{request:w}=W;if(!v.isInstance(w))return U(W);let{headers:X}=w,Z=G?.userAgent?.map(WU)||[],L=(await $.defaultUserAgentProvider()).map(WU),Y=$?.customUserAgent?.map(WU)||[],z=E8(),Q=(z?[z]:[]).concat([...L,...Z,...Y]).join(UU),F=[...L.filter((I)=>I.startsWith("aws-sdk-")),...Y].join(UU);if($.runtime!=="browser"){if(F)X[D$]=X[D$]?`${X[$U]} ${F}`:F;X[$U]=Q}else X[D$]=Q;return U({...W,request:w})},WU=($)=>{let U=$[0].split(h$).map((Z)=>Z.replace(T8,GU)).join(h$),G=$[1]?.replace(O8,GU),W=U.indexOf(h$),w=U.substring(0,W),X=U.substring(W+1);if(w==="api")X=X.toLowerCase();return[w,X,G].filter((Z)=>Z&&Z.length>0).reduce((Z,L,Y)=>{switch(Y){case 0:return L;case 1:return`${Z}/${L}`;default:return`${Z}#${L}`}},"")},kQ={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},dR=($)=>({applyToStack:(U)=>{U.add(SQ($),kQ)}});var x$=($)=>typeof $==="string"&&($.startsWith("fips-")||$.endsWith("-fips"));var wU=($)=>x$($)?["fips-aws-global","aws-fips"].includes($)?"us-east-1":$.replace(/fips-(dkr-|prod-)?|-fips/,""):$;var aR=($)=>{let{region:U,useFipsEndpoint:G}=$;if(!U)throw new Error("Region is missing");return{...$,region:async()=>{if(typeof U==="string")return wU(U);let W=await U();return wU(W)},useFipsEndpoint:async()=>{let W=typeof U==="string"?U:await U();if(x$(W))return!0;return typeof G!=="function"?Promise.resolve(!!G):G()}}};var O1=($,U,G)=>{if(!(U in $))return;if($[U]==="true")return!0;if($[U]==="false")return!1;throw new Error(`Cannot load ${G} "${U}". Expected "true" or "false", got ${$[U]}.`)};var e;(function($){$.ENV="env",$.CONFIG="shared config entry"})(e||(e={}));var DQ="AWS_USE_DUALSTACK_ENDPOINT",hQ="use_dualstack_endpoint";var LK={environmentVariableSelector:($)=>O1($,DQ,e.ENV),configFileSelector:($)=>O1($,hQ,e.CONFIG),default:!1};var xQ="AWS_USE_FIPS_ENDPOINT",vQ="use_fips_endpoint";var QK={environmentVariableSelector:($)=>O1($,xQ,e.ENV),configFileSelector:($)=>O1($,vQ,e.CONFIG),default:!1};var yQ=p(s(),1);var cQ=p(s(),1);var f8={environmentVariableSelector:($)=>$.AWS_REGION,configFileSelector:($)=>$.region,default:()=>{throw new Error("Region is missing")}},TK={preferredFile:"credentials"};var C8="content-length";function _Q($){return(U)=>async(G)=>{let W=G.request;if(v.isInstance(W)){let{body:w,headers:X}=W;if(w&&Object.keys(X).map((Z)=>Z.toLowerCase()).indexOf(C8)===-1)try{let Z=$(w);W.headers={...W.headers,[C8]:String(Z)}}catch(Z){}}return U({...G,request:W})}}var uQ={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},rK=($)=>({applyToStack:(U)=>{U.add(_Q($.bodyLengthChecker),uQ)}});var N8=($,U)=>(G)=>async(W)=>{let{response:w}=await G(W);try{let X=await U(w,$);return{response:w,output:X}}catch(X){if(Object.defineProperty(X,"$response",{value:w}),!("$metadata"in X)){if(X.message+="\n Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.",typeof X.$responseBodyText!=="undefined"){if(X.$response)X.$response.body=X.$responseBodyText}}throw X}};var j8=($,U)=>(G,W)=>async(w)=>{let X=W.endpointV2?.url&&$.urlParser?async()=>$.urlParser(W.endpointV2.url):$.endpoint;if(!X)throw new Error("No valid endpoint provider available.");let Z=await U(w.input,{...$,endpoint:X});return G({...w,request:Z})};var dQ={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},XU={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function UM($,U,G){return{applyToStack:(W)=>{W.add(N8($,G),dQ),W.add(j8($,U),XU)}}}var h8=p(s(),1);var q8=async($)=>{let U=$?.Bucket||"";if(typeof $.Bucket==="string")$.Bucket=U.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(mQ(U)){if($.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!lQ(U)||U.indexOf(".")!==-1&&!String($.Endpoint).startsWith("http:")||U.toLowerCase()!==U||U.length<3)$.ForcePathStyle=!0;if($.DisableMultiRegionAccessPoints)$.disableMultiRegionAccessPoints=!0,$.DisableMRAP=!0;return $},gQ=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,pQ=/(\d+\.){3}\d+/,sQ=/\.\./;var lQ=($)=>gQ.test($)&&!pQ.test($)&&!sQ.test($),mQ=($)=>{let[U,G,W,,,w]=$.split(":"),X=U==="arn"&&$.split(":").length>=6,Z=Boolean(X&&G&&W&&w);if(X&&!Z)throw new Error(`Invalid ARN: ${$} was an invalid ARN.`);return Z};var b8=($,U,G)=>{let W=async()=>{let w=G[$]??G[U];if(typeof w==="function")return w();return w};if($==="credentialScope"||U==="CredentialScope")return async()=>{let w=typeof G.credentials==="function"?await G.credentials():G.credentials;return w?.credentialScope??w?.CredentialScope};if($==="accountId"||U==="AccountId")return async()=>{let w=typeof G.credentials==="function"?await G.credentials():G.credentials;return w?.accountId??w?.AccountId};if($==="endpoint"||U==="endpoint")return async()=>{let w=await W();if(w&&typeof w==="object"){if("url"in w)return w.url.href;if("hostname"in w){let{protocol:X,hostname:Z,port:L,path:Y}=w;return`${X}//${Z}${L?":"+L:""}${Y}`}}return w};return W};var P8="AWS_ENDPOINT_URL",S8="endpoint_url",k8=($)=>({environmentVariableSelector:(U)=>{let G=$.split(" ").map((X)=>X.toUpperCase()),W=U[[P8,...G].join("_")];if(W)return W;let w=U[P8];if(w)return w;return},configFileSelector:(U,G)=>{if(G&&U.services){let w=G[["services",U.services].join(ZU)];if(w){let X=$.split(" ").map((L)=>L.toLowerCase()),Z=w[[X.join("_"),S8].join(ZU)];if(Z)return Z}}let W=U[S8];if(W)return W;return},default:void 0});var v$=async($)=>Y1(k8($??""))();var y$=($)=>{if(typeof $==="object"){if("url"in $)return LU($.url);return $}return LU($)};var D8=async($,U,G,W)=>{if(!G.endpoint){let Z;if(G.serviceConfiguredEndpoint)Z=await G.serviceConfiguredEndpoint();else Z=await v$(G.serviceId);if(Z)G.endpoint=()=>Promise.resolve(y$(Z))}let w=await nQ($,U,G);if(typeof G.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return G.endpointProvider(w,W)},nQ=async($,U,G)=>{let W={},w=U?.getEndpointParameterInstructions?.()||{};for(let[X,Z]of Object.entries(w))switch(Z.type){case"staticContextParams":W[X]=Z.value;break;case"contextParams":W[X]=$[Z.name];break;case"clientContextParams":case"builtInParams":W[X]=await b8(Z.name,X,G)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(Z))}if(Object.keys(w).length===0)Object.assign(W,G);if(String(G.serviceId).toLowerCase()==="s3")await q8(W);return W};var x8=({config:$,instructions:U})=>{return(G,W)=>async(w)=>{let X=await D8(w.input,{getEndpointParameterInstructions(){return U}},{...$},W);W.endpointV2=X,W.authSchemes=X.properties?.authSchemes;let Z=W.authSchemes?.[0];if(Z){W.signing_region=Z.signingRegion,W.signing_service=Z.signingName;let Y=h8.getSmithyContext(W)?.selectedHttpAuthScheme?.httpAuthOption;if(Y)Y.signingProperties=Object.assign(Y.signingProperties||{},{signing_region:Z.signingRegion,signingRegion:Z.signingRegion,signing_service:Z.signingName,signingName:Z.signingName,signingRegionSet:Z.signingRegionSet},Z.properties)}return G({...w})}};var iQ={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:XU.name},jM=($,U)=>({applyToStack:(G)=>{G.addRelativeTo(x8({config:$,instructions:U}),iQ)}});var c$=p(s(),1);var SM=($)=>{let U=$.tls??!0,{endpoint:G}=$,W=G!=null?async()=>y$(await c$.normalizeProvider(G)()):void 0,X={...$,endpoint:W,tls:U,isCustomEndpoint:!!G,useDualstackEndpoint:c$.normalizeProvider($.useDualstackEndpoint??!1),useFipsEndpoint:c$.normalizeProvider($.useFipsEndpoint??!1)},Z=void 0;return X.serviceConfiguredEndpoint=async()=>{if($.serviceId&&!Z)Z=v$($.serviceId);return Z},X};var RU=p(s(),1);var _;(function($){$.STANDARD="standard",$.ADAPTIVE="adaptive"})(_||(_={}));var z1=3,v8=_.STANDARD;var y8=p(X1(),1);class _${constructor($){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=$?.beta??0.7,this.minCapacity=$?.minCapacity??1,this.minFillRate=$?.minFillRate??0.5,this.scaleConstant=$?.scaleConstant??0.4,this.smooth=$?.smooth??0.8;let U=this.getCurrentTimeInSeconds();this.lastThrottleTime=U,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($){if(!this.enabled)return;if(this.refillTokenBucket(),$>this.currentCapacity){let U=($-this.currentCapacity)/this.fillRate*1000;await new Promise((G)=>setTimeout(G,U))}this.currentCapacity=this.currentCapacity-$}refillTokenBucket(){let $=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=$;return}let U=($-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+U),this.lastTimestamp=$}updateClientSendingRate($){let U;if(this.updateMeasuredRate(),y8.isThrottlingError($)){let W=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=W,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),U=this.cubicThrottle(W),this.enableTokenBucket()}else this.calculateTimeWindow(),U=this.cubicSuccess(this.getCurrentTimeInSeconds());let G=Math.min(U,2*this.measuredTxRate);this.updateTokenBucketRate(G)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle($){return this.getPrecise($*this.beta)}cubicSuccess($){return this.getPrecise(this.scaleConstant*Math.pow($-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate($){this.refillTokenBucket(),this.fillRate=Math.max($,this.minFillRate),this.maxCapacity=Math.max($,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){let $=this.getCurrentTimeInSeconds(),U=Math.floor($*2)/2;if(this.requestCount++,U>this.lastTxRateBucket){let G=this.requestCount/(U-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(G*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=U}}getPrecise($){return parseFloat($.toFixed(8))}}var Q1=100,p1=20000,YU=500,u$=500,zU=5,QU=10,FU=1,d$="amz-sdk-invocation-id",g$="amz-sdk-request";var c8=()=>{let $=Q1;return{computeNextBackoffDelay:(W)=>{return Math.floor(Math.min(p1,Math.random()*2**W*$))},setDelayBase:(W)=>{$=W}}};var JU=({retryDelay:$,retryCount:U,retryCost:G})=>{return{getRetryCount:()=>U,getRetryDelay:()=>Math.min(p1,$),getRetryCost:()=>G}};class f1{constructor($){this.maxAttempts=$,this.mode=_.STANDARD,this.capacity=u$,this.retryBackoffStrategy=c8(),this.maxAttemptsProvider=typeof $==="function"?$:async()=>$}async acquireInitialRetryToken($){return JU({retryDelay:Q1,retryCount:0})}async refreshRetryTokenForRetry($,U){let G=await this.getMaxAttempts();if(this.shouldRetry($,U,G)){let W=U.errorType;this.retryBackoffStrategy.setDelayBase(W==="THROTTLING"?YU:Q1);let w=this.retryBackoffStrategy.computeNextBackoffDelay($.getRetryCount()),X=U.retryAfterHint?Math.max(U.retryAfterHint.getTime()-Date.now()||0,w):w,Z=this.getCapacityCost(W);return this.capacity-=Z,JU({retryDelay:X,retryCount:$.getRetryCount()+1,retryCost:Z})}throw new Error("No retry token available")}recordSuccess($){this.capacity=Math.max(u$,this.capacity+($.getRetryCost()??FU))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch($){return console.warn(`Max attempts provider could not resolve. Using default of ${z1}`),z1}}shouldRetry($,U,G){return $.getRetryCount()+1<G&&this.capacity>=this.getCapacityCost(U.errorType)&&this.isRetryableError(U.errorType)}getCapacityCost($){return $==="TRANSIENT"?QU:zU}isRetryableError($){return $==="THROTTLING"||$==="TRANSIENT"}}class IU{constructor($,U){this.maxAttemptsProvider=$,this.mode=_.ADAPTIVE;let{rateLimiter:G}=U??{};this.rateLimiter=G??new _$,this.standardRetryStrategy=new f1($)}async acquireInitialRetryToken($){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken($)}async refreshRetryTokenForRetry($,U){return this.rateLimiter.updateClientSendingRate(U),this.standardRetryStrategy.refreshRetryTokenForRetry($,U)}recordSuccess($){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess($)}}var _8="AWS_MAX_ATTEMPTS",u8="max_attempts",MB={environmentVariableSelector:($)=>{let U=$[_8];if(!U)return;let G=parseInt(U);if(Number.isNaN(G))throw new Error(`Environment variable ${_8} mast be a number, got "${U}"`);return G},configFileSelector:($)=>{let U=$[u8];if(!U)return;let G=parseInt(U);if(Number.isNaN(G))throw new Error(`Shared config file entry ${u8} mast be a number, got "${U}"`);return G},default:z1},BB=($)=>{let{retryStrategy:U}=$,G=RU.normalizeProvider($.maxAttempts??z1);return{...$,maxAttempts:G,retryStrategy:async()=>{if(U)return U;if(await RU.normalizeProvider($.retryMode)()===_.ADAPTIVE)return new IU(G);return new f1(G)}}},rQ="AWS_RETRY_MODE",oQ="retry_mode",VB={environmentVariableSelector:($)=>$[rQ],configFileSelector:($)=>$[oQ],default:v8};var C1=p(X1(),1);import{Readable as aQ}from"stream";var d8=($)=>$?.body instanceof aQ||typeof ReadableStream!=="undefined"&&$?.body instanceof ReadableStream;var KU=($)=>{if($ instanceof Error)return $;if($ instanceof Object)return Object.assign(new Error,$);if(typeof $==="string")return new Error($);return new Error(`AWS SDK error wrapper for ${$}`)};var tQ=($)=>(U,G)=>async(W)=>{let w=await $.retryStrategy(),X=await $.maxAttempts();if(eQ(w)){w=w;let Z=await w.acquireInitialRetryToken(G.partition_id),L=new Error,Y=0,z=0,{request:Q}=W,F=v.isInstance(Q);if(F)Q.headers[d$]=g8();while(!0)try{if(F)Q.headers[g$]=`attempt=${Y+1}; max=${X}`;let{response:I,output:R}=await U(W);return w.recordSuccess(Z),R.$metadata.attempts=Y+1,R.$metadata.totalRetryDelay=z,{response:I,output:R}}catch(I){let R=$7(I);if(L=KU(I),F&&d8(Q))throw(G.logger instanceof p8?console:G.logger)?.warn("An error was encountered in a non-retryable streaming request."),L;try{Z=await w.refreshRetryTokenForRetry(Z,R)}catch(B){if(!L.$metadata)L.$metadata={};throw L.$metadata.attempts=Y+1,L.$metadata.totalRetryDelay=z,L}Y=Z.getRetryCount();let K=Z.getRetryDelay();z+=K,await new Promise((B)=>setTimeout(B,K))}}else{if(w=w,w?.mode)G.userAgent=[...G.userAgent||[],["cfg/retry-mode",w.mode]];return w.retry(U,W)}},eQ=($)=>typeof $.acquireInitialRetryToken!=="undefined"&&typeof $.refreshRetryTokenForRetry!=="undefined"&&typeof $.recordSuccess!=="undefined",$7=($)=>{let U={error:$,errorType:U7($)},G=W7($.$response);if(G)U.retryAfterHint=G;return U},U7=($)=>{if(C1.isThrottlingError($))return"THROTTLING";if(C1.isTransientError($))return"TRANSIENT";if(C1.isServerError($))return"SERVER_ERROR";return"CLIENT_ERROR"},G7={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},bB=($)=>({applyToStack:(U)=>{U.add(tQ($),G7)}}),W7=($)=>{if(!MU.isInstance($))return;let U=Object.keys($.headers).find((X)=>X.toLowerCase()==="retry-after");if(!U)return;let G=$.headers[U],W=Number(G);if(!Number.isNaN(W))return new Date(W*1000);return new Date(G)};var w7=p(X1(),1);var p$=p(X1(),1);import{platform as iF,release as rF}from"os";import{env as QX,versions as oF}from"process";var SU={isCrtAvailable:!1};var zX=()=>{if(SU.isCrtAvailable)return["md/crt-avail"];return null};var aF="AWS_SDK_UA_APP_ID",tF="sdk-ua-app-id",SV=({serviceId:$,clientVersion:U})=>{let G=[["aws-sdk-js",U],["ua","2.0"],[`os/${iF()}`,rF()],["lang/js"],["md/nodejs",`${oF.node}`]],W=zX();if(W)G.push(W);if($)G.push([`api/${$}`,U]);if(QX.AWS_EXECUTION_ENV)G.push([`exec-env/${QX.AWS_EXECUTION_ENV}`]);let w=Y1({environmentVariableSelector:(Z)=>Z[aF],configFileSelector:(Z)=>Z[tF],default:void 0})(),X=void 0;return async()=>{if(!X){let Z=await w;X=Z?[...G,[`app/${Z}`]]:[...G]}return X}};import{Buffer as eF}from"buffer";import{createHash as $J,createHmac as UJ}from"crypto";class GJ{constructor($,U){this.algorithmIdentifier=$,this.secret=U,this.reset()}update($,U){this.hash.update(IX(FX($,U)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?UJ(this.algorithmIdentifier,FX(this.secret)):$J(this.algorithmIdentifier)}}function FX($,U){if(eF.isBuffer($))return $;if(typeof $==="string")return JX($,U);if(ArrayBuffer.isView($))return kU($.buffer,$.byteOffset,$.byteLength);return kU($)}import{fstatSync as WJ,lstatSync as wJ}from"fs";var uV=($)=>{if(!$)return 0;if(typeof $==="string")return Buffer.byteLength($);else if(typeof $.byteLength==="number")return $.byteLength;else if(typeof $.size==="number")return $.size;else if(typeof $.start==="number"&&typeof $.end==="number")return $.end+1-$.start;else if(typeof $.path==="string"||Buffer.isBuffer($.path))return wJ($.path).size;else if(typeof $.fd==="number")return WJ($.fd).size;throw new Error(`Body Length computation failed for ${$}`)};var RX="AWS_EXECUTION_ENV",DU="AWS_REGION",hU="AWS_DEFAULT_REGION",KX="AWS_EC2_METADATA_DISABLED",MX=["in-region","cross-region","mobile","standard","legacy"],BX="/latest/meta-data/placement/region";var VX={environmentVariableSelector:($)=>{return $.AWS_DEFAULTS_MODE},configFileSelector:($)=>{return $.defaults_mode},default:"legacy"};var aV=({region:$=Y1(f8),defaultsMode:U=Y1(VX)}={})=>HX(async()=>{let G=typeof U==="function"?await U():U;switch(G?.toLowerCase()){case"auto":return XJ($);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(G?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${MX.join(", ")}, got ${G}`)}}),XJ=async($)=>{if($){let U=typeof $==="function"?await $():$,G=await ZJ();if(!G)return"standard";if(U===G)return"in-region";else return"cross-region"}return"standard"},ZJ=async()=>{if(process.env[RX]&&(process.env[DU]||process.env[hU]))return process.env[DU]??process.env[hU];if(!process.env[KX])try{let{getInstanceMetadataEndpoint:$,httpRequest:U}=await import("./chunk-yaqp7fex.js"),G=await $();return(await U({...G,path:BX})).toString()}catch($){}};var UH=($)=>{let U=async()=>{if($.region===void 0)throw new Error("Region is missing from runtimeConfig");let G=$.region;if(typeof G==="string")return G;return G()};return{setRegion(G){U=G},region(){return U}}},GH=($)=>{return{region:$.region()}};export{s as O,zJ as P,QJ as Q,JJ as R,BJ as S,O1 as T,e as U,o0 as V,ZI as W,OQ as X,g1 as Y,NQ as Z,PQ as _,dR as $,LK as aa,QK as ba,f8 as ca,TK as da,aR as ea,rK as fa,nQ as ga,UM as ha,jM as ia,SM as ja,v8 as ka,MB as la,BB as ma,VB as na,bB as oa,nF as pa,SV as qa,GJ as ra,uV as sa,aV as ta,UH as ua,GH as va};
|
|
19
|
-
|
|
20
|
-
//# debugId=3BF9C426B9308C0E64756E2164756E21
|
package/dist/chunk-bt35atmf.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{N as Ce}from"./chunk-ckn0v6nd.js";import{$ as ar,O as Mr,P as nr,Q as or,R as dr,S as cr,V as N,W as tr,X as $e,Y as Ie,Z as Re,_ as Pe,aa as Ae,ba as Ke,ca as Me,da as Be,ea as mr,fa as wr,ha as S,ia as $,ja as kr,ka as Le,la as Qe,ma as vr,na as Xe,oa as Er,pa as U,qa as Ye,ra as Ze,sa as He,ta as Ne,ua as ir,va as lr}from"./chunk-9we58rz2.js";import{wa as R,xa as qe}from"./chunk-wthx7151.js";import{$a as b,Fa as be,Ha as je,Ia as Fe,Ka as yr,La as De,Ma as Ue,Pa as Je,Qa as Ve,Wa as E,Xa as t,Ya as Vr,_a as p,ab as j,bb as F,cb as h,jb as Sr,kb as a,lb as jr,mb as We,nb as fe,ob as rr,pb as sr,sb as c,tb as o,vb as I,ya as ue,za as er}from"./chunk-3saf3cee.js";import"./chunk-ac7dhq1c.js";import"./chunk-srsjrh5y.js";import"./chunk-9em80ypy.js";import"./chunk-740bx4ar.js";import"./chunk-7v15p9nn.js";import"./chunk-hnyegpzf.js";import{Vb as k}from"./chunk-rr5j1686.js";var P=k(N(),1);var re=k(U(),1),q=k(Mr(),1),se=async(e,s,r)=>{return{operation:q.getSmithyContext(s).operation,region:await q.normalizeProvider(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};function Br(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:e.region},propertiesExtractor:(s,r)=>({signingProperties:{config:s,context:r}})}}function H(e){return{schemeId:"smithy.api#noAuth"}}var ie=(e)=>{let s=[];switch(e.operation){case"CreateToken":{s.push(H(e));break}case"RegisterClient":{s.push(H(e));break}case"StartDeviceAuthorization":{s.push(H(e));break}default:s.push(Br(e))}return s},le=(e)=>{return{...re.resolveAwsSdkSigV4Config(e)}};var he=(e)=>{return{...e,useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"}},v={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var ne={name:"@aws-sdk/client-sso-oidc",description:"AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native",version:"3.654.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-sso-oidc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sso-oidc"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.654.0","@aws-sdk/credential-provider-node":"3.654.0","@aws-sdk/middleware-host-header":"3.654.0","@aws-sdk/middleware-logger":"3.654.0","@aws-sdk/middleware-recursion-detection":"3.654.0","@aws-sdk/middleware-user-agent":"3.654.0","@aws-sdk/region-config-resolver":"3.654.0","@aws-sdk/types":"3.654.0","@aws-sdk/util-endpoints":"3.654.0","@aws-sdk/util-user-agent-browser":"3.654.0","@aws-sdk/util-user-agent-node":"3.654.0","@smithy/config-resolver":"^3.0.8","@smithy/core":"^2.4.3","@smithy/fetch-http-handler":"^3.2.7","@smithy/hash-node":"^3.0.6","@smithy/invalid-dependency":"^3.0.6","@smithy/middleware-content-length":"^3.0.8","@smithy/middleware-endpoint":"^3.1.3","@smithy/middleware-retry":"^3.0.18","@smithy/middleware-serde":"^3.0.6","@smithy/middleware-stack":"^3.0.6","@smithy/node-config-provider":"^3.1.7","@smithy/node-http-handler":"^3.2.2","@smithy/protocol-http":"^4.1.3","@smithy/smithy-client":"^3.3.2","@smithy/types":"^3.4.2","@smithy/url-parser":"^3.0.6","@smithy/util-base64":"^3.0.0","@smithy/util-body-length-browser":"^3.0.0","@smithy/util-body-length-node":"^3.0.0","@smithy/util-defaults-mode-browser":"^3.0.18","@smithy/util-defaults-mode-node":"^3.0.18","@smithy/util-endpoints":"^2.1.2","@smithy/util-middleware":"^3.0.6","@smithy/util-retry":"^3.0.6","@smithy/util-utf8":"^3.0.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node16":"16.1.3","@types/node":"^16.18.96",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~4.9.5"},engines:{node:">=16.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",peerDependencies:{"@aws-sdk/client-sts":"^3.654.0"},browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso-oidc",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sso-oidc"}};var _e=k(U(),1);var xe=k(U(),1),ze=k(N(),1);var oe={["required"]:!1,type:"String"},de={["required"]:!0,default:!1,type:"Boolean"},ce={["ref"]:"Endpoint"},ke={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},ve={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},m={},ye={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},Ee={["ref"]:"PartitionResult"},te={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[Ee,"supportsDualStack"]}]},ae=[ke],me=[ve],we=[{["ref"]:"Region"}],Qr={version:"1.0",parameters:{Region:oe,UseDualStack:de,UseFIPS:de,Endpoint:oe},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[ce]}],rules:[{conditions:ae,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:me,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:ce,properties:m,headers:m},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:we}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:we,assign:"PartitionResult"}],rules:[{conditions:[ke,ve],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,ye]},te],rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:"endpoint"}],type:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}],type:"tree"},{conditions:ae,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[ye,!0]}],rules:[{conditions:[{["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[Ee,"name"]},"aws-us-gov"]}],endpoint:{url:"https://oidc.{Region}.amazonaws.com",properties:m,headers:m},type:"endpoint"},{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:"endpoint"}],type:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",type:"error"}],type:"tree"},{conditions:me,rules:[{conditions:[te],rules:[{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:"endpoint"}],type:"tree"},{error:"DualStack is enabled but this partition does not support DualStack",type:"error"}],type:"tree"},{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:"endpoint"}],type:"tree"}],type:"tree"},{error:"Invalid Configuration: Missing Region",type:"error"}]},Se=Qr;var Xr=new $e({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Te=(e,s={})=>{return Xr.get(e,()=>Re(Se,{endpointParams:e,logger:s.logger}))};Ie.aws=Pe;var Ge=(e)=>{return{apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??De,base64Encoder:e?.base64Encoder??Ue,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Te,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??ie,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(s)=>s.getIdentityProvider("aws.auth#sigv4"),signer:new xe.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(s)=>s.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new ze.NoAuthSigner}],logger:e?.logger??new Fe,serviceId:e?.serviceId??"SSO OIDC",urlParser:e?.urlParser??qe,utf8Decoder:e?.utf8Decoder??be,utf8Encoder:e?.utf8Encoder??je}};var pe=(e)=>{fe(process.version);let s=Ne(e),r=()=>s().then(We),i=Ge(e);return _e.emitWarningIfUnsupportedVersion(process.version),{...i,...e,runtime:"node",defaultsMode:s,bodyLengthChecker:e?.bodyLengthChecker??He,credentialDefaultProvider:e?.credentialDefaultProvider??Ce,defaultUserAgentProvider:e?.defaultUserAgentProvider??Ye({serviceId:i.serviceId,clientVersion:ne.version}),maxAttempts:e?.maxAttempts??R(Qe),region:e?.region??R(Me,Be),requestHandler:Je.create(e?.requestHandler??r),retryMode:e?.retryMode??R({...Xe,default:async()=>(await r()).retryMode||Le}),sha256:e?.sha256??Ze.bind(null,"sha256"),streamCollector:e?.streamCollector??Ve,useDualstackEndpoint:e?.useDualstackEndpoint??R(Ae),useFipsEndpoint:e?.useFipsEndpoint??R(Ke)}};var ge=(e)=>{let{httpAuthSchemes:s,httpAuthSchemeProvider:r,credentials:i}=e;return{setHttpAuthScheme(l){let n=s.findIndex((T)=>T.schemeId===l.schemeId);if(n===-1)s.push(l);else s.splice(n,1,l)},httpAuthSchemes(){return s},setHttpAuthSchemeProvider(l){r=l},httpAuthSchemeProvider(){return r},setCredentials(l){i=l},credentials(){return i}}},Oe=(e)=>{return{httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}};var x=(e)=>e,hr=(e,s)=>{let r={...x(ir(e)),...x(rr(e)),...x(ue(e)),...x(ge(e))};return s.forEach((i)=>i.configure(r)),{...e,...lr(r),...sr(r),...er(r),...Oe(r)}};class _ extends yr{constructor(...[e]){let s=pe(e||{}),r=he(s),i=tr(r),l=vr(i),n=mr(l),T=nr(n),fr=kr(T),Ar=le(fr),ee=hr(Ar,e?.extensions||[]);super(ee);this.config=ee,this.middlewareStack.use(ar(this.config)),this.middlewareStack.use(Er(this.config)),this.middlewareStack.use(wr(this.config)),this.middlewareStack.use(or(this.config)),this.middlewareStack.use(dr(this.config)),this.middlewareStack.use(cr(this.config)),this.middlewareStack.use(P.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:se,identityProviderConfigProvider:async(Kr)=>new P.DefaultIdentityProviderConfig({"aws.auth#sigv4":Kr.credentials})})),this.middlewareStack.use(P.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class d extends Sr{constructor(e){super(e);Object.setPrototypeOf(this,d.prototype)}}class z extends d{constructor(e){super({name:"AccessDeniedException",$fault:"client",...e});this.name="AccessDeniedException",this.$fault="client",Object.setPrototypeOf(this,z.prototype),this.error=e.error,this.error_description=e.error_description}}class G extends d{constructor(e){super({name:"AuthorizationPendingException",$fault:"client",...e});this.name="AuthorizationPendingException",this.$fault="client",Object.setPrototypeOf(this,G.prototype),this.error=e.error,this.error_description=e.error_description}}class J extends d{constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e});this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,J.prototype),this.error=e.error,this.error_description=e.error_description}}class V extends d{constructor(e){super({name:"InternalServerException",$fault:"server",...e});this.name="InternalServerException",this.$fault="server",Object.setPrototypeOf(this,V.prototype),this.error=e.error,this.error_description=e.error_description}}class W extends d{constructor(e){super({name:"InvalidClientException",$fault:"client",...e});this.name="InvalidClientException",this.$fault="client",Object.setPrototypeOf(this,W.prototype),this.error=e.error,this.error_description=e.error_description}}class f extends d{constructor(e){super({name:"InvalidGrantException",$fault:"client",...e});this.name="InvalidGrantException",this.$fault="client",Object.setPrototypeOf(this,f.prototype),this.error=e.error,this.error_description=e.error_description}}class A extends d{constructor(e){super({name:"InvalidRequestException",$fault:"client",...e});this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,A.prototype),this.error=e.error,this.error_description=e.error_description}}class K extends d{constructor(e){super({name:"InvalidScopeException",$fault:"client",...e});this.name="InvalidScopeException",this.$fault="client",Object.setPrototypeOf(this,K.prototype),this.error=e.error,this.error_description=e.error_description}}class M extends d{constructor(e){super({name:"SlowDownException",$fault:"client",...e});this.name="SlowDownException",this.$fault="client",Object.setPrototypeOf(this,M.prototype),this.error=e.error,this.error_description=e.error_description}}class B extends d{constructor(e){super({name:"UnauthorizedClientException",$fault:"client",...e});this.name="UnauthorizedClientException",this.$fault="client",Object.setPrototypeOf(this,B.prototype),this.error=e.error,this.error_description=e.error_description}}class L extends d{constructor(e){super({name:"UnsupportedGrantTypeException",$fault:"client",...e});this.name="UnsupportedGrantTypeException",this.$fault="client",Object.setPrototypeOf(this,L.prototype),this.error=e.error,this.error_description=e.error_description}}class Q extends d{constructor(e){super({name:"InvalidRequestRegionException",$fault:"client",...e});this.name="InvalidRequestRegionException",this.$fault="client",Object.setPrototypeOf(this,Q.prototype),this.error=e.error,this.error_description=e.error_description,this.endpoint=e.endpoint,this.region=e.region}}class X extends d{constructor(e){super({name:"InvalidClientMetadataException",$fault:"client",...e});this.name="InvalidClientMetadataException",this.$fault="client",Object.setPrototypeOf(this,X.prototype),this.error=e.error,this.error_description=e.error_description}}class Y extends d{constructor(e){super({name:"InvalidRedirectUriException",$fault:"client",...e});this.name="InvalidRedirectUriException",this.$fault="client",Object.setPrototypeOf(this,Y.prototype),this.error=e.error,this.error_description=e.error_description}}var $r=(e)=>({...e,...e.clientSecret&&{clientSecret:t},...e.refreshToken&&{refreshToken:t},...e.codeVerifier&&{codeVerifier:t}}),Ir=(e)=>({...e,...e.accessToken&&{accessToken:t},...e.refreshToken&&{refreshToken:t},...e.idToken&&{idToken:t}}),Rr=(e)=>({...e,...e.refreshToken&&{refreshToken:t},...e.assertion&&{assertion:t},...e.subjectToken&&{subjectToken:t},...e.codeVerifier&&{codeVerifier:t}}),Pr=(e)=>({...e,...e.accessToken&&{accessToken:t},...e.refreshToken&&{refreshToken:t},...e.idToken&&{idToken:t}}),Tr=(e)=>({...e,...e.clientSecret&&{clientSecret:t}}),br=(e)=>({...e,...e.clientSecret&&{clientSecret:t}});var w=k(U(),1),D=k(N(),1);var Fr=async(e,s)=>{let r=D.requestBuilder(e,s),i={"content-type":"application/json"};r.bp("/token");let l;return l=JSON.stringify(o(e,{clientId:[],clientSecret:[],code:[],codeVerifier:[],deviceCode:[],grantType:[],redirectUri:[],refreshToken:[],scope:(n)=>I(n)})),r.m("POST").h(i).b(l),r.build()},Dr=async(e,s)=>{let r=D.requestBuilder(e,s),i={"content-type":"application/json"};r.bp("/token");let l=c({[hs]:[,"t"]}),n;return n=JSON.stringify(o(e,{assertion:[],clientId:[],code:[],codeVerifier:[],grantType:[],redirectUri:[],refreshToken:[],requestedTokenType:[],scope:(T)=>I(T),subjectToken:[],subjectTokenType:[]})),r.m("POST").h(i).q(l).b(n),r.build()},Ur=async(e,s)=>{let r=D.requestBuilder(e,s),i={"content-type":"application/json"};r.bp("/client/register");let l;return l=JSON.stringify(o(e,{clientName:[],clientType:[],entitledApplicationArn:[],grantTypes:(n)=>I(n),issuerUrl:[],redirectUris:(n)=>I(n),scopes:(n)=>I(n)})),r.m("POST").h(i).b(l),r.build()},qr=async(e,s)=>{let r=D.requestBuilder(e,s),i={"content-type":"application/json"};r.bp("/device_authorization");let l;return l=JSON.stringify(o(e,{clientId:[],clientSecret:[],startUrl:[]})),r.m("POST").h(i).b(l),r.build()},xr=async(e,s)=>{if(e.statusCode!==200&&e.statusCode>=300)return Z(e,s);let r=c({$metadata:y(e)}),i=j(F(await w.parseJsonBody(e.body,s)),"body"),l=o(i,{accessToken:h,expiresIn:b,idToken:h,refreshToken:h,tokenType:h});return Object.assign(r,l),r},zr=async(e,s)=>{if(e.statusCode!==200&&e.statusCode>=300)return Z(e,s);let r=c({$metadata:y(e)}),i=j(F(await w.parseJsonBody(e.body,s)),"body"),l=o(i,{accessToken:h,expiresIn:b,idToken:h,issuedTokenType:h,refreshToken:h,scope:I,tokenType:h});return Object.assign(r,l),r},Gr=async(e,s)=>{if(e.statusCode!==200&&e.statusCode>=300)return Z(e,s);let r=c({$metadata:y(e)}),i=j(F(await w.parseJsonBody(e.body,s)),"body"),l=o(i,{authorizationEndpoint:h,clientId:h,clientIdIssuedAt:p,clientSecret:h,clientSecretExpiresAt:p,tokenEndpoint:h});return Object.assign(r,l),r},Jr=async(e,s)=>{if(e.statusCode!==200&&e.statusCode>=300)return Z(e,s);let r=c({$metadata:y(e)}),i=j(F(await w.parseJsonBody(e.body,s)),"body"),l=o(i,{deviceCode:h,expiresIn:b,interval:b,userCode:h,verificationUri:h,verificationUriComplete:h});return Object.assign(r,l),r},Z=async(e,s)=>{let r={...e,body:await w.parseJsonErrorBody(e.body,s)},i=w.loadRestJsonErrorCode(e,r.body);switch(i){case"AccessDeniedException":case"com.amazonaws.ssooidc#AccessDeniedException":throw await Zr(r,s);case"AuthorizationPendingException":case"com.amazonaws.ssooidc#AuthorizationPendingException":throw await Hr(r,s);case"ExpiredTokenException":case"com.amazonaws.ssooidc#ExpiredTokenException":throw await Nr(r,s);case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await _r(r,s);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await pr(r,s);case"InvalidGrantException":case"com.amazonaws.ssooidc#InvalidGrantException":throw await gr(r,s);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await ur(r,s);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await rs(r,s);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await ss(r,s);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await is(r,s);case"UnsupportedGrantTypeException":case"com.amazonaws.ssooidc#UnsupportedGrantTypeException":throw await ls(r,s);case"InvalidRequestRegionException":case"com.amazonaws.ssooidc#InvalidRequestRegionException":throw await es(r,s);case"InvalidClientMetadataException":case"com.amazonaws.ssooidc#InvalidClientMetadataException":throw await Cr(r,s);case"InvalidRedirectUriException":case"com.amazonaws.ssooidc#InvalidRedirectUriException":throw await Or(r,s);default:let l=r.body;return Yr({output:e,parsedBody:l,errorCode:i})}},Yr=jr(d),Zr=async(e,s)=>{let r=c({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);let n=new z({$metadata:y(e),...r});return a(n,e.body)},Hr=async(e,s)=>{let r=c({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);let n=new G({$metadata:y(e),...r});return a(n,e.body)},Nr=async(e,s)=>{let r=c({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);let n=new J({$metadata:y(e),...r});return a(n,e.body)},_r=async(e,s)=>{let r=c({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);let n=new V({$metadata:y(e),...r});return a(n,e.body)},pr=async(e,s)=>{let r=c({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);let n=new W({$metadata:y(e),...r});return a(n,e.body)},Cr=async(e,s)=>{let r=c({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);let n=new X({$metadata:y(e),...r});return a(n,e.body)},gr=async(e,s)=>{let r=c({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);let n=new f({$metadata:y(e),...r});return a(n,e.body)},Or=async(e,s)=>{let r=c({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);let n=new Y({$metadata:y(e),...r});return a(n,e.body)},ur=async(e,s)=>{let r=c({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);let n=new A({$metadata:y(e),...r});return a(n,e.body)},es=async(e,s)=>{let r=c({}),i=e.body,l=o(i,{endpoint:h,error:h,error_description:h,region:h});Object.assign(r,l);let n=new Q({$metadata:y(e),...r});return a(n,e.body)},rs=async(e,s)=>{let r=c({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);let n=new K({$metadata:y(e),...r});return a(n,e.body)},ss=async(e,s)=>{let r=c({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);let n=new M({$metadata:y(e),...r});return a(n,e.body)},is=async(e,s)=>{let r=c({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);let n=new B({$metadata:y(e),...r});return a(n,e.body)},ls=async(e,s)=>{let r=c({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);let n=new L({$metadata:y(e),...r});return a(n,e.body)},y=(e)=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]});var hs="aws_iam";class C extends E.classBuilder().ep(v).m(function(e,s,r,i){return[S(r,this.serialize,this.deserialize),$(r,e.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","CreateToken",{}).n("SSOOIDCClient","CreateTokenCommand").f($r,Ir).ser(Fr).de(xr).build(){}class g extends E.classBuilder().ep(v).m(function(e,s,r,i){return[S(r,this.serialize,this.deserialize),$(r,e.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","CreateTokenWithIAM",{}).n("SSOOIDCClient","CreateTokenWithIAMCommand").f(Rr,Pr).ser(Dr).de(zr).build(){}class O extends E.classBuilder().ep(v).m(function(e,s,r,i){return[S(r,this.serialize,this.deserialize),$(r,e.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","RegisterClient",{}).n("SSOOIDCClient","RegisterClientCommand").f(void 0,Tr).ser(Ur).de(Gr).build(){}class u extends E.classBuilder().ep(v).m(function(e,s,r,i){return[S(r,this.serialize,this.deserialize),$(r,e.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","StartDeviceAuthorization",{}).n("SSOOIDCClient","StartDeviceAuthorizationCommand").f(br,void 0).ser(qr).de(Jr).build(){}var ns={CreateTokenCommand:C,CreateTokenWithIAMCommand:g,RegisterClientCommand:O,StartDeviceAuthorizationCommand:u};class Wr extends _{}Vr(ns,Wr);export{yr as __Client,L as UnsupportedGrantTypeException,B as UnauthorizedClientException,br as StartDeviceAuthorizationRequestFilterSensitiveLog,u as StartDeviceAuthorizationCommand,M as SlowDownException,d as SSOOIDCServiceException,_ as SSOOIDCClient,Wr as SSOOIDC,Tr as RegisterClientResponseFilterSensitiveLog,O as RegisterClientCommand,K as InvalidScopeException,Q as InvalidRequestRegionException,A as InvalidRequestException,Y as InvalidRedirectUriException,f as InvalidGrantException,X as InvalidClientMetadataException,W as InvalidClientException,V as InternalServerException,J as ExpiredTokenException,Pr as CreateTokenWithIAMResponseFilterSensitiveLog,Rr as CreateTokenWithIAMRequestFilterSensitiveLog,g as CreateTokenWithIAMCommand,Ir as CreateTokenResponseFilterSensitiveLog,$r as CreateTokenRequestFilterSensitiveLog,C as CreateTokenCommand,G as AuthorizationPendingException,z as AccessDeniedException,E as $Command};
|
|
3
|
-
|
|
4
|
-
//# debugId=268ADA1498C3E12A64756E2164756E21
|