gemi 0.4.73 → 0.4.74

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.
Files changed (71) hide show
  1. package/dist/app/App.d.ts +0 -1
  2. package/dist/app/App.d.ts.map +1 -1
  3. package/dist/app/index.js +62 -62
  4. package/dist/chunk-0f15c920a9e36b9d.js +2 -0
  5. package/dist/{chunk-b240c1abcf310471.js → chunk-146715025d13a0cd.js} +1 -1
  6. package/dist/chunk-15e6e8c0dd4b0672.js +2 -0
  7. package/dist/{chunk-e4fa4d02a212da4f.js → chunk-2108d757e3dff3e5.js} +1 -1
  8. package/dist/{chunk-035e233acf299392.js → chunk-32c9eede30a4534c.js} +2 -2
  9. package/dist/{chunk-0c3a31bca25291a6.js → chunk-33ee54a02c10fc37.js} +1 -1
  10. package/dist/{chunk-9c10a08ee4b4d468.js → chunk-4d058b99d3cd50d3.js} +2 -2
  11. package/dist/{chunk-89c603058a8ca2e0.js → chunk-56b5bf53d53c03a4.js} +1 -1
  12. package/dist/{chunk-e4119fe2a26e4a22.js → chunk-64a4f5b40b729f4f.js} +1 -1
  13. package/dist/{chunk-027f8856aa132d85.js → chunk-74019c1ac29f1d31.js} +1 -1
  14. package/dist/{chunk-b9d952fe3db3df1c.js → chunk-9501e589e3e86a96.js} +1 -1
  15. package/dist/{chunk-6def55ea02e050ec.js → chunk-a1e43f3e2aa39908.js} +1 -1
  16. package/dist/chunk-a4b73fda470356b4.js +3 -0
  17. package/dist/{chunk-89067bce11a12276.js → chunk-a6cfd5c0ed5980bd.js} +1 -1
  18. package/dist/chunk-a909d17bbac3413c.js +1 -0
  19. package/dist/chunk-a92a4cb80ddf74b0.js +2 -0
  20. package/dist/{chunk-3e2f1f65cba86ad5.js → chunk-bd7553048dc4a7f0.js} +1 -1
  21. package/dist/{chunk-2c49184ec3c45a26.js → chunk-c041f058dc3d571b.js} +1 -1
  22. package/dist/{chunk-a2fa7b0b7cb9d696.js → chunk-d73f00cff7e5d51a.js} +1 -1
  23. package/dist/chunk-e8b83fc64856dfe0.js +2 -0
  24. package/dist/chunk-e98666083e9a2b6f.js +2 -0
  25. package/dist/chunk-ff5ac7825f395891.js +18 -0
  26. package/dist/client/QueryManagerContext.d.ts +3 -3
  27. package/dist/client/QueryManagerContext.d.ts.map +1 -1
  28. package/dist/client/ServerDataProvider.d.ts +1 -0
  29. package/dist/client/ServerDataProvider.d.ts.map +1 -1
  30. package/dist/client/index.js +42 -15
  31. package/dist/client/useNavigate.d.ts.map +1 -1
  32. package/dist/client/useQuery.d.ts.map +1 -1
  33. package/dist/email/index.js +1 -1
  34. package/dist/facades/Prefetch.d.ts +25 -0
  35. package/dist/facades/Prefetch.d.ts.map +1 -0
  36. package/dist/facades/index.d.ts +1 -0
  37. package/dist/facades/index.d.ts.map +1 -1
  38. package/dist/facades/index.js +1 -1
  39. package/dist/http/HttpRequest.d.ts +5 -1
  40. package/dist/http/HttpRequest.d.ts.map +1 -1
  41. package/dist/http/index.js +1 -1
  42. package/dist/http/requestContext.d.ts +6 -3
  43. package/dist/http/requestContext.d.ts.map +1 -1
  44. package/dist/kernel/Kernel.d.ts +8 -2
  45. package/dist/kernel/Kernel.d.ts.map +1 -1
  46. package/dist/kernel/context.d.ts +4 -2
  47. package/dist/kernel/context.d.ts.map +1 -1
  48. package/dist/kernel/index.js +2 -2
  49. package/dist/services/ServiceProvider.d.ts +4 -0
  50. package/dist/services/ServiceProvider.d.ts.map +1 -0
  51. package/dist/services/file-storage/drivers/FileSystemDriver.d.ts.map +1 -1
  52. package/dist/services/index.js +10 -1
  53. package/dist/services/middleware/MiddlewareServiceContainer.d.ts +8 -0
  54. package/dist/services/middleware/MiddlewareServiceContainer.d.ts.map +1 -0
  55. package/dist/services/router/ApiRouterServiceContainer.d.ts +13 -0
  56. package/dist/services/router/ApiRouterServiceContainer.d.ts.map +1 -0
  57. package/dist/services/router/ApiRouterServiceProvider.d.ts +8 -0
  58. package/dist/services/router/ApiRouterServiceProvider.d.ts.map +1 -0
  59. package/dist/services/router/createFlatApiRoutes.d.ts +16 -0
  60. package/dist/services/router/createFlatApiRoutes.d.ts.map +1 -0
  61. package/dist/utils/omitNullishValues.d.ts +2 -0
  62. package/dist/utils/omitNullishValues.d.ts.map +1 -0
  63. package/package.json +1 -1
  64. package/dist/chunk-6a30174fcc338251.js +0 -2
  65. package/dist/chunk-722959aee5ef3fae.js +0 -2
  66. package/dist/chunk-9e6c223585edf12e.js +0 -2
  67. package/dist/chunk-a75cb687951e66a0.js +0 -2
  68. package/dist/chunk-b3d1c993471a0dbe.js +0 -2
  69. package/dist/chunk-c4424c04ab2ac6d1.js +0 -3
  70. package/dist/chunk-db704ae1cdab22a5.js +0 -18
  71. package/dist/chunk-e1c93f98afc62202.js +0 -2
@@ -0,0 +1,18 @@
1
+ import{y as $1,z as B} from"./chunk-7ce930fe69575c87.js";import{F as z5} from"./chunk-33ee54a02c10fc37.js";import{J as $Q,K as DW} from"./chunk-2108d757e3dff3e5.js";import{N as v,O as KU,P as hW,S as bU,T as WZ,W as XZ,ba as F8} from"./chunk-a4b73fda470356b4.js";import{pb as L1} from"./chunk-9501e589e3e86a96.js";import{qb as HG,rb as J1} from"./chunk-a909d17bbac3413c.js";import{sb as Y0} from"./chunk-a6cfd5c0ed5980bd.js";import{yb as ZU} from"./chunk-c041f058dc3d571b.js";var b1=B((y5,cU)=>{var{defineProperty:e1,getOwnPropertyDescriptor:HZ,getOwnPropertyNames:TZ}=Object,AZ=Object.prototype.hasOwnProperty,xU=($,U)=>e1($,"name",{value:U,configurable:!0}),fZ=($,U)=>{for(var G in U)e1($,G,{get:U[G],enumerable:!0})},OZ=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of TZ(U))if(!AZ.call($,X)&&X!==G)e1($,X,{get:()=>U[X],enumerable:!(W=HZ(U,X))||W.enumerable})}return $},CZ=($)=>OZ(e1({},"__esModule",{value:!0}),$),vU={};fZ(vU,{getSmithyContext:()=>qZ,normalizeProvider:()=>jZ});cU.exports=CZ(vU);var hU=L1(),qZ=xU(($)=>$[hU.SMITHY_CONTEXT_KEY]||($[hU.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),jZ=xU(($)=>{if(typeof $==="function")return $;const U=Promise.resolve($);return()=>U},"normalizeProvider")});var B1=B((yU)=>{Object.defineProperty(yU,"__esModule",{value:!0});yU.getHomeDir=void 0;var NZ=import.meta.require("os"),PZ=import.meta.require("path"),e$={},bZ=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},SZ=()=>{const{HOME:$,USERPROFILE:U,HOMEPATH:G,HOMEDRIVE:W=`C:${PZ.sep}`}=process.env;if($)return $;if(U)return U;if(G)return`${W}${G}`;const X=bZ();if(!e$[X])e$[X]=NZ.homedir();return e$[X]};yU.getHomeDir=SZ});var $0=B((uU)=>{Object.defineProperty(uU,"__esModule",{value:!0});uU.getSSOTokenFilepath=void 0;var kZ=import.meta.require("crypto"),DZ=import.meta.require("path"),hZ=B1(),xZ=($)=>{const G=kZ.createHash("sha1").update($).digest("hex");return DZ.join(hZ.getHomeDir(),".aws","sso","cache",`${G}.json`)};uU.getSSOTokenFilepath=xZ});var sU=B((pU)=>{Object.defineProperty(pU,"__esModule",{value:!0});pU.getSSOTokenFromFile=void 0;var vZ=import.meta.require("fs"),cZ=$0(),{readFile:yZ}=vZ.promises,_Z=async($)=>{const U=cZ.getSSOTokenFilepath($),G=await yZ(U,"utf8");return JSON.parse(G)};pU.getSSOTokenFromFile=_Z});var G0=B((lU)=>{Object.defineProperty(lU,"__esModule",{value:!0});lU.slurpFile=void 0;var uZ=import.meta.require("fs"),{readFile:dZ}=uZ.promises,U0={},pZ=($,U)=>{if(!U0[$]||(U===null||U===void 0?void 0:U.ignoreCache))U0[$]=dZ($,"utf8");return U0[$]};lU.slurpFile=pZ});var L0=B((g5,k1)=>{var{defineProperty:G$,getOwnPropertyDescriptor:gZ,getOwnPropertyNames:sZ}=Object,lZ=Object.prototype.hasOwnProperty,c=($,U)=>G$($,"name",{value:U,configurable:!0}),mZ=($,U)=>{for(var G in U)G$($,G,{get:U[G],enumerable:!0})},W0=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of sZ(U))if(!lZ.call($,X)&&X!==G)G$($,X,{get:()=>U[X],enumerable:!(W=gZ(U,X))||W.enumerable})}return $},Z0=($,U,G)=>(W0($,U,"default"),G&&W0(G,U,"default")),nZ=($)=>W0(G$({},"__esModule",{value:!0}),$),S1={};mZ(S1,{CONFIG_PREFIX_SEPARATOR:()=>Y1,DEFAULT_PROFILE:()=>rU,ENV_PROFILE:()=>oU,getProfileName:()=>iZ,loadSharedConfigFiles:()=>tU,loadSsoSessionData:()=>YL,parseKnownFiles:()=>FL});k1.exports=nZ(S1);Z0(S1,B1(),k1.exports);var oU="AWS_PROFILE",rU="default",iZ=c(($)=>$.profile||process.env[oU]||rU,"getProfileName");Z0(S1,$0(),k1.exports);Z0(S1,sU(),k1.exports);var $$=L1(),oZ=c(($)=>Object.entries($).filter(([U])=>{const G=U.indexOf(Y1);if(G===-1)return!1;return Object.values($$.IniSectionType).includes(U.substring(0,G))}).reduce((U,[G,W])=>{const X=G.indexOf(Y1),Z=G.substring(0,X)===$$.IniSectionType.PROFILE?G.substring(X+1):G;return U[Z]=W,U},{...$.default&&{default:$.default}}),"getConfigData"),U$=import.meta.require("path"),rZ=B1(),aZ="AWS_CONFIG_FILE",aU=c(()=>process.env[aZ]||U$.join(rZ.getHomeDir(),".aws","config"),"getConfigFilepath"),tZ=B1(),eZ="AWS_SHARED_CREDENTIALS_FILE",$L=c(()=>process.env[eZ]||U$.join(tZ.getHomeDir(),".aws","credentials"),"getCredentialsFilepath"),UL=B1(),GL=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,WL=["__proto__","profile __proto__"],X0=c(($)=>{const U={};let G,W;for(let X of $.split(/\r?\n/)){const Z=X.split(/(^|\s)[;#]/)[0].trim();if(Z[0]==="["&&Z[Z.length-1]==="]"){G=void 0,W=void 0;const Y=Z.substring(1,Z.length-1),w=GL.exec(Y);if(w){const[,F,,Q]=w;if(Object.values($$.IniSectionType).includes(F))G=[F,Q].join(Y1)}else G=Y;if(WL.includes(Y))throw new Error(`Found invalid profile name "${Y}"`)}else if(G){const Y=Z.indexOf("=");if(![0,-1].includes(Y)){const[w,F]=[Z.substring(0,Y).trim(),Z.substring(Y+1).trim()];if(F==="")W=w;else{if(W&&X.trimStart()===X)W=void 0;U[G]=U[G]||{};const Q=W?[W,w].join(Y1):w;U[G][Q]=F}}}}return U},"parseIni"),nU=G0(),iU=c(()=>({}),"swallowError"),Y1=".",tU=c(async($={})=>{const{filepath:U=$L(),configFilepath:G=aU()}=$,W=UL.getHomeDir();let Z=U;if(U.startsWith("~/"))Z=U$.join(W,U.slice(2));let L=G;if(G.startsWith("~/"))L=U$.join(W,G.slice(2));const Y=await Promise.all([nU.slurpFile(L,{ignoreCache:$.ignoreCache}).then(X0).then(oZ).catch(iU),nU.slurpFile(Z,{ignoreCache:$.ignoreCache}).then(X0).catch(iU)]);return{configFile:Y[0],credentialsFile:Y[1]}},"loadSharedConfigFiles"),XL=c(($)=>Object.entries($).filter(([U])=>U.startsWith($$.IniSectionType.SSO_SESSION+Y1)).reduce((U,[G,W])=>({...U,[G.substring(G.indexOf(Y1)+1)]:W}),{}),"getSsoSessionData"),ZL=G0(),LL=c(()=>({}),"swallowError"),YL=c(async($={})=>ZL.slurpFile($.configFilepath??aU()).then(X0).then(XL).catch(LL),"loadSsoSessionData"),wL=c((...$)=>{const U={};for(let G of $)for(let[W,X]of Object.entries(G))if(U[W]!==void 0)Object.assign(U[W],X);else U[W]=X;return U},"mergeConfigFiles"),FL=c(async($)=>{const U=await tU($);return wL(U.configFile,U.credentialsFile)},"parseKnownFiles")});var GG=B((s5,UG)=>{var w0=function($){try{const 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 $}},W$=Object.defineProperty,QL=Object.getOwnPropertyDescriptor,zL=Object.getOwnPropertyNames,JL=Object.prototype.hasOwnProperty,V1=($,U)=>W$($,"name",{value:U,configurable:!0}),IL=($,U)=>{for(var G in U)W$($,G,{get:U[G],enumerable:!0})},KL=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of zL(U))if(!JL.call($,X)&&X!==G)W$($,X,{get:()=>U[X],enumerable:!(W=QL(U,X))||W.enumerable})}return $},ML=($)=>KL(W$({},"__esModule",{value:!0}),$),$G={};IL($G,{loadConfig:()=>HL});UG.exports=ML($G);var D1=Y0();V1(w0,"getSelectorName");var RL=V1(($,U)=>async()=>{try{const G=$(process.env);if(G===void 0)throw new Error;return G}catch(G){throw new D1.CredentialsProviderError(G.message||`Not found in ENV: ${w0($.toString())}`,{logger:U})}},"fromEnv"),eU=L0(),BL=V1(($,{preferredFile:U="config",...G}={})=>async()=>{const W=eU.getProfileName(G),{configFile:X,credentialsFile:Z}=await eU.loadSharedConfigFiles(G),L=Z[W]||{},Y=X[W]||{},w=U==="config"?{...L,...Y}:{...Y,...L};try{const Q=$(w,U==="config"?X:Z);if(Q===void 0)throw new Error;return Q}catch(F){throw new D1.CredentialsProviderError(F.message||`Not found in config files w/ profile [${W}]: ${w0($.toString())}`,{logger:G.logger})}},"fromSharedConfigFiles"),VL=V1(($)=>typeof $==="function","isFunction"),EL=V1(($)=>VL($)?async()=>await $():D1.fromStatic($),"fromStatic"),HL=V1(({environmentVariableSelector:$,configFileSelector:U,default:G},W={})=>D1.memoize(D1.chain(RL($),BL(U,W),EL(G))),"loadConfig")});var wG=B((LG)=>{Object.defineProperty(LG,"__esModule",{value:!0});LG.getEndpointUrlConfig=void 0;var WG=L0(),XG="AWS_ENDPOINT_URL",ZG="endpoint_url",TL=($)=>({environmentVariableSelector:(U)=>{const G=$.split(" ").map((Z)=>Z.toUpperCase()),W=U[[XG,...G].join("_")];if(W)return W;const X=U[XG];if(X)return X;return},configFileSelector:(U,G)=>{if(G&&U.services){const X=G[["services",U.services].join(WG.CONFIG_PREFIX_SEPARATOR)];if(X){const Z=$.split(" ").map((Y)=>Y.toLowerCase()),L=X[[Z.join("_"),ZG].join(WG.CONFIG_PREFIX_SEPARATOR)];if(L)return L}}const W=U[ZG];if(W)return W;return},default:void 0});LG.getEndpointUrlConfig=TL});var zG=B((FG)=>{Object.defineProperty(FG,"__esModule",{value:!0});FG.getEndpointFromConfig=void 0;var AL=GG(),fL=wG(),OL=async($)=>AL.loadConfig(fL.getEndpointUrlConfig($))();FG.getEndpointFromConfig=OL});var Q0=B((n5,VG)=>{var BG=function($,U,G){return{applyToStack:(W)=>{W.add(IG($,G),MG),W.add(KG($,U),RG)}}},X$=Object.defineProperty,CL=Object.getOwnPropertyDescriptor,qL=Object.getOwnPropertyNames,jL=Object.prototype.hasOwnProperty,F0=($,U)=>X$($,"name",{value:U,configurable:!0}),NL=($,U)=>{for(var G in U)X$($,G,{get:U[G],enumerable:!0})},PL=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of qL(U))if(!jL.call($,X)&&X!==G)X$($,X,{get:()=>U[X],enumerable:!(W=CL(U,X))||W.enumerable})}return $},bL=($)=>PL(X$({},"__esModule",{value:!0}),$),JG={};NL(JG,{deserializerMiddleware:()=>IG,deserializerMiddlewareOption:()=>MG,getSerdePlugin:()=>BG,serializerMiddleware:()=>KG,serializerMiddlewareOption:()=>RG});VG.exports=bL(JG);var IG=F0(($,U)=>(G)=>async(W)=>{const{response:X}=await G(W);try{const Z=await U(X,$);return{response:X,output:Z}}catch(Z){if(Object.defineProperty(Z,"$response",{value:X}),!("$metadata"in Z)){if(Z.message+="\n Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.",typeof Z.$responseBodyText!=="undefined"){if(Z.$response)Z.$response.body=Z.$responseBodyText}}throw Z}},"deserializerMiddleware"),KG=F0(($,U)=>(G,W)=>async(X)=>{var Z;const L=((Z=W.endpointV2)==null?void 0:Z.url)&&$.urlParser?async()=>$.urlParser(W.endpointV2.url):$.endpoint;if(!L)throw new Error("No valid endpoint provider available.");const Y=await U(X.input,{...$,endpoint:L});return G({...X,request:Y})},"serializerMiddleware"),MG={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},RG={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};F0(BG,"getSerdePlugin")});var jG=B((i5,qG)=>{var{defineProperty:L$,getOwnPropertyDescriptor:SL,getOwnPropertyNames:kL}=Object,DL=Object.prototype.hasOwnProperty,d=($,U)=>L$($,"name",{value:U,configurable:!0}),hL=($,U)=>{for(var G in U)L$($,G,{get:U[G],enumerable:!0})},xL=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of kL(U))if(!DL.call($,X)&&X!==G)L$($,X,{get:()=>U[X],enumerable:!(W=SL(U,X))||W.enumerable})}return $},vL=($)=>xL(L$({},"__esModule",{value:!0}),$),TG={};hL(TG,{endpointMiddleware:()=>OG,endpointMiddlewareOptions:()=>CG,getEndpointFromInstructions:()=>AG,getEndpointPlugin:()=>mL,resolveEndpointConfig:()=>nL,resolveParams:()=>fG,toEndpointV1:()=>z0});qG.exports=vL(TG);var cL=d(async($)=>{const U=($==null?void 0:$.Bucket)||"";if(typeof $.Bucket==="string")$.Bucket=U.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(pL(U)){if($.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!dL(U)||U.indexOf(".")!==-1&&!String($.Endpoint).startsWith("http:")||U.toLowerCase()!==U||U.length<3)$.ForcePathStyle=!0;if($.DisableMultiRegionAccessPoints)$.disableMultiRegionAccessPoints=!0,$.DisableMRAP=!0;return $},"resolveParamsForS3"),yL=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,_L=/(\d+\.){3}\d+/,uL=/\.\./,dL=d(($)=>yL.test($)&&!_L.test($)&&!uL.test($),"isDnsCompatibleBucketName"),pL=d(($)=>{const[U,G,W,,,X]=$.split(":"),Z=U==="arn"&&$.split(":").length>=6,L=Boolean(Z&&G&&W&&X);if(Z&&!L)throw new Error(`Invalid ARN: ${$} was an invalid ARN.`);return L},"isArnBucketName"),gL=d(($,U,G)=>{const W=d(async()=>{const X=G[$]??G[U];if(typeof X==="function")return X();return X},"configProvider");if($==="credentialScope"||U==="CredentialScope")return async()=>{const X=typeof G.credentials==="function"?await G.credentials():G.credentials;return(X==null?void 0:X.credentialScope)??(X==null?void 0:X.CredentialScope)};if($==="accountId"||U==="AccountId")return async()=>{const X=typeof G.credentials==="function"?await G.credentials():G.credentials;return(X==null?void 0:X.accountId)??(X==null?void 0:X.AccountId)};if($==="endpoint"||U==="endpoint")return async()=>{const X=await W();if(X&&typeof X==="object"){if("url"in X)return X.url.href;if("hostname"in X){const{protocol:Z,hostname:L,port:Y,path:w}=X;return`${Z}//${L}${Y?":"+Y:""}${w}`}}return X};return W},"createConfigValueProvider"),sL=zG(),EG=HG(),z0=d(($)=>{if(typeof $==="object"){if("url"in $)return EG.parseUrl($.url);return $}return EG.parseUrl($)},"toEndpointV1"),AG=d(async($,U,G,W)=>{if(!G.endpoint){const L=await sL.getEndpointFromConfig(G.serviceId||"");if(L)G.endpoint=()=>Promise.resolve(z0(L))}const X=await fG($,U,G);if(typeof G.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return G.endpointProvider(X,W)},"getEndpointFromInstructions"),fG=d(async($,U,G)=>{var W;const X={},Z=((W=U==null?void 0:U.getEndpointParameterInstructions)==null?void 0:W.call(U))||{};for(let[L,Y]of Object.entries(Z))switch(Y.type){case"staticContextParams":X[L]=Y.value;break;case"contextParams":X[L]=$[Y.name];break;case"clientContextParams":case"builtInParams":X[L]=await gL(Y.name,L,G)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(Y))}if(Object.keys(Z).length===0)Object.assign(X,G);if(String(G.serviceId).toLowerCase()==="s3")await cL(X);return X},"resolveParams"),Z$=b1(),OG=d(({config:$,instructions:U})=>{return(G,W)=>async(X)=>{var Z,L,Y;const w=await AG(X.input,{getEndpointParameterInstructions(){return U}},{...$},W);W.endpointV2=w,W.authSchemes=(Z=w.properties)==null?void 0:Z.authSchemes;const F=(L=W.authSchemes)==null?void 0:L[0];if(F){W.signing_region=F.signingRegion,W.signing_service=F.signingName;const Q=Z$.getSmithyContext(W),z=(Y=Q==null?void 0:Q.selectedHttpAuthScheme)==null?void 0:Y.httpAuthOption;if(z)z.signingProperties=Object.assign(z.signingProperties||{},{signing_region:F.signingRegion,signingRegion:F.signingRegion,signing_service:F.signingName,signingName:F.signingName,signingRegionSet:F.signingRegionSet},F.properties)}return G({...X})}},"endpointMiddleware"),lL=Q0(),CG={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:lL.serializerMiddlewareOption.name},mL=d(($,U)=>({applyToStack:(G)=>{G.addRelativeTo(OG({config:$,instructions:U}),CG)}}),"getEndpointPlugin"),nL=d(($)=>{const U=$.tls??!0,{endpoint:G}=$,W=G!=null?async()=>z0(await Z$.normalizeProvider(G)()):void 0;return{...$,endpoint:W,tls:U,isCustomEndpoint:!!G,useDualstackEndpoint:Z$.normalizeProvider($.useDualstackEndpoint??!1),useFipsEndpoint:Z$.normalizeProvider($.useFipsEndpoint??!1)}},"resolveEndpointConfig")});var l=B((o5,vG)=>{var DG=function($){return Object.keys($).reduce((U,G)=>{const W=$[G];return{...U,[G]:Array.isArray(W)?[...W]:W}},{})},xG=function($){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test($)},Y$=Object.defineProperty,iL=Object.getOwnPropertyDescriptor,oL=Object.getOwnPropertyNames,rL=Object.prototype.hasOwnProperty,r=($,U)=>Y$($,"name",{value:U,configurable:!0}),aL=($,U)=>{for(var G in U)Y$($,G,{get:U[G],enumerable:!0})},tL=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of oL(U))if(!rL.call($,X)&&X!==G)Y$($,X,{get:()=>U[X],enumerable:!(W=iL(U,X))||W.enumerable})}return $},eL=($)=>tL(Y$({},"__esModule",{value:!0}),$),NG={};aL(NG,{Field:()=>GY,Fields:()=>WY,HttpRequest:()=>XY,HttpResponse:()=>ZY,IHttpRequest:()=>PG.HttpRequest,getHttpHandlerExtensionConfiguration:()=>$Y,isValidHostname:()=>xG,resolveHttpHandlerRuntimeConfig:()=>UY});vG.exports=eL(NG);var $Y=r(($)=>{let U=$.httpHandler;return{setHttpHandler(G){U=G},httpHandler(){return U},updateHttpClientConfig(G,W){U.updateHttpClientConfig(G,W)},httpHandlerConfigs(){return U.httpHandlerConfigs()}}},"getHttpHandlerExtensionConfiguration"),UY=r(($)=>{return{httpHandler:$.httpHandler()}},"resolveHttpHandlerRuntimeConfig"),PG=L1(),bG=class ${constructor({name:U,kind:G=PG.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(bG,"Field");var GY=bG,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 WY=SG,kG=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){const G=new $({...U,headers:{...U.headers}});if(G.query)G.query=DG(G.query);return G}static isInstance(U){if(!U)return!1;const 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(kG,"HttpRequest");var XY=kG;r(DG,"cloneQuery");var hG=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;const G=U;return typeof G.statusCode==="number"&&typeof G.headers==="object"}};r(hG,"HttpResponse");var ZY=hG;r(xG,"isValidHostname")});var w1=B((r5,uG)=>{var{defineProperty:w$,getOwnPropertyDescriptor:LY,getOwnPropertyNames:YY}=Object,wY=Object.prototype.hasOwnProperty,E1=($,U)=>w$($,"name",{value:U,configurable:!0}),FY=($,U)=>{for(var G in U)w$($,G,{get:U[G],enumerable:!0})},QY=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of YY(U))if(!wY.call($,X)&&X!==G)w$($,X,{get:()=>U[X],enumerable:!(W=LY(U,X))||W.enumerable})}return $},zY=($)=>QY(w$({},"__esModule",{value:!0}),$),cG={};FY(cG,{isClockSkewCorrectedError:()=>yG,isClockSkewError:()=>VY,isRetryableByTrait:()=>BY,isServerError:()=>HY,isThrottlingError:()=>EY,isTransientError:()=>_G});uG.exports=zY(cG);var JY=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],IY=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],KY=["TimeoutError","RequestTimeout","RequestTimeoutException"],MY=[500,502,503,504],RY=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],BY=E1(($)=>$.$retryable!==void 0,"isRetryableByTrait"),VY=E1(($)=>JY.includes($.name),"isClockSkewError"),yG=E1(($)=>{var U;return(U=$.$metadata)==null?void 0:U.clockSkewCorrected},"isClockSkewCorrectedError"),EY=E1(($)=>{var U,G;return((U=$.$metadata)==null?void 0:U.httpStatusCode)===429||IY.includes($.name)||((G=$.$retryable)==null?void 0:G.throttling)==!0},"isThrottlingError"),_G=E1(($)=>{var U;return yG($)||KY.includes($.name)||RY.includes(($==null?void 0:$.code)||"")||MY.includes(((U=$.$metadata)==null?void 0:U.httpStatusCode)||0)},"isTransientError"),HY=E1(($)=>{var U;if(((U=$.$metadata)==null?void 0:U.httpStatusCode)!==void 0){const G=$.$metadata.httpStatusCode;if(500<=G&&G<=599&&!_G($))return!0;return!1}return!1},"isServerError")});var $6=B((a5,eG)=>{var{defineProperty:F$,getOwnPropertyDescriptor:TY,getOwnPropertyNames:AY}=Object,fY=Object.prototype.hasOwnProperty,p=($,U)=>F$($,"name",{value:U,configurable:!0}),OY=($,U)=>{for(var G in U)F$($,G,{get:U[G],enumerable:!0})},CY=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of AY(U))if(!fY.call($,X)&&X!==G)F$($,X,{get:()=>U[X],enumerable:!(W=TY(U,X))||W.enumerable})}return $},qY=($)=>CY(F$({},"__esModule",{value:!0}),$),pG={};OY(pG,{AdaptiveRetryStrategy:()=>kY,ConfiguredRetryStrategy:()=>DY,DEFAULT_MAX_ATTEMPTS:()=>J0,DEFAULT_RETRY_DELAY_BASE:()=>h1,DEFAULT_RETRY_MODE:()=>jY,DefaultRateLimiter:()=>lG,INITIAL_RETRY_TOKENS:()=>I0,INVOCATION_ID_HEADER:()=>PY,MAXIMUM_RETRY_DELAY:()=>K0,NO_RETRY_INCREMENT:()=>oG,REQUEST_HEADER:()=>bY,RETRY_COST:()=>nG,RETRY_MODES:()=>gG,StandardRetryStrategy:()=>M0,THROTTLING_RETRY_DELAY_BASE:()=>mG,TIMEOUT_RETRY_COST:()=>iG});eG.exports=qY(pG);var gG=(($)=>{return $.STANDARD="standard",$.ADAPTIVE="adaptive",$})(gG||{}),J0=3,jY="standard",NY=w1(),sG=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;const 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){const G=(U-this.currentCapacity)/this.fillRate*1000;await new Promise((W)=>setTimeout(W,G))}this.currentCapacity=this.currentCapacity-U}refillTokenBucket(){const U=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=U;return}const 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(),NY.isThrottlingError(U)){const X=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=X,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),G=this.cubicThrottle(X),this.enableTokenBucket()}else this.calculateTimeWindow(),G=this.cubicSuccess(this.getCurrentTimeInSeconds());const 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(){const U=this.getCurrentTimeInSeconds(),G=Math.floor(U*2)/2;if(this.requestCount++,G>this.lastTxRateBucket){const 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))}};p(sG,"DefaultRateLimiter");var lG=sG,h1=100,K0=20000,mG=500,I0=500,nG=5,iG=10,oG=1,PY="amz-sdk-invocation-id",bY="amz-sdk-request",SY=p(()=>{let $=h1;return{computeNextBackoffDelay:p((W)=>{return Math.floor(Math.min(K0,Math.random()*2**W*$))},"computeNextBackoffDelay"),setDelayBase:p((W)=>{$=W},"setDelayBase")}},"getDefaultRetryBackoffStrategy"),dG=p(({retryDelay:$,retryCount:U,retryCost:G})=>{return{getRetryCount:p(()=>U,"getRetryCount"),getRetryDelay:p(()=>Math.min(K0,$),"getRetryDelay"),getRetryCost:p(()=>G,"getRetryCost")}},"createDefaultRetryToken"),rG=class ${constructor(U){this.maxAttempts=U,this.mode="standard",this.capacity=I0,this.retryBackoffStrategy=SY(),this.maxAttemptsProvider=typeof U==="function"?U:async()=>U}async acquireInitialRetryToken(U){return dG({retryDelay:h1,retryCount:0})}async refreshRetryTokenForRetry(U,G){const W=await this.getMaxAttempts();if(this.shouldRetry(U,G,W)){const X=G.errorType;this.retryBackoffStrategy.setDelayBase(X==="THROTTLING"?mG:h1);const Z=this.retryBackoffStrategy.computeNextBackoffDelay(U.getRetryCount()),L=G.retryAfterHint?Math.max(G.retryAfterHint.getTime()-Date.now()||0,Z):Z,Y=this.getCapacityCost(X);return this.capacity-=Y,dG({retryDelay:L,retryCount:U.getRetryCount()+1,retryCost:Y})}throw new Error("No retry token available")}recordSuccess(U){this.capacity=Math.max(I0,this.capacity+(U.getRetryCost()??oG))}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 ${J0}`),J0}}shouldRetry(U,G,W){return U.getRetryCount()+1<W&&this.capacity>=this.getCapacityCost(G.errorType)&&this.isRetryableError(G.errorType)}getCapacityCost(U){return U==="TRANSIENT"?iG:nG}isRetryableError(U){return U==="THROTTLING"||U==="TRANSIENT"}};p(rG,"StandardRetryStrategy");var M0=rG,aG=class ${constructor(U,G){this.maxAttemptsProvider=U,this.mode="adaptive";const{rateLimiter:W}=G??{};this.rateLimiter=W??new lG,this.standardRetryStrategy=new M0(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)}};p(aG,"AdaptiveRetryStrategy");var kY=aG,tG=class $ extends M0{constructor(U,G=h1){super(typeof U==="function"?U:async()=>U);if(typeof G==="number")this.computeNextBackoffDelay=()=>G;else this.computeNextBackoffDelay=G}async refreshRetryTokenForRetry(U,G){const W=await super.refreshRetryTokenForRetry(U,G);return W.getRetryDelay=()=>this.computeNextBackoffDelay(W.getRetryCount()),W}};p(tG,"ConfiguredRetryStrategy");var DY=tG});var Z6=B((t5,X6)=>{var{defineProperty:Q$,getOwnPropertyDescriptor:hY,getOwnPropertyNames:xY}=Object,vY=Object.prototype.hasOwnProperty,y=($,U)=>Q$($,"name",{value:U,configurable:!0}),cY=($,U)=>{for(var G in U)Q$($,G,{get:U[G],enumerable:!0})},yY=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of xY(U))if(!vY.call($,X)&&X!==G)Q$($,X,{get:()=>U[X],enumerable:!(W=hY(U,X))||W.enumerable})}return $},_Y=($)=>yY(Q$({},"__esModule",{value:!0}),$),W6={};cY(W6,{constructStack:()=>R0});X6.exports=_Y(W6);var F1=y(($,U)=>{const G=[];if($)G.push($);if(U)for(let W of U)G.push(W);return G},"getAllAliases"),a=y(($,U)=>{return`${$||"anonymous"}${U&&U.length>0?` (a.k.a. ${U.join(",")})`:""}`},"getMiddlewareNameWithAliases"),R0=y(()=>{let $=[],U=[],G=!1;const W=new Set,X=y((z)=>z.sort((I,J)=>U6[J.step]-U6[I.step]||G6[J.priority||"normal"]-G6[I.priority||"normal"]),"sort"),Z=y((z)=>{let I=!1;const J=y((M)=>{const H=F1(M.name,M.aliases);if(H.includes(z)){I=!0;for(let R of H)W.delete(R);return!1}return!0},"filterCb");return $=$.filter(J),U=U.filter(J),I},"removeByName"),L=y((z)=>{let I=!1;const J=y((M)=>{if(M.middleware===z){I=!0;for(let H of F1(M.name,M.aliases))W.delete(H);return!1}return!0},"filterCb");return $=$.filter(J),U=U.filter(J),I},"removeByReference"),Y=y((z)=>{var I;return $.forEach((J)=>{z.add(J.middleware,{...J})}),U.forEach((J)=>{z.addRelativeTo(J.middleware,{...J})}),(I=z.identifyOnResolve)==null||I.call(z,Q.identifyOnResolve()),z},"cloneTo"),w=y((z)=>{const I=[];return z.before.forEach((J)=>{if(J.before.length===0&&J.after.length===0)I.push(J);else I.push(...w(J))}),I.push(z),z.after.reverse().forEach((J)=>{if(J.before.length===0&&J.after.length===0)I.push(J);else I.push(...w(J))}),I},"expandRelativeMiddlewareList"),F=y((z=!1)=>{const I=[],J=[],M={};return $.forEach((R)=>{const E={...R,before:[],after:[]};for(let V of F1(E.name,E.aliases))M[V]=E;I.push(E)}),U.forEach((R)=>{const E={...R,before:[],after:[]};for(let V of F1(E.name,E.aliases))M[V]=E;J.push(E)}),J.forEach((R)=>{if(R.toMiddleware){const E=M[R.toMiddleware];if(E===void 0){if(z)return;throw new Error(`${R.toMiddleware} is not found when adding ${a(R.name,R.aliases)} middleware ${R.relation} ${R.toMiddleware}`)}if(R.relation==="after")E.after.push(R);if(R.relation==="before")E.before.push(R)}}),X(I).map(w).reduce((R,E)=>{return R.push(...E),R},[])},"getMiddlewareList"),Q={add:(z,I={})=>{const{name:J,override:M,aliases:H}=I,R={step:"initialize",priority:"normal",middleware:z,...I},E=F1(J,H);if(E.length>0){if(E.some((V)=>W.has(V))){if(!M)throw new Error(`Duplicate middleware name '${a(J,H)}'`);for(let V of E){const T=$.findIndex((S)=>{var o;return S.name===V||((o=S.aliases)==null?void 0:o.some((Z1)=>Z1===V))});if(T===-1)continue;const A=$[T];if(A.step!==R.step||R.priority!==A.priority)throw new Error(`"${a(A.name,A.aliases)}" middleware with ${A.priority} priority in ${A.step} step cannot be overridden by "${a(J,H)}" middleware with ${R.priority} priority in ${R.step} step.`);$.splice(T,1)}}for(let V of E)W.add(V)}$.push(R)},addRelativeTo:(z,I)=>{const{name:J,override:M,aliases:H}=I,R={middleware:z,...I},E=F1(J,H);if(E.length>0){if(E.some((V)=>W.has(V))){if(!M)throw new Error(`Duplicate middleware name '${a(J,H)}'`);for(let V of E){const T=U.findIndex((S)=>{var o;return S.name===V||((o=S.aliases)==null?void 0:o.some((Z1)=>Z1===V))});if(T===-1)continue;const A=U[T];if(A.toMiddleware!==R.toMiddleware||A.relation!==R.relation)throw new Error(`"${a(A.name,A.aliases)}" middleware ${A.relation} "${A.toMiddleware}" middleware cannot be overridden by "${a(J,H)}" middleware ${R.relation} "${R.toMiddleware}" middleware.`);U.splice(T,1)}}for(let V of E)W.add(V)}U.push(R)},clone:()=>Y(R0()),use:(z)=>{z.applyToStack(Q)},remove:(z)=>{if(typeof z==="string")return Z(z);else return L(z)},removeByTag:(z)=>{let I=!1;const J=y((M)=>{const{tags:H,name:R,aliases:E}=M;if(H&&H.includes(z)){const V=F1(R,E);for(let T of V)W.delete(T);return I=!0,!1}return!0},"filterCb");return $=$.filter(J),U=U.filter(J),I},concat:(z)=>{var I;const J=Y(R0());return J.use(z),J.identifyOnResolve(G||J.identifyOnResolve()||(((I=z.identifyOnResolve)==null?void 0:I.call(z))??!1)),J},applyToStack:Y,identify:()=>{return F(!0).map((z)=>{const I=z.step??z.relation+" "+z.toMiddleware;return a(z.name,z.aliases)+" - "+I})},identifyOnResolve(z){if(typeof z==="boolean")G=z;return G},resolve:(z,I)=>{for(let J of F().map((M)=>M.middleware).reverse())z=J(z,I);if(G)console.log(Q.identify());return z}};return Q},"constructStack"),U6={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},G6={high:3,normal:2,low:1}});var B0=B((e5,Y6)=>{var{defineProperty:z$,getOwnPropertyDescriptor:uY,getOwnPropertyNames:dY}=Object,pY=Object.prototype.hasOwnProperty,gY=($,U)=>z$($,"name",{value:U,configurable:!0}),sY=($,U)=>{for(var G in U)z$($,G,{get:U[G],enumerable:!0})},lY=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of dY(U))if(!pY.call($,X)&&X!==G)z$($,X,{get:()=>U[X],enumerable:!(W=uY(U,X))||W.enumerable})}return $},mY=($)=>lY(z$({},"__esModule",{value:!0}),$),L6={};sY(L6,{isArrayBuffer:()=>nY});Y6.exports=mY(L6);var nY=gY(($)=>typeof ArrayBuffer==="function"&&$ instanceof ArrayBuffer||Object.prototype.toString.call($)==="[object ArrayBuffer]","isArrayBuffer")});var x1=B(($J,Q6)=>{var{defineProperty:J$,getOwnPropertyDescriptor:iY,getOwnPropertyNames:oY}=Object,rY=Object.prototype.hasOwnProperty,w6=($,U)=>J$($,"name",{value:U,configurable:!0}),aY=($,U)=>{for(var G in U)J$($,G,{get:U[G],enumerable:!0})},tY=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of oY(U))if(!rY.call($,X)&&X!==G)J$($,X,{get:()=>U[X],enumerable:!(W=iY(U,X))||W.enumerable})}return $},eY=($)=>tY(J$({},"__esModule",{value:!0}),$),F6={};aY(F6,{fromArrayBuffer:()=>U2,fromString:()=>G2});Q6.exports=eY(F6);var $2=B0(),V0=import.meta.require("buffer"),U2=w6(($,U=0,G=$.byteLength-U)=>{if(!$2.isArrayBuffer($))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof $} (${$})`);return V0.Buffer.from($,U,G)},"fromArrayBuffer"),G2=w6(($,U)=>{if(typeof $!=="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof $} (${$})`);return U?V0.Buffer.from($,U):V0.Buffer.from($)},"fromString")});var I6=B((z6)=>{Object.defineProperty(z6,"__esModule",{value:!0});z6.fromBase64=void 0;var W2=x1(),X2=/^[A-Za-z0-9+/]*={0,2}$/,Z2=($)=>{if($.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!X2.exec($))throw new TypeError("Invalid base64 string.");const U=W2.fromString($,"base64");return new Uint8Array(U.buffer,U.byteOffset,U.byteLength)};z6.fromBase64=Z2});var t=B((GJ,B6)=>{var{defineProperty:I$,getOwnPropertyDescriptor:L2,getOwnPropertyNames:Y2}=Object,w2=Object.prototype.hasOwnProperty,E0=($,U)=>I$($,"name",{value:U,configurable:!0}),F2=($,U)=>{for(var G in U)I$($,G,{get:U[G],enumerable:!0})},Q2=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of Y2(U))if(!w2.call($,X)&&X!==G)I$($,X,{get:()=>U[X],enumerable:!(W=L2(U,X))||W.enumerable})}return $},z2=($)=>Q2(I$({},"__esModule",{value:!0}),$),K6={};F2(K6,{fromUtf8:()=>R6,toUint8Array:()=>J2,toUtf8:()=>I2});B6.exports=z2(K6);var M6=x1(),R6=E0(($)=>{const U=M6.fromString($,"utf8");return new Uint8Array(U.buffer,U.byteOffset,U.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8"),J2=E0(($)=>{if(typeof $==="string")return R6($);if(ArrayBuffer.isView($))return new Uint8Array($.buffer,$.byteOffset,$.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array($)},"toUint8Array"),I2=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 M6.fromArrayBuffer($.buffer,$.byteOffset,$.byteLength).toString("utf8")},"toUtf8")});var H6=B((V6)=>{Object.defineProperty(V6,"__esModule",{value:!0});V6.toBase64=void 0;var K2=x1(),M2=t(),R2=($)=>{let U;if(typeof $==="string")U=M2.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 K2.fromArrayBuffer(U.buffer,U.byteOffset,U.byteLength).toString("base64")};V6.toBase64=R2});var M$=B((XJ,K$)=>{var{defineProperty:T6,getOwnPropertyDescriptor:B2,getOwnPropertyNames:V2}=Object,E2=Object.prototype.hasOwnProperty,H0=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of V2(U))if(!E2.call($,X)&&X!==G)T6($,X,{get:()=>U[X],enumerable:!(W=B2(U,X))||W.enumerable})}return $},A6=($,U,G)=>(H0($,U,"default"),G&&H0(G,U,"default")),H2=($)=>H0(T6({},"__esModule",{value:!0}),$),T0={};K$.exports=H2(T0);A6(T0,I6(),K$.exports);A6(T0,H6(),K$.exports)});var C6=B((f6)=>{Object.defineProperty(f6,"__esModule",{value:!0});f6.getAwsChunkedEncodingStream=void 0;var T2=import.meta.require("stream"),A2=($,U)=>{const{base64Encoder:G,bodyLengthChecker:W,checksumAlgorithmFn:X,checksumLocationName:Z,streamHasher:L}=U,Y=G!==void 0&&X!==void 0&&Z!==void 0&&L!==void 0,w=Y?L(X,$):void 0,F=new T2.Readable({read:()=>{}});return $.on("data",(Q)=>{const z=W(Q)||0;F.push(`${z.toString(16)}\r\n`),F.push(Q),F.push("\r\n")}),$.on("end",async()=>{if(F.push("0\r\n"),Y){const Q=G(await w);F.push(`${Z}:${Q}\r\n`),F.push("\r\n")}F.push(null)}),F};f6.getAwsChunkedEncodingStream=A2});var f0=B((LJ,N6)=>{var{defineProperty:R$,getOwnPropertyDescriptor:f2,getOwnPropertyNames:O2}=Object,C2=Object.prototype.hasOwnProperty,A0=($,U)=>R$($,"name",{value:U,configurable:!0}),q2=($,U)=>{for(var G in U)R$($,G,{get:U[G],enumerable:!0})},j2=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of O2(U))if(!C2.call($,X)&&X!==G)R$($,X,{get:()=>U[X],enumerable:!(W=f2(U,X))||W.enumerable})}return $},N2=($)=>j2(R$({},"__esModule",{value:!0}),$),q6={};q2(q6,{escapeUri:()=>j6,escapeUriPath:()=>b2});N6.exports=N2(q6);var j6=A0(($)=>encodeURIComponent($).replace(/[!'()*]/g,P2),"escapeUri"),P2=A0(($)=>`%${$.charCodeAt(0).toString(16).toUpperCase()}`,"hexEncode"),b2=A0(($)=>$.split("/").map(j6).join("/"),"escapeUriPath")});var C0=B((YJ,S6)=>{var b6=function($){const U=[];for(let G of Object.keys($).sort()){const W=$[G];if(G=O0.escapeUri(G),Array.isArray(W))for(let X=0,Z=W.length;X<Z;X++)U.push(`${G}=${O0.escapeUri(W[X])}`);else{let X=G;if(W||typeof W==="string")X+=`=${O0.escapeUri(W)}`;U.push(X)}}return U.join("&")},B$=Object.defineProperty,S2=Object.getOwnPropertyDescriptor,k2=Object.getOwnPropertyNames,D2=Object.prototype.hasOwnProperty,h2=($,U)=>B$($,"name",{value:U,configurable:!0}),x2=($,U)=>{for(var G in U)B$($,G,{get:U[G],enumerable:!0})},v2=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of k2(U))if(!D2.call($,X)&&X!==G)B$($,X,{get:()=>U[X],enumerable:!(W=S2(U,X))||W.enumerable})}return $},c2=($)=>v2(B$({},"__esModule",{value:!0}),$),P6={};x2(P6,{buildQueryString:()=>b6});S6.exports=c2(P6);var O0=f0();h2(b6,"buildQueryString")});var i6=B((wJ,n6)=>{async function N0($,U,G=k6){const W=U.headers??{},X=W.Expect||W.expect;let Z=-1,L=!1;if(X==="100-continue")await Promise.race([new Promise((Y)=>{Z=Number(setTimeout(Y,Math.max(k6,G)))}),new Promise((Y)=>{$.on("continue",()=>{clearTimeout(Z),Y()}),$.on("error",()=>{L=!0,clearTimeout(Z),Y()})})]);if(!L)u6($,U.body)}var u6=function($,U){if(U instanceof _6.Readable){U.pipe($);return}if(U){if(Buffer.isBuffer(U)||typeof U==="string"){$.end(U);return}const 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()};async function m6($){const U=[],G=$.getReader();let W=!1,X=0;while(!W){const{done:Y,value:w}=await G.read();if(w)U.push(w),X+=w.length;W=Y}const Z=new Uint8Array(X);let L=0;for(let Y of U)Z.set(Y,L),L+=Y.length;return Z}var{create:y2,defineProperty:v1,getOwnPropertyDescriptor:_2,getOwnPropertyNames:u2,getPrototypeOf:d2}=Object,p2=Object.prototype.hasOwnProperty,j=($,U)=>v1($,"name",{value:U,configurable:!0}),g2=($,U)=>{for(var G in U)v1($,G,{get:U[G],enumerable:!0})},h6=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of u2(U))if(!p2.call($,X)&&X!==G)v1($,X,{get:()=>U[X],enumerable:!(W=_2(U,X))||W.enumerable})}return $},s2=($,U,G)=>(G=$!=null?y2(d2($)):{},h6(U||!$||!$.__esModule?v1(G,"default",{value:$,enumerable:!0}):G,$)),l2=($)=>h6(v1({},"__esModule",{value:!0}),$),x6={};g2(x6,{DEFAULT_REQUEST_TIMEOUT:()=>r2,NodeHttp2Handler:()=>Uw,NodeHttpHandler:()=>a2,streamCollector:()=>Ww});n6.exports=l2(x6);var v6=l(),c6=C0(),q0=import.meta.require("http"),j0=import.meta.require("https"),m2=["ECONNRESET","EPIPE","ETIMEDOUT"],y6=j(($)=>{const U={};for(let G of Object.keys($)){const W=$[G];U[G]=Array.isArray(W)?W.join(","):W}return U},"getTransformedHeaders"),n2=j(($,U,G=0)=>{if(!G)return;const W=setTimeout(()=>{$.destroy(),U(Object.assign(new Error(`Socket timed out without establishing a connection within ${G} ms`),{name:"TimeoutError"}))},G);$.on("socket",(X)=>{if(X.connecting)X.on("connect",()=>{clearTimeout(W)});else clearTimeout(W)})},"setConnectionTimeout"),i2=j(($,{keepAlive:U,keepAliveMsecs:G})=>{if(U!==!0)return;$.on("socket",(W)=>{W.setKeepAlive(U,G||0)})},"setSocketKeepAlive"),o2=j(($,U,G=0)=>{$.setTimeout(G,()=>{$.destroy(),U(Object.assign(new Error(`Connection timed out after ${G} ms`),{name:"TimeoutError"}))})},"setSocketTimeout"),_6=import.meta.require("stream"),k6=1000;j(N0,"writeRequestBody");j(u6,"writeBody");var r2=0,d6=class ${constructor(U){this.socketWarningTimestamp=0,this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((G,W)=>{if(typeof U==="function")U().then((X)=>{G(this.resolveDefaultConfig(X))}).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 X,Z,L;const{sockets:Y,requests:w,maxSockets:F}=U;if(typeof F!=="number"||F===Infinity)return G;const Q=15000;if(Date.now()-Q<G)return G;if(Y&&w)for(let z in Y){const I=((X=Y[z])==null?void 0:X.length)??0,J=((Z=w[z])==null?void 0:Z.length)??0;if(I>=F&&J>=2*F)return(L=W==null?void 0:W.warn)==null||L.call(W,`@smithy/node-http-handler:WARN - socket usage at capacity=${I} and ${J} 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){const{requestTimeout:G,connectionTimeout:W,socketTimeout:X,httpAgent:Z,httpsAgent:L}=U||{};return{connectionTimeout:W,requestTimeout:G??X,httpAgent:(()=>{if(Z instanceof q0.Agent||typeof(Z==null?void 0:Z.destroy)==="function")return Z;return new q0.Agent({keepAlive:!0,maxSockets:50,...Z})})(),httpsAgent:(()=>{if(L instanceof j0.Agent||typeof(L==null?void 0:L.destroy)==="function")return L;return new j0.Agent({keepAlive:!0,maxSockets:50,...L})})(),logger:console}}destroy(){var U,G,W,X;(G=(U=this.config)==null?void 0:U.httpAgent)==null||G.destroy(),(X=(W=this.config)==null?void 0:W.httpsAgent)==null||X.destroy()}async handle(U,{abortSignal:G}={}){if(!this.config)this.config=await this.configProvider;let W;return new Promise((X,Z)=>{let L=void 0;const Y=j(async(V)=>{await L,clearTimeout(W),X(V)},"resolve"),w=j(async(V)=>{await L,clearTimeout(W),Z(V)},"reject");if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(G==null?void 0:G.aborted){const V=new Error("Request aborted");V.name="AbortError",w(V);return}const F=U.protocol==="https:",Q=F?this.config.httpsAgent:this.config.httpAgent;W=setTimeout(()=>{this.socketWarningTimestamp=$.checkSocketUsage(Q,this.socketWarningTimestamp,this.config.logger)},this.config.socketAcquisitionWarningTimeout??(this.config.requestTimeout??2000)+(this.config.connectionTimeout??1000));const z=c6.buildQueryString(U.query||{});let I=void 0;if(U.username!=null||U.password!=null){const V=U.username??"",T=U.password??"";I=`${V}:${T}`}let J=U.path;if(z)J+=`?${z}`;if(U.fragment)J+=`#${U.fragment}`;const M={headers:U.headers,host:U.hostname,method:U.method,path:J,port:U.port,agent:Q,auth:I},R=(F?j0.request:q0.request)(M,(V)=>{const T=new v6.HttpResponse({statusCode:V.statusCode||-1,reason:V.statusMessage,headers:y6(V.headers),body:V});Y({response:T})});if(R.on("error",(V)=>{if(m2.includes(V.code))w(Object.assign(V,{name:"TimeoutError"}));else w(V)}),n2(R,w,this.config.connectionTimeout),o2(R,w,this.config.requestTimeout),G){const V=j(()=>{R.destroy();const T=new Error("Request aborted");T.name="AbortError",w(T)},"onAbort");if(typeof G.addEventListener==="function"){const T=G;T.addEventListener("abort",V,{once:!0}),R.once("close",()=>T.removeEventListener("abort",V))}else G.onabort=V}const E=M.agent;if(typeof E==="object"&&"keepAlive"in E)i2(R,{keepAlive:E.keepAlive,keepAliveMsecs:E.keepAliveMsecs});L=N0(R,U,this.config.requestTimeout).catch((V)=>{return clearTimeout(W),Z(V)})})}updateHttpClientConfig(U,G){this.config=void 0,this.configProvider=this.configProvider.then((W)=>{return{...W,[U]:G}})}httpHandlerConfigs(){return this.config??{}}};j(d6,"NodeHttpHandler");var a2=d6,D6=import.meta.require("http2"),t2=s2(import.meta.require("http2")),p6=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()}}};j(p6,"NodeHttp2ConnectionPool");var e2=p6,g6=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){const W=this.getUrlString(U),X=this.sessionCache.get(W);if(X){const w=X.poll();if(w&&!this.config.disableConcurrency)return w}const Z=t2.default.connect(W);if(this.config.maxConcurrency)Z.settings({maxConcurrentStreams:this.config.maxConcurrency},(w)=>{if(w)throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+U.destination.toString())});Z.unref();const L=j(()=>{Z.destroy(),this.deleteSession(W,Z)},"destroySessionCb");if(Z.on("goaway",L),Z.on("error",L),Z.on("frameError",L),Z.on("close",()=>this.deleteSession(W,Z)),G.requestTimeout)Z.setTimeout(G.requestTimeout,L);const Y=this.sessionCache.get(W)||new e2;return Y.offerLast(Z),this.sessionCache.set(W,Y),Z}deleteSession(U,G){const 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;const X=this.getUrlString(U);(W=this.sessionCache.get(X))==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()}};j(g6,"NodeHttp2ConnectionManager");var $w=g6,s6=class ${constructor(U){this.metadata={handlerProtocol:"h2"},this.connectionManager=new $w({}),this.configProvider=new Promise((G,W)=>{if(typeof U==="function")U().then((X)=>{G(X||{})}).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)}const{requestTimeout:W,disableConcurrentStreams:X}=this.config;return new Promise((Z,L)=>{var Y;let w=!1,F=void 0;const Q=j(async(q)=>{await F,Z(q)},"resolve"),z=j(async(q)=>{await F,L(q)},"reject");if(G==null?void 0:G.aborted){w=!0;const q=new Error("Request aborted");q.name="AbortError",z(q);return}const{hostname:I,method:J,port:M,protocol:H,query:R}=U;let E="";if(U.username!=null||U.password!=null){const q=U.username??"",u=U.password??"";E=`${q}:${u}@`}const V=`${H}//${E}${I}${M?`:${M}`:""}`,T={destination:new URL(V)},A=this.connectionManager.lease(T,{requestTimeout:(Y=this.config)==null?void 0:Y.sessionTimeout,disableConcurrentStreams:X||!1}),S=j((q)=>{if(X)this.destroySession(A);w=!0,z(q)},"rejectWithDestroy"),o=c6.buildQueryString(R||{});let Z1=U.path;if(o)Z1+=`?${o}`;if(U.fragment)Z1+=`#${U.fragment}`;const x=A.request({...U.headers,[D6.constants.HTTP2_HEADER_PATH]:Z1,[D6.constants.HTTP2_HEADER_METHOD]:J});if(A.ref(),x.on("response",(q)=>{const u=new v6.HttpResponse({statusCode:q[":status"]||-1,headers:y6(q),body:x});if(w=!0,Q({response:u}),X)A.close(),this.connectionManager.deleteSession(V,A)}),W)x.setTimeout(W,()=>{x.close();const q=new Error(`Stream timed out because of no activity for ${W} ms`);q.name="TimeoutError",S(q)});if(G){const q=j(()=>{x.close();const u=new Error("Request aborted");u.name="AbortError",S(u)},"onAbort");if(typeof G.addEventListener==="function"){const u=G;u.addEventListener("abort",q,{once:!0}),x.once("close",()=>u.removeEventListener("abort",q))}else G.onabort=q}x.on("frameError",(q,u,zZ)=>{S(new Error(`Frame type id ${q} in stream id ${zZ} has failed with code ${u}.`))}),x.on("error",S),x.on("aborted",()=>{S(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${x.rstCode}.`))}),x.on("close",()=>{if(A.unref(),X)A.destroy();if(!w)S(new Error("Unexpected error: http2 request did not get a response"))}),F=N0(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()}};j(s6,"NodeHttp2Handler");var Uw=s6,l6=class $ extends _6.Writable{constructor(){super(...arguments);this.bufferedBytes=[]}_write(U,G,W){this.bufferedBytes.push(U),W()}};j(l6,"Collector");var Gw=l6,Ww=j(($)=>{if(Xw($))return m6($);return new Promise((U,G)=>{const W=new Gw;$.pipe(W),$.on("error",(X)=>{W.end(),G(X)}),W.on("error",G),W.on("finish",function(){const X=new Uint8Array(Buffer.concat(this.bufferedBytes));U(X)})})},"streamCollector"),Xw=j(($)=>typeof ReadableStream==="function"&&$ instanceof ReadableStream,"isReadableStreamInstance");j(m6,"collectReadableStream")});var W8=B((FJ,G8)=>{var a6=function($=0){return new Promise((U,G)=>{if($)setTimeout(()=>{const W=new Error(`Request did not complete within ${$} ms`);W.name="TimeoutError",G(W)},$)})};async function e6($){const U=await U8($),G=Iw.fromBase64(U);return new Uint8Array(G)}async function $8($){const U=[],G=$.getReader();let W=!1,X=0;while(!W){const{done:Y,value:w}=await G.read();if(w)U.push(w),X+=w.length;W=Y}const Z=new Uint8Array(X);let L=0;for(let Y of U)Z.set(Y,L),L+=Y.length;return Z}var U8=function($){return new Promise((U,G)=>{const W=new FileReader;W.onloadend=()=>{if(W.readyState!==2)return G(new Error("Reader aborted too early"));const X=W.result??"",Z=X.indexOf(","),L=Z>-1?Z+1:X.length;U(X.substring(L))},W.onabort=()=>G(new Error("Read aborted")),W.onerror=()=>G(W.error),W.readAsDataURL($)})},E$=Object.defineProperty,Zw=Object.getOwnPropertyDescriptor,Lw=Object.getOwnPropertyNames,Yw=Object.prototype.hasOwnProperty,m=($,U)=>E$($,"name",{value:U,configurable:!0}),ww=($,U)=>{for(var G in U)E$($,G,{get:U[G],enumerable:!0})},Fw=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of Lw(U))if(!Yw.call($,X)&&X!==G)E$($,X,{get:()=>U[X],enumerable:!(W=Zw(U,X))||W.enumerable})}return $},Qw=($)=>Fw(E$({},"__esModule",{value:!0}),$),r6={};ww(r6,{FetchHttpHandler:()=>Jw,keepAliveSupport:()=>V$,streamCollector:()=>Kw});G8.exports=Qw(r6);var o6=l(),zw=C0();m(a6,"requestTimeout");var V$={supported:void 0},t6=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(V$.supported===void 0)V$.supported=Boolean(typeof Request!=="undefined"&&"keepalive"in new Request("https://[::1]"))}destroy(){}async handle(U,{abortSignal:G}={}){if(!this.config)this.config=await this.configProvider;const W=this.config.requestTimeout,X=this.config.keepAlive===!0,Z=this.config.credentials;if(G==null?void 0:G.aborted){const E=new Error("Request aborted");return E.name="AbortError",Promise.reject(E)}let L=U.path;const Y=zw.buildQueryString(U.query||{});if(Y)L+=`?${Y}`;if(U.fragment)L+=`#${U.fragment}`;let w="";if(U.username!=null||U.password!=null){const E=U.username??"",V=U.password??"";w=`${E}:${V}@`}const{port:F,method:Q}=U,z=`${U.protocol}//${w}${U.hostname}${F?`:${F}`:""}${L}`,I=Q==="GET"||Q==="HEAD"?void 0:U.body,J={body:I,headers:new Headers(U.headers),method:Q,credentials:Z};if(I)J.duplex="half";if(typeof AbortController!=="undefined")J.signal=G;if(V$.supported)J.keepalive=X;let M=m(()=>{},"removeSignalEventListener");const H=new Request(z,J),R=[fetch(H).then((E)=>{const V=E.headers,T={};for(let S of V.entries())T[S[0]]=S[1];if(E.body==null)return E.blob().then((S)=>({response:new o6.HttpResponse({headers:T,reason:E.statusText,statusCode:E.status,body:S})}));return{response:new o6.HttpResponse({headers:T,reason:E.statusText,statusCode:E.status,body:E.body})}}),a6(W)];if(G)R.push(new Promise((E,V)=>{const T=m(()=>{const A=new Error("Request aborted");A.name="AbortError",V(A)},"onAbort");if(typeof G.addEventListener==="function"){const A=G;A.addEventListener("abort",T,{once:!0}),M=m(()=>A.removeEventListener("abort",T),"removeSignalEventListener")}else G.onabort=T}));return Promise.race(R).finally(M)}updateHttpClientConfig(U,G){this.config=void 0,this.configProvider=this.configProvider.then((W)=>{return W[U]=G,W})}httpHandlerConfigs(){return this.config??{}}};m(t6,"FetchHttpHandler");var Jw=t6,Iw=M$(),Kw=m(($)=>{if(typeof Blob==="function"&&$ instanceof Blob)return e6($);return $8($)},"streamCollector");m(e6,"collectBlob");m($8,"collectStream");m(U8,"readToBase64")});var c1=B((X8)=>{Object.defineProperty(X8,"__esModule",{value:!0});X8.isReadableStream=void 0;var Mw=($)=>{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)};X8.isReadableStream=Mw});var J8=B((Q8)=>{Object.defineProperty(Q8,"__esModule",{value:!0});Q8.sdkStreamMixin=void 0;var Rw=W8(),Bw=M$(),Vw=F8(),Ew=t(),L8=c1(),Y8="The stream has already been transformed.",Hw=($)=>{var U,G;if(!w8($)&&!L8.isReadableStream($)){const L=((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 ${L}`)}let W=!1;const X=async()=>{if(W)throw new Error(Y8);return W=!0,await Rw.streamCollector($)},Z=(L)=>{if(typeof L.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 L.stream()};return Object.assign($,{transformToByteArray:X,transformToString:async(L)=>{const Y=await X();if(L==="base64")return Bw.toBase64(Y);else if(L==="hex")return Vw.toHex(Y);else if(L===void 0||L==="utf8"||L==="utf-8")return Ew.toUtf8(Y);else if(typeof TextDecoder==="function")return new TextDecoder(L).decode(Y);else throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(W)throw new Error(Y8);if(W=!0,w8($))return Z($);else if(L8.isReadableStream($))return $;else throw new Error(`Cannot transform payload to web stream, got ${$}`)}})};Q8.sdkStreamMixin=Hw;var w8=($)=>typeof Blob==="function"&&$ instanceof Blob});var R8=B((K8)=>{Object.defineProperty(K8,"__esModule",{value:!0});K8.sdkStreamMixin=void 0;var Tw=i6(),Aw=x1(),P0=import.meta.require("stream"),fw=import.meta.require("util"),Ow=J8(),I8="The stream has already been transformed.",Cw=($)=>{var U,G;if(!($ instanceof P0.Readable))try{return Ow.sdkStreamMixin($)}catch(Z){const L=((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 ${L}`)}let W=!1;const X=async()=>{if(W)throw new Error(I8);return W=!0,await Tw.streamCollector($)};return Object.assign($,{transformToByteArray:X,transformToString:async(Z)=>{const L=await X();if(Z===void 0||Buffer.isEncoding(Z))return Aw.fromArrayBuffer(L.buffer,L.byteOffset,L.byteLength).toString(Z);else return new fw.TextDecoder(Z).decode(L)},transformToWebStream:()=>{if(W)throw new Error(I8);if($.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof P0.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,P0.Readable.toWeb($)}})};K8.sdkStreamMixin=Cw});var E8=B((B8)=>{async function qw($){if(typeof $.stream==="function")$=$.stream();return $.tee()}Object.defineProperty(B8,"__esModule",{value:!0});B8.splitStream=void 0;B8.splitStream=qw});var f8=B((T8)=>{async function Pw($){if(Nw.isReadableStream($))return jw.splitStream($);const U=new H8.PassThrough,G=new H8.PassThrough;return $.pipe(U),$.pipe(G),[U,G]}Object.defineProperty(T8,"__esModule",{value:!0});T8.splitStream=void 0;var H8=import.meta.require("stream"),jw=E8(),Nw=c1();T8.splitStream=Pw});var q8=B((O8)=>{async function bw($,U){var G;let W=0;const X=[],Z=$.getReader();let L=!1;while(!L){const{done:F,value:Q}=await Z.read();if(Q)X.push(Q),W+=(G=Q===null||Q===void 0?void 0:Q.byteLength)!==null&&G!==void 0?G:0;if(W>=U)break;L=F}Z.releaseLock();const Y=new Uint8Array(Math.min(U,W));let w=0;for(let F of X){if(F.byteLength>Y.byteLength-w){Y.set(F.subarray(0,Y.byteLength-w),w);break}else Y.set(F,w);w+=F.length}return Y}Object.defineProperty(O8,"__esModule",{value:!0});O8.headStream=void 0;O8.headStream=bw});var b8=B((N8)=>{Object.defineProperty(N8,"__esModule",{value:!0});N8.headStream=void 0;var Sw=import.meta.require("stream"),kw=q8(),Dw=c1(),hw=($,U)=>{if(Dw.isReadableStream($))return kw.headStream($,U);return new Promise((G,W)=>{const X=new j8;X.limit=U,$.pipe(X),$.on("error",(Z)=>{X.end(),W(Z)}),X.on("error",W),X.on("finish",function(){const Z=new Uint8Array(Buffer.concat(this.buffers));G(Z)})})};N8.headStream=hw;class j8 extends Sw.Writable{constructor(){super(...arguments);this.buffers=[],this.limit=Infinity,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){const X=this.bytesBuffered-this.limit,Z=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=Z.subarray(0,Z.byteLength-X),this.emit("finish")}G()}}});var v8=B((BJ,z1)=>{var D8=function($,U="utf-8"){if(U==="base64")return S8.toBase64($);return k8.toUtf8($)},h8=function($,U){if(U==="base64")return S0.mutate(S8.fromBase64($));return S0.mutate(k8.fromUtf8($))},H$=Object.defineProperty,xw=Object.getOwnPropertyDescriptor,vw=Object.getOwnPropertyNames,cw=Object.prototype.hasOwnProperty,k0=($,U)=>H$($,"name",{value:U,configurable:!0}),yw=($,U)=>{for(var G in U)H$($,G,{get:U[G],enumerable:!0})},b0=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of vw(U))if(!cw.call($,X)&&X!==G)H$($,X,{get:()=>U[X],enumerable:!(W=xw(U,X))||W.enumerable})}return $},y1=($,U,G)=>(b0($,U,"default"),G&&b0(G,U,"default")),_w=($)=>b0(H$({},"__esModule",{value:!0}),$),Q1={};yw(Q1,{Uint8ArrayBlobAdapter:()=>S0});z1.exports=_w(Q1);var S8=M$(),k8=t();k0(D8,"transformToString");k0(h8,"transformFromString");var x8=class $ extends Uint8Array{static fromString(U,G="utf-8"){switch(typeof U){case"string":return h8(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 D8(this,U)}};k0(x8,"Uint8ArrayBlobAdapter");var S0=x8;y1(Q1,C6(),z1.exports);y1(Q1,R8(),z1.exports);y1(Q1,f8(),z1.exports);y1(Q1,b8(),z1.exports);y1(Q1,c1(),z1.exports)});var f1=B((VJ,Z4)=>{var r8=function($){const U=$.getUTCFullYear(),G=$.getUTCMonth(),W=$.getUTCDay(),X=$.getUTCDate(),Z=$.getUTCHours(),L=$.getUTCMinutes(),Y=$.getUTCSeconds(),w=X<10?`0${X}`:`${X}`,F=Z<10?`0${Z}`:`${Z}`,Q=L<10?`0${L}`:`${L}`,z=Y<10?`0${Y}`:`${Y}`;return`${IF[W]}, ${w} ${g0[G]} ${U} ${F}:${Q}:${z} GMT`},f$=function($){return encodeURIComponent($).replace(/[!'()*]/g,function(U){return"%"+U.charCodeAt(0).toString(16).toUpperCase()})},s0=function($,U,G){let W,X,Z;if(typeof U==="undefined"&&typeof G==="undefined")W={},Z=$;else if(W=$,typeof U==="function")return X=U,Z=G,mF(W,X,Z);else Z=U;for(let L of Object.keys(Z)){if(!Array.isArray(Z[L])){W[L]=Z[L];continue}W4(W,null,Z,L)}return W},X4=function($,U,G){if(G<=0||!Number.isInteger(G))throw new Error("Invalid number of delimiters ("+G+") for splitEvery.");const W=$.split(U);if(G===1)return W;const X=[];let Z="";for(let L=0;L<W.length;L++){if(Z==="")Z=W[L];else Z+=U+W[L];if((L+1)%G===0)X.push(Z),Z=""}if(Z!=="")X.push(Z);return X},O$=Object.defineProperty,uw=Object.getOwnPropertyDescriptor,dw=Object.getOwnPropertyNames,pw=Object.prototype.hasOwnProperty,K=($,U)=>O$($,"name",{value:U,configurable:!0}),gw=($,U)=>{for(var G in U)O$($,G,{get:U[G],enumerable:!0})},sw=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of dw(U))if(!pw.call($,X)&&X!==G)O$($,X,{get:()=>U[X],enumerable:!(W=uw(U,X))||W.enumerable})}return $},lw=($)=>sw(O$({},"__esModule",{value:!0}),$),y8={};gw(y8,{Client:()=>nw,Command:()=>g8,LazyJsonString:()=>gF,NoOpLogger:()=>mw,SENSITIVE_STRING:()=>rw,ServiceException:()=>SF,StringWrapper:()=>g1,_json:()=>_0,collectBody:()=>iw,convertMap:()=>sF,createAggregatedClient:()=>aw,dateToUtcString:()=>r8,decorateServiceException:()=>t8,emitWarningIfUnsupportedVersion:()=>xF,expectBoolean:()=>ew,expectByte:()=>y0,expectFloat32:()=>T$,expectInt:()=>UF,expectInt32:()=>v0,expectLong:()=>d1,expectNonNull:()=>WF,expectNumber:()=>u1,expectObject:()=>l8,expectShort:()=>c0,expectString:()=>XF,expectUnion:()=>ZF,extendedEncodeURIComponent:()=>f$,getArrayIfSingleItem:()=>pF,getDefaultClientConfiguration:()=>uF,getDefaultExtensionConfiguration:()=>$4,getValueFromTextNode:()=>U4,handleFloat:()=>wF,limitedParseDouble:()=>p0,limitedParseFloat:()=>FF,limitedParseFloat32:()=>QF,loadConfigsForDefaultMode:()=>hF,logger:()=>p1,map:()=>s0,parseBoolean:()=>tw,parseEpochTimestamp:()=>AF,parseRfc3339DateTime:()=>MF,parseRfc3339DateTimeWithOffset:()=>BF,parseRfc7231DateTime:()=>TF,resolveDefaultRuntimeConfig:()=>dF,resolvedPath:()=>oF,serializeDateTime:()=>aF,serializeFloat:()=>rF,splitEvery:()=>X4,strictParseByte:()=>o8,strictParseDouble:()=>d0,strictParseFloat:()=>LF,strictParseFloat32:()=>m8,strictParseInt:()=>zF,strictParseInt32:()=>JF,strictParseLong:()=>i8,strictParseShort:()=>H1,take:()=>lF,throwDefaultError:()=>e8,withBaseException:()=>kF});Z4.exports=lw(y8);var _8=class ${trace(){}debug(){}info(){}warn(){}error(){}};K(_8,"NoOpLogger");var mw=_8,u8=Z6(),d8=class ${constructor(U){this.middlewareStack=u8.constructStack(),this.config=U}send(U,G,W){const X=typeof G!=="function"?G:void 0,Z=typeof G==="function"?G:W,L=U.resolveMiddleware(this.middlewareStack,this.config,X);if(Z)L(U).then((Y)=>Z(null,Y.output),(Y)=>Z(Y)).catch(()=>{});else return L(U).then((Y)=>Y.output)}destroy(){if(this.config.requestHandler.destroy)this.config.requestHandler.destroy()}};K(d8,"Client");var nw=d8,D0=v8(),iw=K(async($=new Uint8Array,U)=>{if($ instanceof Uint8Array)return D0.Uint8ArrayBlobAdapter.mutate($);if(!$)return D0.Uint8ArrayBlobAdapter.mutate(new Uint8Array);const G=U.streamCollector($);return D0.Uint8ArrayBlobAdapter.mutate(await G)},"collectBody"),x0=L1(),p8=class ${constructor(){this.middlewareStack=u8.constructStack()}static classBuilder(){return new ow}resolveMiddlewareWithContext(U,G,W,{middlewareFn:X,clientName:Z,commandName:L,inputFilterSensitiveLog:Y,outputFilterSensitiveLog:w,smithyContext:F,additionalContext:Q,CommandCtor:z}){for(let R of X.bind(this)(z,U,G,W))this.middlewareStack.use(R);const I=U.concat(this.middlewareStack),{logger:J}=G,M={logger:J,clientName:Z,commandName:L,inputFilterSensitiveLog:Y,outputFilterSensitiveLog:w,[x0.SMITHY_CONTEXT_KEY]:{commandInstance:this,...F},...Q},{requestHandler:H}=G;return I.resolve((R)=>H.handle(R.request,W||{}),M)}};K(p8,"Command");var g8=p8,s8=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;const G=this;let W;return W=(U=class extends g8{constructor(...[X]){super();this.serialize=G._serializer,this.deserialize=G._deserializer,this.input=X??{},G._init(this)}static getEndpointParameterInstructions(){return G._ep}resolveMiddleware(X,Z,L){return this.resolveMiddlewareWithContext(X,Z,L,{CommandCtor:W,middlewareFn:G._middlewareFn,clientName:G._clientName,commandName:G._commandName,inputFilterSensitiveLog:G._inputFilterSensitiveLog,outputFilterSensitiveLog:G._outputFilterSensitiveLog,smithyContext:G._smithyContext,additionalContext:G._additionalContext})}},K(U,"CommandRef"),U)}};K(s8,"ClassBuilder");var ow=s8,rw="***SensitiveInformation***",aw=K(($,U)=>{for(let G of Object.keys($)){const W=$[G],X=K(async function(L,Y,w){const F=new W(L);if(typeof Y==="function")this.send(F,Y);else if(typeof w==="function"){if(typeof Y!=="object")throw new Error(`Expected http options but got ${typeof Y}`);this.send(F,Y||{},w)}else return this.send(F,Y)},"methodImpl"),Z=(G[0].toLowerCase()+G.slice(1)).replace(/Command$/,"");U.prototype[Z]=X}},"createAggregatedClient"),tw=K(($)=>{switch($){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${$}"`)}},"parseBoolean"),ew=K(($)=>{if($===null||$===void 0)return;if(typeof $==="number"){if($===0||$===1)p1.warn(A$(`Expected boolean, got ${typeof $}: ${$}`));if($===0)return!1;if($===1)return!0}if(typeof $==="string"){const U=$.toLowerCase();if(U==="false"||U==="true")p1.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"),u1=K(($)=>{if($===null||$===void 0)return;if(typeof $==="string"){const U=parseFloat($);if(!Number.isNaN(U)){if(String(U)!==String($))p1.warn(A$(`Expected number but observed string: ${$}`));return U}}if(typeof $==="number")return $;throw new TypeError(`Expected number, got ${typeof $}: ${$}`)},"expectNumber"),$F=Math.ceil(340282346638528860000000000000000000000),T$=K(($)=>{const U=u1($);if(U!==void 0&&!Number.isNaN(U)&&U!==Infinity&&U!==(-Infinity)){if(Math.abs(U)>$F)throw new TypeError(`Expected 32-bit float, got ${$}`)}return U},"expectFloat32"),d1=K(($)=>{if($===null||$===void 0)return;if(Number.isInteger($)&&!Number.isNaN($))return $;throw new TypeError(`Expected integer, got ${typeof $}: ${$}`)},"expectLong"),UF=d1,v0=K(($)=>u0($,32),"expectInt32"),c0=K(($)=>u0($,16),"expectShort"),y0=K(($)=>u0($,8),"expectByte"),u0=K(($,U)=>{const G=d1($);if(G!==void 0&&GF(G,U)!==G)throw new TypeError(`Expected ${U}-bit integer, got ${$}`);return G},"expectSizedInt"),GF=K(($,U)=>{switch(U){case 32:return Int32Array.of($)[0];case 16:return Int16Array.of($)[0];case 8:return Int8Array.of($)[0]}},"castInt"),WF=K(($,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"),l8=K(($)=>{if($===null||$===void 0)return;if(typeof $==="object"&&!Array.isArray($))return $;const U=Array.isArray($)?"array":typeof $;throw new TypeError(`Expected object, got ${U}: ${$}`)},"expectObject"),XF=K(($)=>{if($===null||$===void 0)return;if(typeof $==="string")return $;if(["boolean","number","bigint"].includes(typeof $))return p1.warn(A$(`Expected string, got ${typeof $}: ${$}`)),String($);throw new TypeError(`Expected string, got ${typeof $}: ${$}`)},"expectString"),ZF=K(($)=>{if($===null||$===void 0)return;const U=l8($),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"),d0=K(($)=>{if(typeof $=="string")return u1(A1($));return u1($)},"strictParseDouble"),LF=d0,m8=K(($)=>{if(typeof $=="string")return T$(A1($));return T$($)},"strictParseFloat32"),YF=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,A1=K(($)=>{const U=$.match(YF);if(U===null||U[0].length!==$.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat($)},"parseNumber"),p0=K(($)=>{if(typeof $=="string")return n8($);return u1($)},"limitedParseDouble"),wF=p0,FF=p0,QF=K(($)=>{if(typeof $=="string")return n8($);return T$($)},"limitedParseFloat32"),n8=K(($)=>{switch($){case"NaN":return NaN;case"Infinity":return Infinity;case"-Infinity":return (-Infinity);default:throw new Error(`Unable to parse float value: ${$}`)}},"parseFloatString"),i8=K(($)=>{if(typeof $==="string")return d1(A1($));return d1($)},"strictParseLong"),zF=i8,JF=K(($)=>{if(typeof $==="string")return v0(A1($));return v0($)},"strictParseInt32"),H1=K(($)=>{if(typeof $==="string")return c0(A1($));return c0($)},"strictParseShort"),o8=K(($)=>{if(typeof $==="string")return y0(A1($));return y0($)},"strictParseByte"),A$=K(($)=>{return String(new TypeError($).stack||$).split("\n").slice(0,5).filter((U)=>!U.includes("stackTraceWarning")).join("\n")},"stackTraceWarning"),p1={warn:console.warn},IF=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],g0=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];K(r8,"dateToUtcString");var KF=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),MF=K(($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const U=KF.exec($);if(!U)throw new TypeError("Invalid RFC-3339 date-time value");const[G,W,X,Z,L,Y,w,F]=U,Q=H1(T1(W)),z=s(X,"month",1,12),I=s(Z,"day",1,31);return _1(Q,z,I,{hours:L,minutes:Y,seconds:w,fractionalMilliseconds:F})},"parseRfc3339DateTime"),RF=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),BF=K(($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const U=RF.exec($);if(!U)throw new TypeError("Invalid RFC-3339 date-time value");const[G,W,X,Z,L,Y,w,F,Q]=U,z=H1(T1(W)),I=s(X,"month",1,12),J=s(Z,"day",1,31),M=_1(z,I,J,{hours:L,minutes:Y,seconds:w,fractionalMilliseconds:F});if(Q.toUpperCase()!="Z")M.setTime(M.getTime()-bF(Q));return M},"parseRfc3339DateTimeWithOffset"),VF=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$/),EF=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$/),HF=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})$/),TF=K(($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let U=VF.exec($);if(U){const[G,W,X,Z,L,Y,w,F]=U;return _1(H1(T1(Z)),h0(X),s(W,"day",1,31),{hours:L,minutes:Y,seconds:w,fractionalMilliseconds:F})}if(U=EF.exec($),U){const[G,W,X,Z,L,Y,w,F]=U;return CF(_1(fF(Z),h0(X),s(W,"day",1,31),{hours:L,minutes:Y,seconds:w,fractionalMilliseconds:F}))}if(U=HF.exec($),U){const[G,W,X,Z,L,Y,w,F]=U;return _1(H1(T1(F)),h0(W),s(X.trimLeft(),"day",1,31),{hours:Z,minutes:L,seconds:Y,fractionalMilliseconds:w})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),AF=K(($)=>{if($===null||$===void 0)return;let U;if(typeof $==="number")U=$;else if(typeof $==="string")U=d0($);else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(U)||U===Infinity||U===(-Infinity))throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(U*1000))},"parseEpochTimestamp"),_1=K(($,U,G,W)=>{const X=U-1;return jF($,X,G),new Date(Date.UTC($,X,G,s(W.hours,"hour",0,23),s(W.minutes,"minute",0,59),s(W.seconds,"seconds",0,60),PF(W.fractionalMilliseconds)))},"buildDate"),fF=K(($)=>{const U=(new Date()).getUTCFullYear(),G=Math.floor(U/100)*100+H1(T1($));if(G<U)return G+100;return G},"parseTwoDigitYear"),OF=1576800000000,CF=K(($)=>{if($.getTime()-(new Date()).getTime()>OF)return new Date(Date.UTC($.getUTCFullYear()-100,$.getUTCMonth(),$.getUTCDate(),$.getUTCHours(),$.getUTCMinutes(),$.getUTCSeconds(),$.getUTCMilliseconds()));return $},"adjustRfc850Year"),h0=K(($)=>{const U=g0.indexOf($);if(U<0)throw new TypeError(`Invalid month: ${$}`);return U+1},"parseMonthByShortName"),qF=[31,28,31,30,31,30,31,31,30,31,30,31],jF=K(($,U,G)=>{let W=qF[U];if(U===1&&NF($))W=29;if(G>W)throw new TypeError(`Invalid day for ${g0[U]} in ${$}: ${G}`)},"validateDayOfMonth"),NF=K(($)=>{return $%4===0&&($%100!==0||$%400===0)},"isLeapYear"),s=K(($,U,G,W)=>{const X=o8(T1($));if(X<G||X>W)throw new TypeError(`${U} must be between ${G} and ${W}, inclusive`);return X},"parseDateValue"),PF=K(($)=>{if($===null||$===void 0)return 0;return m8("0."+$)*1000},"parseMilliseconds"),bF=K(($)=>{const U=$[0];let G=1;if(U=="+")G=1;else if(U=="-")G=-1;else throw new TypeError(`Offset direction, ${U}, must be "+" or "-"`);const W=Number($.substring(1,3)),X=Number($.substring(4,6));return G*(W*60+X)*60*1000},"parseOffsetToMilliseconds"),T1=K(($)=>{let U=0;while(U<$.length-1&&$.charAt(U)==="0")U++;if(U===0)return $;return $.slice(U)},"stripLeadingZeroes"),a8=class $ extends Error{constructor(U){super(U.message);Object.setPrototypeOf(this,$.prototype),this.name=U.name,this.$fault=U.$fault,this.$metadata=U.$metadata}};K(a8,"ServiceException");var SF=a8,t8=K(($,U={})=>{Object.entries(U).filter(([,W])=>W!==void 0).forEach(([W,X])=>{if($[W]==null||$[W]==="")$[W]=X});const G=$.message||$.Message||"UnknownError";return $.message=G,delete $.Message,$},"decorateServiceException"),e8=K(({output:$,parsedBody:U,exceptionCtor:G,errorCode:W})=>{const X=DF($),Z=X.httpStatusCode?X.httpStatusCode+"":void 0,L=new G({name:(U==null?void 0:U.code)||(U==null?void 0:U.Code)||W||Z||"UnknownError",$fault:"client",$metadata:X});throw t8(L,U)},"throwDefaultError"),kF=K(($)=>{return({output:U,parsedBody:G,errorCode:W})=>{e8({output:U,parsedBody:G,exceptionCtor:$,errorCode:W})}},"withBaseException"),DF=K(($)=>({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"),hF=K(($)=>{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"),c8=!1,xF=K(($)=>{if($&&!c8&&parseInt($.substring(1,$.indexOf(".")))<16)c8=!0},"emitWarningIfUnsupportedVersion"),vF=K(($)=>{const U=[];for(let G in x0.AlgorithmId){const W=x0.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"),cF=K(($)=>{const U={};return $.checksumAlgorithms().forEach((G)=>{U[G.algorithmId()]=G.checksumConstructor()}),U},"resolveChecksumRuntimeConfig"),yF=K(($)=>{let U=$.retryStrategy;return{setRetryStrategy(G){U=G},retryStrategy(){return U}}},"getRetryConfiguration"),_F=K(($)=>{const U={};return U.retryStrategy=$.retryStrategy(),U},"resolveRetryRuntimeConfig"),$4=K(($)=>{return{...vF($),...yF($)}},"getDefaultExtensionConfiguration"),uF=$4,dF=K(($)=>{return{...cF($),..._F($)}},"resolveDefaultRuntimeConfig");K(f$,"extendedEncodeURIComponent");var pF=K(($)=>Array.isArray($)?$:[$],"getArrayIfSingleItem"),U4=K(($)=>{for(let G in $)if($.hasOwnProperty(G)&&$[G]["#text"]!==void 0)$[G]=$[G]["#text"];else if(typeof $[G]==="object"&&$[G]!==null)$[G]=U4($[G]);return $},"getValueFromTextNode"),g1=K(function(){const $=Object.getPrototypeOf(this).constructor,G=new(Function.bind.apply(String,[null,...arguments]));return Object.setPrototypeOf(G,$.prototype),G},"StringWrapper");g1.prototype=Object.create(String.prototype,{constructor:{value:g1,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(g1,String);var G4=class $ extends g1{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))}};K(G4,"LazyJsonString");var gF=G4;K(s0,"map");var sF=K(($)=>{const U={};for(let[G,W]of Object.entries($||{}))U[G]=[,W];return U},"convertMap"),lF=K(($,U)=>{const G={};for(let W in U)W4(G,$,U,W);return G},"take"),mF=K(($,U,G)=>{return s0($,Object.entries(G).reduce((W,[X,Z])=>{if(Array.isArray(Z))W[X]=Z;else if(typeof Z==="function")W[X]=[U,Z()];else W[X]=[U,Z];return W},{}))},"mapWithFilter"),W4=K(($,U,G,W)=>{if(U!==null){let L=G[W];if(typeof L==="function")L=[,L];const[Y=nF,w=iF,F=W]=L;if(typeof Y==="function"&&Y(U[F])||typeof Y!=="function"&&!!Y)$[W]=w(U[F]);return}let[X,Z]=G[W];if(typeof Z==="function"){let L;const Y=X===void 0&&(L=Z())!=null,w=typeof X==="function"&&!!X(void 0)||typeof X!=="function"&&!!X;if(Y)$[W]=L;else if(w)$[W]=Z()}else{const L=X===void 0&&Z!=null,Y=typeof X==="function"&&!!X(Z)||typeof X!=="function"&&!!X;if(L||Y)$[W]=Z}},"applyInstruction"),nF=K(($)=>$!=null,"nonNullish"),iF=K(($)=>$,"pass"),oF=K(($,U,G,W,X,Z)=>{if(U!=null&&U[G]!==void 0){const L=W();if(L.length<=0)throw new Error("Empty value provided for input HTTP label: "+G+".");$=$.replace(X,Z?L.split("/").map((Y)=>f$(Y)).join("/"):f$(L))}else throw new Error("No value provided for input HTTP label: "+G+".");return $},"resolvedPath"),rF=K(($)=>{if($!==$)return"NaN";switch($){case Infinity:return"Infinity";case (-Infinity):return"-Infinity";default:return $}},"serializeFloat"),aF=K(($)=>$.toISOString().replace(".000Z","Z"),"serializeDateTime"),_0=K(($)=>{if($==null)return{};if(Array.isArray($))return $.filter((U)=>U!=null).map(_0);if(typeof $==="object"){const U={};for(let G of Object.keys($)){if($[G]==null)continue;U[G]=_0($[G])}return U}return $},"_json");K(X4,"splitEvery")});var w4=B((L4)=>{Object.defineProperty(L4,"__esModule",{value:!0});L4.isStreamingPayload=void 0;var tF=import.meta.require("stream"),eF=($)=>($===null||$===void 0?void 0:$.body)instanceof tF.Readable||typeof ReadableStream!=="undefined"&&($===null||$===void 0?void 0:$.body)instanceof ReadableStream;L4.isStreamingPayload=eF});var q4=B((TJ,C4)=>{var{defineProperty:C$,getOwnPropertyDescriptor:UQ,getOwnPropertyNames:GQ}=Object,WQ=Object.prototype.hasOwnProperty,P=($,U)=>C$($,"name",{value:U,configurable:!0}),XQ=($,U)=>{for(var G in U)C$($,G,{get:U[G],enumerable:!0})},ZQ=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of GQ(U))if(!WQ.call($,X)&&X!==G)C$($,X,{get:()=>U[X],enumerable:!(W=UQ(U,X))||W.enumerable})}return $},LQ=($)=>ZQ(C$({},"__esModule",{value:!0}),$),Q4={};XQ(Q4,{AdaptiveRetryStrategy:()=>FQ,CONFIG_MAX_ATTEMPTS:()=>m0,CONFIG_RETRY_MODE:()=>E4,ENV_MAX_ATTEMPTS:()=>l0,ENV_RETRY_MODE:()=>V4,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>QQ,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>JQ,StandardRetryStrategy:()=>R4,defaultDelayDecider:()=>J4,defaultRetryDecider:()=>I4,getOmitRetryHeadersPlugin:()=>IQ,getRetryAfterHint:()=>O4,getRetryPlugin:()=>EQ,omitRetryHeadersMiddleware:()=>H4,omitRetryHeadersMiddlewareOptions:()=>T4,resolveRetryConfig:()=>zQ,retryMiddleware:()=>A4,retryMiddlewareOptions:()=>f4});C4.exports=LQ(Q4);var O1=l(),z4=$Q(),C=$6(),YQ=P(($,U)=>{const G=$,W=(U==null?void 0:U.noRetryIncrement)??C.NO_RETRY_INCREMENT,X=(U==null?void 0:U.retryCost)??C.RETRY_COST,Z=(U==null?void 0:U.timeoutRetryCost)??C.TIMEOUT_RETRY_COST;let L=$;const Y=P((z)=>z.name==="TimeoutError"?Z:X,"getCapacityAmount"),w=P((z)=>Y(z)<=L,"hasRetryTokens");return Object.freeze({hasRetryTokens:w,retrieveRetryTokens:P((z)=>{if(!w(z))throw new Error("No retry token available");const I=Y(z);return L-=I,I},"retrieveRetryTokens"),releaseRetryTokens:P((z)=>{L+=z??W,L=Math.min(L,G)},"releaseRetryTokens")})},"getDefaultRetryQuota"),J4=P(($,U)=>Math.floor(Math.min(C.MAXIMUM_RETRY_DELAY,Math.random()*2**U*$)),"defaultDelayDecider"),e=w1(),I4=P(($)=>{if(!$)return!1;return e.isRetryableByTrait($)||e.isClockSkewError($)||e.isThrottlingError($)||e.isTransientError($)},"defaultRetryDecider"),K4=P(($)=>{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"),M4=class ${constructor(U,G){this.maxAttemptsProvider=U,this.mode=C.RETRY_MODES.STANDARD,this.retryDecider=(G==null?void 0:G.retryDecider)??I4,this.delayDecider=(G==null?void 0:G.delayDecider)??J4,this.retryQuota=(G==null?void 0:G.retryQuota)??YQ(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 X,Z=0,L=0;const Y=await this.getMaxAttempts(),{request:w}=G;if(O1.HttpRequest.isInstance(w))w.headers[C.INVOCATION_ID_HEADER]=z4.v4();while(!0)try{if(O1.HttpRequest.isInstance(w))w.headers[C.REQUEST_HEADER]=`attempt=${Z+1}; max=${Y}`;if(W==null?void 0:W.beforeRequest)await W.beforeRequest();const{response:F,output:Q}=await U(G);if(W==null?void 0:W.afterRequest)W.afterRequest(F);return this.retryQuota.releaseRetryTokens(X),Q.$metadata.attempts=Z+1,Q.$metadata.totalRetryDelay=L,{response:F,output:Q}}catch(F){const Q=K4(F);if(Z++,this.shouldRetry(Q,Z,Y)){X=this.retryQuota.retrieveRetryTokens(Q);const z=this.delayDecider(e.isThrottlingError(Q)?C.THROTTLING_RETRY_DELAY_BASE:C.DEFAULT_RETRY_DELAY_BASE,Z),I=wQ(Q.$response),J=Math.max(I||0,z);L+=J,await new Promise((M)=>setTimeout(M,J));continue}if(!Q.$metadata)Q.$metadata={};throw Q.$metadata.attempts=Z,Q.$metadata.totalRetryDelay=L,Q}}};P(M4,"StandardRetryStrategy");var R4=M4,wQ=P(($)=>{if(!O1.HttpResponse.isInstance($))return;const U=Object.keys($.headers).find((Z)=>Z.toLowerCase()==="retry-after");if(!U)return;const G=$.headers[U],W=Number(G);if(!Number.isNaN(W))return W*1000;return new Date(G).getTime()-Date.now()},"getDelayFromRetryAfterHeader"),B4=class $ extends R4{constructor(U,G){const{rateLimiter:W,...X}=G??{};super(U,X);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)}})}};P(B4,"AdaptiveRetryStrategy");var FQ=B4,F4=b1(),l0="AWS_MAX_ATTEMPTS",m0="max_attempts",QQ={environmentVariableSelector:($)=>{const U=$[l0];if(!U)return;const G=parseInt(U);if(Number.isNaN(G))throw new Error(`Environment variable ${l0} mast be a number, got "${U}"`);return G},configFileSelector:($)=>{const U=$[m0];if(!U)return;const G=parseInt(U);if(Number.isNaN(G))throw new Error(`Shared config file entry ${m0} mast be a number, got "${U}"`);return G},default:C.DEFAULT_MAX_ATTEMPTS},zQ=P(($)=>{const{retryStrategy:U}=$,G=F4.normalizeProvider($.maxAttempts??C.DEFAULT_MAX_ATTEMPTS);return{...$,maxAttempts:G,retryStrategy:async()=>{if(U)return U;if(await F4.normalizeProvider($.retryMode)()===C.RETRY_MODES.ADAPTIVE)return new C.AdaptiveRetryStrategy(G);return new C.StandardRetryStrategy(G)}}},"resolveRetryConfig"),V4="AWS_RETRY_MODE",E4="retry_mode",JQ={environmentVariableSelector:($)=>$[V4],configFileSelector:($)=>$[E4],default:C.DEFAULT_RETRY_MODE},H4=P(()=>($)=>async(U)=>{const{request:G}=U;if(O1.HttpRequest.isInstance(G))delete G.headers[C.INVOCATION_ID_HEADER],delete G.headers[C.REQUEST_HEADER];return $(U)},"omitRetryHeadersMiddleware"),T4={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},IQ=P(($)=>({applyToStack:(U)=>{U.addRelativeTo(H4(),T4)}}),"getOmitRetryHeadersPlugin"),KQ=f1(),MQ=w4(),A4=P(($)=>(U,G)=>async(W)=>{var X;let Z=await $.retryStrategy();const L=await $.maxAttempts();if(RQ(Z)){Z=Z;let Y=await Z.acquireInitialRetryToken(G.partition_id),w=new Error,F=0,Q=0;const{request:z}=W,I=O1.HttpRequest.isInstance(z);if(I)z.headers[C.INVOCATION_ID_HEADER]=z4.v4();while(!0)try{if(I)z.headers[C.REQUEST_HEADER]=`attempt=${F+1}; max=${L}`;const{response:J,output:M}=await U(W);return Z.recordSuccess(Y),M.$metadata.attempts=F+1,M.$metadata.totalRetryDelay=Q,{response:J,output:M}}catch(J){const M=BQ(J);if(w=K4(J),I&&MQ.isStreamingPayload(z))throw(X=G.logger instanceof KQ.NoOpLogger?console:G.logger)==null||X.warn("An error was encountered in a non-retryable streaming request."),w;try{Y=await Z.refreshRetryTokenForRetry(Y,M)}catch(R){if(!w.$metadata)w.$metadata={};throw w.$metadata.attempts=F+1,w.$metadata.totalRetryDelay=Q,w}F=Y.getRetryCount();const H=Y.getRetryDelay();Q+=H,await new Promise((R)=>setTimeout(R,H))}}else{if(Z=Z,Z==null?void 0:Z.mode)G.userAgent=[...G.userAgent||[],["cfg/retry-mode",Z.mode]];return Z.retry(U,W)}},"retryMiddleware"),RQ=P(($)=>typeof $.acquireInitialRetryToken!=="undefined"&&typeof $.refreshRetryTokenForRetry!=="undefined"&&typeof $.recordSuccess!=="undefined","isRetryStrategyV2"),BQ=P(($)=>{const U={error:$,errorType:VQ($)},G=O4($.$response);if(G)U.retryAfterHint=G;return U},"getRetryErrorInfo"),VQ=P(($)=>{if(e.isThrottlingError($))return"THROTTLING";if(e.isTransientError($))return"TRANSIENT";if(e.isServerError($))return"SERVER_ERROR";return"CLIENT_ERROR"},"getRetryErrorType"),f4={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},EQ=P(($)=>({applyToStack:(U)=>{U.add(A4($),f4)}}),"getRetryPlugin"),O4=P(($)=>{if(!O1.HttpResponse.isInstance($))return;const U=Object.keys($.headers).find((Z)=>Z.toLowerCase()==="retry-after");if(!U)return;const G=$.headers[U],W=Number(G);if(!Number.isNaN(W))return new Date(W*1000);return new Date(G)},"getRetryAfterHint")});var i0=B((AJ,l4)=>{var P4=function($){const U=new Map;for(let G of $)U.set(G.schemeId,G);return U},d4=function($,U){return new g4($,U)},s4=function($,U,G,W,X){return O(async function*Z(L,Y,...w){let F=L.startingToken||void 0,Q=!0,z;while(Q){if(Y[G]=F,X)Y[X]=Y[X]??L.pageSize;if(L.client instanceof $)z=await gQ(U,L.client,Y,...w);else throw new Error(`Invalid client, expected instance of ${$.name}`);yield z;const I=F;F=sQ(z,W),Q=!!(F&&(!L.stopOnSameToken||F!==I))}return},"paginateOperation")},j$=Object.defineProperty,HQ=Object.getOwnPropertyDescriptor,TQ=Object.getOwnPropertyNames,AQ=Object.prototype.hasOwnProperty,O=($,U)=>j$($,"name",{value:U,configurable:!0}),fQ=($,U)=>{for(var G in U)j$($,G,{get:U[G],enumerable:!0})},OQ=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of TQ(U))if(!AQ.call($,X)&&X!==G)j$($,X,{get:()=>U[X],enumerable:!(W=HQ(U,X))||W.enumerable})}return $},CQ=($)=>OQ(j$({},"__esModule",{value:!0}),$),j4={};fQ(j4,{DefaultIdentityProviderConfig:()=>hQ,EXPIRATION_MS:()=>_4,HttpApiKeyAuthSigner:()=>xQ,HttpBearerAuthSigner:()=>vQ,NoAuthSigner:()=>cQ,RequestBuilder:()=>g4,createIsIdentityExpiredFunction:()=>y4,createPaginator:()=>s4,doesIdentityRequireRefresh:()=>u4,getHttpAuthSchemeEndpointRuleSetPlugin:()=>jQ,getHttpAuthSchemePlugin:()=>PQ,getHttpSigningPlugin:()=>DQ,getSmithyContext:()=>uQ,httpAuthSchemeEndpointRuleSetMiddlewareOptions:()=>b4,httpAuthSchemeMiddleware:()=>n0,httpAuthSchemeMiddlewareOptions:()=>S4,httpSigningMiddleware:()=>k4,httpSigningMiddlewareOptions:()=>D4,isIdentityExpired:()=>yQ,memoizeIdentityProvider:()=>_Q,normalizeProvider:()=>dQ,requestBuilder:()=>d4});l4.exports=CQ(j4);var N4=b1();O(P4,"convertHttpAuthSchemesToMap");var n0=O(($,U)=>(G,W)=>async(X)=>{var Z;const L=$.httpAuthSchemeProvider(await U.httpAuthSchemeParametersProvider($,W,X.input)),Y=P4($.httpAuthSchemes),w=N4.getSmithyContext(W),F=[];for(let Q of L){const z=Y.get(Q.schemeId);if(!z){F.push(`HttpAuthScheme \`${Q.schemeId}\` was not enabled for this service.`);continue}const I=z.identityProvider(await U.identityProviderConfigProvider($));if(!I){F.push(`HttpAuthScheme \`${Q.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:J={},signingProperties:M={}}=((Z=Q.propertiesExtractor)==null?void 0:Z.call(Q,$,W))||{};Q.identityProperties=Object.assign(Q.identityProperties||{},J),Q.signingProperties=Object.assign(Q.signingProperties||{},M),w.selectedHttpAuthScheme={httpAuthOption:Q,identity:await I(Q.identityProperties),signer:z.signer};break}if(!w.selectedHttpAuthScheme)throw new Error(F.join("\n"));return G(X)},"httpAuthSchemeMiddleware"),qQ=jG(),b4={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:qQ.endpointMiddlewareOptions.name},jQ=O(($,{httpAuthSchemeParametersProvider:U,identityProviderConfigProvider:G})=>({applyToStack:(W)=>{W.addRelativeTo(n0($,{httpAuthSchemeParametersProvider:U,identityProviderConfigProvider:G}),b4)}}),"getHttpAuthSchemeEndpointRuleSetPlugin"),NQ=Q0(),S4={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:NQ.serializerMiddlewareOption.name},PQ=O(($,{httpAuthSchemeParametersProvider:U,identityProviderConfigProvider:G})=>({applyToStack:(W)=>{W.addRelativeTo(n0($,{httpAuthSchemeParametersProvider:U,identityProviderConfigProvider:G}),S4)}}),"getHttpAuthSchemePlugin"),N$=l(),bQ=O(($)=>(U)=>{throw U},"defaultErrorHandler"),SQ=O(($,U)=>{},"defaultSuccessHandler"),k4=O(($)=>(U,G)=>async(W)=>{if(!N$.HttpRequest.isInstance(W.request))return U(W);const Z=N4.getSmithyContext(G).selectedHttpAuthScheme;if(!Z)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:L={}},identity:Y,signer:w}=Z,F=await U({...W,request:await w.sign(W.request,Y,L)}).catch((w.errorHandler||bQ)(L));return(w.successHandler||SQ)(F.response,L),F},"httpSigningMiddleware"),kQ=q4(),D4={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:kQ.retryMiddlewareOptions.name},DQ=O(($)=>({applyToStack:(U)=>{U.addRelativeTo(k4($),D4)}}),"getHttpSigningPlugin"),h4=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)}};O(h4,"DefaultIdentityProviderConfig");var hQ=h4,q$=L1(),x4=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");const X=N$.HttpRequest.clone(U);if(W.in===q$.HttpApiKeyAuthLocation.QUERY)X.query[W.name]=G.apiKey;else if(W.in===q$.HttpApiKeyAuthLocation.HEADER)X.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 X}};O(x4,"HttpApiKeyAuthSigner");var xQ=x4,v4=class ${async sign(U,G,W){const X=N$.HttpRequest.clone(U);if(!G.token)throw new Error("request could not be signed with `token` since the `token` is not defined");return X.headers.Authorization=`Bearer ${G.token}`,X}};O(v4,"HttpBearerAuthSigner");var vQ=v4,c4=class ${async sign(U,G,W){return U}};O(c4,"NoAuthSigner");var cQ=c4,y4=O(($)=>(U)=>u4(U)&&U.expiration.getTime()-Date.now()<$,"createIsIdentityExpiredFunction"),_4=300000,yQ=y4(_4),u4=O(($)=>$.expiration!==void 0,"doesIdentityRequireRefresh"),_Q=O(($,U,G)=>{if($===void 0)return;const W=typeof $!=="function"?async()=>Promise.resolve($):$;let X,Z,L,Y=!1;const w=O(async(F)=>{if(!Z)Z=W(F);try{X=await Z,L=!0,Y=!1}finally{Z=void 0}return X},"coalesceProvider");if(U===void 0)return async(F)=>{if(!L||(F==null?void 0:F.forceRefresh))X=await w(F);return X};return async(F)=>{if(!L||(F==null?void 0:F.forceRefresh))X=await w(F);if(Y)return X;if(!G(X))return Y=!0,X;if(U(X))return await w(F),X;return X}},"memoizeIdentityProvider"),uQ=O(($)=>$[q$.SMITHY_CONTEXT_KEY]||($[q$.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),dQ=O(($)=>{if(typeof $==="function")return $;const U=Promise.resolve($);return()=>U},"normalizeProvider"),pQ=f1();O(d4,"requestBuilder");var p4=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(){const{hostname:U,protocol:G="https",port:W,path:X}=await this.context.endpoint();this.path=X;for(let Z of this.resolvePathStack)Z(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,X){return this.resolvePathStack.push((Z)=>{this.path=pQ.resolvedPath(Z,this.input,U,G,W,X)}),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}};O(p4,"RequestBuilder");var g4=p4,gQ=O(async($,U,G,...W)=>{return await U.send(new $(G),...W)},"makePagedClientRequest");O(s4,"createPaginator");var sQ=O(($,U)=>{let G=$;const W=U.split(".");for(let X of W){if(!G||typeof G!=="object")return;G=G[X]}return G},"get")});var yW=B((bB,cW)=>{var{defineProperty:s$,getOwnPropertyDescriptor:O9,getOwnPropertyNames:C9}=Object,q9=Object.prototype.hasOwnProperty,j9=($,U)=>s$($,"name",{value:U,configurable:!0}),N9=($,U)=>{for(var G in U)s$($,G,{get:U[G],enumerable:!0})},P9=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of C9(U))if(!q9.call($,X)&&X!==G)s$($,X,{get:()=>U[X],enumerable:!(W=O9(U,X))||W.enumerable})}return $},b9=($)=>P9(s$({},"__esModule",{value:!0}),$),vW={};N9(vW,{emitWarningIfUnsupportedVersion:()=>S9});cW.exports=b9(vW);var xW=!1,S9=j9(($)=>{if($&&!xW&&parseInt($.substring(1,$.indexOf(".")))<18)xW=!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 XX=B((SB,WX)=>{var EU=function($){for(let U=0;U<8;U++)$[U]^=255;for(let U=7;U>-1;U--)if($[U]++,$[U]!==0)break},o$=Object.defineProperty,k9=Object.getOwnPropertyDescriptor,D9=Object.getOwnPropertyNames,h9=Object.prototype.hasOwnProperty,b=($,U)=>o$($,"name",{value:U,configurable:!0}),x9=($,U)=>{for(var G in U)o$($,G,{get:U[G],enumerable:!0})},v9=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of D9(U))if(!h9.call($,X)&&X!==G)o$($,X,{get:()=>U[X],enumerable:!(W=k9(U,X))||W.enumerable})}return $},c9=($)=>v9(o$({},"__esModule",{value:!0}),$),gW={};x9(gW,{SignatureV4:()=>F7,clearCredentialCache:()=>$7,createScope:()=>n$,getCanonicalHeaders:()=>VU,getCanonicalQuery:()=>aW,getPayloadHash:()=>i$,getSigningKey:()=>rW,moveHeadersToQuery:()=>UX,prepareRequest:()=>HU});WX.exports=c9(gW);var _W=b1(),MU=t(),y9="X-Amz-Algorithm",_9="X-Amz-Credential",sW="X-Amz-Date",u9="X-Amz-SignedHeaders",d9="X-Amz-Expires",lW="X-Amz-Signature",mW="X-Amz-Security-Token",nW="authorization",iW=sW.toLowerCase(),p9="date",g9=[nW,iW,p9],s9=lW.toLowerCase(),BU="x-amz-content-sha256",l9=mW.toLowerCase(),m9={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},n9=/^proxy-/,i9=/^sec-/,RU="AWS4-HMAC-SHA256",o9="AWS4-HMAC-SHA256-PAYLOAD",r9="UNSIGNED-PAYLOAD",a9=50,oW="aws4_request",t9=604800,W1=F8(),e9=t(),P1={},m$=[],n$=b(($,U,G)=>`${$}/${U}/${G}/${oW}`,"createScope"),rW=b(async($,U,G,W,X)=>{const Z=await uW($,U.secretAccessKey,U.accessKeyId),L=`${G}:${W}:${X}:${W1.toHex(Z)}:${U.sessionToken}`;if(L in P1)return P1[L];m$.push(L);while(m$.length>a9)delete P1[m$.shift()];let Y=`AWS4${U.secretAccessKey}`;for(let w of[G,W,X,oW])Y=await uW($,Y,w);return P1[L]=Y},"getSigningKey"),$7=b(()=>{m$.length=0,Object.keys(P1).forEach(($)=>{delete P1[$]})},"clearCredentialCache"),uW=b(($,U,G)=>{const W=new $(U);return W.update(e9.toUint8Array(G)),W.digest()},"hmac"),VU=b(({headers:$},U,G)=>{const W={};for(let X of Object.keys($).sort()){if($[X]==null)continue;const Z=X.toLowerCase();if(Z in m9||(U==null?void 0:U.has(Z))||n9.test(Z)||i9.test(Z)){if(!G||G&&!G.has(Z))continue}W[Z]=$[X].trim().replace(/\s+/g," ")}return W},"getCanonicalHeaders"),i1=f0(),aW=b(({query:$={}})=>{const U=[],G={};for(let W of Object.keys($).sort()){if(W.toLowerCase()===s9)continue;U.push(W);const X=$[W];if(typeof X==="string")G[W]=`${i1.escapeUri(W)}=${i1.escapeUri(X)}`;else if(Array.isArray(X))G[W]=X.slice(0).reduce((Z,L)=>Z.concat([`${i1.escapeUri(W)}=${i1.escapeUri(L)}`]),[]).sort().join("&")}return U.map((W)=>G[W]).filter((W)=>W).join("&")},"getCanonicalQuery"),U7=B0(),G7=t(),i$=b(async({headers:$,body:U},G)=>{for(let W of Object.keys($))if(W.toLowerCase()===BU)return $[W];if(U==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";else if(typeof U==="string"||ArrayBuffer.isView(U)||U7.isArrayBuffer(U)){const W=new G;return W.update(G7.toUint8Array(U)),W1.toHex(await W.digest())}return r9},"getPayloadHash"),dW=t(),tW=class ${format(U){const G=[];for(let Z of Object.keys(U)){const L=dW.fromUtf8(Z);G.push(Uint8Array.from([L.byteLength]),L,this.formatHeaderValue(U[Z]))}const W=new Uint8Array(G.reduce((Z,L)=>Z+L.byteLength,0));let X=0;for(let Z of G)W.set(Z,X),X+=Z.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":const G=new DataView(new ArrayBuffer(3));return G.setUint8(0,3),G.setInt16(1,U.value,!1),new Uint8Array(G.buffer);case"integer":const W=new DataView(new ArrayBuffer(5));return W.setUint8(0,4),W.setInt32(1,U.value,!1),new Uint8Array(W.buffer);case"long":const X=new Uint8Array(9);return X[0]=5,X.set(U.value.bytes,1),X;case"binary":const Z=new DataView(new ArrayBuffer(3+U.value.byteLength));Z.setUint8(0,6),Z.setUint16(1,U.value.byteLength,!1);const L=new Uint8Array(Z.buffer);return L.set(U.value,3),L;case"string":const Y=dW.fromUtf8(U.value),w=new DataView(new ArrayBuffer(3+Y.byteLength));w.setUint8(0,7),w.setUint16(1,Y.byteLength,!1);const F=new Uint8Array(w.buffer);return F.set(Y,3),F;case"timestamp":const Q=new Uint8Array(9);return Q[0]=8,Q.set(Z7.fromNumber(U.value.valueOf()).bytes,1),Q;case"uuid":if(!X7.test(U.value))throw new Error(`Invalid UUID received: ${U.value}`);const z=new Uint8Array(17);return z[0]=9,z.set(W1.fromHex(U.value.replace(/\-/g,"")),1),z}}};b(tW,"HeaderFormatter");var W7=tW,X7=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,eW=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`);const G=new Uint8Array(8);for(let W=7,X=Math.abs(Math.round(U));W>-1&&X>0;W--,X/=256)G[W]=X;if(U<0)EU(G);return new $(G)}valueOf(){const U=this.bytes.slice(0),G=U[0]&128;if(G)EU(U);return parseInt(W1.toHex(U),16)*(G?-1:1)}toString(){return String(this.valueOf())}};b(eW,"Int64");var Z7=eW;b(EU,"negate");var L7=b(($,U)=>{$=$.toLowerCase();for(let G of Object.keys(U))if($===G.toLowerCase())return!0;return!1},"hasHeader"),$X=l(),UX=b(($,U={})=>{var G;const{headers:W,query:X={}}=$X.HttpRequest.clone($);for(let Z of Object.keys(W)){const L=Z.toLowerCase();if(L.slice(0,6)==="x-amz-"&&!((G=U.unhoistableHeaders)==null?void 0:G.has(L)))X[Z]=W[Z],delete W[Z]}return{...$,headers:W,query:X}},"moveHeadersToQuery"),HU=b(($)=>{$=$X.HttpRequest.clone($);for(let U of Object.keys($.headers))if(g9.indexOf(U.toLowerCase())>-1)delete $.headers[U];return $},"prepareRequest"),Y7=b(($)=>w7($).toISOString().replace(/\.\d{3}Z$/,"Z"),"iso8601"),w7=b(($)=>{if(typeof $==="number")return new Date($*1000);if(typeof $==="string"){if(Number($))return new Date(Number($)*1000);return new Date($)}return $},"toDate"),GX=class ${constructor({applyChecksum:U,credentials:G,region:W,service:X,sha256:Z,uriEscapePath:L=!0}){this.headerFormatter=new W7,this.service=X,this.sha256=Z,this.uriEscapePath=L,this.applyChecksum=typeof U==="boolean"?U:!0,this.regionProvider=_W.normalizeProvider(W),this.credentialProvider=_W.normalizeProvider(G)}async presign(U,G={}){const{signingDate:W=new Date,expiresIn:X=3600,unsignableHeaders:Z,unhoistableHeaders:L,signableHeaders:Y,signingRegion:w,signingService:F}=G,Q=await this.credentialProvider();this.validateResolvedCredentials(Q);const z=w??await this.regionProvider(),{longDate:I,shortDate:J}=l$(W);if(X>t9)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const M=n$(J,z,F??this.service),H=UX(HU(U),{unhoistableHeaders:L});if(Q.sessionToken)H.query[mW]=Q.sessionToken;H.query[y9]=RU,H.query[_9]=`${Q.accessKeyId}/${M}`,H.query[sW]=I,H.query[d9]=X.toString(10);const R=VU(H,Z,Y);return H.query[u9]=pW(R),H.query[lW]=await this.getSignature(I,M,this.getSigningKey(Q,z,J,F),this.createCanonicalRequest(H,R,await i$(U,this.sha256))),H}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:X,signingRegion:Z,signingService:L}){const Y=Z??await this.regionProvider(),{shortDate:w,longDate:F}=l$(W),Q=n$(w,Y,L??this.service),z=await i$({headers:{},body:G},this.sha256),I=new this.sha256;I.update(U);const J=W1.toHex(await I.digest()),M=[o9,F,Q,X,J,z].join("\n");return this.signString(M,{signingDate:W,signingRegion:Y,signingService:L})}async signMessage(U,{signingDate:G=new Date,signingRegion:W,signingService:X}){return this.signEvent({headers:this.headerFormatter.format(U.message.headers),payload:U.message.body},{signingDate:G,signingRegion:W,signingService:X,priorSignature:U.priorSignature}).then((L)=>{return{message:U.message,signature:L}})}async signString(U,{signingDate:G=new Date,signingRegion:W,signingService:X}={}){const Z=await this.credentialProvider();this.validateResolvedCredentials(Z);const L=W??await this.regionProvider(),{shortDate:Y}=l$(G),w=new this.sha256(await this.getSigningKey(Z,L,Y,X));return w.update(MU.toUint8Array(U)),W1.toHex(await w.digest())}async signRequest(U,{signingDate:G=new Date,signableHeaders:W,unsignableHeaders:X,signingRegion:Z,signingService:L}={}){const Y=await this.credentialProvider();this.validateResolvedCredentials(Y);const w=Z??await this.regionProvider(),F=HU(U),{longDate:Q,shortDate:z}=l$(G),I=n$(z,w,L??this.service);if(F.headers[iW]=Q,Y.sessionToken)F.headers[l9]=Y.sessionToken;const J=await i$(F,this.sha256);if(!L7(BU,F.headers)&&this.applyChecksum)F.headers[BU]=J;const M=VU(F,X,W),H=await this.getSignature(Q,I,this.getSigningKey(Y,w,z,L),this.createCanonicalRequest(F,M,J));return F.headers[nW]=`${RU} Credential=${Y.accessKeyId}/${I}, SignedHeaders=${pW(M)}, Signature=${H}`,F}createCanonicalRequest(U,G,W){const X=Object.keys(G).sort();return`${U.method}
10
+ ${this.getCanonicalPath(U)}
11
+ ${aW(U)}
12
+ ${X.map((Z)=>`${Z}:${G[Z]}`).join("\n")}
13
+
14
+ ${X.join(";")}
15
+ ${W}`}async createStringToSign(U,G,W){const X=new this.sha256;X.update(MU.toUint8Array(W));const Z=await X.digest();return`${RU}
16
+ ${U}
17
+ ${G}
18
+ ${W1.toHex(Z)}`}getCanonicalPath({path:U}){if(this.uriEscapePath){const G=[];for(let Z of U.split("/")){if((Z==null?void 0:Z.length)===0)continue;if(Z===".")continue;if(Z==="..")G.pop();else G.push(Z)}const W=`${(U==null?void 0:U.startsWith("/"))?"/":""}${G.join("/")}${G.length>0&&(U==null?void 0:U.endsWith("/"))?"/":""}`;return i1.escapeUri(W).replace(/%2F/g,"/")}return U}async getSignature(U,G,W,X){const Z=await this.createStringToSign(U,G,X),L=new this.sha256(await W);return L.update(MU.toUint8Array(Z)),W1.toHex(await L.digest())}getSigningKey(U,G,W,X){return rW(this.sha256,U,W,G,X||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(GX,"SignatureV4");var F7=GX,l$=b(($)=>{const U=Y7($).replace(/[\-:]/g,"");return{longDate:U,shortDate:U.slice(0,8)}},"formatDate"),pW=b(($)=>Object.keys($).sort().join(";"),"getCanonicalHeaderList")});var KX=B((kB,IX)=>{var{defineProperty:r$,getOwnPropertyDescriptor:Q7,getOwnPropertyNames:z7}=Object,J7=Object.prototype.hasOwnProperty,D=($,U)=>r$($,"name",{value:U,configurable:!0}),I7=($,U)=>{for(var G in U)r$($,G,{get:U[G],enumerable:!0})},K7=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of z7(U))if(!J7.call($,X)&&X!==G)r$($,X,{get:()=>U[X],enumerable:!(W=Q7(U,X))||W.enumerable})}return $},M7=($)=>K7(r$({},"__esModule",{value:!0}),$),FX={};I7(FX,{AWSSDKSigV4Signer:()=>E7,AwsSdkSigV4ASigner:()=>T7,AwsSdkSigV4Signer:()=>fU,NODE_SIGV4A_CONFIG_OPTIONS:()=>O7,resolveAWSSDKSigV4Config:()=>C7,resolveAwsSdkSigV4AConfig:()=>f7,resolveAwsSdkSigV4Config:()=>JX,validateSigningProperties:()=>AU});IX.exports=M7(FX);var R7=l(),B7=l(),ZX=D(($)=>{var U,G;return B7.HttpResponse.isInstance($)?((U=$.headers)==null?void 0:U.date)??((G=$.headers)==null?void 0:G.Date):void 0},"getDateHeader"),TU=D(($)=>new Date(Date.now()+$),"getSkewCorrectedDate"),V7=D(($,U)=>Math.abs(TU(U).getTime()-$)>=300000,"isClockSkewed"),LX=D(($,U)=>{const G=Date.parse($);if(V7(G,U))return G-Date.now();return U},"getUpdatedSystemClockOffset"),o1=D(($,U)=>{if(!U)throw new Error(`Property \`${$}\` is not resolved for AWS SDK SigV4Auth`);return U},"throwSigningPropertyError"),AU=D(async($)=>{var U,G,W;const X=o1("context",$.context),Z=o1("config",$.config),L=(W=(G=(U=X.endpointV2)==null?void 0:U.properties)==null?void 0:G.authSchemes)==null?void 0:W[0],w=await o1("signer",Z.signer)(L),F=$==null?void 0:$.signingRegion,Q=$==null?void 0:$.signingRegionSet,z=$==null?void 0:$.signingName;return{config:Z,signer:w,signingRegion:F,signingRegionSet:Q,signingName:z}},"validateSigningProperties"),QX=class ${async sign(U,G,W){var X;if(!R7.HttpRequest.isInstance(U))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const Z=await AU(W),{config:L,signer:Y}=Z;let{signingRegion:w,signingName:F}=Z;const Q=W.context;if(((X=Q==null?void 0:Q.authSchemes)==null?void 0:X.length)??0>1){const[I,J]=Q.authSchemes;if((I==null?void 0:I.name)==="sigv4a"&&(J==null?void 0:J.name)==="sigv4")w=(J==null?void 0:J.signingRegion)??w,F=(J==null?void 0:J.signingName)??F}return await Y.sign(U,{signingDate:TU(L.systemClockOffset),signingRegion:w,signingService:F})}errorHandler(U){return(G)=>{const W=G.ServerTime??ZX(G.$response);if(W){const X=o1("config",U.config),Z=X.systemClockOffset;if(X.systemClockOffset=LX(W,X.systemClockOffset),X.systemClockOffset!==Z&&G.$metadata)G.$metadata.clockSkewCorrected=!0}throw G}}successHandler(U,G){const W=ZX(U);if(W){const X=o1("config",G.config);X.systemClockOffset=LX(W,X.systemClockOffset)}}};D(QX,"AwsSdkSigV4Signer");var fU=QX,E7=fU,H7=l(),zX=class $ extends fU{async sign(U,G,W){var X;if(!H7.HttpRequest.isInstance(U))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const{config:Z,signer:L,signingRegion:Y,signingRegionSet:w,signingName:F}=await AU(W),z=(await((X=Z.sigv4aSigningRegionSet)==null?void 0:X.call(Z))??w??[Y]).join(",");return await L.sign(U,{signingDate:TU(Z.systemClockOffset),signingRegion:z,signingService:F})}};D(zX,"AwsSdkSigV4ASigner");var T7=zX,A7=i0(),YX=Y0(),f7=D(($)=>{return $.sigv4aSigningRegionSet=A7.normalizeProvider($.sigv4aSigningRegionSet),$},"resolveAwsSdkSigV4AConfig"),O7={environmentVariableSelector($){if($.AWS_SIGV4A_SIGNING_REGION_SET)return $.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((U)=>U.trim());throw new YX.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 YX.ProviderError("sigv4a_signing_region_set not set in profile.",{tryNextLink:!0})},default:void 0},M1=i0(),wX=XX(),JX=D(($)=>{let U;if($.credentials)U=M1.memoizeIdentityProvider($.credentials,M1.isIdentityExpired,M1.doesIdentityRequireRefresh);if(!U)if($.credentialDefaultProvider)U=M1.normalizeProvider($.credentialDefaultProvider(Object.assign({},$,{parentClientConfig:$})));else U=D(async()=>{throw new Error("`credentials` is missing")},"normalizedCreds");const{signingEscapePath:G=!0,systemClockOffset:W=$.systemClockOffset||0,sha256:X}=$;let Z;if($.signer)Z=M1.normalizeProvider($.signer);else if($.regionInfoProvider)Z=D(()=>M1.normalizeProvider($.region)().then(async(L)=>[await $.regionInfoProvider(L,{useFipsEndpoint:await $.useFipsEndpoint(),useDualstackEndpoint:await $.useDualstackEndpoint()})||{},L]).then(([L,Y])=>{const{signingRegion:w,signingService:F}=L;$.signingRegion=$.signingRegion||w||Y,$.signingName=$.signingName||F||$.serviceId;const Q={...$,credentials:U,region:$.signingRegion,service:$.signingName,sha256:X,uriEscapePath:G};return new($.signerConstructor||wX.SignatureV4)(Q)}),"signer");else Z=D(async(L)=>{L=Object.assign({},{name:"sigv4",signingName:$.signingName||$.defaultSigningName,signingRegion:await M1.normalizeProvider($.region)(),properties:{}},L);const{signingRegion:Y,signingName:w}=L;$.signingRegion=$.signingRegion||Y,$.signingName=$.signingName||w||$.serviceId;const F={...$,credentials:U,region:$.signingRegion,service:$.signingName,sha256:X,uriEscapePath:G};return new($.signerConstructor||wX.SignatureV4)(F)},"signer");return{...$,systemClockOffset:W,signingEscapePath:G,credentials:U,signer:Z}},"resolveAwsSdkSigV4Config"),C7=JX});var a$=B((b7)=>{var q7=":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",MX="[: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]["+q7+"]*",j7=new RegExp("^"+MX+"$"),N7=function($,U){const G=[];let W=U.exec($);while(W){const X=[];X.startIndex=U.lastIndex-W[0].length;const Z=W.length;for(let L=0;L<Z;L++)X.push(W[L]);G.push(X),W=U.exec($)}return G},P7=function($){const U=j7.exec($);return!(U===null||typeof U==="undefined")};b7.isExist=function($){return typeof $!=="undefined"};b7.isEmptyObject=function($){return Object.keys($).length===0};b7.merge=function($,U,G){if(U){const W=Object.keys(U),X=W.length;for(let Z=0;Z<X;Z++)if(G==="strict")$[W[Z]]=[U[W[Z]]];else $[W[Z]]=U[W[Z]]}};b7.getValue=function($){if(b7.isExist($))return $;else return""};b7.isName=P7;b7.getAllMatches=N7;b7.nameRegexp=MX});var CU=B((m7)=>{var BX=function($){return $===" "||$==="\t"||$==="\n"||$==="\r"},VX=function($,U){const G=U;for(;U<$.length;U++)if($[U]=="?"||$[U]==" "){const W=$.substr(G,U-G);if(U>5&&W==="xml")return N("InvalidXml","XML declaration allowed only at the start of the document.",k($,U));else if($[U]=="?"&&$[U+1]==">"){U++;break}else continue}return U},EX=function($,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},u7=function($,U){let G="",W="",X=!1;for(;U<$.length;U++){if($[U]===y7||$[U]===_7)if(W==="")W=$[U];else if(W!==$[U]);else W="";else if($[U]===">"){if(W===""){X=!0;break}}G+=$[U]}if(W!=="")return!1;return{value:G,index:U,tagClosed:X}},HX=function($,U){const G=OU.getAllMatches($,d7),W={};for(let X=0;X<G.length;X++){if(G[X][1].length===0)return N("InvalidAttr","Attribute '"+G[X][2]+"' has no space in starting.",r1(G[X]));else if(G[X][3]!==void 0&&G[X][4]===void 0)return N("InvalidAttr","Attribute '"+G[X][2]+"' is without value.",r1(G[X]));else if(G[X][3]===void 0&&!U.allowBooleanAttributes)return N("InvalidAttr","boolean attribute '"+G[X][2]+"' is not allowed.",r1(G[X]));const Z=G[X][2];if(!s7(Z))return N("InvalidAttr","Attribute '"+Z+"' is an invalid name.",r1(G[X]));if(!W.hasOwnProperty(Z))W[Z]=1;else return N("InvalidAttr","Attribute '"+Z+"' is repeated.",r1(G[X]))}return!0},p7=function($,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},g7=function($,U){if(U++,$[U]===";")return-1;if($[U]==="#")return U++,p7($,U);let G=0;for(;U<$.length;U++,G++){if($[U].match(/\w/)&&G<20)continue;if($[U]===";")break;return-1}return U},N=function($,U,G){return{err:{code:$,msg:U,line:G.line||G,col:G.col}}},s7=function($){return OU.isName($)},l7=function($){return OU.isName($)},k=function($,U){const G=$.substring(0,U).split(/\r?\n/);return{line:G.length,col:G[G.length-1].length+1}},r1=function($){return $.startIndex+$[1].length},OU=a$(),c7={allowBooleanAttributes:!1,unpairedTags:[]};m7.validate=function($,U){U=Object.assign({},c7,U);const G=[];let W=!1,X=!1;if($[0]==="\uFEFF")$=$.substr(1);for(let Z=0;Z<$.length;Z++)if($[Z]==="<"&&$[Z+1]==="?"){if(Z+=2,Z=VX($,Z),Z.err)return Z}else if($[Z]==="<"){let L=Z;if(Z++,$[Z]==="!"){Z=EX($,Z);continue}else{let Y=!1;if($[Z]==="/")Y=!0,Z++;let w="";for(;Z<$.length&&$[Z]!==">"&&$[Z]!==" "&&$[Z]!=="\t"&&$[Z]!=="\n"&&$[Z]!=="\r";Z++)w+=$[Z];if(w=w.trim(),w[w.length-1]==="/")w=w.substring(0,w.length-1),Z--;if(!l7(w)){let z;if(w.trim().length===0)z="Invalid space after '<'.";else z="Tag '"+w+"' is an invalid name.";return N("InvalidTag",z,k($,Z))}const F=u7($,Z);if(F===!1)return N("InvalidAttr","Attributes for '"+w+"' have open quote.",k($,Z));let Q=F.value;if(Z=F.index,Q[Q.length-1]==="/"){const z=Z-Q.length;Q=Q.substring(0,Q.length-1);const I=HX(Q,U);if(I===!0)W=!0;else return N(I.err.code,I.err.msg,k($,z+I.err.line))}else if(Y)if(!F.tagClosed)return N("InvalidTag","Closing tag '"+w+"' doesn't have proper closing.",k($,Z));else if(Q.trim().length>0)return N("InvalidTag","Closing tag '"+w+"' can't have attributes or invalid starting.",k($,L));else if(G.length===0)return N("InvalidTag","Closing tag '"+w+"' has not been opened.",k($,L));else{const z=G.pop();if(w!==z.tagName){let I=k($,z.tagStartPos);return N("InvalidTag","Expected closing tag '"+z.tagName+"' (opened in line "+I.line+", col "+I.col+") instead of closing tag '"+w+"'.",k($,L))}if(G.length==0)X=!0}else{const z=HX(Q,U);if(z!==!0)return N(z.err.code,z.err.msg,k($,Z-Q.length+z.err.line));if(X===!0)return N("InvalidXml","Multiple possible root nodes found.",k($,Z));else if(U.unpairedTags.indexOf(w)!==-1);else G.push({tagName:w,tagStartPos:L});W=!0}for(Z++;Z<$.length;Z++)if($[Z]==="<")if($[Z+1]==="!"){Z++,Z=EX($,Z);continue}else if($[Z+1]==="?"){if(Z=VX($,++Z),Z.err)return Z}else break;else if($[Z]==="&"){const z=g7($,Z);if(z==-1)return N("InvalidChar","char '&' is not expected.",k($,Z));Z=z}else if(X===!0&&!BX($[Z]))return N("InvalidXml","Extra text at the end",k($,Z));if($[Z]==="<")Z--}}else{if(BX($[Z]))continue;return N("InvalidChar","char '"+$[Z]+"' is not expected.",k($,Z))}if(!W)return N("InvalidXml","Start tag expected.",1);else if(G.length==1)return N("InvalidTag","Unclosed tag '"+G[0].tagName+"'.",k($,G[0].tagStartPos));else if(G.length>0)return N("InvalidXml","Invalid '"+JSON.stringify(G.map((Z)=>Z.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1});return!0};var y7='"',_7="'",d7=new RegExp('(\\s*)([^\\s=]+)(\\s*=)?(\\s*([\'"])(([\\s\\S])*?)\\5)?',"g")});var AX=B((o7)=>{var TX={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 $}},i7=function($){return Object.assign({},TX,$)};o7.buildOptions=i7;o7.defaultOptions=TX});var CX=B((vB,OX)=>{class fX{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})}}OX.exports=fX});var jX=B((cB,qX)=>{var e7=function($,U){const 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,X=!1,Z=!1,L="";for(;U<$.length;U++)if($[U]==="<"&&!Z){if(X&&Gz($,U)){if(U+=7,[entityName,val,U]=$z($,U+1),val.indexOf("&")===-1)G[Lz(entityName)]={regx:RegExp(`&${entityName};`,"g"),val}}else if(X&&Wz($,U))U+=8;else if(X&&Xz($,U))U+=8;else if(X&&Zz($,U))U+=9;else if(Uz)Z=!0;else throw new Error("Invalid DOCTYPE");W++,L=""}else if($[U]===">"){if(Z){if($[U-1]==="-"&&$[U-2]==="-")Z=!1,W--}else W--;if(W===0)break}else if($[U]==="[")X=!0;else L+=$[U];if(W!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:G,i:U}},$z=function($,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");const W=$[U++];let X="";for(;U<$.length&&$[U]!==W;U++)X+=$[U];return[G,X,U]},Uz=function($,U){if($[U+1]==="!"&&$[U+2]==="-"&&$[U+3]==="-")return!0;return!1},Gz=function($,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},Wz=function($,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},Xz=function($,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},Zz=function($,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},Lz=function($){if(t7.isName($))return $;else throw new Error(`Invalid entity name ${$}`)},t7=a$();qX.exports=e7});var PX=B((yB,NX)=>{var Qz=function($,U={}){if(U=Object.assign({},Fz,U),!$||typeof $!=="string")return $;let G=$.trim();if(U.skipLike!==void 0&&U.skipLike.test(G))return $;else if(U.hex&&Yz.test(G))return Number.parseInt(G,16);else{const W=wz.exec(G);if(W){const X=W[1],Z=W[2];let L=zz(W[3]);const Y=W[4]||W[6];if(!U.leadingZeros&&Z.length>0&&X&&G[2]!==".")return $;else if(!U.leadingZeros&&Z.length>0&&!X&&G[1]!==".")return $;else{const w=Number(G),F=""+w;if(F.search(/[eE]/)!==-1)if(U.eNotation)return w;else return $;else if(Y)if(U.eNotation)return w;else return $;else if(G.indexOf(".")!==-1)if(F==="0"&&L==="")return w;else if(F===L)return w;else if(X&&F==="-"+L)return w;else return $;if(Z)if(L===F)return w;else if(X+L===F)return w;else return $;if(G===F)return w;else if(G===X+F)return w;return $}}else return $}},zz=function($){if($&&$.indexOf(".")!==-1){if($=$.replace(/0+$/,""),$===".")$="0";else if($[0]===".")$="0"+$;else if($[$.length-1]===".")$=$.substr(0,$.length-1);return $}return $},Yz=/^[-+]?0x[a-fA-F0-9]+$/,wz=/^([\-\+])?(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 Fz={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};NX.exports=Qz});var DX=B((_B,kX)=>{var Kz=function($){const U=Object.keys($);for(let G=0;G<U.length;G++){const W=U[G];this.lastEntities[W]={regex:new RegExp("&"+W+";","g"),val:$[W]}}},Mz=function($,U,G,W,X,Z,L){if($!==void 0){if(this.options.trimValues&&!W)$=$.trim();if($.length>0){if(!L)$=this.replaceEntitiesValue($);const Y=this.options.tagValueProcessor(U,$,G,X,Z);if(Y===null||Y===void 0)return $;else if(typeof Y!==typeof $||Y!==$)return Y;else if(this.options.trimValues)return jU($,this.options.parseTagValue,this.options.numberParseOptions);else if($.trim()===$)return jU($,this.options.parseTagValue,this.options.numberParseOptions);else return $}}},Rz=function($){if(this.options.removeNSPrefix){const U=$.split(":"),G=$.charAt(0)==="/"?"/":"";if(U[0]==="xmlns")return"";if(U.length===2)$=G+U[1]}return $},Vz=function($,U,G){if(!this.options.ignoreAttributes&&typeof $==="string"){const W=bX.getAllMatches($,Bz),X=W.length,Z={};for(let L=0;L<X;L++){const Y=this.resolveNameSpace(W[L][1]);let w=W[L][4],F=this.options.attributeNamePrefix+Y;if(Y.length){if(this.options.transformAttributeName)F=this.options.transformAttributeName(F);if(F==="__proto__")F="#__proto__";if(w!==void 0){if(this.options.trimValues)w=w.trim();w=this.replaceEntitiesValue(w);const Q=this.options.attributeValueProcessor(Y,w,U);if(Q===null||Q===void 0)Z[F]=w;else if(typeof Q!==typeof w||Q!==w)Z[F]=Q;else Z[F]=jU(w,this.options.parseAttributeValue,this.options.numberParseOptions)}else if(this.options.allowBooleanAttributes)Z[F]=!0}}if(!Object.keys(Z).length)return;if(this.options.attributesGroupName){const L={};return L[this.options.attributesGroupName]=Z,L}return Z}},Hz=function($,U,G){const W=this.options.updateTag(U.tagname,G,U[":@"]);if(W===!1);else if(typeof W==="string")U.tagname=W,$.addChild(U);else $.addChild(U)},Az=function($,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 $},fz=function($,U,G){const W="*."+G;for(let X in $){const Z=$[X];if(W===Z||U===Z)return!0}return!1},Oz=function($,U,G=">"){let W,X="";for(let Z=U;Z<$.length;Z++){let L=$[Z];if(W){if(L===W)W=""}else if(L==='"'||L==="'")W=L;else if(L===G[0])if(G[1]){if($[Z+1]===G[1])return{data:X,index:Z}}else return{data:X,index:Z};else if(L==="\t")L=" ";X+=L}},R1=function($,U,G,W){const X=$.indexOf(U,G);if(X===-1)throw new Error(W);else return X+U.length-1},qU=function($,U,G,W=">"){const X=Oz($,U+1,W);if(!X)return;let Z=X.data;const L=X.index,Y=Z.search(/\s/);let w=Z,F=!0;if(Y!==-1)w=Z.substring(0,Y),Z=Z.substring(Y+1).trimStart();const Q=w;if(G){const z=w.indexOf(":");if(z!==-1)w=w.substr(z+1),F=w!==X.data.substr(z+1)}return{tagName:w,tagExp:Z,closeIndex:L,attrExpPresent:F,rawTagName:Q}},Cz=function($,U,G){const W=G;let X=1;for(;G<$.length;G++)if($[G]==="<")if($[G+1]==="/"){const Z=R1($,">",G,`${U} is not closed`);if($.substring(G+2,Z).trim()===U){if(X--,X===0)return{tagContent:$.substring(W,G),i:Z}}G=Z}else if($[G+1]==="?")G=R1($,"?>",G+1,"StopNode is not closed.");else if($.substr(G+1,3)==="!--")G=R1($,"-->",G+3,"StopNode is not closed.");else if($.substr(G+1,2)==="![")G=R1($,"]]>",G,"StopNode is not closed.")-2;else{const Z=qU($,G,">");if(Z){if((Z&&Z.tagName)===U&&Z.tagExp[Z.tagExp.length-1]!=="/")X++;G=Z.closeIndex}}},jU=function($,U,G){if(U&&typeof $==="string"){const W=$.trim();if(W==="true")return!0;else if(W==="false")return!1;else return Iz($,G)}else if(bX.isExist($))return $;else return""},bX=a$(),a1=CX(),Jz=jX(),Iz=PX();class SX{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=Kz,this.parseXml=Ez,this.parseTextData=Mz,this.resolveNameSpace=Rz,this.buildAttributesMap=Vz,this.isItStopNode=fz,this.replaceEntitiesValue=Tz,this.readStopNodeData=Cz,this.saveTextToParentTag=Az,this.addChild=Hz}}var Bz=new RegExp('([^\\s=]+)\\s*(=\\s*([\'"])([\\s\\S]*?)\\3)?',"gm"),Ez=function($){$=$.replace(/\r\n?/g,"\n");const U=new a1("!xml");let G=U,W="",X="";for(let Z=0;Z<$.length;Z++)if($[Z]==="<")if($[Z+1]==="/"){const Y=R1($,">",Z,"Closing Tag is not closed.");let w=$.substring(Z+2,Y).trim();if(this.options.removeNSPrefix){const z=w.indexOf(":");if(z!==-1)w=w.substr(z+1)}if(this.options.transformTagName)w=this.options.transformTagName(w);if(G)W=this.saveTextToParentTag(W,G,X);const F=X.substring(X.lastIndexOf(".")+1);if(w&&this.options.unpairedTags.indexOf(w)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${w}>`);let Q=0;if(F&&this.options.unpairedTags.indexOf(F)!==-1)Q=X.lastIndexOf(".",X.lastIndexOf(".")-1),this.tagsNodeStack.pop();else Q=X.lastIndexOf(".");X=X.substring(0,Q),G=this.tagsNodeStack.pop(),W="",Z=Y}else if($[Z+1]==="?"){let Y=qU($,Z,!1,"?>");if(!Y)throw new Error("Pi Tag is not closed.");if(W=this.saveTextToParentTag(W,G,X),this.options.ignoreDeclaration&&Y.tagName==="?xml"||this.options.ignorePiTags);else{const w=new a1(Y.tagName);if(w.add(this.options.textNodeName,""),Y.tagName!==Y.tagExp&&Y.attrExpPresent)w[":@"]=this.buildAttributesMap(Y.tagExp,X,Y.tagName);this.addChild(G,w,X)}Z=Y.closeIndex+1}else if($.substr(Z+1,3)==="!--"){const Y=R1($,"-->",Z+4,"Comment is not closed.");if(this.options.commentPropName){const w=$.substring(Z+4,Y-2);W=this.saveTextToParentTag(W,G,X),G.add(this.options.commentPropName,[{[this.options.textNodeName]:w}])}Z=Y}else if($.substr(Z+1,2)==="!D"){const Y=Jz($,Z);this.docTypeEntities=Y.entities,Z=Y.i}else if($.substr(Z+1,2)==="!["){const Y=R1($,"]]>",Z,"CDATA is not closed.")-2,w=$.substring(Z+9,Y);W=this.saveTextToParentTag(W,G,X);let F=this.parseTextData(w,G.tagname,X,!0,!1,!0,!0);if(F==null)F="";if(this.options.cdataPropName)G.add(this.options.cdataPropName,[{[this.options.textNodeName]:w}]);else G.add(this.options.textNodeName,F);Z=Y+2}else{let Y=qU($,Z,this.options.removeNSPrefix),w=Y.tagName;const F=Y.rawTagName;let{tagExp:Q,attrExpPresent:z,closeIndex:I}=Y;if(this.options.transformTagName)w=this.options.transformTagName(w);if(G&&W){if(G.tagname!=="!xml")W=this.saveTextToParentTag(W,G,X,!1)}const J=G;if(J&&this.options.unpairedTags.indexOf(J.tagname)!==-1)G=this.tagsNodeStack.pop(),X=X.substring(0,X.lastIndexOf("."));if(w!==U.tagname)X+=X?"."+w:w;if(this.isItStopNode(this.options.stopNodes,X,w)){let M="";if(Q.length>0&&Q.lastIndexOf("/")===Q.length-1){if(w[w.length-1]==="/")w=w.substr(0,w.length-1),X=X.substr(0,X.length-1),Q=w;else Q=Q.substr(0,Q.length-1);Z=Y.closeIndex}else if(this.options.unpairedTags.indexOf(w)!==-1)Z=Y.closeIndex;else{const R=this.readStopNodeData($,F,I+1);if(!R)throw new Error(`Unexpected end of ${F}`);Z=R.i,M=R.tagContent}const H=new a1(w);if(w!==Q&&z)H[":@"]=this.buildAttributesMap(Q,X,w);if(M)M=this.parseTextData(M,w,X,!0,z,!0,!0);X=X.substr(0,X.lastIndexOf(".")),H.add(this.options.textNodeName,M),this.addChild(G,H,X)}else{if(Q.length>0&&Q.lastIndexOf("/")===Q.length-1){if(w[w.length-1]==="/")w=w.substr(0,w.length-1),X=X.substr(0,X.length-1),Q=w;else Q=Q.substr(0,Q.length-1);if(this.options.transformTagName)w=this.options.transformTagName(w);const M=new a1(w);if(w!==Q&&z)M[":@"]=this.buildAttributesMap(Q,X,w);this.addChild(G,M,X),X=X.substr(0,X.lastIndexOf("."))}else{const M=new a1(w);if(this.tagsNodeStack.push(G),w!==Q&&z)M[":@"]=this.buildAttributesMap(Q,X,w);this.addChild(G,M,X),G=M}W="",Z=I}}else W+=$[Z];return U.child},Tz=function($){if(this.options.processEntities){for(let U in this.docTypeEntities){const G=this.docTypeEntities[U];$=$.replace(G.regx,G.val)}for(let U in this.lastEntities){const G=this.lastEntities[U];$=$.replace(G.regex,G.val)}if(this.options.htmlEntities)for(let U in this.htmlEntities){const G=this.htmlEntities[U];$=$.replace(G.regex,G.val)}$=$.replace(this.ampEntity.regex,this.ampEntity.val)}return $};kX.exports=SX});var xX=B((bz)=>{var qz=function($,U){return hX($,U)},hX=function($,U,G){let W;const X={};for(let Z=0;Z<$.length;Z++){const L=$[Z],Y=jz(L);let w="";if(G===void 0)w=Y;else w=G+"."+Y;if(Y===U.textNodeName)if(W===void 0)W=L[Y];else W+=""+L[Y];else if(Y===void 0)continue;else if(L[Y]){let F=hX(L[Y],U,w);const Q=Pz(F,U);if(L[":@"])Nz(F,L[":@"],w,U);else if(Object.keys(F).length===1&&F[U.textNodeName]!==void 0&&!U.alwaysCreateTextNode)F=F[U.textNodeName];else if(Object.keys(F).length===0)if(U.alwaysCreateTextNode)F[U.textNodeName]="";else F="";if(X[Y]!==void 0&&X.hasOwnProperty(Y)){if(!Array.isArray(X[Y]))X[Y]=[X[Y]];X[Y].push(F)}else if(U.isArray(Y,w,Q))X[Y]=[F];else X[Y]=F}}if(typeof W==="string"){if(W.length>0)X[U.textNodeName]=W}else if(W!==void 0)X[U.textNodeName]=W;return X},jz=function($){const U=Object.keys($);for(let G=0;G<U.length;G++){const W=U[G];if(W!==":@")return W}},Nz=function($,U,G,W){if(U){const X=Object.keys(U),Z=X.length;for(let L=0;L<Z;L++){const Y=X[L];if(W.isArray(Y,G+"."+Y,!0,!0))$[Y]=[U[Y]];else $[Y]=U[Y]}}},Pz=function($,U){const{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};bz.prettify=qz});var yX=B((dB,cX)=>{var{buildOptions:kz}=AX(),Dz=DX(),{prettify:hz}=xX(),xz=CU();class vX{constructor($){this.externalEntities={},this.options=kz($)}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={};const X=xz.validate($,U);if(X!==!0)throw Error(`${X.err.msg}:${X.err.line}:${X.err.col}`)}const G=new Dz(this.options);G.addExternalEntities(this.externalEntities);const W=G.parseXml($);if(this.options.preserveOrder||W===void 0)return W;else return hz(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 '&#xD;'");else if(U==="&")throw new Error("An entity with value '&' is not permitted");else this.externalEntities[$]=U}}cX.exports=vX});var gX=B((pB,pX)=>{var vz=function($,U){let G="";if(U.format&&U.indentBy.length>0)G="\n";return uX($,U,"",G)},uX=function($,U,G,W){let X="",Z=!1;for(let L=0;L<$.length;L++){const Y=$[L],w=cz(Y);if(w===void 0)continue;let F="";if(G.length===0)F=w;else F=`${G}.${w}`;if(w===U.textNodeName){let M=Y[w];if(!yz(F,U))M=U.tagValueProcessor(w,M),M=dX(M,U);if(Z)X+=W;X+=M,Z=!1;continue}else if(w===U.cdataPropName){if(Z)X+=W;X+=`<![CDATA[${Y[w][0][U.textNodeName]}]]>`,Z=!1;continue}else if(w===U.commentPropName){X+=W+`<!--${Y[w][0][U.textNodeName]}-->`,Z=!0;continue}else if(w[0]==="?"){const M=_X(Y[":@"],U),H=w==="?xml"?"":W;let R=Y[w][0][U.textNodeName];R=R.length!==0?" "+R:"",X+=H+`<${w}${R}${M}?>`,Z=!0;continue}let Q=W;if(Q!=="")Q+=U.indentBy;const z=_X(Y[":@"],U),I=W+`<${w}${z}`,J=uX(Y[w],U,F,Q);if(U.unpairedTags.indexOf(w)!==-1)if(U.suppressUnpairedNode)X+=I+">";else X+=I+"/>";else if((!J||J.length===0)&&U.suppressEmptyNode)X+=I+"/>";else if(J&&J.endsWith(">"))X+=I+`>${J}${W}</${w}>`;else{if(X+=I+">",J&&W!==""&&(J.includes("/>")||J.includes("</")))X+=W+U.indentBy+J+W;else X+=J;X+=`</${w}>`}Z=!0}return X},cz=function($){const U=Object.keys($);for(let G=0;G<U.length;G++){const W=U[G];if(!$.hasOwnProperty(W))continue;if(W!==":@")return W}},_X=function($,U){let G="";if($&&!U.ignoreAttributes)for(let W in $){if(!$.hasOwnProperty(W))continue;let X=U.attributeValueProcessor(W,$[W]);if(X=dX(X,U),X===!0&&U.suppressBooleanAttributes)G+=` ${W.substr(U.attributeNamePrefix.length)}`;else G+=` ${W.substr(U.attributeNamePrefix.length)}="${X}"`}return G},yz=function($,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},dX=function($,U){if($&&$.length>0&&U.processEntities)for(let G=0;G<U.entities.length;G++){const W=U.entities[G];$=$.replace(W.regex,W.val)}return $};pX.exports=vz});var lX=B((gB,sX)=>{var X1=function($){if(this.options=Object.assign({},uz,$),this.options.ignoreAttributes||this.options.attributesGroupName)this.isAttribute=function(){return!1};else this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=gz;if(this.processTextOrObjNode=dz,this.options.format)this.indentate=pz,this.tagEndChar=">\n",this.newLine="\n";else this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""},dz=function($,U,G){const 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)},pz=function($){return this.options.indentBy.repeat($)},gz=function($){if($.startsWith(this.options.attributeNamePrefix)&&$!==this.options.textNodeName)return $.substr(this.attrPrefixLen);else return!1},_z=gX(),uz={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:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("\'","g"),val:"&apos;"},{regex:new RegExp("\"","g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};X1.prototype.build=function($){if(this.options.preserveOrder)return _z($,this.options);else{if(Array.isArray($)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1)$={[this.options.arrayNodeName]:$};return this.j2x($,0).val}};X1.prototype.j2x=function($,U){let G="",W="";for(let X in $){if(!Object.prototype.hasOwnProperty.call($,X))continue;if(typeof $[X]==="undefined"){if(this.isAttribute(X))W+=""}else if($[X]===null)if(this.isAttribute(X))W+="";else if(X[0]==="?")W+=this.indentate(U)+"<"+X+"?"+this.tagEndChar;else W+=this.indentate(U)+"<"+X+"/"+this.tagEndChar;else if($[X]instanceof Date)W+=this.buildTextValNode($[X],X,"",U);else if(typeof $[X]!=="object"){const Z=this.isAttribute(X);if(Z)G+=this.buildAttrPairStr(Z,""+$[X]);else if(X===this.options.textNodeName){let L=this.options.tagValueProcessor(X,""+$[X]);W+=this.replaceEntitiesValue(L)}else W+=this.buildTextValNode($[X],X,"",U)}else if(Array.isArray($[X])){const Z=$[X].length;let L="",Y="";for(let w=0;w<Z;w++){const F=$[X][w];if(typeof F==="undefined");else if(F===null)if(X[0]==="?")W+=this.indentate(U)+"<"+X+"?"+this.tagEndChar;else W+=this.indentate(U)+"<"+X+"/"+this.tagEndChar;else if(typeof F==="object")if(this.options.oneListGroup){const Q=this.j2x(F,U+1);if(L+=Q.val,this.options.attributesGroupName&&F.hasOwnProperty(this.options.attributesGroupName))Y+=Q.attrStr}else L+=this.processTextOrObjNode(F,X,U);else if(this.options.oneListGroup){let Q=this.options.tagValueProcessor(X,F);Q=this.replaceEntitiesValue(Q),L+=Q}else L+=this.buildTextValNode(F,X,"",U)}if(this.options.oneListGroup)L=this.buildObjectNode(L,X,Y,U);W+=L}else if(this.options.attributesGroupName&&X===this.options.attributesGroupName){const Z=Object.keys($[X]),L=Z.length;for(let Y=0;Y<L;Y++)G+=this.buildAttrPairStr(Z[Y],""+$[X][Z[Y]])}else W+=this.processTextOrObjNode($[X],X,U)}return{attrStr:G,val:W}};X1.prototype.buildAttrPairStr=function($,U){if(U=this.options.attributeValueProcessor($,""+U),U=this.replaceEntitiesValue(U),this.options.suppressBooleanAttributes&&U==="true")return" "+$;else return" "+$+'="'+U+'"'};X1.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 X="</"+U+this.tagEndChar,Z="";if(U[0]==="?")Z="?",X="";if((G||G==="")&&$.indexOf("<")===-1)return this.indentate(W)+"<"+U+G+Z+">"+$+X;else if(this.options.commentPropName!==!1&&U===this.options.commentPropName&&Z.length===0)return this.indentate(W)+`<!--${$}-->`+this.newLine;else return this.indentate(W)+"<"+U+G+Z+this.tagEndChar+$+this.indentate(W)+X}};X1.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};X1.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 X=this.options.tagValueProcessor(U,$);if(X=this.replaceEntitiesValue(X),X==="")return this.indentate(W)+"<"+U+G+this.closeTag(U)+this.tagEndChar;else return this.indentate(W)+"<"+U+G+">"+X+"</"+U+this.tagEndChar}};X1.prototype.replaceEntitiesValue=function($){if($&&$.length>0&&this.options.processEntities)for(let U=0;U<this.options.entities.length;U++){const G=this.options.entities[U];$=$.replace(G.regex,G.val)}return $};sX.exports=X1});var nX=B((sB,mX)=>{var sz=CU(),lz=yX(),mz=lX();mX.exports={XMLParser:lz,XMLValidator:sz,XMLBuilder:mz}});var eX=B((lB,tX)=>{var{defineProperty:t$,getOwnPropertyDescriptor:nz,getOwnPropertyNames:iz}=Object,oz=Object.prototype.hasOwnProperty,h=($,U)=>t$($,"name",{value:U,configurable:!0}),rz=($,U)=>{for(var G in U)t$($,G,{get:U[G],enumerable:!0})},az=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of iz(U))if(!oz.call($,X)&&X!==G)t$($,X,{get:()=>U[X],enumerable:!(W=nz(U,X))||W.enumerable})}return $},tz=($)=>az(t$({},"__esModule",{value:!0}),$),iX={};rz(iX,{_toBool:()=>$5,_toNum:()=>U5,_toStr:()=>ez,awsExpectUnion:()=>W5,loadRestJsonErrorCode:()=>L5,loadRestXmlErrorCode:()=>Q5,parseJsonBody:()=>rX,parseJsonErrorBody:()=>Z5,parseXmlBody:()=>aX,parseXmlErrorBody:()=>F5});tX.exports=tz(iX);var ez=h(($)=>{if($==null)return $;if(typeof $==="number"||typeof $==="bigint"){const U=new Error(`Received number ${$} where a string was expected.`);return U.name="Warning",console.warn(U),String($)}if(typeof $==="boolean"){const U=new Error(`Received boolean ${$} where a string was expected.`);return U.name="Warning",console.warn(U),String($)}return $},"_toStr"),$5=h(($)=>{if($==null)return $;if(typeof $==="string"){const U=$.toLowerCase();if($!==""&&U!=="false"&&U!=="true"){const G=new Error(`Received string "${$}" where a boolean was expected.`);G.name="Warning",console.warn(G)}return $!==""&&U!=="false"}return $},"_toBool"),U5=h(($)=>{if($==null)return $;if(typeof $==="string"){const U=Number($);if(U.toString()!==$){const G=new Error(`Received string "${$}" where a number was expected.`);return G.name="Warning",console.warn(G),$}return U}return $},"_toNum"),G5=f1(),W5=h(($)=>{if($==null)return;if(typeof $==="object"&&"__type"in $)delete $.__type;return G5.expectUnion($)},"awsExpectUnion"),X5=f1(),oX=h(($,U)=>X5.collectBody($,U).then((G)=>U.utf8Encoder(G)),"collectBodyString"),rX=h(($,U)=>oX($,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"),Z5=h(async($,U)=>{const G=await rX($,U);return G.message=G.message??G.Message,G},"parseJsonErrorBody"),L5=h(($,U)=>{const G=h((Z,L)=>Object.keys(Z).find((Y)=>Y.toLowerCase()===L.toLowerCase()),"findKey"),W=h((Z)=>{let L=Z;if(typeof L==="number")L=L.toString();if(L.indexOf(",")>=0)L=L.split(",")[0];if(L.indexOf(":")>=0)L=L.split(":")[0];if(L.indexOf("#")>=0)L=L.split("#")[1];return L},"sanitizeErrorCode"),X=G($.headers,"x-amzn-errortype");if(X!==void 0)return W($.headers[X]);if(U.code!==void 0)return W(U.code);if(U.__type!==void 0)return W(U.__type)},"loadRestJsonErrorCode"),Y5=f1(),w5=nX(),aX=h(($,U)=>oX($,U).then((G)=>{if(G.length){const W=new w5.XMLParser({attributeNamePrefix:"",htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(w,F)=>F.trim()===""&&F.includes("\n")?"":void 0});W.addEntity("#xD","\r"),W.addEntity("#10","\n");let X;try{X=W.parse(G,!0)}catch(w){if(w&&typeof w==="object")Object.defineProperty(w,"$responseBodyText",{value:G});throw w}const Z="#text",L=Object.keys(X)[0],Y=X[L];if(Y[Z])Y[L]=Y[Z],delete Y[Z];return Y5.getValueFromTextNode(Y)}return{}}),"parseXmlBody"),F5=h(async($,U)=>{const G=await aX($,U);if(G.Error)G.Error.message=G.Error.message??G.Error.Message;return G},"parseXmlErrorBody"),Q5=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 J5=B((t1)=>{Object.defineProperty(t1,"__esModule",{value:!0});var NU=z5();NU.__exportStar(yW(),t1);NU.__exportStar(KX(),t1);NU.__exportStar(eX(),t1)});function N5($){return $}var JZ=($)=>(U)=>async(G)=>{if(!v.isInstance(G.request))return U(G);const{request:W}=G,{handlerProtocol:X=""}=$.requestHandler.metadata||{};if(X.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 Z=W.hostname;if(W.port!=null)Z+=`:${W.port}`;W.headers.host=Z}return U(G)},IZ={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},P5=($)=>({applyToStack:(U)=>{U.add(JZ($),IZ)}});var KZ=()=>($,U)=>async(G)=>{try{const W=await $(G),{clientName:X,commandName:Z,logger:L,dynamoDbDocumentClientOptions:Y={}}=U,{overrideInputFilterSensitiveLog:w,overrideOutputFilterSensitiveLog:F}=Y,Q=w??U.inputFilterSensitiveLog,z=F??U.outputFilterSensitiveLog,{$metadata:I,...J}=W.output;return L?.info?.({clientName:X,commandName:Z,input:Q(G.input),output:z(J),metadata:I}),W}catch(W){const{clientName:X,commandName:Z,logger:L,dynamoDbDocumentClientOptions:Y={}}=U,{overrideInputFilterSensitiveLog:w}=Y,F=w??U.inputFilterSensitiveLog;throw L?.error?.({clientName:X,commandName:Z,input:F(G.input),error:W,metadata:W.$metadata}),W}},MZ={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},S5=($)=>({applyToStack:(U)=>{U.add(KZ(),MZ)}});var DU="X-Amzn-Trace-Id",RZ="AWS_LAMBDA_FUNCTION_NAME",BZ="_X_AMZN_TRACE_ID",VZ=($)=>(U)=>async(G)=>{const{request:W}=G;if(!v.isInstance(W)||$.runtime!=="node"||W.headers.hasOwnProperty(DU))return U(G);const X=process.env[RZ],Z=process.env[BZ],L=(Y)=>typeof Y==="string"&&Y.length>0;if(L(X)&&L(Z))W.headers[DU]=Z;return U({...G,request:W})},EZ={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},v5=($)=>({applyToStack:(U)=>{U.add(VZ($),EZ)}});function fJ($){return{...$,customUserAgent:typeof $.customUserAgent==="string"?[[$.customUserAgent]]:$.customUserAgent}}var lQ=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}$"),s1=($)=>lQ.test($)||$.startsWith("[")&&$.endsWith("]");var mQ=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),l1=($,U=!1)=>{if(!U)return mQ.test($);const G=$.split(".");for(let W of G)if(!l1(W))return!1;return!0};var m1={};var n="endpoints";function _($){if(typeof $!=="object"||$==null)return $;if("ref"in $)return`\$${_($.ref)}`;if("fn"in $)return`${$.fn}(${($.argv||[]).map(_).join(", ")})`;return JSON.stringify($,null,2)}class f extends Error{constructor($){super($);this.name="EndpointError"}}var m4=($,U)=>$===U;var n4=($)=>{const U=$.split("."),G=[];for(let W of U){const X=W.indexOf("[");if(X!==-1){if(W.indexOf("]")!==W.length-1)throw new f(`Path: '${$}' does not end with ']'`);const Z=W.slice(X+1,-1);if(Number.isNaN(parseInt(Z)))throw new f(`Invalid array index: '${Z}' in path: '${$}'`);if(X!==0)G.push(W.slice(0,X));G.push(Z)}else G.push(W)}return G};var P$=($,U)=>n4(U).reduce((G,W)=>{if(typeof G!=="object")throw new f(`Index '${W}' in '${U}' not found in '${JSON.stringify($)}'`);else if(Array.isArray(G))return G[parseInt(W)];return G[W]},$);var i4=($)=>$!=null;var o4=($)=>!$;var b$=$1(L1(),1);var o0={[b$.EndpointURLScheme.HTTP]:80,[b$.EndpointURLScheme.HTTPS]:443},r4=($)=>{const U=(()=>{try{if($ instanceof URL)return $;if(typeof $==="object"&&"hostname"in $){const{hostname:I,port:J,protocol:M="",path:H="",query:R={}}=$,E=new URL(`${M}//${I}${J?`:${J}`:""}${H}`);return E.search=Object.entries(R).map(([V,T])=>`${V}=${T}`).join("&"),E}return new URL($)}catch(I){return null}})();if(!U)return console.error(`Unable to parse ${JSON.stringify($)} as a whatwg URL.`),null;const G=U.href,{host:W,hostname:X,pathname:Z,protocol:L,search:Y}=U;if(Y)return null;const w=L.slice(0,-1);if(!Object.values(b$.EndpointURLScheme).includes(w))return null;const F=s1(X),Q=G.includes(`${W}:${o0[w]}`)||typeof $==="string"&&$.includes(`${W}:${o0[w]}`),z=`${W}${Q?`:${o0[w]}`:""}`;return{scheme:w,authority:z,path:Z,normalizedPath:Z.endsWith("/")?Z:`${Z}/`,isIp:F}};var a4=($,U)=>$===U;var t4=($,U,G,W)=>{if(U>=G||$.length<G)return null;if(!W)return $.substring(U,G);return $.substring($.length-G,$.length-U)};var e4=($)=>encodeURIComponent($).replace(/[!*'()]/g,(U)=>`%${U.charCodeAt(0).toString(16).toUpperCase()}`);var $W={booleanEquals:m4,getAttr:P$,isSet:i4,isValidHostLabel:l1,not:o4,parseURL:r4,stringEquals:a4,substring:t4,uriEncode:e4};var S$=($,U)=>{const G=[],W={...U.endpointParams,...U.referenceRecord};let X=0;while(X<$.length){const Z=$.indexOf("{",X);if(Z===-1){G.push($.slice(X));break}G.push($.slice(X,Z));const L=$.indexOf("}",Z);if(L===-1){G.push($.slice(Z));break}if($[Z+1]==="{"&&$[L+1]==="}")G.push($.slice(Z+1,L)),X=L+2;const Y=$.substring(Z+1,L);if(Y.includes("#")){const[w,F]=Y.split("#");G.push(P$(W[w],F))}else G.push(W[Y]);X=L+1}return G.join("")};var UW=({ref:$},U)=>{return{...U.endpointParams,...U.referenceRecord}[$]};var U1=($,U,G)=>{if(typeof $==="string")return S$($,G);else if($.fn)return k$($,G);else if($.ref)return UW($,G);throw new f(`'${U}': ${String($)} is not a string, function or reference.`)};var k$=({fn:$,argv:U},G)=>{const W=U.map((Z)=>["boolean","number"].includes(typeof Z)?Z:U1(Z,"arg",G)),X=$.split(".");if(X[0]in m1&&X[1]!=null)return m1[X[0]][X[1]](...W);return $W[$](...W)};var GW=({assign:$,...U},G)=>{if($&&$ in G.referenceRecord)throw new f(`'${$}' is already defined in Reference Record.`);const W=k$(U,G);return G.logger?.debug?.(`${n} evaluateCondition: ${_(U)} = ${_(W)}`),{result:W===""?!0:!!W,...$!=null&&{toAssign:{name:$,value:W}}}};var C1=($=[],U)=>{const G={};for(let W of $){const{result:X,toAssign:Z}=GW(W,{...U,referenceRecord:{...U.referenceRecord,...G}});if(!X)return{result:X};if(Z)G[Z.name]=Z.value,U.logger?.debug?.(`${n} assign: ${Z.name} := ${_(Z.value)}`)}return{result:!0,referenceRecord:G}};var WW=($,U)=>Object.entries($).reduce((G,[W,X])=>({...G,[W]:X.map((Z)=>{const L=U1(Z,"Header value entry",U);if(typeof L!=="string")throw new f(`Header '${W}' value '${L}' is not a string`);return L})}),{});var r0=($,U)=>{if(Array.isArray($))return $.map((G)=>r0(G,U));switch(typeof $){case"string":return S$($,U);case"object":if($===null)throw new f(`Unexpected endpoint property: ${$}`);return D$($,U);case"boolean":return $;default:throw new f(`Unexpected endpoint property type: ${typeof $}`)}};var D$=($,U)=>Object.entries($).reduce((G,[W,X])=>({...G,[W]:r0(X,U)}),{});var XW=($,U)=>{const G=U1($,"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 f(`Endpoint URL must be a string, got ${typeof G}`)};var ZW=($,U)=>{const{conditions:G,endpoint:W}=$,{result:X,referenceRecord:Z}=C1(G,U);if(!X)return;const L={...U,referenceRecord:{...U.referenceRecord,...Z}},{url:Y,properties:w,headers:F}=W;return U.logger?.debug?.(`${n} Resolving endpoint from template: ${_(W)}`),{...F!=null&&{headers:WW(F,L)},...w!=null&&{properties:D$(w,L)},url:XW(Y,L)}};var LW=($,U)=>{const{conditions:G,error:W}=$,{result:X,referenceRecord:Z}=C1(G,U);if(!X)return;throw new f(U1(W,"Error",{...U,referenceRecord:{...U.referenceRecord,...Z}}))};var YW=($,U)=>{const{conditions:G,rules:W}=$,{result:X,referenceRecord:Z}=C1(G,U);if(!X)return;return h$(W,{...U,referenceRecord:{...U.referenceRecord,...Z}})};var h$=($,U)=>{for(let G of $)if(G.type==="endpoint"){const W=ZW(G,U);if(W)return W}else if(G.type==="error")LW(G,U);else if(G.type==="tree"){const W=YW(G,U);if(W)return W}else throw new f(`Unknown endpoint rule: ${G}`);throw new f("Rules evaluation failed")};var nQ=($,U)=>{const{endpointParams:G,logger:W}=U,{parameters:X,rules:Z}=$;U.logger?.debug?.(`${n} Initial EndpointParams: ${_(G)}`);const L=Object.entries(X).filter(([,F])=>F.default!=null).map(([F,Q])=>[F,Q.default]);if(L.length>0)for(let[F,Q]of L)G[F]=G[F]??Q;const Y=Object.entries(X).filter(([,F])=>F.required).map(([F])=>F);for(let F of Y)if(G[F]==null)throw new f(`Missing required parameter: '${F}'`);const w=h$(Z,{endpointParams:G,logger:W,referenceRecord:{}});if(U.endpointParams?.Endpoint)try{const F=new URL(U.endpointParams.Endpoint),{protocol:Q,port:z}=F;w.url.protocol=Q,w.url.port=z}catch(F){}return U.logger?.debug?.(`${n} Resolved endpoint: ${_(w)}`),w};var a0=($,U=!1)=>{if(U){for(let G of $.split("."))if(!a0(G))return!1;return!0}if(!l1($))return!1;if($.length<3||$.length>63)return!1;if($!==$.toLowerCase())return!1;if(s1($))return!1;return!0};var wW=($)=>{const U=$.split(":");if(U.length<6)return null;const[G,W,X,Z,L,...Y]=U;if(G!=="arn"||W===""||X===""||Y[0]==="")return null;return{partition:W,service:X,region:Z,accountId:L,resourceId:Y[0].includes("/")?Y[0].split("/"):Y}};var FW={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)\\-\\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)"},"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 oQ=FW,rQ="",QW=($)=>{const{partitions:U}=oQ;for(let W of U){const{regions:X,outputs:Z}=W;for(let[L,Y]of Object.entries(X))if(L===$)return{...Z,...Y}}for(let W of U){const{regionRegex:X,outputs:Z}=W;if(new RegExp(X).test($))return{...Z}}const 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 zW=()=>rQ;var aQ={isVirtualHostableS3Bucket:a0,parseArn:wW,partition:QW};m1.aws=aQ;var t0="user-agent",x$="x-amz-user-agent",e0=" ",v$="/",JW=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,IW=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g,$U="-";var tQ=($)=>(U,G)=>async(W)=>{const{request:X}=W;if(!v.isInstance(X))return U(W);const{headers:Z}=X,L=G?.userAgent?.map(UU)||[],Y=(await $.defaultUserAgentProvider()).map(UU),w=$?.customUserAgent?.map(UU)||[],F=zW(),Q=(F?[F]:[]).concat([...Y,...L,...w]).join(e0),z=[...Y.filter((I)=>I.startsWith("aws-sdk-")),...w].join(e0);if($.runtime!=="browser"){if(z)Z[x$]=Z[x$]?`${Z[t0]} ${z}`:z;Z[t0]=Q}else Z[x$]=Q;return U({...W,request:X})},UU=($)=>{const U=$[0].split(v$).map((L)=>L.replace(JW,$U)).join(v$),G=$[1]?.replace(IW,$U),W=U.indexOf(v$),X=U.substring(0,W);let Z=U.substring(W+1);if(X==="api")Z=Z.toLowerCase();return[X,Z,G].filter((L)=>L&&L.length>0).reduce((L,Y,w)=>{switch(w){case 0:return Y;case 1:return`${L}/${Y}`;default:return`${L}#${Y}`}},"")},eQ={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},G3=($)=>({applyToStack:(U)=>{U.add(tQ($),eQ)}});var c$=($)=>typeof $==="string"&&($.startsWith("fips-")||$.endsWith("-fips"));var GU=($)=>c$($)?["fips-aws-global","aws-fips"].includes($)?"us-east-1":$.replace(/fips-(dkr-|prod-)?|-fips/,""):$;var J3=($)=>{const{region:U,useFipsEndpoint:G}=$;if(!U)throw new Error("Region is missing");return{...$,region:async()=>{if(typeof U==="string")return GU(U);const W=await U();return GU(W)},useFipsEndpoint:async()=>{const W=typeof U==="string"?U:await U();if(c$(W))return!0;return typeof G!=="function"?Promise.resolve(!!G):G()}}};var q1=($,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 G1;(function($){$.ENV="env",$.CONFIG="shared config entry"})(G1||(G1={}));var $9="AWS_USE_DUALSTACK_ENDPOINT",U9="use_dualstack_endpoint";var A3={environmentVariableSelector:($)=>q1($,$9,G1.ENV),configFileSelector:($)=>q1($,U9,G1.CONFIG),default:!1};var G9="AWS_USE_FIPS_ENDPOINT",W9="use_fips_endpoint";var C3={environmentVariableSelector:($)=>q1($,G9,G1.ENV),configFileSelector:($)=>q1($,W9,G1.CONFIG),default:!1};var WU=$1(L1(),1),KW=($)=>$[WU.SMITHY_CONTEXT_KEY]||($[WU.SMITHY_CONTEXT_KEY]={});var i=($)=>{if(typeof $==="function")return $;const U=Promise.resolve($);return()=>U};var MW={environmentVariableSelector:($)=>$["AWS_REGION"],configFileSelector:($)=>$["region"],default:()=>{throw new Error("Region is missing")}},s3={preferredFile:"credentials"};function X9($){return(U)=>async(G)=>{const W=G.request;if(v.isInstance(W)){const{body:X,headers:Z}=W;if(X&&Object.keys(Z).map((L)=>L.toLowerCase()).indexOf(RW)===-1)try{const L=$(X);W.headers={...W.headers,[RW]:String(L)}}catch(L){}}return U({...G,request:W})}}var RW="content-length",Z9={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},BM=($)=>({applyToStack:(U)=>{U.add(X9($.bodyLengthChecker),Z9)}});var BW=($,U)=>(G)=>async(W)=>{const{response:X}=await G(W);try{const Z=await U(X,$);return{response:X,output:Z}}catch(Z){if(Object.defineProperty(Z,"$response",{value:X}),!("$metadata"in Z)){if(Z.message+="\n Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.",typeof Z.$responseBodyText!=="undefined"){if(Z.$response)Z.$response.body=Z.$responseBodyText}}throw Z}};var VW=($,U)=>(G,W)=>async(X)=>{const Z=W.endpointV2?.url&&$.urlParser?async()=>$.urlParser(W.endpointV2.url):$.endpoint;if(!Z)throw new Error("No valid endpoint provider available.");const L=await U(X.input,{...$,endpoint:Z});return G({...X,request:L})};function fM($,U,G){return{applyToStack:(W)=>{W.add(BW($,G),L9),W.add(VW($,U),XU)}}}var L9={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},XU={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};var EW=async($)=>{const U=$?.Bucket||"";if(typeof $.Bucket==="string")$.Bucket=U.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(z9(U)){if($.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!Q9(U)||U.indexOf(".")!==-1&&!String($.Endpoint).startsWith("http:")||U.toLowerCase()!==U||U.length<3)$.ForcePathStyle=!0;if($.DisableMultiRegionAccessPoints)$.disableMultiRegionAccessPoints=!0,$.DisableMRAP=!0;return $},Y9=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,w9=/(\d+\.){3}\d+/,F9=/\.\./;var Q9=($)=>Y9.test($)&&!w9.test($)&&!F9.test($),z9=($)=>{const[U,G,W,,,X]=$.split(":"),Z=U==="arn"&&$.split(":").length>=6,L=Boolean(Z&&G&&W&&X);if(Z&&!L)throw new Error(`Invalid ARN: ${$} was an invalid ARN.`);return L};var HW=($,U,G)=>{const W=async()=>{const X=G[$]??G[U];if(typeof X==="function")return X();return X};if($==="credentialScope"||U==="CredentialScope")return async()=>{const X=typeof G.credentials==="function"?await G.credentials():G.credentials;return X?.credentialScope??X?.CredentialScope};if($==="accountId"||U==="AccountId")return async()=>{const X=typeof G.credentials==="function"?await G.credentials():G.credentials;return X?.accountId??X?.AccountId};if($==="endpoint"||U==="endpoint")return async()=>{const X=await W();if(X&&typeof X==="object"){if("url"in X)return X.url.href;if("hostname"in X){const{protocol:Z,hostname:L,port:Y,path:w}=X;return`${Z}//${L}${Y?":"+Y:""}${w}`}}return X};return W};var TW="AWS_ENDPOINT_URL",AW="endpoint_url",fW=($)=>({environmentVariableSelector:(U)=>{const G=$.split(" ").map((Z)=>Z.toUpperCase()),W=U[[TW,...G].join("_")];if(W)return W;const X=U[TW];if(X)return X;return},configFileSelector:(U,G)=>{if(G&&U.services){const X=G[["services",U.services].join(ZU)];if(X){const Z=$.split(" ").map((Y)=>Y.toLowerCase()),L=X[[Z.join("_"),AW].join(ZU)];if(L)return L}}const W=U[AW];if(W)return W;return},default:void 0});var OW=async($)=>J1(fW($))();var LU=$1(HG(),1),y$=($)=>{if(typeof $==="object"){if("url"in $)return LU.parseUrl($.url);return $}return LU.parseUrl($)};var CW=async($,U,G,W)=>{if(!G.endpoint){const L=await OW(G.serviceId||"");if(L)G.endpoint=()=>Promise.resolve(y$(L))}const X=await J9($,U,G);if(typeof G.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return G.endpointProvider(X,W)},J9=async($,U,G)=>{const W={},X=U?.getEndpointParameterInstructions?.()||{};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 HW(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 EW(W);return W};var qW=({config:$,instructions:U})=>{return(G,W)=>async(X)=>{const Z=await CW(X.input,{getEndpointParameterInstructions(){return U}},{...$},W);W.endpointV2=Z,W.authSchemes=Z.properties?.authSchemes;const L=W.authSchemes?.[0];if(L){W.signing_region=L.signingRegion,W.signing_service=L.signingName;const w=KW(W)?.selectedHttpAuthScheme?.httpAuthOption;if(w)w.signingProperties=Object.assign(w.signingProperties||{},{signing_region:L.signingRegion,signingRegion:L.signingRegion,signing_service:L.signingName,signingName:L.signingName,signingRegionSet:L.signingRegionSet},L.properties)}return G({...X})}};var I9={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:XU.name},oM=($,U)=>({applyToStack:(G)=>{G.addRelativeTo(qW({config:$,instructions:U}),I9)}});var eM=($)=>{const U=$.tls??!0,{endpoint:G}=$,W=G!=null?async()=>y$(await i(G)()):void 0;return{...$,endpoint:W,tls:U,isCustomEndpoint:!!G,useDualstackEndpoint:i($.useDualstackEndpoint??!1),useFipsEndpoint:i($.useFipsEndpoint??!1)}};var g;(function($){$.STANDARD="standard",$.ADAPTIVE="adaptive"})(g||(g={}));var I1=3,jW=g.STANDARD;var NW=$1(w1(),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;const 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){const U=($-this.currentCapacity)/this.fillRate*1000;await new Promise((G)=>setTimeout(G,U))}this.currentCapacity=this.currentCapacity-$}refillTokenBucket(){const $=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=$;return}const U=($-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+U),this.lastTimestamp=$}updateClientSendingRate($){let U;if(this.updateMeasuredRate(),NW.isThrottlingError($)){const 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());const 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(){const $=this.getCurrentTimeInSeconds(),U=Math.floor($*2)/2;if(this.requestCount++,U>this.lastTxRateBucket){const 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 K1=100,n1=20000,YU=500,u$=500,wU=5,FU=10,QU=1,d$="amz-sdk-invocation-id",p$="amz-sdk-request";var PW=()=>{let $=K1;return{computeNextBackoffDelay:(W)=>{return Math.floor(Math.min(n1,Math.random()*2**W*$))},setDelayBase:(W)=>{$=W}}};var zU=({retryDelay:$,retryCount:U,retryCost:G})=>{return{getRetryCount:()=>U,getRetryDelay:()=>Math.min(n1,$),getRetryCost:()=>G}};class j1{constructor($){this.maxAttempts=$,this.mode=g.STANDARD,this.capacity=u$,this.retryBackoffStrategy=PW(),this.maxAttemptsProvider=typeof $==="function"?$:async()=>$}async acquireInitialRetryToken($){return zU({retryDelay:K1,retryCount:0})}async refreshRetryTokenForRetry($,U){const G=await this.getMaxAttempts();if(this.shouldRetry($,U,G)){const W=U.errorType;this.retryBackoffStrategy.setDelayBase(W==="THROTTLING"?YU:K1);const X=this.retryBackoffStrategy.computeNextBackoffDelay($.getRetryCount()),Z=U.retryAfterHint?Math.max(U.retryAfterHint.getTime()-Date.now()||0,X):X,L=this.getCapacityCost(W);return this.capacity-=L,zU({retryDelay:Z,retryCount:$.getRetryCount()+1,retryCost:L})}throw new Error("No retry token available")}recordSuccess($){this.capacity=Math.max(u$,this.capacity+($.getRetryCost()??QU))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch($){return console.warn(`Max attempts provider could not resolve. Using default of ${I1}`),I1}}shouldRetry($,U,G){return $.getRetryCount()+1<G&&this.capacity>=this.getCapacityCost(U.errorType)&&this.isRetryableError(U.errorType)}getCapacityCost($){return $==="TRANSIENT"?FU:wU}isRetryableError($){return $==="THROTTLING"||$==="TRANSIENT"}}class JU{constructor($,U){this.maxAttemptsProvider=$,this.mode=g.ADAPTIVE;const{rateLimiter:G}=U??{};this.rateLimiter=G??new _$,this.standardRetryStrategy=new j1($)}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 bW="AWS_MAX_ATTEMPTS",SW="max_attempts",_R={environmentVariableSelector:($)=>{const U=$[bW];if(!U)return;const G=parseInt(U);if(Number.isNaN(G))throw new Error(`Environment variable ${bW} mast be a number, got "${U}"`);return G},configFileSelector:($)=>{const U=$[SW];if(!U)return;const G=parseInt(U);if(Number.isNaN(G))throw new Error(`Shared config file entry ${SW} mast be a number, got "${U}"`);return G},default:I1},uR=($)=>{const{retryStrategy:U}=$,G=i($.maxAttempts??I1);return{...$,maxAttempts:G,retryStrategy:async()=>{if(U)return U;if(await i($.retryMode)()===g.ADAPTIVE)return new JU(G);return new j1(G)}}},K9="AWS_RETRY_MODE",M9="retry_mode",dR={environmentVariableSelector:($)=>$[K9],configFileSelector:($)=>$[M9],default:jW};var N1=$1(w1(),1);import{Readable as R9} from"stream";var kW=($)=>$?.body instanceof R9||typeof ReadableStream!=="undefined"&&$?.body instanceof ReadableStream;var IU=($)=>{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 B9=($)=>(U,G)=>async(W)=>{let X=await $.retryStrategy();const Z=await $.maxAttempts();if(V9(X)){X=X;let L=await X.acquireInitialRetryToken(G.partition_id),Y=new Error,w=0,F=0;const{request:Q}=W,z=v.isInstance(Q);if(z)Q.headers[d$]=DW();while(!0)try{if(z)Q.headers[p$]=`attempt=${w+1}; max=${Z}`;const{response:I,output:J}=await U(W);return X.recordSuccess(L),J.$metadata.attempts=w+1,J.$metadata.totalRetryDelay=F,{response:I,output:J}}catch(I){const J=E9(I);if(Y=IU(I),z&&kW(Q))throw(G.logger instanceof hW?console:G.logger)?.warn("An error was encountered in a non-retryable streaming request."),Y;try{L=await X.refreshRetryTokenForRetry(L,J)}catch(H){if(!Y.$metadata)Y.$metadata={};throw Y.$metadata.attempts=w+1,Y.$metadata.totalRetryDelay=F,Y}w=L.getRetryCount();const M=L.getRetryDelay();F+=M,await new Promise((H)=>setTimeout(H,M))}}else{if(X=X,X?.mode)G.userAgent=[...G.userAgent||[],["cfg/retry-mode",X.mode]];return X.retry(U,W)}},V9=($)=>typeof $.acquireInitialRetryToken!=="undefined"&&typeof $.refreshRetryTokenForRetry!=="undefined"&&typeof $.recordSuccess!=="undefined",E9=($)=>{const U={error:$,errorType:H9($)},G=A9($.$response);if(G)U.retryAfterHint=G;return U},H9=($)=>{if(N1.isThrottlingError($))return"THROTTLING";if(N1.isTransientError($))return"TRANSIENT";if(N1.isServerError($))return"SERVER_ERROR";return"CLIENT_ERROR"},T9={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},tR=($)=>({applyToStack:(U)=>{U.add(B9($),T9)}}),A9=($)=>{if(!KU.isInstance($))return;const U=Object.keys($.headers).find((Z)=>Z.toLowerCase()==="retry-after");if(!U)return;const G=$.headers[U],W=Number(G);if(!Number.isNaN(W))return new Date(W*1000);return new Date(G)};var f9=$1(w1(),1);var g$=$1(w1(),1);import{platform as I5,release as K5} from"os";import{env as UZ,versions as M5} from"process";var PU={isCrtAvailable:!1};var $Z=()=>{if(PU.isCrtAvailable)return["md/crt-avail"];return null};var R5="AWS_SDK_UA_APP_ID",B5="sdk-ua-app-id",$V=({serviceId:$,clientVersion:U})=>{const G=[["aws-sdk-js",U],["ua","2.0"],[`os/${I5()}`,K5()],["lang/js"],["md/nodejs",`${M5.node}`]],W=$Z();if(W)G.push(W);if($)G.push([`api/${$}`,U]);if(UZ.AWS_EXECUTION_ENV)G.push([`exec-env/${UZ.AWS_EXECUTION_ENV}`]);const X=J1({environmentVariableSelector:(L)=>L[R5],configFileSelector:(L)=>L[B5],default:void 0})();let Z=void 0;return async()=>{if(!Z){const L=await X;Z=L?[...G,[`app/${L}`]]:[...G]}return Z}};import{Buffer as V5} from"buffer";import{createHash as E5,createHmac as H5} from"crypto";var GZ=function($,U){if(V5.isBuffer($))return $;if(typeof $==="string")return WZ($,U);if(ArrayBuffer.isView($))return bU($.buffer,$.byteOffset,$.byteLength);return bU($)};class T5{constructor($,U){this.algorithmIdentifier=$,this.secret=U,this.reset()}update($,U){this.hash.update(XZ(GZ($,U)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?H5(this.algorithmIdentifier,GZ(this.secret)):E5(this.algorithmIdentifier)}}import{fstatSync as A5,lstatSync as f5} from"fs";var FV=($)=>{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 f5($.path).size;else if(typeof $.fd==="number")return A5($.fd).size;throw new Error(`Body Length computation failed for ${$}`)};var QZ=$1(Y0(),1);var ZZ="AWS_EXECUTION_ENV",SU="AWS_REGION",kU="AWS_DEFAULT_REGION",LZ="AWS_EC2_METADATA_DISABLED",YZ=["in-region","cross-region","mobile","standard","legacy"],wZ="/latest/meta-data/placement/region";var FZ={environmentVariableSelector:($)=>{return $["AWS_DEFAULTS_MODE"]},configFileSelector:($)=>{return $["defaults_mode"]},default:"legacy"};var EV=({region:$=J1(MW),defaultsMode:U=J1(FZ)}={})=>QZ.memoize(async()=>{const G=typeof U==="function"?await U():U;switch(G?.toLowerCase()){case"auto":return O5($);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 ${YZ.join(", ")}, got ${G}`)}}),O5=async($)=>{if($){const U=typeof $==="function"?await $():$,G=await C5();if(!G)return"standard";if(U===G)return"in-region";else return"cross-region"}return"standard"},C5=async()=>{if(process.env[ZZ]&&(process.env[SU]||process.env[kU]))return process.env[SU]??process.env[kU];if(!process.env[LZ])try{const{getInstanceMetadataEndpoint:$,httpRequest:U}=await import("./chunk-e98666083e9a2b6f.js"),G=await $();return(await U({...G,path:wZ})).toString()}catch($){}};var fV=($)=>{let U=async()=>{if($.region===void 0)throw new Error("Region is missing from runtimeConfig");const G=$.region;if(typeof G==="string")return G;return G()};return{setRegion(G){U=G},region(){return U}}},OV=($)=>{return{region:$.region()}};export{N5 as Ha,P5 as Ia,S5 as Ja,v5 as Ka,KW as La,i as Ma,q1 as Na,G1 as Oa,i0 as Pa,fJ as Qa,m1 as Ra,nQ as Sa,aQ as Ta,G3 as Ua,A3 as Va,C3 as Wa,MW as Xa,s3 as Ya,J3 as Za,BM as _a,J9 as $a,fM as ab,oM as bb,eM as cb,jW as db,_R as eb,uR as fb,dR as gb,tR as hb,J5 as ib,$V as jb,T5 as kb,FV as lb,EV as mb,fV as nb,OV as ob};
@@ -1,8 +1,8 @@
1
+ import { type PropsWithChildren } from "react";
1
2
  import { QueryResource } from "./QueryResource";
2
3
  export declare const QueryManagerContext: import("react").Context<{
3
4
  getResource: (key: string, initialState?: Record<string, any>) => QueryResource;
5
+ updatePrefecthedData: (_data: Record<string, Record<string, any>>) => void;
4
6
  }>;
5
- export declare const QueryManagerProvider: ({ children }: {
6
- children: any;
7
- }) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const QueryManagerProvider: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
8
8
  //# sourceMappingURL=QueryManagerContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryManagerContext.d.ts","sourceRoot":"","sources":["../../client/QueryManagerContext.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,eAAO,MAAM,mBAAmB;uBACX,MAAM,iBAAgB,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;EAG5D,CAAC;AAEH,eAAO,MAAM,oBAAoB;;6CAiBhC,CAAC"}
1
+ {"version":3,"file":"QueryManagerContext.d.ts","sourceRoot":"","sources":["../../client/QueryManagerContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,iBAAiB,EAGvB,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,eAAO,MAAM,mBAAmB;uBACX,MAAM,iBAAgB,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;kCAG9B,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;EACjE,CAAC;AAEH,eAAO,MAAM,oBAAoB,iBAAkB,iBAAiB,4CAiCnE,CAAC"}
@@ -6,6 +6,7 @@ type Data = Record<string, any>;
6
6
  export interface ServerDataContextValue {
7
7
  routeManifest: Record<string, string[]>;
8
8
  pageData: Record<string, Record<string, Data>>;
9
+ prefetchedData: Record<string, Data>;
9
10
  router: {
10
11
  pathname: string;
11
12
  params: Record<string, any>;
@@ -1 +1 @@
1
- {"version":3,"file":"ServerDataProvider.d.ts","sourceRoot":"","sources":["../../client/ServerDataProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAEnD,KAAK,IAAI,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAEhC,MAAM,WAAW,sBAAsB;IACrC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IACxC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC;IAC/C,MAAM,EAAE;QACN,QAAQ,EAAE,MAAM,CAAC;QACjB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAC5B,WAAW,EAAE,MAAM,CAAC;QACpB,KAAK,EAAE,OAAO,CAAC;QACf,YAAY,EAAE,MAAM,CAAC;KACtB,CAAC;IACF,IAAI,EAAE,YAAY,CAAC;IACnB,aAAa,EAAE,aAAa,CAAC;IAC7B,IAAI,EAAE;QACJ,IAAI,EAAE,IAAI,CAAC;KACZ,CAAC;CACH;AAED,eAAO,MAAM,iBAAiB,iDAA8C,CAAC;AAE7E,UAAU,uBAAuB;IAC/B,KAAK,CAAC,EAAE,sBAAsB,CAAC;CAChC;AAED,eAAO,MAAM,kBAAkB,UACtB,iBAAiB,CAAC,uBAAuB,CAAC,4CAgBlD,CAAC"}
1
+ {"version":3,"file":"ServerDataProvider.d.ts","sourceRoot":"","sources":["../../client/ServerDataProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAEnD,KAAK,IAAI,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAEhC,MAAM,WAAW,sBAAsB;IACrC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IACxC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC;IAC/C,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IACrC,MAAM,EAAE;QACN,QAAQ,EAAE,MAAM,CAAC;QACjB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAC5B,WAAW,EAAE,MAAM,CAAC;QACpB,KAAK,EAAE,OAAO,CAAC;QACf,YAAY,EAAE,MAAM,CAAC;KACtB,CAAC;IACF,IAAI,EAAE,YAAY,CAAC;IACnB,aAAa,EAAE,aAAa,CAAC;IAC7B,IAAI,EAAE;QACJ,IAAI,EAAE,IAAI,CAAC;KACZ,CAAC;CACH;AAED,eAAO,MAAM,iBAAiB,iDAA8C,CAAC;AAE7E,UAAU,uBAAuB;IAC/B,KAAK,CAAC,EAAE,sBAAsB,CAAC;CAChC;AAED,eAAO,MAAM,kBAAkB,UACtB,iBAAiB,CAAC,uBAAuB,CAAC,4CAgBlD,CAAC"}