@pwrdrvr/microapps-cdk 0.3.5 → 0.4.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +3 -3
- package/README.md +2 -1
- package/changelog.md +1 -1
- package/lib/MicroApps.js +1 -1
- package/lib/MicroAppsAPIGwy.js +1 -1
- package/lib/MicroAppsCF.js +1 -1
- package/lib/MicroAppsChildDeployer.js +1 -1
- package/lib/MicroAppsEdgeToOrigin.js +1 -1
- package/lib/MicroAppsS3.js +1 -1
- package/lib/MicroAppsSvcs.js +1 -1
- package/lib/MicroAppsTable.js +1 -1
- package/lib/microapps-deployer/index.js +1 -1
- package/lib/microapps-deployer/index.js.map +2 -2
- package/lib/microapps-edge-to-origin/index.js +1 -1
- package/lib/microapps-edge-to-origin/index.js.map +2 -2
- package/lib/microapps-router/index.js +1 -1
- package/lib/microapps-router/index.js.map +2 -2
- package/package.json +3 -1
- package/releasetag.txt +1 -1
- package/version.txt +1 -1
|
@@ -26,7 +26,7 @@ ${(0,xw.toHex)(s)}`}getCanonicalPath({path:t}){if(this.uriEscapePath){let n=[];f
|
|
|
26
26
|
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""),this.options.supressEmptyNode?(this.buildTextNode=Tqe,this.buildObjNode=Rqe):(this.buildTextNode=FW,this.buildObjNode=OW),this.buildTextValNode=FW,this.buildObjectNode=OW}Jk.prototype.parse=function(e){return this.j2x(e,0).val};Jk.prototype.j2x=function(e,t){let n="",r="",i=Object.keys(e),s=i.length;for(let d=0;d<s;d++){let a=i[d];if(!(typeof e[a]>"u"))if(e[a]===null)r+=this.indentate(t)+"<"+a+"/"+this.tagEndChar;else if(e[a]instanceof Date)r+=this.buildTextNode(e[a],a,"",t);else if(typeof e[a]!="object"){let c=this.isAttribute(a);c?n+=" "+c+'="'+this.options.attrValueProcessor(""+e[a])+'"':this.isCDATA(a)?e[this.options.textNodeName]?r+=this.replaceCDATAstr(e[this.options.textNodeName],e[a]):r+=this.replaceCDATAstr("",e[a]):a===this.options.textNodeName?e[this.options.cdataTagName]||(r+=this.options.tagValueProcessor(""+e[a])):r+=this.buildTextNode(e[a],a,"",t)}else if(Array.isArray(e[a]))if(this.isCDATA(a))r+=this.indentate(t),e[this.options.textNodeName]?r+=this.replaceCDATAarr(e[this.options.textNodeName],e[a]):r+=this.replaceCDATAarr("",e[a]);else{let c=e[a].length;for(let l=0;l<c;l++){let u=e[a][l];if(!(typeof u>"u"))if(u===null)r+=this.indentate(t)+"<"+a+"/"+this.tagEndChar;else if(typeof u=="object"){let w=this.j2x(u,t+1);r+=this.buildObjNode(w.val,a,w.attrStr,t)}else r+=this.buildTextNode(u,a,"",t)}}else if(this.options.attrNodeName&&a===this.options.attrNodeName){let c=Object.keys(e[a]),l=c.length;for(let u=0;u<l;u++)n+=" "+c[u]+'="'+this.options.attrValueProcessor(""+e[a][c[u]])+'"'}else{let c=this.j2x(e[a],t+1);r+=this.buildObjNode(c.val,a,c.attrStr,t)}}return{attrStr:n,val:r}};function xqe(e,t){return e=this.options.tagValueProcessor(""+e),this.options.cdataPositionChar===""||e===""?e+"<![CDATA["+t+"]]"+this.tagEndChar:e.replace(this.options.cdataPositionChar,"<![CDATA["+t+"]]"+this.tagEndChar)}function bqe(e,t){if(e=this.options.tagValueProcessor(""+e),this.options.cdataPositionChar===""||e==="")return e+"<![CDATA["+t.join("]]><![CDATA[")+"]]"+this.tagEndChar;for(let n in t)e=e.replace(this.options.cdataPositionChar,"<![CDATA["+t[n]+"]]>");return e+this.newLine}function OW(e,t,n,r){return n&&!e.includes("<")?this.indentate(r)+"<"+t+n+">"+e+"</"+t+this.tagEndChar:this.indentate(r)+"<"+t+n+this.tagEndChar+e+this.indentate(r)+"</"+t+this.tagEndChar}function Rqe(e,t,n,r){return e!==""?this.buildObjectNode(e,t,n,r):this.indentate(r)+"<"+t+n+"/"+this.tagEndChar}function FW(e,t,n,r){return this.indentate(r)+"<"+t+n+">"+this.options.tagValueProcessor(e)+"</"+t+this.tagEndChar}function Tqe(e,t,n,r){return e!==""?this.buildTextValNode(e,t,n,r):this.indentate(r)+"<"+t+n+"/"+this.tagEndChar}function Iqe(e){return this.options.indentBy.repeat(e)}function Nqe(e){return e.startsWith(this.options.attributeNamePrefix)?e.substr(this.attrPrefixLen):!1}function Pqe(e){return e===this.options.cdataTagName}jW.exports=Jk});var Xk=m(Fr=>{"use strict";var VW=_W(),$W=_u(),GW=_u(),kqe=di().buildOptions,HW=PW();Fr.parse=function(e,t,n){if(n){n===!0&&(n={});let i=HW.validate(e,n);if(i!==!0)throw Error(i.err.msg)}t=kqe(t,GW.defaultOptions,GW.props);let r=$W.getTraversalObj(e,t);return VW.convertToJson(r,t)};Fr.convertTonimn=LW().convert2nimn;Fr.getTraversalObj=$W.getTraversalObj;Fr.convertToJson=VW.convertToJson;Fr.convertToJsonString=BW().convertToJsonString;Fr.validate=HW.validate;Fr.j2xParser=UW();Fr.parseToNimn=function(e,t,n){return Fr.convertTonimn(Fr.getTraversalObj(e,n),t,n)}});var Qi=m(ft=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});ft.deserializeAws_queryGetSessionTokenCommand=ft.deserializeAws_queryGetFederationTokenCommand=ft.deserializeAws_queryGetCallerIdentityCommand=ft.deserializeAws_queryGetAccessKeyInfoCommand=ft.deserializeAws_queryDecodeAuthorizationMessageCommand=ft.deserializeAws_queryAssumeRoleWithWebIdentityCommand=ft.deserializeAws_queryAssumeRoleWithSAMLCommand=ft.deserializeAws_queryAssumeRoleCommand=ft.serializeAws_queryGetSessionTokenCommand=ft.serializeAws_queryGetFederationTokenCommand=ft.serializeAws_queryGetCallerIdentityCommand=ft.serializeAws_queryGetAccessKeyInfoCommand=ft.serializeAws_queryDecodeAuthorizationMessageCommand=ft.serializeAws_queryAssumeRoleWithWebIdentityCommand=ft.serializeAws_queryAssumeRoleWithSAMLCommand=ft.serializeAws_queryAssumeRoleCommand=void 0;var zqe=Ht(),Be=R(),qqe=Uk(),Lqe=Xk(),$s=Mr(),Hs=Dw(),Dqe=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=Xs(S(o({},dLe(e,t)),{Action:"AssumeRole",Version:"2011-06-15"})),Js(t,n,"/",void 0,r)};ft.serializeAws_queryAssumeRoleCommand=Dqe;var Mqe=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=Xs(S(o({},cLe(e,t)),{Action:"AssumeRoleWithSAML",Version:"2011-06-15"})),Js(t,n,"/",void 0,r)};ft.serializeAws_queryAssumeRoleWithSAMLCommand=Mqe;var Bqe=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=Xs(S(o({},lLe(e,t)),{Action:"AssumeRoleWithWebIdentity",Version:"2011-06-15"})),Js(t,n,"/",void 0,r)};ft.serializeAws_queryAssumeRoleWithWebIdentityCommand=Bqe;var Oqe=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=Xs(S(o({},uLe(e,t)),{Action:"DecodeAuthorizationMessage",Version:"2011-06-15"})),Js(t,n,"/",void 0,r)};ft.serializeAws_queryDecodeAuthorizationMessageCommand=Oqe;var Fqe=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=Xs(S(o({},mLe(e,t)),{Action:"GetAccessKeyInfo",Version:"2011-06-15"})),Js(t,n,"/",void 0,r)};ft.serializeAws_queryGetAccessKeyInfoCommand=Fqe;var jqe=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=Xs(S(o({},fLe(e,t)),{Action:"GetCallerIdentity",Version:"2011-06-15"})),Js(t,n,"/",void 0,r)};ft.serializeAws_queryGetCallerIdentityCommand=jqe;var Uqe=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=Xs(S(o({},pLe(e,t)),{Action:"GetFederationToken",Version:"2011-06-15"})),Js(t,n,"/",void 0,r)};ft.serializeAws_queryGetFederationTokenCommand=Uqe;var Gqe=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=Xs(S(o({},gLe(e,t)),{Action:"GetSessionToken",Version:"2011-06-15"})),Js(t,n,"/",void 0,r)};ft.serializeAws_queryGetSessionTokenCommand=Gqe;var Vqe=async(e,t)=>{if(e.statusCode>=300)return $qe(e,t);let n=await Nn(e.body,t),r={};r=SLe(n.AssumeRoleResult,t);let i=o({$metadata:$t(e)},r);return Promise.resolve(i)};ft.deserializeAws_queryAssumeRoleCommand=Vqe;var $qe=async(e,t)=>{let n=S(o({},e),{body:await Nn(e.body,t)}),r,i="UnknownError";switch(i=Ks(e,n.body),i){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await Kk(n,t);case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await Hw(n,t);case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await Jw(n,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await Cu(n,t);default:let s=n.body;throw r=new Hs.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:$t(e)}),(0,Be.decorateServiceException)(r,s.Error)}},Hqe=async(e,t)=>{if(e.statusCode>=300)return Jqe(e,t);let n=await Nn(e.body,t),r={};r=_Le(n.AssumeRoleWithSAMLResult,t);let i=o({$metadata:$t(e)},r);return Promise.resolve(i)};ft.deserializeAws_queryAssumeRoleWithSAMLCommand=Hqe;var Jqe=async(e,t)=>{let n=S(o({},e),{body:await Nn(e.body,t)}),r,i="UnknownError";switch(i=Ks(e,n.body),i){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await Kk(n,t);case"IDPRejectedClaimException":case"com.amazonaws.sts#IDPRejectedClaimException":throw await JW(n,t);case"InvalidIdentityTokenException":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await XW(n,t);case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await Hw(n,t);case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await Jw(n,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await Cu(n,t);default:let s=n.body;throw r=new Hs.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:$t(e)}),(0,Be.decorateServiceException)(r,s.Error)}},Xqe=async(e,t)=>{if(e.statusCode>=300)return Kqe(e,t);let n=await Nn(e.body,t),r={};r=vLe(n.AssumeRoleWithWebIdentityResult,t);let i=o({$metadata:$t(e)},r);return Promise.resolve(i)};ft.deserializeAws_queryAssumeRoleWithWebIdentityCommand=Xqe;var Kqe=async(e,t)=>{let n=S(o({},e),{body:await Nn(e.body,t)}),r,i="UnknownError";switch(i=Ks(e,n.body),i){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await Kk(n,t);case"IDPCommunicationErrorException":case"com.amazonaws.sts#IDPCommunicationErrorException":throw await oLe(n,t);case"IDPRejectedClaimException":case"com.amazonaws.sts#IDPRejectedClaimException":throw await JW(n,t);case"InvalidIdentityTokenException":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await XW(n,t);case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await Hw(n,t);case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await Jw(n,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await Cu(n,t);default:let s=n.body;throw r=new Hs.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:$t(e)}),(0,Be.decorateServiceException)(r,s.Error)}},Wqe=async(e,t)=>{if(e.statusCode>=300)return Qqe(e,t);let n=await Nn(e.body,t),r={};r=CLe(n.DecodeAuthorizationMessageResult,t);let i=o({$metadata:$t(e)},r);return Promise.resolve(i)};ft.deserializeAws_queryDecodeAuthorizationMessageCommand=Wqe;var Qqe=async(e,t)=>{let n=S(o({},e),{body:await Nn(e.body,t)}),r,i="UnknownError";switch(i=Ks(e,n.body),i){case"InvalidAuthorizationMessageException":case"com.amazonaws.sts#InvalidAuthorizationMessageException":throw await aLe(n,t);default:let s=n.body;throw r=new Hs.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:$t(e)}),(0,Be.decorateServiceException)(r,s.Error)}},Yqe=async(e,t)=>{if(e.statusCode>=300)return Zqe(e,t);let n=await Nn(e.body,t),r={};r=xLe(n.GetAccessKeyInfoResult,t);let i=o({$metadata:$t(e)},r);return Promise.resolve(i)};ft.deserializeAws_queryGetAccessKeyInfoCommand=Yqe;var Zqe=async(e,t)=>{let n=S(o({},e),{body:await Nn(e.body,t)}),r,i="UnknownError";switch(i=Ks(e,n.body),i){default:let s=n.body;throw r=new Hs.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:$t(e)}),(0,Be.decorateServiceException)(r,s.Error)}},eLe=async(e,t)=>{if(e.statusCode>=300)return tLe(e,t);let n=await Nn(e.body,t),r={};r=bLe(n.GetCallerIdentityResult,t);let i=o({$metadata:$t(e)},r);return Promise.resolve(i)};ft.deserializeAws_queryGetCallerIdentityCommand=eLe;var tLe=async(e,t)=>{let n=S(o({},e),{body:await Nn(e.body,t)}),r,i="UnknownError";switch(i=Ks(e,n.body),i){default:let s=n.body;throw r=new Hs.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:$t(e)}),(0,Be.decorateServiceException)(r,s.Error)}},nLe=async(e,t)=>{if(e.statusCode>=300)return rLe(e,t);let n=await Nn(e.body,t),r={};r=RLe(n.GetFederationTokenResult,t);let i=o({$metadata:$t(e)},r);return Promise.resolve(i)};ft.deserializeAws_queryGetFederationTokenCommand=nLe;var rLe=async(e,t)=>{let n=S(o({},e),{body:await Nn(e.body,t)}),r,i="UnknownError";switch(i=Ks(e,n.body),i){case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await Hw(n,t);case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await Jw(n,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await Cu(n,t);default:let s=n.body;throw r=new Hs.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:$t(e)}),(0,Be.decorateServiceException)(r,s.Error)}},iLe=async(e,t)=>{if(e.statusCode>=300)return sLe(e,t);let n=await Nn(e.body,t),r={};r=TLe(n.GetSessionTokenResult,t);let i=o({$metadata:$t(e)},r);return Promise.resolve(i)};ft.deserializeAws_queryGetSessionTokenCommand=iLe;var sLe=async(e,t)=>{let n=S(o({},e),{body:await Nn(e.body,t)}),r,i="UnknownError";switch(i=Ks(e,n.body),i){case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await Cu(n,t);default:let s=n.body;throw r=new Hs.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:$t(e)}),(0,Be.decorateServiceException)(r,s.Error)}},Kk=async(e,t)=>{let n=e.body,r=ELe(n.Error,t),i=new $s.ExpiredTokenException(o({$metadata:$t(e)},r));return(0,Be.decorateServiceException)(i,n)},oLe=async(e,t)=>{let n=e.body,r=ILe(n.Error,t),i=new $s.IDPCommunicationErrorException(o({$metadata:$t(e)},r));return(0,Be.decorateServiceException)(i,n)},JW=async(e,t)=>{let n=e.body,r=NLe(n.Error,t),i=new $s.IDPRejectedClaimException(o({$metadata:$t(e)},r));return(0,Be.decorateServiceException)(i,n)},aLe=async(e,t)=>{let n=e.body,r=PLe(n.Error,t),i=new $s.InvalidAuthorizationMessageException(o({$metadata:$t(e)},r));return(0,Be.decorateServiceException)(i,n)},XW=async(e,t)=>{let n=e.body,r=kLe(n.Error,t),i=new $s.InvalidIdentityTokenException(o({$metadata:$t(e)},r));return(0,Be.decorateServiceException)(i,n)},Hw=async(e,t)=>{let n=e.body,r=zLe(n.Error,t),i=new $s.MalformedPolicyDocumentException(o({$metadata:$t(e)},r));return(0,Be.decorateServiceException)(i,n)},Jw=async(e,t)=>{let n=e.body,r=qLe(n.Error,t),i=new $s.PackedPolicyTooLargeException(o({$metadata:$t(e)},r));return(0,Be.decorateServiceException)(i,n)},Cu=async(e,t)=>{let n=e.body,r=LLe(n.Error,t),i=new $s.RegionDisabledException(o({$metadata:$t(e)},r));return(0,Be.decorateServiceException)(i,n)},dLe=(e,t)=>{let n={};if(e.RoleArn!==void 0&&e.RoleArn!==null&&(n.RoleArn=e.RoleArn),e.RoleSessionName!==void 0&&e.RoleSessionName!==null&&(n.RoleSessionName=e.RoleSessionName),e.PolicyArns!==void 0&&e.PolicyArns!==null){let r=Xw(e.PolicyArns,t);Object.entries(r).forEach(([i,s])=>{let d=`PolicyArns.${i}`;n[d]=s})}if(e.Policy!==void 0&&e.Policy!==null&&(n.Policy=e.Policy),e.DurationSeconds!==void 0&&e.DurationSeconds!==null&&(n.DurationSeconds=e.DurationSeconds),e.Tags!==void 0&&e.Tags!==null){let r=KW(e.Tags,t);Object.entries(r).forEach(([i,s])=>{let d=`Tags.${i}`;n[d]=s})}if(e.TransitiveTagKeys!==void 0&&e.TransitiveTagKeys!==null){let r=yLe(e.TransitiveTagKeys,t);Object.entries(r).forEach(([i,s])=>{let d=`TransitiveTagKeys.${i}`;n[d]=s})}return e.ExternalId!==void 0&&e.ExternalId!==null&&(n.ExternalId=e.ExternalId),e.SerialNumber!==void 0&&e.SerialNumber!==null&&(n.SerialNumber=e.SerialNumber),e.TokenCode!==void 0&&e.TokenCode!==null&&(n.TokenCode=e.TokenCode),e.SourceIdentity!==void 0&&e.SourceIdentity!==null&&(n.SourceIdentity=e.SourceIdentity),n},cLe=(e,t)=>{let n={};if(e.RoleArn!==void 0&&e.RoleArn!==null&&(n.RoleArn=e.RoleArn),e.PrincipalArn!==void 0&&e.PrincipalArn!==null&&(n.PrincipalArn=e.PrincipalArn),e.SAMLAssertion!==void 0&&e.SAMLAssertion!==null&&(n.SAMLAssertion=e.SAMLAssertion),e.PolicyArns!==void 0&&e.PolicyArns!==null){let r=Xw(e.PolicyArns,t);Object.entries(r).forEach(([i,s])=>{let d=`PolicyArns.${i}`;n[d]=s})}return e.Policy!==void 0&&e.Policy!==null&&(n.Policy=e.Policy),e.DurationSeconds!==void 0&&e.DurationSeconds!==null&&(n.DurationSeconds=e.DurationSeconds),n},lLe=(e,t)=>{let n={};if(e.RoleArn!==void 0&&e.RoleArn!==null&&(n.RoleArn=e.RoleArn),e.RoleSessionName!==void 0&&e.RoleSessionName!==null&&(n.RoleSessionName=e.RoleSessionName),e.WebIdentityToken!==void 0&&e.WebIdentityToken!==null&&(n.WebIdentityToken=e.WebIdentityToken),e.ProviderId!==void 0&&e.ProviderId!==null&&(n.ProviderId=e.ProviderId),e.PolicyArns!==void 0&&e.PolicyArns!==null){let r=Xw(e.PolicyArns,t);Object.entries(r).forEach(([i,s])=>{let d=`PolicyArns.${i}`;n[d]=s})}return e.Policy!==void 0&&e.Policy!==null&&(n.Policy=e.Policy),e.DurationSeconds!==void 0&&e.DurationSeconds!==null&&(n.DurationSeconds=e.DurationSeconds),n},uLe=(e,t)=>{let n={};return e.EncodedMessage!==void 0&&e.EncodedMessage!==null&&(n.EncodedMessage=e.EncodedMessage),n},mLe=(e,t)=>{let n={};return e.AccessKeyId!==void 0&&e.AccessKeyId!==null&&(n.AccessKeyId=e.AccessKeyId),n},fLe=(e,t)=>({}),pLe=(e,t)=>{let n={};if(e.Name!==void 0&&e.Name!==null&&(n.Name=e.Name),e.Policy!==void 0&&e.Policy!==null&&(n.Policy=e.Policy),e.PolicyArns!==void 0&&e.PolicyArns!==null){let r=Xw(e.PolicyArns,t);Object.entries(r).forEach(([i,s])=>{let d=`PolicyArns.${i}`;n[d]=s})}if(e.DurationSeconds!==void 0&&e.DurationSeconds!==null&&(n.DurationSeconds=e.DurationSeconds),e.Tags!==void 0&&e.Tags!==null){let r=KW(e.Tags,t);Object.entries(r).forEach(([i,s])=>{let d=`Tags.${i}`;n[d]=s})}return n},gLe=(e,t)=>{let n={};return e.DurationSeconds!==void 0&&e.DurationSeconds!==null&&(n.DurationSeconds=e.DurationSeconds),e.SerialNumber!==void 0&&e.SerialNumber!==null&&(n.SerialNumber=e.SerialNumber),e.TokenCode!==void 0&&e.TokenCode!==null&&(n.TokenCode=e.TokenCode),n},Xw=(e,t)=>{let n={},r=1;for(let i of e){if(i===null)continue;let s=hLe(i,t);Object.entries(s).forEach(([d,a])=>{n[`member.${r}.${d}`]=a}),r++}return n},hLe=(e,t)=>{let n={};return e.arn!==void 0&&e.arn!==null&&(n.arn=e.arn),n},wLe=(e,t)=>{let n={};return e.Key!==void 0&&e.Key!==null&&(n.Key=e.Key),e.Value!==void 0&&e.Value!==null&&(n.Value=e.Value),n},yLe=(e,t)=>{let n={},r=1;for(let i of e)i!==null&&(n[`member.${r}`]=i,r++);return n},KW=(e,t)=>{let n={},r=1;for(let i of e){if(i===null)continue;let s=wLe(i,t);Object.entries(s).forEach(([d,a])=>{n[`member.${r}.${d}`]=a}),r++}return n},Wk=(e,t)=>{let n={AssumedRoleId:void 0,Arn:void 0};return e.AssumedRoleId!==void 0&&(n.AssumedRoleId=(0,Be.expectString)(e.AssumedRoleId)),e.Arn!==void 0&&(n.Arn=(0,Be.expectString)(e.Arn)),n},SLe=(e,t)=>{let n={Credentials:void 0,AssumedRoleUser:void 0,PackedPolicySize:void 0,SourceIdentity:void 0};return e.Credentials!==void 0&&(n.Credentials=Eu(e.Credentials,t)),e.AssumedRoleUser!==void 0&&(n.AssumedRoleUser=Wk(e.AssumedRoleUser,t)),e.PackedPolicySize!==void 0&&(n.PackedPolicySize=(0,Be.strictParseInt32)(e.PackedPolicySize)),e.SourceIdentity!==void 0&&(n.SourceIdentity=(0,Be.expectString)(e.SourceIdentity)),n},_Le=(e,t)=>{let n={Credentials:void 0,AssumedRoleUser:void 0,PackedPolicySize:void 0,Subject:void 0,SubjectType:void 0,Issuer:void 0,Audience:void 0,NameQualifier:void 0,SourceIdentity:void 0};return e.Credentials!==void 0&&(n.Credentials=Eu(e.Credentials,t)),e.AssumedRoleUser!==void 0&&(n.AssumedRoleUser=Wk(e.AssumedRoleUser,t)),e.PackedPolicySize!==void 0&&(n.PackedPolicySize=(0,Be.strictParseInt32)(e.PackedPolicySize)),e.Subject!==void 0&&(n.Subject=(0,Be.expectString)(e.Subject)),e.SubjectType!==void 0&&(n.SubjectType=(0,Be.expectString)(e.SubjectType)),e.Issuer!==void 0&&(n.Issuer=(0,Be.expectString)(e.Issuer)),e.Audience!==void 0&&(n.Audience=(0,Be.expectString)(e.Audience)),e.NameQualifier!==void 0&&(n.NameQualifier=(0,Be.expectString)(e.NameQualifier)),e.SourceIdentity!==void 0&&(n.SourceIdentity=(0,Be.expectString)(e.SourceIdentity)),n},vLe=(e,t)=>{let n={Credentials:void 0,SubjectFromWebIdentityToken:void 0,AssumedRoleUser:void 0,PackedPolicySize:void 0,Provider:void 0,Audience:void 0,SourceIdentity:void 0};return e.Credentials!==void 0&&(n.Credentials=Eu(e.Credentials,t)),e.SubjectFromWebIdentityToken!==void 0&&(n.SubjectFromWebIdentityToken=(0,Be.expectString)(e.SubjectFromWebIdentityToken)),e.AssumedRoleUser!==void 0&&(n.AssumedRoleUser=Wk(e.AssumedRoleUser,t)),e.PackedPolicySize!==void 0&&(n.PackedPolicySize=(0,Be.strictParseInt32)(e.PackedPolicySize)),e.Provider!==void 0&&(n.Provider=(0,Be.expectString)(e.Provider)),e.Audience!==void 0&&(n.Audience=(0,Be.expectString)(e.Audience)),e.SourceIdentity!==void 0&&(n.SourceIdentity=(0,Be.expectString)(e.SourceIdentity)),n},Eu=(e,t)=>{let n={AccessKeyId:void 0,SecretAccessKey:void 0,SessionToken:void 0,Expiration:void 0};return e.AccessKeyId!==void 0&&(n.AccessKeyId=(0,Be.expectString)(e.AccessKeyId)),e.SecretAccessKey!==void 0&&(n.SecretAccessKey=(0,Be.expectString)(e.SecretAccessKey)),e.SessionToken!==void 0&&(n.SessionToken=(0,Be.expectString)(e.SessionToken)),e.Expiration!==void 0&&(n.Expiration=(0,Be.expectNonNull)((0,Be.parseRfc3339DateTime)(e.Expiration))),n},CLe=(e,t)=>{let n={DecodedMessage:void 0};return e.DecodedMessage!==void 0&&(n.DecodedMessage=(0,Be.expectString)(e.DecodedMessage)),n},ELe=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=(0,Be.expectString)(e.message)),n},ALe=(e,t)=>{let n={FederatedUserId:void 0,Arn:void 0};return e.FederatedUserId!==void 0&&(n.FederatedUserId=(0,Be.expectString)(e.FederatedUserId)),e.Arn!==void 0&&(n.Arn=(0,Be.expectString)(e.Arn)),n},xLe=(e,t)=>{let n={Account:void 0};return e.Account!==void 0&&(n.Account=(0,Be.expectString)(e.Account)),n},bLe=(e,t)=>{let n={UserId:void 0,Account:void 0,Arn:void 0};return e.UserId!==void 0&&(n.UserId=(0,Be.expectString)(e.UserId)),e.Account!==void 0&&(n.Account=(0,Be.expectString)(e.Account)),e.Arn!==void 0&&(n.Arn=(0,Be.expectString)(e.Arn)),n},RLe=(e,t)=>{let n={Credentials:void 0,FederatedUser:void 0,PackedPolicySize:void 0};return e.Credentials!==void 0&&(n.Credentials=Eu(e.Credentials,t)),e.FederatedUser!==void 0&&(n.FederatedUser=ALe(e.FederatedUser,t)),e.PackedPolicySize!==void 0&&(n.PackedPolicySize=(0,Be.strictParseInt32)(e.PackedPolicySize)),n},TLe=(e,t)=>{let n={Credentials:void 0};return e.Credentials!==void 0&&(n.Credentials=Eu(e.Credentials,t)),n},ILe=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=(0,Be.expectString)(e.message)),n},NLe=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=(0,Be.expectString)(e.message)),n},PLe=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=(0,Be.expectString)(e.message)),n},kLe=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=(0,Be.expectString)(e.message)),n},zLe=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=(0,Be.expectString)(e.message)),n},qLe=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=(0,Be.expectString)(e.message)),n},LLe=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=(0,Be.expectString)(e.message)),n},$t=e=>{var t;return{httpStatusCode:e.statusCode,requestId:(t=e.headers["x-amzn-requestid"])!==null&&t!==void 0?t:e.headers["x-amzn-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}},DLe=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),MLe=(e,t)=>DLe(e,t).then(n=>t.utf8Encoder(n)),Js=async(e,t,n,r,i)=>{let{hostname:s,protocol:d="https",port:a,path:c}=await e.endpoint(),l={protocol:d,hostname:s,port:a,method:"POST",path:c.endsWith("/")?c.slice(0,-1)+n:c+n,headers:t};return r!==void 0&&(l.hostname=r),i!==void 0&&(l.body=i),new zqe.HttpRequest(l)},Nn=(e,t)=>MLe(e,t).then(n=>{if(n.length){let r=(0,Lqe.parse)(n,{attributeNamePrefix:"",ignoreAttributes:!1,parseNodeValue:!1,trimValues:!1,tagValueProcessor:a=>a.trim()===""&&a.includes(`
|
|
27
27
|
`)?"":(0,qqe.decodeHTML)(a)}),i="#text",s=Object.keys(r)[0],d=r[s];return d[i]&&(d[s]=d[i],delete d[i]),(0,Be.getValueFromTextNode)(d)}return{}}),Xs=e=>Object.entries(e).map(([t,n])=>(0,Be.extendedEncodeURIComponent)(t)+"="+(0,Be.extendedEncodeURIComponent)(n)).join("&"),Ks=(e,t)=>t.Error.Code!==void 0?t.Error.Code:e.statusCode==404?"NotFound":""});var Ww=m(Kw=>{"use strict";Object.defineProperty(Kw,"__esModule",{value:!0});Kw.AssumeRoleCommand=void 0;var BLe=P(),OLe=Ar(),FLe=R(),WW=Mr(),QW=Qi(),Qk=class extends FLe.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,BLe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,OLe.getAwsAuthPlugin)(n));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"STSClient",commandName:"AssumeRoleCommand",inputFilterSensitiveLog:WW.AssumeRoleRequest.filterSensitiveLog,outputFilterSensitiveLog:WW.AssumeRoleResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,QW.serializeAws_queryAssumeRoleCommand)(t,n)}deserialize(t,n){return(0,QW.deserializeAws_queryAssumeRoleCommand)(t,n)}};Kw.AssumeRoleCommand=Qk});var Zk=m(Qw=>{"use strict";Object.defineProperty(Qw,"__esModule",{value:!0});Qw.AssumeRoleWithSAMLCommand=void 0;var jLe=P(),ULe=R(),YW=Mr(),ZW=Qi(),Yk=class extends ULe.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,jLe.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"STSClient",commandName:"AssumeRoleWithSAMLCommand",inputFilterSensitiveLog:YW.AssumeRoleWithSAMLRequest.filterSensitiveLog,outputFilterSensitiveLog:YW.AssumeRoleWithSAMLResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,ZW.serializeAws_queryAssumeRoleWithSAMLCommand)(t,n)}deserialize(t,n){return(0,ZW.deserializeAws_queryAssumeRoleWithSAMLCommand)(t,n)}};Qw.AssumeRoleWithSAMLCommand=Yk});var Zw=m(Yw=>{"use strict";Object.defineProperty(Yw,"__esModule",{value:!0});Yw.AssumeRoleWithWebIdentityCommand=void 0;var GLe=P(),VLe=R(),e8=Mr(),t8=Qi(),e1=class extends VLe.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,GLe.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"STSClient",commandName:"AssumeRoleWithWebIdentityCommand",inputFilterSensitiveLog:e8.AssumeRoleWithWebIdentityRequest.filterSensitiveLog,outputFilterSensitiveLog:e8.AssumeRoleWithWebIdentityResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,t8.serializeAws_queryAssumeRoleWithWebIdentityCommand)(t,n)}deserialize(t,n){return(0,t8.deserializeAws_queryAssumeRoleWithWebIdentityCommand)(t,n)}};Yw.AssumeRoleWithWebIdentityCommand=e1});var n1=m(ey=>{"use strict";Object.defineProperty(ey,"__esModule",{value:!0});ey.DecodeAuthorizationMessageCommand=void 0;var $Le=P(),HLe=Ar(),JLe=R(),n8=Mr(),r8=Qi(),t1=class extends JLe.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,$Le.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,HLe.getAwsAuthPlugin)(n));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"STSClient",commandName:"DecodeAuthorizationMessageCommand",inputFilterSensitiveLog:n8.DecodeAuthorizationMessageRequest.filterSensitiveLog,outputFilterSensitiveLog:n8.DecodeAuthorizationMessageResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,r8.serializeAws_queryDecodeAuthorizationMessageCommand)(t,n)}deserialize(t,n){return(0,r8.deserializeAws_queryDecodeAuthorizationMessageCommand)(t,n)}};ey.DecodeAuthorizationMessageCommand=t1});var i1=m(ty=>{"use strict";Object.defineProperty(ty,"__esModule",{value:!0});ty.GetAccessKeyInfoCommand=void 0;var XLe=P(),KLe=Ar(),WLe=R(),i8=Mr(),s8=Qi(),r1=class extends WLe.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,XLe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,KLe.getAwsAuthPlugin)(n));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"STSClient",commandName:"GetAccessKeyInfoCommand",inputFilterSensitiveLog:i8.GetAccessKeyInfoRequest.filterSensitiveLog,outputFilterSensitiveLog:i8.GetAccessKeyInfoResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,s8.serializeAws_queryGetAccessKeyInfoCommand)(t,n)}deserialize(t,n){return(0,s8.deserializeAws_queryGetAccessKeyInfoCommand)(t,n)}};ty.GetAccessKeyInfoCommand=r1});var o1=m(ny=>{"use strict";Object.defineProperty(ny,"__esModule",{value:!0});ny.GetCallerIdentityCommand=void 0;var QLe=P(),YLe=Ar(),ZLe=R(),o8=Mr(),a8=Qi(),s1=class extends ZLe.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,QLe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,YLe.getAwsAuthPlugin)(n));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"STSClient",commandName:"GetCallerIdentityCommand",inputFilterSensitiveLog:o8.GetCallerIdentityRequest.filterSensitiveLog,outputFilterSensitiveLog:o8.GetCallerIdentityResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,a8.serializeAws_queryGetCallerIdentityCommand)(t,n)}deserialize(t,n){return(0,a8.deserializeAws_queryGetCallerIdentityCommand)(t,n)}};ny.GetCallerIdentityCommand=s1});var d1=m(ry=>{"use strict";Object.defineProperty(ry,"__esModule",{value:!0});ry.GetFederationTokenCommand=void 0;var eDe=P(),tDe=Ar(),nDe=R(),d8=Mr(),c8=Qi(),a1=class extends nDe.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,eDe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,tDe.getAwsAuthPlugin)(n));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"STSClient",commandName:"GetFederationTokenCommand",inputFilterSensitiveLog:d8.GetFederationTokenRequest.filterSensitiveLog,outputFilterSensitiveLog:d8.GetFederationTokenResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,c8.serializeAws_queryGetFederationTokenCommand)(t,n)}deserialize(t,n){return(0,c8.deserializeAws_queryGetFederationTokenCommand)(t,n)}};ry.GetFederationTokenCommand=a1});var l1=m(iy=>{"use strict";Object.defineProperty(iy,"__esModule",{value:!0});iy.GetSessionTokenCommand=void 0;var rDe=P(),iDe=Ar(),sDe=R(),l8=Mr(),u8=Qi(),c1=class extends sDe.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,rDe.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,iDe.getAwsAuthPlugin)(n));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"STSClient",commandName:"GetSessionTokenCommand",inputFilterSensitiveLog:l8.GetSessionTokenRequest.filterSensitiveLog,outputFilterSensitiveLog:l8.GetSessionTokenResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,u8.serializeAws_queryGetSessionTokenCommand)(t,n)}deserialize(t,n){return(0,u8.deserializeAws_queryGetSessionTokenCommand)(t,n)}};iy.GetSessionTokenCommand=c1});var m8=m(sy=>{"use strict";Object.defineProperty(sy,"__esModule",{value:!0});sy.resolveStsAuthConfig=void 0;var oDe=Ar(),aDe=(e,{stsClientCtor:t})=>(0,oDe.resolveAwsAuthConfig)(S(o({},e),{stsClientCtor:t}));sy.resolveStsAuthConfig=aDe});var f8=m((LKt,dDe)=>{dDe.exports={name:"@aws-sdk/client-sts",description:"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",version:"3.95.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/config-resolver":"3.80.0","@aws-sdk/credential-provider-node":"3.95.0","@aws-sdk/fetch-http-handler":"3.78.0","@aws-sdk/hash-node":"3.78.0","@aws-sdk/invalid-dependency":"3.78.0","@aws-sdk/middleware-content-length":"3.78.0","@aws-sdk/middleware-host-header":"3.78.0","@aws-sdk/middleware-logger":"3.78.0","@aws-sdk/middleware-retry":"3.80.0","@aws-sdk/middleware-sdk-sts":"3.78.0","@aws-sdk/middleware-serde":"3.78.0","@aws-sdk/middleware-signing":"3.78.0","@aws-sdk/middleware-stack":"3.78.0","@aws-sdk/middleware-user-agent":"3.78.0","@aws-sdk/node-config-provider":"3.80.0","@aws-sdk/node-http-handler":"3.94.0","@aws-sdk/protocol-http":"3.78.0","@aws-sdk/smithy-client":"3.85.0","@aws-sdk/types":"3.78.0","@aws-sdk/url-parser":"3.78.0","@aws-sdk/util-base64-browser":"3.58.0","@aws-sdk/util-base64-node":"3.55.0","@aws-sdk/util-body-length-browser":"3.55.0","@aws-sdk/util-body-length-node":"3.55.0","@aws-sdk/util-defaults-mode-browser":"3.85.0","@aws-sdk/util-defaults-mode-node":"3.85.0","@aws-sdk/util-user-agent-browser":"3.78.0","@aws-sdk/util-user-agent-node":"3.80.0","@aws-sdk/util-utf8-browser":"3.55.0","@aws-sdk/util-utf8-node":"3.55.0",entities:"2.2.0","fast-xml-parser":"3.19.0",tslib:"^2.3.1"},devDependencies:{"@aws-sdk/service-client-documentation-generator":"3.58.0","@tsconfig/recommended":"1.0.1","@types/node":"^12.7.5",concurrently:"7.0.0","downlevel-dts":"0.7.0",rimraf:"3.0.2",typedoc:"0.19.2",typescript:"~4.6.2"},engines:{node:">=12.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sts"}}});var u1=m(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.decorateDefaultCredentialProvider=li.getDefaultRoleAssumerWithWebIdentity=li.getDefaultRoleAssumer=void 0;var cDe=Ww(),lDe=Zw(),p8="us-east-1",g8=e=>typeof e!="function"?e===void 0?p8:e:async()=>{try{return await e()}catch{return p8}},uDe=(e,t)=>{let n,r;return async(i,s)=>{if(r=i,!n){let{logger:a,region:c,requestHandler:l}=e;n=new t(o({logger:a,credentialDefaultProvider:()=>async()=>r,region:g8(c||e.region)},l?{requestHandler:l}:{}))}let{Credentials:d}=await n.send(new cDe.AssumeRoleCommand(s));if(!d||!d.AccessKeyId||!d.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${s.RoleArn}`);return{accessKeyId:d.AccessKeyId,secretAccessKey:d.SecretAccessKey,sessionToken:d.SessionToken,expiration:d.Expiration}}};li.getDefaultRoleAssumer=uDe;var mDe=(e,t)=>{let n;return async r=>{if(!n){let{logger:s,region:d,requestHandler:a}=e;n=new t(o({logger:s,region:g8(d||e.region)},a?{requestHandler:a}:{}))}let{Credentials:i}=await n.send(new lDe.AssumeRoleWithWebIdentityCommand(r));if(!i||!i.AccessKeyId||!i.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${r.RoleArn}`);return{accessKeyId:i.AccessKeyId,secretAccessKey:i.SecretAccessKey,sessionToken:i.SessionToken,expiration:i.Expiration}}};li.getDefaultRoleAssumerWithWebIdentity=mDe;var fDe=e=>t=>e(o({roleAssumer:(0,li.getDefaultRoleAssumer)(t,t.stsClientCtor),roleAssumerWithWebIdentity:(0,li.getDefaultRoleAssumerWithWebIdentity)(t,t.stsClientCtor)},t));li.decorateDefaultCredentialProvider=fDe});var h8=m(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.fromEnv=Pn.ENV_EXPIRATION=Pn.ENV_SESSION=Pn.ENV_SECRET=Pn.ENV_KEY=void 0;var pDe=vt();Pn.ENV_KEY="AWS_ACCESS_KEY_ID";Pn.ENV_SECRET="AWS_SECRET_ACCESS_KEY";Pn.ENV_SESSION="AWS_SESSION_TOKEN";Pn.ENV_EXPIRATION="AWS_CREDENTIAL_EXPIRATION";var gDe=()=>async()=>{let e=process.env[Pn.ENV_KEY],t=process.env[Pn.ENV_SECRET],n=process.env[Pn.ENV_SESSION],r=process.env[Pn.ENV_EXPIRATION];if(e&&t)return o(o({accessKeyId:e,secretAccessKey:t},n&&{sessionToken:n}),r&&{expiration:new Date(r)});throw new pDe.CredentialsProviderError("Unable to find environment variable credentials.")};Pn.fromEnv=gDe});var f1=m(m1=>{"use strict";Object.defineProperty(m1,"__esModule",{value:!0});var hDe=oe();hDe.__exportStar(h8(),m1)});var Au=m(oy=>{"use strict";Object.defineProperty(oy,"__esModule",{value:!0});oy.getHomeDir=void 0;var wDe=require("os"),yDe=require("path"),SDe=()=>{let{HOME:e,USERPROFILE:t,HOMEPATH:n,HOMEDRIVE:r=`C:${yDe.sep}`}=process.env;return e||t||(n?`${r}${n}`:(0,wDe.homedir)())};oy.getHomeDir=SDe});var w8=m(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.getProfileName=ui.DEFAULT_PROFILE=ui.ENV_PROFILE=void 0;ui.ENV_PROFILE="AWS_PROFILE";ui.DEFAULT_PROFILE="default";var _De=e=>e.profile||process.env[ui.ENV_PROFILE]||ui.DEFAULT_PROFILE;ui.getProfileName=_De});var p1=m(ay=>{"use strict";Object.defineProperty(ay,"__esModule",{value:!0});ay.getSSOTokenFilepath=void 0;var vDe=require("crypto"),CDe=require("path"),EDe=Au(),ADe=e=>{let n=(0,vDe.createHash)("sha1").update(e).digest("hex");return(0,CDe.join)((0,EDe.getHomeDir)(),".aws","sso","cache",`${n}.json`)};ay.getSSOTokenFilepath=ADe});var y8=m(dy=>{"use strict";Object.defineProperty(dy,"__esModule",{value:!0});dy.getSSOTokenFromFile=void 0;var xDe=require("fs"),bDe=p1(),{readFile:RDe}=xDe.promises,TDe=async e=>{let t=(0,bDe.getSSOTokenFilepath)(e),n=await RDe(t,"utf8");return JSON.parse(n)};dy.getSSOTokenFromFile=TDe});var S8=m(ea=>{"use strict";Object.defineProperty(ea,"__esModule",{value:!0});ea.getConfigFilepath=ea.ENV_CONFIG_PATH=void 0;var IDe=require("path"),NDe=Au();ea.ENV_CONFIG_PATH="AWS_CONFIG_FILE";var PDe=()=>process.env[ea.ENV_CONFIG_PATH]||(0,IDe.join)((0,NDe.getHomeDir)(),".aws","config");ea.getConfigFilepath=PDe});var _8=m(ta=>{"use strict";Object.defineProperty(ta,"__esModule",{value:!0});ta.getCredentialsFilepath=ta.ENV_CREDENTIALS_PATH=void 0;var kDe=require("path"),zDe=Au();ta.ENV_CREDENTIALS_PATH="AWS_SHARED_CREDENTIALS_FILE";var qDe=()=>process.env[ta.ENV_CREDENTIALS_PATH]||(0,kDe.join)((0,zDe.getHomeDir)(),".aws","credentials");ta.getCredentialsFilepath=qDe});var C8=m(cy=>{"use strict";Object.defineProperty(cy,"__esModule",{value:!0});cy.getProfileData=void 0;var v8=/^profile\s(["'])?([^\1]+)\1$/,LDe=e=>Object.entries(e).filter(([t])=>v8.test(t)).reduce((t,[n,r])=>S(o({},t),{[v8.exec(n)[2]]:r}),o({},e.default&&{default:e.default}));cy.getProfileData=LDe});var E8=m(ly=>{"use strict";Object.defineProperty(ly,"__esModule",{value:!0});ly.parseIni=void 0;var DDe=["__proto__","profile __proto__"],MDe=e=>{let t={},n;for(let r of e.split(/\r?\n/)){r=r.split(/(^|\s)[;#]/)[0];let i=r.match(/^\s*\[([^\[\]]+)]\s*$/);if(i){if(n=i[1],DDe.includes(n))throw new Error(`Found invalid profile name "${n}"`)}else if(n){let s=r.match(/^\s*(.+?)\s*=\s*(.+?)\s*$/);s&&(t[n]=t[n]||{},t[n][s[1]]=s[2])}}return t};ly.parseIni=MDe});var A8=m(uy=>{"use strict";Object.defineProperty(uy,"__esModule",{value:!0});uy.slurpFile=void 0;var BDe=require("fs"),{readFile:ODe}=BDe.promises,g1={},FDe=e=>(g1[e]||(g1[e]=ODe(e,"utf8")),g1[e]);uy.slurpFile=FDe});var h1=m(my=>{"use strict";Object.defineProperty(my,"__esModule",{value:!0});my.loadSharedConfigFiles=void 0;var jDe=S8(),UDe=_8(),GDe=C8(),x8=E8(),b8=A8(),R8=()=>({}),VDe=async(e={})=>{let{filepath:t=(0,UDe.getCredentialsFilepath)(),configFilepath:n=(0,jDe.getConfigFilepath)()}=e,r=await Promise.all([(0,b8.slurpFile)(n).then(x8.parseIni).then(GDe.getProfileData).catch(R8),(0,b8.slurpFile)(t).then(x8.parseIni).catch(R8)]);return{configFile:r[0],credentialsFile:r[1]}};my.loadSharedConfigFiles=VDe});var T8=m(fy=>{"use strict";Object.defineProperty(fy,"__esModule",{value:!0});fy.parseKnownFiles=void 0;var $De=h1(),HDe=async e=>{let t=await(0,$De.loadSharedConfigFiles)(e);return o(o({},t.configFile),t.credentialsFile)};fy.parseKnownFiles=HDe});var N8=m(I8=>{"use strict";Object.defineProperty(I8,"__esModule",{value:!0})});var xu=m(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});var na=oe();na.__exportStar(Au(),Yi);na.__exportStar(w8(),Yi);na.__exportStar(p1(),Yi);na.__exportStar(y8(),Yi);na.__exportStar(h1(),Yi);na.__exportStar(T8(),Yi);na.__exportStar(N8(),Yi)});var gy=m(py=>{"use strict";Object.defineProperty(py,"__esModule",{value:!0});py.httpRequest=void 0;var w1=vt(),JDe=require("buffer"),XDe=require("http");function KDe(e){return new Promise((t,n)=>{var r;let i=(0,XDe.request)(S(o({method:"GET"},e),{hostname:(r=e.hostname)===null||r===void 0?void 0:r.replace(/^\[(.+)\]$/,"$1")}));i.on("error",s=>{n(Object.assign(new w1.ProviderError("Unable to connect to instance metadata service"),s)),i.destroy()}),i.on("timeout",()=>{n(new w1.ProviderError("TimeoutError from instance metadata service")),i.destroy()}),i.on("response",s=>{let{statusCode:d=400}=s;(d<200||300<=d)&&(n(Object.assign(new w1.ProviderError("Error response received from instance metadata service"),{statusCode:d})),i.destroy());let a=[];s.on("data",c=>{a.push(c)}),s.on("end",()=>{t(JDe.Buffer.concat(a)),i.destroy()})}),i.end()})}py.httpRequest=KDe});var y1=m(cd=>{"use strict";Object.defineProperty(cd,"__esModule",{value:!0});cd.fromImdsCredentials=cd.isImdsCredentials=void 0;var WDe=e=>Boolean(e)&&typeof e=="object"&&typeof e.AccessKeyId=="string"&&typeof e.SecretAccessKey=="string"&&typeof e.Token=="string"&&typeof e.Expiration=="string";cd.isImdsCredentials=WDe;var QDe=e=>({accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:new Date(e.Expiration)});cd.fromImdsCredentials=QDe});var hy=m(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.providerConfigFromInit=mi.DEFAULT_MAX_RETRIES=mi.DEFAULT_TIMEOUT=void 0;mi.DEFAULT_TIMEOUT=1e3;mi.DEFAULT_MAX_RETRIES=0;var YDe=({maxRetries:e=mi.DEFAULT_MAX_RETRIES,timeout:t=mi.DEFAULT_TIMEOUT})=>({maxRetries:e,timeout:t});mi.providerConfigFromInit=YDe});var S1=m(wy=>{"use strict";Object.defineProperty(wy,"__esModule",{value:!0});wy.retry=void 0;var ZDe=(e,t)=>{let n=e();for(let r=0;r<t;r++)n=n.catch(e);return n};wy.retry=ZDe});var k8=m(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.fromContainerMetadata=hn.ENV_CMDS_AUTH_TOKEN=hn.ENV_CMDS_RELATIVE_URI=hn.ENV_CMDS_FULL_URI=void 0;var yy=vt(),eMe=require("url"),tMe=gy(),P8=y1(),nMe=hy(),rMe=S1();hn.ENV_CMDS_FULL_URI="AWS_CONTAINER_CREDENTIALS_FULL_URI";hn.ENV_CMDS_RELATIVE_URI="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";hn.ENV_CMDS_AUTH_TOKEN="AWS_CONTAINER_AUTHORIZATION_TOKEN";var iMe=(e={})=>{let{timeout:t,maxRetries:n}=(0,nMe.providerConfigFromInit)(e);return()=>(0,rMe.retry)(async()=>{let r=await cMe(),i=JSON.parse(await sMe(t,r));if(!(0,P8.isImdsCredentials)(i))throw new yy.CredentialsProviderError("Invalid response received from instance metadata service.");return(0,P8.fromImdsCredentials)(i)},n)};hn.fromContainerMetadata=iMe;var sMe=async(e,t)=>(process.env[hn.ENV_CMDS_AUTH_TOKEN]&&(t.headers=S(o({},t.headers),{Authorization:process.env[hn.ENV_CMDS_AUTH_TOKEN]})),(await(0,tMe.httpRequest)(S(o({},t),{timeout:e}))).toString()),oMe="169.254.170.2",aMe={localhost:!0,"127.0.0.1":!0},dMe={"http:":!0,"https:":!0},cMe=async()=>{if(process.env[hn.ENV_CMDS_RELATIVE_URI])return{hostname:oMe,path:process.env[hn.ENV_CMDS_RELATIVE_URI]};if(process.env[hn.ENV_CMDS_FULL_URI]){let e=(0,eMe.parse)(process.env[hn.ENV_CMDS_FULL_URI]);if(!e.hostname||!(e.hostname in aMe))throw new yy.CredentialsProviderError(`${e.hostname} is not a valid container metadata service hostname`,!1);if(!e.protocol||!(e.protocol in dMe))throw new yy.CredentialsProviderError(`${e.protocol} is not a valid container metadata service protocol`,!1);return S(o({},e),{port:e.port?parseInt(e.port,10):void 0})}throw new yy.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${hn.ENV_CMDS_RELATIVE_URI} or ${hn.ENV_CMDS_FULL_URI} environment variable is set`,!1)}});var z8=m(Sy=>{"use strict";Object.defineProperty(Sy,"__esModule",{value:!0});Sy.fromEnv=void 0;var lMe=vt(),uMe=e=>async()=>{try{let t=e(process.env);if(t===void 0)throw new Error;return t}catch(t){throw new lMe.CredentialsProviderError(t.message||`Cannot load config from environment variables with getter: ${e}`)}};Sy.fromEnv=uMe});var bu=m(_y=>{"use strict";Object.defineProperty(_y,"__esModule",{value:!0});_y.getHomeDir=void 0;var mMe=require("os"),fMe=require("path"),pMe=()=>{let{HOME:e,USERPROFILE:t,HOMEPATH:n,HOMEDRIVE:r=`C:${fMe.sep}`}=process.env;return e||t||(n?`${r}${n}`:(0,mMe.homedir)())};_y.getHomeDir=pMe});var q8=m(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.getProfileName=fi.DEFAULT_PROFILE=fi.ENV_PROFILE=void 0;fi.ENV_PROFILE="AWS_PROFILE";fi.DEFAULT_PROFILE="default";var gMe=e=>e.profile||process.env[fi.ENV_PROFILE]||fi.DEFAULT_PROFILE;fi.getProfileName=gMe});var _1=m(vy=>{"use strict";Object.defineProperty(vy,"__esModule",{value:!0});vy.getSSOTokenFilepath=void 0;var hMe=require("crypto"),wMe=require("path"),yMe=bu(),SMe=e=>{let n=(0,hMe.createHash)("sha1").update(e).digest("hex");return(0,wMe.join)((0,yMe.getHomeDir)(),".aws","sso","cache",`${n}.json`)};vy.getSSOTokenFilepath=SMe});var L8=m(Cy=>{"use strict";Object.defineProperty(Cy,"__esModule",{value:!0});Cy.getSSOTokenFromFile=void 0;var _Me=require("fs"),vMe=_1(),{readFile:CMe}=_Me.promises,EMe=async e=>{let t=(0,vMe.getSSOTokenFilepath)(e),n=await CMe(t,"utf8");return JSON.parse(n)};Cy.getSSOTokenFromFile=EMe});var D8=m(ra=>{"use strict";Object.defineProperty(ra,"__esModule",{value:!0});ra.getConfigFilepath=ra.ENV_CONFIG_PATH=void 0;var AMe=require("path"),xMe=bu();ra.ENV_CONFIG_PATH="AWS_CONFIG_FILE";var bMe=()=>process.env[ra.ENV_CONFIG_PATH]||(0,AMe.join)((0,xMe.getHomeDir)(),".aws","config");ra.getConfigFilepath=bMe});var M8=m(ia=>{"use strict";Object.defineProperty(ia,"__esModule",{value:!0});ia.getCredentialsFilepath=ia.ENV_CREDENTIALS_PATH=void 0;var RMe=require("path"),TMe=bu();ia.ENV_CREDENTIALS_PATH="AWS_SHARED_CREDENTIALS_FILE";var IMe=()=>process.env[ia.ENV_CREDENTIALS_PATH]||(0,RMe.join)((0,TMe.getHomeDir)(),".aws","credentials");ia.getCredentialsFilepath=IMe});var O8=m(Ey=>{"use strict";Object.defineProperty(Ey,"__esModule",{value:!0});Ey.getProfileData=void 0;var B8=/^profile\s(["'])?([^\1]+)\1$/,NMe=e=>Object.entries(e).filter(([t])=>B8.test(t)).reduce((t,[n,r])=>S(o({},t),{[B8.exec(n)[2]]:r}),o({},e.default&&{default:e.default}));Ey.getProfileData=NMe});var F8=m(Ay=>{"use strict";Object.defineProperty(Ay,"__esModule",{value:!0});Ay.parseIni=void 0;var PMe=["__proto__","profile __proto__"],kMe=e=>{let t={},n;for(let r of e.split(/\r?\n/)){r=r.split(/(^|\s)[;#]/)[0];let i=r.match(/^\s*\[([^\[\]]+)]\s*$/);if(i){if(n=i[1],PMe.includes(n))throw new Error(`Found invalid profile name "${n}"`)}else if(n){let s=r.match(/^\s*(.+?)\s*=\s*(.+?)\s*$/);s&&(t[n]=t[n]||{},t[n][s[1]]=s[2])}}return t};Ay.parseIni=kMe});var j8=m(xy=>{"use strict";Object.defineProperty(xy,"__esModule",{value:!0});xy.slurpFile=void 0;var zMe=require("fs"),{readFile:qMe}=zMe.promises,v1={},LMe=e=>(v1[e]||(v1[e]=qMe(e,"utf8")),v1[e]);xy.slurpFile=LMe});var C1=m(by=>{"use strict";Object.defineProperty(by,"__esModule",{value:!0});by.loadSharedConfigFiles=void 0;var DMe=D8(),MMe=M8(),BMe=O8(),U8=F8(),G8=j8(),V8=()=>({}),OMe=async(e={})=>{let{filepath:t=(0,MMe.getCredentialsFilepath)(),configFilepath:n=(0,DMe.getConfigFilepath)()}=e,r=await Promise.all([(0,G8.slurpFile)(n).then(U8.parseIni).then(BMe.getProfileData).catch(V8),(0,G8.slurpFile)(t).then(U8.parseIni).catch(V8)]);return{configFile:r[0],credentialsFile:r[1]}};by.loadSharedConfigFiles=OMe});var $8=m(Ry=>{"use strict";Object.defineProperty(Ry,"__esModule",{value:!0});Ry.parseKnownFiles=void 0;var FMe=C1(),jMe=async e=>{let t=await(0,FMe.loadSharedConfigFiles)(e);return o(o({},t.configFile),t.credentialsFile)};Ry.parseKnownFiles=jMe});var J8=m(H8=>{"use strict";Object.defineProperty(H8,"__esModule",{value:!0})});var X8=m(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});var sa=oe();sa.__exportStar(bu(),Zi);sa.__exportStar(q8(),Zi);sa.__exportStar(_1(),Zi);sa.__exportStar(L8(),Zi);sa.__exportStar(C1(),Zi);sa.__exportStar($8(),Zi);sa.__exportStar(J8(),Zi)});var W8=m(Ty=>{"use strict";Object.defineProperty(Ty,"__esModule",{value:!0});Ty.fromSharedConfigFiles=void 0;var UMe=vt(),K8=X8(),GMe=(e,r={})=>{var i=r,{preferredFile:t="config"}=i,n=Ts(i,["preferredFile"]);return async()=>{let s=(0,K8.getProfileName)(n),{configFile:d,credentialsFile:a}=await(0,K8.loadSharedConfigFiles)(n),c=a[s]||{},l=d[s]||{},u=t==="config"?o(o({},c),l):o(o({},l),c);try{let w=e(u);if(w===void 0)throw new Error;return w}catch(w){throw new UMe.CredentialsProviderError(w.message||`Cannot load config for profile ${s} in SDK configuration files with getter: ${e}`)}}};Ty.fromSharedConfigFiles=GMe});var Q8=m(Iy=>{"use strict";Object.defineProperty(Iy,"__esModule",{value:!0});Iy.fromStatic=void 0;var VMe=vt(),$Me=e=>typeof e=="function",HMe=e=>$Me(e)?async()=>await e():(0,VMe.fromStatic)(e);Iy.fromStatic=HMe});var Z8=m(Ny=>{"use strict";Object.defineProperty(Ny,"__esModule",{value:!0});Ny.loadConfig=void 0;var Y8=vt(),JMe=z8(),XMe=W8(),KMe=Q8(),WMe=({environmentVariableSelector:e,configFileSelector:t,default:n},r={})=>(0,Y8.memoize)((0,Y8.chain)((0,JMe.fromEnv)(e),(0,XMe.fromSharedConfigFiles)(t,r),(0,KMe.fromStatic)(n)));Ny.loadConfig=WMe});var lr=m(E1=>{"use strict";Object.defineProperty(E1,"__esModule",{value:!0});var QMe=oe();QMe.__exportStar(Z8(),E1)});var e5=m(Py=>{"use strict";Object.defineProperty(Py,"__esModule",{value:!0});Py.parseQueryString=void 0;function YMe(e){let t={};if(e=e.replace(/^\?/,""),e)for(let n of e.split("&")){let[r,i=null]=n.split("=");r=decodeURIComponent(r),i&&(i=decodeURIComponent(i)),r in t?Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i}return t}Py.parseQueryString=YMe});var jr=m(ky=>{"use strict";Object.defineProperty(ky,"__esModule",{value:!0});ky.parseUrl=void 0;var ZMe=e5(),eBe=e=>{let{hostname:t,pathname:n,port:r,protocol:i,search:s}=new URL(e),d;return s&&(d=(0,ZMe.parseQueryString)(s)),{hostname:t,port:r?parseInt(r):void 0,protocol:i,path:n,query:d}};ky.parseUrl=eBe});var t5=m(Ru=>{"use strict";Object.defineProperty(Ru,"__esModule",{value:!0});Ru.Endpoint=void 0;var tBe;(function(e){e.IPv4="http://169.254.169.254",e.IPv6="http://[fd00:ec2::254]"})(tBe=Ru.Endpoint||(Ru.Endpoint={}))});var n5=m(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.ENDPOINT_CONFIG_OPTIONS=pi.CONFIG_ENDPOINT_NAME=pi.ENV_ENDPOINT_NAME=void 0;pi.ENV_ENDPOINT_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT";pi.CONFIG_ENDPOINT_NAME="ec2_metadata_service_endpoint";pi.ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>e[pi.ENV_ENDPOINT_NAME],configFileSelector:e=>e[pi.CONFIG_ENDPOINT_NAME],default:void 0}});var A1=m(Tu=>{"use strict";Object.defineProperty(Tu,"__esModule",{value:!0});Tu.EndpointMode=void 0;var nBe;(function(e){e.IPv4="IPv4",e.IPv6="IPv6"})(nBe=Tu.EndpointMode||(Tu.EndpointMode={}))});var r5=m(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.ENDPOINT_MODE_CONFIG_OPTIONS=gi.CONFIG_ENDPOINT_MODE_NAME=gi.ENV_ENDPOINT_MODE_NAME=void 0;var rBe=A1();gi.ENV_ENDPOINT_MODE_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";gi.CONFIG_ENDPOINT_MODE_NAME="ec2_metadata_service_endpoint_mode";gi.ENDPOINT_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[gi.ENV_ENDPOINT_MODE_NAME],configFileSelector:e=>e[gi.CONFIG_ENDPOINT_MODE_NAME],default:rBe.EndpointMode.IPv4}});var b1=m(zy=>{"use strict";Object.defineProperty(zy,"__esModule",{value:!0});zy.getInstanceMetadataEndpoint=void 0;var s5=lr(),iBe=jr(),i5=t5(),sBe=n5(),x1=A1(),oBe=r5(),aBe=async()=>(0,iBe.parseUrl)(await dBe()||await cBe());zy.getInstanceMetadataEndpoint=aBe;var dBe=async()=>(0,s5.loadConfig)(sBe.ENDPOINT_CONFIG_OPTIONS)(),cBe=async()=>{let e=await(0,s5.loadConfig)(oBe.ENDPOINT_MODE_CONFIG_OPTIONS)();switch(e){case x1.EndpointMode.IPv4:return i5.Endpoint.IPv4;case x1.EndpointMode.IPv6:return i5.Endpoint.IPv6;default:throw new Error(`Unsupported endpoint mode: ${e}. Select from ${Object.values(x1.EndpointMode)}`)}}});var o5=m(qy=>{"use strict";Object.defineProperty(qy,"__esModule",{value:!0});qy.getExtendedInstanceMetadataCredentials=void 0;var lBe=5*60,uBe=5*60,mBe="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",fBe=(e,t)=>{var n;let r=lBe+Math.floor(Math.random()*uBe),i=new Date(Date.now()+r*1e3);t.warn("Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(newExpiration)}.\nFor more information, please visit: "+mBe);let s=(n=e.originalExpiration)!==null&&n!==void 0?n:e.expiration;return S(o(o({},e),s?{originalExpiration:s}:{}),{expiration:i})};qy.getExtendedInstanceMetadataCredentials=fBe});var d5=m(Ly=>{"use strict";Object.defineProperty(Ly,"__esModule",{value:!0});Ly.staticStabilityProvider=void 0;var a5=o5(),pBe=(e,t={})=>{let n=(t==null?void 0:t.logger)||console,r;return async()=>{let i;try{i=await e(),i.expiration&&i.expiration.getTime()<Date.now()&&(i=(0,a5.getExtendedInstanceMetadataCredentials)(i,n))}catch(s){if(r)n.warn("Credential renew failed: ",s),i=(0,a5.getExtendedInstanceMetadataCredentials)(r,n);else throw s}return r=i,i}};Ly.staticStabilityProvider=pBe});var m5=m(Dy=>{"use strict";Object.defineProperty(Dy,"__esModule",{value:!0});Dy.fromInstanceMetadata=void 0;var gBe=vt(),R1=gy(),c5=y1(),hBe=hy(),l5=S1(),wBe=b1(),yBe=d5(),u5="/latest/meta-data/iam/security-credentials/",SBe="/latest/api/token",_Be=(e={})=>(0,yBe.staticStabilityProvider)(vBe(e),{logger:e.logger});Dy.fromInstanceMetadata=_Be;var vBe=e=>{let t=!1,{timeout:n,maxRetries:r}=(0,hBe.providerConfigFromInit)(e),i=async(s,d)=>{let a=(await(0,l5.retry)(async()=>{let c;try{c=await EBe(d)}catch(l){throw l.statusCode===401&&(t=!1),l}return c},s)).trim();return(0,l5.retry)(async()=>{let c;try{c=await ABe(a,d)}catch(l){throw l.statusCode===401&&(t=!1),l}return c},s)};return async()=>{let s=await(0,wBe.getInstanceMetadataEndpoint)();if(t)return i(r,S(o({},s),{timeout:n}));{let d;try{d=(await CBe(S(o({},s),{timeout:n}))).toString()}catch(a){if((a==null?void 0:a.statusCode)===400)throw Object.assign(a,{message:"EC2 Metadata token request returned error"});return(a.message==="TimeoutError"||[403,404,405].includes(a.statusCode))&&(t=!0),i(r,S(o({},s),{timeout:n}))}return i(r,S(o({},s),{headers:{"x-aws-ec2-metadata-token":d},timeout:n}))}}},CBe=async e=>(0,R1.httpRequest)(S(o({},e),{path:SBe,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}})),EBe=async e=>(await(0,R1.httpRequest)(S(o({},e),{path:u5}))).toString(),ABe=async(e,t)=>{let n=JSON.parse((await(0,R1.httpRequest)(S(o({},t),{path:u5+e}))).toString());if(!(0,c5.isImdsCredentials)(n))throw new gBe.CredentialsProviderError("Invalid response received from instance metadata service.");return(0,c5.fromImdsCredentials)(n)}});var p5=m(f5=>{"use strict";Object.defineProperty(f5,"__esModule",{value:!0})});var g5=m(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.getInstanceMetadataEndpoint=hi.httpRequest=void 0;var My=oe();My.__exportStar(k8(),hi);My.__exportStar(m5(),hi);My.__exportStar(hy(),hi);My.__exportStar(p5(),hi);var xBe=gy();Object.defineProperty(hi,"httpRequest",{enumerable:!0,get:function(){return xBe.httpRequest}});var bBe=b1();Object.defineProperty(hi,"getInstanceMetadataEndpoint",{enumerable:!0,get:function(){return bBe.getInstanceMetadataEndpoint}})});var w5=m(By=>{"use strict";Object.defineProperty(By,"__esModule",{value:!0});By.resolveCredentialSource=void 0;var RBe=f1(),h5=g5(),TBe=vt(),IBe=(e,t)=>{let n={EcsContainer:h5.fromContainerMetadata,Ec2InstanceMetadata:h5.fromInstanceMetadata,Environment:RBe.fromEnv};if(e in n)return n[e]();throw new TBe.CredentialsProviderError(`Unsupported credential source in profile ${t}. Got ${e}, expected EcsContainer or Ec2InstanceMetadata or Environment.`)};By.resolveCredentialSource=IBe});var y5=m(ld=>{"use strict";Object.defineProperty(ld,"__esModule",{value:!0});ld.resolveAssumeRoleCredentials=ld.isAssumeRoleProfile=void 0;var T1=vt(),NBe=xu(),PBe=w5(),kBe=I1(),zBe=e=>Boolean(e)&&typeof e=="object"&&typeof e.role_arn=="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1&&["undefined","string"].indexOf(typeof e.external_id)>-1&&["undefined","string"].indexOf(typeof e.mfa_serial)>-1&&(qBe(e)||LBe(e));ld.isAssumeRoleProfile=zBe;var qBe=e=>typeof e.source_profile=="string"&&typeof e.credential_source>"u",LBe=e=>typeof e.credential_source=="string"&&typeof e.source_profile>"u",DBe=async(e,t,n,r={})=>{let i=t[e];if(!n.roleAssumer)throw new T1.CredentialsProviderError(`Profile ${e} requires a role to be assumed, but no role assumption callback was provided.`,!1);let{source_profile:s}=i;if(s&&s in r)throw new T1.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${(0,NBe.getProfileName)(n)}. Profiles visited: `+Object.keys(r).join(", "),!1);let d=s?(0,kBe.resolveProfileData)(s,t,n,S(o({},r),{[s]:!0})):(0,PBe.resolveCredentialSource)(i.credential_source,e)(),a={RoleArn:i.role_arn,RoleSessionName:i.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:i.external_id},{mfa_serial:c}=i;if(c){if(!n.mfaCodeProvider)throw new T1.CredentialsProviderError(`Profile ${e} requires multi-factor authentication, but no MFA code callback was provided.`,!1);a.SerialNumber=c,a.TokenCode=await n.mfaCodeProvider(c)}let l=await d;return n.roleAssumer(l,a)};ld.resolveAssumeRoleCredentials=DBe});var N1=m(Oy=>{"use strict";Object.defineProperty(Oy,"__esModule",{value:!0});Oy.isSsoProfile=void 0;var MBe=e=>e&&(typeof e.sso_start_url=="string"||typeof e.sso_account_id=="string"||typeof e.sso_region=="string"||typeof e.sso_role_name=="string");Oy.isSsoProfile=MBe});var jy=m(Fy=>{"use strict";Object.defineProperty(Fy,"__esModule",{value:!0});Fy.SSOServiceException=void 0;var BBe=R(),Iu=class extends BBe.ServiceException{constructor(t){super(t),Object.setPrototypeOf(this,Iu.prototype)}};Fy.SSOServiceException=Iu});var oa=m(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.LogoutRequest=ot.ListAccountsResponse=ot.ListAccountsRequest=ot.ListAccountRolesResponse=ot.RoleInfo=ot.ListAccountRolesRequest=ot.UnauthorizedException=ot.TooManyRequestsException=ot.ResourceNotFoundException=ot.InvalidRequestException=ot.GetRoleCredentialsResponse=ot.RoleCredentials=ot.GetRoleCredentialsRequest=ot.AccountInfo=void 0;var ud=R(),Uy=jy(),OBe;(function(e){e.filterSensitiveLog=t=>o({},t)})(OBe=ot.AccountInfo||(ot.AccountInfo={}));var FBe;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.accessToken&&{accessToken:ud.SENSITIVE_STRING})})(FBe=ot.GetRoleCredentialsRequest||(ot.GetRoleCredentialsRequest={}));var S5;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.secretAccessKey&&{secretAccessKey:ud.SENSITIVE_STRING}),t.sessionToken&&{sessionToken:ud.SENSITIVE_STRING})})(S5=ot.RoleCredentials||(ot.RoleCredentials={}));var jBe;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.roleCredentials&&{roleCredentials:S5.filterSensitiveLog(t.roleCredentials)})})(jBe=ot.GetRoleCredentialsResponse||(ot.GetRoleCredentialsResponse={}));var Nu=class extends Uy.SSOServiceException{constructor(t){super(o({name:"InvalidRequestException",$fault:"client"},t)),this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,Nu.prototype)}};ot.InvalidRequestException=Nu;var Pu=class extends Uy.SSOServiceException{constructor(t){super(o({name:"ResourceNotFoundException",$fault:"client"},t)),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,Pu.prototype)}};ot.ResourceNotFoundException=Pu;var ku=class extends Uy.SSOServiceException{constructor(t){super(o({name:"TooManyRequestsException",$fault:"client"},t)),this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,ku.prototype)}};ot.TooManyRequestsException=ku;var zu=class extends Uy.SSOServiceException{constructor(t){super(o({name:"UnauthorizedException",$fault:"client"},t)),this.name="UnauthorizedException",this.$fault="client",Object.setPrototypeOf(this,zu.prototype)}};ot.UnauthorizedException=zu;var UBe;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.accessToken&&{accessToken:ud.SENSITIVE_STRING})})(UBe=ot.ListAccountRolesRequest||(ot.ListAccountRolesRequest={}));var GBe;(function(e){e.filterSensitiveLog=t=>o({},t)})(GBe=ot.RoleInfo||(ot.RoleInfo={}));var VBe;(function(e){e.filterSensitiveLog=t=>o({},t)})(VBe=ot.ListAccountRolesResponse||(ot.ListAccountRolesResponse={}));var $Be;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.accessToken&&{accessToken:ud.SENSITIVE_STRING})})($Be=ot.ListAccountsRequest||(ot.ListAccountsRequest={}));var HBe;(function(e){e.filterSensitiveLog=t=>o({},t)})(HBe=ot.ListAccountsResponse||(ot.ListAccountsResponse={}));var JBe;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.accessToken&&{accessToken:ud.SENSITIVE_STRING})})(JBe=ot.LogoutRequest||(ot.LogoutRequest={}))});var qu=m(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.deserializeAws_restJson1LogoutCommand=wn.deserializeAws_restJson1ListAccountsCommand=wn.deserializeAws_restJson1ListAccountRolesCommand=wn.deserializeAws_restJson1GetRoleCredentialsCommand=wn.serializeAws_restJson1LogoutCommand=wn.serializeAws_restJson1ListAccountsCommand=wn.serializeAws_restJson1ListAccountRolesCommand=wn.serializeAws_restJson1GetRoleCredentialsCommand=void 0;var Gy=Ht(),At=R(),Vy=oa(),$y=jy(),XBe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d=o({},Ky(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}),a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/federation/credentials`,c=o(o({},e.roleName!==void 0&&{role_name:e.roleName}),e.accountId!==void 0&&{account_id:e.accountId}),l;return new Gy.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,query:c,body:l})};wn.serializeAws_restJson1GetRoleCredentialsCommand=XBe;var KBe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d=o({},Ky(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}),a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/assignment/roles`,c=o(o(o({},e.nextToken!==void 0&&{next_token:e.nextToken}),e.maxResults!==void 0&&{max_result:e.maxResults.toString()}),e.accountId!==void 0&&{account_id:e.accountId}),l;return new Gy.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,query:c,body:l})};wn.serializeAws_restJson1ListAccountRolesCommand=KBe;var WBe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d=o({},Ky(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}),a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/assignment/accounts`,c=o(o({},e.nextToken!==void 0&&{next_token:e.nextToken}),e.maxResults!==void 0&&{max_result:e.maxResults.toString()}),l;return new Gy.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,query:c,body:l})};wn.serializeAws_restJson1ListAccountsCommand=WBe;var QBe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d=o({},Ky(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}),a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/logout`,c;return new Gy.HttpRequest({protocol:r,hostname:n,port:i,method:"POST",headers:d,path:a,body:c})};wn.serializeAws_restJson1LogoutCommand=QBe;var YBe=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return ZBe(e,t);let n={$metadata:xr(e),roleCredentials:void 0},r=(0,At.expectNonNull)((0,At.expectObject)(await aa(e.body,t)),"body");return r.roleCredentials!==void 0&&r.roleCredentials!==null&&(n.roleCredentials=dOe(r.roleCredentials,t)),Promise.resolve(n)};wn.deserializeAws_restJson1GetRoleCredentialsCommand=YBe;var ZBe=async(e,t)=>{let n=S(o({},e),{body:await aa(e.body,t)}),r,i="UnknownError";switch(i=Wy(e,n.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await Hy(n,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await P1(n,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await Jy(n,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await Xy(n,t);default:let s=n.body;throw r=new $y.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:xr(e)}),(0,At.decorateServiceException)(r,s)}},eOe=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return tOe(e,t);let n={$metadata:xr(e),nextToken:void 0,roleList:void 0},r=(0,At.expectNonNull)((0,At.expectObject)(await aa(e.body,t)),"body");return r.nextToken!==void 0&&r.nextToken!==null&&(n.nextToken=(0,At.expectString)(r.nextToken)),r.roleList!==void 0&&r.roleList!==null&&(n.roleList=lOe(r.roleList,t)),Promise.resolve(n)};wn.deserializeAws_restJson1ListAccountRolesCommand=eOe;var tOe=async(e,t)=>{let n=S(o({},e),{body:await aa(e.body,t)}),r,i="UnknownError";switch(i=Wy(e,n.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await Hy(n,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await P1(n,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await Jy(n,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await Xy(n,t);default:let s=n.body;throw r=new $y.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:xr(e)}),(0,At.decorateServiceException)(r,s)}},nOe=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return rOe(e,t);let n={$metadata:xr(e),accountList:void 0,nextToken:void 0},r=(0,At.expectNonNull)((0,At.expectObject)(await aa(e.body,t)),"body");return r.accountList!==void 0&&r.accountList!==null&&(n.accountList=aOe(r.accountList,t)),r.nextToken!==void 0&&r.nextToken!==null&&(n.nextToken=(0,At.expectString)(r.nextToken)),Promise.resolve(n)};wn.deserializeAws_restJson1ListAccountsCommand=nOe;var rOe=async(e,t)=>{let n=S(o({},e),{body:await aa(e.body,t)}),r,i="UnknownError";switch(i=Wy(e,n.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await Hy(n,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await P1(n,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await Jy(n,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await Xy(n,t);default:let s=n.body;throw r=new $y.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:xr(e)}),(0,At.decorateServiceException)(r,s)}},iOe=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return sOe(e,t);let n={$metadata:xr(e)};return await _5(e.body,t),Promise.resolve(n)};wn.deserializeAws_restJson1LogoutCommand=iOe;var sOe=async(e,t)=>{let n=S(o({},e),{body:await aa(e.body,t)}),r,i="UnknownError";switch(i=Wy(e,n.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await Hy(n,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await Jy(n,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await Xy(n,t);default:let s=n.body;throw r=new $y.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:xr(e)}),(0,At.decorateServiceException)(r,s)}},Hy=async(e,t)=>{let n={},r=e.body;r.message!==void 0&&r.message!==null&&(n.message=(0,At.expectString)(r.message));let i=new Vy.InvalidRequestException(o({$metadata:xr(e)},n));return(0,At.decorateServiceException)(i,e.body)},P1=async(e,t)=>{let n={},r=e.body;r.message!==void 0&&r.message!==null&&(n.message=(0,At.expectString)(r.message));let i=new Vy.ResourceNotFoundException(o({$metadata:xr(e)},n));return(0,At.decorateServiceException)(i,e.body)},Jy=async(e,t)=>{let n={},r=e.body;r.message!==void 0&&r.message!==null&&(n.message=(0,At.expectString)(r.message));let i=new Vy.TooManyRequestsException(o({$metadata:xr(e)},n));return(0,At.decorateServiceException)(i,e.body)},Xy=async(e,t)=>{let n={},r=e.body;r.message!==void 0&&r.message!==null&&(n.message=(0,At.expectString)(r.message));let i=new Vy.UnauthorizedException(o({$metadata:xr(e)},n));return(0,At.decorateServiceException)(i,e.body)},oOe=(e,t)=>({accountId:(0,At.expectString)(e.accountId),accountName:(0,At.expectString)(e.accountName),emailAddress:(0,At.expectString)(e.emailAddress)}),aOe=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:oOe(r,t)),dOe=(e,t)=>({accessKeyId:(0,At.expectString)(e.accessKeyId),expiration:(0,At.expectLong)(e.expiration),secretAccessKey:(0,At.expectString)(e.secretAccessKey),sessionToken:(0,At.expectString)(e.sessionToken)}),cOe=(e,t)=>({accountId:(0,At.expectString)(e.accountId),roleName:(0,At.expectString)(e.roleName)}),lOe=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:cOe(r,t)),xr=e=>{var t;return{httpStatusCode:e.statusCode,requestId:(t=e.headers["x-amzn-requestid"])!==null&&t!==void 0?t:e.headers["x-amzn-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}},_5=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),uOe=(e,t)=>_5(e,t).then(n=>t.utf8Encoder(n)),Ky=e=>e!=null&&e!==""&&(!Object.getOwnPropertyNames(e).includes("length")||e.length!=0)&&(!Object.getOwnPropertyNames(e).includes("size")||e.size!=0),aa=(e,t)=>uOe(e,t).then(n=>n.length?JSON.parse(n):{}),Wy=(e,t)=>{let n=(s,d)=>Object.keys(s).find(a=>a.toLowerCase()===d.toLowerCase()),r=s=>{let d=s;return d.indexOf(":")>=0&&(d=d.split(":")[0]),d.indexOf("#")>=0&&(d=d.split("#")[1]),d},i=n(e.headers,"x-amzn-errortype");return i!==void 0?r(e.headers[i]):t.code!==void 0?r(t.code):t.__type!==void 0?r(t.__type):""}});var z1=m(Qy=>{"use strict";Object.defineProperty(Qy,"__esModule",{value:!0});Qy.GetRoleCredentialsCommand=void 0;var mOe=P(),fOe=R(),v5=oa(),C5=qu(),k1=class extends fOe.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,mOe.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"SSOClient",commandName:"GetRoleCredentialsCommand",inputFilterSensitiveLog:v5.GetRoleCredentialsRequest.filterSensitiveLog,outputFilterSensitiveLog:v5.GetRoleCredentialsResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,C5.serializeAws_restJson1GetRoleCredentialsCommand)(t,n)}deserialize(t,n){return(0,C5.deserializeAws_restJson1GetRoleCredentialsCommand)(t,n)}};Qy.GetRoleCredentialsCommand=k1});var Zy=m(Yy=>{"use strict";Object.defineProperty(Yy,"__esModule",{value:!0});Yy.ListAccountRolesCommand=void 0;var pOe=P(),gOe=R(),E5=oa(),A5=qu(),q1=class extends gOe.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,pOe.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"SSOClient",commandName:"ListAccountRolesCommand",inputFilterSensitiveLog:E5.ListAccountRolesRequest.filterSensitiveLog,outputFilterSensitiveLog:E5.ListAccountRolesResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,A5.serializeAws_restJson1ListAccountRolesCommand)(t,n)}deserialize(t,n){return(0,A5.deserializeAws_restJson1ListAccountRolesCommand)(t,n)}};Yy.ListAccountRolesCommand=q1});var tS=m(eS=>{"use strict";Object.defineProperty(eS,"__esModule",{value:!0});eS.ListAccountsCommand=void 0;var hOe=P(),wOe=R(),x5=oa(),b5=qu(),L1=class extends wOe.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,hOe.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"SSOClient",commandName:"ListAccountsCommand",inputFilterSensitiveLog:x5.ListAccountsRequest.filterSensitiveLog,outputFilterSensitiveLog:x5.ListAccountsResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,b5.serializeAws_restJson1ListAccountsCommand)(t,n)}deserialize(t,n){return(0,b5.deserializeAws_restJson1ListAccountsCommand)(t,n)}};eS.ListAccountsCommand=L1});var M1=m(nS=>{"use strict";Object.defineProperty(nS,"__esModule",{value:!0});nS.LogoutCommand=void 0;var yOe=P(),SOe=R(),_Oe=oa(),R5=qu(),D1=class extends SOe.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,yOe.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"SSOClient",commandName:"LogoutCommand",inputFilterSensitiveLog:_Oe.LogoutRequest.filterSensitiveLog,outputFilterSensitiveLog:u=>u},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,R5.serializeAws_restJson1LogoutCommand)(t,n)}deserialize(t,n){return(0,R5.deserializeAws_restJson1LogoutCommand)(t,n)}};nS.LogoutCommand=D1});var T5=m((GWt,vOe)=>{vOe.exports={name:"@aws-sdk/client-sso",description:"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",version:"3.95.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/config-resolver":"3.80.0","@aws-sdk/fetch-http-handler":"3.78.0","@aws-sdk/hash-node":"3.78.0","@aws-sdk/invalid-dependency":"3.78.0","@aws-sdk/middleware-content-length":"3.78.0","@aws-sdk/middleware-host-header":"3.78.0","@aws-sdk/middleware-logger":"3.78.0","@aws-sdk/middleware-retry":"3.80.0","@aws-sdk/middleware-serde":"3.78.0","@aws-sdk/middleware-stack":"3.78.0","@aws-sdk/middleware-user-agent":"3.78.0","@aws-sdk/node-config-provider":"3.80.0","@aws-sdk/node-http-handler":"3.94.0","@aws-sdk/protocol-http":"3.78.0","@aws-sdk/smithy-client":"3.85.0","@aws-sdk/types":"3.78.0","@aws-sdk/url-parser":"3.78.0","@aws-sdk/util-base64-browser":"3.58.0","@aws-sdk/util-base64-node":"3.55.0","@aws-sdk/util-body-length-browser":"3.55.0","@aws-sdk/util-body-length-node":"3.55.0","@aws-sdk/util-defaults-mode-browser":"3.85.0","@aws-sdk/util-defaults-mode-node":"3.85.0","@aws-sdk/util-user-agent-browser":"3.78.0","@aws-sdk/util-user-agent-node":"3.80.0","@aws-sdk/util-utf8-browser":"3.55.0","@aws-sdk/util-utf8-node":"3.55.0",tslib:"^2.3.1"},devDependencies:{"@aws-sdk/service-client-documentation-generator":"3.58.0","@tsconfig/recommended":"1.0.1","@types/node":"^12.7.5",concurrently:"7.0.0","downlevel-dts":"0.7.0",rimraf:"3.0.2",typedoc:"0.19.2",typescript:"~4.6.2"},engines:{node:">=12.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sso"}}});var rS=m(md=>{"use strict";Object.defineProperty(md,"__esModule",{value:!0});md.fromString=md.fromArrayBuffer=void 0;var COe=vw(),B1=require("buffer"),EOe=(e,t=0,n=e.byteLength-t)=>{if(!(0,COe.isArrayBuffer)(e))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`);return B1.Buffer.from(e,t,n)};md.fromArrayBuffer=EOe;var AOe=(e,t)=>{if(typeof e!="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`);return t?B1.Buffer.from(e,t):B1.Buffer.from(e)};md.fromString=AOe});var Ws=m(iS=>{"use strict";Object.defineProperty(iS,"__esModule",{value:!0});iS.Hash=void 0;var O1=rS(),xOe=require("buffer"),I5=require("crypto"),F1=class{constructor(t,n){this.hash=n?(0,I5.createHmac)(t,N5(n)):(0,I5.createHash)(t)}update(t,n){this.hash.update(N5(t,n))}digest(){return Promise.resolve(this.hash.digest())}};iS.Hash=F1;function N5(e,t){return xOe.Buffer.isBuffer(e)?e:typeof e=="string"?(0,O1.fromString)(e,t):ArrayBuffer.isView(e)?(0,O1.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength):(0,O1.fromArrayBuffer)(e)}});var U1=m(sS=>{"use strict";Object.defineProperty(sS,"__esModule",{value:!0});sS.buildQueryString=void 0;var j1=xk();function bOe(e){let t=[];for(let n of Object.keys(e).sort()){let r=e[n];if(n=(0,j1.escapeUri)(n),Array.isArray(r))for(let i=0,s=r.length;i<s;i++)t.push(`${n}=${(0,j1.escapeUri)(r[i])}`);else{let i=n;(r||typeof r=="string")&&(i+=`=${(0,j1.escapeUri)(r)}`),t.push(i)}}return t.join("&")}sS.buildQueryString=bOe});var P5=m(oS=>{"use strict";Object.defineProperty(oS,"__esModule",{value:!0});oS.NODEJS_TIMEOUT_ERROR_CODES=void 0;oS.NODEJS_TIMEOUT_ERROR_CODES=["ECONNRESET","EPIPE","ETIMEDOUT"]});var G1=m(aS=>{"use strict";Object.defineProperty(aS,"__esModule",{value:!0});aS.getTransformedHeaders=void 0;var ROe=e=>{let t={};for(let n of Object.keys(e)){let r=e[n];t[n]=Array.isArray(r)?r.join(","):r}return t};aS.getTransformedHeaders=ROe});var k5=m(dS=>{"use strict";Object.defineProperty(dS,"__esModule",{value:!0});dS.setConnectionTimeout=void 0;var TOe=(e,t,n=0)=>{!n||e.on("socket",r=>{if(r.connecting){let i=setTimeout(()=>{e.destroy(),t(Object.assign(new Error(`Socket timed out without establishing a connection within ${n} ms`),{name:"TimeoutError"}))},n);r.on("connect",()=>{clearTimeout(i)})}})};dS.setConnectionTimeout=TOe});var z5=m(cS=>{"use strict";Object.defineProperty(cS,"__esModule",{value:!0});cS.setSocketTimeout=void 0;var IOe=(e,t,n=0)=>{e.setTimeout(n,()=>{e.destroy(),t(Object.assign(new Error(`Connection timed out after ${n} ms`),{name:"TimeoutError"}))})};cS.setSocketTimeout=IOe});var V1=m(lS=>{"use strict";Object.defineProperty(lS,"__esModule",{value:!0});lS.writeRequestBody=void 0;var NOe=require("stream");function POe(e,t){(t.headers.Expect||t.headers.expect)==="100-continue"?e.on("continue",()=>{q5(e,t.body)}):q5(e,t.body)}lS.writeRequestBody=POe;function q5(e,t){t instanceof NOe.Readable?t.pipe(e):t?e.end(Buffer.from(t)):e.end()}});var M5=m(uS=>{"use strict";Object.defineProperty(uS,"__esModule",{value:!0});uS.NodeHttpHandler=void 0;var kOe=Ht(),zOe=U1(),L5=require("http"),D5=require("https"),qOe=P5(),LOe=G1(),DOe=k5(),MOe=z5(),BOe=V1(),$1=class{constructor(t){this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((n,r)=>{typeof t=="function"?t().then(i=>{n(this.resolveDefaultConfig(i))}).catch(r):n(this.resolveDefaultConfig(t))})}resolveDefaultConfig(t){let{connectionTimeout:n,socketTimeout:r,httpAgent:i,httpsAgent:s}=t||{},d=!0,a=50;return{connectionTimeout:n,socketTimeout:r,httpAgent:i||new L5.Agent({keepAlive:d,maxSockets:a}),httpsAgent:s||new D5.Agent({keepAlive:d,maxSockets:a})}}destroy(){var t,n,r,i;(n=(t=this.config)===null||t===void 0?void 0:t.httpAgent)===null||n===void 0||n.destroy(),(i=(r=this.config)===null||r===void 0?void 0:r.httpsAgent)===null||i===void 0||i.destroy()}async handle(t,{abortSignal:n}={}){return this.config||(this.config=await this.configProvider),new Promise((r,i)=>{if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(n!=null&&n.aborted){let u=new Error("Request aborted");u.name="AbortError",i(u);return}let s=t.protocol==="https:",d=(0,zOe.buildQueryString)(t.query||{}),a={headers:t.headers,host:t.hostname,method:t.method,path:d?`${t.path}?${d}`:t.path,port:t.port,agent:s?this.config.httpsAgent:this.config.httpAgent},l=(s?D5.request:L5.request)(a,u=>{let w=new kOe.HttpResponse({statusCode:u.statusCode||-1,headers:(0,LOe.getTransformedHeaders)(u.headers),body:u});r({response:w})});l.on("error",u=>{qOe.NODEJS_TIMEOUT_ERROR_CODES.includes(u.code)?i(Object.assign(u,{name:"TimeoutError"})):i(u)}),(0,DOe.setConnectionTimeout)(l,i,this.config.connectionTimeout),(0,MOe.setSocketTimeout)(l,i,this.config.socketTimeout),n&&(n.onabort=()=>{l.abort();let u=new Error("Request aborted");u.name="AbortError",i(u)}),(0,BOe.writeRequestBody)(l,t)})}};uS.NodeHttpHandler=$1});var B5=m(mS=>{"use strict";Object.defineProperty(mS,"__esModule",{value:!0});mS.NodeHttp2Handler=void 0;var OOe=Ht(),FOe=U1(),H1=require("http2"),jOe=G1(),UOe=V1(),J1=class{constructor(t){this.metadata={handlerProtocol:"h2"},this.configProvider=new Promise((n,r)=>{typeof t=="function"?t().then(i=>{n(i||{})}).catch(r):n(t||{})}),this.sessionCache=new Map}destroy(){for(let t of this.sessionCache.values())t.forEach(n=>this.destroySession(n));this.sessionCache.clear()}async handle(t,{abortSignal:n}={}){this.config||(this.config=await this.configProvider);let{requestTimeout:r,disableConcurrentStreams:i}=this.config;return new Promise((s,d)=>{let a=!1;if(n!=null&&n.aborted){a=!0;let ue=new Error("Request aborted");ue.name="AbortError",d(ue);return}let{hostname:c,method:l,port:u,protocol:w,path:E,query:T}=t,I=`${w}//${c}${u?`:${u}`:""}`,N=this.getSession(I,i||!1),F=ue=>{i&&this.destroySession(N),a=!0,d(ue)},J=(0,FOe.buildQueryString)(T||{}),G=N.request(S(o({},t.headers),{[H1.constants.HTTP2_HEADER_PATH]:J?`${E}?${J}`:E,[H1.constants.HTTP2_HEADER_METHOD]:l}));N.ref(),G.on("response",ue=>{let it=new OOe.HttpResponse({statusCode:ue[":status"]||-1,headers:(0,jOe.getTransformedHeaders)(ue),body:G});a=!0,s({response:it}),i&&(N.close(),this.deleteSessionFromCache(I,N))}),r&&G.setTimeout(r,()=>{G.close();let ue=new Error(`Stream timed out because of no activity for ${r} ms`);ue.name="TimeoutError",F(ue)}),n&&(n.onabort=()=>{G.close();let ue=new Error("Request aborted");ue.name="AbortError",F(ue)}),G.on("frameError",(ue,it,ln)=>{F(new Error(`Frame type id ${ue} in stream id ${ln} has failed with code ${it}.`))}),G.on("error",F),G.on("aborted",()=>{F(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${G.rstCode}.`))}),G.on("close",()=>{N.unref(),i&&N.destroy(),a||F(new Error("Unexpected error: http2 request did not get a response"))}),(0,UOe.writeRequestBody)(G,t)})}getSession(t,n){var r;let i=this.sessionCache,s=i.get(t)||[];if(s.length>0&&!n)return s[0];let d=(0,H1.connect)(t);d.unref();let a=()=>{this.destroySession(d),this.deleteSessionFromCache(t,d)};return d.on("goaway",a),d.on("error",a),d.on("frameError",a),d.on("close",()=>this.deleteSessionFromCache(t,d)),!((r=this.config)===null||r===void 0)&&r.sessionTimeout&&d.setTimeout(this.config.sessionTimeout,a),s.push(d),i.set(t,s),d}destroySession(t){t.destroyed||t.destroy()}deleteSessionFromCache(t,n){let r=this.sessionCache.get(t)||[];!r.includes(n)||this.sessionCache.set(t,r.filter(i=>i!==n))}};mS.NodeHttp2Handler=J1});var O5=m(fS=>{"use strict";Object.defineProperty(fS,"__esModule",{value:!0});fS.Collector=void 0;var GOe=require("stream"),X1=class extends GOe.Writable{constructor(){super(...arguments),this.bufferedBytes=[]}_write(t,n,r){this.bufferedBytes.push(t),r()}};fS.Collector=X1});var F5=m(pS=>{"use strict";Object.defineProperty(pS,"__esModule",{value:!0});pS.streamCollector=void 0;var VOe=O5(),$Oe=e=>new Promise((t,n)=>{let r=new VOe.Collector;e.pipe(r),e.on("error",i=>{r.end(),n(i)}),r.on("error",n),r.on("finish",function(){let i=new Uint8Array(Buffer.concat(this.bufferedBytes));t(i)})});pS.streamCollector=$Oe});var Qs=m(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});var K1=oe();K1.__exportStar(M5(),Lu);K1.__exportStar(B5(),Lu);K1.__exportStar(F5(),Lu)});var Ys=m(fd=>{"use strict";Object.defineProperty(fd,"__esModule",{value:!0});fd.toBase64=fd.fromBase64=void 0;var j5=rS(),HOe=/^[A-Za-z0-9+/]*={0,2}$/;function JOe(e){if(e.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!HOe.exec(e))throw new TypeError("Invalid base64 string.");let t=(0,j5.fromString)(e,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}fd.fromBase64=JOe;function XOe(e){return(0,j5.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString("base64")}fd.toBase64=XOe});var G5=m(gS=>{"use strict";Object.defineProperty(gS,"__esModule",{value:!0});gS.calculateBodyLength=void 0;var U5=require("fs"),KOe=e=>{if(!e)return 0;if(typeof e=="string")return Buffer.from(e).length;if(typeof e.byteLength=="number")return e.byteLength;if(typeof e.size=="number")return e.size;if(typeof e.path=="string"||Buffer.isBuffer(e.path))return(0,U5.lstatSync)(e.path).size;if(typeof e.fd=="number")return(0,U5.fstatSync)(e.fd).size;throw new Error(`Body Length computation failed for ${e}`)};gS.calculateBodyLength=KOe});var Zs=m(W1=>{"use strict";Object.defineProperty(W1,"__esModule",{value:!0});var WOe=oe();WOe.__exportStar(G5(),W1)});var V5=m((hS,Q1)=>{"use strict";Object.defineProperty(hS,"__esModule",{value:!0});hS.isCrtAvailable=void 0;var QOe=()=>{try{return typeof require=="function"&&typeof Q1<"u"&&Q1.require&&require("aws-crt")?["md/crt-avail"]:null}catch{return null}};hS.isCrtAvailable=QOe});var eo=m(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});wi.defaultUserAgent=wi.UA_APP_ID_INI_NAME=wi.UA_APP_ID_ENV_NAME=void 0;var YOe=lr(),$5=require("os"),Y1=require("process"),ZOe=V5();wi.UA_APP_ID_ENV_NAME="AWS_SDK_UA_APP_ID";wi.UA_APP_ID_INI_NAME="sdk-ua-app-id";var eFe=({serviceId:e,clientVersion:t})=>{let n=[["aws-sdk-js",t],[`os/${(0,$5.platform)()}`,(0,$5.release)()],["lang/js"],["md/nodejs",`${Y1.versions.node}`]],r=(0,ZOe.isCrtAvailable)();r&&n.push(r),e&&n.push([`api/${e}`,t]),Y1.env.AWS_EXECUTION_ENV&&n.push([`exec-env/${Y1.env.AWS_EXECUTION_ENV}`]);let i=(0,YOe.loadConfig)({environmentVariableSelector:d=>d[wi.UA_APP_ID_ENV_NAME],configFileSelector:d=>d[wi.UA_APP_ID_INI_NAME],default:void 0})(),s;return async()=>{if(!s){let d=await i;s=d?[...n,[`app/${d}`]]:[...n]}return s}};wi.defaultUserAgent=eFe});var to=m(pd=>{"use strict";Object.defineProperty(pd,"__esModule",{value:!0});pd.toUtf8=pd.fromUtf8=void 0;var H5=rS(),tFe=e=>{let t=(0,H5.fromString)(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)};pd.fromUtf8=tFe;var nFe=e=>(0,H5.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString("utf8");pd.toUtf8=nFe});var J5=m(wS=>{"use strict";Object.defineProperty(wS,"__esModule",{value:!0});wS.defaultRegionInfoProvider=void 0;var rFe=Jt(),iFe={"ap-northeast-1":{variants:[{hostname:"portal.sso.ap-northeast-1.amazonaws.com",tags:[]}],signingRegion:"ap-northeast-1"},"ap-northeast-2":{variants:[{hostname:"portal.sso.ap-northeast-2.amazonaws.com",tags:[]}],signingRegion:"ap-northeast-2"},"ap-south-1":{variants:[{hostname:"portal.sso.ap-south-1.amazonaws.com",tags:[]}],signingRegion:"ap-south-1"},"ap-southeast-1":{variants:[{hostname:"portal.sso.ap-southeast-1.amazonaws.com",tags:[]}],signingRegion:"ap-southeast-1"},"ap-southeast-2":{variants:[{hostname:"portal.sso.ap-southeast-2.amazonaws.com",tags:[]}],signingRegion:"ap-southeast-2"},"ca-central-1":{variants:[{hostname:"portal.sso.ca-central-1.amazonaws.com",tags:[]}],signingRegion:"ca-central-1"},"eu-central-1":{variants:[{hostname:"portal.sso.eu-central-1.amazonaws.com",tags:[]}],signingRegion:"eu-central-1"},"eu-north-1":{variants:[{hostname:"portal.sso.eu-north-1.amazonaws.com",tags:[]}],signingRegion:"eu-north-1"},"eu-west-1":{variants:[{hostname:"portal.sso.eu-west-1.amazonaws.com",tags:[]}],signingRegion:"eu-west-1"},"eu-west-2":{variants:[{hostname:"portal.sso.eu-west-2.amazonaws.com",tags:[]}],signingRegion:"eu-west-2"},"eu-west-3":{variants:[{hostname:"portal.sso.eu-west-3.amazonaws.com",tags:[]}],signingRegion:"eu-west-3"},"sa-east-1":{variants:[{hostname:"portal.sso.sa-east-1.amazonaws.com",tags:[]}],signingRegion:"sa-east-1"},"us-east-1":{variants:[{hostname:"portal.sso.us-east-1.amazonaws.com",tags:[]}],signingRegion:"us-east-1"},"us-east-2":{variants:[{hostname:"portal.sso.us-east-2.amazonaws.com",tags:[]}],signingRegion:"us-east-2"},"us-gov-east-1":{variants:[{hostname:"portal.sso.us-gov-east-1.amazonaws.com",tags:[]}],signingRegion:"us-gov-east-1"},"us-gov-west-1":{variants:[{hostname:"portal.sso.us-gov-west-1.amazonaws.com",tags:[]}],signingRegion:"us-gov-west-1"},"us-west-2":{variants:[{hostname:"portal.sso.us-west-2.amazonaws.com",tags:[]}],signingRegion:"us-west-2"}},sFe={aws:{regions:["af-south-1","ap-east-1","ap-northeast-1","ap-northeast-2","ap-northeast-3","ap-south-1","ap-southeast-1","ap-southeast-2","ap-southeast-3","ca-central-1","eu-central-1","eu-north-1","eu-south-1","eu-west-1","eu-west-2","eu-west-3","me-south-1","sa-east-1","us-east-1","us-east-2","us-west-1","us-west-2"],regionRegex:"^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",variants:[{hostname:"portal.sso.{region}.amazonaws.com",tags:[]},{hostname:"portal.sso-fips.{region}.amazonaws.com",tags:["fips"]},{hostname:"portal.sso-fips.{region}.api.aws",tags:["dualstack","fips"]},{hostname:"portal.sso.{region}.api.aws",tags:["dualstack"]}]},"aws-cn":{regions:["cn-north-1","cn-northwest-1"],regionRegex:"^cn\\-\\w+\\-\\d+$",variants:[{hostname:"portal.sso.{region}.amazonaws.com.cn",tags:[]},{hostname:"portal.sso-fips.{region}.amazonaws.com.cn",tags:["fips"]},{hostname:"portal.sso-fips.{region}.api.amazonwebservices.com.cn",tags:["dualstack","fips"]},{hostname:"portal.sso.{region}.api.amazonwebservices.com.cn",tags:["dualstack"]}]},"aws-iso":{regions:["us-iso-east-1","us-iso-west-1"],regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",variants:[{hostname:"portal.sso.{region}.c2s.ic.gov",tags:[]},{hostname:"portal.sso-fips.{region}.c2s.ic.gov",tags:["fips"]}]},"aws-iso-b":{regions:["us-isob-east-1"],regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",variants:[{hostname:"portal.sso.{region}.sc2s.sgov.gov",tags:[]},{hostname:"portal.sso-fips.{region}.sc2s.sgov.gov",tags:["fips"]}]},"aws-us-gov":{regions:["us-gov-east-1","us-gov-west-1"],regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",variants:[{hostname:"portal.sso.{region}.amazonaws.com",tags:[]},{hostname:"portal.sso-fips.{region}.amazonaws.com",tags:["fips"]},{hostname:"portal.sso-fips.{region}.api.aws",tags:["dualstack","fips"]},{hostname:"portal.sso.{region}.api.aws",tags:["dualstack"]}]}},oFe=async(e,t)=>(0,rFe.getRegionInfo)(e,S(o({},t),{signingService:"awsssoportal",regionHash:iFe,partitionHash:sFe}));wS.defaultRegionInfoProvider=oFe});var X5=m(yS=>{"use strict";Object.defineProperty(yS,"__esModule",{value:!0});yS.getRuntimeConfig=void 0;var aFe=jr(),dFe=J5(),cFe=e=>{var t,n,r,i,s;return{apiVersion:"2019-06-10",disableHostPrefix:(t=e==null?void 0:e.disableHostPrefix)!==null&&t!==void 0?t:!1,logger:(n=e==null?void 0:e.logger)!==null&&n!==void 0?n:{},regionInfoProvider:(r=e==null?void 0:e.regionInfoProvider)!==null&&r!==void 0?r:dFe.defaultRegionInfoProvider,serviceId:(i=e==null?void 0:e.serviceId)!==null&&i!==void 0?i:"SSO",urlParser:(s=e==null?void 0:e.urlParser)!==null&&s!==void 0?s:aFe.parseUrl}};yS.getRuntimeConfig=cFe});var _S=m(SS=>{"use strict";Object.defineProperty(SS,"__esModule",{value:!0});SS.httpRequest=void 0;var Z1=vt(),lFe=require("buffer"),uFe=require("http");function mFe(e){return new Promise((t,n)=>{var r;let i=(0,uFe.request)(S(o({method:"GET"},e),{hostname:(r=e.hostname)===null||r===void 0?void 0:r.replace(/^\[(.+)\]$/,"$1")}));i.on("error",s=>{n(Object.assign(new Z1.ProviderError("Unable to connect to instance metadata service"),s)),i.destroy()}),i.on("timeout",()=>{n(new Z1.ProviderError("TimeoutError from instance metadata service")),i.destroy()}),i.on("response",s=>{let{statusCode:d=400}=s;(d<200||300<=d)&&(n(Object.assign(new Z1.ProviderError("Error response received from instance metadata service"),{statusCode:d})),i.destroy());let a=[];s.on("data",c=>{a.push(c)}),s.on("end",()=>{t(lFe.Buffer.concat(a)),i.destroy()})}),i.end()})}SS.httpRequest=mFe});var ez=m(gd=>{"use strict";Object.defineProperty(gd,"__esModule",{value:!0});gd.fromImdsCredentials=gd.isImdsCredentials=void 0;var fFe=e=>Boolean(e)&&typeof e=="object"&&typeof e.AccessKeyId=="string"&&typeof e.SecretAccessKey=="string"&&typeof e.Token=="string"&&typeof e.Expiration=="string";gd.isImdsCredentials=fFe;var pFe=e=>({accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:new Date(e.Expiration)});gd.fromImdsCredentials=pFe});var vS=m(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.providerConfigFromInit=yi.DEFAULT_MAX_RETRIES=yi.DEFAULT_TIMEOUT=void 0;yi.DEFAULT_TIMEOUT=1e3;yi.DEFAULT_MAX_RETRIES=0;var gFe=({maxRetries:e=yi.DEFAULT_MAX_RETRIES,timeout:t=yi.DEFAULT_TIMEOUT})=>({maxRetries:e,timeout:t});yi.providerConfigFromInit=gFe});var tz=m(CS=>{"use strict";Object.defineProperty(CS,"__esModule",{value:!0});CS.retry=void 0;var hFe=(e,t)=>{let n=e();for(let r=0;r<t;r++)n=n.catch(e);return n};CS.retry=hFe});var W5=m(yn=>{"use strict";Object.defineProperty(yn,"__esModule",{value:!0});yn.fromContainerMetadata=yn.ENV_CMDS_AUTH_TOKEN=yn.ENV_CMDS_RELATIVE_URI=yn.ENV_CMDS_FULL_URI=void 0;var ES=vt(),wFe=require("url"),yFe=_S(),K5=ez(),SFe=vS(),_Fe=tz();yn.ENV_CMDS_FULL_URI="AWS_CONTAINER_CREDENTIALS_FULL_URI";yn.ENV_CMDS_RELATIVE_URI="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";yn.ENV_CMDS_AUTH_TOKEN="AWS_CONTAINER_AUTHORIZATION_TOKEN";var vFe=(e={})=>{let{timeout:t,maxRetries:n}=(0,SFe.providerConfigFromInit)(e);return()=>(0,_Fe.retry)(async()=>{let r=await bFe(),i=JSON.parse(await CFe(t,r));if(!(0,K5.isImdsCredentials)(i))throw new ES.CredentialsProviderError("Invalid response received from instance metadata service.");return(0,K5.fromImdsCredentials)(i)},n)};yn.fromContainerMetadata=vFe;var CFe=async(e,t)=>(process.env[yn.ENV_CMDS_AUTH_TOKEN]&&(t.headers=S(o({},t.headers),{Authorization:process.env[yn.ENV_CMDS_AUTH_TOKEN]})),(await(0,yFe.httpRequest)(S(o({},t),{timeout:e}))).toString()),EFe="169.254.170.2",AFe={localhost:!0,"127.0.0.1":!0},xFe={"http:":!0,"https:":!0},bFe=async()=>{if(process.env[yn.ENV_CMDS_RELATIVE_URI])return{hostname:EFe,path:process.env[yn.ENV_CMDS_RELATIVE_URI]};if(process.env[yn.ENV_CMDS_FULL_URI]){let e=(0,wFe.parse)(process.env[yn.ENV_CMDS_FULL_URI]);if(!e.hostname||!(e.hostname in AFe))throw new ES.CredentialsProviderError(`${e.hostname} is not a valid container metadata service hostname`,!1);if(!e.protocol||!(e.protocol in xFe))throw new ES.CredentialsProviderError(`${e.protocol} is not a valid container metadata service protocol`,!1);return S(o({},e),{port:e.port?parseInt(e.port,10):void 0})}throw new ES.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${yn.ENV_CMDS_RELATIVE_URI} or ${yn.ENV_CMDS_FULL_URI} environment variable is set`,!1)}});var Q5=m(Du=>{"use strict";Object.defineProperty(Du,"__esModule",{value:!0});Du.Endpoint=void 0;var RFe;(function(e){e.IPv4="http://169.254.169.254",e.IPv6="http://[fd00:ec2::254]"})(RFe=Du.Endpoint||(Du.Endpoint={}))});var Y5=m(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.ENDPOINT_CONFIG_OPTIONS=Si.CONFIG_ENDPOINT_NAME=Si.ENV_ENDPOINT_NAME=void 0;Si.ENV_ENDPOINT_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT";Si.CONFIG_ENDPOINT_NAME="ec2_metadata_service_endpoint";Si.ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>e[Si.ENV_ENDPOINT_NAME],configFileSelector:e=>e[Si.CONFIG_ENDPOINT_NAME],default:void 0}});var nz=m(Mu=>{"use strict";Object.defineProperty(Mu,"__esModule",{value:!0});Mu.EndpointMode=void 0;var TFe;(function(e){e.IPv4="IPv4",e.IPv6="IPv6"})(TFe=Mu.EndpointMode||(Mu.EndpointMode={}))});var Z5=m(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});_i.ENDPOINT_MODE_CONFIG_OPTIONS=_i.CONFIG_ENDPOINT_MODE_NAME=_i.ENV_ENDPOINT_MODE_NAME=void 0;var IFe=nz();_i.ENV_ENDPOINT_MODE_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";_i.CONFIG_ENDPOINT_MODE_NAME="ec2_metadata_service_endpoint_mode";_i.ENDPOINT_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[_i.ENV_ENDPOINT_MODE_NAME],configFileSelector:e=>e[_i.CONFIG_ENDPOINT_MODE_NAME],default:IFe.EndpointMode.IPv4}});var iz=m(AS=>{"use strict";Object.defineProperty(AS,"__esModule",{value:!0});AS.getInstanceMetadataEndpoint=void 0;var t6=lr(),NFe=jr(),e6=Q5(),PFe=Y5(),rz=nz(),kFe=Z5(),zFe=async()=>(0,NFe.parseUrl)(await qFe()||await LFe());AS.getInstanceMetadataEndpoint=zFe;var qFe=async()=>(0,t6.loadConfig)(PFe.ENDPOINT_CONFIG_OPTIONS)(),LFe=async()=>{let e=await(0,t6.loadConfig)(kFe.ENDPOINT_MODE_CONFIG_OPTIONS)();switch(e){case rz.EndpointMode.IPv4:return e6.Endpoint.IPv4;case rz.EndpointMode.IPv6:return e6.Endpoint.IPv6;default:throw new Error(`Unsupported endpoint mode: ${e}. Select from ${Object.values(rz.EndpointMode)}`)}}});var n6=m(xS=>{"use strict";Object.defineProperty(xS,"__esModule",{value:!0});xS.getExtendedInstanceMetadataCredentials=void 0;var DFe=5*60,MFe=5*60,BFe="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",OFe=(e,t)=>{var n;let r=DFe+Math.floor(Math.random()*MFe),i=new Date(Date.now()+r*1e3);t.warn("Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(newExpiration)}.\nFor more information, please visit: "+BFe);let s=(n=e.originalExpiration)!==null&&n!==void 0?n:e.expiration;return S(o(o({},e),s?{originalExpiration:s}:{}),{expiration:i})};xS.getExtendedInstanceMetadataCredentials=OFe});var i6=m(bS=>{"use strict";Object.defineProperty(bS,"__esModule",{value:!0});bS.staticStabilityProvider=void 0;var r6=n6(),FFe=(e,t={})=>{let n=(t==null?void 0:t.logger)||console,r;return async()=>{let i;try{i=await e(),i.expiration&&i.expiration.getTime()<Date.now()&&(i=(0,r6.getExtendedInstanceMetadataCredentials)(i,n))}catch(s){if(r)n.warn("Credential renew failed: ",s),i=(0,r6.getExtendedInstanceMetadataCredentials)(r,n);else throw s}return r=i,i}};bS.staticStabilityProvider=FFe});var d6=m(RS=>{"use strict";Object.defineProperty(RS,"__esModule",{value:!0});RS.fromInstanceMetadata=void 0;var jFe=vt(),sz=_S(),s6=ez(),UFe=vS(),o6=tz(),GFe=iz(),VFe=i6(),a6="/latest/meta-data/iam/security-credentials/",$Fe="/latest/api/token",HFe=(e={})=>(0,VFe.staticStabilityProvider)(JFe(e),{logger:e.logger});RS.fromInstanceMetadata=HFe;var JFe=e=>{let t=!1,{timeout:n,maxRetries:r}=(0,UFe.providerConfigFromInit)(e),i=async(s,d)=>{let a=(await(0,o6.retry)(async()=>{let c;try{c=await KFe(d)}catch(l){throw l.statusCode===401&&(t=!1),l}return c},s)).trim();return(0,o6.retry)(async()=>{let c;try{c=await WFe(a,d)}catch(l){throw l.statusCode===401&&(t=!1),l}return c},s)};return async()=>{let s=await(0,GFe.getInstanceMetadataEndpoint)();if(t)return i(r,S(o({},s),{timeout:n}));{let d;try{d=(await XFe(S(o({},s),{timeout:n}))).toString()}catch(a){if((a==null?void 0:a.statusCode)===400)throw Object.assign(a,{message:"EC2 Metadata token request returned error"});return(a.message==="TimeoutError"||[403,404,405].includes(a.statusCode))&&(t=!0),i(r,S(o({},s),{timeout:n}))}return i(r,S(o({},s),{headers:{"x-aws-ec2-metadata-token":d},timeout:n}))}}},XFe=async e=>(0,sz.httpRequest)(S(o({},e),{path:$Fe,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}})),KFe=async e=>(await(0,sz.httpRequest)(S(o({},e),{path:a6}))).toString(),WFe=async(e,t)=>{let n=JSON.parse((await(0,sz.httpRequest)(S(o({},t),{path:a6+e}))).toString());if(!(0,s6.isImdsCredentials)(n))throw new jFe.CredentialsProviderError("Invalid response received from instance metadata service.");return(0,s6.fromImdsCredentials)(n)}});var l6=m(c6=>{"use strict";Object.defineProperty(c6,"__esModule",{value:!0})});var u6=m(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});vi.getInstanceMetadataEndpoint=vi.httpRequest=void 0;var TS=oe();TS.__exportStar(W5(),vi);TS.__exportStar(d6(),vi);TS.__exportStar(vS(),vi);TS.__exportStar(l6(),vi);var QFe=_S();Object.defineProperty(vi,"httpRequest",{enumerable:!0,get:function(){return QFe.httpRequest}});var YFe=iz();Object.defineProperty(vi,"getInstanceMetadataEndpoint",{enumerable:!0,get:function(){return YFe.getInstanceMetadataEndpoint}})});var m6=m(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});Hn.IMDS_REGION_PATH=Hn.DEFAULTS_MODE_OPTIONS=Hn.ENV_IMDS_DISABLED=Hn.AWS_DEFAULT_REGION_ENV=Hn.AWS_REGION_ENV=Hn.AWS_EXECUTION_ENV=void 0;Hn.AWS_EXECUTION_ENV="AWS_EXECUTION_ENV";Hn.AWS_REGION_ENV="AWS_REGION";Hn.AWS_DEFAULT_REGION_ENV="AWS_DEFAULT_REGION";Hn.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";Hn.DEFAULTS_MODE_OPTIONS=["in-region","cross-region","mobile","standard","legacy"];Hn.IMDS_REGION_PATH="/latest/meta-data/placement/region"});var f6=m(IS=>{"use strict";Object.defineProperty(IS,"__esModule",{value:!0});IS.NODE_DEFAULTS_MODE_CONFIG_OPTIONS=void 0;var ZFe="AWS_DEFAULTS_MODE",eje="defaults_mode";IS.NODE_DEFAULTS_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[ZFe],configFileSelector:e=>e[eje],default:"legacy"}});var h6=m(NS=>{"use strict";Object.defineProperty(NS,"__esModule",{value:!0});NS.resolveDefaultsModeConfig=void 0;var tje=Jt(),p6=u6(),g6=lr(),nje=vt(),no=m6(),rje=f6(),ije=({region:e=(0,g6.loadConfig)(tje.NODE_REGION_CONFIG_OPTIONS),defaultsMode:t=(0,g6.loadConfig)(rje.NODE_DEFAULTS_MODE_CONFIG_OPTIONS)}={})=>(0,nje.memoize)(async()=>{let n=typeof t=="function"?await t():t;switch(n==null?void 0:n.toLowerCase()){case"auto":return sje(e);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(n==null?void 0:n.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${no.DEFAULTS_MODE_OPTIONS.join(", ")}, got ${n}`)}});NS.resolveDefaultsModeConfig=ije;var sje=async e=>{if(e){let t=typeof e=="function"?await e():e,n=await oje();return n?t===n?"in-region":"cross-region":"standard"}return"standard"},oje=async()=>{var e;if(process.env[no.AWS_EXECUTION_ENV]&&(process.env[no.AWS_REGION_ENV]||process.env[no.AWS_DEFAULT_REGION_ENV]))return(e=process.env[no.AWS_REGION_ENV])!==null&&e!==void 0?e:process.env[no.AWS_DEFAULT_REGION_ENV];if(!process.env[no.ENV_IMDS_DISABLED])try{let t=await(0,p6.getInstanceMetadataEndpoint)();return(await(0,p6.httpRequest)(S(o({},t),{path:no.IMDS_REGION_PATH}))).toString()}catch{}}});var ro=m(oz=>{"use strict";Object.defineProperty(oz,"__esModule",{value:!0});var aje=oe();aje.__exportStar(h6(),oz)});var _6=m(kS=>{"use strict";Object.defineProperty(kS,"__esModule",{value:!0});kS.getRuntimeConfig=void 0;var dje=oe(),cje=dje.__importDefault(T5()),PS=Jt(),lje=Ws(),az=Mn(),Bu=lr(),w6=Qs(),y6=Ys(),uje=Zs(),mje=eo(),S6=to(),fje=X5(),pje=R(),gje=ro(),hje=e=>{var t,n,r,i,s,d,a,c,l,u,w,E,T,I;let N=(0,gje.resolveDefaultsModeConfig)(e),F=()=>N().then(pje.loadConfigsForDefaultMode),J=(0,fje.getRuntimeConfig)(e);return S(o(o({},J),e),{runtime:"node",defaultsMode:N,base64Decoder:(t=e==null?void 0:e.base64Decoder)!==null&&t!==void 0?t:y6.fromBase64,base64Encoder:(n=e==null?void 0:e.base64Encoder)!==null&&n!==void 0?n:y6.toBase64,bodyLengthChecker:(r=e==null?void 0:e.bodyLengthChecker)!==null&&r!==void 0?r:uje.calculateBodyLength,defaultUserAgentProvider:(i=e==null?void 0:e.defaultUserAgentProvider)!==null&&i!==void 0?i:(0,mje.defaultUserAgent)({serviceId:J.serviceId,clientVersion:cje.default.version}),maxAttempts:(s=e==null?void 0:e.maxAttempts)!==null&&s!==void 0?s:(0,Bu.loadConfig)(az.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(d=e==null?void 0:e.region)!==null&&d!==void 0?d:(0,Bu.loadConfig)(PS.NODE_REGION_CONFIG_OPTIONS,PS.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(a=e==null?void 0:e.requestHandler)!==null&&a!==void 0?a:new w6.NodeHttpHandler(F),retryMode:(c=e==null?void 0:e.retryMode)!==null&&c!==void 0?c:(0,Bu.loadConfig)(S(o({},az.NODE_RETRY_MODE_CONFIG_OPTIONS),{default:async()=>(await F()).retryMode||az.DEFAULT_RETRY_MODE})),sha256:(l=e==null?void 0:e.sha256)!==null&&l!==void 0?l:lje.Hash.bind(null,"sha256"),streamCollector:(u=e==null?void 0:e.streamCollector)!==null&&u!==void 0?u:w6.streamCollector,useDualstackEndpoint:(w=e==null?void 0:e.useDualstackEndpoint)!==null&&w!==void 0?w:(0,Bu.loadConfig)(PS.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(E=e==null?void 0:e.useFipsEndpoint)!==null&&E!==void 0?E:(0,Bu.loadConfig)(PS.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:(T=e==null?void 0:e.utf8Decoder)!==null&&T!==void 0?T:S6.fromUtf8,utf8Encoder:(I=e==null?void 0:e.utf8Encoder)!==null&&I!==void 0?I:S6.toUtf8})};kS.getRuntimeConfig=hje});var Ou=m(zS=>{"use strict";Object.defineProperty(zS,"__esModule",{value:!0});zS.SSOClient=void 0;var v6=Jt(),wje=Ds(),C6=Ms(),yje=Bs(),E6=Mn(),A6=Us(),Sje=R(),_je=_6(),dz=class extends Sje.Client{constructor(t){let n=(0,_je.getRuntimeConfig)(t),r=(0,v6.resolveRegionConfig)(n),i=(0,v6.resolveEndpointsConfig)(r),s=(0,E6.resolveRetryConfig)(i),d=(0,C6.resolveHostHeaderConfig)(s),a=(0,A6.resolveUserAgentConfig)(d);super(a),this.config=a,this.middlewareStack.use((0,E6.getRetryPlugin)(this.config)),this.middlewareStack.use((0,wje.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,C6.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,yje.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,A6.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};zS.SSOClient=dz});var LS=m(qS=>{"use strict";Object.defineProperty(qS,"__esModule",{value:!0});qS.SSO=void 0;var vje=z1(),Cje=Zy(),Eje=tS(),Aje=M1(),xje=Ou(),cz=class extends xje.SSOClient{getRoleCredentials(t,n,r){let i=new vje.GetRoleCredentialsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listAccountRoles(t,n,r){let i=new Cje.ListAccountRolesCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listAccounts(t,n,r){let i=new Eje.ListAccountsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}logout(t,n,r){let i=new Aje.LogoutCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}};qS.SSO=cz});var x6=m(hd=>{"use strict";Object.defineProperty(hd,"__esModule",{value:!0});var DS=oe();DS.__exportStar(z1(),hd);DS.__exportStar(Zy(),hd);DS.__exportStar(tS(),hd);DS.__exportStar(M1(),hd)});var b6=m(lz=>{"use strict";Object.defineProperty(lz,"__esModule",{value:!0});var bje=oe();bje.__exportStar(oa(),lz)});var T6=m(R6=>{"use strict";Object.defineProperty(R6,"__esModule",{value:!0})});var I6=m(MS=>{"use strict";Object.defineProperty(MS,"__esModule",{value:!0});MS.paginateListAccountRoles=void 0;var Rje=Zy(),Tje=LS(),Ije=Ou(),Nje=async(e,t,...n)=>await e.send(new Rje.ListAccountRolesCommand(t),...n),Pje=async(e,t,...n)=>await e.listAccountRoles(t,...n);async function*kje(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.nextToken=r,t.maxResults=e.pageSize,e.client instanceof Tje.SSO)s=await Pje(e.client,t,...n);else if(e.client instanceof Ije.SSOClient)s=await Nje(e.client,t,...n);else throw new Error("Invalid client, expected SSO | SSOClient");yield s;let d=r;r=s.nextToken,i=!!(r&&(!e.stopOnSameToken||r!==d))}return void 0}MS.paginateListAccountRoles=kje});var N6=m(BS=>{"use strict";Object.defineProperty(BS,"__esModule",{value:!0});BS.paginateListAccounts=void 0;var zje=tS(),qje=LS(),Lje=Ou(),Dje=async(e,t,...n)=>await e.send(new zje.ListAccountsCommand(t),...n),Mje=async(e,t,...n)=>await e.listAccounts(t,...n);async function*Bje(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.nextToken=r,t.maxResults=e.pageSize,e.client instanceof qje.SSO)s=await Mje(e.client,t,...n);else if(e.client instanceof Lje.SSOClient)s=await Dje(e.client,t,...n);else throw new Error("Invalid client, expected SSO | SSOClient");yield s;let d=r;r=s.nextToken,i=!!(r&&(!e.stopOnSameToken||r!==d))}return void 0}BS.paginateListAccounts=Bje});var P6=m(Fu=>{"use strict";Object.defineProperty(Fu,"__esModule",{value:!0});var uz=oe();uz.__exportStar(T6(),Fu);uz.__exportStar(I6(),Fu);uz.__exportStar(N6(),Fu)});var k6=m(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.SSOServiceException=void 0;var ju=oe();ju.__exportStar(LS(),es);ju.__exportStar(Ou(),es);ju.__exportStar(x6(),es);ju.__exportStar(b6(),es);ju.__exportStar(P6(),es);var Oje=jy();Object.defineProperty(es,"SSOServiceException",{enumerable:!0,get:function(){return Oje.SSOServiceException}})});var q6=m(jS=>{"use strict";Object.defineProperty(jS,"__esModule",{value:!0});jS.resolveSSOCredentials=void 0;var z6=k6(),OS=vt(),Fje=xu(),jje=15*60*1e3,FS=!1,Uje=async({ssoStartUrl:e,ssoAccountId:t,ssoRegion:n,ssoRoleName:r,ssoClient:i})=>{let s,d="To refresh this SSO session run aws sso login with the corresponding profile.";try{s=await(0,Fje.getSSOTokenFromFile)(e)}catch{throw new OS.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${d}`,FS)}if(new Date(s.expiresAt).getTime()-Date.now()<=jje)throw new OS.CredentialsProviderError(`The SSO session associated with this profile has expired. ${d}`,FS);let{accessToken:a}=s,c=i||new z6.SSOClient({region:n}),l;try{l=await c.send(new z6.GetRoleCredentialsCommand({accountId:t,roleName:r,accessToken:a}))}catch(I){throw OS.CredentialsProviderError.from(I,FS)}let{roleCredentials:{accessKeyId:u,secretAccessKey:w,sessionToken:E,expiration:T}={}}=l;if(!u||!w||!E||!T)throw new OS.CredentialsProviderError("SSO returns an invalid temporary credential.",FS);return{accessKeyId:u,secretAccessKey:w,sessionToken:E,expiration:new Date(T)}};jS.resolveSSOCredentials=Uje});var mz=m(US=>{"use strict";Object.defineProperty(US,"__esModule",{value:!0});US.validateSsoProfile=void 0;var Gje=vt(),Vje=e=>{let{sso_start_url:t,sso_account_id:n,sso_region:r,sso_role_name:i}=e;if(!t||!n||!r||!i)throw new Gje.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(e).join(", ")}
|
|
28
28
|
Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,!1);return e};US.validateSsoProfile=Vje});var B6=m(GS=>{"use strict";Object.defineProperty(GS,"__esModule",{value:!0});GS.fromSSO=void 0;var L6=vt(),D6=xu(),$je=N1(),M6=q6(),Hje=mz(),Jje=(e={})=>async()=>{let{ssoStartUrl:t,ssoAccountId:n,ssoRegion:r,ssoRoleName:i,ssoClient:s}=e;if(!t&&!n&&!r&&!i){let d=await(0,D6.parseKnownFiles)(e),a=(0,D6.getProfileName)(e),c=d[a];if(!(0,$je.isSsoProfile)(c))throw new L6.CredentialsProviderError(`Profile ${a} is not configured with SSO credentials.`);let{sso_start_url:l,sso_account_id:u,sso_region:w,sso_role_name:E}=(0,Hje.validateSsoProfile)(c);return(0,M6.resolveSSOCredentials)({ssoStartUrl:l,ssoAccountId:u,ssoRegion:w,ssoRoleName:E,ssoClient:s})}else{if(!t||!n||!r||!i)throw new L6.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"');return(0,M6.resolveSSOCredentials)({ssoStartUrl:t,ssoAccountId:n,ssoRegion:r,ssoRoleName:i,ssoClient:s})}};GS.fromSSO=Jje});var F6=m(O6=>{"use strict";Object.defineProperty(O6,"__esModule",{value:!0})});var fz=m(wd=>{"use strict";Object.defineProperty(wd,"__esModule",{value:!0});var VS=oe();VS.__exportStar(B6(),wd);VS.__exportStar(N1(),wd);VS.__exportStar(F6(),wd);VS.__exportStar(mz(),wd)});var U6=m(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0});yd.resolveSsoCredentials=yd.isSsoProfile=void 0;var j6=fz(),Xje=fz();Object.defineProperty(yd,"isSsoProfile",{enumerable:!0,get:function(){return Xje.isSsoProfile}});var Kje=e=>{let{sso_start_url:t,sso_account_id:n,sso_region:r,sso_role_name:i}=(0,j6.validateSsoProfile)(e);return(0,j6.fromSSO)({ssoStartUrl:t,ssoAccountId:n,ssoRegion:r,ssoRoleName:i})()};yd.resolveSsoCredentials=Kje});var G6=m(Sd=>{"use strict";Object.defineProperty(Sd,"__esModule",{value:!0});Sd.resolveStaticCredentials=Sd.isStaticCredsProfile=void 0;var Wje=e=>Boolean(e)&&typeof e=="object"&&typeof e.aws_access_key_id=="string"&&typeof e.aws_secret_access_key=="string"&&["undefined","string"].indexOf(typeof e.aws_session_token)>-1;Sd.isStaticCredsProfile=Wje;var Qje=e=>Promise.resolve({accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token});Sd.resolveStaticCredentials=Qje});var pz=m($S=>{"use strict";Object.defineProperty($S,"__esModule",{value:!0});$S.fromWebToken=void 0;var Yje=vt(),Zje=e=>()=>{let{roleArn:t,roleSessionName:n,webIdentityToken:r,providerId:i,policyArns:s,policy:d,durationSeconds:a,roleAssumerWithWebIdentity:c}=e;if(!c)throw new Yje.CredentialsProviderError(`Role Arn '${t}' needs to be assumed with web identity, but no role assumption callback was provided.`,!1);return c({RoleArn:t,RoleSessionName:n??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:r,ProviderId:i,PolicyArns:s,Policy:d,DurationSeconds:a})};$S.fromWebToken=Zje});var V6=m(HS=>{"use strict";Object.defineProperty(HS,"__esModule",{value:!0});HS.fromTokenFile=void 0;var eUe=vt(),tUe=require("fs"),nUe=pz(),rUe="AWS_WEB_IDENTITY_TOKEN_FILE",iUe="AWS_ROLE_ARN",sUe="AWS_ROLE_SESSION_NAME",oUe=(e={})=>async()=>aUe(e);HS.fromTokenFile=oUe;var aUe=e=>{var t,n,r;let i=(t=e==null?void 0:e.webIdentityTokenFile)!==null&&t!==void 0?t:process.env[rUe],s=(n=e==null?void 0:e.roleArn)!==null&&n!==void 0?n:process.env[iUe],d=(r=e==null?void 0:e.roleSessionName)!==null&&r!==void 0?r:process.env[sUe];if(!i||!s)throw new eUe.CredentialsProviderError("Web identity configuration not specified");return(0,nUe.fromWebToken)(S(o({},e),{webIdentityToken:(0,tUe.readFileSync)(i,{encoding:"ascii"}),roleArn:s,roleSessionName:d}))()}});var gz=m(JS=>{"use strict";Object.defineProperty(JS,"__esModule",{value:!0});var $6=oe();$6.__exportStar(V6(),JS);$6.__exportStar(pz(),JS)});var H6=m(_d=>{"use strict";Object.defineProperty(_d,"__esModule",{value:!0});_d.resolveWebIdentityCredentials=_d.isWebIdentityProfile=void 0;var dUe=gz(),cUe=e=>Boolean(e)&&typeof e=="object"&&typeof e.web_identity_token_file=="string"&&typeof e.role_arn=="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1;_d.isWebIdentityProfile=cUe;var lUe=async(e,t)=>(0,dUe.fromTokenFile)({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:t.roleAssumerWithWebIdentity})();_d.resolveWebIdentityCredentials=lUe});var I1=m(KS=>{"use strict";Object.defineProperty(KS,"__esModule",{value:!0});KS.resolveProfileData=void 0;var uUe=vt(),J6=y5(),X6=U6(),XS=G6(),K6=H6(),mUe=async(e,t,n,r={})=>{let i=t[e];if(Object.keys(r).length>0&&(0,XS.isStaticCredsProfile)(i))return(0,XS.resolveStaticCredentials)(i);if((0,J6.isAssumeRoleProfile)(i))return(0,J6.resolveAssumeRoleCredentials)(e,t,n,r);if((0,XS.isStaticCredsProfile)(i))return(0,XS.resolveStaticCredentials)(i);if((0,K6.isWebIdentityProfile)(i))return(0,K6.resolveWebIdentityCredentials)(i,n);if((0,X6.isSsoProfile)(i))return(0,X6.resolveSsoCredentials)(i);throw new uUe.CredentialsProviderError(`Profile ${e} could not be found or parsed in shared credentials file.`)};KS.resolveProfileData=mUe});var Q6=m(WS=>{"use strict";Object.defineProperty(WS,"__esModule",{value:!0});WS.fromIni=void 0;var W6=xu(),fUe=I1(),pUe=(e={})=>async()=>{let t=await(0,W6.parseKnownFiles)(e);return(0,fUe.resolveProfileData)((0,W6.getProfileName)(e),t,e)};WS.fromIni=pUe});var Y6=m(hz=>{"use strict";Object.defineProperty(hz,"__esModule",{value:!0});var gUe=oe();gUe.__exportStar(Q6(),hz)});var Uu=m(QS=>{"use strict";Object.defineProperty(QS,"__esModule",{value:!0});QS.getHomeDir=void 0;var hUe=require("os"),wUe=require("path"),yUe=()=>{let{HOME:e,USERPROFILE:t,HOMEPATH:n,HOMEDRIVE:r=`C:${wUe.sep}`}=process.env;return e||t||(n?`${r}${n}`:(0,hUe.homedir)())};QS.getHomeDir=yUe});var Z6=m(Ci=>{"use strict";Object.defineProperty(Ci,"__esModule",{value:!0});Ci.getProfileName=Ci.DEFAULT_PROFILE=Ci.ENV_PROFILE=void 0;Ci.ENV_PROFILE="AWS_PROFILE";Ci.DEFAULT_PROFILE="default";var SUe=e=>e.profile||process.env[Ci.ENV_PROFILE]||Ci.DEFAULT_PROFILE;Ci.getProfileName=SUe});var wz=m(YS=>{"use strict";Object.defineProperty(YS,"__esModule",{value:!0});YS.getSSOTokenFilepath=void 0;var _Ue=require("crypto"),vUe=require("path"),CUe=Uu(),EUe=e=>{let n=(0,_Ue.createHash)("sha1").update(e).digest("hex");return(0,vUe.join)((0,CUe.getHomeDir)(),".aws","sso","cache",`${n}.json`)};YS.getSSOTokenFilepath=EUe});var e4=m(ZS=>{"use strict";Object.defineProperty(ZS,"__esModule",{value:!0});ZS.getSSOTokenFromFile=void 0;var AUe=require("fs"),xUe=wz(),{readFile:bUe}=AUe.promises,RUe=async e=>{let t=(0,xUe.getSSOTokenFilepath)(e),n=await bUe(t,"utf8");return JSON.parse(n)};ZS.getSSOTokenFromFile=RUe});var t4=m(da=>{"use strict";Object.defineProperty(da,"__esModule",{value:!0});da.getConfigFilepath=da.ENV_CONFIG_PATH=void 0;var TUe=require("path"),IUe=Uu();da.ENV_CONFIG_PATH="AWS_CONFIG_FILE";var NUe=()=>process.env[da.ENV_CONFIG_PATH]||(0,TUe.join)((0,IUe.getHomeDir)(),".aws","config");da.getConfigFilepath=NUe});var n4=m(ca=>{"use strict";Object.defineProperty(ca,"__esModule",{value:!0});ca.getCredentialsFilepath=ca.ENV_CREDENTIALS_PATH=void 0;var PUe=require("path"),kUe=Uu();ca.ENV_CREDENTIALS_PATH="AWS_SHARED_CREDENTIALS_FILE";var zUe=()=>process.env[ca.ENV_CREDENTIALS_PATH]||(0,PUe.join)((0,kUe.getHomeDir)(),".aws","credentials");ca.getCredentialsFilepath=zUe});var i4=m(e_=>{"use strict";Object.defineProperty(e_,"__esModule",{value:!0});e_.getProfileData=void 0;var r4=/^profile\s(["'])?([^\1]+)\1$/,qUe=e=>Object.entries(e).filter(([t])=>r4.test(t)).reduce((t,[n,r])=>S(o({},t),{[r4.exec(n)[2]]:r}),o({},e.default&&{default:e.default}));e_.getProfileData=qUe});var s4=m(t_=>{"use strict";Object.defineProperty(t_,"__esModule",{value:!0});t_.parseIni=void 0;var LUe=["__proto__","profile __proto__"],DUe=e=>{let t={},n;for(let r of e.split(/\r?\n/)){r=r.split(/(^|\s)[;#]/)[0];let i=r.match(/^\s*\[([^\[\]]+)]\s*$/);if(i){if(n=i[1],LUe.includes(n))throw new Error(`Found invalid profile name "${n}"`)}else if(n){let s=r.match(/^\s*(.+?)\s*=\s*(.+?)\s*$/);s&&(t[n]=t[n]||{},t[n][s[1]]=s[2])}}return t};t_.parseIni=DUe});var o4=m(n_=>{"use strict";Object.defineProperty(n_,"__esModule",{value:!0});n_.slurpFile=void 0;var MUe=require("fs"),{readFile:BUe}=MUe.promises,yz={},OUe=e=>(yz[e]||(yz[e]=BUe(e,"utf8")),yz[e]);n_.slurpFile=OUe});var Sz=m(r_=>{"use strict";Object.defineProperty(r_,"__esModule",{value:!0});r_.loadSharedConfigFiles=void 0;var FUe=t4(),jUe=n4(),UUe=i4(),a4=s4(),d4=o4(),c4=()=>({}),GUe=async(e={})=>{let{filepath:t=(0,jUe.getCredentialsFilepath)(),configFilepath:n=(0,FUe.getConfigFilepath)()}=e,r=await Promise.all([(0,d4.slurpFile)(n).then(a4.parseIni).then(UUe.getProfileData).catch(c4),(0,d4.slurpFile)(t).then(a4.parseIni).catch(c4)]);return{configFile:r[0],credentialsFile:r[1]}};r_.loadSharedConfigFiles=GUe});var l4=m(i_=>{"use strict";Object.defineProperty(i_,"__esModule",{value:!0});i_.parseKnownFiles=void 0;var VUe=Sz(),$Ue=async e=>{let t=await(0,VUe.loadSharedConfigFiles)(e);return o(o({},t.configFile),t.credentialsFile)};i_.parseKnownFiles=$Ue});var m4=m(u4=>{"use strict";Object.defineProperty(u4,"__esModule",{value:!0})});var f4=m(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});var la=oe();la.__exportStar(Uu(),ts);la.__exportStar(Z6(),ts);la.__exportStar(wz(),ts);la.__exportStar(e4(),ts);la.__exportStar(Sz(),ts);la.__exportStar(l4(),ts);la.__exportStar(m4(),ts)});var p4=m(s_=>{"use strict";Object.defineProperty(s_,"__esModule",{value:!0});s_.getValidatedProcessCredentials=void 0;var HUe=(e,t)=>{if(t.Version!==1)throw Error(`Profile ${e} credential_process did not return Version 1.`);if(t.AccessKeyId===void 0||t.SecretAccessKey===void 0)throw Error(`Profile ${e} credential_process returned invalid credentials.`);if(t.Expiration){let n=new Date;if(new Date(t.Expiration)<n)throw Error(`Profile ${e} credential_process returned expired credentials.`)}return o(o({accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey},t.SessionToken&&{sessionToken:t.SessionToken}),t.Expiration&&{expiration:new Date(t.Expiration)})};s_.getValidatedProcessCredentials=HUe});var g4=m(o_=>{"use strict";Object.defineProperty(o_,"__esModule",{value:!0});o_.resolveProcessCredentials=void 0;var _z=vt(),JUe=require("child_process"),XUe=require("util"),KUe=p4(),WUe=async(e,t)=>{let n=t[e];if(t[e]){let r=n.credential_process;if(r!==void 0){let i=(0,XUe.promisify)(JUe.exec);try{let{stdout:s}=await i(r),d;try{d=JSON.parse(s.trim())}catch{throw Error(`Profile ${e} credential_process returned invalid JSON.`)}return(0,KUe.getValidatedProcessCredentials)(e,d)}catch(s){throw new _z.CredentialsProviderError(s.message)}}else throw new _z.CredentialsProviderError(`Profile ${e} did not contain credential_process.`)}else throw new _z.CredentialsProviderError(`Profile ${e} could not be found in shared credentials file.`)};o_.resolveProcessCredentials=WUe});var w4=m(a_=>{"use strict";Object.defineProperty(a_,"__esModule",{value:!0});a_.fromProcess=void 0;var h4=f4(),QUe=g4(),YUe=(e={})=>async()=>{let t=await(0,h4.parseKnownFiles)(e);return(0,QUe.resolveProcessCredentials)((0,h4.getProfileName)(e),t)};a_.fromProcess=YUe});var y4=m(vz=>{"use strict";Object.defineProperty(vz,"__esModule",{value:!0});var ZUe=oe();ZUe.__exportStar(w4(),vz)});var Gu=m(d_=>{"use strict";Object.defineProperty(d_,"__esModule",{value:!0});d_.getHomeDir=void 0;var eGe=require("os"),tGe=require("path"),nGe=()=>{let{HOME:e,USERPROFILE:t,HOMEPATH:n,HOMEDRIVE:r=`C:${tGe.sep}`}=process.env;return e||t||(n?`${r}${n}`:(0,eGe.homedir)())};d_.getHomeDir=nGe});var S4=m(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});Ei.getProfileName=Ei.DEFAULT_PROFILE=Ei.ENV_PROFILE=void 0;Ei.ENV_PROFILE="AWS_PROFILE";Ei.DEFAULT_PROFILE="default";var rGe=e=>e.profile||process.env[Ei.ENV_PROFILE]||Ei.DEFAULT_PROFILE;Ei.getProfileName=rGe});var Cz=m(c_=>{"use strict";Object.defineProperty(c_,"__esModule",{value:!0});c_.getSSOTokenFilepath=void 0;var iGe=require("crypto"),sGe=require("path"),oGe=Gu(),aGe=e=>{let n=(0,iGe.createHash)("sha1").update(e).digest("hex");return(0,sGe.join)((0,oGe.getHomeDir)(),".aws","sso","cache",`${n}.json`)};c_.getSSOTokenFilepath=aGe});var _4=m(l_=>{"use strict";Object.defineProperty(l_,"__esModule",{value:!0});l_.getSSOTokenFromFile=void 0;var dGe=require("fs"),cGe=Cz(),{readFile:lGe}=dGe.promises,uGe=async e=>{let t=(0,cGe.getSSOTokenFilepath)(e),n=await lGe(t,"utf8");return JSON.parse(n)};l_.getSSOTokenFromFile=uGe});var v4=m(ua=>{"use strict";Object.defineProperty(ua,"__esModule",{value:!0});ua.getConfigFilepath=ua.ENV_CONFIG_PATH=void 0;var mGe=require("path"),fGe=Gu();ua.ENV_CONFIG_PATH="AWS_CONFIG_FILE";var pGe=()=>process.env[ua.ENV_CONFIG_PATH]||(0,mGe.join)((0,fGe.getHomeDir)(),".aws","config");ua.getConfigFilepath=pGe});var C4=m(ma=>{"use strict";Object.defineProperty(ma,"__esModule",{value:!0});ma.getCredentialsFilepath=ma.ENV_CREDENTIALS_PATH=void 0;var gGe=require("path"),hGe=Gu();ma.ENV_CREDENTIALS_PATH="AWS_SHARED_CREDENTIALS_FILE";var wGe=()=>process.env[ma.ENV_CREDENTIALS_PATH]||(0,gGe.join)((0,hGe.getHomeDir)(),".aws","credentials");ma.getCredentialsFilepath=wGe});var A4=m(u_=>{"use strict";Object.defineProperty(u_,"__esModule",{value:!0});u_.getProfileData=void 0;var E4=/^profile\s(["'])?([^\1]+)\1$/,yGe=e=>Object.entries(e).filter(([t])=>E4.test(t)).reduce((t,[n,r])=>S(o({},t),{[E4.exec(n)[2]]:r}),o({},e.default&&{default:e.default}));u_.getProfileData=yGe});var x4=m(m_=>{"use strict";Object.defineProperty(m_,"__esModule",{value:!0});m_.parseIni=void 0;var SGe=["__proto__","profile __proto__"],_Ge=e=>{let t={},n;for(let r of e.split(/\r?\n/)){r=r.split(/(^|\s)[;#]/)[0];let i=r.match(/^\s*\[([^\[\]]+)]\s*$/);if(i){if(n=i[1],SGe.includes(n))throw new Error(`Found invalid profile name "${n}"`)}else if(n){let s=r.match(/^\s*(.+?)\s*=\s*(.+?)\s*$/);s&&(t[n]=t[n]||{},t[n][s[1]]=s[2])}}return t};m_.parseIni=_Ge});var b4=m(f_=>{"use strict";Object.defineProperty(f_,"__esModule",{value:!0});f_.slurpFile=void 0;var vGe=require("fs"),{readFile:CGe}=vGe.promises,Ez={},EGe=e=>(Ez[e]||(Ez[e]=CGe(e,"utf8")),Ez[e]);f_.slurpFile=EGe});var Az=m(p_=>{"use strict";Object.defineProperty(p_,"__esModule",{value:!0});p_.loadSharedConfigFiles=void 0;var AGe=v4(),xGe=C4(),bGe=A4(),R4=x4(),T4=b4(),I4=()=>({}),RGe=async(e={})=>{let{filepath:t=(0,xGe.getCredentialsFilepath)(),configFilepath:n=(0,AGe.getConfigFilepath)()}=e,r=await Promise.all([(0,T4.slurpFile)(n).then(R4.parseIni).then(bGe.getProfileData).catch(I4),(0,T4.slurpFile)(t).then(R4.parseIni).catch(I4)]);return{configFile:r[0],credentialsFile:r[1]}};p_.loadSharedConfigFiles=RGe});var N4=m(g_=>{"use strict";Object.defineProperty(g_,"__esModule",{value:!0});g_.parseKnownFiles=void 0;var TGe=Az(),IGe=async e=>{let t=await(0,TGe.loadSharedConfigFiles)(e);return o(o({},t.configFile),t.credentialsFile)};g_.parseKnownFiles=IGe});var k4=m(P4=>{"use strict";Object.defineProperty(P4,"__esModule",{value:!0})});var h_=m(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});var fa=oe();fa.__exportStar(Gu(),ns);fa.__exportStar(S4(),ns);fa.__exportStar(Cz(),ns);fa.__exportStar(_4(),ns);fa.__exportStar(Az(),ns);fa.__exportStar(N4(),ns);fa.__exportStar(k4(),ns)});var xz=m(w_=>{"use strict";Object.defineProperty(w_,"__esModule",{value:!0});w_.isSsoProfile=void 0;var NGe=e=>e&&(typeof e.sso_start_url=="string"||typeof e.sso_account_id=="string"||typeof e.sso_region=="string"||typeof e.sso_role_name=="string");w_.isSsoProfile=NGe});var S_=m(y_=>{"use strict";Object.defineProperty(y_,"__esModule",{value:!0});y_.SSOServiceException=void 0;var PGe=R(),Vu=class extends PGe.ServiceException{constructor(t){super(t),Object.setPrototypeOf(this,Vu.prototype)}};y_.SSOServiceException=Vu});var pa=m(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.LogoutRequest=at.ListAccountsResponse=at.ListAccountsRequest=at.ListAccountRolesResponse=at.RoleInfo=at.ListAccountRolesRequest=at.UnauthorizedException=at.TooManyRequestsException=at.ResourceNotFoundException=at.InvalidRequestException=at.GetRoleCredentialsResponse=at.RoleCredentials=at.GetRoleCredentialsRequest=at.AccountInfo=void 0;var vd=R(),__=S_(),kGe;(function(e){e.filterSensitiveLog=t=>o({},t)})(kGe=at.AccountInfo||(at.AccountInfo={}));var zGe;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.accessToken&&{accessToken:vd.SENSITIVE_STRING})})(zGe=at.GetRoleCredentialsRequest||(at.GetRoleCredentialsRequest={}));var z4;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.secretAccessKey&&{secretAccessKey:vd.SENSITIVE_STRING}),t.sessionToken&&{sessionToken:vd.SENSITIVE_STRING})})(z4=at.RoleCredentials||(at.RoleCredentials={}));var qGe;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.roleCredentials&&{roleCredentials:z4.filterSensitiveLog(t.roleCredentials)})})(qGe=at.GetRoleCredentialsResponse||(at.GetRoleCredentialsResponse={}));var $u=class extends __.SSOServiceException{constructor(t){super(o({name:"InvalidRequestException",$fault:"client"},t)),this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,$u.prototype)}};at.InvalidRequestException=$u;var Hu=class extends __.SSOServiceException{constructor(t){super(o({name:"ResourceNotFoundException",$fault:"client"},t)),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,Hu.prototype)}};at.ResourceNotFoundException=Hu;var Ju=class extends __.SSOServiceException{constructor(t){super(o({name:"TooManyRequestsException",$fault:"client"},t)),this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,Ju.prototype)}};at.TooManyRequestsException=Ju;var Xu=class extends __.SSOServiceException{constructor(t){super(o({name:"UnauthorizedException",$fault:"client"},t)),this.name="UnauthorizedException",this.$fault="client",Object.setPrototypeOf(this,Xu.prototype)}};at.UnauthorizedException=Xu;var LGe;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.accessToken&&{accessToken:vd.SENSITIVE_STRING})})(LGe=at.ListAccountRolesRequest||(at.ListAccountRolesRequest={}));var DGe;(function(e){e.filterSensitiveLog=t=>o({},t)})(DGe=at.RoleInfo||(at.RoleInfo={}));var MGe;(function(e){e.filterSensitiveLog=t=>o({},t)})(MGe=at.ListAccountRolesResponse||(at.ListAccountRolesResponse={}));var BGe;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.accessToken&&{accessToken:vd.SENSITIVE_STRING})})(BGe=at.ListAccountsRequest||(at.ListAccountsRequest={}));var OGe;(function(e){e.filterSensitiveLog=t=>o({},t)})(OGe=at.ListAccountsResponse||(at.ListAccountsResponse={}));var FGe;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.accessToken&&{accessToken:vd.SENSITIVE_STRING})})(FGe=at.LogoutRequest||(at.LogoutRequest={}))});var Ku=m(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.deserializeAws_restJson1LogoutCommand=Sn.deserializeAws_restJson1ListAccountsCommand=Sn.deserializeAws_restJson1ListAccountRolesCommand=Sn.deserializeAws_restJson1GetRoleCredentialsCommand=Sn.serializeAws_restJson1LogoutCommand=Sn.serializeAws_restJson1ListAccountsCommand=Sn.serializeAws_restJson1ListAccountRolesCommand=Sn.serializeAws_restJson1GetRoleCredentialsCommand=void 0;var v_=Ht(),xt=R(),C_=pa(),E_=S_(),jGe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d=o({},R_(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}),a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/federation/credentials`,c=o(o({},e.roleName!==void 0&&{role_name:e.roleName}),e.accountId!==void 0&&{account_id:e.accountId}),l;return new v_.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,query:c,body:l})};Sn.serializeAws_restJson1GetRoleCredentialsCommand=jGe;var UGe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d=o({},R_(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}),a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/assignment/roles`,c=o(o(o({},e.nextToken!==void 0&&{next_token:e.nextToken}),e.maxResults!==void 0&&{max_result:e.maxResults.toString()}),e.accountId!==void 0&&{account_id:e.accountId}),l;return new v_.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,query:c,body:l})};Sn.serializeAws_restJson1ListAccountRolesCommand=UGe;var GGe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d=o({},R_(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}),a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/assignment/accounts`,c=o(o({},e.nextToken!==void 0&&{next_token:e.nextToken}),e.maxResults!==void 0&&{max_result:e.maxResults.toString()}),l;return new v_.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,query:c,body:l})};Sn.serializeAws_restJson1ListAccountsCommand=GGe;var VGe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d=o({},R_(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}),a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/logout`,c;return new v_.HttpRequest({protocol:r,hostname:n,port:i,method:"POST",headers:d,path:a,body:c})};Sn.serializeAws_restJson1LogoutCommand=VGe;var $Ge=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return HGe(e,t);let n={$metadata:br(e),roleCredentials:void 0},r=(0,xt.expectNonNull)((0,xt.expectObject)(await ga(e.body,t)),"body");return r.roleCredentials!==void 0&&r.roleCredentials!==null&&(n.roleCredentials=tVe(r.roleCredentials,t)),Promise.resolve(n)};Sn.deserializeAws_restJson1GetRoleCredentialsCommand=$Ge;var HGe=async(e,t)=>{let n=S(o({},e),{body:await ga(e.body,t)}),r,i="UnknownError";switch(i=T_(e,n.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await A_(n,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await bz(n,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await x_(n,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await b_(n,t);default:let s=n.body;throw r=new E_.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:br(e)}),(0,xt.decorateServiceException)(r,s)}},JGe=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return XGe(e,t);let n={$metadata:br(e),nextToken:void 0,roleList:void 0},r=(0,xt.expectNonNull)((0,xt.expectObject)(await ga(e.body,t)),"body");return r.nextToken!==void 0&&r.nextToken!==null&&(n.nextToken=(0,xt.expectString)(r.nextToken)),r.roleList!==void 0&&r.roleList!==null&&(n.roleList=rVe(r.roleList,t)),Promise.resolve(n)};Sn.deserializeAws_restJson1ListAccountRolesCommand=JGe;var XGe=async(e,t)=>{let n=S(o({},e),{body:await ga(e.body,t)}),r,i="UnknownError";switch(i=T_(e,n.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await A_(n,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await bz(n,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await x_(n,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await b_(n,t);default:let s=n.body;throw r=new E_.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:br(e)}),(0,xt.decorateServiceException)(r,s)}},KGe=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return WGe(e,t);let n={$metadata:br(e),accountList:void 0,nextToken:void 0},r=(0,xt.expectNonNull)((0,xt.expectObject)(await ga(e.body,t)),"body");return r.accountList!==void 0&&r.accountList!==null&&(n.accountList=eVe(r.accountList,t)),r.nextToken!==void 0&&r.nextToken!==null&&(n.nextToken=(0,xt.expectString)(r.nextToken)),Promise.resolve(n)};Sn.deserializeAws_restJson1ListAccountsCommand=KGe;var WGe=async(e,t)=>{let n=S(o({},e),{body:await ga(e.body,t)}),r,i="UnknownError";switch(i=T_(e,n.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await A_(n,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await bz(n,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await x_(n,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await b_(n,t);default:let s=n.body;throw r=new E_.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:br(e)}),(0,xt.decorateServiceException)(r,s)}},QGe=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return YGe(e,t);let n={$metadata:br(e)};return await q4(e.body,t),Promise.resolve(n)};Sn.deserializeAws_restJson1LogoutCommand=QGe;var YGe=async(e,t)=>{let n=S(o({},e),{body:await ga(e.body,t)}),r,i="UnknownError";switch(i=T_(e,n.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await A_(n,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await x_(n,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await b_(n,t);default:let s=n.body;throw r=new E_.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:br(e)}),(0,xt.decorateServiceException)(r,s)}},A_=async(e,t)=>{let n={},r=e.body;r.message!==void 0&&r.message!==null&&(n.message=(0,xt.expectString)(r.message));let i=new C_.InvalidRequestException(o({$metadata:br(e)},n));return(0,xt.decorateServiceException)(i,e.body)},bz=async(e,t)=>{let n={},r=e.body;r.message!==void 0&&r.message!==null&&(n.message=(0,xt.expectString)(r.message));let i=new C_.ResourceNotFoundException(o({$metadata:br(e)},n));return(0,xt.decorateServiceException)(i,e.body)},x_=async(e,t)=>{let n={},r=e.body;r.message!==void 0&&r.message!==null&&(n.message=(0,xt.expectString)(r.message));let i=new C_.TooManyRequestsException(o({$metadata:br(e)},n));return(0,xt.decorateServiceException)(i,e.body)},b_=async(e,t)=>{let n={},r=e.body;r.message!==void 0&&r.message!==null&&(n.message=(0,xt.expectString)(r.message));let i=new C_.UnauthorizedException(o({$metadata:br(e)},n));return(0,xt.decorateServiceException)(i,e.body)},ZGe=(e,t)=>({accountId:(0,xt.expectString)(e.accountId),accountName:(0,xt.expectString)(e.accountName),emailAddress:(0,xt.expectString)(e.emailAddress)}),eVe=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:ZGe(r,t)),tVe=(e,t)=>({accessKeyId:(0,xt.expectString)(e.accessKeyId),expiration:(0,xt.expectLong)(e.expiration),secretAccessKey:(0,xt.expectString)(e.secretAccessKey),sessionToken:(0,xt.expectString)(e.sessionToken)}),nVe=(e,t)=>({accountId:(0,xt.expectString)(e.accountId),roleName:(0,xt.expectString)(e.roleName)}),rVe=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:nVe(r,t)),br=e=>{var t;return{httpStatusCode:e.statusCode,requestId:(t=e.headers["x-amzn-requestid"])!==null&&t!==void 0?t:e.headers["x-amzn-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}},q4=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),iVe=(e,t)=>q4(e,t).then(n=>t.utf8Encoder(n)),R_=e=>e!=null&&e!==""&&(!Object.getOwnPropertyNames(e).includes("length")||e.length!=0)&&(!Object.getOwnPropertyNames(e).includes("size")||e.size!=0),ga=(e,t)=>iVe(e,t).then(n=>n.length?JSON.parse(n):{}),T_=(e,t)=>{let n=(s,d)=>Object.keys(s).find(a=>a.toLowerCase()===d.toLowerCase()),r=s=>{let d=s;return d.indexOf(":")>=0&&(d=d.split(":")[0]),d.indexOf("#")>=0&&(d=d.split("#")[1]),d},i=n(e.headers,"x-amzn-errortype");return i!==void 0?r(e.headers[i]):t.code!==void 0?r(t.code):t.__type!==void 0?r(t.__type):""}});var Tz=m(I_=>{"use strict";Object.defineProperty(I_,"__esModule",{value:!0});I_.GetRoleCredentialsCommand=void 0;var sVe=P(),oVe=R(),L4=pa(),D4=Ku(),Rz=class extends oVe.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,sVe.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"SSOClient",commandName:"GetRoleCredentialsCommand",inputFilterSensitiveLog:L4.GetRoleCredentialsRequest.filterSensitiveLog,outputFilterSensitiveLog:L4.GetRoleCredentialsResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,D4.serializeAws_restJson1GetRoleCredentialsCommand)(t,n)}deserialize(t,n){return(0,D4.deserializeAws_restJson1GetRoleCredentialsCommand)(t,n)}};I_.GetRoleCredentialsCommand=Rz});var P_=m(N_=>{"use strict";Object.defineProperty(N_,"__esModule",{value:!0});N_.ListAccountRolesCommand=void 0;var aVe=P(),dVe=R(),M4=pa(),B4=Ku(),Iz=class extends dVe.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,aVe.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"SSOClient",commandName:"ListAccountRolesCommand",inputFilterSensitiveLog:M4.ListAccountRolesRequest.filterSensitiveLog,outputFilterSensitiveLog:M4.ListAccountRolesResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,B4.serializeAws_restJson1ListAccountRolesCommand)(t,n)}deserialize(t,n){return(0,B4.deserializeAws_restJson1ListAccountRolesCommand)(t,n)}};N_.ListAccountRolesCommand=Iz});var z_=m(k_=>{"use strict";Object.defineProperty(k_,"__esModule",{value:!0});k_.ListAccountsCommand=void 0;var cVe=P(),lVe=R(),O4=pa(),F4=Ku(),Nz=class extends lVe.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,cVe.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"SSOClient",commandName:"ListAccountsCommand",inputFilterSensitiveLog:O4.ListAccountsRequest.filterSensitiveLog,outputFilterSensitiveLog:O4.ListAccountsResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,F4.serializeAws_restJson1ListAccountsCommand)(t,n)}deserialize(t,n){return(0,F4.deserializeAws_restJson1ListAccountsCommand)(t,n)}};k_.ListAccountsCommand=Nz});var kz=m(q_=>{"use strict";Object.defineProperty(q_,"__esModule",{value:!0});q_.LogoutCommand=void 0;var uVe=P(),mVe=R(),fVe=pa(),j4=Ku(),Pz=class extends mVe.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,uVe.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"SSOClient",commandName:"LogoutCommand",inputFilterSensitiveLog:fVe.LogoutRequest.filterSensitiveLog,outputFilterSensitiveLog:u=>u},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,j4.serializeAws_restJson1LogoutCommand)(t,n)}deserialize(t,n){return(0,j4.deserializeAws_restJson1LogoutCommand)(t,n)}};q_.LogoutCommand=Pz});var U4=m((M5t,pVe)=>{pVe.exports={name:"@aws-sdk/client-sso",description:"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",version:"3.95.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/config-resolver":"3.80.0","@aws-sdk/fetch-http-handler":"3.78.0","@aws-sdk/hash-node":"3.78.0","@aws-sdk/invalid-dependency":"3.78.0","@aws-sdk/middleware-content-length":"3.78.0","@aws-sdk/middleware-host-header":"3.78.0","@aws-sdk/middleware-logger":"3.78.0","@aws-sdk/middleware-retry":"3.80.0","@aws-sdk/middleware-serde":"3.78.0","@aws-sdk/middleware-stack":"3.78.0","@aws-sdk/middleware-user-agent":"3.78.0","@aws-sdk/node-config-provider":"3.80.0","@aws-sdk/node-http-handler":"3.94.0","@aws-sdk/protocol-http":"3.78.0","@aws-sdk/smithy-client":"3.85.0","@aws-sdk/types":"3.78.0","@aws-sdk/url-parser":"3.78.0","@aws-sdk/util-base64-browser":"3.58.0","@aws-sdk/util-base64-node":"3.55.0","@aws-sdk/util-body-length-browser":"3.55.0","@aws-sdk/util-body-length-node":"3.55.0","@aws-sdk/util-defaults-mode-browser":"3.85.0","@aws-sdk/util-defaults-mode-node":"3.85.0","@aws-sdk/util-user-agent-browser":"3.78.0","@aws-sdk/util-user-agent-node":"3.80.0","@aws-sdk/util-utf8-browser":"3.55.0","@aws-sdk/util-utf8-node":"3.55.0",tslib:"^2.3.1"},devDependencies:{"@aws-sdk/service-client-documentation-generator":"3.58.0","@tsconfig/recommended":"1.0.1","@types/node":"^12.7.5",concurrently:"7.0.0","downlevel-dts":"0.7.0",rimraf:"3.0.2",typedoc:"0.19.2",typescript:"~4.6.2"},engines:{node:">=12.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sso"}}});var G4=m(L_=>{"use strict";Object.defineProperty(L_,"__esModule",{value:!0});L_.defaultRegionInfoProvider=void 0;var gVe=Jt(),hVe={"ap-northeast-1":{variants:[{hostname:"portal.sso.ap-northeast-1.amazonaws.com",tags:[]}],signingRegion:"ap-northeast-1"},"ap-northeast-2":{variants:[{hostname:"portal.sso.ap-northeast-2.amazonaws.com",tags:[]}],signingRegion:"ap-northeast-2"},"ap-south-1":{variants:[{hostname:"portal.sso.ap-south-1.amazonaws.com",tags:[]}],signingRegion:"ap-south-1"},"ap-southeast-1":{variants:[{hostname:"portal.sso.ap-southeast-1.amazonaws.com",tags:[]}],signingRegion:"ap-southeast-1"},"ap-southeast-2":{variants:[{hostname:"portal.sso.ap-southeast-2.amazonaws.com",tags:[]}],signingRegion:"ap-southeast-2"},"ca-central-1":{variants:[{hostname:"portal.sso.ca-central-1.amazonaws.com",tags:[]}],signingRegion:"ca-central-1"},"eu-central-1":{variants:[{hostname:"portal.sso.eu-central-1.amazonaws.com",tags:[]}],signingRegion:"eu-central-1"},"eu-north-1":{variants:[{hostname:"portal.sso.eu-north-1.amazonaws.com",tags:[]}],signingRegion:"eu-north-1"},"eu-west-1":{variants:[{hostname:"portal.sso.eu-west-1.amazonaws.com",tags:[]}],signingRegion:"eu-west-1"},"eu-west-2":{variants:[{hostname:"portal.sso.eu-west-2.amazonaws.com",tags:[]}],signingRegion:"eu-west-2"},"eu-west-3":{variants:[{hostname:"portal.sso.eu-west-3.amazonaws.com",tags:[]}],signingRegion:"eu-west-3"},"sa-east-1":{variants:[{hostname:"portal.sso.sa-east-1.amazonaws.com",tags:[]}],signingRegion:"sa-east-1"},"us-east-1":{variants:[{hostname:"portal.sso.us-east-1.amazonaws.com",tags:[]}],signingRegion:"us-east-1"},"us-east-2":{variants:[{hostname:"portal.sso.us-east-2.amazonaws.com",tags:[]}],signingRegion:"us-east-2"},"us-gov-east-1":{variants:[{hostname:"portal.sso.us-gov-east-1.amazonaws.com",tags:[]}],signingRegion:"us-gov-east-1"},"us-gov-west-1":{variants:[{hostname:"portal.sso.us-gov-west-1.amazonaws.com",tags:[]}],signingRegion:"us-gov-west-1"},"us-west-2":{variants:[{hostname:"portal.sso.us-west-2.amazonaws.com",tags:[]}],signingRegion:"us-west-2"}},wVe={aws:{regions:["af-south-1","ap-east-1","ap-northeast-1","ap-northeast-2","ap-northeast-3","ap-south-1","ap-southeast-1","ap-southeast-2","ap-southeast-3","ca-central-1","eu-central-1","eu-north-1","eu-south-1","eu-west-1","eu-west-2","eu-west-3","me-south-1","sa-east-1","us-east-1","us-east-2","us-west-1","us-west-2"],regionRegex:"^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",variants:[{hostname:"portal.sso.{region}.amazonaws.com",tags:[]},{hostname:"portal.sso-fips.{region}.amazonaws.com",tags:["fips"]},{hostname:"portal.sso-fips.{region}.api.aws",tags:["dualstack","fips"]},{hostname:"portal.sso.{region}.api.aws",tags:["dualstack"]}]},"aws-cn":{regions:["cn-north-1","cn-northwest-1"],regionRegex:"^cn\\-\\w+\\-\\d+$",variants:[{hostname:"portal.sso.{region}.amazonaws.com.cn",tags:[]},{hostname:"portal.sso-fips.{region}.amazonaws.com.cn",tags:["fips"]},{hostname:"portal.sso-fips.{region}.api.amazonwebservices.com.cn",tags:["dualstack","fips"]},{hostname:"portal.sso.{region}.api.amazonwebservices.com.cn",tags:["dualstack"]}]},"aws-iso":{regions:["us-iso-east-1","us-iso-west-1"],regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",variants:[{hostname:"portal.sso.{region}.c2s.ic.gov",tags:[]},{hostname:"portal.sso-fips.{region}.c2s.ic.gov",tags:["fips"]}]},"aws-iso-b":{regions:["us-isob-east-1"],regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",variants:[{hostname:"portal.sso.{region}.sc2s.sgov.gov",tags:[]},{hostname:"portal.sso-fips.{region}.sc2s.sgov.gov",tags:["fips"]}]},"aws-us-gov":{regions:["us-gov-east-1","us-gov-west-1"],regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",variants:[{hostname:"portal.sso.{region}.amazonaws.com",tags:[]},{hostname:"portal.sso-fips.{region}.amazonaws.com",tags:["fips"]},{hostname:"portal.sso-fips.{region}.api.aws",tags:["dualstack","fips"]},{hostname:"portal.sso.{region}.api.aws",tags:["dualstack"]}]}},yVe=async(e,t)=>(0,gVe.getRegionInfo)(e,S(o({},t),{signingService:"awsssoportal",regionHash:hVe,partitionHash:wVe}));L_.defaultRegionInfoProvider=yVe});var V4=m(D_=>{"use strict";Object.defineProperty(D_,"__esModule",{value:!0});D_.getRuntimeConfig=void 0;var SVe=jr(),_Ve=G4(),vVe=e=>{var t,n,r,i,s;return{apiVersion:"2019-06-10",disableHostPrefix:(t=e==null?void 0:e.disableHostPrefix)!==null&&t!==void 0?t:!1,logger:(n=e==null?void 0:e.logger)!==null&&n!==void 0?n:{},regionInfoProvider:(r=e==null?void 0:e.regionInfoProvider)!==null&&r!==void 0?r:_Ve.defaultRegionInfoProvider,serviceId:(i=e==null?void 0:e.serviceId)!==null&&i!==void 0?i:"SSO",urlParser:(s=e==null?void 0:e.urlParser)!==null&&s!==void 0?s:SVe.parseUrl}};D_.getRuntimeConfig=vVe});var X4=m(B_=>{"use strict";Object.defineProperty(B_,"__esModule",{value:!0});B_.getRuntimeConfig=void 0;var CVe=oe(),EVe=CVe.__importDefault(U4()),M_=Jt(),AVe=Ws(),zz=Mn(),Wu=lr(),$4=Qs(),H4=Ys(),xVe=Zs(),bVe=eo(),J4=to(),RVe=V4(),TVe=R(),IVe=ro(),NVe=e=>{var t,n,r,i,s,d,a,c,l,u,w,E,T,I;let N=(0,IVe.resolveDefaultsModeConfig)(e),F=()=>N().then(TVe.loadConfigsForDefaultMode),J=(0,RVe.getRuntimeConfig)(e);return S(o(o({},J),e),{runtime:"node",defaultsMode:N,base64Decoder:(t=e==null?void 0:e.base64Decoder)!==null&&t!==void 0?t:H4.fromBase64,base64Encoder:(n=e==null?void 0:e.base64Encoder)!==null&&n!==void 0?n:H4.toBase64,bodyLengthChecker:(r=e==null?void 0:e.bodyLengthChecker)!==null&&r!==void 0?r:xVe.calculateBodyLength,defaultUserAgentProvider:(i=e==null?void 0:e.defaultUserAgentProvider)!==null&&i!==void 0?i:(0,bVe.defaultUserAgent)({serviceId:J.serviceId,clientVersion:EVe.default.version}),maxAttempts:(s=e==null?void 0:e.maxAttempts)!==null&&s!==void 0?s:(0,Wu.loadConfig)(zz.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(d=e==null?void 0:e.region)!==null&&d!==void 0?d:(0,Wu.loadConfig)(M_.NODE_REGION_CONFIG_OPTIONS,M_.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(a=e==null?void 0:e.requestHandler)!==null&&a!==void 0?a:new $4.NodeHttpHandler(F),retryMode:(c=e==null?void 0:e.retryMode)!==null&&c!==void 0?c:(0,Wu.loadConfig)(S(o({},zz.NODE_RETRY_MODE_CONFIG_OPTIONS),{default:async()=>(await F()).retryMode||zz.DEFAULT_RETRY_MODE})),sha256:(l=e==null?void 0:e.sha256)!==null&&l!==void 0?l:AVe.Hash.bind(null,"sha256"),streamCollector:(u=e==null?void 0:e.streamCollector)!==null&&u!==void 0?u:$4.streamCollector,useDualstackEndpoint:(w=e==null?void 0:e.useDualstackEndpoint)!==null&&w!==void 0?w:(0,Wu.loadConfig)(M_.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(E=e==null?void 0:e.useFipsEndpoint)!==null&&E!==void 0?E:(0,Wu.loadConfig)(M_.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:(T=e==null?void 0:e.utf8Decoder)!==null&&T!==void 0?T:J4.fromUtf8,utf8Encoder:(I=e==null?void 0:e.utf8Encoder)!==null&&I!==void 0?I:J4.toUtf8})};B_.getRuntimeConfig=NVe});var Qu=m(O_=>{"use strict";Object.defineProperty(O_,"__esModule",{value:!0});O_.SSOClient=void 0;var K4=Jt(),PVe=Ds(),W4=Ms(),kVe=Bs(),Q4=Mn(),Y4=Us(),zVe=R(),qVe=X4(),qz=class extends zVe.Client{constructor(t){let n=(0,qVe.getRuntimeConfig)(t),r=(0,K4.resolveRegionConfig)(n),i=(0,K4.resolveEndpointsConfig)(r),s=(0,Q4.resolveRetryConfig)(i),d=(0,W4.resolveHostHeaderConfig)(s),a=(0,Y4.resolveUserAgentConfig)(d);super(a),this.config=a,this.middlewareStack.use((0,Q4.getRetryPlugin)(this.config)),this.middlewareStack.use((0,PVe.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,W4.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,kVe.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,Y4.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};O_.SSOClient=qz});var j_=m(F_=>{"use strict";Object.defineProperty(F_,"__esModule",{value:!0});F_.SSO=void 0;var LVe=Tz(),DVe=P_(),MVe=z_(),BVe=kz(),OVe=Qu(),Lz=class extends OVe.SSOClient{getRoleCredentials(t,n,r){let i=new LVe.GetRoleCredentialsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listAccountRoles(t,n,r){let i=new DVe.ListAccountRolesCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listAccounts(t,n,r){let i=new MVe.ListAccountsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}logout(t,n,r){let i=new BVe.LogoutCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}};F_.SSO=Lz});var Z4=m(Cd=>{"use strict";Object.defineProperty(Cd,"__esModule",{value:!0});var U_=oe();U_.__exportStar(Tz(),Cd);U_.__exportStar(P_(),Cd);U_.__exportStar(z_(),Cd);U_.__exportStar(kz(),Cd)});var e9=m(Dz=>{"use strict";Object.defineProperty(Dz,"__esModule",{value:!0});var FVe=oe();FVe.__exportStar(pa(),Dz)});var n9=m(t9=>{"use strict";Object.defineProperty(t9,"__esModule",{value:!0})});var r9=m(G_=>{"use strict";Object.defineProperty(G_,"__esModule",{value:!0});G_.paginateListAccountRoles=void 0;var jVe=P_(),UVe=j_(),GVe=Qu(),VVe=async(e,t,...n)=>await e.send(new jVe.ListAccountRolesCommand(t),...n),$Ve=async(e,t,...n)=>await e.listAccountRoles(t,...n);async function*HVe(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.nextToken=r,t.maxResults=e.pageSize,e.client instanceof UVe.SSO)s=await $Ve(e.client,t,...n);else if(e.client instanceof GVe.SSOClient)s=await VVe(e.client,t,...n);else throw new Error("Invalid client, expected SSO | SSOClient");yield s;let d=r;r=s.nextToken,i=!!(r&&(!e.stopOnSameToken||r!==d))}return void 0}G_.paginateListAccountRoles=HVe});var i9=m(V_=>{"use strict";Object.defineProperty(V_,"__esModule",{value:!0});V_.paginateListAccounts=void 0;var JVe=z_(),XVe=j_(),KVe=Qu(),WVe=async(e,t,...n)=>await e.send(new JVe.ListAccountsCommand(t),...n),QVe=async(e,t,...n)=>await e.listAccounts(t,...n);async function*YVe(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.nextToken=r,t.maxResults=e.pageSize,e.client instanceof XVe.SSO)s=await QVe(e.client,t,...n);else if(e.client instanceof KVe.SSOClient)s=await WVe(e.client,t,...n);else throw new Error("Invalid client, expected SSO | SSOClient");yield s;let d=r;r=s.nextToken,i=!!(r&&(!e.stopOnSameToken||r!==d))}return void 0}V_.paginateListAccounts=YVe});var s9=m(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});var Mz=oe();Mz.__exportStar(n9(),Yu);Mz.__exportStar(r9(),Yu);Mz.__exportStar(i9(),Yu)});var o9=m(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.SSOServiceException=void 0;var Zu=oe();Zu.__exportStar(j_(),rs);Zu.__exportStar(Qu(),rs);Zu.__exportStar(Z4(),rs);Zu.__exportStar(e9(),rs);Zu.__exportStar(s9(),rs);var ZVe=S_();Object.defineProperty(rs,"SSOServiceException",{enumerable:!0,get:function(){return ZVe.SSOServiceException}})});var d9=m(J_=>{"use strict";Object.defineProperty(J_,"__esModule",{value:!0});J_.resolveSSOCredentials=void 0;var a9=o9(),$_=vt(),e2e=h_(),t2e=15*60*1e3,H_=!1,n2e=async({ssoStartUrl:e,ssoAccountId:t,ssoRegion:n,ssoRoleName:r,ssoClient:i})=>{let s,d="To refresh this SSO session run aws sso login with the corresponding profile.";try{s=await(0,e2e.getSSOTokenFromFile)(e)}catch{throw new $_.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${d}`,H_)}if(new Date(s.expiresAt).getTime()-Date.now()<=t2e)throw new $_.CredentialsProviderError(`The SSO session associated with this profile has expired. ${d}`,H_);let{accessToken:a}=s,c=i||new a9.SSOClient({region:n}),l;try{l=await c.send(new a9.GetRoleCredentialsCommand({accountId:t,roleName:r,accessToken:a}))}catch(I){throw $_.CredentialsProviderError.from(I,H_)}let{roleCredentials:{accessKeyId:u,secretAccessKey:w,sessionToken:E,expiration:T}={}}=l;if(!u||!w||!E||!T)throw new $_.CredentialsProviderError("SSO returns an invalid temporary credential.",H_);return{accessKeyId:u,secretAccessKey:w,sessionToken:E,expiration:new Date(T)}};J_.resolveSSOCredentials=n2e});var Bz=m(X_=>{"use strict";Object.defineProperty(X_,"__esModule",{value:!0});X_.validateSsoProfile=void 0;var r2e=vt(),i2e=e=>{let{sso_start_url:t,sso_account_id:n,sso_region:r,sso_role_name:i}=e;if(!t||!n||!r||!i)throw new r2e.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(e).join(", ")}
|
|
29
|
-
Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,!1);return e};X_.validateSsoProfile=i2e});var m9=m(K_=>{"use strict";Object.defineProperty(K_,"__esModule",{value:!0});K_.fromSSO=void 0;var c9=vt(),l9=h_(),s2e=xz(),u9=d9(),o2e=Bz(),a2e=(e={})=>async()=>{let{ssoStartUrl:t,ssoAccountId:n,ssoRegion:r,ssoRoleName:i,ssoClient:s}=e;if(!t&&!n&&!r&&!i){let d=await(0,l9.parseKnownFiles)(e),a=(0,l9.getProfileName)(e),c=d[a];if(!(0,s2e.isSsoProfile)(c))throw new c9.CredentialsProviderError(`Profile ${a} is not configured with SSO credentials.`);let{sso_start_url:l,sso_account_id:u,sso_region:w,sso_role_name:E}=(0,o2e.validateSsoProfile)(c);return(0,u9.resolveSSOCredentials)({ssoStartUrl:l,ssoAccountId:u,ssoRegion:w,ssoRoleName:E,ssoClient:s})}else{if(!t||!n||!r||!i)throw new c9.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"');return(0,u9.resolveSSOCredentials)({ssoStartUrl:t,ssoAccountId:n,ssoRegion:r,ssoRoleName:i,ssoClient:s})}};K_.fromSSO=a2e});var p9=m(f9=>{"use strict";Object.defineProperty(f9,"__esModule",{value:!0})});var g9=m(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0});var W_=oe();W_.__exportStar(m9(),Ed);W_.__exportStar(xz(),Ed);W_.__exportStar(p9(),Ed);W_.__exportStar(Bz(),Ed)});var Y_=m(Q_=>{"use strict";Object.defineProperty(Q_,"__esModule",{value:!0});Q_.httpRequest=void 0;var Oz=vt(),d2e=require("buffer"),c2e=require("http");function l2e(e){return new Promise((t,n)=>{var r;let i=(0,c2e.request)(S(o({method:"GET"},e),{hostname:(r=e.hostname)===null||r===void 0?void 0:r.replace(/^\[(.+)\]$/,"$1")}));i.on("error",s=>{n(Object.assign(new Oz.ProviderError("Unable to connect to instance metadata service"),s)),i.destroy()}),i.on("timeout",()=>{n(new Oz.ProviderError("TimeoutError from instance metadata service")),i.destroy()}),i.on("response",s=>{let{statusCode:d=400}=s;(d<200||300<=d)&&(n(Object.assign(new Oz.ProviderError("Error response received from instance metadata service"),{statusCode:d})),i.destroy());let a=[];s.on("data",c=>{a.push(c)}),s.on("end",()=>{t(d2e.Buffer.concat(a)),i.destroy()})}),i.end()})}Q_.httpRequest=l2e});var Fz=m(Ad=>{"use strict";Object.defineProperty(Ad,"__esModule",{value:!0});Ad.fromImdsCredentials=Ad.isImdsCredentials=void 0;var u2e=e=>Boolean(e)&&typeof e=="object"&&typeof e.AccessKeyId=="string"&&typeof e.SecretAccessKey=="string"&&typeof e.Token=="string"&&typeof e.Expiration=="string";Ad.isImdsCredentials=u2e;var m2e=e=>({accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:new Date(e.Expiration)});Ad.fromImdsCredentials=m2e});var Z_=m(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});Ai.providerConfigFromInit=Ai.DEFAULT_MAX_RETRIES=Ai.DEFAULT_TIMEOUT=void 0;Ai.DEFAULT_TIMEOUT=1e3;Ai.DEFAULT_MAX_RETRIES=0;var f2e=({maxRetries:e=Ai.DEFAULT_MAX_RETRIES,timeout:t=Ai.DEFAULT_TIMEOUT})=>({maxRetries:e,timeout:t});Ai.providerConfigFromInit=f2e});var jz=m(ev=>{"use strict";Object.defineProperty(ev,"__esModule",{value:!0});ev.retry=void 0;var p2e=(e,t)=>{let n=e();for(let r=0;r<t;r++)n=n.catch(e);return n};ev.retry=p2e});var w9=m(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.fromContainerMetadata=_n.ENV_CMDS_AUTH_TOKEN=_n.ENV_CMDS_RELATIVE_URI=_n.ENV_CMDS_FULL_URI=void 0;var tv=vt(),g2e=require("url"),h2e=Y_(),h9=Fz(),w2e=Z_(),y2e=jz();_n.ENV_CMDS_FULL_URI="AWS_CONTAINER_CREDENTIALS_FULL_URI";_n.ENV_CMDS_RELATIVE_URI="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";_n.ENV_CMDS_AUTH_TOKEN="AWS_CONTAINER_AUTHORIZATION_TOKEN";var S2e=(e={})=>{let{timeout:t,maxRetries:n}=(0,w2e.providerConfigFromInit)(e);return()=>(0,y2e.retry)(async()=>{let r=await A2e(),i=JSON.parse(await _2e(t,r));if(!(0,h9.isImdsCredentials)(i))throw new tv.CredentialsProviderError("Invalid response received from instance metadata service.");return(0,h9.fromImdsCredentials)(i)},n)};_n.fromContainerMetadata=S2e;var _2e=async(e,t)=>(process.env[_n.ENV_CMDS_AUTH_TOKEN]&&(t.headers=S(o({},t.headers),{Authorization:process.env[_n.ENV_CMDS_AUTH_TOKEN]})),(await(0,h2e.httpRequest)(S(o({},t),{timeout:e}))).toString()),v2e="169.254.170.2",C2e={localhost:!0,"127.0.0.1":!0},E2e={"http:":!0,"https:":!0},A2e=async()=>{if(process.env[_n.ENV_CMDS_RELATIVE_URI])return{hostname:v2e,path:process.env[_n.ENV_CMDS_RELATIVE_URI]};if(process.env[_n.ENV_CMDS_FULL_URI]){let e=(0,g2e.parse)(process.env[_n.ENV_CMDS_FULL_URI]);if(!e.hostname||!(e.hostname in C2e))throw new tv.CredentialsProviderError(`${e.hostname} is not a valid container metadata service hostname`,!1);if(!e.protocol||!(e.protocol in E2e))throw new tv.CredentialsProviderError(`${e.protocol} is not a valid container metadata service protocol`,!1);return S(o({},e),{port:e.port?parseInt(e.port,10):void 0})}throw new tv.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${_n.ENV_CMDS_RELATIVE_URI} or ${_n.ENV_CMDS_FULL_URI} environment variable is set`,!1)}});var y9=m(em=>{"use strict";Object.defineProperty(em,"__esModule",{value:!0});em.Endpoint=void 0;var x2e;(function(e){e.IPv4="http://169.254.169.254",e.IPv6="http://[fd00:ec2::254]"})(x2e=em.Endpoint||(em.Endpoint={}))});var S9=m(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});xi.ENDPOINT_CONFIG_OPTIONS=xi.CONFIG_ENDPOINT_NAME=xi.ENV_ENDPOINT_NAME=void 0;xi.ENV_ENDPOINT_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT";xi.CONFIG_ENDPOINT_NAME="ec2_metadata_service_endpoint";xi.ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>e[xi.ENV_ENDPOINT_NAME],configFileSelector:e=>e[xi.CONFIG_ENDPOINT_NAME],default:void 0}});var Uz=m(tm=>{"use strict";Object.defineProperty(tm,"__esModule",{value:!0});tm.EndpointMode=void 0;var b2e;(function(e){e.IPv4="IPv4",e.IPv6="IPv6"})(b2e=tm.EndpointMode||(tm.EndpointMode={}))});var _9=m(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});bi.ENDPOINT_MODE_CONFIG_OPTIONS=bi.CONFIG_ENDPOINT_MODE_NAME=bi.ENV_ENDPOINT_MODE_NAME=void 0;var R2e=Uz();bi.ENV_ENDPOINT_MODE_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";bi.CONFIG_ENDPOINT_MODE_NAME="ec2_metadata_service_endpoint_mode";bi.ENDPOINT_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[bi.ENV_ENDPOINT_MODE_NAME],configFileSelector:e=>e[bi.CONFIG_ENDPOINT_MODE_NAME],default:R2e.EndpointMode.IPv4}});var Vz=m(nv=>{"use strict";Object.defineProperty(nv,"__esModule",{value:!0});nv.getInstanceMetadataEndpoint=void 0;var C9=lr(),T2e=jr(),v9=y9(),I2e=S9(),Gz=Uz(),N2e=_9(),P2e=async()=>(0,T2e.parseUrl)(await k2e()||await z2e());nv.getInstanceMetadataEndpoint=P2e;var k2e=async()=>(0,C9.loadConfig)(I2e.ENDPOINT_CONFIG_OPTIONS)(),z2e=async()=>{let e=await(0,C9.loadConfig)(N2e.ENDPOINT_MODE_CONFIG_OPTIONS)();switch(e){case Gz.EndpointMode.IPv4:return v9.Endpoint.IPv4;case Gz.EndpointMode.IPv6:return v9.Endpoint.IPv6;default:throw new Error(`Unsupported endpoint mode: ${e}. Select from ${Object.values(Gz.EndpointMode)}`)}}});var E9=m(rv=>{"use strict";Object.defineProperty(rv,"__esModule",{value:!0});rv.getExtendedInstanceMetadataCredentials=void 0;var q2e=5*60,L2e=5*60,D2e="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",M2e=(e,t)=>{var n;let r=q2e+Math.floor(Math.random()*L2e),i=new Date(Date.now()+r*1e3);t.warn("Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(newExpiration)}.\nFor more information, please visit: "+D2e);let s=(n=e.originalExpiration)!==null&&n!==void 0?n:e.expiration;return S(o(o({},e),s?{originalExpiration:s}:{}),{expiration:i})};rv.getExtendedInstanceMetadataCredentials=M2e});var x9=m(iv=>{"use strict";Object.defineProperty(iv,"__esModule",{value:!0});iv.staticStabilityProvider=void 0;var A9=E9(),B2e=(e,t={})=>{let n=(t==null?void 0:t.logger)||console,r;return async()=>{let i;try{i=await e(),i.expiration&&i.expiration.getTime()<Date.now()&&(i=(0,A9.getExtendedInstanceMetadataCredentials)(i,n))}catch(s){if(r)n.warn("Credential renew failed: ",s),i=(0,A9.getExtendedInstanceMetadataCredentials)(r,n);else throw s}return r=i,i}};iv.staticStabilityProvider=B2e});var I9=m(sv=>{"use strict";Object.defineProperty(sv,"__esModule",{value:!0});sv.fromInstanceMetadata=void 0;var O2e=vt(),$z=Y_(),b9=Fz(),F2e=Z_(),R9=jz(),j2e=Vz(),U2e=x9(),T9="/latest/meta-data/iam/security-credentials/",G2e="/latest/api/token",V2e=(e={})=>(0,U2e.staticStabilityProvider)($2e(e),{logger:e.logger});sv.fromInstanceMetadata=V2e;var $2e=e=>{let t=!1,{timeout:n,maxRetries:r}=(0,F2e.providerConfigFromInit)(e),i=async(s,d)=>{let a=(await(0,R9.retry)(async()=>{let c;try{c=await J2e(d)}catch(l){throw l.statusCode===401&&(t=!1),l}return c},s)).trim();return(0,R9.retry)(async()=>{let c;try{c=await X2e(a,d)}catch(l){throw l.statusCode===401&&(t=!1),l}return c},s)};return async()=>{let s=await(0,j2e.getInstanceMetadataEndpoint)();if(t)return i(r,S(o({},s),{timeout:n}));{let d;try{d=(await H2e(S(o({},s),{timeout:n}))).toString()}catch(a){if((a==null?void 0:a.statusCode)===400)throw Object.assign(a,{message:"EC2 Metadata token request returned error"});return(a.message==="TimeoutError"||[403,404,405].includes(a.statusCode))&&(t=!0),i(r,S(o({},s),{timeout:n}))}return i(r,S(o({},s),{headers:{"x-aws-ec2-metadata-token":d},timeout:n}))}}},H2e=async e=>(0,$z.httpRequest)(S(o({},e),{path:G2e,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}})),J2e=async e=>(await(0,$z.httpRequest)(S(o({},e),{path:T9}))).toString(),X2e=async(e,t)=>{let n=JSON.parse((await(0,$z.httpRequest)(S(o({},t),{path:T9+e}))).toString());if(!(0,b9.isImdsCredentials)(n))throw new O2e.CredentialsProviderError("Invalid response received from instance metadata service.");return(0,b9.fromImdsCredentials)(n)}});var P9=m(N9=>{"use strict";Object.defineProperty(N9,"__esModule",{value:!0})});var k9=m(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});Ri.getInstanceMetadataEndpoint=Ri.httpRequest=void 0;var ov=oe();ov.__exportStar(w9(),Ri);ov.__exportStar(I9(),Ri);ov.__exportStar(Z_(),Ri);ov.__exportStar(P9(),Ri);var K2e=Y_();Object.defineProperty(Ri,"httpRequest",{enumerable:!0,get:function(){return K2e.httpRequest}});var W2e=Vz();Object.defineProperty(Ri,"getInstanceMetadataEndpoint",{enumerable:!0,get:function(){return W2e.getInstanceMetadataEndpoint}})});var z9=m(ha=>{"use strict";Object.defineProperty(ha,"__esModule",{value:!0});ha.remoteProvider=ha.ENV_IMDS_DISABLED=void 0;var av=k9(),Q2e=vt();ha.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";var Y2e=e=>process.env[av.ENV_CMDS_RELATIVE_URI]||process.env[av.ENV_CMDS_FULL_URI]?(0,av.fromContainerMetadata)(e):process.env[ha.ENV_IMDS_DISABLED]?async()=>{throw new Q2e.CredentialsProviderError("EC2 Instance Metadata Service access disabled")}:(0,av.fromInstanceMetadata)(e);ha.remoteProvider=Y2e});var q9=m(dv=>{"use strict";Object.defineProperty(dv,"__esModule",{value:!0});dv.defaultProvider=void 0;var Z2e=f1(),e$e=Y6(),t$e=y4(),n$e=g9(),r$e=gz(),Hz=vt(),i$e=h_(),s$e=z9(),o$e=(e={})=>(0,Hz.memoize)((0,Hz.chain)(...e.profile||process.env[i$e.ENV_PROFILE]?[]:[(0,Z2e.fromEnv)()],(0,n$e.fromSSO)(e),(0,e$e.fromIni)(e),(0,t$e.fromProcess)(e),(0,r$e.fromTokenFile)(e),(0,s$e.remoteProvider)(e),async()=>{throw new Hz.CredentialsProviderError("Could not load credentials from any providers",!1)}),t=>t.expiration!==void 0&&t.expiration.getTime()-Date.now()<3e5,t=>t.expiration!==void 0);dv.defaultProvider=o$e});var xd=m(Jz=>{"use strict";Object.defineProperty(Jz,"__esModule",{value:!0});var a$e=oe();a$e.__exportStar(q9(),Jz)});var L9=m(cv=>{"use strict";Object.defineProperty(cv,"__esModule",{value:!0});cv.defaultRegionInfoProvider=void 0;var d$e=Jt(),c$e={"aws-global":{variants:[{hostname:"sts.amazonaws.com",tags:[]}],signingRegion:"us-east-1"},"us-east-1":{variants:[{hostname:"sts-fips.us-east-1.amazonaws.com",tags:["fips"]}]},"us-east-2":{variants:[{hostname:"sts-fips.us-east-2.amazonaws.com",tags:["fips"]}]},"us-gov-east-1":{variants:[{hostname:"sts.us-gov-east-1.amazonaws.com",tags:["fips"]}]},"us-gov-west-1":{variants:[{hostname:"sts.us-gov-west-1.amazonaws.com",tags:["fips"]}]},"us-west-1":{variants:[{hostname:"sts-fips.us-west-1.amazonaws.com",tags:["fips"]}]},"us-west-2":{variants:[{hostname:"sts-fips.us-west-2.amazonaws.com",tags:["fips"]}]}},l$e={aws:{regions:["af-south-1","ap-east-1","ap-northeast-1","ap-northeast-2","ap-northeast-3","ap-south-1","ap-southeast-1","ap-southeast-2","ap-southeast-3","aws-global","ca-central-1","eu-central-1","eu-north-1","eu-south-1","eu-west-1","eu-west-2","eu-west-3","me-south-1","sa-east-1","us-east-1","us-east-1-fips","us-east-2","us-east-2-fips","us-west-1","us-west-1-fips","us-west-2","us-west-2-fips"],regionRegex:"^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",variants:[{hostname:"sts.{region}.amazonaws.com",tags:[]},{hostname:"sts-fips.{region}.amazonaws.com",tags:["fips"]},{hostname:"sts-fips.{region}.api.aws",tags:["dualstack","fips"]},{hostname:"sts.{region}.api.aws",tags:["dualstack"]}]},"aws-cn":{regions:["cn-north-1","cn-northwest-1"],regionRegex:"^cn\\-\\w+\\-\\d+$",variants:[{hostname:"sts.{region}.amazonaws.com.cn",tags:[]},{hostname:"sts-fips.{region}.amazonaws.com.cn",tags:["fips"]},{hostname:"sts-fips.{region}.api.amazonwebservices.com.cn",tags:["dualstack","fips"]},{hostname:"sts.{region}.api.amazonwebservices.com.cn",tags:["dualstack"]}]},"aws-iso":{regions:["us-iso-east-1","us-iso-west-1"],regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",variants:[{hostname:"sts.{region}.c2s.ic.gov",tags:[]},{hostname:"sts-fips.{region}.c2s.ic.gov",tags:["fips"]}]},"aws-iso-b":{regions:["us-isob-east-1"],regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",variants:[{hostname:"sts.{region}.sc2s.sgov.gov",tags:[]},{hostname:"sts-fips.{region}.sc2s.sgov.gov",tags:["fips"]}]},"aws-us-gov":{regions:["us-gov-east-1","us-gov-east-1-fips","us-gov-west-1","us-gov-west-1-fips"],regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",variants:[{hostname:"sts.{region}.amazonaws.com",tags:[]},{hostname:"sts.{region}.amazonaws.com",tags:["fips"]},{hostname:"sts-fips.{region}.api.aws",tags:["dualstack","fips"]},{hostname:"sts.{region}.api.aws",tags:["dualstack"]}]}},u$e=async(e,t)=>(0,d$e.getRegionInfo)(e,S(o({},t),{signingService:"sts",regionHash:c$e,partitionHash:l$e}));cv.defaultRegionInfoProvider=u$e});var D9=m(lv=>{"use strict";Object.defineProperty(lv,"__esModule",{value:!0});lv.getRuntimeConfig=void 0;var m$e=jr(),f$e=L9(),p$e=e=>{var t,n,r,i,s;return{apiVersion:"2011-06-15",disableHostPrefix:(t=e==null?void 0:e.disableHostPrefix)!==null&&t!==void 0?t:!1,logger:(n=e==null?void 0:e.logger)!==null&&n!==void 0?n:{},regionInfoProvider:(r=e==null?void 0:e.regionInfoProvider)!==null&&r!==void 0?r:f$e.defaultRegionInfoProvider,serviceId:(i=e==null?void 0:e.serviceId)!==null&&i!==void 0?i:"STS",urlParser:(s=e==null?void 0:e.urlParser)!==null&&s!==void 0?s:m$e.parseUrl}};lv.getRuntimeConfig=p$e});var F9=m(mv=>{"use strict";Object.defineProperty(mv,"__esModule",{value:!0});mv.getRuntimeConfig=void 0;var g$e=oe(),h$e=g$e.__importDefault(f8()),w$e=u1(),uv=Jt(),y$e=xd(),S$e=Ws(),Xz=Mn(),nm=lr(),M9=Qs(),B9=Ys(),_$e=Zs(),v$e=eo(),O9=to(),C$e=D9(),E$e=R(),A$e=ro(),x$e=e=>{var t,n,r,i,s,d,a,c,l,u,w,E,T,I,N;let F=(0,A$e.resolveDefaultsModeConfig)(e),J=()=>F().then(E$e.loadConfigsForDefaultMode),G=(0,C$e.getRuntimeConfig)(e);return S(o(o({},G),e),{runtime:"node",defaultsMode:F,base64Decoder:(t=e==null?void 0:e.base64Decoder)!==null&&t!==void 0?t:B9.fromBase64,base64Encoder:(n=e==null?void 0:e.base64Encoder)!==null&&n!==void 0?n:B9.toBase64,bodyLengthChecker:(r=e==null?void 0:e.bodyLengthChecker)!==null&&r!==void 0?r:_$e.calculateBodyLength,credentialDefaultProvider:(i=e==null?void 0:e.credentialDefaultProvider)!==null&&i!==void 0?i:(0,w$e.decorateDefaultCredentialProvider)(y$e.defaultProvider),defaultUserAgentProvider:(s=e==null?void 0:e.defaultUserAgentProvider)!==null&&s!==void 0?s:(0,v$e.defaultUserAgent)({serviceId:G.serviceId,clientVersion:h$e.default.version}),maxAttempts:(d=e==null?void 0:e.maxAttempts)!==null&&d!==void 0?d:(0,nm.loadConfig)(Xz.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(a=e==null?void 0:e.region)!==null&&a!==void 0?a:(0,nm.loadConfig)(uv.NODE_REGION_CONFIG_OPTIONS,uv.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(c=e==null?void 0:e.requestHandler)!==null&&c!==void 0?c:new M9.NodeHttpHandler(J),retryMode:(l=e==null?void 0:e.retryMode)!==null&&l!==void 0?l:(0,nm.loadConfig)(S(o({},Xz.NODE_RETRY_MODE_CONFIG_OPTIONS),{default:async()=>(await J()).retryMode||Xz.DEFAULT_RETRY_MODE})),sha256:(u=e==null?void 0:e.sha256)!==null&&u!==void 0?u:S$e.Hash.bind(null,"sha256"),streamCollector:(w=e==null?void 0:e.streamCollector)!==null&&w!==void 0?w:M9.streamCollector,useDualstackEndpoint:(E=e==null?void 0:e.useDualstackEndpoint)!==null&&E!==void 0?E:(0,nm.loadConfig)(uv.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(T=e==null?void 0:e.useFipsEndpoint)!==null&&T!==void 0?T:(0,nm.loadConfig)(uv.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:(I=e==null?void 0:e.utf8Decoder)!==null&&I!==void 0?I:O9.fromUtf8,utf8Encoder:(N=e==null?void 0:e.utf8Encoder)!==null&&N!==void 0?N:O9.toUtf8})};mv.getRuntimeConfig=x$e});var pv=m(fv=>{"use strict";Object.defineProperty(fv,"__esModule",{value:!0});fv.STSClient=void 0;var j9=Jt(),b$e=Ds(),U9=Ms(),R$e=Bs(),G9=Mn(),T$e=m8(),V9=Us(),I$e=R(),N$e=F9(),rm=class extends I$e.Client{constructor(t){let n=(0,N$e.getRuntimeConfig)(t),r=(0,j9.resolveRegionConfig)(n),i=(0,j9.resolveEndpointsConfig)(r),s=(0,G9.resolveRetryConfig)(i),d=(0,U9.resolveHostHeaderConfig)(s),a=(0,T$e.resolveStsAuthConfig)(d,{stsClientCtor:rm}),c=(0,V9.resolveUserAgentConfig)(a);super(c),this.config=c,this.middlewareStack.use((0,G9.getRetryPlugin)(this.config)),this.middlewareStack.use((0,b$e.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,U9.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,R$e.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,V9.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};fv.STSClient=rm});var $9=m(gv=>{"use strict";Object.defineProperty(gv,"__esModule",{value:!0});gv.STS=void 0;var P$e=Ww(),k$e=Zk(),z$e=Zw(),q$e=n1(),L$e=i1(),D$e=o1(),M$e=d1(),B$e=l1(),O$e=pv(),Kz=class extends O$e.STSClient{assumeRole(t,n,r){let i=new P$e.AssumeRoleCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}assumeRoleWithSAML(t,n,r){let i=new k$e.AssumeRoleWithSAMLCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}assumeRoleWithWebIdentity(t,n,r){let i=new z$e.AssumeRoleWithWebIdentityCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}decodeAuthorizationMessage(t,n,r){let i=new q$e.DecodeAuthorizationMessageCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}getAccessKeyInfo(t,n,r){let i=new L$e.GetAccessKeyInfoCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}getCallerIdentity(t,n,r){let i=new D$e.GetCallerIdentityCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}getFederationToken(t,n,r){let i=new M$e.GetFederationTokenCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}getSessionToken(t,n,r){let i=new B$e.GetSessionTokenCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}};gv.STS=Kz});var H9=m(Ti=>{"use strict";Object.defineProperty(Ti,"__esModule",{value:!0});var io=oe();io.__exportStar(Ww(),Ti);io.__exportStar(Zk(),Ti);io.__exportStar(Zw(),Ti);io.__exportStar(n1(),Ti);io.__exportStar(i1(),Ti);io.__exportStar(o1(),Ti);io.__exportStar(d1(),Ti);io.__exportStar(l1(),Ti)});var K9=m(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});Ii.decorateDefaultCredentialProvider=Ii.getDefaultRoleAssumerWithWebIdentity=Ii.getDefaultRoleAssumer=void 0;var J9=u1(),X9=pv(),F$e=(e={})=>(0,J9.getDefaultRoleAssumer)(e,X9.STSClient);Ii.getDefaultRoleAssumer=F$e;var j$e=(e={})=>(0,J9.getDefaultRoleAssumerWithWebIdentity)(e,X9.STSClient);Ii.getDefaultRoleAssumerWithWebIdentity=j$e;var U$e=e=>t=>e(o({roleAssumer:(0,Ii.getDefaultRoleAssumer)(t),roleAssumerWithWebIdentity:(0,Ii.getDefaultRoleAssumerWithWebIdentity)(t)},t));Ii.decorateDefaultCredentialProvider=U$e});var W9=m(Wz=>{"use strict";Object.defineProperty(Wz,"__esModule",{value:!0});var G$e=oe();G$e.__exportStar(Mr(),Wz)});var bd=m(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.STSServiceException=void 0;var im=oe();im.__exportStar($9(),is);im.__exportStar(pv(),is);im.__exportStar(H9(),is);im.__exportStar(K9(),is);im.__exportStar(W9(),is);var V$e=Dw();Object.defineProperty(is,"STSServiceException",{enumerable:!0,get:function(){return V$e.STSServiceException}})});var Q9=m(hv=>{"use strict";Object.defineProperty(hv,"__esModule",{value:!0});hv.defaultRegionInfoProvider=void 0;var $$e=Jt(),H$e={"ca-central-1":{variants:[{hostname:"dynamodb-fips.ca-central-1.amazonaws.com",tags:["fips"]}]},local:{variants:[{hostname:"localhost:8000",tags:[]}],signingRegion:"us-east-1"},"us-east-1":{variants:[{hostname:"dynamodb-fips.us-east-1.amazonaws.com",tags:["fips"]}]},"us-east-2":{variants:[{hostname:"dynamodb-fips.us-east-2.amazonaws.com",tags:["fips"]}]},"us-gov-east-1":{variants:[{hostname:"dynamodb.us-gov-east-1.amazonaws.com",tags:["fips"]}]},"us-gov-west-1":{variants:[{hostname:"dynamodb.us-gov-west-1.amazonaws.com",tags:["fips"]}]},"us-west-1":{variants:[{hostname:"dynamodb-fips.us-west-1.amazonaws.com",tags:["fips"]}]},"us-west-2":{variants:[{hostname:"dynamodb-fips.us-west-2.amazonaws.com",tags:["fips"]}]}},J$e={aws:{regions:["af-south-1","ap-east-1","ap-northeast-1","ap-northeast-2","ap-northeast-3","ap-south-1","ap-southeast-1","ap-southeast-2","ap-southeast-3","ca-central-1","ca-central-1-fips","eu-central-1","eu-north-1","eu-south-1","eu-west-1","eu-west-2","eu-west-3","local","me-south-1","sa-east-1","us-east-1","us-east-1-fips","us-east-2","us-east-2-fips","us-west-1","us-west-1-fips","us-west-2","us-west-2-fips"],regionRegex:"^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",variants:[{hostname:"dynamodb.{region}.amazonaws.com",tags:[]},{hostname:"dynamodb-fips.{region}.amazonaws.com",tags:["fips"]},{hostname:"dynamodb-fips.{region}.api.aws",tags:["dualstack","fips"]},{hostname:"dynamodb.{region}.api.aws",tags:["dualstack"]}]},"aws-cn":{regions:["cn-north-1","cn-northwest-1"],regionRegex:"^cn\\-\\w+\\-\\d+$",variants:[{hostname:"dynamodb.{region}.amazonaws.com.cn",tags:[]},{hostname:"dynamodb-fips.{region}.amazonaws.com.cn",tags:["fips"]},{hostname:"dynamodb-fips.{region}.api.amazonwebservices.com.cn",tags:["dualstack","fips"]},{hostname:"dynamodb.{region}.api.amazonwebservices.com.cn",tags:["dualstack"]}]},"aws-iso":{regions:["us-iso-east-1","us-iso-west-1"],regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",variants:[{hostname:"dynamodb.{region}.c2s.ic.gov",tags:[]},{hostname:"dynamodb-fips.{region}.c2s.ic.gov",tags:["fips"]}]},"aws-iso-b":{regions:["us-isob-east-1"],regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",variants:[{hostname:"dynamodb.{region}.sc2s.sgov.gov",tags:[]},{hostname:"dynamodb-fips.{region}.sc2s.sgov.gov",tags:["fips"]}]},"aws-us-gov":{regions:["us-gov-east-1","us-gov-east-1-fips","us-gov-west-1","us-gov-west-1-fips"],regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",variants:[{hostname:"dynamodb.{region}.amazonaws.com",tags:[]},{hostname:"dynamodb.{region}.amazonaws.com",tags:["fips"]},{hostname:"dynamodb-fips.{region}.api.aws",tags:["dualstack","fips"]},{hostname:"dynamodb.{region}.api.aws",tags:["dualstack"]}]}},X$e=async(e,t)=>(0,$$e.getRegionInfo)(e,S(o({},t),{signingService:"dynamodb",regionHash:H$e,partitionHash:J$e}));hv.defaultRegionInfoProvider=X$e});var Y9=m(wv=>{"use strict";Object.defineProperty(wv,"__esModule",{value:!0});wv.getRuntimeConfig=void 0;var K$e=jr(),W$e=Q9(),Q$e=e=>{var t,n,r,i,s;return{apiVersion:"2012-08-10",disableHostPrefix:(t=e==null?void 0:e.disableHostPrefix)!==null&&t!==void 0?t:!1,logger:(n=e==null?void 0:e.logger)!==null&&n!==void 0?n:{},regionInfoProvider:(r=e==null?void 0:e.regionInfoProvider)!==null&&r!==void 0?r:W$e.defaultRegionInfoProvider,serviceId:(i=e==null?void 0:e.serviceId)!==null&&i!==void 0?i:"DynamoDB",urlParser:(s=e==null?void 0:e.urlParser)!==null&&s!==void 0?s:K$e.parseUrl}};wv.getRuntimeConfig=Q$e});var n7=m(Sv=>{"use strict";Object.defineProperty(Sv,"__esModule",{value:!0});Sv.getRuntimeConfig=void 0;var Y$e=oe(),Z$e=Y$e.__importDefault(ZK()),e3e=bd(),yv=Jt(),t3e=xd(),n3e=Ws(),r3e=ck(),Qz=Mn(),Rd=lr(),Z9=Qs(),e7=Ys(),i3e=Zs(),s3e=eo(),t7=to(),o3e=Y9(),a3e=R(),d3e=ro(),c3e=e=>{var t,n,r,i,s,d,a,c,l,u,w,E,T,I,N,F;let J=(0,d3e.resolveDefaultsModeConfig)(e),G=()=>J().then(a3e.loadConfigsForDefaultMode),ue=(0,o3e.getRuntimeConfig)(e);return S(o(o({},ue),e),{runtime:"node",defaultsMode:J,base64Decoder:(t=e==null?void 0:e.base64Decoder)!==null&&t!==void 0?t:e7.fromBase64,base64Encoder:(n=e==null?void 0:e.base64Encoder)!==null&&n!==void 0?n:e7.toBase64,bodyLengthChecker:(r=e==null?void 0:e.bodyLengthChecker)!==null&&r!==void 0?r:i3e.calculateBodyLength,credentialDefaultProvider:(i=e==null?void 0:e.credentialDefaultProvider)!==null&&i!==void 0?i:(0,e3e.decorateDefaultCredentialProvider)(t3e.defaultProvider),defaultUserAgentProvider:(s=e==null?void 0:e.defaultUserAgentProvider)!==null&&s!==void 0?s:(0,s3e.defaultUserAgent)({serviceId:ue.serviceId,clientVersion:Z$e.default.version}),endpointDiscoveryEnabledProvider:(d=e==null?void 0:e.endpointDiscoveryEnabledProvider)!==null&&d!==void 0?d:(0,Rd.loadConfig)(r3e.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS),maxAttempts:(a=e==null?void 0:e.maxAttempts)!==null&&a!==void 0?a:(0,Rd.loadConfig)(Qz.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(c=e==null?void 0:e.region)!==null&&c!==void 0?c:(0,Rd.loadConfig)(yv.NODE_REGION_CONFIG_OPTIONS,yv.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(l=e==null?void 0:e.requestHandler)!==null&&l!==void 0?l:new Z9.NodeHttpHandler(G),retryMode:(u=e==null?void 0:e.retryMode)!==null&&u!==void 0?u:(0,Rd.loadConfig)(S(o({},Qz.NODE_RETRY_MODE_CONFIG_OPTIONS),{default:async()=>(await G()).retryMode||Qz.DEFAULT_RETRY_MODE})),sha256:(w=e==null?void 0:e.sha256)!==null&&w!==void 0?w:n3e.Hash.bind(null,"sha256"),streamCollector:(E=e==null?void 0:e.streamCollector)!==null&&E!==void 0?E:Z9.streamCollector,useDualstackEndpoint:(T=e==null?void 0:e.useDualstackEndpoint)!==null&&T!==void 0?T:(0,Rd.loadConfig)(yv.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(I=e==null?void 0:e.useFipsEndpoint)!==null&&I!==void 0?I:(0,Rd.loadConfig)(yv.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:(N=e==null?void 0:e.utf8Decoder)!==null&&N!==void 0?N:t7.fromUtf8,utf8Encoder:(F=e==null?void 0:e.utf8Encoder)!==null&&F!==void 0?F:t7.toUtf8})};Sv.getRuntimeConfig=c3e});var so=m(_v=>{"use strict";Object.defineProperty(_v,"__esModule",{value:!0});_v.DynamoDBClient=void 0;var r7=Jt(),l3e=Ds(),u3e=ck(),i7=Ms(),m3e=Bs(),s7=Mn(),o7=Ar(),a7=Us(),f3e=R(),p3e=Bg(),g3e=n7(),Yz=class extends f3e.Client{constructor(t){let n=(0,g3e.getRuntimeConfig)(t),r=(0,r7.resolveRegionConfig)(n),i=(0,r7.resolveEndpointsConfig)(r),s=(0,s7.resolveRetryConfig)(i),d=(0,i7.resolveHostHeaderConfig)(s),a=(0,o7.resolveAwsAuthConfig)(d),c=(0,a7.resolveUserAgentConfig)(a),l=(0,u3e.resolveEndpointDiscoveryConfig)(c,{endpointDiscoveryCommandCtor:p3e.DescribeEndpointsCommand});super(l),this.config=l,this.middlewareStack.use((0,s7.getRetryPlugin)(this.config)),this.middlewareStack.use((0,l3e.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,i7.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,m3e.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,o7.getAwsAuthPlugin)(this.config)),this.middlewareStack.use((0,a7.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};_v.DynamoDBClient=Yz});var wa=m(vv=>{"use strict";Object.defineProperty(vv,"__esModule",{value:!0});vv.DynamoDB=void 0;var h3e=mN(),w3e=pN(),y3e=hN(),S3e=yN(),_3e=_N(),v3e=CN(),C3e=AN(),E3e=bN(),A3e=TN(),x3e=NN(),b3e=kN(),R3e=qN(),T3e=Bg(),I3e=MN(),N3e=ON(),P3e=jN(),k3e=GN(),z3e=$N(),q3e=Kl(),L3e=XN(),D3e=WN(),M3e=YN(),B3e=eP(),O3e=nP(),F3e=iP(),j3e=oP(),U3e=dP(),G3e=lP(),V3e=th(),$3e=rh(),H3e=pP(),J3e=oh(),X3e=wP(),K3e=SP(),W3e=lh(),Q3e=CP(),Y3e=AP(),Z3e=ph(),eHe=RP(),tHe=IP(),nHe=PP(),rHe=zP(),iHe=LP(),sHe=MP(),oHe=OP(),aHe=jP(),dHe=GP(),cHe=$P(),lHe=JP(),uHe=KP(),mHe=so(),Zz=class extends mHe.DynamoDBClient{batchExecuteStatement(t,n,r){let i=new h3e.BatchExecuteStatementCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}batchGetItem(t,n,r){let i=new w3e.BatchGetItemCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}batchWriteItem(t,n,r){let i=new y3e.BatchWriteItemCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}createBackup(t,n,r){let i=new S3e.CreateBackupCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}createGlobalTable(t,n,r){let i=new _3e.CreateGlobalTableCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}createTable(t,n,r){let i=new v3e.CreateTableCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}deleteBackup(t,n,r){let i=new C3e.DeleteBackupCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}deleteItem(t,n,r){let i=new E3e.DeleteItemCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}deleteTable(t,n,r){let i=new A3e.DeleteTableCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}describeBackup(t,n,r){let i=new x3e.DescribeBackupCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}describeContinuousBackups(t,n,r){let i=new b3e.DescribeContinuousBackupsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}describeContributorInsights(t,n,r){let i=new R3e.DescribeContributorInsightsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}describeEndpoints(t,n,r){let i=new T3e.DescribeEndpointsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}describeExport(t,n,r){let i=new I3e.DescribeExportCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}describeGlobalTable(t,n,r){let i=new N3e.DescribeGlobalTableCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}describeGlobalTableSettings(t,n,r){let i=new P3e.DescribeGlobalTableSettingsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}describeKinesisStreamingDestination(t,n,r){let i=new k3e.DescribeKinesisStreamingDestinationCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}describeLimits(t,n,r){let i=new z3e.DescribeLimitsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}describeTable(t,n,r){let i=new q3e.DescribeTableCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}describeTableReplicaAutoScaling(t,n,r){let i=new L3e.DescribeTableReplicaAutoScalingCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}describeTimeToLive(t,n,r){let i=new D3e.DescribeTimeToLiveCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}disableKinesisStreamingDestination(t,n,r){let i=new M3e.DisableKinesisStreamingDestinationCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}enableKinesisStreamingDestination(t,n,r){let i=new B3e.EnableKinesisStreamingDestinationCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}executeStatement(t,n,r){let i=new O3e.ExecuteStatementCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}executeTransaction(t,n,r){let i=new F3e.ExecuteTransactionCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}exportTableToPointInTime(t,n,r){let i=new j3e.ExportTableToPointInTimeCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}getItem(t,n,r){let i=new U3e.GetItemCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listBackups(t,n,r){let i=new G3e.ListBackupsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listContributorInsights(t,n,r){let i=new V3e.ListContributorInsightsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listExports(t,n,r){let i=new $3e.ListExportsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listGlobalTables(t,n,r){let i=new H3e.ListGlobalTablesCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listTables(t,n,r){let i=new J3e.ListTablesCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listTagsOfResource(t,n,r){let i=new X3e.ListTagsOfResourceCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}putItem(t,n,r){let i=new K3e.PutItemCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}query(t,n,r){let i=new W3e.QueryCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}restoreTableFromBackup(t,n,r){let i=new Q3e.RestoreTableFromBackupCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}restoreTableToPointInTime(t,n,r){let i=new Y3e.RestoreTableToPointInTimeCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}scan(t,n,r){let i=new Z3e.ScanCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}tagResource(t,n,r){let i=new eHe.TagResourceCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}transactGetItems(t,n,r){let i=new tHe.TransactGetItemsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}transactWriteItems(t,n,r){let i=new nHe.TransactWriteItemsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}untagResource(t,n,r){let i=new rHe.UntagResourceCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}updateContinuousBackups(t,n,r){let i=new iHe.UpdateContinuousBackupsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}updateContributorInsights(t,n,r){let i=new sHe.UpdateContributorInsightsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}updateGlobalTable(t,n,r){let i=new oHe.UpdateGlobalTableCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}updateGlobalTableSettings(t,n,r){let i=new aHe.UpdateGlobalTableSettingsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}updateItem(t,n,r){let i=new dHe.UpdateItemCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}updateTable(t,n,r){let i=new cHe.UpdateTableCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}updateTableReplicaAutoScaling(t,n,r){let i=new lHe.UpdateTableReplicaAutoScalingCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}updateTimeToLive(t,n,r){let i=new uHe.UpdateTimeToLiveCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}};vv.DynamoDB=Zz});var d7=m(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});var Qe=oe();Qe.__exportStar(mN(),Ve);Qe.__exportStar(pN(),Ve);Qe.__exportStar(hN(),Ve);Qe.__exportStar(yN(),Ve);Qe.__exportStar(_N(),Ve);Qe.__exportStar(CN(),Ve);Qe.__exportStar(AN(),Ve);Qe.__exportStar(bN(),Ve);Qe.__exportStar(TN(),Ve);Qe.__exportStar(NN(),Ve);Qe.__exportStar(kN(),Ve);Qe.__exportStar(qN(),Ve);Qe.__exportStar(Bg(),Ve);Qe.__exportStar(MN(),Ve);Qe.__exportStar(ON(),Ve);Qe.__exportStar(jN(),Ve);Qe.__exportStar(GN(),Ve);Qe.__exportStar($N(),Ve);Qe.__exportStar(Kl(),Ve);Qe.__exportStar(XN(),Ve);Qe.__exportStar(WN(),Ve);Qe.__exportStar(YN(),Ve);Qe.__exportStar(eP(),Ve);Qe.__exportStar(nP(),Ve);Qe.__exportStar(iP(),Ve);Qe.__exportStar(oP(),Ve);Qe.__exportStar(dP(),Ve);Qe.__exportStar(lP(),Ve);Qe.__exportStar(th(),Ve);Qe.__exportStar(rh(),Ve);Qe.__exportStar(pP(),Ve);Qe.__exportStar(oh(),Ve);Qe.__exportStar(wP(),Ve);Qe.__exportStar(SP(),Ve);Qe.__exportStar(lh(),Ve);Qe.__exportStar(CP(),Ve);Qe.__exportStar(AP(),Ve);Qe.__exportStar(ph(),Ve);Qe.__exportStar(RP(),Ve);Qe.__exportStar(IP(),Ve);Qe.__exportStar(PP(),Ve);Qe.__exportStar(zP(),Ve);Qe.__exportStar(LP(),Ve);Qe.__exportStar(MP(),Ve);Qe.__exportStar(OP(),Ve);Qe.__exportStar(jP(),Ve);Qe.__exportStar(GP(),Ve);Qe.__exportStar($P(),Ve);Qe.__exportStar(JP(),Ve);Qe.__exportStar(KP(),Ve)});var c7=m(eq=>{"use strict";Object.defineProperty(eq,"__esModule",{value:!0});var fHe=oe();fHe.__exportStar(Ge(),eq)});var u7=m(l7=>{"use strict";Object.defineProperty(l7,"__esModule",{value:!0})});var m7=m(Cv=>{"use strict";Object.defineProperty(Cv,"__esModule",{value:!0});Cv.paginateListContributorInsights=void 0;var pHe=th(),gHe=wa(),hHe=so(),wHe=async(e,t,...n)=>await e.send(new pHe.ListContributorInsightsCommand(t),...n),yHe=async(e,t,...n)=>await e.listContributorInsights(t,...n);async function*SHe(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.NextToken=r,t.MaxResults=e.pageSize,e.client instanceof gHe.DynamoDB)s=await yHe(e.client,t,...n);else if(e.client instanceof hHe.DynamoDBClient)s=await wHe(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s;let d=r;r=s.NextToken,i=!!(r&&(!e.stopOnSameToken||r!==d))}return void 0}Cv.paginateListContributorInsights=SHe});var f7=m(Ev=>{"use strict";Object.defineProperty(Ev,"__esModule",{value:!0});Ev.paginateListExports=void 0;var _He=rh(),vHe=wa(),CHe=so(),EHe=async(e,t,...n)=>await e.send(new _He.ListExportsCommand(t),...n),AHe=async(e,t,...n)=>await e.listExports(t,...n);async function*xHe(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.NextToken=r,t.MaxResults=e.pageSize,e.client instanceof vHe.DynamoDB)s=await AHe(e.client,t,...n);else if(e.client instanceof CHe.DynamoDBClient)s=await EHe(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s;let d=r;r=s.NextToken,i=!!(r&&(!e.stopOnSameToken||r!==d))}return void 0}Ev.paginateListExports=xHe});var p7=m(Av=>{"use strict";Object.defineProperty(Av,"__esModule",{value:!0});Av.paginateListTables=void 0;var bHe=oh(),RHe=wa(),THe=so(),IHe=async(e,t,...n)=>await e.send(new bHe.ListTablesCommand(t),...n),NHe=async(e,t,...n)=>await e.listTables(t,...n);async function*PHe(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.ExclusiveStartTableName=r,t.Limit=e.pageSize,e.client instanceof RHe.DynamoDB)s=await NHe(e.client,t,...n);else if(e.client instanceof THe.DynamoDBClient)s=await IHe(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s;let d=r;r=s.LastEvaluatedTableName,i=!!(r&&(!e.stopOnSameToken||r!==d))}return void 0}Av.paginateListTables=PHe});var g7=m(xv=>{"use strict";Object.defineProperty(xv,"__esModule",{value:!0});xv.paginateQuery=void 0;var kHe=lh(),zHe=wa(),qHe=so(),LHe=async(e,t,...n)=>await e.send(new kHe.QueryCommand(t),...n),DHe=async(e,t,...n)=>await e.query(t,...n);async function*MHe(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.ExclusiveStartKey=r,t.Limit=e.pageSize,e.client instanceof zHe.DynamoDB)s=await DHe(e.client,t,...n);else if(e.client instanceof qHe.DynamoDBClient)s=await LHe(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s;let d=r;r=s.LastEvaluatedKey,i=!!(r&&(!e.stopOnSameToken||r!==d))}return void 0}xv.paginateQuery=MHe});var h7=m(bv=>{"use strict";Object.defineProperty(bv,"__esModule",{value:!0});bv.paginateScan=void 0;var BHe=ph(),OHe=wa(),FHe=so(),jHe=async(e,t,...n)=>await e.send(new BHe.ScanCommand(t),...n),UHe=async(e,t,...n)=>await e.scan(t,...n);async function*GHe(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.ExclusiveStartKey=r,t.Limit=e.pageSize,e.client instanceof OHe.DynamoDB)s=await UHe(e.client,t,...n);else if(e.client instanceof FHe.DynamoDBClient)s=await jHe(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s;let d=r;r=s.LastEvaluatedKey,i=!!(r&&(!e.stopOnSameToken||r!==d))}return void 0}bv.paginateScan=GHe});var w7=m(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});var Td=oe();Td.__exportStar(u7(),oo);Td.__exportStar(m7(),oo);Td.__exportStar(f7(),oo);Td.__exportStar(p7(),oo);Td.__exportStar(g7(),oo);Td.__exportStar(h7(),oo)});var tq=m(Rv=>{"use strict";Object.defineProperty(Rv,"__esModule",{value:!0});Rv.sleep=void 0;var VHe=e=>new Promise(t=>setTimeout(t,e*1e3));Rv.sleep=VHe});var Iv=m(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.checkExceptions=ss.WaiterState=ss.waiterServiceDefaults=void 0;ss.waiterServiceDefaults={minDelay:2,maxDelay:120};var Tv;(function(e){e.ABORTED="ABORTED",e.FAILURE="FAILURE",e.SUCCESS="SUCCESS",e.RETRY="RETRY",e.TIMEOUT="TIMEOUT"})(Tv=ss.WaiterState||(ss.WaiterState={}));var $He=e=>{if(e.state===Tv.ABORTED){let t=new Error(`${JSON.stringify(S(o({},e),{reason:"Request was aborted"}))}`);throw t.name="AbortError",t}else if(e.state===Tv.TIMEOUT){let t=new Error(`${JSON.stringify(S(o({},e),{reason:"Waiter has timed out"}))}`);throw t.name="TimeoutError",t}else if(e.state!==Tv.SUCCESS)throw new Error(`${JSON.stringify({result:e})}`);return e};ss.checkExceptions=$He});var y7=m(Pv=>{"use strict";Object.defineProperty(Pv,"__esModule",{value:!0});Pv.runPolling=void 0;var HHe=tq(),Nv=Iv(),JHe=(e,t,n,r)=>{if(r>n)return t;let i=e*2**(r-1);return XHe(e,i)},XHe=(e,t)=>e+Math.random()*(t-e),KHe=async({minDelay:e,maxDelay:t,maxWaitTime:n,abortController:r,client:i,abortSignal:s},d,a)=>{var c;let{state:l}=await a(i,d);if(l!==Nv.WaiterState.RETRY)return{state:l};let u=1,w=Date.now()+n*1e3,E=Math.log(t/e)/Math.log(2)+1;for(;;){if(((c=r==null?void 0:r.signal)===null||c===void 0?void 0:c.aborted)||(s==null?void 0:s.aborted))return{state:Nv.WaiterState.ABORTED};let T=JHe(e,t,E,u);if(Date.now()+T*1e3>w)return{state:Nv.WaiterState.TIMEOUT};await(0,HHe.sleep)(T);let{state:I}=await a(i,d);if(I!==Nv.WaiterState.RETRY)return{state:I};u+=1}};Pv.runPolling=KHe});var S7=m(kv=>{"use strict";Object.defineProperty(kv,"__esModule",{value:!0});kv.validateWaiterOptions=void 0;var WHe=e=>{if(e.maxWaitTime<1)throw new Error("WaiterConfiguration.maxWaitTime must be greater than 0");if(e.minDelay<1)throw new Error("WaiterConfiguration.minDelay must be greater than 0");if(e.maxDelay<1)throw new Error("WaiterConfiguration.maxDelay must be greater than 0");if(e.maxWaitTime<=e.minDelay)throw new Error(`WaiterConfiguration.maxWaitTime [${e.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${e.minDelay}] for this waiter`);if(e.maxDelay<e.minDelay)throw new Error(`WaiterConfiguration.maxDelay [${e.maxDelay}] must be greater than WaiterConfiguration.minDelay [${e.minDelay}] for this waiter`)};kv.validateWaiterOptions=WHe});var v7=m(zv=>{"use strict";Object.defineProperty(zv,"__esModule",{value:!0});var _7=oe();_7.__exportStar(tq(),zv);_7.__exportStar(S7(),zv)});var A7=m(qv=>{"use strict";Object.defineProperty(qv,"__esModule",{value:!0});qv.createWaiter=void 0;var QHe=y7(),YHe=v7(),E7=Iv(),C7=async e=>new Promise(t=>{e.onabort=()=>t({state:E7.WaiterState.ABORTED})}),ZHe=async(e,t,n)=>{let r=o(o({},E7.waiterServiceDefaults),e);(0,YHe.validateWaiterOptions)(r);let i=[(0,QHe.runPolling)(r,t,n)];return e.abortController&&i.push(C7(e.abortController.signal)),e.abortSignal&&i.push(C7(e.abortSignal)),Promise.race(i)};qv.createWaiter=ZHe});var Rr=m(Lv=>{"use strict";Object.defineProperty(Lv,"__esModule",{value:!0});var x7=oe();x7.__exportStar(A7(),Lv);x7.__exportStar(Iv(),Lv)});var R7=m(Nd=>{"use strict";Object.defineProperty(Nd,"__esModule",{value:!0});Nd.waitUntilTableExists=Nd.waitForTableExists=void 0;var Id=Rr(),eJe=Kl(),b7=async(e,t)=>{let n;try{let r=await e.send(new eJe.DescribeTableCommand(t));n=r;try{if((()=>r.Table.TableStatus)()==="ACTIVE")return{state:Id.WaiterState.SUCCESS,reason:n}}catch{}}catch(r){if(n=r,r.name&&r.name=="ResourceNotFoundException")return{state:Id.WaiterState.RETRY,reason:n}}return{state:Id.WaiterState.RETRY,reason:n}},tJe=async(e,t)=>{let n={minDelay:20,maxDelay:120};return(0,Id.createWaiter)(o(o({},n),e),t,b7)};Nd.waitForTableExists=tJe;var nJe=async(e,t)=>{let n={minDelay:20,maxDelay:120},r=await(0,Id.createWaiter)(o(o({},n),e),t,b7);return(0,Id.checkExceptions)(r)};Nd.waitUntilTableExists=nJe});var I7=m(Pd=>{"use strict";Object.defineProperty(Pd,"__esModule",{value:!0});Pd.waitUntilTableNotExists=Pd.waitForTableNotExists=void 0;var sm=Rr(),rJe=Kl(),T7=async(e,t)=>{let n;try{n=await e.send(new rJe.DescribeTableCommand(t))}catch(r){if(n=r,r.name&&r.name=="ResourceNotFoundException")return{state:sm.WaiterState.SUCCESS,reason:n}}return{state:sm.WaiterState.RETRY,reason:n}},iJe=async(e,t)=>{let n={minDelay:20,maxDelay:120};return(0,sm.createWaiter)(o(o({},n),e),t,T7)};Pd.waitForTableNotExists=iJe;var sJe=async(e,t)=>{let n={minDelay:20,maxDelay:120},r=await(0,sm.createWaiter)(o(o({},n),e),t,T7);return(0,sm.checkExceptions)(r)};Pd.waitUntilTableNotExists=sJe});var P7=m(Dv=>{"use strict";Object.defineProperty(Dv,"__esModule",{value:!0});var N7=oe();N7.__exportStar(R7(),Dv);N7.__exportStar(I7(),Dv)});var Bn=m(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});Ni.DynamoDBServiceException=void 0;var kd=oe();kd.__exportStar(wa(),Ni);kd.__exportStar(so(),Ni);kd.__exportStar(d7(),Ni);kd.__exportStar(c7(),Ni);kd.__exportStar(w7(),Ni);kd.__exportStar(P7(),Ni);var oJe=Kp();Object.defineProperty(Ni,"DynamoDBServiceException",{enumerable:!0,get:function(){return oJe.DynamoDBServiceException}})});var Bv=m(Mv=>{"use strict";Object.defineProperty(Mv,"__esModule",{value:!0});Mv.LambdaServiceException=void 0;var aJe=R(),om=class extends aJe.ServiceException{constructor(t){super(t),Object.setPrototypeOf(this,om.prototype)}};Mv.LambdaServiceException=om});var Re=m(_=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0});_.TracingMode=_.Runtime=_.PackageType=_.ImageConfig=_.FileSystemConfig=_.EphemeralStorage=_.Environment=_.DeadLetterConfig=_.FunctionCode=_.CodeVerificationFailedException=_.CodeStorageExceededException=_.CodeSigningConfigNotFoundException=_.EventSourceMappingConfiguration=_.CreateEventSourceMappingRequest=_.EventSourcePosition=_.SourceAccessConfiguration=_.SourceAccessType=_.SelfManagedEventSource=_.EndPointType=_.FunctionResponseType=_.FilterCriteria=_.Filter=_.DestinationConfig=_.OnSuccess=_.OnFailure=_.CreateCodeSigningConfigResponse=_.CodeSigningConfig=_.CreateCodeSigningConfigRequest=_.CodeSigningPolicies=_.CodeSigningPolicy=_.CreateAliasRequest=_.Architecture=_.AllowedPublishers=_.AliasConfiguration=_.AliasRoutingConfiguration=_.AddPermissionResponse=_.AddPermissionRequest=_.FunctionUrlAuthType=_.TooManyRequestsException=_.ThrottleReason=_.ServiceException=_.ResourceNotFoundException=_.ResourceConflictException=_.PreconditionFailedException=_.PolicyLengthExceededException=_.InvalidParameterValueException=_.AddLayerVersionPermissionResponse=_.AddLayerVersionPermissionRequest=_.AccountUsage=_.AccountLimit=void 0;_.GetFunctionUrlConfigResponse=_.GetFunctionUrlConfigRequest=_.GetFunctionEventInvokeConfigRequest=_.FunctionEventInvokeConfig=_.GetFunctionConfigurationRequest=_.GetFunctionConcurrencyResponse=_.GetFunctionConcurrencyRequest=_.GetFunctionCodeSigningConfigResponse=_.GetFunctionCodeSigningConfigRequest=_.GetFunctionResponse=_.Concurrency=_.FunctionCodeLocation=_.GetFunctionRequest=_.GetEventSourceMappingRequest=_.GetCodeSigningConfigResponse=_.GetCodeSigningConfigRequest=_.GetAliasRequest=_.GetAccountSettingsResponse=_.GetAccountSettingsRequest=_.DeleteProvisionedConcurrencyConfigRequest=_.DeleteLayerVersionRequest=_.DeleteFunctionUrlConfigRequest=_.DeleteFunctionEventInvokeConfigRequest=_.DeleteFunctionConcurrencyRequest=_.DeleteFunctionCodeSigningConfigRequest=_.DeleteFunctionRequest=_.ResourceInUseException=_.DeleteEventSourceMappingRequest=_.DeleteCodeSigningConfigResponse=_.DeleteCodeSigningConfigRequest=_.DeleteAliasRequest=_.CreateFunctionUrlConfigResponse=_.CreateFunctionUrlConfigRequest=_.Cors=_.InvalidCodeSignatureException=_.FunctionConfiguration=_.VpcConfigResponse=_.TracingConfigResponse=_.StateReasonCode=_.State=_.Layer=_.LastUpdateStatusReasonCode=_.LastUpdateStatus=_.ImageConfigResponse=_.ImageConfigError=_.EnvironmentResponse=_.EnvironmentError=_.CreateFunctionRequest=_.VpcConfig=_.TracingConfig=void 0;_.ListFunctionsResponse=_.ListFunctionsRequest=_.FunctionVersion=_.ListFunctionEventInvokeConfigsResponse=_.ListFunctionEventInvokeConfigsRequest=_.ListEventSourceMappingsResponse=_.ListEventSourceMappingsRequest=_.ListCodeSigningConfigsResponse=_.ListCodeSigningConfigsRequest=_.ListAliasesResponse=_.ListAliasesRequest=_.InvokeAsyncResponse=_.InvokeAsyncRequest=_.UnsupportedMediaTypeException=_.SubnetIPAddressLimitReachedException=_.ResourceNotReadyException=_.RequestTooLargeException=_.KMSNotFoundException=_.KMSInvalidStateException=_.KMSDisabledException=_.KMSAccessDeniedException=_.InvocationResponse=_.InvocationRequest=_.LogType=_.InvocationType=_.InvalidZipFileException=_.InvalidSubnetIDException=_.InvalidSecurityGroupIDException=_.InvalidRuntimeException=_.InvalidRequestContentException=_.ENILimitReachedException=_.EFSMountTimeoutException=_.EFSMountFailureException=_.EFSMountConnectivityException=_.EFSIOException=_.EC2UnexpectedException=_.EC2ThrottledException=_.EC2AccessDeniedException=_.ProvisionedConcurrencyConfigNotFoundException=_.GetProvisionedConcurrencyConfigResponse=_.ProvisionedConcurrencyStatusEnum=_.GetProvisionedConcurrencyConfigRequest=_.GetPolicyResponse=_.GetPolicyRequest=_.GetLayerVersionPolicyResponse=_.GetLayerVersionPolicyRequest=_.GetLayerVersionByArnRequest=_.GetLayerVersionResponse=_.LayerVersionContentOutput=_.GetLayerVersionRequest=void 0;_.UpdateFunctionUrlConfigResponse=_.UpdateFunctionUrlConfigRequest=_.UpdateFunctionEventInvokeConfigRequest=_.UpdateFunctionConfigurationRequest=_.UpdateFunctionCodeRequest=_.UpdateEventSourceMappingRequest=_.UpdateCodeSigningConfigResponse=_.UpdateCodeSigningConfigRequest=_.UpdateAliasRequest=_.UntagResourceRequest=_.TagResourceRequest=_.RemovePermissionRequest=_.RemoveLayerVersionPermissionRequest=_.PutProvisionedConcurrencyConfigResponse=_.PutProvisionedConcurrencyConfigRequest=_.PutFunctionEventInvokeConfigRequest=_.PutFunctionConcurrencyRequest=_.PutFunctionCodeSigningConfigResponse=_.PutFunctionCodeSigningConfigRequest=_.PublishVersionRequest=_.PublishLayerVersionResponse=_.PublishLayerVersionRequest=_.LayerVersionContentInput=_.ListVersionsByFunctionResponse=_.ListVersionsByFunctionRequest=_.ListTagsResponse=_.ListTagsRequest=_.ListProvisionedConcurrencyConfigsResponse=_.ProvisionedConcurrencyConfigListItem=_.ListProvisionedConcurrencyConfigsRequest=_.ListLayerVersionsResponse=_.ListLayerVersionsRequest=_.ListLayersResponse=_.LayersListItem=_.LayerVersionsListItem=_.ListLayersRequest=_.ListFunctionUrlConfigsResponse=_.FunctionUrlConfig=_.ListFunctionUrlConfigsRequest=_.ListFunctionsByCodeSigningConfigResponse=_.ListFunctionsByCodeSigningConfigRequest=void 0;var os=R(),pt=Bv(),dJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(dJe=_.AccountLimit||(_.AccountLimit={}));var cJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(cJe=_.AccountUsage||(_.AccountUsage={}));var lJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(lJe=_.AddLayerVersionPermissionRequest||(_.AddLayerVersionPermissionRequest={}));var uJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(uJe=_.AddLayerVersionPermissionResponse||(_.AddLayerVersionPermissionResponse={}));var am=class extends pt.LambdaServiceException{constructor(t){super(o({name:"InvalidParameterValueException",$fault:"client"},t)),this.name="InvalidParameterValueException",this.$fault="client",Object.setPrototypeOf(this,am.prototype),this.Type=t.Type}};_.InvalidParameterValueException=am;var dm=class extends pt.LambdaServiceException{constructor(t){super(o({name:"PolicyLengthExceededException",$fault:"client"},t)),this.name="PolicyLengthExceededException",this.$fault="client",Object.setPrototypeOf(this,dm.prototype),this.Type=t.Type}};_.PolicyLengthExceededException=dm;var cm=class extends pt.LambdaServiceException{constructor(t){super(o({name:"PreconditionFailedException",$fault:"client"},t)),this.name="PreconditionFailedException",this.$fault="client",Object.setPrototypeOf(this,cm.prototype),this.Type=t.Type}};_.PreconditionFailedException=cm;var lm=class extends pt.LambdaServiceException{constructor(t){super(o({name:"ResourceConflictException",$fault:"client"},t)),this.name="ResourceConflictException",this.$fault="client",Object.setPrototypeOf(this,lm.prototype),this.Type=t.Type}};_.ResourceConflictException=lm;var um=class extends pt.LambdaServiceException{constructor(t){super(o({name:"ResourceNotFoundException",$fault:"client"},t)),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,um.prototype),this.Type=t.Type,this.Message=t.Message}};_.ResourceNotFoundException=um;var mm=class extends pt.LambdaServiceException{constructor(t){super(o({name:"ServiceException",$fault:"server"},t)),this.name="ServiceException",this.$fault="server",Object.setPrototypeOf(this,mm.prototype),this.Type=t.Type,this.Message=t.Message}};_.ServiceException=mm;var mJe;(function(e){e.CallerRateLimitExceeded="CallerRateLimitExceeded",e.ConcurrentInvocationLimitExceeded="ConcurrentInvocationLimitExceeded",e.FunctionInvocationRateLimitExceeded="FunctionInvocationRateLimitExceeded",e.ReservedFunctionConcurrentInvocationLimitExceeded="ReservedFunctionConcurrentInvocationLimitExceeded",e.ReservedFunctionInvocationRateLimitExceeded="ReservedFunctionInvocationRateLimitExceeded"})(mJe=_.ThrottleReason||(_.ThrottleReason={}));var fm=class extends pt.LambdaServiceException{constructor(t){super(o({name:"TooManyRequestsException",$fault:"client"},t)),this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,fm.prototype),this.retryAfterSeconds=t.retryAfterSeconds,this.Type=t.Type,this.Reason=t.Reason}};_.TooManyRequestsException=fm;var fJe;(function(e){e.AWS_IAM="AWS_IAM",e.NONE="NONE"})(fJe=_.FunctionUrlAuthType||(_.FunctionUrlAuthType={}));var pJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(pJe=_.AddPermissionRequest||(_.AddPermissionRequest={}));var gJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(gJe=_.AddPermissionResponse||(_.AddPermissionResponse={}));var hJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(hJe=_.AliasRoutingConfiguration||(_.AliasRoutingConfiguration={}));var wJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(wJe=_.AliasConfiguration||(_.AliasConfiguration={}));var yJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(yJe=_.AllowedPublishers||(_.AllowedPublishers={}));var SJe;(function(e){e.arm64="arm64",e.x86_64="x86_64"})(SJe=_.Architecture||(_.Architecture={}));var _Je;(function(e){e.filterSensitiveLog=t=>o({},t)})(_Je=_.CreateAliasRequest||(_.CreateAliasRequest={}));var vJe;(function(e){e.Enforce="Enforce",e.Warn="Warn"})(vJe=_.CodeSigningPolicy||(_.CodeSigningPolicy={}));var CJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(CJe=_.CodeSigningPolicies||(_.CodeSigningPolicies={}));var EJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(EJe=_.CreateCodeSigningConfigRequest||(_.CreateCodeSigningConfigRequest={}));var AJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(AJe=_.CodeSigningConfig||(_.CodeSigningConfig={}));var xJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(xJe=_.CreateCodeSigningConfigResponse||(_.CreateCodeSigningConfigResponse={}));var bJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(bJe=_.OnFailure||(_.OnFailure={}));var RJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(RJe=_.OnSuccess||(_.OnSuccess={}));var TJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(TJe=_.DestinationConfig||(_.DestinationConfig={}));var IJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(IJe=_.Filter||(_.Filter={}));var NJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(NJe=_.FilterCriteria||(_.FilterCriteria={}));var PJe;(function(e){e.ReportBatchItemFailures="ReportBatchItemFailures"})(PJe=_.FunctionResponseType||(_.FunctionResponseType={}));var kJe;(function(e){e.KAFKA_BOOTSTRAP_SERVERS="KAFKA_BOOTSTRAP_SERVERS"})(kJe=_.EndPointType||(_.EndPointType={}));var zJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(zJe=_.SelfManagedEventSource||(_.SelfManagedEventSource={}));var qJe;(function(e){e.BASIC_AUTH="BASIC_AUTH",e.CLIENT_CERTIFICATE_TLS_AUTH="CLIENT_CERTIFICATE_TLS_AUTH",e.SASL_SCRAM_256_AUTH="SASL_SCRAM_256_AUTH",e.SASL_SCRAM_512_AUTH="SASL_SCRAM_512_AUTH",e.SERVER_ROOT_CA_CERTIFICATE="SERVER_ROOT_CA_CERTIFICATE",e.VIRTUAL_HOST="VIRTUAL_HOST",e.VPC_SECURITY_GROUP="VPC_SECURITY_GROUP",e.VPC_SUBNET="VPC_SUBNET"})(qJe=_.SourceAccessType||(_.SourceAccessType={}));var LJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(LJe=_.SourceAccessConfiguration||(_.SourceAccessConfiguration={}));var DJe;(function(e){e.AT_TIMESTAMP="AT_TIMESTAMP",e.LATEST="LATEST",e.TRIM_HORIZON="TRIM_HORIZON"})(DJe=_.EventSourcePosition||(_.EventSourcePosition={}));var MJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(MJe=_.CreateEventSourceMappingRequest||(_.CreateEventSourceMappingRequest={}));var BJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(BJe=_.EventSourceMappingConfiguration||(_.EventSourceMappingConfiguration={}));var pm=class extends pt.LambdaServiceException{constructor(t){super(o({name:"CodeSigningConfigNotFoundException",$fault:"client"},t)),this.name="CodeSigningConfigNotFoundException",this.$fault="client",Object.setPrototypeOf(this,pm.prototype),this.Type=t.Type,this.Message=t.Message}};_.CodeSigningConfigNotFoundException=pm;var gm=class extends pt.LambdaServiceException{constructor(t){super(o({name:"CodeStorageExceededException",$fault:"client"},t)),this.name="CodeStorageExceededException",this.$fault="client",Object.setPrototypeOf(this,gm.prototype),this.Type=t.Type}};_.CodeStorageExceededException=gm;var hm=class extends pt.LambdaServiceException{constructor(t){super(o({name:"CodeVerificationFailedException",$fault:"client"},t)),this.name="CodeVerificationFailedException",this.$fault="client",Object.setPrototypeOf(this,hm.prototype),this.Type=t.Type,this.Message=t.Message}};_.CodeVerificationFailedException=hm;var k7;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.ZipFile&&{ZipFile:os.SENSITIVE_STRING})})(k7=_.FunctionCode||(_.FunctionCode={}));var OJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(OJe=_.DeadLetterConfig||(_.DeadLetterConfig={}));var nq;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Variables&&{Variables:os.SENSITIVE_STRING})})(nq=_.Environment||(_.Environment={}));var FJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(FJe=_.EphemeralStorage||(_.EphemeralStorage={}));var jJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(jJe=_.FileSystemConfig||(_.FileSystemConfig={}));var UJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(UJe=_.ImageConfig||(_.ImageConfig={}));var GJe;(function(e){e.Image="Image",e.Zip="Zip"})(GJe=_.PackageType||(_.PackageType={}));var VJe;(function(e){e.dotnet6="dotnet6",e.dotnetcore10="dotnetcore1.0",e.dotnetcore20="dotnetcore2.0",e.dotnetcore21="dotnetcore2.1",e.dotnetcore31="dotnetcore3.1",e.go1x="go1.x",e.java11="java11",e.java8="java8",e.java8al2="java8.al2",e.nodejs="nodejs",e.nodejs10x="nodejs10.x",e.nodejs12x="nodejs12.x",e.nodejs14x="nodejs14.x",e.nodejs16x="nodejs16.x",e.nodejs43="nodejs4.3",e.nodejs43edge="nodejs4.3-edge",e.nodejs610="nodejs6.10",e.nodejs810="nodejs8.10",e.provided="provided",e.providedal2="provided.al2",e.python27="python2.7",e.python36="python3.6",e.python37="python3.7",e.python38="python3.8",e.python39="python3.9",e.ruby25="ruby2.5",e.ruby27="ruby2.7"})(VJe=_.Runtime||(_.Runtime={}));var $Je;(function(e){e.Active="Active",e.PassThrough="PassThrough"})($Je=_.TracingMode||(_.TracingMode={}));var HJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(HJe=_.TracingConfig||(_.TracingConfig={}));var JJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(JJe=_.VpcConfig||(_.VpcConfig={}));var XJe;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Code&&{Code:k7.filterSensitiveLog(t.Code)}),t.Environment&&{Environment:nq.filterSensitiveLog(t.Environment)})})(XJe=_.CreateFunctionRequest||(_.CreateFunctionRequest={}));var z7;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Message&&{Message:os.SENSITIVE_STRING})})(z7=_.EnvironmentError||(_.EnvironmentError={}));var q7;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Variables&&{Variables:os.SENSITIVE_STRING}),t.Error&&{Error:z7.filterSensitiveLog(t.Error)})})(q7=_.EnvironmentResponse||(_.EnvironmentResponse={}));var L7;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Message&&{Message:os.SENSITIVE_STRING})})(L7=_.ImageConfigError||(_.ImageConfigError={}));var D7;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Error&&{Error:L7.filterSensitiveLog(t.Error)})})(D7=_.ImageConfigResponse||(_.ImageConfigResponse={}));var KJe;(function(e){e.Failed="Failed",e.InProgress="InProgress",e.Successful="Successful"})(KJe=_.LastUpdateStatus||(_.LastUpdateStatus={}));var WJe;(function(e){e.EniLimitExceeded="EniLimitExceeded",e.ImageAccessDenied="ImageAccessDenied",e.ImageDeleted="ImageDeleted",e.InsufficientRolePermissions="InsufficientRolePermissions",e.InternalError="InternalError",e.InvalidConfiguration="InvalidConfiguration",e.InvalidImage="InvalidImage",e.InvalidSecurityGroup="InvalidSecurityGroup",e.InvalidSubnet="InvalidSubnet",e.SubnetOutOfIPAddresses="SubnetOutOfIPAddresses"})(WJe=_.LastUpdateStatusReasonCode||(_.LastUpdateStatusReasonCode={}));var QJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(QJe=_.Layer||(_.Layer={}));var YJe;(function(e){e.Active="Active",e.Failed="Failed",e.Inactive="Inactive",e.Pending="Pending"})(YJe=_.State||(_.State={}));var ZJe;(function(e){e.Creating="Creating",e.EniLimitExceeded="EniLimitExceeded",e.Idle="Idle",e.ImageAccessDenied="ImageAccessDenied",e.ImageDeleted="ImageDeleted",e.InsufficientRolePermissions="InsufficientRolePermissions",e.InternalError="InternalError",e.InvalidConfiguration="InvalidConfiguration",e.InvalidImage="InvalidImage",e.InvalidSecurityGroup="InvalidSecurityGroup",e.InvalidSubnet="InvalidSubnet",e.Restoring="Restoring",e.SubnetOutOfIPAddresses="SubnetOutOfIPAddresses"})(ZJe=_.StateReasonCode||(_.StateReasonCode={}));var eXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(eXe=_.TracingConfigResponse||(_.TracingConfigResponse={}));var tXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(tXe=_.VpcConfigResponse||(_.VpcConfigResponse={}));var Ov;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Environment&&{Environment:q7.filterSensitiveLog(t.Environment)}),t.ImageConfigResponse&&{ImageConfigResponse:D7.filterSensitiveLog(t.ImageConfigResponse)})})(Ov=_.FunctionConfiguration||(_.FunctionConfiguration={}));var wm=class extends pt.LambdaServiceException{constructor(t){super(o({name:"InvalidCodeSignatureException",$fault:"client"},t)),this.name="InvalidCodeSignatureException",this.$fault="client",Object.setPrototypeOf(this,wm.prototype),this.Type=t.Type,this.Message=t.Message}};_.InvalidCodeSignatureException=wm;var nXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(nXe=_.Cors||(_.Cors={}));var rXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(rXe=_.CreateFunctionUrlConfigRequest||(_.CreateFunctionUrlConfigRequest={}));var iXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(iXe=_.CreateFunctionUrlConfigResponse||(_.CreateFunctionUrlConfigResponse={}));var sXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(sXe=_.DeleteAliasRequest||(_.DeleteAliasRequest={}));var oXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(oXe=_.DeleteCodeSigningConfigRequest||(_.DeleteCodeSigningConfigRequest={}));var aXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(aXe=_.DeleteCodeSigningConfigResponse||(_.DeleteCodeSigningConfigResponse={}));var dXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(dXe=_.DeleteEventSourceMappingRequest||(_.DeleteEventSourceMappingRequest={}));var ym=class extends pt.LambdaServiceException{constructor(t){super(o({name:"ResourceInUseException",$fault:"client"},t)),this.name="ResourceInUseException",this.$fault="client",Object.setPrototypeOf(this,ym.prototype),this.Type=t.Type,this.Message=t.Message}};_.ResourceInUseException=ym;var cXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(cXe=_.DeleteFunctionRequest||(_.DeleteFunctionRequest={}));var lXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(lXe=_.DeleteFunctionCodeSigningConfigRequest||(_.DeleteFunctionCodeSigningConfigRequest={}));var uXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(uXe=_.DeleteFunctionConcurrencyRequest||(_.DeleteFunctionConcurrencyRequest={}));var mXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(mXe=_.DeleteFunctionEventInvokeConfigRequest||(_.DeleteFunctionEventInvokeConfigRequest={}));var fXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(fXe=_.DeleteFunctionUrlConfigRequest||(_.DeleteFunctionUrlConfigRequest={}));var pXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(pXe=_.DeleteLayerVersionRequest||(_.DeleteLayerVersionRequest={}));var gXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(gXe=_.DeleteProvisionedConcurrencyConfigRequest||(_.DeleteProvisionedConcurrencyConfigRequest={}));var hXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(hXe=_.GetAccountSettingsRequest||(_.GetAccountSettingsRequest={}));var wXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(wXe=_.GetAccountSettingsResponse||(_.GetAccountSettingsResponse={}));var yXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(yXe=_.GetAliasRequest||(_.GetAliasRequest={}));var SXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(SXe=_.GetCodeSigningConfigRequest||(_.GetCodeSigningConfigRequest={}));var _Xe;(function(e){e.filterSensitiveLog=t=>o({},t)})(_Xe=_.GetCodeSigningConfigResponse||(_.GetCodeSigningConfigResponse={}));var vXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(vXe=_.GetEventSourceMappingRequest||(_.GetEventSourceMappingRequest={}));var CXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(CXe=_.GetFunctionRequest||(_.GetFunctionRequest={}));var EXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(EXe=_.FunctionCodeLocation||(_.FunctionCodeLocation={}));var AXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(AXe=_.Concurrency||(_.Concurrency={}));var xXe;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Configuration&&{Configuration:Ov.filterSensitiveLog(t.Configuration)})})(xXe=_.GetFunctionResponse||(_.GetFunctionResponse={}));var bXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(bXe=_.GetFunctionCodeSigningConfigRequest||(_.GetFunctionCodeSigningConfigRequest={}));var RXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(RXe=_.GetFunctionCodeSigningConfigResponse||(_.GetFunctionCodeSigningConfigResponse={}));var TXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(TXe=_.GetFunctionConcurrencyRequest||(_.GetFunctionConcurrencyRequest={}));var IXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(IXe=_.GetFunctionConcurrencyResponse||(_.GetFunctionConcurrencyResponse={}));var NXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(NXe=_.GetFunctionConfigurationRequest||(_.GetFunctionConfigurationRequest={}));var PXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(PXe=_.FunctionEventInvokeConfig||(_.FunctionEventInvokeConfig={}));var kXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(kXe=_.GetFunctionEventInvokeConfigRequest||(_.GetFunctionEventInvokeConfigRequest={}));var zXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(zXe=_.GetFunctionUrlConfigRequest||(_.GetFunctionUrlConfigRequest={}));var qXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(qXe=_.GetFunctionUrlConfigResponse||(_.GetFunctionUrlConfigResponse={}));var LXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(LXe=_.GetLayerVersionRequest||(_.GetLayerVersionRequest={}));var DXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(DXe=_.LayerVersionContentOutput||(_.LayerVersionContentOutput={}));var MXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(MXe=_.GetLayerVersionResponse||(_.GetLayerVersionResponse={}));var BXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(BXe=_.GetLayerVersionByArnRequest||(_.GetLayerVersionByArnRequest={}));var OXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(OXe=_.GetLayerVersionPolicyRequest||(_.GetLayerVersionPolicyRequest={}));var FXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(FXe=_.GetLayerVersionPolicyResponse||(_.GetLayerVersionPolicyResponse={}));var jXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(jXe=_.GetPolicyRequest||(_.GetPolicyRequest={}));var UXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(UXe=_.GetPolicyResponse||(_.GetPolicyResponse={}));var GXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(GXe=_.GetProvisionedConcurrencyConfigRequest||(_.GetProvisionedConcurrencyConfigRequest={}));var VXe;(function(e){e.FAILED="FAILED",e.IN_PROGRESS="IN_PROGRESS",e.READY="READY"})(VXe=_.ProvisionedConcurrencyStatusEnum||(_.ProvisionedConcurrencyStatusEnum={}));var $Xe;(function(e){e.filterSensitiveLog=t=>o({},t)})($Xe=_.GetProvisionedConcurrencyConfigResponse||(_.GetProvisionedConcurrencyConfigResponse={}));var Sm=class extends pt.LambdaServiceException{constructor(t){super(o({name:"ProvisionedConcurrencyConfigNotFoundException",$fault:"client"},t)),this.name="ProvisionedConcurrencyConfigNotFoundException",this.$fault="client",Object.setPrototypeOf(this,Sm.prototype),this.Type=t.Type}};_.ProvisionedConcurrencyConfigNotFoundException=Sm;var _m=class extends pt.LambdaServiceException{constructor(t){super(o({name:"EC2AccessDeniedException",$fault:"server"},t)),this.name="EC2AccessDeniedException",this.$fault="server",Object.setPrototypeOf(this,_m.prototype),this.Type=t.Type,this.Message=t.Message}};_.EC2AccessDeniedException=_m;var vm=class extends pt.LambdaServiceException{constructor(t){super(o({name:"EC2ThrottledException",$fault:"server"},t)),this.name="EC2ThrottledException",this.$fault="server",Object.setPrototypeOf(this,vm.prototype),this.Type=t.Type,this.Message=t.Message}};_.EC2ThrottledException=vm;var Cm=class extends pt.LambdaServiceException{constructor(t){super(o({name:"EC2UnexpectedException",$fault:"server"},t)),this.name="EC2UnexpectedException",this.$fault="server",Object.setPrototypeOf(this,Cm.prototype),this.Type=t.Type,this.Message=t.Message,this.EC2ErrorCode=t.EC2ErrorCode}};_.EC2UnexpectedException=Cm;var Em=class extends pt.LambdaServiceException{constructor(t){super(o({name:"EFSIOException",$fault:"client"},t)),this.name="EFSIOException",this.$fault="client",Object.setPrototypeOf(this,Em.prototype),this.Type=t.Type,this.Message=t.Message}};_.EFSIOException=Em;var Am=class extends pt.LambdaServiceException{constructor(t){super(o({name:"EFSMountConnectivityException",$fault:"client"},t)),this.name="EFSMountConnectivityException",this.$fault="client",Object.setPrototypeOf(this,Am.prototype),this.Type=t.Type,this.Message=t.Message}};_.EFSMountConnectivityException=Am;var xm=class extends pt.LambdaServiceException{constructor(t){super(o({name:"EFSMountFailureException",$fault:"client"},t)),this.name="EFSMountFailureException",this.$fault="client",Object.setPrototypeOf(this,xm.prototype),this.Type=t.Type,this.Message=t.Message}};_.EFSMountFailureException=xm;var bm=class extends pt.LambdaServiceException{constructor(t){super(o({name:"EFSMountTimeoutException",$fault:"client"},t)),this.name="EFSMountTimeoutException",this.$fault="client",Object.setPrototypeOf(this,bm.prototype),this.Type=t.Type,this.Message=t.Message}};_.EFSMountTimeoutException=bm;var Rm=class extends pt.LambdaServiceException{constructor(t){super(o({name:"ENILimitReachedException",$fault:"server"},t)),this.name="ENILimitReachedException",this.$fault="server",Object.setPrototypeOf(this,Rm.prototype),this.Type=t.Type,this.Message=t.Message}};_.ENILimitReachedException=Rm;var Tm=class extends pt.LambdaServiceException{constructor(t){super(o({name:"InvalidRequestContentException",$fault:"client"},t)),this.name="InvalidRequestContentException",this.$fault="client",Object.setPrototypeOf(this,Tm.prototype),this.Type=t.Type}};_.InvalidRequestContentException=Tm;var Im=class extends pt.LambdaServiceException{constructor(t){super(o({name:"InvalidRuntimeException",$fault:"server"},t)),this.name="InvalidRuntimeException",this.$fault="server",Object.setPrototypeOf(this,Im.prototype),this.Type=t.Type,this.Message=t.Message}};_.InvalidRuntimeException=Im;var Nm=class extends pt.LambdaServiceException{constructor(t){super(o({name:"InvalidSecurityGroupIDException",$fault:"server"},t)),this.name="InvalidSecurityGroupIDException",this.$fault="server",Object.setPrototypeOf(this,Nm.prototype),this.Type=t.Type,this.Message=t.Message}};_.InvalidSecurityGroupIDException=Nm;var Pm=class extends pt.LambdaServiceException{constructor(t){super(o({name:"InvalidSubnetIDException",$fault:"server"},t)),this.name="InvalidSubnetIDException",this.$fault="server",Object.setPrototypeOf(this,Pm.prototype),this.Type=t.Type,this.Message=t.Message}};_.InvalidSubnetIDException=Pm;var km=class extends pt.LambdaServiceException{constructor(t){super(o({name:"InvalidZipFileException",$fault:"server"},t)),this.name="InvalidZipFileException",this.$fault="server",Object.setPrototypeOf(this,km.prototype),this.Type=t.Type,this.Message=t.Message}};_.InvalidZipFileException=km;var HXe;(function(e){e.DryRun="DryRun",e.Event="Event",e.RequestResponse="RequestResponse"})(HXe=_.InvocationType||(_.InvocationType={}));var JXe;(function(e){e.None="None",e.Tail="Tail"})(JXe=_.LogType||(_.LogType={}));var XXe;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Payload&&{Payload:os.SENSITIVE_STRING})})(XXe=_.InvocationRequest||(_.InvocationRequest={}));var KXe;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Payload&&{Payload:os.SENSITIVE_STRING})})(KXe=_.InvocationResponse||(_.InvocationResponse={}));var zm=class extends pt.LambdaServiceException{constructor(t){super(o({name:"KMSAccessDeniedException",$fault:"server"},t)),this.name="KMSAccessDeniedException",this.$fault="server",Object.setPrototypeOf(this,zm.prototype),this.Type=t.Type,this.Message=t.Message}};_.KMSAccessDeniedException=zm;var qm=class extends pt.LambdaServiceException{constructor(t){super(o({name:"KMSDisabledException",$fault:"server"},t)),this.name="KMSDisabledException",this.$fault="server",Object.setPrototypeOf(this,qm.prototype),this.Type=t.Type,this.Message=t.Message}};_.KMSDisabledException=qm;var Lm=class extends pt.LambdaServiceException{constructor(t){super(o({name:"KMSInvalidStateException",$fault:"server"},t)),this.name="KMSInvalidStateException",this.$fault="server",Object.setPrototypeOf(this,Lm.prototype),this.Type=t.Type,this.Message=t.Message}};_.KMSInvalidStateException=Lm;var Dm=class extends pt.LambdaServiceException{constructor(t){super(o({name:"KMSNotFoundException",$fault:"server"},t)),this.name="KMSNotFoundException",this.$fault="server",Object.setPrototypeOf(this,Dm.prototype),this.Type=t.Type,this.Message=t.Message}};_.KMSNotFoundException=Dm;var Mm=class extends pt.LambdaServiceException{constructor(t){super(o({name:"RequestTooLargeException",$fault:"client"},t)),this.name="RequestTooLargeException",this.$fault="client",Object.setPrototypeOf(this,Mm.prototype),this.Type=t.Type}};_.RequestTooLargeException=Mm;var Bm=class extends pt.LambdaServiceException{constructor(t){super(o({name:"ResourceNotReadyException",$fault:"server"},t)),this.name="ResourceNotReadyException",this.$fault="server",Object.setPrototypeOf(this,Bm.prototype),this.Type=t.Type}};_.ResourceNotReadyException=Bm;var Om=class extends pt.LambdaServiceException{constructor(t){super(o({name:"SubnetIPAddressLimitReachedException",$fault:"server"},t)),this.name="SubnetIPAddressLimitReachedException",this.$fault="server",Object.setPrototypeOf(this,Om.prototype),this.Type=t.Type,this.Message=t.Message}};_.SubnetIPAddressLimitReachedException=Om;var Fm=class extends pt.LambdaServiceException{constructor(t){super(o({name:"UnsupportedMediaTypeException",$fault:"client"},t)),this.name="UnsupportedMediaTypeException",this.$fault="client",Object.setPrototypeOf(this,Fm.prototype),this.Type=t.Type}};_.UnsupportedMediaTypeException=Fm;var WXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(WXe=_.InvokeAsyncRequest||(_.InvokeAsyncRequest={}));var QXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(QXe=_.InvokeAsyncResponse||(_.InvokeAsyncResponse={}));var YXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(YXe=_.ListAliasesRequest||(_.ListAliasesRequest={}));var ZXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(ZXe=_.ListAliasesResponse||(_.ListAliasesResponse={}));var eKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(eKe=_.ListCodeSigningConfigsRequest||(_.ListCodeSigningConfigsRequest={}));var tKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(tKe=_.ListCodeSigningConfigsResponse||(_.ListCodeSigningConfigsResponse={}));var nKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(nKe=_.ListEventSourceMappingsRequest||(_.ListEventSourceMappingsRequest={}));var rKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(rKe=_.ListEventSourceMappingsResponse||(_.ListEventSourceMappingsResponse={}));var iKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(iKe=_.ListFunctionEventInvokeConfigsRequest||(_.ListFunctionEventInvokeConfigsRequest={}));var sKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(sKe=_.ListFunctionEventInvokeConfigsResponse||(_.ListFunctionEventInvokeConfigsResponse={}));var oKe;(function(e){e.ALL="ALL"})(oKe=_.FunctionVersion||(_.FunctionVersion={}));var aKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(aKe=_.ListFunctionsRequest||(_.ListFunctionsRequest={}));var dKe;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Functions&&{Functions:t.Functions.map(n=>Ov.filterSensitiveLog(n))})})(dKe=_.ListFunctionsResponse||(_.ListFunctionsResponse={}));var cKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(cKe=_.ListFunctionsByCodeSigningConfigRequest||(_.ListFunctionsByCodeSigningConfigRequest={}));var lKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(lKe=_.ListFunctionsByCodeSigningConfigResponse||(_.ListFunctionsByCodeSigningConfigResponse={}));var uKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(uKe=_.ListFunctionUrlConfigsRequest||(_.ListFunctionUrlConfigsRequest={}));var mKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(mKe=_.FunctionUrlConfig||(_.FunctionUrlConfig={}));var fKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(fKe=_.ListFunctionUrlConfigsResponse||(_.ListFunctionUrlConfigsResponse={}));var pKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(pKe=_.ListLayersRequest||(_.ListLayersRequest={}));var gKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(gKe=_.LayerVersionsListItem||(_.LayerVersionsListItem={}));var hKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(hKe=_.LayersListItem||(_.LayersListItem={}));var wKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(wKe=_.ListLayersResponse||(_.ListLayersResponse={}));var yKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(yKe=_.ListLayerVersionsRequest||(_.ListLayerVersionsRequest={}));var SKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(SKe=_.ListLayerVersionsResponse||(_.ListLayerVersionsResponse={}));var _Ke;(function(e){e.filterSensitiveLog=t=>o({},t)})(_Ke=_.ListProvisionedConcurrencyConfigsRequest||(_.ListProvisionedConcurrencyConfigsRequest={}));var vKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(vKe=_.ProvisionedConcurrencyConfigListItem||(_.ProvisionedConcurrencyConfigListItem={}));var CKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(CKe=_.ListProvisionedConcurrencyConfigsResponse||(_.ListProvisionedConcurrencyConfigsResponse={}));var EKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(EKe=_.ListTagsRequest||(_.ListTagsRequest={}));var AKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(AKe=_.ListTagsResponse||(_.ListTagsResponse={}));var xKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(xKe=_.ListVersionsByFunctionRequest||(_.ListVersionsByFunctionRequest={}));var bKe;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Versions&&{Versions:t.Versions.map(n=>Ov.filterSensitiveLog(n))})})(bKe=_.ListVersionsByFunctionResponse||(_.ListVersionsByFunctionResponse={}));var M7;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.ZipFile&&{ZipFile:os.SENSITIVE_STRING})})(M7=_.LayerVersionContentInput||(_.LayerVersionContentInput={}));var RKe;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Content&&{Content:M7.filterSensitiveLog(t.Content)})})(RKe=_.PublishLayerVersionRequest||(_.PublishLayerVersionRequest={}));var TKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(TKe=_.PublishLayerVersionResponse||(_.PublishLayerVersionResponse={}));var IKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(IKe=_.PublishVersionRequest||(_.PublishVersionRequest={}));var NKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(NKe=_.PutFunctionCodeSigningConfigRequest||(_.PutFunctionCodeSigningConfigRequest={}));var PKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(PKe=_.PutFunctionCodeSigningConfigResponse||(_.PutFunctionCodeSigningConfigResponse={}));var kKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(kKe=_.PutFunctionConcurrencyRequest||(_.PutFunctionConcurrencyRequest={}));var zKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(zKe=_.PutFunctionEventInvokeConfigRequest||(_.PutFunctionEventInvokeConfigRequest={}));var qKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(qKe=_.PutProvisionedConcurrencyConfigRequest||(_.PutProvisionedConcurrencyConfigRequest={}));var LKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(LKe=_.PutProvisionedConcurrencyConfigResponse||(_.PutProvisionedConcurrencyConfigResponse={}));var DKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(DKe=_.RemoveLayerVersionPermissionRequest||(_.RemoveLayerVersionPermissionRequest={}));var MKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(MKe=_.RemovePermissionRequest||(_.RemovePermissionRequest={}));var BKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(BKe=_.TagResourceRequest||(_.TagResourceRequest={}));var OKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(OKe=_.UntagResourceRequest||(_.UntagResourceRequest={}));var FKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(FKe=_.UpdateAliasRequest||(_.UpdateAliasRequest={}));var jKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(jKe=_.UpdateCodeSigningConfigRequest||(_.UpdateCodeSigningConfigRequest={}));var UKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(UKe=_.UpdateCodeSigningConfigResponse||(_.UpdateCodeSigningConfigResponse={}));var GKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(GKe=_.UpdateEventSourceMappingRequest||(_.UpdateEventSourceMappingRequest={}));var VKe;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.ZipFile&&{ZipFile:os.SENSITIVE_STRING})})(VKe=_.UpdateFunctionCodeRequest||(_.UpdateFunctionCodeRequest={}));var $Ke;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Environment&&{Environment:nq.filterSensitiveLog(t.Environment)})})($Ke=_.UpdateFunctionConfigurationRequest||(_.UpdateFunctionConfigurationRequest={}));var HKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(HKe=_.UpdateFunctionEventInvokeConfigRequest||(_.UpdateFunctionEventInvokeConfigRequest={}));var JKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(JKe=_.UpdateFunctionUrlConfigRequest||(_.UpdateFunctionUrlConfigRequest={}));var XKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(XKe=_.UpdateFunctionUrlConfigResponse||(_.UpdateFunctionUrlConfigResponse={}))});var Ie=m(z=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});z.serializeAws_restJson1PutFunctionConcurrencyCommand=z.serializeAws_restJson1PutFunctionCodeSigningConfigCommand=z.serializeAws_restJson1PublishVersionCommand=z.serializeAws_restJson1PublishLayerVersionCommand=z.serializeAws_restJson1ListVersionsByFunctionCommand=z.serializeAws_restJson1ListTagsCommand=z.serializeAws_restJson1ListProvisionedConcurrencyConfigsCommand=z.serializeAws_restJson1ListLayerVersionsCommand=z.serializeAws_restJson1ListLayersCommand=z.serializeAws_restJson1ListFunctionUrlConfigsCommand=z.serializeAws_restJson1ListFunctionsByCodeSigningConfigCommand=z.serializeAws_restJson1ListFunctionsCommand=z.serializeAws_restJson1ListFunctionEventInvokeConfigsCommand=z.serializeAws_restJson1ListEventSourceMappingsCommand=z.serializeAws_restJson1ListCodeSigningConfigsCommand=z.serializeAws_restJson1ListAliasesCommand=z.serializeAws_restJson1InvokeAsyncCommand=z.serializeAws_restJson1InvokeCommand=z.serializeAws_restJson1GetProvisionedConcurrencyConfigCommand=z.serializeAws_restJson1GetPolicyCommand=z.serializeAws_restJson1GetLayerVersionPolicyCommand=z.serializeAws_restJson1GetLayerVersionByArnCommand=z.serializeAws_restJson1GetLayerVersionCommand=z.serializeAws_restJson1GetFunctionUrlConfigCommand=z.serializeAws_restJson1GetFunctionEventInvokeConfigCommand=z.serializeAws_restJson1GetFunctionConfigurationCommand=z.serializeAws_restJson1GetFunctionConcurrencyCommand=z.serializeAws_restJson1GetFunctionCodeSigningConfigCommand=z.serializeAws_restJson1GetFunctionCommand=z.serializeAws_restJson1GetEventSourceMappingCommand=z.serializeAws_restJson1GetCodeSigningConfigCommand=z.serializeAws_restJson1GetAliasCommand=z.serializeAws_restJson1GetAccountSettingsCommand=z.serializeAws_restJson1DeleteProvisionedConcurrencyConfigCommand=z.serializeAws_restJson1DeleteLayerVersionCommand=z.serializeAws_restJson1DeleteFunctionUrlConfigCommand=z.serializeAws_restJson1DeleteFunctionEventInvokeConfigCommand=z.serializeAws_restJson1DeleteFunctionConcurrencyCommand=z.serializeAws_restJson1DeleteFunctionCodeSigningConfigCommand=z.serializeAws_restJson1DeleteFunctionCommand=z.serializeAws_restJson1DeleteEventSourceMappingCommand=z.serializeAws_restJson1DeleteCodeSigningConfigCommand=z.serializeAws_restJson1DeleteAliasCommand=z.serializeAws_restJson1CreateFunctionUrlConfigCommand=z.serializeAws_restJson1CreateFunctionCommand=z.serializeAws_restJson1CreateEventSourceMappingCommand=z.serializeAws_restJson1CreateCodeSigningConfigCommand=z.serializeAws_restJson1CreateAliasCommand=z.serializeAws_restJson1AddPermissionCommand=z.serializeAws_restJson1AddLayerVersionPermissionCommand=void 0;z.deserializeAws_restJson1ListEventSourceMappingsCommand=z.deserializeAws_restJson1ListCodeSigningConfigsCommand=z.deserializeAws_restJson1ListAliasesCommand=z.deserializeAws_restJson1InvokeAsyncCommand=z.deserializeAws_restJson1InvokeCommand=z.deserializeAws_restJson1GetProvisionedConcurrencyConfigCommand=z.deserializeAws_restJson1GetPolicyCommand=z.deserializeAws_restJson1GetLayerVersionPolicyCommand=z.deserializeAws_restJson1GetLayerVersionByArnCommand=z.deserializeAws_restJson1GetLayerVersionCommand=z.deserializeAws_restJson1GetFunctionUrlConfigCommand=z.deserializeAws_restJson1GetFunctionEventInvokeConfigCommand=z.deserializeAws_restJson1GetFunctionConfigurationCommand=z.deserializeAws_restJson1GetFunctionConcurrencyCommand=z.deserializeAws_restJson1GetFunctionCodeSigningConfigCommand=z.deserializeAws_restJson1GetFunctionCommand=z.deserializeAws_restJson1GetEventSourceMappingCommand=z.deserializeAws_restJson1GetCodeSigningConfigCommand=z.deserializeAws_restJson1GetAliasCommand=z.deserializeAws_restJson1GetAccountSettingsCommand=z.deserializeAws_restJson1DeleteProvisionedConcurrencyConfigCommand=z.deserializeAws_restJson1DeleteLayerVersionCommand=z.deserializeAws_restJson1DeleteFunctionUrlConfigCommand=z.deserializeAws_restJson1DeleteFunctionEventInvokeConfigCommand=z.deserializeAws_restJson1DeleteFunctionConcurrencyCommand=z.deserializeAws_restJson1DeleteFunctionCodeSigningConfigCommand=z.deserializeAws_restJson1DeleteFunctionCommand=z.deserializeAws_restJson1DeleteEventSourceMappingCommand=z.deserializeAws_restJson1DeleteCodeSigningConfigCommand=z.deserializeAws_restJson1DeleteAliasCommand=z.deserializeAws_restJson1CreateFunctionUrlConfigCommand=z.deserializeAws_restJson1CreateFunctionCommand=z.deserializeAws_restJson1CreateEventSourceMappingCommand=z.deserializeAws_restJson1CreateCodeSigningConfigCommand=z.deserializeAws_restJson1CreateAliasCommand=z.deserializeAws_restJson1AddPermissionCommand=z.deserializeAws_restJson1AddLayerVersionPermissionCommand=z.serializeAws_restJson1UpdateFunctionUrlConfigCommand=z.serializeAws_restJson1UpdateFunctionEventInvokeConfigCommand=z.serializeAws_restJson1UpdateFunctionConfigurationCommand=z.serializeAws_restJson1UpdateFunctionCodeCommand=z.serializeAws_restJson1UpdateEventSourceMappingCommand=z.serializeAws_restJson1UpdateCodeSigningConfigCommand=z.serializeAws_restJson1UpdateAliasCommand=z.serializeAws_restJson1UntagResourceCommand=z.serializeAws_restJson1TagResourceCommand=z.serializeAws_restJson1RemovePermissionCommand=z.serializeAws_restJson1RemoveLayerVersionPermissionCommand=z.serializeAws_restJson1PutProvisionedConcurrencyConfigCommand=z.serializeAws_restJson1PutFunctionEventInvokeConfigCommand=void 0;z.deserializeAws_restJson1UpdateFunctionUrlConfigCommand=z.deserializeAws_restJson1UpdateFunctionEventInvokeConfigCommand=z.deserializeAws_restJson1UpdateFunctionConfigurationCommand=z.deserializeAws_restJson1UpdateFunctionCodeCommand=z.deserializeAws_restJson1UpdateEventSourceMappingCommand=z.deserializeAws_restJson1UpdateCodeSigningConfigCommand=z.deserializeAws_restJson1UpdateAliasCommand=z.deserializeAws_restJson1UntagResourceCommand=z.deserializeAws_restJson1TagResourceCommand=z.deserializeAws_restJson1RemovePermissionCommand=z.deserializeAws_restJson1RemoveLayerVersionPermissionCommand=z.deserializeAws_restJson1PutProvisionedConcurrencyConfigCommand=z.deserializeAws_restJson1PutFunctionEventInvokeConfigCommand=z.deserializeAws_restJson1PutFunctionConcurrencyCommand=z.deserializeAws_restJson1PutFunctionCodeSigningConfigCommand=z.deserializeAws_restJson1PublishVersionCommand=z.deserializeAws_restJson1PublishLayerVersionCommand=z.deserializeAws_restJson1ListVersionsByFunctionCommand=z.deserializeAws_restJson1ListTagsCommand=z.deserializeAws_restJson1ListProvisionedConcurrencyConfigsCommand=z.deserializeAws_restJson1ListLayerVersionsCommand=z.deserializeAws_restJson1ListLayersCommand=z.deserializeAws_restJson1ListFunctionUrlConfigsCommand=z.deserializeAws_restJson1ListFunctionsByCodeSigningConfigCommand=z.deserializeAws_restJson1ListFunctionsCommand=z.deserializeAws_restJson1ListFunctionEventInvokeConfigsCommand=void 0;var Pe=Ht(),f=R(),ke=Bv(),gt=Re(),KKe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={"content-type":"application/json"},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy`;if(e.LayerName!==void 0){let u=e.LayerName;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: LayerName.");a=a.replace("{LayerName}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: LayerName.");if(e.VersionNumber!==void 0){let u=e.VersionNumber.toString();if(u.length<=0)throw new Error("Empty value provided for input HTTP label: VersionNumber.");a=a.replace("{VersionNumber}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: VersionNumber.");let c=o({},e.RevisionId!==void 0&&{RevisionId:e.RevisionId}),l;return l=JSON.stringify(o(o(o(o({},e.Action!==void 0&&e.Action!==null&&{Action:e.Action}),e.OrganizationId!==void 0&&e.OrganizationId!==null&&{OrganizationId:e.OrganizationId}),e.Principal!==void 0&&e.Principal!==null&&{Principal:e.Principal}),e.StatementId!==void 0&&e.StatementId!==null&&{StatementId:e.StatementId})),new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"POST",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1AddLayerVersionPermissionCommand=KKe;var WKe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={"content-type":"application/json"},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2015-03-31/functions/{FunctionName}/policy`;if(e.FunctionName!==void 0){let u=e.FunctionName;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c=o({},e.Qualifier!==void 0&&{Qualifier:e.Qualifier}),l;return l=JSON.stringify(o(o(o(o(o(o(o(o(o({},e.Action!==void 0&&e.Action!==null&&{Action:e.Action}),e.EventSourceToken!==void 0&&e.EventSourceToken!==null&&{EventSourceToken:e.EventSourceToken}),e.FunctionUrlAuthType!==void 0&&e.FunctionUrlAuthType!==null&&{FunctionUrlAuthType:e.FunctionUrlAuthType}),e.Principal!==void 0&&e.Principal!==null&&{Principal:e.Principal}),e.PrincipalOrgID!==void 0&&e.PrincipalOrgID!==null&&{PrincipalOrgID:e.PrincipalOrgID}),e.RevisionId!==void 0&&e.RevisionId!==null&&{RevisionId:e.RevisionId}),e.SourceAccount!==void 0&&e.SourceAccount!==null&&{SourceAccount:e.SourceAccount}),e.SourceArn!==void 0&&e.SourceArn!==null&&{SourceArn:e.SourceArn}),e.StatementId!==void 0&&e.StatementId!==null&&{StatementId:e.StatementId})),new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"POST",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1AddPermissionCommand=WKe;var QKe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={"content-type":"application/json"},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2015-03-31/functions/{FunctionName}/aliases`;if(e.FunctionName!==void 0){let l=e.FunctionName;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c;return c=JSON.stringify(o(o(o(o({},e.Description!==void 0&&e.Description!==null&&{Description:e.Description}),e.FunctionVersion!==void 0&&e.FunctionVersion!==null&&{FunctionVersion:e.FunctionVersion}),e.Name!==void 0&&e.Name!==null&&{Name:e.Name}),e.RoutingConfig!==void 0&&e.RoutingConfig!==null&&{RoutingConfig:H7(e.RoutingConfig,t)})),new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"POST",headers:d,path:a,body:c})};z.serializeAws_restJson1CreateAliasCommand=QKe;var YKe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={"content-type":"application/json"},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2020-04-22/code-signing-configs`,c;return c=JSON.stringify(o(o(o({},e.AllowedPublishers!==void 0&&e.AllowedPublishers!==null&&{AllowedPublishers:J7(e.AllowedPublishers,t)}),e.CodeSigningPolicies!==void 0&&e.CodeSigningPolicies!==null&&{CodeSigningPolicies:K7(e.CodeSigningPolicies,t)}),e.Description!==void 0&&e.Description!==null&&{Description:e.Description})),new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"POST",headers:d,path:a,body:c})};z.serializeAws_restJson1CreateCodeSigningConfigCommand=YKe;var ZKe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={"content-type":"application/json"},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2015-03-31/event-source-mappings`,c;return c=JSON.stringify(o(o(o(o(o(o(o(o(o(o(o(o(o(o(o(o(o(o(o({},e.BatchSize!==void 0&&e.BatchSize!==null&&{BatchSize:e.BatchSize}),e.BisectBatchOnFunctionError!==void 0&&e.BisectBatchOnFunctionError!==null&&{BisectBatchOnFunctionError:e.BisectBatchOnFunctionError}),e.DestinationConfig!==void 0&&e.DestinationConfig!==null&&{DestinationConfig:jv(e.DestinationConfig,t)}),e.Enabled!==void 0&&e.Enabled!==null&&{Enabled:e.Enabled}),e.EventSourceArn!==void 0&&e.EventSourceArn!==null&&{EventSourceArn:e.EventSourceArn}),e.FilterCriteria!==void 0&&e.FilterCriteria!==null&&{FilterCriteria:tQ(e.FilterCriteria,t)}),e.FunctionName!==void 0&&e.FunctionName!==null&&{FunctionName:e.FunctionName}),e.FunctionResponseTypes!==void 0&&e.FunctionResponseTypes!==null&&{FunctionResponseTypes:nQ(e.FunctionResponseTypes,t)}),e.MaximumBatchingWindowInSeconds!==void 0&&e.MaximumBatchingWindowInSeconds!==null&&{MaximumBatchingWindowInSeconds:e.MaximumBatchingWindowInSeconds}),e.MaximumRecordAgeInSeconds!==void 0&&e.MaximumRecordAgeInSeconds!==null&&{MaximumRecordAgeInSeconds:e.MaximumRecordAgeInSeconds}),e.MaximumRetryAttempts!==void 0&&e.MaximumRetryAttempts!==null&&{MaximumRetryAttempts:e.MaximumRetryAttempts}),e.ParallelizationFactor!==void 0&&e.ParallelizationFactor!==null&&{ParallelizationFactor:e.ParallelizationFactor}),e.Queues!==void 0&&e.Queues!==null&&{Queues:r4e(e.Queues,t)}),e.SelfManagedEventSource!==void 0&&e.SelfManagedEventSource!==null&&{SelfManagedEventSource:s4e(e.SelfManagedEventSource,t)}),e.SourceAccessConfigurations!==void 0&&e.SourceAccessConfigurations!==null&&{SourceAccessConfigurations:sQ(e.SourceAccessConfigurations,t)}),e.StartingPosition!==void 0&&e.StartingPosition!==null&&{StartingPosition:e.StartingPosition}),e.StartingPositionTimestamp!==void 0&&e.StartingPositionTimestamp!==null&&{StartingPositionTimestamp:Math.round(e.StartingPositionTimestamp.getTime()/1e3)}),e.Topics!==void 0&&e.Topics!==null&&{Topics:c4e(e.Topics,t)}),e.TumblingWindowInSeconds!==void 0&&e.TumblingWindowInSeconds!==null&&{TumblingWindowInSeconds:e.TumblingWindowInSeconds})),new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"POST",headers:d,path:a,body:c})};z.serializeAws_restJson1CreateEventSourceMappingCommand=ZKe;var eWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={"content-type":"application/json"},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2015-03-31/functions`,c;return c=JSON.stringify(o(o(o(o(o(o(o(o(o(o(o(o(o(o(o(o(o(o(o(o(o(o({},e.Architectures!==void 0&&e.Architectures!==null&&{Architectures:X7(e.Architectures,t)}),e.Code!==void 0&&e.Code!==null&&{Code:Z6e(e.Code,t)}),e.CodeSigningConfigArn!==void 0&&e.CodeSigningConfigArn!==null&&{CodeSigningConfigArn:e.CodeSigningConfigArn}),e.DeadLetterConfig!==void 0&&e.DeadLetterConfig!==null&&{DeadLetterConfig:Q7(e.DeadLetterConfig,t)}),e.Description!==void 0&&e.Description!==null&&{Description:e.Description}),e.Environment!==void 0&&e.Environment!==null&&{Environment:Y7(e.Environment,t)}),e.EphemeralStorage!==void 0&&e.EphemeralStorage!==null&&{EphemeralStorage:Z7(e.EphemeralStorage,t)}),e.FileSystemConfigs!==void 0&&e.FileSystemConfigs!==null&&{FileSystemConfigs:eQ(e.FileSystemConfigs,t)}),e.FunctionName!==void 0&&e.FunctionName!==null&&{FunctionName:e.FunctionName}),e.Handler!==void 0&&e.Handler!==null&&{Handler:e.Handler}),e.ImageConfig!==void 0&&e.ImageConfig!==null&&{ImageConfig:rQ(e.ImageConfig,t)}),e.KMSKeyArn!==void 0&&e.KMSKeyArn!==null&&{KMSKeyArn:e.KMSKeyArn}),e.Layers!==void 0&&e.Layers!==null&&{Layers:iQ(e.Layers,t)}),e.MemorySize!==void 0&&e.MemorySize!==null&&{MemorySize:e.MemorySize}),e.PackageType!==void 0&&e.PackageType!==null&&{PackageType:e.PackageType}),e.Publish!==void 0&&e.Publish!==null&&{Publish:e.Publish}),e.Role!==void 0&&e.Role!==null&&{Role:e.Role}),e.Runtime!==void 0&&e.Runtime!==null&&{Runtime:e.Runtime}),e.Tags!==void 0&&e.Tags!==null&&{Tags:oQ(e.Tags,t)}),e.Timeout!==void 0&&e.Timeout!==null&&{Timeout:e.Timeout}),e.TracingConfig!==void 0&&e.TracingConfig!==null&&{TracingConfig:aQ(e.TracingConfig,t)}),e.VpcConfig!==void 0&&e.VpcConfig!==null&&{VpcConfig:dQ(e.VpcConfig,t)})),new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"POST",headers:d,path:a,body:c})};z.serializeAws_restJson1CreateFunctionCommand=eWe;var tWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={"content-type":"application/json"},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2021-10-31/functions/{FunctionName}/url`;if(e.FunctionName!==void 0){let u=e.FunctionName;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c=o({},e.Qualifier!==void 0&&{Qualifier:e.Qualifier}),l;return l=JSON.stringify(o(o({},e.AuthType!==void 0&&e.AuthType!==null&&{AuthType:e.AuthType}),e.Cors!==void 0&&e.Cors!==null&&{Cors:W7(e.Cors,t)})),new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"POST",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1CreateFunctionUrlConfigCommand=tWe;var nWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2015-03-31/functions/{FunctionName}/aliases/{Name}`;if(e.FunctionName!==void 0){let l=e.FunctionName;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: FunctionName.");if(e.Name!==void 0){let l=e.Name;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: Name.");a=a.replace("{Name}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: Name.");let c;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"DELETE",headers:d,path:a,body:c})};z.serializeAws_restJson1DeleteAliasCommand=nWe;var rWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2020-04-22/code-signing-configs/{CodeSigningConfigArn}`;if(e.CodeSigningConfigArn!==void 0){let l=e.CodeSigningConfigArn;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: CodeSigningConfigArn.");a=a.replace("{CodeSigningConfigArn}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: CodeSigningConfigArn.");let c;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"DELETE",headers:d,path:a,body:c})};z.serializeAws_restJson1DeleteCodeSigningConfigCommand=rWe;var iWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2015-03-31/event-source-mappings/{UUID}`;if(e.UUID!==void 0){let l=e.UUID;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: UUID.");a=a.replace("{UUID}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: UUID.");let c;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"DELETE",headers:d,path:a,body:c})};z.serializeAws_restJson1DeleteEventSourceMappingCommand=iWe;var sWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2015-03-31/functions/{FunctionName}`;if(e.FunctionName!==void 0){let u=e.FunctionName;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c=o({},e.Qualifier!==void 0&&{Qualifier:e.Qualifier}),l;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"DELETE",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1DeleteFunctionCommand=sWe;var oWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2020-06-30/functions/{FunctionName}/code-signing-config`;if(e.FunctionName!==void 0){let l=e.FunctionName;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"DELETE",headers:d,path:a,body:c})};z.serializeAws_restJson1DeleteFunctionCodeSigningConfigCommand=oWe;var aWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2017-10-31/functions/{FunctionName}/concurrency`;if(e.FunctionName!==void 0){let l=e.FunctionName;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"DELETE",headers:d,path:a,body:c})};z.serializeAws_restJson1DeleteFunctionConcurrencyCommand=aWe;var dWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2019-09-25/functions/{FunctionName}/event-invoke-config`;if(e.FunctionName!==void 0){let u=e.FunctionName;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c=o({},e.Qualifier!==void 0&&{Qualifier:e.Qualifier}),l;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"DELETE",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1DeleteFunctionEventInvokeConfigCommand=dWe;var cWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2021-10-31/functions/{FunctionName}/url`;if(e.FunctionName!==void 0){let u=e.FunctionName;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c=o({},e.Qualifier!==void 0&&{Qualifier:e.Qualifier}),l;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"DELETE",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1DeleteFunctionUrlConfigCommand=cWe;var lWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2018-10-31/layers/{LayerName}/versions/{VersionNumber}`;if(e.LayerName!==void 0){let l=e.LayerName;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: LayerName.");a=a.replace("{LayerName}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: LayerName.");if(e.VersionNumber!==void 0){let l=e.VersionNumber.toString();if(l.length<=0)throw new Error("Empty value provided for input HTTP label: VersionNumber.");a=a.replace("{VersionNumber}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: VersionNumber.");let c;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"DELETE",headers:d,path:a,body:c})};z.serializeAws_restJson1DeleteLayerVersionCommand=lWe;var uWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2019-09-30/functions/{FunctionName}/provisioned-concurrency`;if(e.FunctionName!==void 0){let u=e.FunctionName;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c=o({},e.Qualifier!==void 0&&{Qualifier:e.Qualifier}),l;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"DELETE",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1DeleteProvisionedConcurrencyConfigCommand=uWe;var mWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={"content-type":"application/json"},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2016-08-19/account-settings`,c;return c="",new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,body:c})};z.serializeAws_restJson1GetAccountSettingsCommand=mWe;var fWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2015-03-31/functions/{FunctionName}/aliases/{Name}`;if(e.FunctionName!==void 0){let l=e.FunctionName;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: FunctionName.");if(e.Name!==void 0){let l=e.Name;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: Name.");a=a.replace("{Name}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: Name.");let c;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,body:c})};z.serializeAws_restJson1GetAliasCommand=fWe;var pWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2020-04-22/code-signing-configs/{CodeSigningConfigArn}`;if(e.CodeSigningConfigArn!==void 0){let l=e.CodeSigningConfigArn;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: CodeSigningConfigArn.");a=a.replace("{CodeSigningConfigArn}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: CodeSigningConfigArn.");let c;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,body:c})};z.serializeAws_restJson1GetCodeSigningConfigCommand=pWe;var gWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2015-03-31/event-source-mappings/{UUID}`;if(e.UUID!==void 0){let l=e.UUID;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: UUID.");a=a.replace("{UUID}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: UUID.");let c;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,body:c})};z.serializeAws_restJson1GetEventSourceMappingCommand=gWe;var hWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2015-03-31/functions/{FunctionName}`;if(e.FunctionName!==void 0){let u=e.FunctionName;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c=o({},e.Qualifier!==void 0&&{Qualifier:e.Qualifier}),l;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1GetFunctionCommand=hWe;var wWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2020-06-30/functions/{FunctionName}/code-signing-config`;if(e.FunctionName!==void 0){let l=e.FunctionName;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,body:c})};z.serializeAws_restJson1GetFunctionCodeSigningConfigCommand=wWe;var yWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2019-09-30/functions/{FunctionName}/concurrency`;if(e.FunctionName!==void 0){let l=e.FunctionName;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,body:c})};z.serializeAws_restJson1GetFunctionConcurrencyCommand=yWe;var SWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2015-03-31/functions/{FunctionName}/configuration`;if(e.FunctionName!==void 0){let u=e.FunctionName;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c=o({},e.Qualifier!==void 0&&{Qualifier:e.Qualifier}),l;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1GetFunctionConfigurationCommand=SWe;var _We=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2019-09-25/functions/{FunctionName}/event-invoke-config`;if(e.FunctionName!==void 0){let u=e.FunctionName;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c=o({},e.Qualifier!==void 0&&{Qualifier:e.Qualifier}),l;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1GetFunctionEventInvokeConfigCommand=_We;var vWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2021-10-31/functions/{FunctionName}/url`;if(e.FunctionName!==void 0){let u=e.FunctionName;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c=o({},e.Qualifier!==void 0&&{Qualifier:e.Qualifier}),l;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1GetFunctionUrlConfigCommand=vWe;var CWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2018-10-31/layers/{LayerName}/versions/{VersionNumber}`;if(e.LayerName!==void 0){let l=e.LayerName;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: LayerName.");a=a.replace("{LayerName}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: LayerName.");if(e.VersionNumber!==void 0){let l=e.VersionNumber.toString();if(l.length<=0)throw new Error("Empty value provided for input HTTP label: VersionNumber.");a=a.replace("{VersionNumber}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: VersionNumber.");let c;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,body:c})};z.serializeAws_restJson1GetLayerVersionCommand=CWe;var EWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2018-10-31/layers`,c=o({find:"LayerVersion"},e.Arn!==void 0&&{Arn:e.Arn}),l;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1GetLayerVersionByArnCommand=EWe;var AWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy`;if(e.LayerName!==void 0){let l=e.LayerName;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: LayerName.");a=a.replace("{LayerName}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: LayerName.");if(e.VersionNumber!==void 0){let l=e.VersionNumber.toString();if(l.length<=0)throw new Error("Empty value provided for input HTTP label: VersionNumber.");a=a.replace("{VersionNumber}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: VersionNumber.");let c;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,body:c})};z.serializeAws_restJson1GetLayerVersionPolicyCommand=AWe;var xWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2015-03-31/functions/{FunctionName}/policy`;if(e.FunctionName!==void 0){let u=e.FunctionName;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c=o({},e.Qualifier!==void 0&&{Qualifier:e.Qualifier}),l;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1GetPolicyCommand=xWe;var bWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2019-09-30/functions/{FunctionName}/provisioned-concurrency`;if(e.FunctionName!==void 0){let u=e.FunctionName;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c=o({},e.Qualifier!==void 0&&{Qualifier:e.Qualifier}),l;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1GetProvisionedConcurrencyConfigCommand=bWe;var RWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d=o(o(o({"content-type":"application/octet-stream"},rq(e.InvocationType)&&{"x-amz-invocation-type":e.InvocationType}),rq(e.LogType)&&{"x-amz-log-type":e.LogType}),rq(e.ClientContext)&&{"x-amz-client-context":e.ClientContext}),a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2015-03-31/functions/{FunctionName}/invocations`;if(e.FunctionName!==void 0){let u=e.FunctionName;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c=o({},e.Qualifier!==void 0&&{Qualifier:e.Qualifier}),l;return e.Payload!==void 0&&(l=e.Payload),new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"POST",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1InvokeCommand=RWe;var TWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={"content-type":"application/octet-stream"},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2014-11-13/functions/{FunctionName}/invoke-async`;if(e.FunctionName!==void 0){let l=e.FunctionName;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c;return e.InvokeArgs!==void 0&&(c=e.InvokeArgs),new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"POST",headers:d,path:a,body:c})};z.serializeAws_restJson1InvokeAsyncCommand=TWe;var IWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2015-03-31/functions/{FunctionName}/aliases`;if(e.FunctionName!==void 0){let u=e.FunctionName;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c=o(o(o({},e.FunctionVersion!==void 0&&{FunctionVersion:e.FunctionVersion}),e.Marker!==void 0&&{Marker:e.Marker}),e.MaxItems!==void 0&&{MaxItems:e.MaxItems.toString()}),l;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1ListAliasesCommand=IWe;var NWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2020-04-22/code-signing-configs`,c=o(o({},e.Marker!==void 0&&{Marker:e.Marker}),e.MaxItems!==void 0&&{MaxItems:e.MaxItems.toString()}),l;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1ListCodeSigningConfigsCommand=NWe;var PWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2015-03-31/event-source-mappings`,c=o(o(o(o({},e.EventSourceArn!==void 0&&{EventSourceArn:e.EventSourceArn}),e.FunctionName!==void 0&&{FunctionName:e.FunctionName}),e.Marker!==void 0&&{Marker:e.Marker}),e.MaxItems!==void 0&&{MaxItems:e.MaxItems.toString()}),l;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1ListEventSourceMappingsCommand=PWe;var kWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2019-09-25/functions/{FunctionName}/event-invoke-config/list`;if(e.FunctionName!==void 0){let u=e.FunctionName;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c=o(o({},e.Marker!==void 0&&{Marker:e.Marker}),e.MaxItems!==void 0&&{MaxItems:e.MaxItems.toString()}),l;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1ListFunctionEventInvokeConfigsCommand=kWe;var zWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2015-03-31/functions`,c=o(o(o(o({},e.MasterRegion!==void 0&&{MasterRegion:e.MasterRegion}),e.FunctionVersion!==void 0&&{FunctionVersion:e.FunctionVersion}),e.Marker!==void 0&&{Marker:e.Marker}),e.MaxItems!==void 0&&{MaxItems:e.MaxItems.toString()}),l;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1ListFunctionsCommand=zWe;var qWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2020-04-22/code-signing-configs/{CodeSigningConfigArn}/functions`;if(e.CodeSigningConfigArn!==void 0){let u=e.CodeSigningConfigArn;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: CodeSigningConfigArn.");a=a.replace("{CodeSigningConfigArn}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: CodeSigningConfigArn.");let c=o(o({},e.Marker!==void 0&&{Marker:e.Marker}),e.MaxItems!==void 0&&{MaxItems:e.MaxItems.toString()}),l;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1ListFunctionsByCodeSigningConfigCommand=qWe;var LWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2021-10-31/functions/{FunctionName}/urls`;if(e.FunctionName!==void 0){let u=e.FunctionName;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c=o(o({},e.Marker!==void 0&&{Marker:e.Marker}),e.MaxItems!==void 0&&{MaxItems:e.MaxItems.toString()}),l;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1ListFunctionUrlConfigsCommand=LWe;var DWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2018-10-31/layers`,c=o(o(o(o({},e.CompatibleRuntime!==void 0&&{CompatibleRuntime:e.CompatibleRuntime}),e.Marker!==void 0&&{Marker:e.Marker}),e.MaxItems!==void 0&&{MaxItems:e.MaxItems.toString()}),e.CompatibleArchitecture!==void 0&&{CompatibleArchitecture:e.CompatibleArchitecture}),l;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1ListLayersCommand=DWe;var MWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2018-10-31/layers/{LayerName}/versions`;if(e.LayerName!==void 0){let u=e.LayerName;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: LayerName.");a=a.replace("{LayerName}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: LayerName.");let c=o(o(o(o({},e.CompatibleRuntime!==void 0&&{CompatibleRuntime:e.CompatibleRuntime}),e.Marker!==void 0&&{Marker:e.Marker}),e.MaxItems!==void 0&&{MaxItems:e.MaxItems.toString()}),e.CompatibleArchitecture!==void 0&&{CompatibleArchitecture:e.CompatibleArchitecture}),l;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1ListLayerVersionsCommand=MWe;var BWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2019-09-30/functions/{FunctionName}/provisioned-concurrency`;if(e.FunctionName!==void 0){let u=e.FunctionName;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c=o(o({List:"ALL"},e.Marker!==void 0&&{Marker:e.Marker}),e.MaxItems!==void 0&&{MaxItems:e.MaxItems.toString()}),l;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1ListProvisionedConcurrencyConfigsCommand=BWe;var OWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2017-03-31/tags/{Resource}`;if(e.Resource!==void 0){let l=e.Resource;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: Resource.");a=a.replace("{Resource}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: Resource.");let c;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,body:c})};z.serializeAws_restJson1ListTagsCommand=OWe;var FWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2015-03-31/functions/{FunctionName}/versions`;if(e.FunctionName!==void 0){let u=e.FunctionName;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c=o(o({},e.Marker!==void 0&&{Marker:e.Marker}),e.MaxItems!==void 0&&{MaxItems:e.MaxItems.toString()}),l;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1ListVersionsByFunctionCommand=FWe;var jWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={"content-type":"application/json"},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2018-10-31/layers/{LayerName}/versions`;if(e.LayerName!==void 0){let l=e.LayerName;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: LayerName.");a=a.replace("{LayerName}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: LayerName.");let c;return c=JSON.stringify(o(o(o(o(o({},e.CompatibleArchitectures!==void 0&&e.CompatibleArchitectures!==null&&{CompatibleArchitectures:$6e(e.CompatibleArchitectures,t)}),e.CompatibleRuntimes!==void 0&&e.CompatibleRuntimes!==null&&{CompatibleRuntimes:H6e(e.CompatibleRuntimes,t)}),e.Content!==void 0&&e.Content!==null&&{Content:e4e(e.Content,t)}),e.Description!==void 0&&e.Description!==null&&{Description:e.Description}),e.LicenseInfo!==void 0&&e.LicenseInfo!==null&&{LicenseInfo:e.LicenseInfo})),new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"POST",headers:d,path:a,body:c})};z.serializeAws_restJson1PublishLayerVersionCommand=jWe;var UWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={"content-type":"application/json"},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2015-03-31/functions/{FunctionName}/versions`;if(e.FunctionName!==void 0){let l=e.FunctionName;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c;return c=JSON.stringify(o(o(o({},e.CodeSha256!==void 0&&e.CodeSha256!==null&&{CodeSha256:e.CodeSha256}),e.Description!==void 0&&e.Description!==null&&{Description:e.Description}),e.RevisionId!==void 0&&e.RevisionId!==null&&{RevisionId:e.RevisionId})),new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"POST",headers:d,path:a,body:c})};z.serializeAws_restJson1PublishVersionCommand=UWe;var GWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={"content-type":"application/json"},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2020-06-30/functions/{FunctionName}/code-signing-config`;if(e.FunctionName!==void 0){let l=e.FunctionName;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c;return c=JSON.stringify(o({},e.CodeSigningConfigArn!==void 0&&e.CodeSigningConfigArn!==null&&{CodeSigningConfigArn:e.CodeSigningConfigArn})),new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"PUT",headers:d,path:a,body:c})};z.serializeAws_restJson1PutFunctionCodeSigningConfigCommand=GWe;var VWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={"content-type":"application/json"},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2017-10-31/functions/{FunctionName}/concurrency`;if(e.FunctionName!==void 0){let l=e.FunctionName;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c;return c=JSON.stringify(o({},e.ReservedConcurrentExecutions!==void 0&&e.ReservedConcurrentExecutions!==null&&{ReservedConcurrentExecutions:e.ReservedConcurrentExecutions})),new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"PUT",headers:d,path:a,body:c})};z.serializeAws_restJson1PutFunctionConcurrencyCommand=VWe;var $We=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={"content-type":"application/json"},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2019-09-25/functions/{FunctionName}/event-invoke-config`;if(e.FunctionName!==void 0){let u=e.FunctionName;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c=o({},e.Qualifier!==void 0&&{Qualifier:e.Qualifier}),l;return l=JSON.stringify(o(o(o({},e.DestinationConfig!==void 0&&e.DestinationConfig!==null&&{DestinationConfig:jv(e.DestinationConfig,t)}),e.MaximumEventAgeInSeconds!==void 0&&e.MaximumEventAgeInSeconds!==null&&{MaximumEventAgeInSeconds:e.MaximumEventAgeInSeconds}),e.MaximumRetryAttempts!==void 0&&e.MaximumRetryAttempts!==null&&{MaximumRetryAttempts:e.MaximumRetryAttempts})),new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"PUT",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1PutFunctionEventInvokeConfigCommand=$We;var HWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={"content-type":"application/json"},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2019-09-30/functions/{FunctionName}/provisioned-concurrency`;if(e.FunctionName!==void 0){let u=e.FunctionName;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c=o({},e.Qualifier!==void 0&&{Qualifier:e.Qualifier}),l;return l=JSON.stringify(o({},e.ProvisionedConcurrentExecutions!==void 0&&e.ProvisionedConcurrentExecutions!==null&&{ProvisionedConcurrentExecutions:e.ProvisionedConcurrentExecutions})),new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"PUT",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1PutProvisionedConcurrencyConfigCommand=HWe;var JWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy/{StatementId}`;if(e.LayerName!==void 0){let u=e.LayerName;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: LayerName.");a=a.replace("{LayerName}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: LayerName.");if(e.VersionNumber!==void 0){let u=e.VersionNumber.toString();if(u.length<=0)throw new Error("Empty value provided for input HTTP label: VersionNumber.");a=a.replace("{VersionNumber}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: VersionNumber.");if(e.StatementId!==void 0){let u=e.StatementId;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: StatementId.");a=a.replace("{StatementId}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: StatementId.");let c=o({},e.RevisionId!==void 0&&{RevisionId:e.RevisionId}),l;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"DELETE",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1RemoveLayerVersionPermissionCommand=JWe;var XWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2015-03-31/functions/{FunctionName}/policy/{StatementId}`;if(e.FunctionName!==void 0){let u=e.FunctionName;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: FunctionName.");if(e.StatementId!==void 0){let u=e.StatementId;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: StatementId.");a=a.replace("{StatementId}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: StatementId.");let c=o(o({},e.Qualifier!==void 0&&{Qualifier:e.Qualifier}),e.RevisionId!==void 0&&{RevisionId:e.RevisionId}),l;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"DELETE",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1RemovePermissionCommand=XWe;var KWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={"content-type":"application/json"},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2017-03-31/tags/{Resource}`;if(e.Resource!==void 0){let l=e.Resource;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: Resource.");a=a.replace("{Resource}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: Resource.");let c;return c=JSON.stringify(o({},e.Tags!==void 0&&e.Tags!==null&&{Tags:oQ(e.Tags,t)})),new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"POST",headers:d,path:a,body:c})};z.serializeAws_restJson1TagResourceCommand=KWe;var WWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2017-03-31/tags/{Resource}`;if(e.Resource!==void 0){let u=e.Resource;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: Resource.");a=a.replace("{Resource}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: Resource.");let c=o({},e.TagKeys!==void 0&&{tagKeys:(e.TagKeys||[]).map(u=>u)}),l;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"DELETE",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1UntagResourceCommand=WWe;var QWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={"content-type":"application/json"},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2015-03-31/functions/{FunctionName}/aliases/{Name}`;if(e.FunctionName!==void 0){let l=e.FunctionName;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: FunctionName.");if(e.Name!==void 0){let l=e.Name;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: Name.");a=a.replace("{Name}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: Name.");let c;return c=JSON.stringify(o(o(o(o({},e.Description!==void 0&&e.Description!==null&&{Description:e.Description}),e.FunctionVersion!==void 0&&e.FunctionVersion!==null&&{FunctionVersion:e.FunctionVersion}),e.RevisionId!==void 0&&e.RevisionId!==null&&{RevisionId:e.RevisionId}),e.RoutingConfig!==void 0&&e.RoutingConfig!==null&&{RoutingConfig:H7(e.RoutingConfig,t)})),new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"PUT",headers:d,path:a,body:c})};z.serializeAws_restJson1UpdateAliasCommand=QWe;var YWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={"content-type":"application/json"},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2020-04-22/code-signing-configs/{CodeSigningConfigArn}`;if(e.CodeSigningConfigArn!==void 0){let l=e.CodeSigningConfigArn;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: CodeSigningConfigArn.");a=a.replace("{CodeSigningConfigArn}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: CodeSigningConfigArn.");let c;return c=JSON.stringify(o(o(o({},e.AllowedPublishers!==void 0&&e.AllowedPublishers!==null&&{AllowedPublishers:J7(e.AllowedPublishers,t)}),e.CodeSigningPolicies!==void 0&&e.CodeSigningPolicies!==null&&{CodeSigningPolicies:K7(e.CodeSigningPolicies,t)}),e.Description!==void 0&&e.Description!==null&&{Description:e.Description})),new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"PUT",headers:d,path:a,body:c})};z.serializeAws_restJson1UpdateCodeSigningConfigCommand=YWe;var ZWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={"content-type":"application/json"},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2015-03-31/event-source-mappings/{UUID}`;if(e.UUID!==void 0){let l=e.UUID;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: UUID.");a=a.replace("{UUID}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: UUID.");let c;return c=JSON.stringify(o(o(o(o(o(o(o(o(o(o(o(o(o({},e.BatchSize!==void 0&&e.BatchSize!==null&&{BatchSize:e.BatchSize}),e.BisectBatchOnFunctionError!==void 0&&e.BisectBatchOnFunctionError!==null&&{BisectBatchOnFunctionError:e.BisectBatchOnFunctionError}),e.DestinationConfig!==void 0&&e.DestinationConfig!==null&&{DestinationConfig:jv(e.DestinationConfig,t)}),e.Enabled!==void 0&&e.Enabled!==null&&{Enabled:e.Enabled}),e.FilterCriteria!==void 0&&e.FilterCriteria!==null&&{FilterCriteria:tQ(e.FilterCriteria,t)}),e.FunctionName!==void 0&&e.FunctionName!==null&&{FunctionName:e.FunctionName}),e.FunctionResponseTypes!==void 0&&e.FunctionResponseTypes!==null&&{FunctionResponseTypes:nQ(e.FunctionResponseTypes,t)}),e.MaximumBatchingWindowInSeconds!==void 0&&e.MaximumBatchingWindowInSeconds!==null&&{MaximumBatchingWindowInSeconds:e.MaximumBatchingWindowInSeconds}),e.MaximumRecordAgeInSeconds!==void 0&&e.MaximumRecordAgeInSeconds!==null&&{MaximumRecordAgeInSeconds:e.MaximumRecordAgeInSeconds}),e.MaximumRetryAttempts!==void 0&&e.MaximumRetryAttempts!==null&&{MaximumRetryAttempts:e.MaximumRetryAttempts}),e.ParallelizationFactor!==void 0&&e.ParallelizationFactor!==null&&{ParallelizationFactor:e.ParallelizationFactor}),e.SourceAccessConfigurations!==void 0&&e.SourceAccessConfigurations!==null&&{SourceAccessConfigurations:sQ(e.SourceAccessConfigurations,t)}),e.TumblingWindowInSeconds!==void 0&&e.TumblingWindowInSeconds!==null&&{TumblingWindowInSeconds:e.TumblingWindowInSeconds})),new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"PUT",headers:d,path:a,body:c})};z.serializeAws_restJson1UpdateEventSourceMappingCommand=ZWe;var e8e=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={"content-type":"application/json"},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2015-03-31/functions/{FunctionName}/code`;if(e.FunctionName!==void 0){let l=e.FunctionName;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c;return c=JSON.stringify(o(o(o(o(o(o(o(o(o({},e.Architectures!==void 0&&e.Architectures!==null&&{Architectures:X7(e.Architectures,t)}),e.DryRun!==void 0&&e.DryRun!==null&&{DryRun:e.DryRun}),e.ImageUri!==void 0&&e.ImageUri!==null&&{ImageUri:e.ImageUri}),e.Publish!==void 0&&e.Publish!==null&&{Publish:e.Publish}),e.RevisionId!==void 0&&e.RevisionId!==null&&{RevisionId:e.RevisionId}),e.S3Bucket!==void 0&&e.S3Bucket!==null&&{S3Bucket:e.S3Bucket}),e.S3Key!==void 0&&e.S3Key!==null&&{S3Key:e.S3Key}),e.S3ObjectVersion!==void 0&&e.S3ObjectVersion!==null&&{S3ObjectVersion:e.S3ObjectVersion}),e.ZipFile!==void 0&&e.ZipFile!==null&&{ZipFile:t.base64Encoder(e.ZipFile)})),new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"PUT",headers:d,path:a,body:c})};z.serializeAws_restJson1UpdateFunctionCodeCommand=e8e;var t8e=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={"content-type":"application/json"},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2015-03-31/functions/{FunctionName}/configuration`;if(e.FunctionName!==void 0){let l=e.FunctionName;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c;return c=JSON.stringify(o(o(o(o(o(o(o(o(o(o(o(o(o(o(o(o({},e.DeadLetterConfig!==void 0&&e.DeadLetterConfig!==null&&{DeadLetterConfig:Q7(e.DeadLetterConfig,t)}),e.Description!==void 0&&e.Description!==null&&{Description:e.Description}),e.Environment!==void 0&&e.Environment!==null&&{Environment:Y7(e.Environment,t)}),e.EphemeralStorage!==void 0&&e.EphemeralStorage!==null&&{EphemeralStorage:Z7(e.EphemeralStorage,t)}),e.FileSystemConfigs!==void 0&&e.FileSystemConfigs!==null&&{FileSystemConfigs:eQ(e.FileSystemConfigs,t)}),e.Handler!==void 0&&e.Handler!==null&&{Handler:e.Handler}),e.ImageConfig!==void 0&&e.ImageConfig!==null&&{ImageConfig:rQ(e.ImageConfig,t)}),e.KMSKeyArn!==void 0&&e.KMSKeyArn!==null&&{KMSKeyArn:e.KMSKeyArn}),e.Layers!==void 0&&e.Layers!==null&&{Layers:iQ(e.Layers,t)}),e.MemorySize!==void 0&&e.MemorySize!==null&&{MemorySize:e.MemorySize}),e.RevisionId!==void 0&&e.RevisionId!==null&&{RevisionId:e.RevisionId}),e.Role!==void 0&&e.Role!==null&&{Role:e.Role}),e.Runtime!==void 0&&e.Runtime!==null&&{Runtime:e.Runtime}),e.Timeout!==void 0&&e.Timeout!==null&&{Timeout:e.Timeout}),e.TracingConfig!==void 0&&e.TracingConfig!==null&&{TracingConfig:aQ(e.TracingConfig,t)}),e.VpcConfig!==void 0&&e.VpcConfig!==null&&{VpcConfig:dQ(e.VpcConfig,t)})),new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"PUT",headers:d,path:a,body:c})};z.serializeAws_restJson1UpdateFunctionConfigurationCommand=t8e;var n8e=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={"content-type":"application/json"},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2019-09-25/functions/{FunctionName}/event-invoke-config`;if(e.FunctionName!==void 0){let u=e.FunctionName;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c=o({},e.Qualifier!==void 0&&{Qualifier:e.Qualifier}),l;return l=JSON.stringify(o(o(o({},e.DestinationConfig!==void 0&&e.DestinationConfig!==null&&{DestinationConfig:jv(e.DestinationConfig,t)}),e.MaximumEventAgeInSeconds!==void 0&&e.MaximumEventAgeInSeconds!==null&&{MaximumEventAgeInSeconds:e.MaximumEventAgeInSeconds}),e.MaximumRetryAttempts!==void 0&&e.MaximumRetryAttempts!==null&&{MaximumRetryAttempts:e.MaximumRetryAttempts})),new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"POST",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1UpdateFunctionEventInvokeConfigCommand=n8e;var r8e=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={"content-type":"application/json"},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2021-10-31/functions/{FunctionName}/url`;if(e.FunctionName!==void 0){let u=e.FunctionName;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c=o({},e.Qualifier!==void 0&&{Qualifier:e.Qualifier}),l;return l=JSON.stringify(o(o({},e.AuthType!==void 0&&e.AuthType!==null&&{AuthType:e.AuthType}),e.Cors!==void 0&&e.Cors!==null&&{Cors:W7(e.Cors,t)})),new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"PUT",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1UpdateFunctionUrlConfigCommand=r8e;var i8e=async(e,t)=>{if(e.statusCode!==201&&e.statusCode>=300)return s8e(e,t);let n={$metadata:O(e),RevisionId:void 0,Statement:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.RevisionId!==void 0&&r.RevisionId!==null&&(n.RevisionId=(0,f.expectString)(r.RevisionId)),r.Statement!==void 0&&r.Statement!==null&&(n.Statement=(0,f.expectString)(r.Statement)),Promise.resolve(n)};z.deserializeAws_restJson1AddLayerVersionPermissionCommand=i8e;var s8e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"PolicyLengthExceededException":case"com.amazonaws.lambda#PolicyLengthExceededException":throw await V7(n,t);case"PreconditionFailedException":case"com.amazonaws.lambda#PreconditionFailedException":throw await ao(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},o8e=async(e,t)=>{if(e.statusCode!==201&&e.statusCode>=300)return a8e(e,t);let n={$metadata:O(e),Statement:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.Statement!==void 0&&r.Statement!==null&&(n.Statement=(0,f.expectString)(r.Statement)),Promise.resolve(n)};z.deserializeAws_restJson1AddPermissionCommand=o8e;var a8e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"PolicyLengthExceededException":case"com.amazonaws.lambda#PolicyLengthExceededException":throw await V7(n,t);case"PreconditionFailedException":case"com.amazonaws.lambda#PreconditionFailedException":throw await ao(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},d8e=async(e,t)=>{if(e.statusCode!==201&&e.statusCode>=300)return c8e(e,t);let n={$metadata:O(e),AliasArn:void 0,Description:void 0,FunctionVersion:void 0,Name:void 0,RevisionId:void 0,RoutingConfig:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.AliasArn!==void 0&&r.AliasArn!==null&&(n.AliasArn=(0,f.expectString)(r.AliasArn)),r.Description!==void 0&&r.Description!==null&&(n.Description=(0,f.expectString)(r.Description)),r.FunctionVersion!==void 0&&r.FunctionVersion!==null&&(n.FunctionVersion=(0,f.expectString)(r.FunctionVersion)),r.Name!==void 0&&r.Name!==null&&(n.Name=(0,f.expectString)(r.Name)),r.RevisionId!==void 0&&r.RevisionId!==null&&(n.RevisionId=(0,f.expectString)(r.RevisionId)),r.RoutingConfig!==void 0&&r.RoutingConfig!==null&&(n.RoutingConfig=Uv(r.RoutingConfig,t)),Promise.resolve(n)};z.deserializeAws_restJson1CreateAliasCommand=d8e;var c8e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},l8e=async(e,t)=>{if(e.statusCode!==201&&e.statusCode>=300)return u8e(e,t);let n={$metadata:O(e),CodeSigningConfig:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.CodeSigningConfig!==void 0&&r.CodeSigningConfig!==null&&(n.CodeSigningConfig=Gv(r.CodeSigningConfig,t)),Promise.resolve(n)};z.deserializeAws_restJson1CreateCodeSigningConfigCommand=l8e;var u8e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},m8e=async(e,t)=>{if(e.statusCode!==202&&e.statusCode>=300)return f8e(e,t);let n={$metadata:O(e),BatchSize:void 0,BisectBatchOnFunctionError:void 0,DestinationConfig:void 0,EventSourceArn:void 0,FilterCriteria:void 0,FunctionArn:void 0,FunctionResponseTypes:void 0,LastModified:void 0,LastProcessingResult:void 0,MaximumBatchingWindowInSeconds:void 0,MaximumRecordAgeInSeconds:void 0,MaximumRetryAttempts:void 0,ParallelizationFactor:void 0,Queues:void 0,SelfManagedEventSource:void 0,SourceAccessConfigurations:void 0,StartingPosition:void 0,StartingPositionTimestamp:void 0,State:void 0,StateTransitionReason:void 0,Topics:void 0,TumblingWindowInSeconds:void 0,UUID:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.BatchSize!==void 0&&r.BatchSize!==null&&(n.BatchSize=(0,f.expectInt32)(r.BatchSize)),r.BisectBatchOnFunctionError!==void 0&&r.BisectBatchOnFunctionError!==null&&(n.BisectBatchOnFunctionError=(0,f.expectBoolean)(r.BisectBatchOnFunctionError)),r.DestinationConfig!==void 0&&r.DestinationConfig!==null&&(n.DestinationConfig=as(r.DestinationConfig,t)),r.EventSourceArn!==void 0&&r.EventSourceArn!==null&&(n.EventSourceArn=(0,f.expectString)(r.EventSourceArn)),r.FilterCriteria!==void 0&&r.FilterCriteria!==null&&(n.FilterCriteria=Um(r.FilterCriteria,t)),r.FunctionArn!==void 0&&r.FunctionArn!==null&&(n.FunctionArn=(0,f.expectString)(r.FunctionArn)),r.FunctionResponseTypes!==void 0&&r.FunctionResponseTypes!==null&&(n.FunctionResponseTypes=Gm(r.FunctionResponseTypes,t)),r.LastModified!==void 0&&r.LastModified!==null&&(n.LastModified=(0,f.expectNonNull)((0,f.parseEpochTimestamp)((0,f.expectNumber)(r.LastModified)))),r.LastProcessingResult!==void 0&&r.LastProcessingResult!==null&&(n.LastProcessingResult=(0,f.expectString)(r.LastProcessingResult)),r.MaximumBatchingWindowInSeconds!==void 0&&r.MaximumBatchingWindowInSeconds!==null&&(n.MaximumBatchingWindowInSeconds=(0,f.expectInt32)(r.MaximumBatchingWindowInSeconds)),r.MaximumRecordAgeInSeconds!==void 0&&r.MaximumRecordAgeInSeconds!==null&&(n.MaximumRecordAgeInSeconds=(0,f.expectInt32)(r.MaximumRecordAgeInSeconds)),r.MaximumRetryAttempts!==void 0&&r.MaximumRetryAttempts!==null&&(n.MaximumRetryAttempts=(0,f.expectInt32)(r.MaximumRetryAttempts)),r.ParallelizationFactor!==void 0&&r.ParallelizationFactor!==null&&(n.ParallelizationFactor=(0,f.expectInt32)(r.ParallelizationFactor)),r.Queues!==void 0&&r.Queues!==null&&(n.Queues=Vm(r.Queues,t)),r.SelfManagedEventSource!==void 0&&r.SelfManagedEventSource!==null&&(n.SelfManagedEventSource=$m(r.SelfManagedEventSource,t)),r.SourceAccessConfigurations!==void 0&&r.SourceAccessConfigurations!==null&&(n.SourceAccessConfigurations=Hm(r.SourceAccessConfigurations,t)),r.StartingPosition!==void 0&&r.StartingPosition!==null&&(n.StartingPosition=(0,f.expectString)(r.StartingPosition)),r.StartingPositionTimestamp!==void 0&&r.StartingPositionTimestamp!==null&&(n.StartingPositionTimestamp=(0,f.expectNonNull)((0,f.parseEpochTimestamp)((0,f.expectNumber)(r.StartingPositionTimestamp)))),r.State!==void 0&&r.State!==null&&(n.State=(0,f.expectString)(r.State)),r.StateTransitionReason!==void 0&&r.StateTransitionReason!==null&&(n.StateTransitionReason=(0,f.expectString)(r.StateTransitionReason)),r.Topics!==void 0&&r.Topics!==null&&(n.Topics=Jm(r.Topics,t)),r.TumblingWindowInSeconds!==void 0&&r.TumblingWindowInSeconds!==null&&(n.TumblingWindowInSeconds=(0,f.expectInt32)(r.TumblingWindowInSeconds)),r.UUID!==void 0&&r.UUID!==null&&(n.UUID=(0,f.expectString)(r.UUID)),Promise.resolve(n)};z.deserializeAws_restJson1CreateEventSourceMappingCommand=m8e;var f8e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},p8e=async(e,t)=>{if(e.statusCode!==201&&e.statusCode>=300)return g8e(e,t);let n={$metadata:O(e),Architectures:void 0,CodeSha256:void 0,CodeSize:void 0,DeadLetterConfig:void 0,Description:void 0,Environment:void 0,EphemeralStorage:void 0,FileSystemConfigs:void 0,FunctionArn:void 0,FunctionName:void 0,Handler:void 0,ImageConfigResponse:void 0,KMSKeyArn:void 0,LastModified:void 0,LastUpdateStatus:void 0,LastUpdateStatusReason:void 0,LastUpdateStatusReasonCode:void 0,Layers:void 0,MasterArn:void 0,MemorySize:void 0,PackageType:void 0,RevisionId:void 0,Role:void 0,Runtime:void 0,SigningJobArn:void 0,SigningProfileVersionArn:void 0,State:void 0,StateReason:void 0,StateReasonCode:void 0,Timeout:void 0,TracingConfig:void 0,Version:void 0,VpcConfig:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.Architectures!==void 0&&r.Architectures!==null&&(n.Architectures=zd(r.Architectures,t)),r.CodeSha256!==void 0&&r.CodeSha256!==null&&(n.CodeSha256=(0,f.expectString)(r.CodeSha256)),r.CodeSize!==void 0&&r.CodeSize!==null&&(n.CodeSize=(0,f.expectLong)(r.CodeSize)),r.DeadLetterConfig!==void 0&&r.DeadLetterConfig!==null&&(n.DeadLetterConfig=qd(r.DeadLetterConfig,t)),r.Description!==void 0&&r.Description!==null&&(n.Description=(0,f.expectString)(r.Description)),r.Environment!==void 0&&r.Environment!==null&&(n.Environment=Ld(r.Environment,t)),r.EphemeralStorage!==void 0&&r.EphemeralStorage!==null&&(n.EphemeralStorage=Dd(r.EphemeralStorage,t)),r.FileSystemConfigs!==void 0&&r.FileSystemConfigs!==null&&(n.FileSystemConfigs=Md(r.FileSystemConfigs,t)),r.FunctionArn!==void 0&&r.FunctionArn!==null&&(n.FunctionArn=(0,f.expectString)(r.FunctionArn)),r.FunctionName!==void 0&&r.FunctionName!==null&&(n.FunctionName=(0,f.expectString)(r.FunctionName)),r.Handler!==void 0&&r.Handler!==null&&(n.Handler=(0,f.expectString)(r.Handler)),r.ImageConfigResponse!==void 0&&r.ImageConfigResponse!==null&&(n.ImageConfigResponse=Bd(r.ImageConfigResponse,t)),r.KMSKeyArn!==void 0&&r.KMSKeyArn!==null&&(n.KMSKeyArn=(0,f.expectString)(r.KMSKeyArn)),r.LastModified!==void 0&&r.LastModified!==null&&(n.LastModified=(0,f.expectString)(r.LastModified)),r.LastUpdateStatus!==void 0&&r.LastUpdateStatus!==null&&(n.LastUpdateStatus=(0,f.expectString)(r.LastUpdateStatus)),r.LastUpdateStatusReason!==void 0&&r.LastUpdateStatusReason!==null&&(n.LastUpdateStatusReason=(0,f.expectString)(r.LastUpdateStatusReason)),r.LastUpdateStatusReasonCode!==void 0&&r.LastUpdateStatusReasonCode!==null&&(n.LastUpdateStatusReasonCode=(0,f.expectString)(r.LastUpdateStatusReasonCode)),r.Layers!==void 0&&r.Layers!==null&&(n.Layers=Od(r.Layers,t)),r.MasterArn!==void 0&&r.MasterArn!==null&&(n.MasterArn=(0,f.expectString)(r.MasterArn)),r.MemorySize!==void 0&&r.MemorySize!==null&&(n.MemorySize=(0,f.expectInt32)(r.MemorySize)),r.PackageType!==void 0&&r.PackageType!==null&&(n.PackageType=(0,f.expectString)(r.PackageType)),r.RevisionId!==void 0&&r.RevisionId!==null&&(n.RevisionId=(0,f.expectString)(r.RevisionId)),r.Role!==void 0&&r.Role!==null&&(n.Role=(0,f.expectString)(r.Role)),r.Runtime!==void 0&&r.Runtime!==null&&(n.Runtime=(0,f.expectString)(r.Runtime)),r.SigningJobArn!==void 0&&r.SigningJobArn!==null&&(n.SigningJobArn=(0,f.expectString)(r.SigningJobArn)),r.SigningProfileVersionArn!==void 0&&r.SigningProfileVersionArn!==null&&(n.SigningProfileVersionArn=(0,f.expectString)(r.SigningProfileVersionArn)),r.State!==void 0&&r.State!==null&&(n.State=(0,f.expectString)(r.State)),r.StateReason!==void 0&&r.StateReason!==null&&(n.StateReason=(0,f.expectString)(r.StateReason)),r.StateReasonCode!==void 0&&r.StateReasonCode!==null&&(n.StateReasonCode=(0,f.expectString)(r.StateReasonCode)),r.Timeout!==void 0&&r.Timeout!==null&&(n.Timeout=(0,f.expectInt32)(r.Timeout)),r.TracingConfig!==void 0&&r.TracingConfig!==null&&(n.TracingConfig=Fd(r.TracingConfig,t)),r.Version!==void 0&&r.Version!==null&&(n.Version=(0,f.expectString)(r.Version)),r.VpcConfig!==void 0&&r.VpcConfig!==null&&(n.VpcConfig=jd(r.VpcConfig,t)),Promise.resolve(n)};z.deserializeAws_restJson1CreateFunctionCommand=p8e;var g8e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"CodeSigningConfigNotFoundException":case"com.amazonaws.lambda#CodeSigningConfigNotFoundException":throw await jm(n,t);case"CodeStorageExceededException":case"com.amazonaws.lambda#CodeStorageExceededException":throw await Fv(n,t);case"CodeVerificationFailedException":case"com.amazonaws.lambda#CodeVerificationFailedException":throw await iq(n,t);case"InvalidCodeSignatureException":case"com.amazonaws.lambda#InvalidCodeSignatureException":throw await sq(n,t);case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},h8e=async(e,t)=>{if(e.statusCode!==201&&e.statusCode>=300)return w8e(e,t);let n={$metadata:O(e),AuthType:void 0,Cors:void 0,CreationTime:void 0,FunctionArn:void 0,FunctionUrl:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.AuthType!==void 0&&r.AuthType!==null&&(n.AuthType=(0,f.expectString)(r.AuthType)),r.Cors!==void 0&&r.Cors!==null&&(n.Cors=Hv(r.Cors,t)),r.CreationTime!==void 0&&r.CreationTime!==null&&(n.CreationTime=(0,f.expectString)(r.CreationTime)),r.FunctionArn!==void 0&&r.FunctionArn!==null&&(n.FunctionArn=(0,f.expectString)(r.FunctionArn)),r.FunctionUrl!==void 0&&r.FunctionUrl!==null&&(n.FunctionUrl=(0,f.expectString)(r.FunctionUrl)),Promise.resolve(n)};z.deserializeAws_restJson1CreateFunctionUrlConfigCommand=h8e;var w8e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},y8e=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return S8e(e,t);let n={$metadata:O(e)};return await kn(e.body,t),Promise.resolve(n)};z.deserializeAws_restJson1DeleteAliasCommand=y8e;var S8e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},_8e=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return v8e(e,t);let n={$metadata:O(e)};return await kn(e.body,t),Promise.resolve(n)};z.deserializeAws_restJson1DeleteCodeSigningConfigCommand=_8e;var v8e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},C8e=async(e,t)=>{if(e.statusCode!==202&&e.statusCode>=300)return E8e(e,t);let n={$metadata:O(e),BatchSize:void 0,BisectBatchOnFunctionError:void 0,DestinationConfig:void 0,EventSourceArn:void 0,FilterCriteria:void 0,FunctionArn:void 0,FunctionResponseTypes:void 0,LastModified:void 0,LastProcessingResult:void 0,MaximumBatchingWindowInSeconds:void 0,MaximumRecordAgeInSeconds:void 0,MaximumRetryAttempts:void 0,ParallelizationFactor:void 0,Queues:void 0,SelfManagedEventSource:void 0,SourceAccessConfigurations:void 0,StartingPosition:void 0,StartingPositionTimestamp:void 0,State:void 0,StateTransitionReason:void 0,Topics:void 0,TumblingWindowInSeconds:void 0,UUID:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.BatchSize!==void 0&&r.BatchSize!==null&&(n.BatchSize=(0,f.expectInt32)(r.BatchSize)),r.BisectBatchOnFunctionError!==void 0&&r.BisectBatchOnFunctionError!==null&&(n.BisectBatchOnFunctionError=(0,f.expectBoolean)(r.BisectBatchOnFunctionError)),r.DestinationConfig!==void 0&&r.DestinationConfig!==null&&(n.DestinationConfig=as(r.DestinationConfig,t)),r.EventSourceArn!==void 0&&r.EventSourceArn!==null&&(n.EventSourceArn=(0,f.expectString)(r.EventSourceArn)),r.FilterCriteria!==void 0&&r.FilterCriteria!==null&&(n.FilterCriteria=Um(r.FilterCriteria,t)),r.FunctionArn!==void 0&&r.FunctionArn!==null&&(n.FunctionArn=(0,f.expectString)(r.FunctionArn)),r.FunctionResponseTypes!==void 0&&r.FunctionResponseTypes!==null&&(n.FunctionResponseTypes=Gm(r.FunctionResponseTypes,t)),r.LastModified!==void 0&&r.LastModified!==null&&(n.LastModified=(0,f.expectNonNull)((0,f.parseEpochTimestamp)((0,f.expectNumber)(r.LastModified)))),r.LastProcessingResult!==void 0&&r.LastProcessingResult!==null&&(n.LastProcessingResult=(0,f.expectString)(r.LastProcessingResult)),r.MaximumBatchingWindowInSeconds!==void 0&&r.MaximumBatchingWindowInSeconds!==null&&(n.MaximumBatchingWindowInSeconds=(0,f.expectInt32)(r.MaximumBatchingWindowInSeconds)),r.MaximumRecordAgeInSeconds!==void 0&&r.MaximumRecordAgeInSeconds!==null&&(n.MaximumRecordAgeInSeconds=(0,f.expectInt32)(r.MaximumRecordAgeInSeconds)),r.MaximumRetryAttempts!==void 0&&r.MaximumRetryAttempts!==null&&(n.MaximumRetryAttempts=(0,f.expectInt32)(r.MaximumRetryAttempts)),r.ParallelizationFactor!==void 0&&r.ParallelizationFactor!==null&&(n.ParallelizationFactor=(0,f.expectInt32)(r.ParallelizationFactor)),r.Queues!==void 0&&r.Queues!==null&&(n.Queues=Vm(r.Queues,t)),r.SelfManagedEventSource!==void 0&&r.SelfManagedEventSource!==null&&(n.SelfManagedEventSource=$m(r.SelfManagedEventSource,t)),r.SourceAccessConfigurations!==void 0&&r.SourceAccessConfigurations!==null&&(n.SourceAccessConfigurations=Hm(r.SourceAccessConfigurations,t)),r.StartingPosition!==void 0&&r.StartingPosition!==null&&(n.StartingPosition=(0,f.expectString)(r.StartingPosition)),r.StartingPositionTimestamp!==void 0&&r.StartingPositionTimestamp!==null&&(n.StartingPositionTimestamp=(0,f.expectNonNull)((0,f.parseEpochTimestamp)((0,f.expectNumber)(r.StartingPositionTimestamp)))),r.State!==void 0&&r.State!==null&&(n.State=(0,f.expectString)(r.State)),r.StateTransitionReason!==void 0&&r.StateTransitionReason!==null&&(n.StateTransitionReason=(0,f.expectString)(r.StateTransitionReason)),r.Topics!==void 0&&r.Topics!==null&&(n.Topics=Jm(r.Topics,t)),r.TumblingWindowInSeconds!==void 0&&r.TumblingWindowInSeconds!==null&&(n.TumblingWindowInSeconds=(0,f.expectInt32)(r.TumblingWindowInSeconds)),r.UUID!==void 0&&r.UUID!==null&&(n.UUID=(0,f.expectString)(r.UUID)),Promise.resolve(n)};z.deserializeAws_restJson1DeleteEventSourceMappingCommand=C8e;var E8e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceInUseException":case"com.amazonaws.lambda#ResourceInUseException":throw await $7(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},A8e=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return x8e(e,t);let n={$metadata:O(e)};return await kn(e.body,t),Promise.resolve(n)};z.deserializeAws_restJson1DeleteFunctionCommand=A8e;var x8e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},b8e=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return R8e(e,t);let n={$metadata:O(e)};return await kn(e.body,t),Promise.resolve(n)};z.deserializeAws_restJson1DeleteFunctionCodeSigningConfigCommand=b8e;var R8e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"CodeSigningConfigNotFoundException":case"com.amazonaws.lambda#CodeSigningConfigNotFoundException":throw await jm(n,t);case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},T8e=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return I8e(e,t);let n={$metadata:O(e)};return await kn(e.body,t),Promise.resolve(n)};z.deserializeAws_restJson1DeleteFunctionConcurrencyCommand=T8e;var I8e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},N8e=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return P8e(e,t);let n={$metadata:O(e)};return await kn(e.body,t),Promise.resolve(n)};z.deserializeAws_restJson1DeleteFunctionEventInvokeConfigCommand=N8e;var P8e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},k8e=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return z8e(e,t);let n={$metadata:O(e)};return await kn(e.body,t),Promise.resolve(n)};z.deserializeAws_restJson1DeleteFunctionUrlConfigCommand=k8e;var z8e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},q8e=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return L8e(e,t);let n={$metadata:O(e)};return await kn(e.body,t),Promise.resolve(n)};z.deserializeAws_restJson1DeleteLayerVersionCommand=q8e;var L8e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},D8e=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return M8e(e,t);let n={$metadata:O(e)};return await kn(e.body,t),Promise.resolve(n)};z.deserializeAws_restJson1DeleteProvisionedConcurrencyConfigCommand=D8e;var M8e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},B8e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return O8e(e,t);let n={$metadata:O(e),AccountLimit:void 0,AccountUsage:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.AccountLimit!==void 0&&r.AccountLimit!==null&&(n.AccountLimit=l4e(r.AccountLimit,t)),r.AccountUsage!==void 0&&r.AccountUsage!==null&&(n.AccountUsage=u4e(r.AccountUsage,t)),Promise.resolve(n)};z.deserializeAws_restJson1GetAccountSettingsCommand=B8e;var O8e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},F8e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return j8e(e,t);let n={$metadata:O(e),AliasArn:void 0,Description:void 0,FunctionVersion:void 0,Name:void 0,RevisionId:void 0,RoutingConfig:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.AliasArn!==void 0&&r.AliasArn!==null&&(n.AliasArn=(0,f.expectString)(r.AliasArn)),r.Description!==void 0&&r.Description!==null&&(n.Description=(0,f.expectString)(r.Description)),r.FunctionVersion!==void 0&&r.FunctionVersion!==null&&(n.FunctionVersion=(0,f.expectString)(r.FunctionVersion)),r.Name!==void 0&&r.Name!==null&&(n.Name=(0,f.expectString)(r.Name)),r.RevisionId!==void 0&&r.RevisionId!==null&&(n.RevisionId=(0,f.expectString)(r.RevisionId)),r.RoutingConfig!==void 0&&r.RoutingConfig!==null&&(n.RoutingConfig=Uv(r.RoutingConfig,t)),Promise.resolve(n)};z.deserializeAws_restJson1GetAliasCommand=F8e;var j8e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},U8e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return G8e(e,t);let n={$metadata:O(e),CodeSigningConfig:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.CodeSigningConfig!==void 0&&r.CodeSigningConfig!==null&&(n.CodeSigningConfig=Gv(r.CodeSigningConfig,t)),Promise.resolve(n)};z.deserializeAws_restJson1GetCodeSigningConfigCommand=U8e;var G8e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},V8e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return $8e(e,t);let n={$metadata:O(e),BatchSize:void 0,BisectBatchOnFunctionError:void 0,DestinationConfig:void 0,EventSourceArn:void 0,FilterCriteria:void 0,FunctionArn:void 0,FunctionResponseTypes:void 0,LastModified:void 0,LastProcessingResult:void 0,MaximumBatchingWindowInSeconds:void 0,MaximumRecordAgeInSeconds:void 0,MaximumRetryAttempts:void 0,ParallelizationFactor:void 0,Queues:void 0,SelfManagedEventSource:void 0,SourceAccessConfigurations:void 0,StartingPosition:void 0,StartingPositionTimestamp:void 0,State:void 0,StateTransitionReason:void 0,Topics:void 0,TumblingWindowInSeconds:void 0,UUID:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.BatchSize!==void 0&&r.BatchSize!==null&&(n.BatchSize=(0,f.expectInt32)(r.BatchSize)),r.BisectBatchOnFunctionError!==void 0&&r.BisectBatchOnFunctionError!==null&&(n.BisectBatchOnFunctionError=(0,f.expectBoolean)(r.BisectBatchOnFunctionError)),r.DestinationConfig!==void 0&&r.DestinationConfig!==null&&(n.DestinationConfig=as(r.DestinationConfig,t)),r.EventSourceArn!==void 0&&r.EventSourceArn!==null&&(n.EventSourceArn=(0,f.expectString)(r.EventSourceArn)),r.FilterCriteria!==void 0&&r.FilterCriteria!==null&&(n.FilterCriteria=Um(r.FilterCriteria,t)),r.FunctionArn!==void 0&&r.FunctionArn!==null&&(n.FunctionArn=(0,f.expectString)(r.FunctionArn)),r.FunctionResponseTypes!==void 0&&r.FunctionResponseTypes!==null&&(n.FunctionResponseTypes=Gm(r.FunctionResponseTypes,t)),r.LastModified!==void 0&&r.LastModified!==null&&(n.LastModified=(0,f.expectNonNull)((0,f.parseEpochTimestamp)((0,f.expectNumber)(r.LastModified)))),r.LastProcessingResult!==void 0&&r.LastProcessingResult!==null&&(n.LastProcessingResult=(0,f.expectString)(r.LastProcessingResult)),r.MaximumBatchingWindowInSeconds!==void 0&&r.MaximumBatchingWindowInSeconds!==null&&(n.MaximumBatchingWindowInSeconds=(0,f.expectInt32)(r.MaximumBatchingWindowInSeconds)),r.MaximumRecordAgeInSeconds!==void 0&&r.MaximumRecordAgeInSeconds!==null&&(n.MaximumRecordAgeInSeconds=(0,f.expectInt32)(r.MaximumRecordAgeInSeconds)),r.MaximumRetryAttempts!==void 0&&r.MaximumRetryAttempts!==null&&(n.MaximumRetryAttempts=(0,f.expectInt32)(r.MaximumRetryAttempts)),r.ParallelizationFactor!==void 0&&r.ParallelizationFactor!==null&&(n.ParallelizationFactor=(0,f.expectInt32)(r.ParallelizationFactor)),r.Queues!==void 0&&r.Queues!==null&&(n.Queues=Vm(r.Queues,t)),r.SelfManagedEventSource!==void 0&&r.SelfManagedEventSource!==null&&(n.SelfManagedEventSource=$m(r.SelfManagedEventSource,t)),r.SourceAccessConfigurations!==void 0&&r.SourceAccessConfigurations!==null&&(n.SourceAccessConfigurations=Hm(r.SourceAccessConfigurations,t)),r.StartingPosition!==void 0&&r.StartingPosition!==null&&(n.StartingPosition=(0,f.expectString)(r.StartingPosition)),r.StartingPositionTimestamp!==void 0&&r.StartingPositionTimestamp!==null&&(n.StartingPositionTimestamp=(0,f.expectNonNull)((0,f.parseEpochTimestamp)((0,f.expectNumber)(r.StartingPositionTimestamp)))),r.State!==void 0&&r.State!==null&&(n.State=(0,f.expectString)(r.State)),r.StateTransitionReason!==void 0&&r.StateTransitionReason!==null&&(n.StateTransitionReason=(0,f.expectString)(r.StateTransitionReason)),r.Topics!==void 0&&r.Topics!==null&&(n.Topics=Jm(r.Topics,t)),r.TumblingWindowInSeconds!==void 0&&r.TumblingWindowInSeconds!==null&&(n.TumblingWindowInSeconds=(0,f.expectInt32)(r.TumblingWindowInSeconds)),r.UUID!==void 0&&r.UUID!==null&&(n.UUID=(0,f.expectString)(r.UUID)),Promise.resolve(n)};z.deserializeAws_restJson1GetEventSourceMappingCommand=V8e;var $8e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},H8e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return J8e(e,t);let n={$metadata:O(e),Code:void 0,Concurrency:void 0,Configuration:void 0,Tags:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.Code!==void 0&&r.Code!==null&&(n.Code=P4e(r.Code,t)),r.Concurrency!==void 0&&r.Concurrency!==null&&(n.Concurrency=_4e(r.Concurrency,t)),r.Configuration!==void 0&&r.Configuration!==null&&(n.Configuration=cQ(r.Configuration,t)),r.Tags!==void 0&&r.Tags!==null&&(n.Tags=mQ(r.Tags,t)),Promise.resolve(n)};z.deserializeAws_restJson1GetFunctionCommand=H8e;var J8e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},X8e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return K8e(e,t);let n={$metadata:O(e),CodeSigningConfigArn:void 0,FunctionName:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.CodeSigningConfigArn!==void 0&&r.CodeSigningConfigArn!==null&&(n.CodeSigningConfigArn=(0,f.expectString)(r.CodeSigningConfigArn)),r.FunctionName!==void 0&&r.FunctionName!==null&&(n.FunctionName=(0,f.expectString)(r.FunctionName)),Promise.resolve(n)};z.deserializeAws_restJson1GetFunctionCodeSigningConfigCommand=X8e;var K8e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},W8e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Q8e(e,t);let n={$metadata:O(e),ReservedConcurrentExecutions:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.ReservedConcurrentExecutions!==void 0&&r.ReservedConcurrentExecutions!==null&&(n.ReservedConcurrentExecutions=(0,f.expectInt32)(r.ReservedConcurrentExecutions)),Promise.resolve(n)};z.deserializeAws_restJson1GetFunctionConcurrencyCommand=W8e;var Q8e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},Y8e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Z8e(e,t);let n={$metadata:O(e),Architectures:void 0,CodeSha256:void 0,CodeSize:void 0,DeadLetterConfig:void 0,Description:void 0,Environment:void 0,EphemeralStorage:void 0,FileSystemConfigs:void 0,FunctionArn:void 0,FunctionName:void 0,Handler:void 0,ImageConfigResponse:void 0,KMSKeyArn:void 0,LastModified:void 0,LastUpdateStatus:void 0,LastUpdateStatusReason:void 0,LastUpdateStatusReasonCode:void 0,Layers:void 0,MasterArn:void 0,MemorySize:void 0,PackageType:void 0,RevisionId:void 0,Role:void 0,Runtime:void 0,SigningJobArn:void 0,SigningProfileVersionArn:void 0,State:void 0,StateReason:void 0,StateReasonCode:void 0,Timeout:void 0,TracingConfig:void 0,Version:void 0,VpcConfig:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.Architectures!==void 0&&r.Architectures!==null&&(n.Architectures=zd(r.Architectures,t)),r.CodeSha256!==void 0&&r.CodeSha256!==null&&(n.CodeSha256=(0,f.expectString)(r.CodeSha256)),r.CodeSize!==void 0&&r.CodeSize!==null&&(n.CodeSize=(0,f.expectLong)(r.CodeSize)),r.DeadLetterConfig!==void 0&&r.DeadLetterConfig!==null&&(n.DeadLetterConfig=qd(r.DeadLetterConfig,t)),r.Description!==void 0&&r.Description!==null&&(n.Description=(0,f.expectString)(r.Description)),r.Environment!==void 0&&r.Environment!==null&&(n.Environment=Ld(r.Environment,t)),r.EphemeralStorage!==void 0&&r.EphemeralStorage!==null&&(n.EphemeralStorage=Dd(r.EphemeralStorage,t)),r.FileSystemConfigs!==void 0&&r.FileSystemConfigs!==null&&(n.FileSystemConfigs=Md(r.FileSystemConfigs,t)),r.FunctionArn!==void 0&&r.FunctionArn!==null&&(n.FunctionArn=(0,f.expectString)(r.FunctionArn)),r.FunctionName!==void 0&&r.FunctionName!==null&&(n.FunctionName=(0,f.expectString)(r.FunctionName)),r.Handler!==void 0&&r.Handler!==null&&(n.Handler=(0,f.expectString)(r.Handler)),r.ImageConfigResponse!==void 0&&r.ImageConfigResponse!==null&&(n.ImageConfigResponse=Bd(r.ImageConfigResponse,t)),r.KMSKeyArn!==void 0&&r.KMSKeyArn!==null&&(n.KMSKeyArn=(0,f.expectString)(r.KMSKeyArn)),r.LastModified!==void 0&&r.LastModified!==null&&(n.LastModified=(0,f.expectString)(r.LastModified)),r.LastUpdateStatus!==void 0&&r.LastUpdateStatus!==null&&(n.LastUpdateStatus=(0,f.expectString)(r.LastUpdateStatus)),r.LastUpdateStatusReason!==void 0&&r.LastUpdateStatusReason!==null&&(n.LastUpdateStatusReason=(0,f.expectString)(r.LastUpdateStatusReason)),r.LastUpdateStatusReasonCode!==void 0&&r.LastUpdateStatusReasonCode!==null&&(n.LastUpdateStatusReasonCode=(0,f.expectString)(r.LastUpdateStatusReasonCode)),r.Layers!==void 0&&r.Layers!==null&&(n.Layers=Od(r.Layers,t)),r.MasterArn!==void 0&&r.MasterArn!==null&&(n.MasterArn=(0,f.expectString)(r.MasterArn)),r.MemorySize!==void 0&&r.MemorySize!==null&&(n.MemorySize=(0,f.expectInt32)(r.MemorySize)),r.PackageType!==void 0&&r.PackageType!==null&&(n.PackageType=(0,f.expectString)(r.PackageType)),r.RevisionId!==void 0&&r.RevisionId!==null&&(n.RevisionId=(0,f.expectString)(r.RevisionId)),r.Role!==void 0&&r.Role!==null&&(n.Role=(0,f.expectString)(r.Role)),r.Runtime!==void 0&&r.Runtime!==null&&(n.Runtime=(0,f.expectString)(r.Runtime)),r.SigningJobArn!==void 0&&r.SigningJobArn!==null&&(n.SigningJobArn=(0,f.expectString)(r.SigningJobArn)),r.SigningProfileVersionArn!==void 0&&r.SigningProfileVersionArn!==null&&(n.SigningProfileVersionArn=(0,f.expectString)(r.SigningProfileVersionArn)),r.State!==void 0&&r.State!==null&&(n.State=(0,f.expectString)(r.State)),r.StateReason!==void 0&&r.StateReason!==null&&(n.StateReason=(0,f.expectString)(r.StateReason)),r.StateReasonCode!==void 0&&r.StateReasonCode!==null&&(n.StateReasonCode=(0,f.expectString)(r.StateReasonCode)),r.Timeout!==void 0&&r.Timeout!==null&&(n.Timeout=(0,f.expectInt32)(r.Timeout)),r.TracingConfig!==void 0&&r.TracingConfig!==null&&(n.TracingConfig=Fd(r.TracingConfig,t)),r.Version!==void 0&&r.Version!==null&&(n.Version=(0,f.expectString)(r.Version)),r.VpcConfig!==void 0&&r.VpcConfig!==null&&(n.VpcConfig=jd(r.VpcConfig,t)),Promise.resolve(n)};z.deserializeAws_restJson1GetFunctionConfigurationCommand=Y8e;var Z8e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},e5e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return t5e(e,t);let n={$metadata:O(e),DestinationConfig:void 0,FunctionArn:void 0,LastModified:void 0,MaximumEventAgeInSeconds:void 0,MaximumRetryAttempts:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.DestinationConfig!==void 0&&r.DestinationConfig!==null&&(n.DestinationConfig=as(r.DestinationConfig,t)),r.FunctionArn!==void 0&&r.FunctionArn!==null&&(n.FunctionArn=(0,f.expectString)(r.FunctionArn)),r.LastModified!==void 0&&r.LastModified!==null&&(n.LastModified=(0,f.expectNonNull)((0,f.parseEpochTimestamp)((0,f.expectNumber)(r.LastModified)))),r.MaximumEventAgeInSeconds!==void 0&&r.MaximumEventAgeInSeconds!==null&&(n.MaximumEventAgeInSeconds=(0,f.expectInt32)(r.MaximumEventAgeInSeconds)),r.MaximumRetryAttempts!==void 0&&r.MaximumRetryAttempts!==null&&(n.MaximumRetryAttempts=(0,f.expectInt32)(r.MaximumRetryAttempts)),Promise.resolve(n)};z.deserializeAws_restJson1GetFunctionEventInvokeConfigCommand=e5e;var t5e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},n5e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return r5e(e,t);let n={$metadata:O(e),AuthType:void 0,Cors:void 0,CreationTime:void 0,FunctionArn:void 0,FunctionUrl:void 0,LastModifiedTime:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.AuthType!==void 0&&r.AuthType!==null&&(n.AuthType=(0,f.expectString)(r.AuthType)),r.Cors!==void 0&&r.Cors!==null&&(n.Cors=Hv(r.Cors,t)),r.CreationTime!==void 0&&r.CreationTime!==null&&(n.CreationTime=(0,f.expectString)(r.CreationTime)),r.FunctionArn!==void 0&&r.FunctionArn!==null&&(n.FunctionArn=(0,f.expectString)(r.FunctionArn)),r.FunctionUrl!==void 0&&r.FunctionUrl!==null&&(n.FunctionUrl=(0,f.expectString)(r.FunctionUrl)),r.LastModifiedTime!==void 0&&r.LastModifiedTime!==null&&(n.LastModifiedTime=(0,f.expectString)(r.LastModifiedTime)),Promise.resolve(n)};z.deserializeAws_restJson1GetFunctionUrlConfigCommand=n5e;var r5e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},i5e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return s5e(e,t);let n={$metadata:O(e),CompatibleArchitectures:void 0,CompatibleRuntimes:void 0,Content:void 0,CreatedDate:void 0,Description:void 0,LayerArn:void 0,LayerVersionArn:void 0,LicenseInfo:void 0,Version:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.CompatibleArchitectures!==void 0&&r.CompatibleArchitectures!==null&&(n.CompatibleArchitectures=Vv(r.CompatibleArchitectures,t)),r.CompatibleRuntimes!==void 0&&r.CompatibleRuntimes!==null&&(n.CompatibleRuntimes=$v(r.CompatibleRuntimes,t)),r.Content!==void 0&&r.Content!==null&&(n.Content=oq(r.Content,t)),r.CreatedDate!==void 0&&r.CreatedDate!==null&&(n.CreatedDate=(0,f.expectString)(r.CreatedDate)),r.Description!==void 0&&r.Description!==null&&(n.Description=(0,f.expectString)(r.Description)),r.LayerArn!==void 0&&r.LayerArn!==null&&(n.LayerArn=(0,f.expectString)(r.LayerArn)),r.LayerVersionArn!==void 0&&r.LayerVersionArn!==null&&(n.LayerVersionArn=(0,f.expectString)(r.LayerVersionArn)),r.LicenseInfo!==void 0&&r.LicenseInfo!==null&&(n.LicenseInfo=(0,f.expectString)(r.LicenseInfo)),r.Version!==void 0&&r.Version!==null&&(n.Version=(0,f.expectLong)(r.Version)),Promise.resolve(n)};z.deserializeAws_restJson1GetLayerVersionCommand=i5e;var s5e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},o5e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return a5e(e,t);let n={$metadata:O(e),CompatibleArchitectures:void 0,CompatibleRuntimes:void 0,Content:void 0,CreatedDate:void 0,Description:void 0,LayerArn:void 0,LayerVersionArn:void 0,LicenseInfo:void 0,Version:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.CompatibleArchitectures!==void 0&&r.CompatibleArchitectures!==null&&(n.CompatibleArchitectures=Vv(r.CompatibleArchitectures,t)),r.CompatibleRuntimes!==void 0&&r.CompatibleRuntimes!==null&&(n.CompatibleRuntimes=$v(r.CompatibleRuntimes,t)),r.Content!==void 0&&r.Content!==null&&(n.Content=oq(r.Content,t)),r.CreatedDate!==void 0&&r.CreatedDate!==null&&(n.CreatedDate=(0,f.expectString)(r.CreatedDate)),r.Description!==void 0&&r.Description!==null&&(n.Description=(0,f.expectString)(r.Description)),r.LayerArn!==void 0&&r.LayerArn!==null&&(n.LayerArn=(0,f.expectString)(r.LayerArn)),r.LayerVersionArn!==void 0&&r.LayerVersionArn!==null&&(n.LayerVersionArn=(0,f.expectString)(r.LayerVersionArn)),r.LicenseInfo!==void 0&&r.LicenseInfo!==null&&(n.LicenseInfo=(0,f.expectString)(r.LicenseInfo)),r.Version!==void 0&&r.Version!==null&&(n.Version=(0,f.expectLong)(r.Version)),Promise.resolve(n)};z.deserializeAws_restJson1GetLayerVersionByArnCommand=o5e;var a5e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},d5e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return c5e(e,t);let n={$metadata:O(e),Policy:void 0,RevisionId:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.Policy!==void 0&&r.Policy!==null&&(n.Policy=(0,f.expectString)(r.Policy)),r.RevisionId!==void 0&&r.RevisionId!==null&&(n.RevisionId=(0,f.expectString)(r.RevisionId)),Promise.resolve(n)};z.deserializeAws_restJson1GetLayerVersionPolicyCommand=d5e;var c5e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},l5e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return u5e(e,t);let n={$metadata:O(e),Policy:void 0,RevisionId:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.Policy!==void 0&&r.Policy!==null&&(n.Policy=(0,f.expectString)(r.Policy)),r.RevisionId!==void 0&&r.RevisionId!==null&&(n.RevisionId=(0,f.expectString)(r.RevisionId)),Promise.resolve(n)};z.deserializeAws_restJson1GetPolicyCommand=l5e;var u5e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},m5e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return f5e(e,t);let n={$metadata:O(e),AllocatedProvisionedConcurrentExecutions:void 0,AvailableProvisionedConcurrentExecutions:void 0,LastModified:void 0,RequestedProvisionedConcurrentExecutions:void 0,Status:void 0,StatusReason:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.AllocatedProvisionedConcurrentExecutions!==void 0&&r.AllocatedProvisionedConcurrentExecutions!==null&&(n.AllocatedProvisionedConcurrentExecutions=(0,f.expectInt32)(r.AllocatedProvisionedConcurrentExecutions)),r.AvailableProvisionedConcurrentExecutions!==void 0&&r.AvailableProvisionedConcurrentExecutions!==null&&(n.AvailableProvisionedConcurrentExecutions=(0,f.expectInt32)(r.AvailableProvisionedConcurrentExecutions)),r.LastModified!==void 0&&r.LastModified!==null&&(n.LastModified=(0,f.expectString)(r.LastModified)),r.RequestedProvisionedConcurrentExecutions!==void 0&&r.RequestedProvisionedConcurrentExecutions!==null&&(n.RequestedProvisionedConcurrentExecutions=(0,f.expectInt32)(r.RequestedProvisionedConcurrentExecutions)),r.Status!==void 0&&r.Status!==null&&(n.Status=(0,f.expectString)(r.Status)),r.StatusReason!==void 0&&r.StatusReason!==null&&(n.StatusReason=(0,f.expectString)(r.StatusReason)),Promise.resolve(n)};z.deserializeAws_restJson1GetProvisionedConcurrencyConfigCommand=m5e;var f5e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ProvisionedConcurrencyConfigNotFoundException":case"com.amazonaws.lambda#ProvisionedConcurrencyConfigNotFoundException":throw await M6e(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},p5e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return g5e(e,t);let n={$metadata:O(e),ExecutedVersion:void 0,FunctionError:void 0,LogResult:void 0,Payload:void 0,StatusCode:void 0};e.headers["x-amz-function-error"]!==void 0&&(n.FunctionError=e.headers["x-amz-function-error"]),e.headers["x-amz-log-result"]!==void 0&&(n.LogResult=e.headers["x-amz-log-result"]),e.headers["x-amz-executed-version"]!==void 0&&(n.ExecutedVersion=e.headers["x-amz-executed-version"]);let r=await kn(e.body,t);return n.Payload=r,n.StatusCode===void 0&&(n.StatusCode=e.statusCode),Promise.resolve(n)};z.deserializeAws_restJson1InvokeCommand=p5e;var g5e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"EC2AccessDeniedException":case"com.amazonaws.lambda#EC2AccessDeniedException":throw await C6e(n,t);case"EC2ThrottledException":case"com.amazonaws.lambda#EC2ThrottledException":throw await E6e(n,t);case"EC2UnexpectedException":case"com.amazonaws.lambda#EC2UnexpectedException":throw await A6e(n,t);case"EFSIOException":case"com.amazonaws.lambda#EFSIOException":throw await x6e(n,t);case"EFSMountConnectivityException":case"com.amazonaws.lambda#EFSMountConnectivityException":throw await b6e(n,t);case"EFSMountFailureException":case"com.amazonaws.lambda#EFSMountFailureException":throw await R6e(n,t);case"EFSMountTimeoutException":case"com.amazonaws.lambda#EFSMountTimeoutException":throw await T6e(n,t);case"ENILimitReachedException":case"com.amazonaws.lambda#ENILimitReachedException":throw await I6e(n,t);case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"InvalidRequestContentException":case"com.amazonaws.lambda#InvalidRequestContentException":throw await U7(n,t);case"InvalidRuntimeException":case"com.amazonaws.lambda#InvalidRuntimeException":throw await G7(n,t);case"InvalidSecurityGroupIDException":case"com.amazonaws.lambda#InvalidSecurityGroupIDException":throw await N6e(n,t);case"InvalidSubnetIDException":case"com.amazonaws.lambda#InvalidSubnetIDException":throw await P6e(n,t);case"InvalidZipFileException":case"com.amazonaws.lambda#InvalidZipFileException":throw await k6e(n,t);case"KMSAccessDeniedException":case"com.amazonaws.lambda#KMSAccessDeniedException":throw await z6e(n,t);case"KMSDisabledException":case"com.amazonaws.lambda#KMSDisabledException":throw await q6e(n,t);case"KMSInvalidStateException":case"com.amazonaws.lambda#KMSInvalidStateException":throw await L6e(n,t);case"KMSNotFoundException":case"com.amazonaws.lambda#KMSNotFoundException":throw await D6e(n,t);case"RequestTooLargeException":case"com.amazonaws.lambda#RequestTooLargeException":throw await B6e(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ResourceNotReadyException":case"com.amazonaws.lambda#ResourceNotReadyException":throw await O6e(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"SubnetIPAddressLimitReachedException":case"com.amazonaws.lambda#SubnetIPAddressLimitReachedException":throw await F6e(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);case"UnsupportedMediaTypeException":case"com.amazonaws.lambda#UnsupportedMediaTypeException":throw await j6e(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},h5e=async(e,t)=>{if(e.statusCode!==202&&e.statusCode>=300)return w5e(e,t);let n={$metadata:O(e),Status:void 0};return n.Status===void 0&&(n.Status=e.statusCode),await kn(e.body,t),Promise.resolve(n)};z.deserializeAws_restJson1InvokeAsyncCommand=h5e;var w5e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidRequestContentException":case"com.amazonaws.lambda#InvalidRequestContentException":throw await U7(n,t);case"InvalidRuntimeException":case"com.amazonaws.lambda#InvalidRuntimeException":throw await G7(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},y5e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return S5e(e,t);let n={$metadata:O(e),Aliases:void 0,NextMarker:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.Aliases!==void 0&&r.Aliases!==null&&(n.Aliases=p4e(r.Aliases,t)),r.NextMarker!==void 0&&r.NextMarker!==null&&(n.NextMarker=(0,f.expectString)(r.NextMarker)),Promise.resolve(n)};z.deserializeAws_restJson1ListAliasesCommand=y5e;var S5e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},_5e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return v5e(e,t);let n={$metadata:O(e),CodeSigningConfigs:void 0,NextMarker:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.CodeSigningConfigs!==void 0&&r.CodeSigningConfigs!==null&&(n.CodeSigningConfigs=y4e(r.CodeSigningConfigs,t)),r.NextMarker!==void 0&&r.NextMarker!==null&&(n.NextMarker=(0,f.expectString)(r.NextMarker)),Promise.resolve(n)};z.deserializeAws_restJson1ListCodeSigningConfigsCommand=_5e;var v5e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},C5e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return E5e(e,t);let n={$metadata:O(e),EventSourceMappings:void 0,NextMarker:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.EventSourceMappings!==void 0&&r.EventSourceMappings!==null&&(n.EventSourceMappings=b4e(r.EventSourceMappings,t)),r.NextMarker!==void 0&&r.NextMarker!==null&&(n.NextMarker=(0,f.expectString)(r.NextMarker)),Promise.resolve(n)};z.deserializeAws_restJson1ListEventSourceMappingsCommand=C5e;var E5e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},A5e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return x5e(e,t);let n={$metadata:O(e),FunctionEventInvokeConfigs:void 0,NextMarker:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.FunctionEventInvokeConfigs!==void 0&&r.FunctionEventInvokeConfigs!==null&&(n.FunctionEventInvokeConfigs=z4e(r.FunctionEventInvokeConfigs,t)),r.NextMarker!==void 0&&r.NextMarker!==null&&(n.NextMarker=(0,f.expectString)(r.NextMarker)),Promise.resolve(n)};z.deserializeAws_restJson1ListFunctionEventInvokeConfigsCommand=A5e;var x5e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},b5e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return R5e(e,t);let n={$metadata:O(e),Functions:void 0,NextMarker:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.Functions!==void 0&&r.Functions!==null&&(n.Functions=lQ(r.Functions,t)),r.NextMarker!==void 0&&r.NextMarker!==null&&(n.NextMarker=(0,f.expectString)(r.NextMarker)),Promise.resolve(n)};z.deserializeAws_restJson1ListFunctionsCommand=b5e;var R5e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},T5e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return I5e(e,t);let n={$metadata:O(e),FunctionArns:void 0,NextMarker:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.FunctionArns!==void 0&&r.FunctionArns!==null&&(n.FunctionArns=N4e(r.FunctionArns,t)),r.NextMarker!==void 0&&r.NextMarker!==null&&(n.NextMarker=(0,f.expectString)(r.NextMarker)),Promise.resolve(n)};z.deserializeAws_restJson1ListFunctionsByCodeSigningConfigCommand=T5e;var I5e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},N5e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return P5e(e,t);let n={$metadata:O(e),FunctionUrlConfigs:void 0,NextMarker:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.FunctionUrlConfigs!==void 0&&r.FunctionUrlConfigs!==null&&(n.FunctionUrlConfigs=L4e(r.FunctionUrlConfigs,t)),r.NextMarker!==void 0&&r.NextMarker!==null&&(n.NextMarker=(0,f.expectString)(r.NextMarker)),Promise.resolve(n)};z.deserializeAws_restJson1ListFunctionUrlConfigsCommand=N5e;var P5e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},k5e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return z5e(e,t);let n={$metadata:O(e),Layers:void 0,NextMarker:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.Layers!==void 0&&r.Layers!==null&&(n.Layers=O4e(r.Layers,t)),r.NextMarker!==void 0&&r.NextMarker!==null&&(n.NextMarker=(0,f.expectString)(r.NextMarker)),Promise.resolve(n)};z.deserializeAws_restJson1ListLayersCommand=k5e;var z5e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},q5e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return L5e(e,t);let n={$metadata:O(e),LayerVersions:void 0,NextMarker:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.LayerVersions!==void 0&&r.LayerVersions!==null&&(n.LayerVersions=j4e(r.LayerVersions,t)),r.NextMarker!==void 0&&r.NextMarker!==null&&(n.NextMarker=(0,f.expectString)(r.NextMarker)),Promise.resolve(n)};z.deserializeAws_restJson1ListLayerVersionsCommand=q5e;var L5e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},D5e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return M5e(e,t);let n={$metadata:O(e),NextMarker:void 0,ProvisionedConcurrencyConfigs:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.NextMarker!==void 0&&r.NextMarker!==null&&(n.NextMarker=(0,f.expectString)(r.NextMarker)),r.ProvisionedConcurrencyConfigs!==void 0&&r.ProvisionedConcurrencyConfigs!==null&&(n.ProvisionedConcurrencyConfigs=V4e(r.ProvisionedConcurrencyConfigs,t)),Promise.resolve(n)};z.deserializeAws_restJson1ListProvisionedConcurrencyConfigsCommand=D5e;var M5e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},B5e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return O5e(e,t);let n={$metadata:O(e),Tags:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.Tags!==void 0&&r.Tags!==null&&(n.Tags=mQ(r.Tags,t)),Promise.resolve(n)};z.deserializeAws_restJson1ListTagsCommand=B5e;var O5e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},F5e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return j5e(e,t);let n={$metadata:O(e),NextMarker:void 0,Versions:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.NextMarker!==void 0&&r.NextMarker!==null&&(n.NextMarker=(0,f.expectString)(r.NextMarker)),r.Versions!==void 0&&r.Versions!==null&&(n.Versions=lQ(r.Versions,t)),Promise.resolve(n)};z.deserializeAws_restJson1ListVersionsByFunctionCommand=F5e;var j5e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},U5e=async(e,t)=>{if(e.statusCode!==201&&e.statusCode>=300)return G5e(e,t);let n={$metadata:O(e),CompatibleArchitectures:void 0,CompatibleRuntimes:void 0,Content:void 0,CreatedDate:void 0,Description:void 0,LayerArn:void 0,LayerVersionArn:void 0,LicenseInfo:void 0,Version:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.CompatibleArchitectures!==void 0&&r.CompatibleArchitectures!==null&&(n.CompatibleArchitectures=Vv(r.CompatibleArchitectures,t)),r.CompatibleRuntimes!==void 0&&r.CompatibleRuntimes!==null&&(n.CompatibleRuntimes=$v(r.CompatibleRuntimes,t)),r.Content!==void 0&&r.Content!==null&&(n.Content=oq(r.Content,t)),r.CreatedDate!==void 0&&r.CreatedDate!==null&&(n.CreatedDate=(0,f.expectString)(r.CreatedDate)),r.Description!==void 0&&r.Description!==null&&(n.Description=(0,f.expectString)(r.Description)),r.LayerArn!==void 0&&r.LayerArn!==null&&(n.LayerArn=(0,f.expectString)(r.LayerArn)),r.LayerVersionArn!==void 0&&r.LayerVersionArn!==null&&(n.LayerVersionArn=(0,f.expectString)(r.LayerVersionArn)),r.LicenseInfo!==void 0&&r.LicenseInfo!==null&&(n.LicenseInfo=(0,f.expectString)(r.LicenseInfo)),r.Version!==void 0&&r.Version!==null&&(n.Version=(0,f.expectLong)(r.Version)),Promise.resolve(n)};z.deserializeAws_restJson1PublishLayerVersionCommand=U5e;var G5e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"CodeStorageExceededException":case"com.amazonaws.lambda#CodeStorageExceededException":throw await Fv(n,t);case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},V5e=async(e,t)=>{if(e.statusCode!==201&&e.statusCode>=300)return $5e(e,t);let n={$metadata:O(e),Architectures:void 0,CodeSha256:void 0,CodeSize:void 0,DeadLetterConfig:void 0,Description:void 0,Environment:void 0,EphemeralStorage:void 0,FileSystemConfigs:void 0,FunctionArn:void 0,FunctionName:void 0,Handler:void 0,ImageConfigResponse:void 0,KMSKeyArn:void 0,LastModified:void 0,LastUpdateStatus:void 0,LastUpdateStatusReason:void 0,LastUpdateStatusReasonCode:void 0,Layers:void 0,MasterArn:void 0,MemorySize:void 0,PackageType:void 0,RevisionId:void 0,Role:void 0,Runtime:void 0,SigningJobArn:void 0,SigningProfileVersionArn:void 0,State:void 0,StateReason:void 0,StateReasonCode:void 0,Timeout:void 0,TracingConfig:void 0,Version:void 0,VpcConfig:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.Architectures!==void 0&&r.Architectures!==null&&(n.Architectures=zd(r.Architectures,t)),r.CodeSha256!==void 0&&r.CodeSha256!==null&&(n.CodeSha256=(0,f.expectString)(r.CodeSha256)),r.CodeSize!==void 0&&r.CodeSize!==null&&(n.CodeSize=(0,f.expectLong)(r.CodeSize)),r.DeadLetterConfig!==void 0&&r.DeadLetterConfig!==null&&(n.DeadLetterConfig=qd(r.DeadLetterConfig,t)),r.Description!==void 0&&r.Description!==null&&(n.Description=(0,f.expectString)(r.Description)),r.Environment!==void 0&&r.Environment!==null&&(n.Environment=Ld(r.Environment,t)),r.EphemeralStorage!==void 0&&r.EphemeralStorage!==null&&(n.EphemeralStorage=Dd(r.EphemeralStorage,t)),r.FileSystemConfigs!==void 0&&r.FileSystemConfigs!==null&&(n.FileSystemConfigs=Md(r.FileSystemConfigs,t)),r.FunctionArn!==void 0&&r.FunctionArn!==null&&(n.FunctionArn=(0,f.expectString)(r.FunctionArn)),r.FunctionName!==void 0&&r.FunctionName!==null&&(n.FunctionName=(0,f.expectString)(r.FunctionName)),r.Handler!==void 0&&r.Handler!==null&&(n.Handler=(0,f.expectString)(r.Handler)),r.ImageConfigResponse!==void 0&&r.ImageConfigResponse!==null&&(n.ImageConfigResponse=Bd(r.ImageConfigResponse,t)),r.KMSKeyArn!==void 0&&r.KMSKeyArn!==null&&(n.KMSKeyArn=(0,f.expectString)(r.KMSKeyArn)),r.LastModified!==void 0&&r.LastModified!==null&&(n.LastModified=(0,f.expectString)(r.LastModified)),r.LastUpdateStatus!==void 0&&r.LastUpdateStatus!==null&&(n.LastUpdateStatus=(0,f.expectString)(r.LastUpdateStatus)),r.LastUpdateStatusReason!==void 0&&r.LastUpdateStatusReason!==null&&(n.LastUpdateStatusReason=(0,f.expectString)(r.LastUpdateStatusReason)),r.LastUpdateStatusReasonCode!==void 0&&r.LastUpdateStatusReasonCode!==null&&(n.LastUpdateStatusReasonCode=(0,f.expectString)(r.LastUpdateStatusReasonCode)),r.Layers!==void 0&&r.Layers!==null&&(n.Layers=Od(r.Layers,t)),r.MasterArn!==void 0&&r.MasterArn!==null&&(n.MasterArn=(0,f.expectString)(r.MasterArn)),r.MemorySize!==void 0&&r.MemorySize!==null&&(n.MemorySize=(0,f.expectInt32)(r.MemorySize)),r.PackageType!==void 0&&r.PackageType!==null&&(n.PackageType=(0,f.expectString)(r.PackageType)),r.RevisionId!==void 0&&r.RevisionId!==null&&(n.RevisionId=(0,f.expectString)(r.RevisionId)),r.Role!==void 0&&r.Role!==null&&(n.Role=(0,f.expectString)(r.Role)),r.Runtime!==void 0&&r.Runtime!==null&&(n.Runtime=(0,f.expectString)(r.Runtime)),r.SigningJobArn!==void 0&&r.SigningJobArn!==null&&(n.SigningJobArn=(0,f.expectString)(r.SigningJobArn)),r.SigningProfileVersionArn!==void 0&&r.SigningProfileVersionArn!==null&&(n.SigningProfileVersionArn=(0,f.expectString)(r.SigningProfileVersionArn)),r.State!==void 0&&r.State!==null&&(n.State=(0,f.expectString)(r.State)),r.StateReason!==void 0&&r.StateReason!==null&&(n.StateReason=(0,f.expectString)(r.StateReason)),r.StateReasonCode!==void 0&&r.StateReasonCode!==null&&(n.StateReasonCode=(0,f.expectString)(r.StateReasonCode)),r.Timeout!==void 0&&r.Timeout!==null&&(n.Timeout=(0,f.expectInt32)(r.Timeout)),r.TracingConfig!==void 0&&r.TracingConfig!==null&&(n.TracingConfig=Fd(r.TracingConfig,t)),r.Version!==void 0&&r.Version!==null&&(n.Version=(0,f.expectString)(r.Version)),r.VpcConfig!==void 0&&r.VpcConfig!==null&&(n.VpcConfig=jd(r.VpcConfig,t)),Promise.resolve(n)};z.deserializeAws_restJson1PublishVersionCommand=V5e;var $5e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"CodeStorageExceededException":case"com.amazonaws.lambda#CodeStorageExceededException":throw await Fv(n,t);case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"PreconditionFailedException":case"com.amazonaws.lambda#PreconditionFailedException":throw await ao(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},H5e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return J5e(e,t);let n={$metadata:O(e),CodeSigningConfigArn:void 0,FunctionName:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.CodeSigningConfigArn!==void 0&&r.CodeSigningConfigArn!==null&&(n.CodeSigningConfigArn=(0,f.expectString)(r.CodeSigningConfigArn)),r.FunctionName!==void 0&&r.FunctionName!==null&&(n.FunctionName=(0,f.expectString)(r.FunctionName)),Promise.resolve(n)};z.deserializeAws_restJson1PutFunctionCodeSigningConfigCommand=H5e;var J5e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"CodeSigningConfigNotFoundException":case"com.amazonaws.lambda#CodeSigningConfigNotFoundException":throw await jm(n,t);case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},X5e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return K5e(e,t);let n={$metadata:O(e),ReservedConcurrentExecutions:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.ReservedConcurrentExecutions!==void 0&&r.ReservedConcurrentExecutions!==null&&(n.ReservedConcurrentExecutions=(0,f.expectInt32)(r.ReservedConcurrentExecutions)),Promise.resolve(n)};z.deserializeAws_restJson1PutFunctionConcurrencyCommand=X5e;var K5e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},W5e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Q5e(e,t);let n={$metadata:O(e),DestinationConfig:void 0,FunctionArn:void 0,LastModified:void 0,MaximumEventAgeInSeconds:void 0,MaximumRetryAttempts:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.DestinationConfig!==void 0&&r.DestinationConfig!==null&&(n.DestinationConfig=as(r.DestinationConfig,t)),r.FunctionArn!==void 0&&r.FunctionArn!==null&&(n.FunctionArn=(0,f.expectString)(r.FunctionArn)),r.LastModified!==void 0&&r.LastModified!==null&&(n.LastModified=(0,f.expectNonNull)((0,f.parseEpochTimestamp)((0,f.expectNumber)(r.LastModified)))),r.MaximumEventAgeInSeconds!==void 0&&r.MaximumEventAgeInSeconds!==null&&(n.MaximumEventAgeInSeconds=(0,f.expectInt32)(r.MaximumEventAgeInSeconds)),r.MaximumRetryAttempts!==void 0&&r.MaximumRetryAttempts!==null&&(n.MaximumRetryAttempts=(0,f.expectInt32)(r.MaximumRetryAttempts)),Promise.resolve(n)};z.deserializeAws_restJson1PutFunctionEventInvokeConfigCommand=W5e;var Q5e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},Y5e=async(e,t)=>{if(e.statusCode!==202&&e.statusCode>=300)return Z5e(e,t);let n={$metadata:O(e),AllocatedProvisionedConcurrentExecutions:void 0,AvailableProvisionedConcurrentExecutions:void 0,LastModified:void 0,RequestedProvisionedConcurrentExecutions:void 0,Status:void 0,StatusReason:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.AllocatedProvisionedConcurrentExecutions!==void 0&&r.AllocatedProvisionedConcurrentExecutions!==null&&(n.AllocatedProvisionedConcurrentExecutions=(0,f.expectInt32)(r.AllocatedProvisionedConcurrentExecutions)),r.AvailableProvisionedConcurrentExecutions!==void 0&&r.AvailableProvisionedConcurrentExecutions!==null&&(n.AvailableProvisionedConcurrentExecutions=(0,f.expectInt32)(r.AvailableProvisionedConcurrentExecutions)),r.LastModified!==void 0&&r.LastModified!==null&&(n.LastModified=(0,f.expectString)(r.LastModified)),r.RequestedProvisionedConcurrentExecutions!==void 0&&r.RequestedProvisionedConcurrentExecutions!==null&&(n.RequestedProvisionedConcurrentExecutions=(0,f.expectInt32)(r.RequestedProvisionedConcurrentExecutions)),r.Status!==void 0&&r.Status!==null&&(n.Status=(0,f.expectString)(r.Status)),r.StatusReason!==void 0&&r.StatusReason!==null&&(n.StatusReason=(0,f.expectString)(r.StatusReason)),Promise.resolve(n)};z.deserializeAws_restJson1PutProvisionedConcurrencyConfigCommand=Y5e;var Z5e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},e6e=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return t6e(e,t);let n={$metadata:O(e)};return await kn(e.body,t),Promise.resolve(n)};z.deserializeAws_restJson1RemoveLayerVersionPermissionCommand=e6e;var t6e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"PreconditionFailedException":case"com.amazonaws.lambda#PreconditionFailedException":throw await ao(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},n6e=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return r6e(e,t);let n={$metadata:O(e)};return await kn(e.body,t),Promise.resolve(n)};z.deserializeAws_restJson1RemovePermissionCommand=n6e;var r6e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"PreconditionFailedException":case"com.amazonaws.lambda#PreconditionFailedException":throw await ao(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},i6e=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return s6e(e,t);let n={$metadata:O(e)};return await kn(e.body,t),Promise.resolve(n)};z.deserializeAws_restJson1TagResourceCommand=i6e;var s6e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},o6e=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return a6e(e,t);let n={$metadata:O(e)};return await kn(e.body,t),Promise.resolve(n)};z.deserializeAws_restJson1UntagResourceCommand=o6e;var a6e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},d6e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return c6e(e,t);let n={$metadata:O(e),AliasArn:void 0,Description:void 0,FunctionVersion:void 0,Name:void 0,RevisionId:void 0,RoutingConfig:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.AliasArn!==void 0&&r.AliasArn!==null&&(n.AliasArn=(0,f.expectString)(r.AliasArn)),r.Description!==void 0&&r.Description!==null&&(n.Description=(0,f.expectString)(r.Description)),r.FunctionVersion!==void 0&&r.FunctionVersion!==null&&(n.FunctionVersion=(0,f.expectString)(r.FunctionVersion)),r.Name!==void 0&&r.Name!==null&&(n.Name=(0,f.expectString)(r.Name)),r.RevisionId!==void 0&&r.RevisionId!==null&&(n.RevisionId=(0,f.expectString)(r.RevisionId)),r.RoutingConfig!==void 0&&r.RoutingConfig!==null&&(n.RoutingConfig=Uv(r.RoutingConfig,t)),Promise.resolve(n)};z.deserializeAws_restJson1UpdateAliasCommand=d6e;var c6e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"PreconditionFailedException":case"com.amazonaws.lambda#PreconditionFailedException":throw await ao(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},l6e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return u6e(e,t);let n={$metadata:O(e),CodeSigningConfig:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.CodeSigningConfig!==void 0&&r.CodeSigningConfig!==null&&(n.CodeSigningConfig=Gv(r.CodeSigningConfig,t)),Promise.resolve(n)};z.deserializeAws_restJson1UpdateCodeSigningConfigCommand=l6e;var u6e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},m6e=async(e,t)=>{if(e.statusCode!==202&&e.statusCode>=300)return f6e(e,t);let n={$metadata:O(e),BatchSize:void 0,BisectBatchOnFunctionError:void 0,DestinationConfig:void 0,EventSourceArn:void 0,FilterCriteria:void 0,FunctionArn:void 0,FunctionResponseTypes:void 0,LastModified:void 0,LastProcessingResult:void 0,MaximumBatchingWindowInSeconds:void 0,MaximumRecordAgeInSeconds:void 0,MaximumRetryAttempts:void 0,ParallelizationFactor:void 0,Queues:void 0,SelfManagedEventSource:void 0,SourceAccessConfigurations:void 0,StartingPosition:void 0,StartingPositionTimestamp:void 0,State:void 0,StateTransitionReason:void 0,Topics:void 0,TumblingWindowInSeconds:void 0,UUID:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.BatchSize!==void 0&&r.BatchSize!==null&&(n.BatchSize=(0,f.expectInt32)(r.BatchSize)),r.BisectBatchOnFunctionError!==void 0&&r.BisectBatchOnFunctionError!==null&&(n.BisectBatchOnFunctionError=(0,f.expectBoolean)(r.BisectBatchOnFunctionError)),r.DestinationConfig!==void 0&&r.DestinationConfig!==null&&(n.DestinationConfig=as(r.DestinationConfig,t)),r.EventSourceArn!==void 0&&r.EventSourceArn!==null&&(n.EventSourceArn=(0,f.expectString)(r.EventSourceArn)),r.FilterCriteria!==void 0&&r.FilterCriteria!==null&&(n.FilterCriteria=Um(r.FilterCriteria,t)),r.FunctionArn!==void 0&&r.FunctionArn!==null&&(n.FunctionArn=(0,f.expectString)(r.FunctionArn)),r.FunctionResponseTypes!==void 0&&r.FunctionResponseTypes!==null&&(n.FunctionResponseTypes=Gm(r.FunctionResponseTypes,t)),r.LastModified!==void 0&&r.LastModified!==null&&(n.LastModified=(0,f.expectNonNull)((0,f.parseEpochTimestamp)((0,f.expectNumber)(r.LastModified)))),r.LastProcessingResult!==void 0&&r.LastProcessingResult!==null&&(n.LastProcessingResult=(0,f.expectString)(r.LastProcessingResult)),r.MaximumBatchingWindowInSeconds!==void 0&&r.MaximumBatchingWindowInSeconds!==null&&(n.MaximumBatchingWindowInSeconds=(0,f.expectInt32)(r.MaximumBatchingWindowInSeconds)),r.MaximumRecordAgeInSeconds!==void 0&&r.MaximumRecordAgeInSeconds!==null&&(n.MaximumRecordAgeInSeconds=(0,f.expectInt32)(r.MaximumRecordAgeInSeconds)),r.MaximumRetryAttempts!==void 0&&r.MaximumRetryAttempts!==null&&(n.MaximumRetryAttempts=(0,f.expectInt32)(r.MaximumRetryAttempts)),r.ParallelizationFactor!==void 0&&r.ParallelizationFactor!==null&&(n.ParallelizationFactor=(0,f.expectInt32)(r.ParallelizationFactor)),r.Queues!==void 0&&r.Queues!==null&&(n.Queues=Vm(r.Queues,t)),r.SelfManagedEventSource!==void 0&&r.SelfManagedEventSource!==null&&(n.SelfManagedEventSource=$m(r.SelfManagedEventSource,t)),r.SourceAccessConfigurations!==void 0&&r.SourceAccessConfigurations!==null&&(n.SourceAccessConfigurations=Hm(r.SourceAccessConfigurations,t)),r.StartingPosition!==void 0&&r.StartingPosition!==null&&(n.StartingPosition=(0,f.expectString)(r.StartingPosition)),r.StartingPositionTimestamp!==void 0&&r.StartingPositionTimestamp!==null&&(n.StartingPositionTimestamp=(0,f.expectNonNull)((0,f.parseEpochTimestamp)((0,f.expectNumber)(r.StartingPositionTimestamp)))),r.State!==void 0&&r.State!==null&&(n.State=(0,f.expectString)(r.State)),r.StateTransitionReason!==void 0&&r.StateTransitionReason!==null&&(n.StateTransitionReason=(0,f.expectString)(r.StateTransitionReason)),r.Topics!==void 0&&r.Topics!==null&&(n.Topics=Jm(r.Topics,t)),r.TumblingWindowInSeconds!==void 0&&r.TumblingWindowInSeconds!==null&&(n.TumblingWindowInSeconds=(0,f.expectInt32)(r.TumblingWindowInSeconds)),r.UUID!==void 0&&r.UUID!==null&&(n.UUID=(0,f.expectString)(r.UUID)),Promise.resolve(n)};z.deserializeAws_restJson1UpdateEventSourceMappingCommand=m6e;var f6e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceInUseException":case"com.amazonaws.lambda#ResourceInUseException":throw await $7(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},p6e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return g6e(e,t);let n={$metadata:O(e),Architectures:void 0,CodeSha256:void 0,CodeSize:void 0,DeadLetterConfig:void 0,Description:void 0,Environment:void 0,EphemeralStorage:void 0,FileSystemConfigs:void 0,FunctionArn:void 0,FunctionName:void 0,Handler:void 0,ImageConfigResponse:void 0,KMSKeyArn:void 0,LastModified:void 0,LastUpdateStatus:void 0,LastUpdateStatusReason:void 0,LastUpdateStatusReasonCode:void 0,Layers:void 0,MasterArn:void 0,MemorySize:void 0,PackageType:void 0,RevisionId:void 0,Role:void 0,Runtime:void 0,SigningJobArn:void 0,SigningProfileVersionArn:void 0,State:void 0,StateReason:void 0,StateReasonCode:void 0,Timeout:void 0,TracingConfig:void 0,Version:void 0,VpcConfig:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.Architectures!==void 0&&r.Architectures!==null&&(n.Architectures=zd(r.Architectures,t)),r.CodeSha256!==void 0&&r.CodeSha256!==null&&(n.CodeSha256=(0,f.expectString)(r.CodeSha256)),r.CodeSize!==void 0&&r.CodeSize!==null&&(n.CodeSize=(0,f.expectLong)(r.CodeSize)),r.DeadLetterConfig!==void 0&&r.DeadLetterConfig!==null&&(n.DeadLetterConfig=qd(r.DeadLetterConfig,t)),r.Description!==void 0&&r.Description!==null&&(n.Description=(0,f.expectString)(r.Description)),r.Environment!==void 0&&r.Environment!==null&&(n.Environment=Ld(r.Environment,t)),r.EphemeralStorage!==void 0&&r.EphemeralStorage!==null&&(n.EphemeralStorage=Dd(r.EphemeralStorage,t)),r.FileSystemConfigs!==void 0&&r.FileSystemConfigs!==null&&(n.FileSystemConfigs=Md(r.FileSystemConfigs,t)),r.FunctionArn!==void 0&&r.FunctionArn!==null&&(n.FunctionArn=(0,f.expectString)(r.FunctionArn)),r.FunctionName!==void 0&&r.FunctionName!==null&&(n.FunctionName=(0,f.expectString)(r.FunctionName)),r.Handler!==void 0&&r.Handler!==null&&(n.Handler=(0,f.expectString)(r.Handler)),r.ImageConfigResponse!==void 0&&r.ImageConfigResponse!==null&&(n.ImageConfigResponse=Bd(r.ImageConfigResponse,t)),r.KMSKeyArn!==void 0&&r.KMSKeyArn!==null&&(n.KMSKeyArn=(0,f.expectString)(r.KMSKeyArn)),r.LastModified!==void 0&&r.LastModified!==null&&(n.LastModified=(0,f.expectString)(r.LastModified)),r.LastUpdateStatus!==void 0&&r.LastUpdateStatus!==null&&(n.LastUpdateStatus=(0,f.expectString)(r.LastUpdateStatus)),r.LastUpdateStatusReason!==void 0&&r.LastUpdateStatusReason!==null&&(n.LastUpdateStatusReason=(0,f.expectString)(r.LastUpdateStatusReason)),r.LastUpdateStatusReasonCode!==void 0&&r.LastUpdateStatusReasonCode!==null&&(n.LastUpdateStatusReasonCode=(0,f.expectString)(r.LastUpdateStatusReasonCode)),r.Layers!==void 0&&r.Layers!==null&&(n.Layers=Od(r.Layers,t)),r.MasterArn!==void 0&&r.MasterArn!==null&&(n.MasterArn=(0,f.expectString)(r.MasterArn)),r.MemorySize!==void 0&&r.MemorySize!==null&&(n.MemorySize=(0,f.expectInt32)(r.MemorySize)),r.PackageType!==void 0&&r.PackageType!==null&&(n.PackageType=(0,f.expectString)(r.PackageType)),r.RevisionId!==void 0&&r.RevisionId!==null&&(n.RevisionId=(0,f.expectString)(r.RevisionId)),r.Role!==void 0&&r.Role!==null&&(n.Role=(0,f.expectString)(r.Role)),r.Runtime!==void 0&&r.Runtime!==null&&(n.Runtime=(0,f.expectString)(r.Runtime)),r.SigningJobArn!==void 0&&r.SigningJobArn!==null&&(n.SigningJobArn=(0,f.expectString)(r.SigningJobArn)),r.SigningProfileVersionArn!==void 0&&r.SigningProfileVersionArn!==null&&(n.SigningProfileVersionArn=(0,f.expectString)(r.SigningProfileVersionArn)),r.State!==void 0&&r.State!==null&&(n.State=(0,f.expectString)(r.State)),r.StateReason!==void 0&&r.StateReason!==null&&(n.StateReason=(0,f.expectString)(r.StateReason)),r.StateReasonCode!==void 0&&r.StateReasonCode!==null&&(n.StateReasonCode=(0,f.expectString)(r.StateReasonCode)),r.Timeout!==void 0&&r.Timeout!==null&&(n.Timeout=(0,f.expectInt32)(r.Timeout)),r.TracingConfig!==void 0&&r.TracingConfig!==null&&(n.TracingConfig=Fd(r.TracingConfig,t)),r.Version!==void 0&&r.Version!==null&&(n.Version=(0,f.expectString)(r.Version)),r.VpcConfig!==void 0&&r.VpcConfig!==null&&(n.VpcConfig=jd(r.VpcConfig,t)),Promise.resolve(n)};z.deserializeAws_restJson1UpdateFunctionCodeCommand=p6e;var g6e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"CodeSigningConfigNotFoundException":case"com.amazonaws.lambda#CodeSigningConfigNotFoundException":throw await jm(n,t);case"CodeStorageExceededException":case"com.amazonaws.lambda#CodeStorageExceededException":throw await Fv(n,t);case"CodeVerificationFailedException":case"com.amazonaws.lambda#CodeVerificationFailedException":throw await iq(n,t);case"InvalidCodeSignatureException":case"com.amazonaws.lambda#InvalidCodeSignatureException":throw await sq(n,t);case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"PreconditionFailedException":case"com.amazonaws.lambda#PreconditionFailedException":throw await ao(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},h6e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return w6e(e,t);let n={$metadata:O(e),Architectures:void 0,CodeSha256:void 0,CodeSize:void 0,DeadLetterConfig:void 0,Description:void 0,Environment:void 0,EphemeralStorage:void 0,FileSystemConfigs:void 0,FunctionArn:void 0,FunctionName:void 0,Handler:void 0,ImageConfigResponse:void 0,KMSKeyArn:void 0,LastModified:void 0,LastUpdateStatus:void 0,LastUpdateStatusReason:void 0,LastUpdateStatusReasonCode:void 0,Layers:void 0,MasterArn:void 0,MemorySize:void 0,PackageType:void 0,RevisionId:void 0,Role:void 0,Runtime:void 0,SigningJobArn:void 0,SigningProfileVersionArn:void 0,State:void 0,StateReason:void 0,StateReasonCode:void 0,Timeout:void 0,TracingConfig:void 0,Version:void 0,VpcConfig:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.Architectures!==void 0&&r.Architectures!==null&&(n.Architectures=zd(r.Architectures,t)),r.CodeSha256!==void 0&&r.CodeSha256!==null&&(n.CodeSha256=(0,f.expectString)(r.CodeSha256)),r.CodeSize!==void 0&&r.CodeSize!==null&&(n.CodeSize=(0,f.expectLong)(r.CodeSize)),r.DeadLetterConfig!==void 0&&r.DeadLetterConfig!==null&&(n.DeadLetterConfig=qd(r.DeadLetterConfig,t)),r.Description!==void 0&&r.Description!==null&&(n.Description=(0,f.expectString)(r.Description)),r.Environment!==void 0&&r.Environment!==null&&(n.Environment=Ld(r.Environment,t)),r.EphemeralStorage!==void 0&&r.EphemeralStorage!==null&&(n.EphemeralStorage=Dd(r.EphemeralStorage,t)),r.FileSystemConfigs!==void 0&&r.FileSystemConfigs!==null&&(n.FileSystemConfigs=Md(r.FileSystemConfigs,t)),r.FunctionArn!==void 0&&r.FunctionArn!==null&&(n.FunctionArn=(0,f.expectString)(r.FunctionArn)),r.FunctionName!==void 0&&r.FunctionName!==null&&(n.FunctionName=(0,f.expectString)(r.FunctionName)),r.Handler!==void 0&&r.Handler!==null&&(n.Handler=(0,f.expectString)(r.Handler)),r.ImageConfigResponse!==void 0&&r.ImageConfigResponse!==null&&(n.ImageConfigResponse=Bd(r.ImageConfigResponse,t)),r.KMSKeyArn!==void 0&&r.KMSKeyArn!==null&&(n.KMSKeyArn=(0,f.expectString)(r.KMSKeyArn)),r.LastModified!==void 0&&r.LastModified!==null&&(n.LastModified=(0,f.expectString)(r.LastModified)),r.LastUpdateStatus!==void 0&&r.LastUpdateStatus!==null&&(n.LastUpdateStatus=(0,f.expectString)(r.LastUpdateStatus)),r.LastUpdateStatusReason!==void 0&&r.LastUpdateStatusReason!==null&&(n.LastUpdateStatusReason=(0,f.expectString)(r.LastUpdateStatusReason)),r.LastUpdateStatusReasonCode!==void 0&&r.LastUpdateStatusReasonCode!==null&&(n.LastUpdateStatusReasonCode=(0,f.expectString)(r.LastUpdateStatusReasonCode)),r.Layers!==void 0&&r.Layers!==null&&(n.Layers=Od(r.Layers,t)),r.MasterArn!==void 0&&r.MasterArn!==null&&(n.MasterArn=(0,f.expectString)(r.MasterArn)),r.MemorySize!==void 0&&r.MemorySize!==null&&(n.MemorySize=(0,f.expectInt32)(r.MemorySize)),r.PackageType!==void 0&&r.PackageType!==null&&(n.PackageType=(0,f.expectString)(r.PackageType)),r.RevisionId!==void 0&&r.RevisionId!==null&&(n.RevisionId=(0,f.expectString)(r.RevisionId)),r.Role!==void 0&&r.Role!==null&&(n.Role=(0,f.expectString)(r.Role)),r.Runtime!==void 0&&r.Runtime!==null&&(n.Runtime=(0,f.expectString)(r.Runtime)),r.SigningJobArn!==void 0&&r.SigningJobArn!==null&&(n.SigningJobArn=(0,f.expectString)(r.SigningJobArn)),r.SigningProfileVersionArn!==void 0&&r.SigningProfileVersionArn!==null&&(n.SigningProfileVersionArn=(0,f.expectString)(r.SigningProfileVersionArn)),r.State!==void 0&&r.State!==null&&(n.State=(0,f.expectString)(r.State)),r.StateReason!==void 0&&r.StateReason!==null&&(n.StateReason=(0,f.expectString)(r.StateReason)),r.StateReasonCode!==void 0&&r.StateReasonCode!==null&&(n.StateReasonCode=(0,f.expectString)(r.StateReasonCode)),r.Timeout!==void 0&&r.Timeout!==null&&(n.Timeout=(0,f.expectInt32)(r.Timeout)),r.TracingConfig!==void 0&&r.TracingConfig!==null&&(n.TracingConfig=Fd(r.TracingConfig,t)),r.Version!==void 0&&r.Version!==null&&(n.Version=(0,f.expectString)(r.Version)),r.VpcConfig!==void 0&&r.VpcConfig!==null&&(n.VpcConfig=jd(r.VpcConfig,t)),Promise.resolve(n)};z.deserializeAws_restJson1UpdateFunctionConfigurationCommand=h6e;var w6e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"CodeSigningConfigNotFoundException":case"com.amazonaws.lambda#CodeSigningConfigNotFoundException":throw await jm(n,t);case"CodeVerificationFailedException":case"com.amazonaws.lambda#CodeVerificationFailedException":throw await iq(n,t);case"InvalidCodeSignatureException":case"com.amazonaws.lambda#InvalidCodeSignatureException":throw await sq(n,t);case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"PreconditionFailedException":case"com.amazonaws.lambda#PreconditionFailedException":throw await ao(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},y6e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return S6e(e,t);let n={$metadata:O(e),DestinationConfig:void 0,FunctionArn:void 0,LastModified:void 0,MaximumEventAgeInSeconds:void 0,MaximumRetryAttempts:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.DestinationConfig!==void 0&&r.DestinationConfig!==null&&(n.DestinationConfig=as(r.DestinationConfig,t)),r.FunctionArn!==void 0&&r.FunctionArn!==null&&(n.FunctionArn=(0,f.expectString)(r.FunctionArn)),r.LastModified!==void 0&&r.LastModified!==null&&(n.LastModified=(0,f.expectNonNull)((0,f.parseEpochTimestamp)((0,f.expectNumber)(r.LastModified)))),r.MaximumEventAgeInSeconds!==void 0&&r.MaximumEventAgeInSeconds!==null&&(n.MaximumEventAgeInSeconds=(0,f.expectInt32)(r.MaximumEventAgeInSeconds)),r.MaximumRetryAttempts!==void 0&&r.MaximumRetryAttempts!==null&&(n.MaximumRetryAttempts=(0,f.expectInt32)(r.MaximumRetryAttempts)),Promise.resolve(n)};z.deserializeAws_restJson1UpdateFunctionEventInvokeConfigCommand=y6e;var S6e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},_6e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return v6e(e,t);let n={$metadata:O(e),AuthType:void 0,Cors:void 0,CreationTime:void 0,FunctionArn:void 0,FunctionUrl:void 0,LastModifiedTime:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.AuthType!==void 0&&r.AuthType!==null&&(n.AuthType=(0,f.expectString)(r.AuthType)),r.Cors!==void 0&&r.Cors!==null&&(n.Cors=Hv(r.Cors,t)),r.CreationTime!==void 0&&r.CreationTime!==null&&(n.CreationTime=(0,f.expectString)(r.CreationTime)),r.FunctionArn!==void 0&&r.FunctionArn!==null&&(n.FunctionArn=(0,f.expectString)(r.FunctionArn)),r.FunctionUrl!==void 0&&r.FunctionUrl!==null&&(n.FunctionUrl=(0,f.expectString)(r.FunctionUrl)),r.LastModifiedTime!==void 0&&r.LastModifiedTime!==null&&(n.LastModifiedTime=(0,f.expectString)(r.LastModifiedTime)),Promise.resolve(n)};z.deserializeAws_restJson1UpdateFunctionUrlConfigCommand=_6e;var v6e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},jm=async(e,t)=>{let n={},r=e.body;r.Message!==void 0&&r.Message!==null&&(n.Message=(0,f.expectString)(r.Message)),r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type));let i=new gt.CodeSigningConfigNotFoundException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},Fv=async(e,t)=>{let n={},r=e.body;r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type)),r.message!==void 0&&r.message!==null&&(n.message=(0,f.expectString)(r.message));let i=new gt.CodeStorageExceededException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},iq=async(e,t)=>{let n={},r=e.body;r.Message!==void 0&&r.Message!==null&&(n.Message=(0,f.expectString)(r.Message)),r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type));let i=new gt.CodeVerificationFailedException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},C6e=async(e,t)=>{let n={},r=e.body;r.Message!==void 0&&r.Message!==null&&(n.Message=(0,f.expectString)(r.Message)),r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type));let i=new gt.EC2AccessDeniedException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},E6e=async(e,t)=>{let n={},r=e.body;r.Message!==void 0&&r.Message!==null&&(n.Message=(0,f.expectString)(r.Message)),r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type));let i=new gt.EC2ThrottledException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},A6e=async(e,t)=>{let n={},r=e.body;r.EC2ErrorCode!==void 0&&r.EC2ErrorCode!==null&&(n.EC2ErrorCode=(0,f.expectString)(r.EC2ErrorCode)),r.Message!==void 0&&r.Message!==null&&(n.Message=(0,f.expectString)(r.Message)),r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type));let i=new gt.EC2UnexpectedException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},x6e=async(e,t)=>{let n={},r=e.body;r.Message!==void 0&&r.Message!==null&&(n.Message=(0,f.expectString)(r.Message)),r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type));let i=new gt.EFSIOException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},b6e=async(e,t)=>{let n={},r=e.body;r.Message!==void 0&&r.Message!==null&&(n.Message=(0,f.expectString)(r.Message)),r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type));let i=new gt.EFSMountConnectivityException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},R6e=async(e,t)=>{let n={},r=e.body;r.Message!==void 0&&r.Message!==null&&(n.Message=(0,f.expectString)(r.Message)),r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type));let i=new gt.EFSMountFailureException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},T6e=async(e,t)=>{let n={},r=e.body;r.Message!==void 0&&r.Message!==null&&(n.Message=(0,f.expectString)(r.Message)),r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type));let i=new gt.EFSMountTimeoutException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},I6e=async(e,t)=>{let n={},r=e.body;r.Message!==void 0&&r.Message!==null&&(n.Message=(0,f.expectString)(r.Message)),r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type));let i=new gt.ENILimitReachedException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},sq=async(e,t)=>{let n={},r=e.body;r.Message!==void 0&&r.Message!==null&&(n.Message=(0,f.expectString)(r.Message)),r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type));let i=new gt.InvalidCodeSignatureException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},Me=async(e,t)=>{let n={},r=e.body;r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type)),r.message!==void 0&&r.message!==null&&(n.message=(0,f.expectString)(r.message));let i=new gt.InvalidParameterValueException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},U7=async(e,t)=>{let n={},r=e.body;r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type)),r.message!==void 0&&r.message!==null&&(n.message=(0,f.expectString)(r.message));let i=new gt.InvalidRequestContentException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},G7=async(e,t)=>{let n={},r=e.body;r.Message!==void 0&&r.Message!==null&&(n.Message=(0,f.expectString)(r.Message)),r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type));let i=new gt.InvalidRuntimeException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},N6e=async(e,t)=>{let n={},r=e.body;r.Message!==void 0&&r.Message!==null&&(n.Message=(0,f.expectString)(r.Message)),r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type));let i=new gt.InvalidSecurityGroupIDException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},P6e=async(e,t)=>{let n={},r=e.body;r.Message!==void 0&&r.Message!==null&&(n.Message=(0,f.expectString)(r.Message)),r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type));let i=new gt.InvalidSubnetIDException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},k6e=async(e,t)=>{let n={},r=e.body;r.Message!==void 0&&r.Message!==null&&(n.Message=(0,f.expectString)(r.Message)),r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type));let i=new gt.InvalidZipFileException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},z6e=async(e,t)=>{let n={},r=e.body;r.Message!==void 0&&r.Message!==null&&(n.Message=(0,f.expectString)(r.Message)),r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type));let i=new gt.KMSAccessDeniedException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},q6e=async(e,t)=>{let n={},r=e.body;r.Message!==void 0&&r.Message!==null&&(n.Message=(0,f.expectString)(r.Message)),r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type));let i=new gt.KMSDisabledException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},L6e=async(e,t)=>{let n={},r=e.body;r.Message!==void 0&&r.Message!==null&&(n.Message=(0,f.expectString)(r.Message)),r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type));let i=new gt.KMSInvalidStateException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},D6e=async(e,t)=>{let n={},r=e.body;r.Message!==void 0&&r.Message!==null&&(n.Message=(0,f.expectString)(r.Message)),r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type));let i=new gt.KMSNotFoundException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},V7=async(e,t)=>{let n={},r=e.body;r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type)),r.message!==void 0&&r.message!==null&&(n.message=(0,f.expectString)(r.message));let i=new gt.PolicyLengthExceededException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},ao=async(e,t)=>{let n={},r=e.body;r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type)),r.message!==void 0&&r.message!==null&&(n.message=(0,f.expectString)(r.message));let i=new gt.PreconditionFailedException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},M6e=async(e,t)=>{let n={},r=e.body;r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type)),r.message!==void 0&&r.message!==null&&(n.message=(0,f.expectString)(r.message));let i=new gt.ProvisionedConcurrencyConfigNotFoundException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},B6e=async(e,t)=>{let n={},r=e.body;r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type)),r.message!==void 0&&r.message!==null&&(n.message=(0,f.expectString)(r.message));let i=new gt.RequestTooLargeException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},bt=async(e,t)=>{let n={},r=e.body;r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type)),r.message!==void 0&&r.message!==null&&(n.message=(0,f.expectString)(r.message));let i=new gt.ResourceConflictException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},$7=async(e,t)=>{let n={},r=e.body;r.Message!==void 0&&r.Message!==null&&(n.Message=(0,f.expectString)(r.Message)),r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type));let i=new gt.ResourceInUseException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},Oe=async(e,t)=>{let n={},r=e.body;r.Message!==void 0&&r.Message!==null&&(n.Message=(0,f.expectString)(r.Message)),r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type));let i=new gt.ResourceNotFoundException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},O6e=async(e,t)=>{let n={},r=e.body;r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type)),r.message!==void 0&&r.message!==null&&(n.message=(0,f.expectString)(r.message));let i=new gt.ResourceNotReadyException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},ze=async(e,t)=>{let n={},r=e.body;r.Message!==void 0&&r.Message!==null&&(n.Message=(0,f.expectString)(r.Message)),r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type));let i=new gt.ServiceException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},F6e=async(e,t)=>{let n={},r=e.body;r.Message!==void 0&&r.Message!==null&&(n.Message=(0,f.expectString)(r.Message)),r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type));let i=new gt.SubnetIPAddressLimitReachedException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},Fe=async(e,t)=>{let n={};e.headers["retry-after"]!==void 0&&(n.retryAfterSeconds=e.headers["retry-after"]);let r=e.body;r.Reason!==void 0&&r.Reason!==null&&(n.Reason=(0,f.expectString)(r.Reason)),r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type)),r.message!==void 0&&r.message!==null&&(n.message=(0,f.expectString)(r.message));let i=new gt.TooManyRequestsException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},j6e=async(e,t)=>{let n={},r=e.body;r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type)),r.message!==void 0&&r.message!==null&&(n.message=(0,f.expectString)(r.message));let i=new gt.UnsupportedMediaTypeException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},U6e=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:S(o({},n),{[r]:(0,f.serializeFloat)(i)}),{}),H7=(e,t)=>o({},e.AdditionalVersionWeights!==void 0&&e.AdditionalVersionWeights!==null&&{AdditionalVersionWeights:U6e(e.AdditionalVersionWeights,t)}),J7=(e,t)=>o({},e.SigningProfileVersionArns!==void 0&&e.SigningProfileVersionArns!==null&&{SigningProfileVersionArns:o4e(e.SigningProfileVersionArns,t)}),G6e=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),V6e=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),X7=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),K7=(e,t)=>o({},e.UntrustedArtifactOnDeployment!==void 0&&e.UntrustedArtifactOnDeployment!==null&&{UntrustedArtifactOnDeployment:e.UntrustedArtifactOnDeployment}),$6e=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),H6e=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),W7=(e,t)=>o(o(o(o(o(o({},e.AllowCredentials!==void 0&&e.AllowCredentials!==null&&{AllowCredentials:e.AllowCredentials}),e.AllowHeaders!==void 0&&e.AllowHeaders!==null&&{AllowHeaders:B7(e.AllowHeaders,t)}),e.AllowMethods!==void 0&&e.AllowMethods!==null&&{AllowMethods:G6e(e.AllowMethods,t)}),e.AllowOrigins!==void 0&&e.AllowOrigins!==null&&{AllowOrigins:V6e(e.AllowOrigins,t)}),e.ExposeHeaders!==void 0&&e.ExposeHeaders!==null&&{ExposeHeaders:B7(e.ExposeHeaders,t)}),e.MaxAge!==void 0&&e.MaxAge!==null&&{MaxAge:e.MaxAge}),Q7=(e,t)=>o({},e.TargetArn!==void 0&&e.TargetArn!==null&&{TargetArn:e.TargetArn}),jv=(e,t)=>o(o({},e.OnFailure!==void 0&&e.OnFailure!==null&&{OnFailure:t4e(e.OnFailure,t)}),e.OnSuccess!==void 0&&e.OnSuccess!==null&&{OnSuccess:n4e(e.OnSuccess,t)}),J6e=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),X6e=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:S(o({},n),{[r]:J6e(i,t)}),{}),Y7=(e,t)=>o({},e.Variables!==void 0&&e.Variables!==null&&{Variables:K6e(e.Variables,t)}),K6e=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:S(o({},n),{[r]:i}),{}),Z7=(e,t)=>o({},e.Size!==void 0&&e.Size!==null&&{Size:e.Size}),W6e=(e,t)=>o(o({},e.Arn!==void 0&&e.Arn!==null&&{Arn:e.Arn}),e.LocalMountPath!==void 0&&e.LocalMountPath!==null&&{LocalMountPath:e.LocalMountPath}),eQ=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:W6e(n,t)),Q6e=(e,t)=>o({},e.Pattern!==void 0&&e.Pattern!==null&&{Pattern:e.Pattern}),tQ=(e,t)=>o({},e.Filters!==void 0&&e.Filters!==null&&{Filters:Y6e(e.Filters,t)}),Y6e=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:Q6e(n,t)),Z6e=(e,t)=>o(o(o(o(o({},e.ImageUri!==void 0&&e.ImageUri!==null&&{ImageUri:e.ImageUri}),e.S3Bucket!==void 0&&e.S3Bucket!==null&&{S3Bucket:e.S3Bucket}),e.S3Key!==void 0&&e.S3Key!==null&&{S3Key:e.S3Key}),e.S3ObjectVersion!==void 0&&e.S3ObjectVersion!==null&&{S3ObjectVersion:e.S3ObjectVersion}),e.ZipFile!==void 0&&e.ZipFile!==null&&{ZipFile:t.base64Encoder(e.ZipFile)}),nQ=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),B7=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),rQ=(e,t)=>o(o(o({},e.Command!==void 0&&e.Command!==null&&{Command:O7(e.Command,t)}),e.EntryPoint!==void 0&&e.EntryPoint!==null&&{EntryPoint:O7(e.EntryPoint,t)}),e.WorkingDirectory!==void 0&&e.WorkingDirectory!==null&&{WorkingDirectory:e.WorkingDirectory}),iQ=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),e4e=(e,t)=>o(o(o(o({},e.S3Bucket!==void 0&&e.S3Bucket!==null&&{S3Bucket:e.S3Bucket}),e.S3Key!==void 0&&e.S3Key!==null&&{S3Key:e.S3Key}),e.S3ObjectVersion!==void 0&&e.S3ObjectVersion!==null&&{S3ObjectVersion:e.S3ObjectVersion}),e.ZipFile!==void 0&&e.ZipFile!==null&&{ZipFile:t.base64Encoder(e.ZipFile)}),t4e=(e,t)=>o({},e.Destination!==void 0&&e.Destination!==null&&{Destination:e.Destination}),n4e=(e,t)=>o({},e.Destination!==void 0&&e.Destination!==null&&{Destination:e.Destination}),r4e=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),i4e=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),s4e=(e,t)=>o({},e.Endpoints!==void 0&&e.Endpoints!==null&&{Endpoints:X6e(e.Endpoints,t)}),o4e=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),a4e=(e,t)=>o(o({},e.Type!==void 0&&e.Type!==null&&{Type:e.Type}),e.URI!==void 0&&e.URI!==null&&{URI:e.URI}),sQ=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:a4e(n,t)),O7=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),d4e=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),oQ=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:S(o({},n),{[r]:i}),{}),c4e=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),aQ=(e,t)=>o({},e.Mode!==void 0&&e.Mode!==null&&{Mode:e.Mode}),dQ=(e,t)=>o(o({},e.SecurityGroupIds!==void 0&&e.SecurityGroupIds!==null&&{SecurityGroupIds:i4e(e.SecurityGroupIds,t)}),e.SubnetIds!==void 0&&e.SubnetIds!==null&&{SubnetIds:d4e(e.SubnetIds,t)}),l4e=(e,t)=>({CodeSizeUnzipped:(0,f.expectLong)(e.CodeSizeUnzipped),CodeSizeZipped:(0,f.expectLong)(e.CodeSizeZipped),ConcurrentExecutions:(0,f.expectInt32)(e.ConcurrentExecutions),TotalCodeSize:(0,f.expectLong)(e.TotalCodeSize),UnreservedConcurrentExecutions:(0,f.expectInt32)(e.UnreservedConcurrentExecutions)}),u4e=(e,t)=>({FunctionCount:(0,f.expectLong)(e.FunctionCount),TotalCodeSize:(0,f.expectLong)(e.TotalCodeSize)}),m4e=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:S(o({},n),{[r]:(0,f.limitedParseDouble)(i)}),{}),f4e=(e,t)=>({AliasArn:(0,f.expectString)(e.AliasArn),Description:(0,f.expectString)(e.Description),FunctionVersion:(0,f.expectString)(e.FunctionVersion),Name:(0,f.expectString)(e.Name),RevisionId:(0,f.expectString)(e.RevisionId),RoutingConfig:e.RoutingConfig!==void 0&&e.RoutingConfig!==null?Uv(e.RoutingConfig,t):void 0}),p4e=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:f4e(r,t)),Uv=(e,t)=>({AdditionalVersionWeights:e.AdditionalVersionWeights!==void 0&&e.AdditionalVersionWeights!==null?m4e(e.AdditionalVersionWeights,t):void 0}),g4e=(e,t)=>({SigningProfileVersionArns:e.SigningProfileVersionArns!==void 0&&e.SigningProfileVersionArns!==null?J4e(e.SigningProfileVersionArns,t):void 0}),h4e=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:(0,f.expectString)(r)),w4e=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:(0,f.expectString)(r)),zd=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:(0,f.expectString)(r)),Gv=(e,t)=>({AllowedPublishers:e.AllowedPublishers!==void 0&&e.AllowedPublishers!==null?g4e(e.AllowedPublishers,t):void 0,CodeSigningConfigArn:(0,f.expectString)(e.CodeSigningConfigArn),CodeSigningConfigId:(0,f.expectString)(e.CodeSigningConfigId),CodeSigningPolicies:e.CodeSigningPolicies!==void 0&&e.CodeSigningPolicies!==null?S4e(e.CodeSigningPolicies,t):void 0,Description:(0,f.expectString)(e.Description),LastModified:(0,f.expectString)(e.LastModified)}),y4e=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:Gv(r,t)),S4e=(e,t)=>({UntrustedArtifactOnDeployment:(0,f.expectString)(e.UntrustedArtifactOnDeployment)}),Vv=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:(0,f.expectString)(r)),$v=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:(0,f.expectString)(r)),_4e=(e,t)=>({ReservedConcurrentExecutions:(0,f.expectInt32)(e.ReservedConcurrentExecutions)}),Hv=(e,t)=>({AllowCredentials:(0,f.expectBoolean)(e.AllowCredentials),AllowHeaders:e.AllowHeaders!==void 0&&e.AllowHeaders!==null?F7(e.AllowHeaders,t):void 0,AllowMethods:e.AllowMethods!==void 0&&e.AllowMethods!==null?h4e(e.AllowMethods,t):void 0,AllowOrigins:e.AllowOrigins!==void 0&&e.AllowOrigins!==null?w4e(e.AllowOrigins,t):void 0,ExposeHeaders:e.ExposeHeaders!==void 0&&e.ExposeHeaders!==null?F7(e.ExposeHeaders,t):void 0,MaxAge:(0,f.expectInt32)(e.MaxAge)}),qd=(e,t)=>({TargetArn:(0,f.expectString)(e.TargetArn)}),as=(e,t)=>({OnFailure:e.OnFailure!==void 0&&e.OnFailure!==null?U4e(e.OnFailure,t):void 0,OnSuccess:e.OnSuccess!==void 0&&e.OnSuccess!==null?G4e(e.OnSuccess,t):void 0}),v4e=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:(0,f.expectString)(r)),C4e=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:S(o({},n),{[r]:v4e(i,t)}),{}),E4e=(e,t)=>({ErrorCode:(0,f.expectString)(e.ErrorCode),Message:(0,f.expectString)(e.Message)}),Ld=(e,t)=>({Error:e.Error!==void 0&&e.Error!==null?E4e(e.Error,t):void 0,Variables:e.Variables!==void 0&&e.Variables!==null?A4e(e.Variables,t):void 0}),A4e=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:S(o({},n),{[r]:(0,f.expectString)(i)}),{}),Dd=(e,t)=>({Size:(0,f.expectInt32)(e.Size)}),x4e=(e,t)=>({BatchSize:(0,f.expectInt32)(e.BatchSize),BisectBatchOnFunctionError:(0,f.expectBoolean)(e.BisectBatchOnFunctionError),DestinationConfig:e.DestinationConfig!==void 0&&e.DestinationConfig!==null?as(e.DestinationConfig,t):void 0,EventSourceArn:(0,f.expectString)(e.EventSourceArn),FilterCriteria:e.FilterCriteria!==void 0&&e.FilterCriteria!==null?Um(e.FilterCriteria,t):void 0,FunctionArn:(0,f.expectString)(e.FunctionArn),FunctionResponseTypes:e.FunctionResponseTypes!==void 0&&e.FunctionResponseTypes!==null?Gm(e.FunctionResponseTypes,t):void 0,LastModified:e.LastModified!==void 0&&e.LastModified!==null?(0,f.expectNonNull)((0,f.parseEpochTimestamp)((0,f.expectNumber)(e.LastModified))):void 0,LastProcessingResult:(0,f.expectString)(e.LastProcessingResult),MaximumBatchingWindowInSeconds:(0,f.expectInt32)(e.MaximumBatchingWindowInSeconds),MaximumRecordAgeInSeconds:(0,f.expectInt32)(e.MaximumRecordAgeInSeconds),MaximumRetryAttempts:(0,f.expectInt32)(e.MaximumRetryAttempts),ParallelizationFactor:(0,f.expectInt32)(e.ParallelizationFactor),Queues:e.Queues!==void 0&&e.Queues!==null?Vm(e.Queues,t):void 0,SelfManagedEventSource:e.SelfManagedEventSource!==void 0&&e.SelfManagedEventSource!==null?$m(e.SelfManagedEventSource,t):void 0,SourceAccessConfigurations:e.SourceAccessConfigurations!==void 0&&e.SourceAccessConfigurations!==null?Hm(e.SourceAccessConfigurations,t):void 0,StartingPosition:(0,f.expectString)(e.StartingPosition),StartingPositionTimestamp:e.StartingPositionTimestamp!==void 0&&e.StartingPositionTimestamp!==null?(0,f.expectNonNull)((0,f.parseEpochTimestamp)((0,f.expectNumber)(e.StartingPositionTimestamp))):void 0,State:(0,f.expectString)(e.State),StateTransitionReason:(0,f.expectString)(e.StateTransitionReason),Topics:e.Topics!==void 0&&e.Topics!==null?Jm(e.Topics,t):void 0,TumblingWindowInSeconds:(0,f.expectInt32)(e.TumblingWindowInSeconds),UUID:(0,f.expectString)(e.UUID)}),b4e=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:x4e(r,t)),R4e=(e,t)=>({Arn:(0,f.expectString)(e.Arn),LocalMountPath:(0,f.expectString)(e.LocalMountPath)}),Md=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:R4e(r,t)),T4e=(e,t)=>({Pattern:(0,f.expectString)(e.Pattern)}),Um=(e,t)=>({Filters:e.Filters!==void 0&&e.Filters!==null?I4e(e.Filters,t):void 0}),I4e=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:T4e(r,t)),N4e=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:(0,f.expectString)(r)),P4e=(e,t)=>({ImageUri:(0,f.expectString)(e.ImageUri),Location:(0,f.expectString)(e.Location),RepositoryType:(0,f.expectString)(e.RepositoryType),ResolvedImageUri:(0,f.expectString)(e.ResolvedImageUri)}),cQ=(e,t)=>({Architectures:e.Architectures!==void 0&&e.Architectures!==null?zd(e.Architectures,t):void 0,CodeSha256:(0,f.expectString)(e.CodeSha256),CodeSize:(0,f.expectLong)(e.CodeSize),DeadLetterConfig:e.DeadLetterConfig!==void 0&&e.DeadLetterConfig!==null?qd(e.DeadLetterConfig,t):void 0,Description:(0,f.expectString)(e.Description),Environment:e.Environment!==void 0&&e.Environment!==null?Ld(e.Environment,t):void 0,EphemeralStorage:e.EphemeralStorage!==void 0&&e.EphemeralStorage!==null?Dd(e.EphemeralStorage,t):void 0,FileSystemConfigs:e.FileSystemConfigs!==void 0&&e.FileSystemConfigs!==null?Md(e.FileSystemConfigs,t):void 0,FunctionArn:(0,f.expectString)(e.FunctionArn),FunctionName:(0,f.expectString)(e.FunctionName),Handler:(0,f.expectString)(e.Handler),ImageConfigResponse:e.ImageConfigResponse!==void 0&&e.ImageConfigResponse!==null?Bd(e.ImageConfigResponse,t):void 0,KMSKeyArn:(0,f.expectString)(e.KMSKeyArn),LastModified:(0,f.expectString)(e.LastModified),LastUpdateStatus:(0,f.expectString)(e.LastUpdateStatus),LastUpdateStatusReason:(0,f.expectString)(e.LastUpdateStatusReason),LastUpdateStatusReasonCode:(0,f.expectString)(e.LastUpdateStatusReasonCode),Layers:e.Layers!==void 0&&e.Layers!==null?Od(e.Layers,t):void 0,MasterArn:(0,f.expectString)(e.MasterArn),MemorySize:(0,f.expectInt32)(e.MemorySize),PackageType:(0,f.expectString)(e.PackageType),RevisionId:(0,f.expectString)(e.RevisionId),Role:(0,f.expectString)(e.Role),Runtime:(0,f.expectString)(e.Runtime),SigningJobArn:(0,f.expectString)(e.SigningJobArn),SigningProfileVersionArn:(0,f.expectString)(e.SigningProfileVersionArn),State:(0,f.expectString)(e.State),StateReason:(0,f.expectString)(e.StateReason),StateReasonCode:(0,f.expectString)(e.StateReasonCode),Timeout:(0,f.expectInt32)(e.Timeout),TracingConfig:e.TracingConfig!==void 0&&e.TracingConfig!==null?Fd(e.TracingConfig,t):void 0,Version:(0,f.expectString)(e.Version),VpcConfig:e.VpcConfig!==void 0&&e.VpcConfig!==null?jd(e.VpcConfig,t):void 0}),k4e=(e,t)=>({DestinationConfig:e.DestinationConfig!==void 0&&e.DestinationConfig!==null?as(e.DestinationConfig,t):void 0,FunctionArn:(0,f.expectString)(e.FunctionArn),LastModified:e.LastModified!==void 0&&e.LastModified!==null?(0,f.expectNonNull)((0,f.parseEpochTimestamp)((0,f.expectNumber)(e.LastModified))):void 0,MaximumEventAgeInSeconds:(0,f.expectInt32)(e.MaximumEventAgeInSeconds),MaximumRetryAttempts:(0,f.expectInt32)(e.MaximumRetryAttempts)}),z4e=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:k4e(r,t)),lQ=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:cQ(r,t)),Gm=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:(0,f.expectString)(r)),q4e=(e,t)=>({AuthType:(0,f.expectString)(e.AuthType),Cors:e.Cors!==void 0&&e.Cors!==null?Hv(e.Cors,t):void 0,CreationTime:(0,f.expectString)(e.CreationTime),FunctionArn:(0,f.expectString)(e.FunctionArn),FunctionUrl:(0,f.expectString)(e.FunctionUrl),LastModifiedTime:(0,f.expectString)(e.LastModifiedTime)}),L4e=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:q4e(r,t)),F7=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:(0,f.expectString)(r)),D4e=(e,t)=>({Command:e.Command!==void 0&&e.Command!==null?j7(e.Command,t):void 0,EntryPoint:e.EntryPoint!==void 0&&e.EntryPoint!==null?j7(e.EntryPoint,t):void 0,WorkingDirectory:(0,f.expectString)(e.WorkingDirectory)}),M4e=(e,t)=>({ErrorCode:(0,f.expectString)(e.ErrorCode),Message:(0,f.expectString)(e.Message)}),Bd=(e,t)=>({Error:e.Error!==void 0&&e.Error!==null?M4e(e.Error,t):void 0,ImageConfig:e.ImageConfig!==void 0&&e.ImageConfig!==null?D4e(e.ImageConfig,t):void 0}),B4e=(e,t)=>({Arn:(0,f.expectString)(e.Arn),CodeSize:(0,f.expectLong)(e.CodeSize),SigningJobArn:(0,f.expectString)(e.SigningJobArn),SigningProfileVersionArn:(0,f.expectString)(e.SigningProfileVersionArn)}),O4e=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:F4e(r,t)),F4e=(e,t)=>({LatestMatchingVersion:e.LatestMatchingVersion!==void 0&&e.LatestMatchingVersion!==null?uQ(e.LatestMatchingVersion,t):void 0,LayerArn:(0,f.expectString)(e.LayerArn),LayerName:(0,f.expectString)(e.LayerName)}),Od=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:B4e(r,t)),oq=(e,t)=>({CodeSha256:(0,f.expectString)(e.CodeSha256),CodeSize:(0,f.expectLong)(e.CodeSize),Location:(0,f.expectString)(e.Location),SigningJobArn:(0,f.expectString)(e.SigningJobArn),SigningProfileVersionArn:(0,f.expectString)(e.SigningProfileVersionArn)}),j4e=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:uQ(r,t)),uQ=(e,t)=>({CompatibleArchitectures:e.CompatibleArchitectures!==void 0&&e.CompatibleArchitectures!==null?Vv(e.CompatibleArchitectures,t):void 0,CompatibleRuntimes:e.CompatibleRuntimes!==void 0&&e.CompatibleRuntimes!==null?$v(e.CompatibleRuntimes,t):void 0,CreatedDate:(0,f.expectString)(e.CreatedDate),Description:(0,f.expectString)(e.Description),LayerVersionArn:(0,f.expectString)(e.LayerVersionArn),LicenseInfo:(0,f.expectString)(e.LicenseInfo),Version:(0,f.expectLong)(e.Version)}),U4e=(e,t)=>({Destination:(0,f.expectString)(e.Destination)}),G4e=(e,t)=>({Destination:(0,f.expectString)(e.Destination)}),V4e=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:$4e(r,t)),$4e=(e,t)=>({AllocatedProvisionedConcurrentExecutions:(0,f.expectInt32)(e.AllocatedProvisionedConcurrentExecutions),AvailableProvisionedConcurrentExecutions:(0,f.expectInt32)(e.AvailableProvisionedConcurrentExecutions),FunctionArn:(0,f.expectString)(e.FunctionArn),LastModified:(0,f.expectString)(e.LastModified),RequestedProvisionedConcurrentExecutions:(0,f.expectInt32)(e.RequestedProvisionedConcurrentExecutions),Status:(0,f.expectString)(e.Status),StatusReason:(0,f.expectString)(e.StatusReason)}),Vm=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:(0,f.expectString)(r)),H4e=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:(0,f.expectString)(r)),$m=(e,t)=>({Endpoints:e.Endpoints!==void 0&&e.Endpoints!==null?C4e(e.Endpoints,t):void 0}),J4e=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:(0,f.expectString)(r)),X4e=(e,t)=>({Type:(0,f.expectString)(e.Type),URI:(0,f.expectString)(e.URI)}),Hm=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:X4e(r,t)),j7=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:(0,f.expectString)(r)),K4e=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:(0,f.expectString)(r)),mQ=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:S(o({},n),{[r]:(0,f.expectString)(i)}),{}),Jm=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:(0,f.expectString)(r)),Fd=(e,t)=>({Mode:(0,f.expectString)(e.Mode)}),jd=(e,t)=>({SecurityGroupIds:e.SecurityGroupIds!==void 0&&e.SecurityGroupIds!==null?H4e(e.SecurityGroupIds,t):void 0,SubnetIds:e.SubnetIds!==void 0&&e.SubnetIds!==null?K4e(e.SubnetIds,t):void 0,VpcId:(0,f.expectString)(e.VpcId)}),O=e=>{var t;return{httpStatusCode:e.statusCode,requestId:(t=e.headers["x-amzn-requestid"])!==null&&t!==void 0?t:e.headers["x-amzn-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}},kn=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),W4e=(e,t)=>kn(e,t).then(n=>t.utf8Encoder(n)),rq=e=>e!=null&&e!==""&&(!Object.getOwnPropertyNames(e).includes("length")||e.length!=0)&&(!Object.getOwnPropertyNames(e).includes("size")||e.size!=0),Q=(e,t)=>W4e(e,t).then(n=>n.length?JSON.parse(n):{}),qe=(e,t)=>{let n=(s,d)=>Object.keys(s).find(a=>a.toLowerCase()===d.toLowerCase()),r=s=>{let d=s;return d.indexOf(":")>=0&&(d=d.split(":")[0]),d.indexOf("#")>=0&&(d=d.split("#")[1]),d},i=n(e.headers,"x-amzn-errortype");return i!==void 0?r(e.headers[i]):t.code!==void 0?r(t.code):t.__type!==void 0?r(t.__type):""}});var dq=m(Jv=>{"use strict";Object.defineProperty(Jv,"__esModule",{value:!0});Jv.AddLayerVersionPermissionCommand=void 0;var Q4e=P(),Y4e=R(),fQ=Re(),pQ=Ie(),aq=class extends Y4e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Q4e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"AddLayerVersionPermissionCommand",inputFilterSensitiveLog:fQ.AddLayerVersionPermissionRequest.filterSensitiveLog,outputFilterSensitiveLog:fQ.AddLayerVersionPermissionResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,pQ.serializeAws_restJson1AddLayerVersionPermissionCommand)(t,n)}deserialize(t,n){return(0,pQ.deserializeAws_restJson1AddLayerVersionPermissionCommand)(t,n)}};Jv.AddLayerVersionPermissionCommand=aq});var lq=m(Xv=>{"use strict";Object.defineProperty(Xv,"__esModule",{value:!0});Xv.AddPermissionCommand=void 0;var Z4e=P(),e9e=R(),gQ=Re(),hQ=Ie(),cq=class extends e9e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Z4e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"AddPermissionCommand",inputFilterSensitiveLog:gQ.AddPermissionRequest.filterSensitiveLog,outputFilterSensitiveLog:gQ.AddPermissionResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,hQ.serializeAws_restJson1AddPermissionCommand)(t,n)}deserialize(t,n){return(0,hQ.deserializeAws_restJson1AddPermissionCommand)(t,n)}};Xv.AddPermissionCommand=cq});var mq=m(Kv=>{"use strict";Object.defineProperty(Kv,"__esModule",{value:!0});Kv.CreateAliasCommand=void 0;var t9e=P(),n9e=R(),wQ=Re(),yQ=Ie(),uq=class extends n9e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,t9e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"CreateAliasCommand",inputFilterSensitiveLog:wQ.CreateAliasRequest.filterSensitiveLog,outputFilterSensitiveLog:wQ.AliasConfiguration.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,yQ.serializeAws_restJson1CreateAliasCommand)(t,n)}deserialize(t,n){return(0,yQ.deserializeAws_restJson1CreateAliasCommand)(t,n)}};Kv.CreateAliasCommand=uq});var pq=m(Wv=>{"use strict";Object.defineProperty(Wv,"__esModule",{value:!0});Wv.CreateCodeSigningConfigCommand=void 0;var r9e=P(),i9e=R(),SQ=Re(),_Q=Ie(),fq=class extends i9e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,r9e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"CreateCodeSigningConfigCommand",inputFilterSensitiveLog:SQ.CreateCodeSigningConfigRequest.filterSensitiveLog,outputFilterSensitiveLog:SQ.CreateCodeSigningConfigResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,_Q.serializeAws_restJson1CreateCodeSigningConfigCommand)(t,n)}deserialize(t,n){return(0,_Q.deserializeAws_restJson1CreateCodeSigningConfigCommand)(t,n)}};Wv.CreateCodeSigningConfigCommand=fq});var hq=m(Qv=>{"use strict";Object.defineProperty(Qv,"__esModule",{value:!0});Qv.CreateEventSourceMappingCommand=void 0;var s9e=P(),o9e=R(),vQ=Re(),CQ=Ie(),gq=class extends o9e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,s9e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"CreateEventSourceMappingCommand",inputFilterSensitiveLog:vQ.CreateEventSourceMappingRequest.filterSensitiveLog,outputFilterSensitiveLog:vQ.EventSourceMappingConfiguration.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,CQ.serializeAws_restJson1CreateEventSourceMappingCommand)(t,n)}deserialize(t,n){return(0,CQ.deserializeAws_restJson1CreateEventSourceMappingCommand)(t,n)}};Qv.CreateEventSourceMappingCommand=gq});var yq=m(Yv=>{"use strict";Object.defineProperty(Yv,"__esModule",{value:!0});Yv.CreateFunctionCommand=void 0;var a9e=P(),d9e=R(),EQ=Re(),AQ=Ie(),wq=class extends d9e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,a9e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"CreateFunctionCommand",inputFilterSensitiveLog:EQ.CreateFunctionRequest.filterSensitiveLog,outputFilterSensitiveLog:EQ.FunctionConfiguration.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,AQ.serializeAws_restJson1CreateFunctionCommand)(t,n)}deserialize(t,n){return(0,AQ.deserializeAws_restJson1CreateFunctionCommand)(t,n)}};Yv.CreateFunctionCommand=wq});var _q=m(Zv=>{"use strict";Object.defineProperty(Zv,"__esModule",{value:!0});Zv.CreateFunctionUrlConfigCommand=void 0;var c9e=P(),l9e=R(),xQ=Re(),bQ=Ie(),Sq=class extends l9e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,c9e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"CreateFunctionUrlConfigCommand",inputFilterSensitiveLog:xQ.CreateFunctionUrlConfigRequest.filterSensitiveLog,outputFilterSensitiveLog:xQ.CreateFunctionUrlConfigResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,bQ.serializeAws_restJson1CreateFunctionUrlConfigCommand)(t,n)}deserialize(t,n){return(0,bQ.deserializeAws_restJson1CreateFunctionUrlConfigCommand)(t,n)}};Zv.CreateFunctionUrlConfigCommand=Sq});var Cq=m(eC=>{"use strict";Object.defineProperty(eC,"__esModule",{value:!0});eC.DeleteAliasCommand=void 0;var u9e=P(),m9e=R(),f9e=Re(),RQ=Ie(),vq=class extends m9e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,u9e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"DeleteAliasCommand",inputFilterSensitiveLog:f9e.DeleteAliasRequest.filterSensitiveLog,outputFilterSensitiveLog:u=>u},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,RQ.serializeAws_restJson1DeleteAliasCommand)(t,n)}deserialize(t,n){return(0,RQ.deserializeAws_restJson1DeleteAliasCommand)(t,n)}};eC.DeleteAliasCommand=vq});var Aq=m(tC=>{"use strict";Object.defineProperty(tC,"__esModule",{value:!0});tC.DeleteCodeSigningConfigCommand=void 0;var p9e=P(),g9e=R(),TQ=Re(),IQ=Ie(),Eq=class extends g9e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,p9e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"DeleteCodeSigningConfigCommand",inputFilterSensitiveLog:TQ.DeleteCodeSigningConfigRequest.filterSensitiveLog,outputFilterSensitiveLog:TQ.DeleteCodeSigningConfigResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,IQ.serializeAws_restJson1DeleteCodeSigningConfigCommand)(t,n)}deserialize(t,n){return(0,IQ.deserializeAws_restJson1DeleteCodeSigningConfigCommand)(t,n)}};tC.DeleteCodeSigningConfigCommand=Eq});var bq=m(nC=>{"use strict";Object.defineProperty(nC,"__esModule",{value:!0});nC.DeleteEventSourceMappingCommand=void 0;var h9e=P(),w9e=R(),NQ=Re(),PQ=Ie(),xq=class extends w9e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,h9e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"DeleteEventSourceMappingCommand",inputFilterSensitiveLog:NQ.DeleteEventSourceMappingRequest.filterSensitiveLog,outputFilterSensitiveLog:NQ.EventSourceMappingConfiguration.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,PQ.serializeAws_restJson1DeleteEventSourceMappingCommand)(t,n)}deserialize(t,n){return(0,PQ.deserializeAws_restJson1DeleteEventSourceMappingCommand)(t,n)}};nC.DeleteEventSourceMappingCommand=xq});var Tq=m(rC=>{"use strict";Object.defineProperty(rC,"__esModule",{value:!0});rC.DeleteFunctionCodeSigningConfigCommand=void 0;var y9e=P(),S9e=R(),_9e=Re(),kQ=Ie(),Rq=class extends S9e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,y9e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"DeleteFunctionCodeSigningConfigCommand",inputFilterSensitiveLog:_9e.DeleteFunctionCodeSigningConfigRequest.filterSensitiveLog,outputFilterSensitiveLog:u=>u},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,kQ.serializeAws_restJson1DeleteFunctionCodeSigningConfigCommand)(t,n)}deserialize(t,n){return(0,kQ.deserializeAws_restJson1DeleteFunctionCodeSigningConfigCommand)(t,n)}};rC.DeleteFunctionCodeSigningConfigCommand=Rq});var Nq=m(iC=>{"use strict";Object.defineProperty(iC,"__esModule",{value:!0});iC.DeleteFunctionCommand=void 0;var v9e=P(),C9e=R(),E9e=Re(),zQ=Ie(),Iq=class extends C9e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,v9e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"DeleteFunctionCommand",inputFilterSensitiveLog:E9e.DeleteFunctionRequest.filterSensitiveLog,outputFilterSensitiveLog:u=>u},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,zQ.serializeAws_restJson1DeleteFunctionCommand)(t,n)}deserialize(t,n){return(0,zQ.deserializeAws_restJson1DeleteFunctionCommand)(t,n)}};iC.DeleteFunctionCommand=Iq});var kq=m(sC=>{"use strict";Object.defineProperty(sC,"__esModule",{value:!0});sC.DeleteFunctionConcurrencyCommand=void 0;var A9e=P(),x9e=R(),b9e=Re(),qQ=Ie(),Pq=class extends x9e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,A9e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"DeleteFunctionConcurrencyCommand",inputFilterSensitiveLog:b9e.DeleteFunctionConcurrencyRequest.filterSensitiveLog,outputFilterSensitiveLog:u=>u},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,qQ.serializeAws_restJson1DeleteFunctionConcurrencyCommand)(t,n)}deserialize(t,n){return(0,qQ.deserializeAws_restJson1DeleteFunctionConcurrencyCommand)(t,n)}};sC.DeleteFunctionConcurrencyCommand=Pq});var qq=m(oC=>{"use strict";Object.defineProperty(oC,"__esModule",{value:!0});oC.DeleteFunctionEventInvokeConfigCommand=void 0;var R9e=P(),T9e=R(),I9e=Re(),LQ=Ie(),zq=class extends T9e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,R9e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"DeleteFunctionEventInvokeConfigCommand",inputFilterSensitiveLog:I9e.DeleteFunctionEventInvokeConfigRequest.filterSensitiveLog,outputFilterSensitiveLog:u=>u},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,LQ.serializeAws_restJson1DeleteFunctionEventInvokeConfigCommand)(t,n)}deserialize(t,n){return(0,LQ.deserializeAws_restJson1DeleteFunctionEventInvokeConfigCommand)(t,n)}};oC.DeleteFunctionEventInvokeConfigCommand=zq});var Dq=m(aC=>{"use strict";Object.defineProperty(aC,"__esModule",{value:!0});aC.DeleteFunctionUrlConfigCommand=void 0;var N9e=P(),P9e=R(),k9e=Re(),DQ=Ie(),Lq=class extends P9e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,N9e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"DeleteFunctionUrlConfigCommand",inputFilterSensitiveLog:k9e.DeleteFunctionUrlConfigRequest.filterSensitiveLog,outputFilterSensitiveLog:u=>u},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,DQ.serializeAws_restJson1DeleteFunctionUrlConfigCommand)(t,n)}deserialize(t,n){return(0,DQ.deserializeAws_restJson1DeleteFunctionUrlConfigCommand)(t,n)}};aC.DeleteFunctionUrlConfigCommand=Lq});var Bq=m(dC=>{"use strict";Object.defineProperty(dC,"__esModule",{value:!0});dC.DeleteLayerVersionCommand=void 0;var z9e=P(),q9e=R(),L9e=Re(),MQ=Ie(),Mq=class extends q9e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,z9e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"DeleteLayerVersionCommand",inputFilterSensitiveLog:L9e.DeleteLayerVersionRequest.filterSensitiveLog,outputFilterSensitiveLog:u=>u},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,MQ.serializeAws_restJson1DeleteLayerVersionCommand)(t,n)}deserialize(t,n){return(0,MQ.deserializeAws_restJson1DeleteLayerVersionCommand)(t,n)}};dC.DeleteLayerVersionCommand=Mq});var Fq=m(cC=>{"use strict";Object.defineProperty(cC,"__esModule",{value:!0});cC.DeleteProvisionedConcurrencyConfigCommand=void 0;var D9e=P(),M9e=R(),B9e=Re(),BQ=Ie(),Oq=class extends M9e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,D9e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"DeleteProvisionedConcurrencyConfigCommand",inputFilterSensitiveLog:B9e.DeleteProvisionedConcurrencyConfigRequest.filterSensitiveLog,outputFilterSensitiveLog:u=>u},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,BQ.serializeAws_restJson1DeleteProvisionedConcurrencyConfigCommand)(t,n)}deserialize(t,n){return(0,BQ.deserializeAws_restJson1DeleteProvisionedConcurrencyConfigCommand)(t,n)}};cC.DeleteProvisionedConcurrencyConfigCommand=Oq});var Uq=m(lC=>{"use strict";Object.defineProperty(lC,"__esModule",{value:!0});lC.GetAccountSettingsCommand=void 0;var O9e=P(),F9e=R(),OQ=Re(),FQ=Ie(),jq=class extends F9e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,O9e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"GetAccountSettingsCommand",inputFilterSensitiveLog:OQ.GetAccountSettingsRequest.filterSensitiveLog,outputFilterSensitiveLog:OQ.GetAccountSettingsResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,FQ.serializeAws_restJson1GetAccountSettingsCommand)(t,n)}deserialize(t,n){return(0,FQ.deserializeAws_restJson1GetAccountSettingsCommand)(t,n)}};lC.GetAccountSettingsCommand=jq});var Vq=m(uC=>{"use strict";Object.defineProperty(uC,"__esModule",{value:!0});uC.GetAliasCommand=void 0;var j9e=P(),U9e=R(),jQ=Re(),UQ=Ie(),Gq=class extends U9e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,j9e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"GetAliasCommand",inputFilterSensitiveLog:jQ.GetAliasRequest.filterSensitiveLog,outputFilterSensitiveLog:jQ.AliasConfiguration.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,UQ.serializeAws_restJson1GetAliasCommand)(t,n)}deserialize(t,n){return(0,UQ.deserializeAws_restJson1GetAliasCommand)(t,n)}};uC.GetAliasCommand=Gq});var Hq=m(mC=>{"use strict";Object.defineProperty(mC,"__esModule",{value:!0});mC.GetCodeSigningConfigCommand=void 0;var G9e=P(),V9e=R(),GQ=Re(),VQ=Ie(),$q=class extends V9e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,G9e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"GetCodeSigningConfigCommand",inputFilterSensitiveLog:GQ.GetCodeSigningConfigRequest.filterSensitiveLog,outputFilterSensitiveLog:GQ.GetCodeSigningConfigResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,VQ.serializeAws_restJson1GetCodeSigningConfigCommand)(t,n)}deserialize(t,n){return(0,VQ.deserializeAws_restJson1GetCodeSigningConfigCommand)(t,n)}};mC.GetCodeSigningConfigCommand=$q});var Xq=m(fC=>{"use strict";Object.defineProperty(fC,"__esModule",{value:!0});fC.GetEventSourceMappingCommand=void 0;var $9e=P(),H9e=R(),$Q=Re(),HQ=Ie(),Jq=class extends H9e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,$9e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"GetEventSourceMappingCommand",inputFilterSensitiveLog:$Q.GetEventSourceMappingRequest.filterSensitiveLog,outputFilterSensitiveLog:$Q.EventSourceMappingConfiguration.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,HQ.serializeAws_restJson1GetEventSourceMappingCommand)(t,n)}deserialize(t,n){return(0,HQ.deserializeAws_restJson1GetEventSourceMappingCommand)(t,n)}};fC.GetEventSourceMappingCommand=Jq});var Wq=m(pC=>{"use strict";Object.defineProperty(pC,"__esModule",{value:!0});pC.GetFunctionCodeSigningConfigCommand=void 0;var J9e=P(),X9e=R(),JQ=Re(),XQ=Ie(),Kq=class extends X9e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,J9e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"GetFunctionCodeSigningConfigCommand",inputFilterSensitiveLog:JQ.GetFunctionCodeSigningConfigRequest.filterSensitiveLog,outputFilterSensitiveLog:JQ.GetFunctionCodeSigningConfigResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,XQ.serializeAws_restJson1GetFunctionCodeSigningConfigCommand)(t,n)}deserialize(t,n){return(0,XQ.deserializeAws_restJson1GetFunctionCodeSigningConfigCommand)(t,n)}};pC.GetFunctionCodeSigningConfigCommand=Kq});var Ud=m(gC=>{"use strict";Object.defineProperty(gC,"__esModule",{value:!0});gC.GetFunctionCommand=void 0;var K9e=P(),W9e=R(),KQ=Re(),WQ=Ie(),Qq=class extends W9e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,K9e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"GetFunctionCommand",inputFilterSensitiveLog:KQ.GetFunctionRequest.filterSensitiveLog,outputFilterSensitiveLog:KQ.GetFunctionResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,WQ.serializeAws_restJson1GetFunctionCommand)(t,n)}deserialize(t,n){return(0,WQ.deserializeAws_restJson1GetFunctionCommand)(t,n)}};gC.GetFunctionCommand=Qq});var Zq=m(hC=>{"use strict";Object.defineProperty(hC,"__esModule",{value:!0});hC.GetFunctionConcurrencyCommand=void 0;var Q9e=P(),Y9e=R(),QQ=Re(),YQ=Ie(),Yq=class extends Y9e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Q9e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"GetFunctionConcurrencyCommand",inputFilterSensitiveLog:QQ.GetFunctionConcurrencyRequest.filterSensitiveLog,outputFilterSensitiveLog:QQ.GetFunctionConcurrencyResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,YQ.serializeAws_restJson1GetFunctionConcurrencyCommand)(t,n)}deserialize(t,n){return(0,YQ.deserializeAws_restJson1GetFunctionConcurrencyCommand)(t,n)}};hC.GetFunctionConcurrencyCommand=Yq});var Xm=m(wC=>{"use strict";Object.defineProperty(wC,"__esModule",{value:!0});wC.GetFunctionConfigurationCommand=void 0;var Z9e=P(),e7e=R(),ZQ=Re(),eY=Ie(),eL=class extends e7e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Z9e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"GetFunctionConfigurationCommand",inputFilterSensitiveLog:ZQ.GetFunctionConfigurationRequest.filterSensitiveLog,outputFilterSensitiveLog:ZQ.FunctionConfiguration.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,eY.serializeAws_restJson1GetFunctionConfigurationCommand)(t,n)}deserialize(t,n){return(0,eY.deserializeAws_restJson1GetFunctionConfigurationCommand)(t,n)}};wC.GetFunctionConfigurationCommand=eL});var nL=m(yC=>{"use strict";Object.defineProperty(yC,"__esModule",{value:!0});yC.GetFunctionEventInvokeConfigCommand=void 0;var t7e=P(),n7e=R(),tY=Re(),nY=Ie(),tL=class extends n7e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,t7e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"GetFunctionEventInvokeConfigCommand",inputFilterSensitiveLog:tY.GetFunctionEventInvokeConfigRequest.filterSensitiveLog,outputFilterSensitiveLog:tY.FunctionEventInvokeConfig.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,nY.serializeAws_restJson1GetFunctionEventInvokeConfigCommand)(t,n)}deserialize(t,n){return(0,nY.deserializeAws_restJson1GetFunctionEventInvokeConfigCommand)(t,n)}};yC.GetFunctionEventInvokeConfigCommand=tL});var iL=m(SC=>{"use strict";Object.defineProperty(SC,"__esModule",{value:!0});SC.GetFunctionUrlConfigCommand=void 0;var r7e=P(),i7e=R(),rY=Re(),iY=Ie(),rL=class extends i7e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,r7e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"GetFunctionUrlConfigCommand",inputFilterSensitiveLog:rY.GetFunctionUrlConfigRequest.filterSensitiveLog,outputFilterSensitiveLog:rY.GetFunctionUrlConfigResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,iY.serializeAws_restJson1GetFunctionUrlConfigCommand)(t,n)}deserialize(t,n){return(0,iY.deserializeAws_restJson1GetFunctionUrlConfigCommand)(t,n)}};SC.GetFunctionUrlConfigCommand=rL});var oL=m(_C=>{"use strict";Object.defineProperty(_C,"__esModule",{value:!0});_C.GetLayerVersionByArnCommand=void 0;var s7e=P(),o7e=R(),sY=Re(),oY=Ie(),sL=class extends o7e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,s7e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"GetLayerVersionByArnCommand",inputFilterSensitiveLog:sY.GetLayerVersionByArnRequest.filterSensitiveLog,outputFilterSensitiveLog:sY.GetLayerVersionResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,oY.serializeAws_restJson1GetLayerVersionByArnCommand)(t,n)}deserialize(t,n){return(0,oY.deserializeAws_restJson1GetLayerVersionByArnCommand)(t,n)}};_C.GetLayerVersionByArnCommand=sL});var dL=m(vC=>{"use strict";Object.defineProperty(vC,"__esModule",{value:!0});vC.GetLayerVersionCommand=void 0;var a7e=P(),d7e=R(),aY=Re(),dY=Ie(),aL=class extends d7e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,a7e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"GetLayerVersionCommand",inputFilterSensitiveLog:aY.GetLayerVersionRequest.filterSensitiveLog,outputFilterSensitiveLog:aY.GetLayerVersionResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,dY.serializeAws_restJson1GetLayerVersionCommand)(t,n)}deserialize(t,n){return(0,dY.deserializeAws_restJson1GetLayerVersionCommand)(t,n)}};vC.GetLayerVersionCommand=aL});var lL=m(CC=>{"use strict";Object.defineProperty(CC,"__esModule",{value:!0});CC.GetLayerVersionPolicyCommand=void 0;var c7e=P(),l7e=R(),cY=Re(),lY=Ie(),cL=class extends l7e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,c7e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"GetLayerVersionPolicyCommand",inputFilterSensitiveLog:cY.GetLayerVersionPolicyRequest.filterSensitiveLog,outputFilterSensitiveLog:cY.GetLayerVersionPolicyResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,lY.serializeAws_restJson1GetLayerVersionPolicyCommand)(t,n)}deserialize(t,n){return(0,lY.deserializeAws_restJson1GetLayerVersionPolicyCommand)(t,n)}};CC.GetLayerVersionPolicyCommand=cL});var mL=m(EC=>{"use strict";Object.defineProperty(EC,"__esModule",{value:!0});EC.GetPolicyCommand=void 0;var u7e=P(),m7e=R(),uY=Re(),mY=Ie(),uL=class extends m7e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,u7e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"GetPolicyCommand",inputFilterSensitiveLog:uY.GetPolicyRequest.filterSensitiveLog,outputFilterSensitiveLog:uY.GetPolicyResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,mY.serializeAws_restJson1GetPolicyCommand)(t,n)}deserialize(t,n){return(0,mY.deserializeAws_restJson1GetPolicyCommand)(t,n)}};EC.GetPolicyCommand=uL});var pL=m(AC=>{"use strict";Object.defineProperty(AC,"__esModule",{value:!0});AC.GetProvisionedConcurrencyConfigCommand=void 0;var f7e=P(),p7e=R(),fY=Re(),pY=Ie(),fL=class extends p7e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,f7e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"GetProvisionedConcurrencyConfigCommand",inputFilterSensitiveLog:fY.GetProvisionedConcurrencyConfigRequest.filterSensitiveLog,outputFilterSensitiveLog:fY.GetProvisionedConcurrencyConfigResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,pY.serializeAws_restJson1GetProvisionedConcurrencyConfigCommand)(t,n)}deserialize(t,n){return(0,pY.deserializeAws_restJson1GetProvisionedConcurrencyConfigCommand)(t,n)}};AC.GetProvisionedConcurrencyConfigCommand=fL});var hL=m(xC=>{"use strict";Object.defineProperty(xC,"__esModule",{value:!0});xC.InvokeAsyncCommand=void 0;var g7e=P(),h7e=R(),gY=Re(),hY=Ie(),gL=class extends h7e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,g7e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"InvokeAsyncCommand",inputFilterSensitiveLog:gY.InvokeAsyncRequest.filterSensitiveLog,outputFilterSensitiveLog:gY.InvokeAsyncResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,hY.serializeAws_restJson1InvokeAsyncCommand)(t,n)}deserialize(t,n){return(0,hY.deserializeAws_restJson1InvokeAsyncCommand)(t,n)}};xC.InvokeAsyncCommand=gL});var yL=m(bC=>{"use strict";Object.defineProperty(bC,"__esModule",{value:!0});bC.InvokeCommand=void 0;var w7e=P(),y7e=R(),wY=Re(),yY=Ie(),wL=class extends y7e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,w7e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"InvokeCommand",inputFilterSensitiveLog:wY.InvocationRequest.filterSensitiveLog,outputFilterSensitiveLog:wY.InvocationResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,yY.serializeAws_restJson1InvokeCommand)(t,n)}deserialize(t,n){return(0,yY.deserializeAws_restJson1InvokeCommand)(t,n)}};bC.InvokeCommand=wL});var TC=m(RC=>{"use strict";Object.defineProperty(RC,"__esModule",{value:!0});RC.ListAliasesCommand=void 0;var S7e=P(),_7e=R(),SY=Re(),_Y=Ie(),SL=class extends _7e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,S7e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"ListAliasesCommand",inputFilterSensitiveLog:SY.ListAliasesRequest.filterSensitiveLog,outputFilterSensitiveLog:SY.ListAliasesResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,_Y.serializeAws_restJson1ListAliasesCommand)(t,n)}deserialize(t,n){return(0,_Y.deserializeAws_restJson1ListAliasesCommand)(t,n)}};RC.ListAliasesCommand=SL});var NC=m(IC=>{"use strict";Object.defineProperty(IC,"__esModule",{value:!0});IC.ListCodeSigningConfigsCommand=void 0;var v7e=P(),C7e=R(),vY=Re(),CY=Ie(),_L=class extends C7e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,v7e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"ListCodeSigningConfigsCommand",inputFilterSensitiveLog:vY.ListCodeSigningConfigsRequest.filterSensitiveLog,outputFilterSensitiveLog:vY.ListCodeSigningConfigsResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,CY.serializeAws_restJson1ListCodeSigningConfigsCommand)(t,n)}deserialize(t,n){return(0,CY.deserializeAws_restJson1ListCodeSigningConfigsCommand)(t,n)}};IC.ListCodeSigningConfigsCommand=_L});var kC=m(PC=>{"use strict";Object.defineProperty(PC,"__esModule",{value:!0});PC.ListEventSourceMappingsCommand=void 0;var E7e=P(),A7e=R(),EY=Re(),AY=Ie(),vL=class extends A7e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,E7e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"ListEventSourceMappingsCommand",inputFilterSensitiveLog:EY.ListEventSourceMappingsRequest.filterSensitiveLog,outputFilterSensitiveLog:EY.ListEventSourceMappingsResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,AY.serializeAws_restJson1ListEventSourceMappingsCommand)(t,n)}deserialize(t,n){return(0,AY.deserializeAws_restJson1ListEventSourceMappingsCommand)(t,n)}};PC.ListEventSourceMappingsCommand=vL});var qC=m(zC=>{"use strict";Object.defineProperty(zC,"__esModule",{value:!0});zC.ListFunctionEventInvokeConfigsCommand=void 0;var x7e=P(),b7e=R(),xY=Re(),bY=Ie(),CL=class extends b7e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,x7e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"ListFunctionEventInvokeConfigsCommand",inputFilterSensitiveLog:xY.ListFunctionEventInvokeConfigsRequest.filterSensitiveLog,outputFilterSensitiveLog:xY.ListFunctionEventInvokeConfigsResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,bY.serializeAws_restJson1ListFunctionEventInvokeConfigsCommand)(t,n)}deserialize(t,n){return(0,bY.deserializeAws_restJson1ListFunctionEventInvokeConfigsCommand)(t,n)}};zC.ListFunctionEventInvokeConfigsCommand=CL});var DC=m(LC=>{"use strict";Object.defineProperty(LC,"__esModule",{value:!0});LC.ListFunctionsByCodeSigningConfigCommand=void 0;var R7e=P(),T7e=R(),RY=Re(),TY=Ie(),EL=class extends T7e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,R7e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"ListFunctionsByCodeSigningConfigCommand",inputFilterSensitiveLog:RY.ListFunctionsByCodeSigningConfigRequest.filterSensitiveLog,outputFilterSensitiveLog:RY.ListFunctionsByCodeSigningConfigResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,TY.serializeAws_restJson1ListFunctionsByCodeSigningConfigCommand)(t,n)}deserialize(t,n){return(0,TY.deserializeAws_restJson1ListFunctionsByCodeSigningConfigCommand)(t,n)}};LC.ListFunctionsByCodeSigningConfigCommand=EL});var BC=m(MC=>{"use strict";Object.defineProperty(MC,"__esModule",{value:!0});MC.ListFunctionsCommand=void 0;var I7e=P(),N7e=R(),IY=Re(),NY=Ie(),AL=class extends N7e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,I7e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"ListFunctionsCommand",inputFilterSensitiveLog:IY.ListFunctionsRequest.filterSensitiveLog,outputFilterSensitiveLog:IY.ListFunctionsResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,NY.serializeAws_restJson1ListFunctionsCommand)(t,n)}deserialize(t,n){return(0,NY.deserializeAws_restJson1ListFunctionsCommand)(t,n)}};MC.ListFunctionsCommand=AL});var FC=m(OC=>{"use strict";Object.defineProperty(OC,"__esModule",{value:!0});OC.ListFunctionUrlConfigsCommand=void 0;var P7e=P(),k7e=R(),PY=Re(),kY=Ie(),xL=class extends k7e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,P7e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"ListFunctionUrlConfigsCommand",inputFilterSensitiveLog:PY.ListFunctionUrlConfigsRequest.filterSensitiveLog,outputFilterSensitiveLog:PY.ListFunctionUrlConfigsResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,kY.serializeAws_restJson1ListFunctionUrlConfigsCommand)(t,n)}deserialize(t,n){return(0,kY.deserializeAws_restJson1ListFunctionUrlConfigsCommand)(t,n)}};OC.ListFunctionUrlConfigsCommand=xL});var UC=m(jC=>{"use strict";Object.defineProperty(jC,"__esModule",{value:!0});jC.ListLayersCommand=void 0;var z7e=P(),q7e=R(),zY=Re(),qY=Ie(),bL=class extends q7e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,z7e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"ListLayersCommand",inputFilterSensitiveLog:zY.ListLayersRequest.filterSensitiveLog,outputFilterSensitiveLog:zY.ListLayersResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,qY.serializeAws_restJson1ListLayersCommand)(t,n)}deserialize(t,n){return(0,qY.deserializeAws_restJson1ListLayersCommand)(t,n)}};jC.ListLayersCommand=bL});var VC=m(GC=>{"use strict";Object.defineProperty(GC,"__esModule",{value:!0});GC.ListLayerVersionsCommand=void 0;var L7e=P(),D7e=R(),LY=Re(),DY=Ie(),RL=class extends D7e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,L7e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"ListLayerVersionsCommand",inputFilterSensitiveLog:LY.ListLayerVersionsRequest.filterSensitiveLog,outputFilterSensitiveLog:LY.ListLayerVersionsResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,DY.serializeAws_restJson1ListLayerVersionsCommand)(t,n)}deserialize(t,n){return(0,DY.deserializeAws_restJson1ListLayerVersionsCommand)(t,n)}};GC.ListLayerVersionsCommand=RL});var HC=m($C=>{"use strict";Object.defineProperty($C,"__esModule",{value:!0});$C.ListProvisionedConcurrencyConfigsCommand=void 0;var M7e=P(),B7e=R(),MY=Re(),BY=Ie(),TL=class extends B7e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,M7e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"ListProvisionedConcurrencyConfigsCommand",inputFilterSensitiveLog:MY.ListProvisionedConcurrencyConfigsRequest.filterSensitiveLog,outputFilterSensitiveLog:MY.ListProvisionedConcurrencyConfigsResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,BY.serializeAws_restJson1ListProvisionedConcurrencyConfigsCommand)(t,n)}deserialize(t,n){return(0,BY.deserializeAws_restJson1ListProvisionedConcurrencyConfigsCommand)(t,n)}};$C.ListProvisionedConcurrencyConfigsCommand=TL});var NL=m(JC=>{"use strict";Object.defineProperty(JC,"__esModule",{value:!0});JC.ListTagsCommand=void 0;var O7e=P(),F7e=R(),OY=Re(),FY=Ie(),IL=class extends F7e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,O7e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"ListTagsCommand",inputFilterSensitiveLog:OY.ListTagsRequest.filterSensitiveLog,outputFilterSensitiveLog:OY.ListTagsResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,FY.serializeAws_restJson1ListTagsCommand)(t,n)}deserialize(t,n){return(0,FY.deserializeAws_restJson1ListTagsCommand)(t,n)}};JC.ListTagsCommand=IL});var KC=m(XC=>{"use strict";Object.defineProperty(XC,"__esModule",{value:!0});XC.ListVersionsByFunctionCommand=void 0;var j7e=P(),U7e=R(),jY=Re(),UY=Ie(),PL=class extends U7e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,j7e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"ListVersionsByFunctionCommand",inputFilterSensitiveLog:jY.ListVersionsByFunctionRequest.filterSensitiveLog,outputFilterSensitiveLog:jY.ListVersionsByFunctionResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,UY.serializeAws_restJson1ListVersionsByFunctionCommand)(t,n)}deserialize(t,n){return(0,UY.deserializeAws_restJson1ListVersionsByFunctionCommand)(t,n)}};XC.ListVersionsByFunctionCommand=PL});var zL=m(WC=>{"use strict";Object.defineProperty(WC,"__esModule",{value:!0});WC.PublishLayerVersionCommand=void 0;var G7e=P(),V7e=R(),GY=Re(),VY=Ie(),kL=class extends V7e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,G7e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"PublishLayerVersionCommand",inputFilterSensitiveLog:GY.PublishLayerVersionRequest.filterSensitiveLog,outputFilterSensitiveLog:GY.PublishLayerVersionResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,VY.serializeAws_restJson1PublishLayerVersionCommand)(t,n)}deserialize(t,n){return(0,VY.deserializeAws_restJson1PublishLayerVersionCommand)(t,n)}};WC.PublishLayerVersionCommand=kL});var LL=m(QC=>{"use strict";Object.defineProperty(QC,"__esModule",{value:!0});QC.PublishVersionCommand=void 0;var $7e=P(),H7e=R(),$Y=Re(),HY=Ie(),qL=class extends H7e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,$7e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"PublishVersionCommand",inputFilterSensitiveLog:$Y.PublishVersionRequest.filterSensitiveLog,outputFilterSensitiveLog:$Y.FunctionConfiguration.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,HY.serializeAws_restJson1PublishVersionCommand)(t,n)}deserialize(t,n){return(0,HY.deserializeAws_restJson1PublishVersionCommand)(t,n)}};QC.PublishVersionCommand=qL});var ML=m(YC=>{"use strict";Object.defineProperty(YC,"__esModule",{value:!0});YC.PutFunctionCodeSigningConfigCommand=void 0;var J7e=P(),X7e=R(),JY=Re(),XY=Ie(),DL=class extends X7e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,J7e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"PutFunctionCodeSigningConfigCommand",inputFilterSensitiveLog:JY.PutFunctionCodeSigningConfigRequest.filterSensitiveLog,outputFilterSensitiveLog:JY.PutFunctionCodeSigningConfigResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,XY.serializeAws_restJson1PutFunctionCodeSigningConfigCommand)(t,n)}deserialize(t,n){return(0,XY.deserializeAws_restJson1PutFunctionCodeSigningConfigCommand)(t,n)}};YC.PutFunctionCodeSigningConfigCommand=DL});var OL=m(ZC=>{"use strict";Object.defineProperty(ZC,"__esModule",{value:!0});ZC.PutFunctionConcurrencyCommand=void 0;var K7e=P(),W7e=R(),KY=Re(),WY=Ie(),BL=class extends W7e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,K7e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"PutFunctionConcurrencyCommand",inputFilterSensitiveLog:KY.PutFunctionConcurrencyRequest.filterSensitiveLog,outputFilterSensitiveLog:KY.Concurrency.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,WY.serializeAws_restJson1PutFunctionConcurrencyCommand)(t,n)}deserialize(t,n){return(0,WY.deserializeAws_restJson1PutFunctionConcurrencyCommand)(t,n)}};ZC.PutFunctionConcurrencyCommand=BL});var jL=m(eE=>{"use strict";Object.defineProperty(eE,"__esModule",{value:!0});eE.PutFunctionEventInvokeConfigCommand=void 0;var Q7e=P(),Y7e=R(),QY=Re(),YY=Ie(),FL=class extends Y7e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Q7e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"PutFunctionEventInvokeConfigCommand",inputFilterSensitiveLog:QY.PutFunctionEventInvokeConfigRequest.filterSensitiveLog,outputFilterSensitiveLog:QY.FunctionEventInvokeConfig.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,YY.serializeAws_restJson1PutFunctionEventInvokeConfigCommand)(t,n)}deserialize(t,n){return(0,YY.deserializeAws_restJson1PutFunctionEventInvokeConfigCommand)(t,n)}};eE.PutFunctionEventInvokeConfigCommand=FL});var GL=m(tE=>{"use strict";Object.defineProperty(tE,"__esModule",{value:!0});tE.PutProvisionedConcurrencyConfigCommand=void 0;var Z7e=P(),eQe=R(),ZY=Re(),eZ=Ie(),UL=class extends eQe.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Z7e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"PutProvisionedConcurrencyConfigCommand",inputFilterSensitiveLog:ZY.PutProvisionedConcurrencyConfigRequest.filterSensitiveLog,outputFilterSensitiveLog:ZY.PutProvisionedConcurrencyConfigResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,eZ.serializeAws_restJson1PutProvisionedConcurrencyConfigCommand)(t,n)}deserialize(t,n){return(0,eZ.deserializeAws_restJson1PutProvisionedConcurrencyConfigCommand)(t,n)}};tE.PutProvisionedConcurrencyConfigCommand=UL});var $L=m(nE=>{"use strict";Object.defineProperty(nE,"__esModule",{value:!0});nE.RemoveLayerVersionPermissionCommand=void 0;var tQe=P(),nQe=R(),rQe=Re(),tZ=Ie(),VL=class extends nQe.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,tQe.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"RemoveLayerVersionPermissionCommand",inputFilterSensitiveLog:rQe.RemoveLayerVersionPermissionRequest.filterSensitiveLog,outputFilterSensitiveLog:u=>u},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,tZ.serializeAws_restJson1RemoveLayerVersionPermissionCommand)(t,n)}deserialize(t,n){return(0,tZ.deserializeAws_restJson1RemoveLayerVersionPermissionCommand)(t,n)}};nE.RemoveLayerVersionPermissionCommand=VL});var JL=m(rE=>{"use strict";Object.defineProperty(rE,"__esModule",{value:!0});rE.RemovePermissionCommand=void 0;var iQe=P(),sQe=R(),oQe=Re(),nZ=Ie(),HL=class extends sQe.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,iQe.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"RemovePermissionCommand",inputFilterSensitiveLog:oQe.RemovePermissionRequest.filterSensitiveLog,outputFilterSensitiveLog:u=>u},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,nZ.serializeAws_restJson1RemovePermissionCommand)(t,n)}deserialize(t,n){return(0,nZ.deserializeAws_restJson1RemovePermissionCommand)(t,n)}};rE.RemovePermissionCommand=HL});var KL=m(iE=>{"use strict";Object.defineProperty(iE,"__esModule",{value:!0});iE.TagResourceCommand=void 0;var aQe=P(),dQe=R(),cQe=Re(),rZ=Ie(),XL=class extends dQe.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,aQe.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"TagResourceCommand",inputFilterSensitiveLog:cQe.TagResourceRequest.filterSensitiveLog,outputFilterSensitiveLog:u=>u},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,rZ.serializeAws_restJson1TagResourceCommand)(t,n)}deserialize(t,n){return(0,rZ.deserializeAws_restJson1TagResourceCommand)(t,n)}};iE.TagResourceCommand=XL});var QL=m(sE=>{"use strict";Object.defineProperty(sE,"__esModule",{value:!0});sE.UntagResourceCommand=void 0;var lQe=P(),uQe=R(),mQe=Re(),iZ=Ie(),WL=class extends uQe.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,lQe.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"UntagResourceCommand",inputFilterSensitiveLog:mQe.UntagResourceRequest.filterSensitiveLog,outputFilterSensitiveLog:u=>u},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,iZ.serializeAws_restJson1UntagResourceCommand)(t,n)}deserialize(t,n){return(0,iZ.deserializeAws_restJson1UntagResourceCommand)(t,n)}};sE.UntagResourceCommand=WL});var ZL=m(oE=>{"use strict";Object.defineProperty(oE,"__esModule",{value:!0});oE.UpdateAliasCommand=void 0;var fQe=P(),pQe=R(),sZ=Re(),oZ=Ie(),YL=class extends pQe.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,fQe.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"UpdateAliasCommand",inputFilterSensitiveLog:sZ.UpdateAliasRequest.filterSensitiveLog,outputFilterSensitiveLog:sZ.AliasConfiguration.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,oZ.serializeAws_restJson1UpdateAliasCommand)(t,n)}deserialize(t,n){return(0,oZ.deserializeAws_restJson1UpdateAliasCommand)(t,n)}};oE.UpdateAliasCommand=YL});var tD=m(aE=>{"use strict";Object.defineProperty(aE,"__esModule",{value:!0});aE.UpdateCodeSigningConfigCommand=void 0;var gQe=P(),hQe=R(),aZ=Re(),dZ=Ie(),eD=class extends hQe.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,gQe.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"UpdateCodeSigningConfigCommand",inputFilterSensitiveLog:aZ.UpdateCodeSigningConfigRequest.filterSensitiveLog,outputFilterSensitiveLog:aZ.UpdateCodeSigningConfigResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,dZ.serializeAws_restJson1UpdateCodeSigningConfigCommand)(t,n)}deserialize(t,n){return(0,dZ.deserializeAws_restJson1UpdateCodeSigningConfigCommand)(t,n)}};aE.UpdateCodeSigningConfigCommand=eD});var rD=m(dE=>{"use strict";Object.defineProperty(dE,"__esModule",{value:!0});dE.UpdateEventSourceMappingCommand=void 0;var wQe=P(),yQe=R(),cZ=Re(),lZ=Ie(),nD=class extends yQe.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,wQe.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"UpdateEventSourceMappingCommand",inputFilterSensitiveLog:cZ.UpdateEventSourceMappingRequest.filterSensitiveLog,outputFilterSensitiveLog:cZ.EventSourceMappingConfiguration.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,lZ.serializeAws_restJson1UpdateEventSourceMappingCommand)(t,n)}deserialize(t,n){return(0,lZ.deserializeAws_restJson1UpdateEventSourceMappingCommand)(t,n)}};dE.UpdateEventSourceMappingCommand=nD});var sD=m(cE=>{"use strict";Object.defineProperty(cE,"__esModule",{value:!0});cE.UpdateFunctionCodeCommand=void 0;var SQe=P(),_Qe=R(),uZ=Re(),mZ=Ie(),iD=class extends _Qe.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,SQe.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"UpdateFunctionCodeCommand",inputFilterSensitiveLog:uZ.UpdateFunctionCodeRequest.filterSensitiveLog,outputFilterSensitiveLog:uZ.FunctionConfiguration.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,mZ.serializeAws_restJson1UpdateFunctionCodeCommand)(t,n)}deserialize(t,n){return(0,mZ.deserializeAws_restJson1UpdateFunctionCodeCommand)(t,n)}};cE.UpdateFunctionCodeCommand=iD});var aD=m(lE=>{"use strict";Object.defineProperty(lE,"__esModule",{value:!0});lE.UpdateFunctionConfigurationCommand=void 0;var vQe=P(),CQe=R(),fZ=Re(),pZ=Ie(),oD=class extends CQe.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,vQe.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"UpdateFunctionConfigurationCommand",inputFilterSensitiveLog:fZ.UpdateFunctionConfigurationRequest.filterSensitiveLog,outputFilterSensitiveLog:fZ.FunctionConfiguration.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,pZ.serializeAws_restJson1UpdateFunctionConfigurationCommand)(t,n)}deserialize(t,n){return(0,pZ.deserializeAws_restJson1UpdateFunctionConfigurationCommand)(t,n)}};lE.UpdateFunctionConfigurationCommand=oD});var cD=m(uE=>{"use strict";Object.defineProperty(uE,"__esModule",{value:!0});uE.UpdateFunctionEventInvokeConfigCommand=void 0;var EQe=P(),AQe=R(),gZ=Re(),hZ=Ie(),dD=class extends AQe.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,EQe.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"UpdateFunctionEventInvokeConfigCommand",inputFilterSensitiveLog:gZ.UpdateFunctionEventInvokeConfigRequest.filterSensitiveLog,outputFilterSensitiveLog:gZ.FunctionEventInvokeConfig.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,hZ.serializeAws_restJson1UpdateFunctionEventInvokeConfigCommand)(t,n)}deserialize(t,n){return(0,hZ.deserializeAws_restJson1UpdateFunctionEventInvokeConfigCommand)(t,n)}};uE.UpdateFunctionEventInvokeConfigCommand=dD});var uD=m(mE=>{"use strict";Object.defineProperty(mE,"__esModule",{value:!0});mE.UpdateFunctionUrlConfigCommand=void 0;var xQe=P(),bQe=R(),wZ=Re(),yZ=Ie(),lD=class extends bQe.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,xQe.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"UpdateFunctionUrlConfigCommand",inputFilterSensitiveLog:wZ.UpdateFunctionUrlConfigRequest.filterSensitiveLog,outputFilterSensitiveLog:wZ.UpdateFunctionUrlConfigResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,yZ.serializeAws_restJson1UpdateFunctionUrlConfigCommand)(t,n)}deserialize(t,n){return(0,yZ.deserializeAws_restJson1UpdateFunctionUrlConfigCommand)(t,n)}};mE.UpdateFunctionUrlConfigCommand=lD});var SZ=m((u9t,RQe)=>{RQe.exports={name:"@aws-sdk/client-lambda",description:"AWS SDK for JavaScript Lambda Client for Node.js, Browser and React Native",version:"3.95.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/client-sts":"3.95.0","@aws-sdk/config-resolver":"3.80.0","@aws-sdk/credential-provider-node":"3.95.0","@aws-sdk/fetch-http-handler":"3.78.0","@aws-sdk/hash-node":"3.78.0","@aws-sdk/invalid-dependency":"3.78.0","@aws-sdk/middleware-content-length":"3.78.0","@aws-sdk/middleware-host-header":"3.78.0","@aws-sdk/middleware-logger":"3.78.0","@aws-sdk/middleware-retry":"3.80.0","@aws-sdk/middleware-serde":"3.78.0","@aws-sdk/middleware-signing":"3.78.0","@aws-sdk/middleware-stack":"3.78.0","@aws-sdk/middleware-user-agent":"3.78.0","@aws-sdk/node-config-provider":"3.80.0","@aws-sdk/node-http-handler":"3.94.0","@aws-sdk/protocol-http":"3.78.0","@aws-sdk/smithy-client":"3.85.0","@aws-sdk/types":"3.78.0","@aws-sdk/url-parser":"3.78.0","@aws-sdk/util-base64-browser":"3.58.0","@aws-sdk/util-base64-node":"3.55.0","@aws-sdk/util-body-length-browser":"3.55.0","@aws-sdk/util-body-length-node":"3.55.0","@aws-sdk/util-defaults-mode-browser":"3.85.0","@aws-sdk/util-defaults-mode-node":"3.85.0","@aws-sdk/util-user-agent-browser":"3.78.0","@aws-sdk/util-user-agent-node":"3.80.0","@aws-sdk/util-utf8-browser":"3.55.0","@aws-sdk/util-utf8-node":"3.55.0","@aws-sdk/util-waiter":"3.78.0",tslib:"^2.3.1"},devDependencies:{"@aws-sdk/service-client-documentation-generator":"3.58.0","@tsconfig/recommended":"1.0.1","@types/node":"^12.7.5",concurrently:"7.0.0","downlevel-dts":"0.7.0",rimraf:"3.0.2",typedoc:"0.19.2",typescript:"~4.6.2"},engines:{node:">=12.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-lambda",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-lambda"}}});var _Z=m(fE=>{"use strict";Object.defineProperty(fE,"__esModule",{value:!0});fE.defaultRegionInfoProvider=void 0;var TQe=Jt(),IQe={"af-south-1":{variants:[{hostname:"lambda.af-south-1.api.aws",tags:["dualstack"]}]},"ap-east-1":{variants:[{hostname:"lambda.ap-east-1.api.aws",tags:["dualstack"]}]},"ap-northeast-1":{variants:[{hostname:"lambda.ap-northeast-1.api.aws",tags:["dualstack"]}]},"ap-northeast-2":{variants:[{hostname:"lambda.ap-northeast-2.api.aws",tags:["dualstack"]}]},"ap-northeast-3":{variants:[{hostname:"lambda.ap-northeast-3.api.aws",tags:["dualstack"]}]},"ap-south-1":{variants:[{hostname:"lambda.ap-south-1.api.aws",tags:["dualstack"]}]},"ap-southeast-1":{variants:[{hostname:"lambda.ap-southeast-1.api.aws",tags:["dualstack"]}]},"ap-southeast-2":{variants:[{hostname:"lambda.ap-southeast-2.api.aws",tags:["dualstack"]}]},"ap-southeast-3":{variants:[{hostname:"lambda.ap-southeast-3.api.aws",tags:["dualstack"]}]},"ca-central-1":{variants:[{hostname:"lambda.ca-central-1.api.aws",tags:["dualstack"]}]},"cn-north-1":{variants:[{hostname:"lambda.cn-north-1.api.amazonwebservices.com.cn",tags:["dualstack"]}]},"cn-northwest-1":{variants:[{hostname:"lambda.cn-northwest-1.api.amazonwebservices.com.cn",tags:["dualstack"]}]},"eu-central-1":{variants:[{hostname:"lambda.eu-central-1.api.aws",tags:["dualstack"]}]},"eu-north-1":{variants:[{hostname:"lambda.eu-north-1.api.aws",tags:["dualstack"]}]},"eu-south-1":{variants:[{hostname:"lambda.eu-south-1.api.aws",tags:["dualstack"]}]},"eu-west-1":{variants:[{hostname:"lambda.eu-west-1.api.aws",tags:["dualstack"]}]},"eu-west-2":{variants:[{hostname:"lambda.eu-west-2.api.aws",tags:["dualstack"]}]},"eu-west-3":{variants:[{hostname:"lambda.eu-west-3.api.aws",tags:["dualstack"]}]},"me-south-1":{variants:[{hostname:"lambda.me-south-1.api.aws",tags:["dualstack"]}]},"sa-east-1":{variants:[{hostname:"lambda.sa-east-1.api.aws",tags:["dualstack"]}]},"us-east-1":{variants:[{hostname:"lambda-fips.us-east-1.amazonaws.com",tags:["fips"]},{hostname:"lambda.us-east-1.api.aws",tags:["dualstack"]}]},"us-east-2":{variants:[{hostname:"lambda-fips.us-east-2.amazonaws.com",tags:["fips"]},{hostname:"lambda.us-east-2.api.aws",tags:["dualstack"]}]},"us-gov-east-1":{variants:[{hostname:"lambda-fips.us-gov-east-1.amazonaws.com",tags:["fips"]}]},"us-gov-west-1":{variants:[{hostname:"lambda-fips.us-gov-west-1.amazonaws.com",tags:["fips"]}]},"us-west-1":{variants:[{hostname:"lambda-fips.us-west-1.amazonaws.com",tags:["fips"]},{hostname:"lambda.us-west-1.api.aws",tags:["dualstack"]}]},"us-west-2":{variants:[{hostname:"lambda-fips.us-west-2.amazonaws.com",tags:["fips"]},{hostname:"lambda.us-west-2.api.aws",tags:["dualstack"]}]}},NQe={aws:{regions:["af-south-1","ap-east-1","ap-northeast-1","ap-northeast-2","ap-northeast-3","ap-south-1","ap-southeast-1","ap-southeast-2","ap-southeast-3","ca-central-1","eu-central-1","eu-north-1","eu-south-1","eu-west-1","eu-west-2","eu-west-3","fips-us-east-1","fips-us-east-2","fips-us-west-1","fips-us-west-2","me-south-1","sa-east-1","us-east-1","us-east-2","us-west-1","us-west-2"],regionRegex:"^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",variants:[{hostname:"lambda.{region}.amazonaws.com",tags:[]},{hostname:"lambda-fips.{region}.amazonaws.com",tags:["fips"]},{hostname:"lambda-fips.{region}.api.aws",tags:["dualstack","fips"]},{hostname:"lambda.{region}.api.aws",tags:["dualstack"]}]},"aws-cn":{regions:["cn-north-1","cn-northwest-1"],regionRegex:"^cn\\-\\w+\\-\\d+$",variants:[{hostname:"lambda.{region}.amazonaws.com.cn",tags:[]},{hostname:"lambda-fips.{region}.amazonaws.com.cn",tags:["fips"]},{hostname:"lambda-fips.{region}.api.amazonwebservices.com.cn",tags:["dualstack","fips"]},{hostname:"lambda.{region}.api.amazonwebservices.com.cn",tags:["dualstack"]}]},"aws-iso":{regions:["us-iso-east-1","us-iso-west-1"],regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",variants:[{hostname:"lambda.{region}.c2s.ic.gov",tags:[]},{hostname:"lambda-fips.{region}.c2s.ic.gov",tags:["fips"]}]},"aws-iso-b":{regions:["us-isob-east-1"],regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",variants:[{hostname:"lambda.{region}.sc2s.sgov.gov",tags:[]},{hostname:"lambda-fips.{region}.sc2s.sgov.gov",tags:["fips"]}]},"aws-us-gov":{regions:["fips-us-gov-east-1","fips-us-gov-west-1","us-gov-east-1","us-gov-west-1"],regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",variants:[{hostname:"lambda.{region}.amazonaws.com",tags:[]},{hostname:"lambda-fips.{region}.amazonaws.com",tags:["fips"]},{hostname:"lambda-fips.{region}.api.aws",tags:["dualstack","fips"]},{hostname:"lambda.{region}.api.aws",tags:["dualstack"]}]}},PQe=async(e,t)=>(0,TQe.getRegionInfo)(e,S(o({},t),{signingService:"lambda",regionHash:IQe,partitionHash:NQe}));fE.defaultRegionInfoProvider=PQe});var vZ=m(pE=>{"use strict";Object.defineProperty(pE,"__esModule",{value:!0});pE.getRuntimeConfig=void 0;var kQe=jr(),zQe=_Z(),qQe=e=>{var t,n,r,i,s;return{apiVersion:"2015-03-31",disableHostPrefix:(t=e==null?void 0:e.disableHostPrefix)!==null&&t!==void 0?t:!1,logger:(n=e==null?void 0:e.logger)!==null&&n!==void 0?n:{},regionInfoProvider:(r=e==null?void 0:e.regionInfoProvider)!==null&&r!==void 0?r:zQe.defaultRegionInfoProvider,serviceId:(i=e==null?void 0:e.serviceId)!==null&&i!==void 0?i:"Lambda",urlParser:(s=e==null?void 0:e.urlParser)!==null&&s!==void 0?s:kQe.parseUrl}};pE.getRuntimeConfig=qQe});var xZ=m(hE=>{"use strict";Object.defineProperty(hE,"__esModule",{value:!0});hE.getRuntimeConfig=void 0;var LQe=oe(),DQe=LQe.__importDefault(SZ()),MQe=bd(),gE=Jt(),BQe=xd(),OQe=Ws(),mD=Mn(),Km=lr(),CZ=Qs(),EZ=Ys(),FQe=Zs(),jQe=eo(),AZ=to(),UQe=vZ(),GQe=R(),VQe=ro(),$Qe=e=>{var t,n,r,i,s,d,a,c,l,u,w,E,T,I,N;let F=(0,VQe.resolveDefaultsModeConfig)(e),J=()=>F().then(GQe.loadConfigsForDefaultMode),G=(0,UQe.getRuntimeConfig)(e);return S(o(o({},G),e),{runtime:"node",defaultsMode:F,base64Decoder:(t=e==null?void 0:e.base64Decoder)!==null&&t!==void 0?t:EZ.fromBase64,base64Encoder:(n=e==null?void 0:e.base64Encoder)!==null&&n!==void 0?n:EZ.toBase64,bodyLengthChecker:(r=e==null?void 0:e.bodyLengthChecker)!==null&&r!==void 0?r:FQe.calculateBodyLength,credentialDefaultProvider:(i=e==null?void 0:e.credentialDefaultProvider)!==null&&i!==void 0?i:(0,MQe.decorateDefaultCredentialProvider)(BQe.defaultProvider),defaultUserAgentProvider:(s=e==null?void 0:e.defaultUserAgentProvider)!==null&&s!==void 0?s:(0,jQe.defaultUserAgent)({serviceId:G.serviceId,clientVersion:DQe.default.version}),maxAttempts:(d=e==null?void 0:e.maxAttempts)!==null&&d!==void 0?d:(0,Km.loadConfig)(mD.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(a=e==null?void 0:e.region)!==null&&a!==void 0?a:(0,Km.loadConfig)(gE.NODE_REGION_CONFIG_OPTIONS,gE.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(c=e==null?void 0:e.requestHandler)!==null&&c!==void 0?c:new CZ.NodeHttpHandler(J),retryMode:(l=e==null?void 0:e.retryMode)!==null&&l!==void 0?l:(0,Km.loadConfig)(S(o({},mD.NODE_RETRY_MODE_CONFIG_OPTIONS),{default:async()=>(await J()).retryMode||mD.DEFAULT_RETRY_MODE})),sha256:(u=e==null?void 0:e.sha256)!==null&&u!==void 0?u:OQe.Hash.bind(null,"sha256"),streamCollector:(w=e==null?void 0:e.streamCollector)!==null&&w!==void 0?w:CZ.streamCollector,useDualstackEndpoint:(E=e==null?void 0:e.useDualstackEndpoint)!==null&&E!==void 0?E:(0,Km.loadConfig)(gE.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(T=e==null?void 0:e.useFipsEndpoint)!==null&&T!==void 0?T:(0,Km.loadConfig)(gE.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:(I=e==null?void 0:e.utf8Decoder)!==null&&I!==void 0?I:AZ.fromUtf8,utf8Encoder:(N=e==null?void 0:e.utf8Encoder)!==null&&N!==void 0?N:AZ.toUtf8})};hE.getRuntimeConfig=$Qe});var Jn=m(wE=>{"use strict";Object.defineProperty(wE,"__esModule",{value:!0});wE.LambdaClient=void 0;var bZ=Jt(),HQe=Ds(),RZ=Ms(),JQe=Bs(),TZ=Mn(),IZ=Ar(),NZ=Us(),XQe=R(),KQe=xZ(),fD=class extends XQe.Client{constructor(t){let n=(0,KQe.getRuntimeConfig)(t),r=(0,bZ.resolveRegionConfig)(n),i=(0,bZ.resolveEndpointsConfig)(r),s=(0,TZ.resolveRetryConfig)(i),d=(0,RZ.resolveHostHeaderConfig)(s),a=(0,IZ.resolveAwsAuthConfig)(d),c=(0,NZ.resolveUserAgentConfig)(a);super(c),this.config=c,this.middlewareStack.use((0,TZ.getRetryPlugin)(this.config)),this.middlewareStack.use((0,HQe.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,RZ.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,JQe.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,IZ.getAwsAuthPlugin)(this.config)),this.middlewareStack.use((0,NZ.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};wE.LambdaClient=fD});var ur=m(yE=>{"use strict";Object.defineProperty(yE,"__esModule",{value:!0});yE.Lambda=void 0;var WQe=dq(),QQe=lq(),YQe=mq(),ZQe=pq(),eYe=hq(),tYe=yq(),nYe=_q(),rYe=Cq(),iYe=Aq(),sYe=bq(),oYe=Tq(),aYe=Nq(),dYe=kq(),cYe=qq(),lYe=Dq(),uYe=Bq(),mYe=Fq(),fYe=Uq(),pYe=Vq(),gYe=Hq(),hYe=Xq(),wYe=Wq(),yYe=Ud(),SYe=Zq(),_Ye=Xm(),vYe=nL(),CYe=iL(),EYe=oL(),AYe=dL(),xYe=lL(),bYe=mL(),RYe=pL(),TYe=hL(),IYe=yL(),NYe=TC(),PYe=NC(),kYe=kC(),zYe=qC(),qYe=DC(),LYe=BC(),DYe=FC(),MYe=UC(),BYe=VC(),OYe=HC(),FYe=NL(),jYe=KC(),UYe=zL(),GYe=LL(),VYe=ML(),$Ye=OL(),HYe=jL(),JYe=GL(),XYe=$L(),KYe=JL(),WYe=KL(),QYe=QL(),YYe=ZL(),ZYe=tD(),eZe=rD(),tZe=sD(),nZe=aD(),rZe=cD(),iZe=uD(),sZe=Jn(),pD=class extends sZe.LambdaClient{addLayerVersionPermission(t,n,r){let i=new WQe.AddLayerVersionPermissionCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}addPermission(t,n,r){let i=new QQe.AddPermissionCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}createAlias(t,n,r){let i=new YQe.CreateAliasCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}createCodeSigningConfig(t,n,r){let i=new ZQe.CreateCodeSigningConfigCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}createEventSourceMapping(t,n,r){let i=new eYe.CreateEventSourceMappingCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}createFunction(t,n,r){let i=new tYe.CreateFunctionCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}createFunctionUrlConfig(t,n,r){let i=new nYe.CreateFunctionUrlConfigCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}deleteAlias(t,n,r){let i=new rYe.DeleteAliasCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}deleteCodeSigningConfig(t,n,r){let i=new iYe.DeleteCodeSigningConfigCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}deleteEventSourceMapping(t,n,r){let i=new sYe.DeleteEventSourceMappingCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}deleteFunction(t,n,r){let i=new aYe.DeleteFunctionCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}deleteFunctionCodeSigningConfig(t,n,r){let i=new oYe.DeleteFunctionCodeSigningConfigCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}deleteFunctionConcurrency(t,n,r){let i=new dYe.DeleteFunctionConcurrencyCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}deleteFunctionEventInvokeConfig(t,n,r){let i=new cYe.DeleteFunctionEventInvokeConfigCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}deleteFunctionUrlConfig(t,n,r){let i=new lYe.DeleteFunctionUrlConfigCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}deleteLayerVersion(t,n,r){let i=new uYe.DeleteLayerVersionCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}deleteProvisionedConcurrencyConfig(t,n,r){let i=new mYe.DeleteProvisionedConcurrencyConfigCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}getAccountSettings(t,n,r){let i=new fYe.GetAccountSettingsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}getAlias(t,n,r){let i=new pYe.GetAliasCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}getCodeSigningConfig(t,n,r){let i=new gYe.GetCodeSigningConfigCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}getEventSourceMapping(t,n,r){let i=new hYe.GetEventSourceMappingCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}getFunction(t,n,r){let i=new yYe.GetFunctionCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}getFunctionCodeSigningConfig(t,n,r){let i=new wYe.GetFunctionCodeSigningConfigCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}getFunctionConcurrency(t,n,r){let i=new SYe.GetFunctionConcurrencyCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}getFunctionConfiguration(t,n,r){let i=new _Ye.GetFunctionConfigurationCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}getFunctionEventInvokeConfig(t,n,r){let i=new vYe.GetFunctionEventInvokeConfigCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}getFunctionUrlConfig(t,n,r){let i=new CYe.GetFunctionUrlConfigCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}getLayerVersion(t,n,r){let i=new AYe.GetLayerVersionCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}getLayerVersionByArn(t,n,r){let i=new EYe.GetLayerVersionByArnCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}getLayerVersionPolicy(t,n,r){let i=new xYe.GetLayerVersionPolicyCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}getPolicy(t,n,r){let i=new bYe.GetPolicyCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}getProvisionedConcurrencyConfig(t,n,r){let i=new RYe.GetProvisionedConcurrencyConfigCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}invoke(t,n,r){let i=new IYe.InvokeCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}invokeAsync(t,n,r){let i=new TYe.InvokeAsyncCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listAliases(t,n,r){let i=new NYe.ListAliasesCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listCodeSigningConfigs(t,n,r){let i=new PYe.ListCodeSigningConfigsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listEventSourceMappings(t,n,r){let i=new kYe.ListEventSourceMappingsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listFunctionEventInvokeConfigs(t,n,r){let i=new zYe.ListFunctionEventInvokeConfigsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listFunctions(t,n,r){let i=new LYe.ListFunctionsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listFunctionsByCodeSigningConfig(t,n,r){let i=new qYe.ListFunctionsByCodeSigningConfigCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listFunctionUrlConfigs(t,n,r){let i=new DYe.ListFunctionUrlConfigsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listLayers(t,n,r){let i=new MYe.ListLayersCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listLayerVersions(t,n,r){let i=new BYe.ListLayerVersionsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listProvisionedConcurrencyConfigs(t,n,r){let i=new OYe.ListProvisionedConcurrencyConfigsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listTags(t,n,r){let i=new FYe.ListTagsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listVersionsByFunction(t,n,r){let i=new jYe.ListVersionsByFunctionCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}publishLayerVersion(t,n,r){let i=new UYe.PublishLayerVersionCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}publishVersion(t,n,r){let i=new GYe.PublishVersionCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}putFunctionCodeSigningConfig(t,n,r){let i=new VYe.PutFunctionCodeSigningConfigCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}putFunctionConcurrency(t,n,r){let i=new $Ye.PutFunctionConcurrencyCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}putFunctionEventInvokeConfig(t,n,r){let i=new HYe.PutFunctionEventInvokeConfigCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}putProvisionedConcurrencyConfig(t,n,r){let i=new JYe.PutProvisionedConcurrencyConfigCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}removeLayerVersionPermission(t,n,r){let i=new XYe.RemoveLayerVersionPermissionCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}removePermission(t,n,r){let i=new KYe.RemovePermissionCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}tagResource(t,n,r){let i=new WYe.TagResourceCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}untagResource(t,n,r){let i=new QYe.UntagResourceCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}updateAlias(t,n,r){let i=new YYe.UpdateAliasCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}updateCodeSigningConfig(t,n,r){let i=new ZYe.UpdateCodeSigningConfigCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}updateEventSourceMapping(t,n,r){let i=new eZe.UpdateEventSourceMappingCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}updateFunctionCode(t,n,r){let i=new tZe.UpdateFunctionCodeCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}updateFunctionConfiguration(t,n,r){let i=new nZe.UpdateFunctionConfigurationCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}updateFunctionEventInvokeConfig(t,n,r){let i=new rZe.UpdateFunctionEventInvokeConfigCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}updateFunctionUrlConfig(t,n,r){let i=new iZe.UpdateFunctionUrlConfigCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}};yE.Lambda=pD});var PZ=m(Te=>{"use strict";Object.defineProperty(Te,"__esModule",{value:!0});var Le=oe();Le.__exportStar(dq(),Te);Le.__exportStar(lq(),Te);Le.__exportStar(mq(),Te);Le.__exportStar(pq(),Te);Le.__exportStar(hq(),Te);Le.__exportStar(yq(),Te);Le.__exportStar(_q(),Te);Le.__exportStar(Cq(),Te);Le.__exportStar(Aq(),Te);Le.__exportStar(bq(),Te);Le.__exportStar(Tq(),Te);Le.__exportStar(Nq(),Te);Le.__exportStar(kq(),Te);Le.__exportStar(qq(),Te);Le.__exportStar(Dq(),Te);Le.__exportStar(Bq(),Te);Le.__exportStar(Fq(),Te);Le.__exportStar(Uq(),Te);Le.__exportStar(Vq(),Te);Le.__exportStar(Hq(),Te);Le.__exportStar(Xq(),Te);Le.__exportStar(Wq(),Te);Le.__exportStar(Ud(),Te);Le.__exportStar(Zq(),Te);Le.__exportStar(Xm(),Te);Le.__exportStar(nL(),Te);Le.__exportStar(iL(),Te);Le.__exportStar(oL(),Te);Le.__exportStar(dL(),Te);Le.__exportStar(lL(),Te);Le.__exportStar(mL(),Te);Le.__exportStar(pL(),Te);Le.__exportStar(hL(),Te);Le.__exportStar(yL(),Te);Le.__exportStar(TC(),Te);Le.__exportStar(NC(),Te);Le.__exportStar(kC(),Te);Le.__exportStar(qC(),Te);Le.__exportStar(FC(),Te);Le.__exportStar(DC(),Te);Le.__exportStar(BC(),Te);Le.__exportStar(VC(),Te);Le.__exportStar(UC(),Te);Le.__exportStar(HC(),Te);Le.__exportStar(NL(),Te);Le.__exportStar(KC(),Te);Le.__exportStar(zL(),Te);Le.__exportStar(LL(),Te);Le.__exportStar(ML(),Te);Le.__exportStar(OL(),Te);Le.__exportStar(jL(),Te);Le.__exportStar(GL(),Te);Le.__exportStar($L(),Te);Le.__exportStar(JL(),Te);Le.__exportStar(KL(),Te);Le.__exportStar(QL(),Te);Le.__exportStar(ZL(),Te);Le.__exportStar(tD(),Te);Le.__exportStar(rD(),Te);Le.__exportStar(sD(),Te);Le.__exportStar(aD(),Te);Le.__exportStar(cD(),Te);Le.__exportStar(uD(),Te)});var kZ=m(gD=>{"use strict";Object.defineProperty(gD,"__esModule",{value:!0});var oZe=oe();oZe.__exportStar(Re(),gD)});var qZ=m(zZ=>{"use strict";Object.defineProperty(zZ,"__esModule",{value:!0})});var LZ=m(SE=>{"use strict";Object.defineProperty(SE,"__esModule",{value:!0});SE.paginateListAliases=void 0;var aZe=TC(),dZe=ur(),cZe=Jn(),lZe=async(e,t,...n)=>await e.send(new aZe.ListAliasesCommand(t),...n),uZe=async(e,t,...n)=>await e.listAliases(t,...n);async function*mZe(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.Marker=r,t.MaxItems=e.pageSize,e.client instanceof dZe.Lambda)s=await uZe(e.client,t,...n);else if(e.client instanceof cZe.LambdaClient)s=await lZe(e.client,t,...n);else throw new Error("Invalid client, expected Lambda | LambdaClient");yield s;let d=r;r=s.NextMarker,i=!!(r&&(!e.stopOnSameToken||r!==d))}return void 0}SE.paginateListAliases=mZe});var DZ=m(_E=>{"use strict";Object.defineProperty(_E,"__esModule",{value:!0});_E.paginateListCodeSigningConfigs=void 0;var fZe=NC(),pZe=ur(),gZe=Jn(),hZe=async(e,t,...n)=>await e.send(new fZe.ListCodeSigningConfigsCommand(t),...n),wZe=async(e,t,...n)=>await e.listCodeSigningConfigs(t,...n);async function*yZe(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.Marker=r,t.MaxItems=e.pageSize,e.client instanceof pZe.Lambda)s=await wZe(e.client,t,...n);else if(e.client instanceof gZe.LambdaClient)s=await hZe(e.client,t,...n);else throw new Error("Invalid client, expected Lambda | LambdaClient");yield s;let d=r;r=s.NextMarker,i=!!(r&&(!e.stopOnSameToken||r!==d))}return void 0}_E.paginateListCodeSigningConfigs=yZe});var MZ=m(vE=>{"use strict";Object.defineProperty(vE,"__esModule",{value:!0});vE.paginateListEventSourceMappings=void 0;var SZe=kC(),_Ze=ur(),vZe=Jn(),CZe=async(e,t,...n)=>await e.send(new SZe.ListEventSourceMappingsCommand(t),...n),EZe=async(e,t,...n)=>await e.listEventSourceMappings(t,...n);async function*AZe(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.Marker=r,t.MaxItems=e.pageSize,e.client instanceof _Ze.Lambda)s=await EZe(e.client,t,...n);else if(e.client instanceof vZe.LambdaClient)s=await CZe(e.client,t,...n);else throw new Error("Invalid client, expected Lambda | LambdaClient");yield s;let d=r;r=s.NextMarker,i=!!(r&&(!e.stopOnSameToken||r!==d))}return void 0}vE.paginateListEventSourceMappings=AZe});var BZ=m(CE=>{"use strict";Object.defineProperty(CE,"__esModule",{value:!0});CE.paginateListFunctionEventInvokeConfigs=void 0;var xZe=qC(),bZe=ur(),RZe=Jn(),TZe=async(e,t,...n)=>await e.send(new xZe.ListFunctionEventInvokeConfigsCommand(t),...n),IZe=async(e,t,...n)=>await e.listFunctionEventInvokeConfigs(t,...n);async function*NZe(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.Marker=r,t.MaxItems=e.pageSize,e.client instanceof bZe.Lambda)s=await IZe(e.client,t,...n);else if(e.client instanceof RZe.LambdaClient)s=await TZe(e.client,t,...n);else throw new Error("Invalid client, expected Lambda | LambdaClient");yield s;let d=r;r=s.NextMarker,i=!!(r&&(!e.stopOnSameToken||r!==d))}return void 0}CE.paginateListFunctionEventInvokeConfigs=NZe});var OZ=m(EE=>{"use strict";Object.defineProperty(EE,"__esModule",{value:!0});EE.paginateListFunctionUrlConfigs=void 0;var PZe=FC(),kZe=ur(),zZe=Jn(),qZe=async(e,t,...n)=>await e.send(new PZe.ListFunctionUrlConfigsCommand(t),...n),LZe=async(e,t,...n)=>await e.listFunctionUrlConfigs(t,...n);async function*DZe(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.Marker=r,t.MaxItems=e.pageSize,e.client instanceof kZe.Lambda)s=await LZe(e.client,t,...n);else if(e.client instanceof zZe.LambdaClient)s=await qZe(e.client,t,...n);else throw new Error("Invalid client, expected Lambda | LambdaClient");yield s;let d=r;r=s.NextMarker,i=!!(r&&(!e.stopOnSameToken||r!==d))}return void 0}EE.paginateListFunctionUrlConfigs=DZe});var FZ=m(AE=>{"use strict";Object.defineProperty(AE,"__esModule",{value:!0});AE.paginateListFunctionsByCodeSigningConfig=void 0;var MZe=DC(),BZe=ur(),OZe=Jn(),FZe=async(e,t,...n)=>await e.send(new MZe.ListFunctionsByCodeSigningConfigCommand(t),...n),jZe=async(e,t,...n)=>await e.listFunctionsByCodeSigningConfig(t,...n);async function*UZe(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.Marker=r,t.MaxItems=e.pageSize,e.client instanceof BZe.Lambda)s=await jZe(e.client,t,...n);else if(e.client instanceof OZe.LambdaClient)s=await FZe(e.client,t,...n);else throw new Error("Invalid client, expected Lambda | LambdaClient");yield s;let d=r;r=s.NextMarker,i=!!(r&&(!e.stopOnSameToken||r!==d))}return void 0}AE.paginateListFunctionsByCodeSigningConfig=UZe});var jZ=m(xE=>{"use strict";Object.defineProperty(xE,"__esModule",{value:!0});xE.paginateListFunctions=void 0;var GZe=BC(),VZe=ur(),$Ze=Jn(),HZe=async(e,t,...n)=>await e.send(new GZe.ListFunctionsCommand(t),...n),JZe=async(e,t,...n)=>await e.listFunctions(t,...n);async function*XZe(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.Marker=r,t.MaxItems=e.pageSize,e.client instanceof VZe.Lambda)s=await JZe(e.client,t,...n);else if(e.client instanceof $Ze.LambdaClient)s=await HZe(e.client,t,...n);else throw new Error("Invalid client, expected Lambda | LambdaClient");yield s;let d=r;r=s.NextMarker,i=!!(r&&(!e.stopOnSameToken||r!==d))}return void 0}xE.paginateListFunctions=XZe});var UZ=m(bE=>{"use strict";Object.defineProperty(bE,"__esModule",{value:!0});bE.paginateListLayerVersions=void 0;var KZe=VC(),WZe=ur(),QZe=Jn(),YZe=async(e,t,...n)=>await e.send(new KZe.ListLayerVersionsCommand(t),...n),ZZe=async(e,t,...n)=>await e.listLayerVersions(t,...n);async function*eet(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.Marker=r,t.MaxItems=e.pageSize,e.client instanceof WZe.Lambda)s=await ZZe(e.client,t,...n);else if(e.client instanceof QZe.LambdaClient)s=await YZe(e.client,t,...n);else throw new Error("Invalid client, expected Lambda | LambdaClient");yield s;let d=r;r=s.NextMarker,i=!!(r&&(!e.stopOnSameToken||r!==d))}return void 0}bE.paginateListLayerVersions=eet});var GZ=m(RE=>{"use strict";Object.defineProperty(RE,"__esModule",{value:!0});RE.paginateListLayers=void 0;var tet=UC(),net=ur(),ret=Jn(),iet=async(e,t,...n)=>await e.send(new tet.ListLayersCommand(t),...n),set=async(e,t,...n)=>await e.listLayers(t,...n);async function*oet(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.Marker=r,t.MaxItems=e.pageSize,e.client instanceof net.Lambda)s=await set(e.client,t,...n);else if(e.client instanceof ret.LambdaClient)s=await iet(e.client,t,...n);else throw new Error("Invalid client, expected Lambda | LambdaClient");yield s;let d=r;r=s.NextMarker,i=!!(r&&(!e.stopOnSameToken||r!==d))}return void 0}RE.paginateListLayers=oet});var VZ=m(TE=>{"use strict";Object.defineProperty(TE,"__esModule",{value:!0});TE.paginateListProvisionedConcurrencyConfigs=void 0;var aet=HC(),det=ur(),cet=Jn(),uet=async(e,t,...n)=>await e.send(new aet.ListProvisionedConcurrencyConfigsCommand(t),...n),met=async(e,t,...n)=>await e.listProvisionedConcurrencyConfigs(t,...n);async function*fet(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.Marker=r,t.MaxItems=e.pageSize,e.client instanceof det.Lambda)s=await met(e.client,t,...n);else if(e.client instanceof cet.LambdaClient)s=await uet(e.client,t,...n);else throw new Error("Invalid client, expected Lambda | LambdaClient");yield s;let d=r;r=s.NextMarker,i=!!(r&&(!e.stopOnSameToken||r!==d))}return void 0}TE.paginateListProvisionedConcurrencyConfigs=fet});var $Z=m(IE=>{"use strict";Object.defineProperty(IE,"__esModule",{value:!0});IE.paginateListVersionsByFunction=void 0;var pet=KC(),get=ur(),het=Jn(),wet=async(e,t,...n)=>await e.send(new pet.ListVersionsByFunctionCommand(t),...n),yet=async(e,t,...n)=>await e.listVersionsByFunction(t,...n);async function*_et(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.Marker=r,t.MaxItems=e.pageSize,e.client instanceof get.Lambda)s=await yet(e.client,t,...n);else if(e.client instanceof het.LambdaClient)s=await wet(e.client,t,...n);else throw new Error("Invalid client, expected Lambda | LambdaClient");yield s;let d=r;r=s.NextMarker,i=!!(r&&(!e.stopOnSameToken||r!==d))}return void 0}IE.paginateListVersionsByFunction=_et});var HZ=m(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});var Tr=oe();Tr.__exportStar(qZ(),Xn);Tr.__exportStar(LZ(),Xn);Tr.__exportStar(DZ(),Xn);Tr.__exportStar(MZ(),Xn);Tr.__exportStar(BZ(),Xn);Tr.__exportStar(OZ(),Xn);Tr.__exportStar(FZ(),Xn);Tr.__exportStar(jZ(),Xn);Tr.__exportStar(UZ(),Xn);Tr.__exportStar(GZ(),Xn);Tr.__exportStar(VZ(),Xn);Tr.__exportStar($Z(),Xn)});var XZ=m(Gd=>{"use strict";Object.defineProperty(Gd,"__esModule",{value:!0});Gd.waitUntilFunctionActive=Gd.waitForFunctionActive=void 0;var ya=Rr(),vet=Xm(),JZ=async(e,t)=>{let n;try{let r=await e.send(new vet.GetFunctionConfigurationCommand(t));n=r;try{if((()=>r.State)()==="Active")return{state:ya.WaiterState.SUCCESS,reason:n}}catch{}try{if((()=>r.State)()==="Failed")return{state:ya.WaiterState.FAILURE,reason:n}}catch{}try{if((()=>r.State)()==="Pending")return{state:ya.WaiterState.RETRY,reason:n}}catch{}}catch(r){n=r}return{state:ya.WaiterState.RETRY,reason:n}},Cet=async(e,t)=>{let n={minDelay:5,maxDelay:120};return(0,ya.createWaiter)(o(o({},n),e),t,JZ)};Gd.waitForFunctionActive=Cet;var Eet=async(e,t)=>{let n={minDelay:5,maxDelay:120},r=await(0,ya.createWaiter)(o(o({},n),e),t,JZ);return(0,ya.checkExceptions)(r)};Gd.waitUntilFunctionActive=Eet});var WZ=m(Vd=>{"use strict";Object.defineProperty(Vd,"__esModule",{value:!0});Vd.waitUntilFunctionActiveV2=Vd.waitForFunctionActiveV2=void 0;var Sa=Rr(),Aet=Ud(),KZ=async(e,t)=>{let n;try{let r=await e.send(new Aet.GetFunctionCommand(t));n=r;try{if((()=>r.Configuration.State)()==="Active")return{state:Sa.WaiterState.SUCCESS,reason:n}}catch{}try{if((()=>r.Configuration.State)()==="Failed")return{state:Sa.WaiterState.FAILURE,reason:n}}catch{}try{if((()=>r.Configuration.State)()==="Pending")return{state:Sa.WaiterState.RETRY,reason:n}}catch{}}catch(r){n=r}return{state:Sa.WaiterState.RETRY,reason:n}},xet=async(e,t)=>{let n={minDelay:1,maxDelay:120};return(0,Sa.createWaiter)(o(o({},n),e),t,KZ)};Vd.waitForFunctionActiveV2=xet;var bet=async(e,t)=>{let n={minDelay:1,maxDelay:120},r=await(0,Sa.createWaiter)(o(o({},n),e),t,KZ);return(0,Sa.checkExceptions)(r)};Vd.waitUntilFunctionActiveV2=bet});var YZ=m(Hd=>{"use strict";Object.defineProperty(Hd,"__esModule",{value:!0});Hd.waitUntilFunctionExists=Hd.waitForFunctionExists=void 0;var $d=Rr(),Ret=Ud(),QZ=async(e,t)=>{let n;try{return n=await e.send(new Ret.GetFunctionCommand(t)),{state:$d.WaiterState.SUCCESS,reason:n}}catch(r){if(n=r,r.name&&r.name=="ResourceNotFoundException")return{state:$d.WaiterState.RETRY,reason:n}}return{state:$d.WaiterState.RETRY,reason:n}},Tet=async(e,t)=>{let n={minDelay:1,maxDelay:120};return(0,$d.createWaiter)(o(o({},n),e),t,QZ)};Hd.waitForFunctionExists=Tet;var Iet=async(e,t)=>{let n={minDelay:1,maxDelay:120},r=await(0,$d.createWaiter)(o(o({},n),e),t,QZ);return(0,$d.checkExceptions)(r)};Hd.waitUntilFunctionExists=Iet});var eee=m(Jd=>{"use strict";Object.defineProperty(Jd,"__esModule",{value:!0});Jd.waitUntilFunctionUpdated=Jd.waitForFunctionUpdated=void 0;var _a=Rr(),Net=Xm(),ZZ=async(e,t)=>{let n;try{let r=await e.send(new Net.GetFunctionConfigurationCommand(t));n=r;try{if((()=>r.LastUpdateStatus)()==="Successful")return{state:_a.WaiterState.SUCCESS,reason:n}}catch{}try{if((()=>r.LastUpdateStatus)()==="Failed")return{state:_a.WaiterState.FAILURE,reason:n}}catch{}try{if((()=>r.LastUpdateStatus)()==="InProgress")return{state:_a.WaiterState.RETRY,reason:n}}catch{}}catch(r){n=r}return{state:_a.WaiterState.RETRY,reason:n}},Pet=async(e,t)=>{let n={minDelay:5,maxDelay:120};return(0,_a.createWaiter)(o(o({},n),e),t,ZZ)};Jd.waitForFunctionUpdated=Pet;var ket=async(e,t)=>{let n={minDelay:5,maxDelay:120},r=await(0,_a.createWaiter)(o(o({},n),e),t,ZZ);return(0,_a.checkExceptions)(r)};Jd.waitUntilFunctionUpdated=ket});var nee=m(Xd=>{"use strict";Object.defineProperty(Xd,"__esModule",{value:!0});Xd.waitUntilFunctionUpdatedV2=Xd.waitForFunctionUpdatedV2=void 0;var va=Rr(),zet=Ud(),tee=async(e,t)=>{let n;try{let r=await e.send(new zet.GetFunctionCommand(t));n=r;try{if((()=>r.Configuration.LastUpdateStatus)()==="Successful")return{state:va.WaiterState.SUCCESS,reason:n}}catch{}try{if((()=>r.Configuration.LastUpdateStatus)()==="Failed")return{state:va.WaiterState.FAILURE,reason:n}}catch{}try{if((()=>r.Configuration.LastUpdateStatus)()==="InProgress")return{state:va.WaiterState.RETRY,reason:n}}catch{}}catch(r){n=r}return{state:va.WaiterState.RETRY,reason:n}},qet=async(e,t)=>{let n={minDelay:1,maxDelay:120};return(0,va.createWaiter)(o(o({},n),e),t,tee)};Xd.waitForFunctionUpdatedV2=qet;var Let=async(e,t)=>{let n={minDelay:1,maxDelay:120},r=await(0,va.createWaiter)(o(o({},n),e),t,tee);return(0,va.checkExceptions)(r)};Xd.waitUntilFunctionUpdatedV2=Let});var ree=m(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});var Wm=oe();Wm.__exportStar(XZ(),Ca);Wm.__exportStar(WZ(),Ca);Wm.__exportStar(YZ(),Ca);Wm.__exportStar(eee(),Ca);Wm.__exportStar(nee(),Ca)});var Qm=m(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Pi.LambdaServiceException=void 0;var Kd=oe();Kd.__exportStar(ur(),Pi);Kd.__exportStar(Jn(),Pi);Kd.__exportStar(PZ(),Pi);Kd.__exportStar(kZ(),Pi);Kd.__exportStar(HZ(),Pi);Kd.__exportStar(ree(),Pi);var Det=Bv();Object.defineProperty(Pi,"LambdaServiceException",{enumerable:!0,get:function(){return Det.LambdaServiceException}})});var hD=m(Ea=>{"use strict";Object.defineProperty(Ea,"__esModule",{value:!0});Ea.convertToAttr=void 0;var Met=(e,t)=>{var n,r,i,s,d,a;if(e===void 0)throw new Error("Pass options.removeUndefinedValues=true to remove undefined values from map/array/set.");if(e===null&&typeof e=="object")return NE();if(Array.isArray(e))return Bet(e,t);if(((n=e==null?void 0:e.constructor)===null||n===void 0?void 0:n.name)==="Set")return Oet(e,t);if(((r=e==null?void 0:e.constructor)===null||r===void 0?void 0:r.name)==="Map")return Fet(e,t);if(((i=e==null?void 0:e.constructor)===null||i===void 0?void 0:i.name)==="Object"||!e.constructor&&typeof e=="object")return iee(e,t);if(lee(e))return e.length===0&&(t==null?void 0:t.convertEmptyValues)?NE():oee(e);if(typeof e=="boolean"||((s=e==null?void 0:e.constructor)===null||s===void 0?void 0:s.name)==="Boolean")return{BOOL:e.valueOf()};if(typeof e=="number"||((d=e==null?void 0:e.constructor)===null||d===void 0?void 0:d.name)==="Number")return cee(e);if(typeof e=="bigint")return dee(e);if(typeof e=="string"||((a=e==null?void 0:e.constructor)===null||a===void 0?void 0:a.name)==="String")return e.length===0&&(t==null?void 0:t.convertEmptyValues)?NE():aee(e);if((t==null?void 0:t.convertClassInstanceToMap)&&typeof e=="object")return iee(e,t);throw new Error(`Unsupported type passed: ${e}. Pass options.convertClassInstanceToMap=true to marshall typeof object as map attribute.`)};Ea.convertToAttr=Met;var Bet=(e,t)=>({L:e.filter(n=>!(t!=null&&t.removeUndefinedValues)||(t==null?void 0:t.removeUndefinedValues)&&n!==void 0).map(n=>(0,Ea.convertToAttr)(n,t))}),Oet=(e,t)=>{let n=t!=null&&t.removeUndefinedValues?new Set([...e].filter(i=>i!==void 0)):e;if(!(t!=null&&t.removeUndefinedValues)&&n.has(void 0))throw new Error("Pass options.removeUndefinedValues=true to remove undefined values from map/array/set.");if(n.size===0){if(t!=null&&t.convertEmptyValues)return NE();throw new Error("Pass a non-empty set, or options.convertEmptyValues=true.")}let r=n.values().next().value;if(typeof r=="number")return{NS:Array.from(n).map(cee).map(i=>i.N)};if(typeof r=="bigint")return{NS:Array.from(n).map(dee).map(i=>i.N)};if(typeof r=="string")return{SS:Array.from(n).map(aee).map(i=>i.S)};if(lee(r))return{BS:Array.from(n).map(oee).map(i=>i.B)};throw new Error("Only Number Set (NS), Binary Set (BS) or String Set (SS) are allowed.")},Fet=(e,t)=>({M:(n=>{let r={};for(let[i,s]of n)typeof s!="function"&&(s!==void 0||!(t!=null&&t.removeUndefinedValues))&&(r[i]=(0,Ea.convertToAttr)(s,t));return r})(e)}),iee=(e,t)=>({M:(n=>{let r={};for(let i in n){let s=n[i];typeof s!="function"&&(s!==void 0||!(t!=null&&t.removeUndefinedValues))&&(r[i]=(0,Ea.convertToAttr)(s,t))}return r})(e)}),NE=()=>({NULL:!0}),oee=e=>({B:e}),aee=e=>({S:e.toString()}),dee=e=>({N:e.toString()}),see=e=>{throw new Error(`${e} ${typeof BigInt=="function"?"Use BigInt.":"Pass string value instead."} `)},cee=e=>{if([Number.NaN,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY].map(t=>t.toString()).includes(e.toString()))throw new Error(`Special numeric value ${e.toString()} is not allowed`);return e>Number.MAX_SAFE_INTEGER?see(`Number ${e.toString()} is greater than Number.MAX_SAFE_INTEGER.`):e<Number.MIN_SAFE_INTEGER&&see(`Number ${e.toString()} is lesser than Number.MIN_SAFE_INTEGER.`),{N:e.toString()}},lee=e=>{let t=["ArrayBuffer","Blob","Buffer","DataView","File","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];return e!=null&&e.constructor?t.includes(e.constructor.name):!1}});var wD=m(Wd=>{"use strict";Object.defineProperty(Wd,"__esModule",{value:!0});Wd.convertToNative=void 0;var jet=(e,t)=>{for(let[n,r]of Object.entries(e))if(r!==void 0)switch(n){case"NULL":return null;case"BOOL":return Boolean(r);case"N":return uee(r,t);case"B":return fee(r);case"S":return mee(r);case"L":return Uet(r,t);case"M":return Get(r,t);case"NS":return new Set(r.map(i=>uee(i,t)));case"BS":return new Set(r.map(fee));case"SS":return new Set(r.map(mee));default:throw new Error(`Unsupported type passed: ${n}`)}throw new Error(`No value defined: ${JSON.stringify(e)}`)};Wd.convertToNative=jet;var uee=(e,t)=>{if(t!=null&&t.wrapNumbers)return{value:e};let n=Number(e),r=[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY];if((n>Number.MAX_SAFE_INTEGER||n<Number.MIN_SAFE_INTEGER)&&!r.includes(n))if(typeof BigInt=="function")try{return BigInt(e)}catch{throw new Error(`${e} can't be converted to BigInt. Set options.wrapNumbers to get string value.`)}else throw new Error(`${e} is outside SAFE_INTEGER bounds. Set options.wrapNumbers to get string value.`);return n},mee=e=>e,fee=e=>e,Uet=(e,t)=>e.map(n=>(0,Wd.convertToNative)(n,t)),Get=(e,t)=>Object.entries(e).reduce((n,[r,i])=>S(o({},n),{[r]:(0,Wd.convertToNative)(i,t)}),{})});var pee=m(PE=>{"use strict";Object.defineProperty(PE,"__esModule",{value:!0});PE.marshall=void 0;var Vet=hD();function $et(e,t){let n=(0,Vet.convertToAttr)(e,t),[r,i]=Object.entries(n)[0];switch(r){case"M":case"L":return i;case"SS":case"NS":case"BS":case"S":case"N":case"B":case"NULL":case"BOOL":case"$unknown":default:return n}}PE.marshall=$et});var hee=m(gee=>{"use strict";Object.defineProperty(gee,"__esModule",{value:!0})});var wee=m(kE=>{"use strict";Object.defineProperty(kE,"__esModule",{value:!0});kE.unmarshall=void 0;var Het=wD(),Jet=(e,t)=>(0,Het.convertToNative)({M:e},t);kE.unmarshall=Jet});var yee=m(Aa=>{"use strict";Object.defineProperty(Aa,"__esModule",{value:!0});var Ym=oe();Ym.__exportStar(hD(),Aa);Ym.__exportStar(wD(),Aa);Ym.__exportStar(pee(),Aa);Ym.__exportStar(hee(),Aa);Ym.__exportStar(wee(),Aa)});var Kn=m(Qd=>{"use strict";Object.defineProperty(Qd,"__esModule",{value:!0});Qd.unmarshallOutput=Qd.marshallInput=void 0;var _ee=yee(),See=(e,t,n)=>{if(e!==void 0)return!n||Array.isArray(n)&&n.length===0?t(e):Array.isArray(n)?yD(e,t,n):Xet(e,t,n.children)},vee=(e,t,n)=>Array.isArray(e)?e.map(r=>See(r,t,n)):See(e,t,n),yD=(e,t,n)=>n.reduce((r,{key:i,children:s})=>S(o({},r),{[i]:vee(r[i],t,s)}),e),Xet=(e,t,n)=>Object.entries(e).reduce((r,[i,s])=>S(o({},r),{[i]:vee(s,t,n)}),{}),Ket=(e,t,n)=>yD(e,i=>(0,_ee.marshall)(i,n),t);Qd.marshallInput=Ket;var Wet=(e,t,n)=>yD(e,i=>(0,_ee.unmarshall)(i,n),t);Qd.unmarshallOutput=Wet});var _D=m(zE=>{"use strict";Object.defineProperty(zE,"__esModule",{value:!0});zE.BatchExecuteStatementCommand=void 0;var Qet=Bn(),Yet=R(),Cee=Kn(),SD=class extends Yet.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"Statements",children:[{key:"Parameters"}]}],this.outputKeyNodes=[{key:"Responses",children:[{key:"Item"}]}]}resolveMiddleware(t,n,r){let{marshallOptions:i,unmarshallOptions:s}=n.translateConfig||{},d=new Qet.BatchExecuteStatementCommand((0,Cee.marshallInput)(this.input,this.inputKeyNodes,i)),a=d.resolveMiddleware(t,n,r);return async()=>{let c=await a(d);return S(o({},c),{output:(0,Cee.unmarshallOutput)(c.output,this.outputKeyNodes,s)})}}};zE.BatchExecuteStatementCommand=SD});var CD=m(qE=>{"use strict";Object.defineProperty(qE,"__esModule",{value:!0});qE.BatchGetCommand=void 0;var Zet=Bn(),ett=R(),Eee=Kn(),vD=class extends ett.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"RequestItems",children:{children:[{key:"Keys"}]}}],this.outputKeyNodes=[{key:"Responses",children:{}},{key:"UnprocessedKeys",children:{children:[{key:"Keys"}]}}]}resolveMiddleware(t,n,r){let{marshallOptions:i,unmarshallOptions:s}=n.translateConfig||{},d=new Zet.BatchGetItemCommand((0,Eee.marshallInput)(this.input,this.inputKeyNodes,i)),a=d.resolveMiddleware(t,n,r);return async()=>{let c=await a(d);return S(o({},c),{output:(0,Eee.unmarshallOutput)(c.output,this.outputKeyNodes,s)})}}};qE.BatchGetCommand=vD});var AD=m(LE=>{"use strict";Object.defineProperty(LE,"__esModule",{value:!0});LE.BatchWriteCommand=void 0;var ttt=Bn(),ntt=R(),Aee=Kn(),ED=class extends ntt.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"RequestItems",children:{children:[{key:"PutRequest",children:[{key:"Item"}]},{key:"DeleteRequest",children:[{key:"Key"}]}]}}],this.outputKeyNodes=[{key:"UnprocessedItems",children:{children:[{key:"PutRequest",children:[{key:"Item"}]},{key:"DeleteRequest",children:[{key:"Key"}]}]}},{key:"ItemCollectionMetrics",children:{children:[{key:"ItemCollectionKey"}]}}]}resolveMiddleware(t,n,r){let{marshallOptions:i,unmarshallOptions:s}=n.translateConfig||{},d=new ttt.BatchWriteItemCommand((0,Aee.marshallInput)(this.input,this.inputKeyNodes,i)),a=d.resolveMiddleware(t,n,r);return async()=>{let c=await a(d);return S(o({},c),{output:(0,Aee.unmarshallOutput)(c.output,this.outputKeyNodes,s)})}}};LE.BatchWriteCommand=ED});var bD=m(DE=>{"use strict";Object.defineProperty(DE,"__esModule",{value:!0});DE.DeleteCommand=void 0;var rtt=Bn(),itt=R(),xee=Kn(),xD=class extends itt.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"Key"},{key:"Expected",children:{children:[{key:"Value"},{key:"AttributeValueList"}]}},{key:"ExpressionAttributeValues"}],this.outputKeyNodes=[{key:"Attributes"},{key:"ItemCollectionMetrics",children:[{key:"ItemCollectionKey"}]}]}resolveMiddleware(t,n,r){let{marshallOptions:i,unmarshallOptions:s}=n.translateConfig||{},d=new rtt.DeleteItemCommand((0,xee.marshallInput)(this.input,this.inputKeyNodes,i)),a=d.resolveMiddleware(t,n,r);return async()=>{let c=await a(d);return S(o({},c),{output:(0,xee.unmarshallOutput)(c.output,this.outputKeyNodes,s)})}}};DE.DeleteCommand=xD});var TD=m(ME=>{"use strict";Object.defineProperty(ME,"__esModule",{value:!0});ME.ExecuteStatementCommand=void 0;var stt=Bn(),ott=R(),bee=Kn(),RD=class extends ott.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"Parameters"}],this.outputKeyNodes=[{key:"Items"},{key:"LastEvaluatedKey"}]}resolveMiddleware(t,n,r){let{marshallOptions:i,unmarshallOptions:s}=n.translateConfig||{},d=new stt.ExecuteStatementCommand((0,bee.marshallInput)(this.input,this.inputKeyNodes,i)),a=d.resolveMiddleware(t,n,r);return async()=>{let c=await a(d);return S(o({},c),{output:(0,bee.unmarshallOutput)(c.output,this.outputKeyNodes,s)})}}};ME.ExecuteStatementCommand=RD});var ND=m(BE=>{"use strict";Object.defineProperty(BE,"__esModule",{value:!0});BE.ExecuteTransactionCommand=void 0;var att=Bn(),dtt=R(),Ree=Kn(),ID=class extends dtt.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"TransactStatements",children:[{key:"Parameters"}]}],this.outputKeyNodes=[{key:"Responses",children:[{key:"Item"}]}]}resolveMiddleware(t,n,r){let{marshallOptions:i,unmarshallOptions:s}=n.translateConfig||{},d=new att.ExecuteTransactionCommand((0,Ree.marshallInput)(this.input,this.inputKeyNodes,i)),a=d.resolveMiddleware(t,n,r);return async()=>{let c=await a(d);return S(o({},c),{output:(0,Ree.unmarshallOutput)(c.output,this.outputKeyNodes,s)})}}};BE.ExecuteTransactionCommand=ID});var kD=m(OE=>{"use strict";Object.defineProperty(OE,"__esModule",{value:!0});OE.GetCommand=void 0;var ctt=Bn(),ltt=R(),Tee=Kn(),PD=class extends ltt.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"Key"}],this.outputKeyNodes=[{key:"Item"}]}resolveMiddleware(t,n,r){let{marshallOptions:i,unmarshallOptions:s}=n.translateConfig||{},d=new ctt.GetItemCommand((0,Tee.marshallInput)(this.input,this.inputKeyNodes,i)),a=d.resolveMiddleware(t,n,r);return async()=>{let c=await a(d);return S(o({},c),{output:(0,Tee.unmarshallOutput)(c.output,this.outputKeyNodes,s)})}}};OE.GetCommand=PD});var qD=m(FE=>{"use strict";Object.defineProperty(FE,"__esModule",{value:!0});FE.PutCommand=void 0;var utt=Bn(),mtt=R(),Iee=Kn(),zD=class extends mtt.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"Item"},{key:"Expected",children:{children:[{key:"Value"},{key:"AttributeValueList"}]}},{key:"ExpressionAttributeValues"}],this.outputKeyNodes=[{key:"Attributes"},{key:"ItemCollectionMetrics",children:[{key:"ItemCollectionKey"}]}]}resolveMiddleware(t,n,r){let{marshallOptions:i,unmarshallOptions:s}=n.translateConfig||{},d=new utt.PutItemCommand((0,Iee.marshallInput)(this.input,this.inputKeyNodes,i)),a=d.resolveMiddleware(t,n,r);return async()=>{let c=await a(d);return S(o({},c),{output:(0,Iee.unmarshallOutput)(c.output,this.outputKeyNodes,s)})}}};FE.PutCommand=zD});var UE=m(jE=>{"use strict";Object.defineProperty(jE,"__esModule",{value:!0});jE.QueryCommand=void 0;var ftt=Bn(),ptt=R(),Nee=Kn(),LD=class extends ptt.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"KeyConditions",children:{children:[{key:"AttributeValueList"}]}},{key:"QueryFilter",children:{children:[{key:"AttributeValueList"}]}},{key:"ExclusiveStartKey"},{key:"ExpressionAttributeValues"}],this.outputKeyNodes=[{key:"Items"},{key:"LastEvaluatedKey"}]}resolveMiddleware(t,n,r){let{marshallOptions:i,unmarshallOptions:s}=n.translateConfig||{},d=new ftt.QueryCommand((0,Nee.marshallInput)(this.input,this.inputKeyNodes,i)),a=d.resolveMiddleware(t,n,r);return async()=>{let c=await a(d);return S(o({},c),{output:(0,Nee.unmarshallOutput)(c.output,this.outputKeyNodes,s)})}}};jE.QueryCommand=LD});var VE=m(GE=>{"use strict";Object.defineProperty(GE,"__esModule",{value:!0});GE.ScanCommand=void 0;var gtt=Bn(),htt=R(),Pee=Kn(),DD=class extends htt.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"ScanFilter",children:{children:[{key:"AttributeValueList"}]}},{key:"ExclusiveStartKey"},{key:"ExpressionAttributeValues"}],this.outputKeyNodes=[{key:"Items"},{key:"LastEvaluatedKey"}]}resolveMiddleware(t,n,r){let{marshallOptions:i,unmarshallOptions:s}=n.translateConfig||{},d=new gtt.ScanCommand((0,Pee.marshallInput)(this.input,this.inputKeyNodes,i)),a=d.resolveMiddleware(t,n,r);return async()=>{let c=await a(d);return S(o({},c),{output:(0,Pee.unmarshallOutput)(c.output,this.outputKeyNodes,s)})}}};GE.ScanCommand=DD});var BD=m($E=>{"use strict";Object.defineProperty($E,"__esModule",{value:!0});$E.TransactGetCommand=void 0;var wtt=Bn(),ytt=R(),kee=Kn(),MD=class extends ytt.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"TransactItems",children:[{key:"Get",children:[{key:"Key"}]}]}],this.outputKeyNodes=[{key:"Responses",children:[{key:"Item"}]}]}resolveMiddleware(t,n,r){let{marshallOptions:i,unmarshallOptions:s}=n.translateConfig||{},d=new wtt.TransactGetItemsCommand((0,kee.marshallInput)(this.input,this.inputKeyNodes,i)),a=d.resolveMiddleware(t,n,r);return async()=>{let c=await a(d);return S(o({},c),{output:(0,kee.unmarshallOutput)(c.output,this.outputKeyNodes,s)})}}};$E.TransactGetCommand=MD});var FD=m(HE=>{"use strict";Object.defineProperty(HE,"__esModule",{value:!0});HE.TransactWriteCommand=void 0;var Stt=Bn(),_tt=R(),zee=Kn(),OD=class extends _tt.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"TransactItems",children:[{key:"ConditionCheck",children:[{key:"Key"},{key:"ExpressionAttributeValues"}]},{key:"Put",children:[{key:"Item"},{key:"ExpressionAttributeValues"}]},{key:"Delete",children:[{key:"Key"},{key:"ExpressionAttributeValues"}]},{key:"Update",children:[{key:"Key"},{key:"ExpressionAttributeValues"}]}]}],this.outputKeyNodes=[{key:"ItemCollectionMetrics",children:{children:[{key:"ItemCollectionKey"}]}}]}resolveMiddleware(t,n,r){let{marshallOptions:i,unmarshallOptions:s}=n.translateConfig||{},d=new Stt.TransactWriteItemsCommand((0,zee.marshallInput)(this.input,this.inputKeyNodes,i)),a=d.resolveMiddleware(t,n,r);return async()=>{let c=await a(d);return S(o({},c),{output:(0,zee.unmarshallOutput)(c.output,this.outputKeyNodes,s)})}}};HE.TransactWriteCommand=OD});var UD=m(JE=>{"use strict";Object.defineProperty(JE,"__esModule",{value:!0});JE.UpdateCommand=void 0;var vtt=Bn(),Ctt=R(),qee=Kn(),jD=class extends Ctt.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"Key"},{key:"AttributeUpdates",children:{children:[{key:"Value"}]}},{key:"Expected",children:{children:[{key:"Value"},{key:"AttributeValueList"}]}},{key:"ExpressionAttributeValues"}],this.outputKeyNodes=[{key:"Attributes"},{key:"ItemCollectionMetrics",children:[{key:"ItemCollectionKey"}]}]}resolveMiddleware(t,n,r){let{marshallOptions:i,unmarshallOptions:s}=n.translateConfig||{},d=new vtt.UpdateItemCommand((0,qee.marshallInput)(this.input,this.inputKeyNodes,i)),a=d.resolveMiddleware(t,n,r);return async()=>{let c=await a(d);return S(o({},c),{output:(0,qee.unmarshallOutput)(c.output,this.outputKeyNodes,s)})}}};JE.UpdateCommand=jD});var ef=m(XE=>{"use strict";Object.defineProperty(XE,"__esModule",{value:!0});XE.DynamoDBDocumentClient=void 0;var Ett=R(),Zm=class extends Ett.Client{constructor(t,n){super(t.config),this.config=t.config,this.config.translateConfig=n,this.middlewareStack=t.middlewareStack}static from(t,n){return new Zm(t,n)}destroy(){}};XE.DynamoDBDocumentClient=Zm});var WE=m(KE=>{"use strict";Object.defineProperty(KE,"__esModule",{value:!0});KE.DynamoDBDocument=void 0;var Att=_D(),xtt=CD(),btt=AD(),Rtt=bD(),Ttt=TD(),Itt=ND(),Ntt=kD(),Ptt=qD(),ktt=UE(),ztt=VE(),qtt=BD(),Ltt=FD(),Dtt=UD(),Mtt=ef(),tf=class extends Mtt.DynamoDBDocumentClient{static from(t,n){return new tf(t,n)}batchExecuteStatement(t,n,r){let i=new Att.BatchExecuteStatementCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}batchGet(t,n,r){let i=new xtt.BatchGetCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}batchWrite(t,n,r){let i=new btt.BatchWriteCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}delete(t,n,r){let i=new Rtt.DeleteCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}executeStatement(t,n,r){let i=new Ttt.ExecuteStatementCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}executeTransaction(t,n,r){let i=new Itt.ExecuteTransactionCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}get(t,n,r){let i=new Ntt.GetCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}put(t,n,r){let i=new Ptt.PutCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}query(t,n,r){let i=new ktt.QueryCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}scan(t,n,r){let i=new ztt.ScanCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}transactGet(t,n,r){let i=new qtt.TransactGetCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}transactWrite(t,n,r){let i=new Ltt.TransactWriteCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}update(t,n,r){let i=new Dtt.UpdateCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}};KE.DynamoDBDocument=tf});var Lee=m(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});var mr=oe();mr.__exportStar(_D(),On);mr.__exportStar(CD(),On);mr.__exportStar(AD(),On);mr.__exportStar(bD(),On);mr.__exportStar(TD(),On);mr.__exportStar(ND(),On);mr.__exportStar(kD(),On);mr.__exportStar(qD(),On);mr.__exportStar(UE(),On);mr.__exportStar(VE(),On);mr.__exportStar(BD(),On);mr.__exportStar(FD(),On);mr.__exportStar(UD(),On)});var Mee=m(Dee=>{"use strict";Object.defineProperty(Dee,"__esModule",{value:!0})});var Bee=m(QE=>{"use strict";Object.defineProperty(QE,"__esModule",{value:!0});QE.paginateQuery=void 0;var Btt=UE(),Ott=WE(),Ftt=ef(),jtt=async(e,t,...n)=>await e.send(new Btt.QueryCommand(t),...n),Utt=async(e,t,...n)=>await e.query(t,...n);async function*Gtt(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.ExclusiveStartKey=r,t.Limit=e.pageSize,e.client instanceof Ott.DynamoDBDocument)s=await Utt(e.client,t,...n);else if(e.client instanceof Ftt.DynamoDBDocumentClient)s=await jtt(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDBDocument | DynamoDBDocumentClient");yield s,r=s.LastEvaluatedKey,i=!!r}return void 0}QE.paginateQuery=Gtt});var Oee=m(YE=>{"use strict";Object.defineProperty(YE,"__esModule",{value:!0});YE.paginateScan=void 0;var Vtt=VE(),$tt=WE(),Htt=ef(),Jtt=async(e,t,...n)=>await e.send(new Vtt.ScanCommand(t),...n),Xtt=async(e,t,...n)=>await e.scan(t,...n);async function*Ktt(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.ExclusiveStartKey=r,t.Limit=e.pageSize,e.client instanceof $tt.DynamoDBDocument)s=await Xtt(e.client,t,...n);else if(e.client instanceof Htt.DynamoDBDocumentClient)s=await Jtt(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDBDocument | DynamoDBDocumentClient");yield s,r=s.LastEvaluatedKey,i=!!r}return void 0}YE.paginateScan=Ktt});var Fee=m(nf=>{"use strict";Object.defineProperty(nf,"__esModule",{value:!0});var GD=oe();GD.__exportStar(Mee(),nf);GD.__exportStar(Bee(),nf);GD.__exportStar(Oee(),nf)});var jee=m(Yd=>{"use strict";Object.defineProperty(Yd,"__esModule",{value:!0});var ZE=oe();ZE.__exportStar(WE(),Yd);ZE.__exportStar(ef(),Yd);ZE.__exportStar(Lee(),Yd);ZE.__exportStar(Fee(),Yd)});var Uee=m(e0=>{"use strict";Object.defineProperty(e0,"__esModule",{value:!0});e0.DBManager=void 0;var Wtt=jee(),VD=class{constructor(t){let{dynamoClient:n,tableName:r}=t;this._tableName=r,this._client=n,this._ddbDocClient=Wtt.DynamoDBDocument.from(this._client)}get client(){return this._client}get ddbDocClient(){return this._ddbDocClient}get tableName(){return this._tableName}set tableName(t){this._tableName=t}};e0.DBManager=VD});var Gee=m(rf=>{"use strict";Object.defineProperty(rf,"__esModule",{value:!0});rf.TransformationType=void 0;var Qtt;(function(e){e[e.PLAIN_TO_CLASS=0]="PLAIN_TO_CLASS",e[e.CLASS_TO_PLAIN=1]="CLASS_TO_PLAIN",e[e.CLASS_TO_CLASS=2]="CLASS_TO_CLASS"})(Qtt=rf.TransformationType||(rf.TransformationType={}))});var sf=m(xa=>{"use strict";var Ytt=xa&&xa.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),Ztt=xa&&xa.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Ytt(t,e,n)};Object.defineProperty(xa,"__esModule",{value:!0});Ztt(Gee(),xa)});var Vee=m(t0=>{"use strict";Object.defineProperty(t0,"__esModule",{value:!0});t0.MetadataStorage=void 0;var ds=sf(),$D=class{constructor(){this._typeMetadatas=new Map,this._transformMetadatas=new Map,this._exposeMetadatas=new Map,this._excludeMetadatas=new Map,this._ancestorsMap=new Map}addTypeMetadata(t){this._typeMetadatas.has(t.target)||this._typeMetadatas.set(t.target,new Map),this._typeMetadatas.get(t.target).set(t.propertyName,t)}addTransformMetadata(t){this._transformMetadatas.has(t.target)||this._transformMetadatas.set(t.target,new Map),this._transformMetadatas.get(t.target).has(t.propertyName)||this._transformMetadatas.get(t.target).set(t.propertyName,[]),this._transformMetadatas.get(t.target).get(t.propertyName).push(t)}addExposeMetadata(t){this._exposeMetadatas.has(t.target)||this._exposeMetadatas.set(t.target,new Map),this._exposeMetadatas.get(t.target).set(t.propertyName,t)}addExcludeMetadata(t){this._excludeMetadatas.has(t.target)||this._excludeMetadatas.set(t.target,new Map),this._excludeMetadatas.get(t.target).set(t.propertyName,t)}findTransformMetadatas(t,n,r){return this.findMetadatas(this._transformMetadatas,t,n).filter(i=>!i.options||i.options.toClassOnly===!0&&i.options.toPlainOnly===!0?!0:i.options.toClassOnly===!0?r===ds.TransformationType.CLASS_TO_CLASS||r===ds.TransformationType.PLAIN_TO_CLASS:i.options.toPlainOnly===!0?r===ds.TransformationType.CLASS_TO_PLAIN:!0)}findExcludeMetadata(t,n){return this.findMetadata(this._excludeMetadatas,t,n)}findExposeMetadata(t,n){return this.findMetadata(this._exposeMetadatas,t,n)}findExposeMetadataByCustomName(t,n){return this.getExposedMetadatas(t).find(r=>r.options&&r.options.name===n)}findTypeMetadata(t,n){return this.findMetadata(this._typeMetadatas,t,n)}getStrategy(t){let n=this._excludeMetadatas.get(t),r=n&&n.get(void 0),i=this._exposeMetadatas.get(t),s=i&&i.get(void 0);return r&&s||!r&&!s?"none":r?"excludeAll":"exposeAll"}getExposedMetadatas(t){return this.getMetadata(this._exposeMetadatas,t)}getExcludedMetadatas(t){return this.getMetadata(this._excludeMetadatas,t)}getExposedProperties(t,n){return this.getExposedMetadatas(t).filter(r=>!r.options||r.options.toClassOnly===!0&&r.options.toPlainOnly===!0?!0:r.options.toClassOnly===!0?n===ds.TransformationType.CLASS_TO_CLASS||n===ds.TransformationType.PLAIN_TO_CLASS:r.options.toPlainOnly===!0?n===ds.TransformationType.CLASS_TO_PLAIN:!0).map(r=>r.propertyName)}getExcludedProperties(t,n){return this.getExcludedMetadatas(t).filter(r=>!r.options||r.options.toClassOnly===!0&&r.options.toPlainOnly===!0?!0:r.options.toClassOnly===!0?n===ds.TransformationType.CLASS_TO_CLASS||n===ds.TransformationType.PLAIN_TO_CLASS:r.options.toPlainOnly===!0?n===ds.TransformationType.CLASS_TO_PLAIN:!0).map(r=>r.propertyName)}clear(){this._typeMetadatas.clear(),this._exposeMetadatas.clear(),this._excludeMetadatas.clear(),this._ancestorsMap.clear()}getMetadata(t,n){let r=t.get(n),i;r&&(i=Array.from(r.values()).filter(d=>d.propertyName!==void 0));let s=[];for(let d of this.getAncestors(n)){let a=t.get(d);if(a){let c=Array.from(a.values()).filter(l=>l.propertyName!==void 0);s.push(...c)}}return s.concat(i||[])}findMetadata(t,n,r){let i=t.get(n);if(i){let s=i.get(r);if(s)return s}for(let s of this.getAncestors(n)){let d=t.get(s);if(d){let a=d.get(r);if(a)return a}}}findMetadatas(t,n,r){let i=t.get(n),s;i&&(s=i.get(r));let d=[];for(let a of this.getAncestors(n)){let c=t.get(a);c&&c.has(r)&&d.push(...c.get(r))}return d.slice().reverse().concat((s||[]).slice().reverse())}getAncestors(t){if(!t)return[];if(!this._ancestorsMap.has(t)){let n=[];for(let r=Object.getPrototypeOf(t.prototype.constructor);typeof r.prototype<"u";r=Object.getPrototypeOf(r.prototype.constructor))n.push(r);this._ancestorsMap.set(t,n)}return this._ancestorsMap.get(t)}};t0.MetadataStorage=$D});var Zd=m(n0=>{"use strict";Object.defineProperty(n0,"__esModule",{value:!0});n0.defaultMetadataStorage=void 0;var ent=Vee();n0.defaultMetadataStorage=new ent.MetadataStorage});var $ee=m(r0=>{"use strict";Object.defineProperty(r0,"__esModule",{value:!0});r0.getGlobal=void 0;function tnt(){if(typeof globalThis<"u")return globalThis;if(typeof global<"u")return global;if(typeof window<"u")return window;if(typeof self<"u")return self}r0.getGlobal=tnt});var Hee=m(i0=>{"use strict";Object.defineProperty(i0,"__esModule",{value:!0});i0.isPromise=void 0;function nnt(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}i0.isPromise=nnt});var Xee=m(co=>{"use strict";var rnt=co&&co.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),Jee=co&&co.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&rnt(t,e,n)};Object.defineProperty(co,"__esModule",{value:!0});Jee($ee(),co);Jee(Hee(),co)});var Wee=m(s0=>{"use strict";Object.defineProperty(s0,"__esModule",{value:!0});s0.TransformOperationExecutor=void 0;var Wn=Zd(),Zt=sf(),Kee=Xee();function int(e){let t=new e;return!(t instanceof Set)&&!("push"in t)?[]:t}var HD=class{constructor(t,n){this.transformationType=t,this.options=n,this.recursionStack=new Set}transform(t,n,r,i,s,d=0){if(Array.isArray(n)||n instanceof Set){let a=i&&this.transformationType===Zt.TransformationType.PLAIN_TO_CLASS?int(i):[];return n.forEach((c,l)=>{let u=t?t[l]:void 0;if(!this.options.enableCircularCheck||!this.isCircular(c)){let w;if(typeof r!="function"&&r&&r.options&&r.options.discriminator&&r.options.discriminator.property&&r.options.discriminator.subTypes){if(this.transformationType===Zt.TransformationType.PLAIN_TO_CLASS){w=r.options.discriminator.subTypes.find(N=>N.name===c[r.options.discriminator.property]);let T={newObject:a,object:c,property:void 0},I=r.typeFunction(T);w===void 0?w=I:w=w.value,r.options.keepDiscriminatorProperty||delete c[r.options.discriminator.property]}this.transformationType===Zt.TransformationType.CLASS_TO_CLASS&&(w=c.constructor),this.transformationType===Zt.TransformationType.CLASS_TO_PLAIN&&(c[r.options.discriminator.property]=r.options.discriminator.subTypes.find(T=>T.value===c.constructor).name)}else w=r;let E=this.transform(u,c,w,void 0,c instanceof Map,d+1);a instanceof Set?a.add(E):a.push(E)}else this.transformationType===Zt.TransformationType.CLASS_TO_CLASS&&(a instanceof Set?a.add(c):a.push(c))}),a}else{if(r===String&&!s)return n==null?n:String(n);if(r===Number&&!s)return n==null?n:Number(n);if(r===Boolean&&!s)return n==null?n:Boolean(n);if((r===Date||n instanceof Date)&&!s)return n instanceof Date?new Date(n.valueOf()):n==null?n:new Date(n);if(!!(0,Kee.getGlobal)().Buffer&&(r===Buffer||n instanceof Buffer)&&!s)return n==null?n:Buffer.from(n);if((0,Kee.isPromise)(n)&&!s)return new Promise((a,c)=>{n.then(l=>a(this.transform(void 0,l,r,void 0,void 0,d+1)),c)});if(!s&&n!==null&&typeof n=="object"&&typeof n.then=="function")return n;if(typeof n=="object"&&n!==null){!r&&n.constructor!==Object&&(!Array.isArray(n)&&n.constructor===Array||(r=n.constructor)),!r&&t&&(r=t.constructor),this.options.enableCircularCheck&&this.recursionStack.add(n);let a=this.getKeys(r,n,s),c=t||{};!t&&(this.transformationType===Zt.TransformationType.PLAIN_TO_CLASS||this.transformationType===Zt.TransformationType.CLASS_TO_CLASS)&&(s?c=new Map:r?c=new r:c={});for(let l of a){if(l==="__proto__"||l==="constructor")continue;let u=l,w=l,E=l;if(!this.options.ignoreDecorators&&r){if(this.transformationType===Zt.TransformationType.PLAIN_TO_CLASS){let G=Wn.defaultMetadataStorage.findExposeMetadataByCustomName(r,l);G&&(E=G.propertyName,w=G.propertyName)}else if(this.transformationType===Zt.TransformationType.CLASS_TO_PLAIN||this.transformationType===Zt.TransformationType.CLASS_TO_CLASS){let G=Wn.defaultMetadataStorage.findExposeMetadata(r,l);G&&G.options&&G.options.name&&(w=G.options.name)}}let T;this.transformationType===Zt.TransformationType.PLAIN_TO_CLASS?T=n[u]:n instanceof Map?T=n.get(u):n[u]instanceof Function?T=n[u]():T=n[u];let I,N=T instanceof Map;if(r&&s)I=r;else if(r){let G=Wn.defaultMetadataStorage.findTypeMetadata(r,E);if(G){let ue={newObject:c,object:n,property:E},it=G.typeFunction?G.typeFunction(ue):G.reflectedType;G.options&&G.options.discriminator&&G.options.discriminator.property&&G.options.discriminator.subTypes?n[u]instanceof Array?I=G:(this.transformationType===Zt.TransformationType.PLAIN_TO_CLASS&&(I=G.options.discriminator.subTypes.find(ln=>{if(T&&T instanceof Object&&G.options.discriminator.property in T)return ln.name===T[G.options.discriminator.property]}),I===void 0?I=it:I=I.value,G.options.keepDiscriminatorProperty||T&&T instanceof Object&&G.options.discriminator.property in T&&delete T[G.options.discriminator.property]),this.transformationType===Zt.TransformationType.CLASS_TO_CLASS&&(I=T.constructor),this.transformationType===Zt.TransformationType.CLASS_TO_PLAIN&&T&&(T[G.options.discriminator.property]=G.options.discriminator.subTypes.find(ln=>ln.value===T.constructor).name)):I=it,N=N||G.reflectedType===Map}else if(this.options.targetMaps)this.options.targetMaps.filter(ue=>ue.target===r&&!!ue.properties[E]).forEach(ue=>I=ue.properties[E]);else if(this.options.enableImplicitConversion&&this.transformationType===Zt.TransformationType.PLAIN_TO_CLASS){let ue=Reflect.getMetadata("design:type",r.prototype,E);ue&&(I=ue)}}let F=Array.isArray(n[u])?this.getReflectedType(r,E):void 0,J=t?t[u]:void 0;if(c.constructor.prototype){let G=Object.getOwnPropertyDescriptor(c.constructor.prototype,w);if((this.transformationType===Zt.TransformationType.PLAIN_TO_CLASS||this.transformationType===Zt.TransformationType.CLASS_TO_CLASS)&&(G&&!G.set||c[w]instanceof Function))continue}if(!this.options.enableCircularCheck||!this.isCircular(T)){let G=this.transformationType===Zt.TransformationType.PLAIN_TO_CLASS?w:l,ue;this.transformationType===Zt.TransformationType.CLASS_TO_PLAIN?(ue=n[G],ue=this.applyCustomTransformations(ue,r,G,n,this.transformationType),ue=n[G]===ue?T:ue,ue=this.transform(J,ue,I,F,N,d+1)):T===void 0&&this.options.exposeDefaultValues?ue=c[w]:(ue=this.transform(J,T,I,F,N,d+1),ue=this.applyCustomTransformations(ue,r,G,n,this.transformationType)),(ue!==void 0||this.options.exposeUnsetFields)&&(c instanceof Map?c.set(w,ue):c[w]=ue)}else if(this.transformationType===Zt.TransformationType.CLASS_TO_CLASS){let G=T;G=this.applyCustomTransformations(G,r,l,n,this.transformationType),(G!==void 0||this.options.exposeUnsetFields)&&(c instanceof Map?c.set(w,G):c[w]=G)}}return this.options.enableCircularCheck&&this.recursionStack.delete(n),c}else return n}}applyCustomTransformations(t,n,r,i,s){let d=Wn.defaultMetadataStorage.findTransformMetadatas(n,r,this.transformationType);return this.options.version!==void 0&&(d=d.filter(a=>a.options?this.checkVersion(a.options.since,a.options.until):!0)),this.options.groups&&this.options.groups.length?d=d.filter(a=>a.options?this.checkGroups(a.options.groups):!0):d=d.filter(a=>!a.options||!a.options.groups||!a.options.groups.length),d.forEach(a=>{t=a.transformFn({value:t,key:r,obj:i,type:s,options:this.options})}),t}isCircular(t){return this.recursionStack.has(t)}getReflectedType(t,n){if(!t)return;let r=Wn.defaultMetadataStorage.findTypeMetadata(t,n);return r?r.reflectedType:void 0}getKeys(t,n,r){let i=Wn.defaultMetadataStorage.getStrategy(t);i==="none"&&(i=this.options.strategy||"exposeAll");let s=[];if((i==="exposeAll"||r)&&(n instanceof Map?s=Array.from(n.keys()):s=Object.keys(n)),r)return s;if(this.options.ignoreDecorators&&this.options.excludeExtraneousValues&&t){let d=Wn.defaultMetadataStorage.getExposedProperties(t,this.transformationType),a=Wn.defaultMetadataStorage.getExcludedProperties(t,this.transformationType);s=[...d,...a]}if(!this.options.ignoreDecorators&&t){let d=Wn.defaultMetadataStorage.getExposedProperties(t,this.transformationType);this.transformationType===Zt.TransformationType.PLAIN_TO_CLASS&&(d=d.map(c=>{let l=Wn.defaultMetadataStorage.findExposeMetadata(t,c);return l&&l.options&&l.options.name?l.options.name:c})),this.options.excludeExtraneousValues?s=d:s=s.concat(d);let a=Wn.defaultMetadataStorage.getExcludedProperties(t,this.transformationType);a.length>0&&(s=s.filter(c=>!a.includes(c))),this.options.version!==void 0&&(s=s.filter(c=>{let l=Wn.defaultMetadataStorage.findExposeMetadata(t,c);return!l||!l.options?!0:this.checkVersion(l.options.since,l.options.until)})),this.options.groups&&this.options.groups.length?s=s.filter(c=>{let l=Wn.defaultMetadataStorage.findExposeMetadata(t,c);return!l||!l.options?!0:this.checkGroups(l.options.groups)}):s=s.filter(c=>{let l=Wn.defaultMetadataStorage.findExposeMetadata(t,c);return!l||!l.options||!l.options.groups||!l.options.groups.length})}return this.options.excludePrefixes&&this.options.excludePrefixes.length&&(s=s.filter(d=>this.options.excludePrefixes.every(a=>d.substr(0,a.length)!==a))),s=s.filter((d,a,c)=>c.indexOf(d)===a),s}checkVersion(t,n){let r=!0;return r&&t&&(r=this.options.version>=t),r&&n&&(r=this.options.version<n),r}checkGroups(t){return t?this.options.groups.some(n=>t.includes(n)):!0}};s0.TransformOperationExecutor=HD});var Qee=m(o0=>{"use strict";Object.defineProperty(o0,"__esModule",{value:!0});o0.defaultOptions=void 0;o0.defaultOptions={enableCircularCheck:!1,enableImplicitConversion:!1,excludeExtraneousValues:!1,excludePrefixes:void 0,exposeDefaultValues:!1,exposeUnsetFields:!0,groups:void 0,ignoreDecorators:!1,strategy:void 0,targetMaps:void 0,version:void 0}});var rc=m(a0=>{"use strict";Object.defineProperty(a0,"__esModule",{value:!0});a0.ClassTransformer=void 0;var ec=Wee(),tc=sf(),nc=Qee(),JD=class{instanceToPlain(t,n){return new ec.TransformOperationExecutor(tc.TransformationType.CLASS_TO_PLAIN,o(o({},nc.defaultOptions),n)).transform(void 0,t,void 0,void 0,void 0,void 0)}classToPlainFromExist(t,n,r){return new ec.TransformOperationExecutor(tc.TransformationType.CLASS_TO_PLAIN,o(o({},nc.defaultOptions),r)).transform(n,t,void 0,void 0,void 0,void 0)}plainToInstance(t,n,r){return new ec.TransformOperationExecutor(tc.TransformationType.PLAIN_TO_CLASS,o(o({},nc.defaultOptions),r)).transform(void 0,n,t,void 0,void 0,void 0)}plainToClassFromExist(t,n,r){return new ec.TransformOperationExecutor(tc.TransformationType.PLAIN_TO_CLASS,o(o({},nc.defaultOptions),r)).transform(t,n,void 0,void 0,void 0,void 0)}instanceToInstance(t,n){return new ec.TransformOperationExecutor(tc.TransformationType.CLASS_TO_CLASS,o(o({},nc.defaultOptions),n)).transform(void 0,t,void 0,void 0,void 0,void 0)}classToClassFromExist(t,n,r){return new ec.TransformOperationExecutor(tc.TransformationType.CLASS_TO_CLASS,o(o({},nc.defaultOptions),r)).transform(n,t,void 0,void 0,void 0,void 0)}serialize(t,n){return JSON.stringify(this.instanceToPlain(t,n))}deserialize(t,n,r){let i=JSON.parse(n);return this.plainToInstance(t,i,r)}deserializeArray(t,n,r){let i=JSON.parse(n);return this.plainToInstance(t,i,r)}};a0.ClassTransformer=JD});var Yee=m(d0=>{"use strict";Object.defineProperty(d0,"__esModule",{value:!0});d0.Exclude=void 0;var snt=Zd();function ont(e={}){return function(t,n){snt.defaultMetadataStorage.addExcludeMetadata({target:t instanceof Function?t:t.constructor,propertyName:n,options:e})}}d0.Exclude=ont});var Zee=m(c0=>{"use strict";Object.defineProperty(c0,"__esModule",{value:!0});c0.Expose=void 0;var ant=Zd();function dnt(e={}){return function(t,n){ant.defaultMetadataStorage.addExposeMetadata({target:t instanceof Function?t:t.constructor,propertyName:n,options:e})}}c0.Expose=dnt});var ete=m(l0=>{"use strict";Object.defineProperty(l0,"__esModule",{value:!0});l0.TransformInstanceToInstance=void 0;var cnt=rc();function lnt(e){return function(t,n,r){let i=new cnt.ClassTransformer,s=r.value;r.value=function(...d){let a=s.apply(this,d);return!!a&&(typeof a=="object"||typeof a=="function")&&typeof a.then=="function"?a.then(l=>i.instanceToInstance(l,e)):i.instanceToInstance(a,e)}}}l0.TransformInstanceToInstance=lnt});var tte=m(u0=>{"use strict";Object.defineProperty(u0,"__esModule",{value:!0});u0.TransformInstanceToPlain=void 0;var unt=rc();function mnt(e){return function(t,n,r){let i=new unt.ClassTransformer,s=r.value;r.value=function(...d){let a=s.apply(this,d);return!!a&&(typeof a=="object"||typeof a=="function")&&typeof a.then=="function"?a.then(l=>i.instanceToPlain(l,e)):i.instanceToPlain(a,e)}}}u0.TransformInstanceToPlain=mnt});var nte=m(m0=>{"use strict";Object.defineProperty(m0,"__esModule",{value:!0});m0.TransformPlainToInstance=void 0;var fnt=rc();function pnt(e,t){return function(n,r,i){let s=new fnt.ClassTransformer,d=i.value;i.value=function(...a){let c=d.apply(this,a);return!!c&&(typeof c=="object"||typeof c=="function")&&typeof c.then=="function"?c.then(u=>s.plainToInstance(e,u,t)):s.plainToInstance(e,c,t)}}}m0.TransformPlainToInstance=pnt});var rte=m(f0=>{"use strict";Object.defineProperty(f0,"__esModule",{value:!0});f0.Transform=void 0;var gnt=Zd();function hnt(e,t={}){return function(n,r){gnt.defaultMetadataStorage.addTransformMetadata({target:n.constructor,propertyName:r,transformFn:e,options:t})}}f0.Transform=hnt});var ite=m(p0=>{"use strict";Object.defineProperty(p0,"__esModule",{value:!0});p0.Type=void 0;var wnt=Zd();function ynt(e,t={}){return function(n,r){let i=Reflect.getMetadata("design:type",n,r);wnt.defaultMetadataStorage.addTypeMetadata({target:n.constructor,propertyName:r,reflectedType:i,typeFunction:e,options:t})}}p0.Type=ynt});var ste=m(fr=>{"use strict";var Snt=fr&&fr.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),ba=fr&&fr.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Snt(t,e,n)};Object.defineProperty(fr,"__esModule",{value:!0});ba(Yee(),fr);ba(Zee(),fr);ba(ete(),fr);ba(tte(),fr);ba(nte(),fr);ba(rte(),fr);ba(ite(),fr)});var ate=m(ote=>{"use strict";Object.defineProperty(ote,"__esModule",{value:!0})});var cte=m(dte=>{"use strict";Object.defineProperty(dte,"__esModule",{value:!0})});var ute=m(lte=>{"use strict";Object.defineProperty(lte,"__esModule",{value:!0})});var fte=m(mte=>{"use strict";Object.defineProperty(mte,"__esModule",{value:!0})});var gte=m(pte=>{"use strict";Object.defineProperty(pte,"__esModule",{value:!0})});var wte=m(hte=>{"use strict";Object.defineProperty(hte,"__esModule",{value:!0})});var Ste=m(yte=>{"use strict";Object.defineProperty(yte,"__esModule",{value:!0})});var vte=m(_te=>{"use strict";Object.defineProperty(_te,"__esModule",{value:!0})});var Ete=m(Cte=>{"use strict";Object.defineProperty(Cte,"__esModule",{value:!0})});var xte=m(Ate=>{"use strict";Object.defineProperty(Ate,"__esModule",{value:!0})});var Rte=m(bte=>{"use strict";Object.defineProperty(bte,"__esModule",{value:!0})});var Ite=m(Tte=>{"use strict";Object.defineProperty(Tte,"__esModule",{value:!0})});var Pte=m(Nte=>{"use strict";Object.defineProperty(Nte,"__esModule",{value:!0})});var zte=m(kte=>{"use strict";Object.defineProperty(kte,"__esModule",{value:!0})});var qte=m(an=>{"use strict";var _nt=an&&an.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),Qn=an&&an.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&_nt(t,e,n)};Object.defineProperty(an,"__esModule",{value:!0});Qn(ate(),an);Qn(cte(),an);Qn(ute(),an);Qn(fte(),an);Qn(gte(),an);Qn(wte(),an);Qn(Ste(),an);Qn(vte(),an);Qn(Ete(),an);Qn(xte(),an);Qn(Rte(),an);Qn(Ite(),an);Qn(Pte(),an);Qn(zte(),an)});var g0=m(ht=>{"use strict";var vnt=ht&&ht.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),XD=ht&&ht.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&vnt(t,e,n)};Object.defineProperty(ht,"__esModule",{value:!0});ht.deserializeArray=ht.deserialize=ht.serialize=ht.classToClassFromExist=ht.instanceToInstance=ht.plainToClassFromExist=ht.plainToInstance=ht.plainToClass=ht.classToPlainFromExist=ht.instanceToPlain=ht.classToPlain=ht.ClassTransformer=void 0;var Cnt=rc(),Ent=rc();Object.defineProperty(ht,"ClassTransformer",{enumerable:!0,get:function(){return Ent.ClassTransformer}});XD(ste(),ht);XD(qte(),ht);XD(sf(),ht);var Ur=new Cnt.ClassTransformer;function Ant(e,t){return Ur.instanceToPlain(e,t)}ht.classToPlain=Ant;function xnt(e,t){return Ur.instanceToPlain(e,t)}ht.instanceToPlain=xnt;function bnt(e,t,n){return Ur.classToPlainFromExist(e,t,n)}ht.classToPlainFromExist=bnt;function Rnt(e,t,n){return Ur.plainToInstance(e,t,n)}ht.plainToClass=Rnt;function Tnt(e,t,n){return Ur.plainToInstance(e,t,n)}ht.plainToInstance=Tnt;function Int(e,t,n){return Ur.plainToClassFromExist(e,t,n)}ht.plainToClassFromExist=Int;function Nnt(e,t){return Ur.instanceToInstance(e,t)}ht.instanceToInstance=Nnt;function Pnt(e,t,n){return Ur.classToClassFromExist(e,t,n)}ht.classToClassFromExist=Pnt;function knt(e,t){return Ur.serialize(e,t)}ht.serialize=knt;function znt(e,t,n){return Ur.deserialize(e,t,n)}ht.deserialize=znt;function qnt(e,t,n){return Ur.deserializeArray(e,t,n)}ht.deserializeArray=qnt});var KD=m(h0=>{"use strict";Object.defineProperty(h0,"__esModule",{value:!0});h0.Rules=void 0;var Lnt=g0(),of=class{constructor(t){Object.assign(this,t),t===void 0&&(this._ruleSet={})}static async Load(t){let{dbManager:n,key:r}=t,{Item:i}=await n.ddbDocClient.get({TableName:n.tableName,Key:{PK:`appName#${r.AppName}`.toLowerCase(),SK:"rules"}});return(0,Lnt.plainToInstance)(of,i)}get DbStruct(){return{PK:this.PK,SK:this.SK,AppName:this.AppName,RuleSet:this.RuleSet,Version:this.Version}}async Save(t){let n=t.ddbDocClient.put({TableName:t.tableName,Item:this.DbStruct}),r=t.ddbDocClient.put({TableName:t.tableName,Item:this.DbStruct});await Promise.all([n,r]),await n,await r}get PK(){return`appName#${this.AppName}`.toLowerCase()}get SK(){return"rules"}get AppName(){return this._appName}set AppName(t){this._appName=t.toLowerCase()}get RuleSet(){return this._ruleSet}set RuleSet(t){this._ruleSet=t}get Version(){return this._version}set Version(t){this._version=t}};h0.Rules=of});var WD=m(w0=>{"use strict";Object.defineProperty(w0,"__esModule",{value:!0});w0.Version=void 0;var Lte=g0(),ic;(function(e){e[e.AppName=0]="AppName"})(ic||(ic={}));var sc=class{constructor(t){this._keyBy=ic.AppName,this._status="pending",this._startupType="iframe",this._defaultFile="",this._integrationID="",this._routeIDAppVersion="",this._routeIDAppVersionSplat="",this._url="",this._lambdaARN="",Object.assign(this,t)}static async LoadVersions(t){let{dbManager:n,key:r}=t,{Items:i}=await n.ddbDocClient.query({TableName:n.tableName,KeyConditionExpression:"PK = :pkval and begins_with(SK, :skval)",ExpressionAttributeValues:{":pkval":`appName#${r.AppName}`.toLowerCase(),":skval":"version"}}),s=[];if(i!==void 0)for(let d of i){let a=(0,Lte.plainToInstance)(sc,d);s.push(a)}return s}static async LoadVersion(t){let{dbManager:n,key:r}=t,{Item:i}=await n.ddbDocClient.get({TableName:n.tableName,Key:{PK:`appName#${r.AppName}`.toLowerCase(),SK:`version#${r.SemVer}`.toLowerCase()}});return(0,Lte.plainToInstance)(sc,i)}static async DeleteVersion(t){let{dbManager:n,key:r}=t;await n.ddbDocClient.delete({TableName:n.tableName,Key:{PK:`appName#${r.AppName}`.toLowerCase(),SK:`version#${r.SemVer}`.toLowerCase()}})}get PK(){switch(this._keyBy){case ic.AppName:return`appName#${this.AppName}`.toLowerCase();default:throw new Error("Missing SaveBy handler")}}get DbStruct(){return{PK:this.PK,SK:this.SK,AppName:this.AppName,SemVer:this.SemVer,Type:this.Type,StartupType:this.StartupType,Status:this.Status,DefaultFile:this.DefaultFile,IntegrationID:this.IntegrationID,RouteIDAppVersion:this.RouteIDAppVersion,RouteIDAppVersionSplat:this.RouteIDAppVersionSplat,URL:this.URL,LambdaARN:this.LambdaARN}}async Save(t){this._keyBy=ic.AppName,await t.ddbDocClient.put({TableName:t.tableName,Item:this.DbStruct})}get SK(){switch(this._keyBy){case ic.AppName:return`version#${this.SemVer}`.toLowerCase();default:throw new Error("Missing SaveBy handler")}}get AppName(){return this._appName}set AppName(t){this._appName=t.toLowerCase()}get SemVer(){return this._semVer}set SemVer(t){this._semVer=t}get Type(){return this._type}set Type(t){this._type=t}get StartupType(){return this._startupType}set StartupType(t){this._startupType=t}get Status(){return this._status}set Status(t){this._status=t}get DefaultFile(){return this._defaultFile}set DefaultFile(t){this._defaultFile=t}get IntegrationID(){return this._integrationID}set IntegrationID(t){this._integrationID=t}get RouteIDAppVersion(){return this._routeIDAppVersion}set RouteIDAppVersion(t){this._routeIDAppVersion=t}get RouteIDAppVersionSplat(){return this._routeIDAppVersionSplat}set RouteIDAppVersionSplat(t){this._routeIDAppVersionSplat=t}get URL(){return this._url}set URL(t){this._url=t}get LambdaARN(){return this._lambdaARN}set LambdaARN(t){this._lambdaARN=t}};w0.Version=sc});var Bte=m(y0=>{"use strict";Object.defineProperty(y0,"__esModule",{value:!0});y0.Application=void 0;var Dte=g0(),Mte=KD(),Dnt=WD(),cs;(function(e){e[e.AppName=0]="AppName",e[e.Applications=1]="Applications"})(cs||(cs={}));var oc=class{constructor(t){Object.assign(this,t),this._keyBy=cs.AppName}static async UpdateDefaultRule(t){let{dbManager:n,key:r}=t,i=await Mte.Rules.Load({dbManager:n,key:r}),s=i.RuleSet.default;s.SemVer=r.SemVer,await i.Save(n)}static async GetVersionsAndRules(t){let{key:n,dbManager:r}=t,i=Dnt.Version.LoadVersions({dbManager:r,key:n}),s=Mte.Rules.Load({dbManager:r,key:n});return await Promise.all([i,s]),{Versions:await i,Rules:await s}}static async Load(t){let{key:n,dbManager:r}=t,{Item:i}=await r.ddbDocClient.get({TableName:r.tableName,Key:{PK:`appName#${n.AppName}`.toLowerCase(),SK:"application"}});return(0,Dte.plainToInstance)(oc,i)}static async LoadAllApps(t){let{Items:n}=await t.ddbDocClient.query({TableName:t.tableName,KeyConditionExpression:"PK = :pkval",ExpressionAttributeValues:{":pkval":"applications"}}),r=[];if(n!==void 0)for(let i of n){let s=(0,Dte.plainToInstance)(oc,i);r.push(s)}return r}get DbStruct(){return{PK:this.PK,SK:this.SK,AppName:this.AppName,DisplayName:this.DisplayName}}async Save(t){this._keyBy=cs.AppName;let n=t.ddbDocClient.put({TableName:t.tableName,Item:this.DbStruct});this._keyBy=cs.Applications;let r=t.ddbDocClient.put({TableName:t.tableName,Item:this.DbStruct});await Promise.all([n,r]),await n,await r}get PK(){switch(this._keyBy){case cs.Applications:return"applications";case cs.AppName:return`appName#${this.AppName}`.toLowerCase();default:throw new Error("Missing SaveBy handler")}}get SK(){switch(this._keyBy){case cs.Applications:return`appName#${this.AppName}`.toLowerCase();case cs.AppName:return"application";default:throw new Error("Missing SaveBy handler")}}get AppName(){return this._appName}set AppName(t){this._appName=t.toLowerCase()}get DisplayName(){return this._displayName}set DisplayName(t){this._displayName=t}};y0.Application=oc});var Ra=m(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});ki.Version=ki.Rules=ki.Application=ki.DBManager=void 0;var Mnt=Uee();Object.defineProperty(ki,"DBManager",{enumerable:!0,get:function(){return Mnt.DBManager}});var Bnt=Bte();Object.defineProperty(ki,"Application",{enumerable:!0,get:function(){return Bnt.Application}});var Ont=KD();Object.defineProperty(ki,"Rules",{enumerable:!0,get:function(){return Ont.Rules}});var Fnt=WD();Object.defineProperty(ki,"Version",{enumerable:!0,get:function(){return Fnt.Version}})});var ac=m((af,QD)=>{"use strict";Object.defineProperty(af,"__esModule",{value:!0});af.default=jnt;function S0(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?S0=function(n){return typeof n}:S0=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},S0(e)}function jnt(e){var t=typeof e=="string"||e instanceof String;if(!t){var n=S0(e);throw e===null?n="null":n==="object"&&(n=e.constructor.name),new TypeError("Expected a string but received a ".concat(n))}}QD.exports=af.default;QD.exports.default=af.default});var _0=m((df,YD)=>{"use strict";Object.defineProperty(df,"__esModule",{value:!0});df.default=Unt;function Unt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var n in t)typeof e[n]>"u"&&(e[n]=t[n]);return e}YD.exports=df.default;YD.exports.default=df.default});var Ote=m((cf,ZD)=>{"use strict";Object.defineProperty(cf,"__esModule",{value:!0});cf.default=$nt;var Gnt=Vnt(ac());function Vnt(e){return e&&e.__esModule?e:{default:e}}function v0(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?v0=function(n){return typeof n}:v0=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},v0(e)}function $nt(e,t){(0,Gnt.default)(e);var n,r;v0(t)==="object"?(n=t.min||0,r=t.max):(n=arguments[1],r=arguments[2]);var i=encodeURI(e).split(/%..|./).length-1;return i>=n&&(typeof r>"u"||i<=r)}ZD.exports=cf.default;ZD.exports.default=cf.default});var tM=m((lf,eM)=>{"use strict";Object.defineProperty(lf,"__esModule",{value:!0});lf.default=Knt;var Hnt=Fte(ac()),Jnt=Fte(_0());function Fte(e){return e&&e.__esModule?e:{default:e}}var Xnt={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1};function Knt(e,t){(0,Hnt.default)(e),t=(0,Jnt.default)(t,Xnt),t.allow_trailing_dot&&e[e.length-1]==="."&&(e=e.substring(0,e.length-1)),t.allow_wildcard===!0&&e.indexOf("*.")===0&&(e=e.substring(2));var n=e.split("."),r=n[n.length-1];return t.require_tld&&(n.length<2||!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(r)||/\s/.test(r))||!t.allow_numeric_tld&&/^\d+$/.test(r)?!1:n.every(function(i){return!(i.length>63||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(i)||/[\uff01-\uff5e]/.test(i)||/^-|-$/.test(i)||!t.allow_underscores&&/_/.test(i))})}eM.exports=lf.default;eM.exports.default=lf.default});var C0=m((uf,rM)=>{"use strict";Object.defineProperty(uf,"__esModule",{value:!0});uf.default=nM;var Wnt=Qnt(ac());function Qnt(e){return e&&e.__esModule?e:{default:e}}var jte="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",lo="(".concat(jte,"[.]){3}").concat(jte),Ynt=new RegExp("^".concat(lo,"$")),dn="(?:[0-9a-fA-F]{1,4})",Znt=new RegExp("^("+"(?:".concat(dn,":){7}(?:").concat(dn,"|:)|")+"(?:".concat(dn,":){6}(?:").concat(lo,"|:").concat(dn,"|:)|")+"(?:".concat(dn,":){5}(?::").concat(lo,"|(:").concat(dn,"){1,2}|:)|")+"(?:".concat(dn,":){4}(?:(:").concat(dn,"){0,1}:").concat(lo,"|(:").concat(dn,"){1,3}|:)|")+"(?:".concat(dn,":){3}(?:(:").concat(dn,"){0,2}:").concat(lo,"|(:").concat(dn,"){1,4}|:)|")+"(?:".concat(dn,":){2}(?:(:").concat(dn,"){0,3}:").concat(lo,"|(:").concat(dn,"){1,5}|:)|")+"(?:".concat(dn,":){1}(?:(:").concat(dn,"){0,4}:").concat(lo,"|(:").concat(dn,"){1,6}|:)|")+"(?::((?::".concat(dn,"){0,5}:").concat(lo,"|(?::").concat(dn,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");function nM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if((0,Wnt.default)(e),t=String(t),!t)return nM(e,4)||nM(e,6);if(t==="4"){if(!Ynt.test(e))return!1;var n=e.split(".").sort(function(r,i){return r-i});return n[3]<=255}return t==="6"?!!Znt.test(e):!1}rM.exports=uf.default;rM.exports.default=uf.default});var Gte=m((ff,sM)=>{"use strict";Object.defineProperty(ff,"__esModule",{value:!0});ff.default=mrt;var ert=mf(ac()),trt=mf(_0()),iM=mf(Ote()),nrt=mf(tM()),Ute=mf(C0());function mf(e){return e&&e.__esModule?e:{default:e}}var rrt={allow_display_name:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[]},irt=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,srt=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,ort=/^[a-z\d]+$/,art=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,drt=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,crt=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i,lrt=254;function urt(e){var t=e.replace(/^"(.+)"$/,"$1");if(!t.trim())return!1;var n=/[\.";<>]/.test(t);if(n){if(t===e)return!1;var r=t.split('"').length===t.split('\\"').length;if(!r)return!1}return!0}function mrt(e,t){if((0,ert.default)(e),t=(0,trt.default)(t,rrt),t.require_display_name||t.allow_display_name){var n=e.match(irt);if(n){var r=n[1];if(e=e.replace(r,"").replace(/(^<|>$)/g,""),r.endsWith(" ")&&(r=r.substr(0,r.length-1)),!urt(r))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>lrt)return!1;var i=e.split("@"),s=i.pop(),d=s.toLowerCase();if(t.host_blacklist.includes(d))return!1;var a=i.join("@");if(t.domain_specific_validation&&(d==="gmail.com"||d==="googlemail.com")){a=a.toLowerCase();var c=a.split("+")[0];if(!(0,iM.default)(c.replace(/\./g,""),{min:6,max:30}))return!1;for(var l=c.split("."),u=0;u<l.length;u++)if(!ort.test(l[u]))return!1}if(t.ignore_max_length===!1&&(!(0,iM.default)(a,{max:64})||!(0,iM.default)(s,{max:254})))return!1;if(!(0,nrt.default)(s,{require_tld:t.require_tld})){if(!t.allow_ip_domain)return!1;if(!(0,Ute.default)(s)){if(!s.startsWith("[")||!s.endsWith("]"))return!1;var w=s.substr(1,s.length-2);if(w.length===0||!(0,Ute.default)(w))return!1}}if(a[0]==='"')return a=a.slice(1,a.length-1),t.allow_utf8_local_part?crt.test(a):art.test(a);for(var E=t.allow_utf8_local_part?drt:srt,T=a.split("."),I=0;I<T.length;I++)if(!E.test(T[I]))return!1;return!(t.blacklisted_chars&&a.search(new RegExp("[".concat(t.blacklisted_chars,"]+"),"g"))!==-1)}sM.exports=ff.default;sM.exports.default=ff.default});var Jte=m((pf,oM)=>{"use strict";Object.defineProperty(pf,"__esModule",{value:!0});pf.default=Art;var frt=E0(ac()),prt=E0(tM()),Vte=E0(C0()),grt=E0(_0());function E0(e){return e&&e.__esModule?e:{default:e}}function hrt(e,t){return _rt(e)||Srt(e,t)||yrt(e,t)||wrt()}function wrt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
29
|
+
Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,!1);return e};X_.validateSsoProfile=i2e});var m9=m(K_=>{"use strict";Object.defineProperty(K_,"__esModule",{value:!0});K_.fromSSO=void 0;var c9=vt(),l9=h_(),s2e=xz(),u9=d9(),o2e=Bz(),a2e=(e={})=>async()=>{let{ssoStartUrl:t,ssoAccountId:n,ssoRegion:r,ssoRoleName:i,ssoClient:s}=e;if(!t&&!n&&!r&&!i){let d=await(0,l9.parseKnownFiles)(e),a=(0,l9.getProfileName)(e),c=d[a];if(!(0,s2e.isSsoProfile)(c))throw new c9.CredentialsProviderError(`Profile ${a} is not configured with SSO credentials.`);let{sso_start_url:l,sso_account_id:u,sso_region:w,sso_role_name:E}=(0,o2e.validateSsoProfile)(c);return(0,u9.resolveSSOCredentials)({ssoStartUrl:l,ssoAccountId:u,ssoRegion:w,ssoRoleName:E,ssoClient:s})}else{if(!t||!n||!r||!i)throw new c9.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"');return(0,u9.resolveSSOCredentials)({ssoStartUrl:t,ssoAccountId:n,ssoRegion:r,ssoRoleName:i,ssoClient:s})}};K_.fromSSO=a2e});var p9=m(f9=>{"use strict";Object.defineProperty(f9,"__esModule",{value:!0})});var g9=m(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0});var W_=oe();W_.__exportStar(m9(),Ed);W_.__exportStar(xz(),Ed);W_.__exportStar(p9(),Ed);W_.__exportStar(Bz(),Ed)});var Y_=m(Q_=>{"use strict";Object.defineProperty(Q_,"__esModule",{value:!0});Q_.httpRequest=void 0;var Oz=vt(),d2e=require("buffer"),c2e=require("http");function l2e(e){return new Promise((t,n)=>{var r;let i=(0,c2e.request)(S(o({method:"GET"},e),{hostname:(r=e.hostname)===null||r===void 0?void 0:r.replace(/^\[(.+)\]$/,"$1")}));i.on("error",s=>{n(Object.assign(new Oz.ProviderError("Unable to connect to instance metadata service"),s)),i.destroy()}),i.on("timeout",()=>{n(new Oz.ProviderError("TimeoutError from instance metadata service")),i.destroy()}),i.on("response",s=>{let{statusCode:d=400}=s;(d<200||300<=d)&&(n(Object.assign(new Oz.ProviderError("Error response received from instance metadata service"),{statusCode:d})),i.destroy());let a=[];s.on("data",c=>{a.push(c)}),s.on("end",()=>{t(d2e.Buffer.concat(a)),i.destroy()})}),i.end()})}Q_.httpRequest=l2e});var Fz=m(Ad=>{"use strict";Object.defineProperty(Ad,"__esModule",{value:!0});Ad.fromImdsCredentials=Ad.isImdsCredentials=void 0;var u2e=e=>Boolean(e)&&typeof e=="object"&&typeof e.AccessKeyId=="string"&&typeof e.SecretAccessKey=="string"&&typeof e.Token=="string"&&typeof e.Expiration=="string";Ad.isImdsCredentials=u2e;var m2e=e=>({accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:new Date(e.Expiration)});Ad.fromImdsCredentials=m2e});var Z_=m(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});Ai.providerConfigFromInit=Ai.DEFAULT_MAX_RETRIES=Ai.DEFAULT_TIMEOUT=void 0;Ai.DEFAULT_TIMEOUT=1e3;Ai.DEFAULT_MAX_RETRIES=0;var f2e=({maxRetries:e=Ai.DEFAULT_MAX_RETRIES,timeout:t=Ai.DEFAULT_TIMEOUT})=>({maxRetries:e,timeout:t});Ai.providerConfigFromInit=f2e});var jz=m(ev=>{"use strict";Object.defineProperty(ev,"__esModule",{value:!0});ev.retry=void 0;var p2e=(e,t)=>{let n=e();for(let r=0;r<t;r++)n=n.catch(e);return n};ev.retry=p2e});var w9=m(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.fromContainerMetadata=_n.ENV_CMDS_AUTH_TOKEN=_n.ENV_CMDS_RELATIVE_URI=_n.ENV_CMDS_FULL_URI=void 0;var tv=vt(),g2e=require("url"),h2e=Y_(),h9=Fz(),w2e=Z_(),y2e=jz();_n.ENV_CMDS_FULL_URI="AWS_CONTAINER_CREDENTIALS_FULL_URI";_n.ENV_CMDS_RELATIVE_URI="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";_n.ENV_CMDS_AUTH_TOKEN="AWS_CONTAINER_AUTHORIZATION_TOKEN";var S2e=(e={})=>{let{timeout:t,maxRetries:n}=(0,w2e.providerConfigFromInit)(e);return()=>(0,y2e.retry)(async()=>{let r=await A2e(),i=JSON.parse(await _2e(t,r));if(!(0,h9.isImdsCredentials)(i))throw new tv.CredentialsProviderError("Invalid response received from instance metadata service.");return(0,h9.fromImdsCredentials)(i)},n)};_n.fromContainerMetadata=S2e;var _2e=async(e,t)=>(process.env[_n.ENV_CMDS_AUTH_TOKEN]&&(t.headers=S(o({},t.headers),{Authorization:process.env[_n.ENV_CMDS_AUTH_TOKEN]})),(await(0,h2e.httpRequest)(S(o({},t),{timeout:e}))).toString()),v2e="169.254.170.2",C2e={localhost:!0,"127.0.0.1":!0},E2e={"http:":!0,"https:":!0},A2e=async()=>{if(process.env[_n.ENV_CMDS_RELATIVE_URI])return{hostname:v2e,path:process.env[_n.ENV_CMDS_RELATIVE_URI]};if(process.env[_n.ENV_CMDS_FULL_URI]){let e=(0,g2e.parse)(process.env[_n.ENV_CMDS_FULL_URI]);if(!e.hostname||!(e.hostname in C2e))throw new tv.CredentialsProviderError(`${e.hostname} is not a valid container metadata service hostname`,!1);if(!e.protocol||!(e.protocol in E2e))throw new tv.CredentialsProviderError(`${e.protocol} is not a valid container metadata service protocol`,!1);return S(o({},e),{port:e.port?parseInt(e.port,10):void 0})}throw new tv.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${_n.ENV_CMDS_RELATIVE_URI} or ${_n.ENV_CMDS_FULL_URI} environment variable is set`,!1)}});var y9=m(em=>{"use strict";Object.defineProperty(em,"__esModule",{value:!0});em.Endpoint=void 0;var x2e;(function(e){e.IPv4="http://169.254.169.254",e.IPv6="http://[fd00:ec2::254]"})(x2e=em.Endpoint||(em.Endpoint={}))});var S9=m(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});xi.ENDPOINT_CONFIG_OPTIONS=xi.CONFIG_ENDPOINT_NAME=xi.ENV_ENDPOINT_NAME=void 0;xi.ENV_ENDPOINT_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT";xi.CONFIG_ENDPOINT_NAME="ec2_metadata_service_endpoint";xi.ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>e[xi.ENV_ENDPOINT_NAME],configFileSelector:e=>e[xi.CONFIG_ENDPOINT_NAME],default:void 0}});var Uz=m(tm=>{"use strict";Object.defineProperty(tm,"__esModule",{value:!0});tm.EndpointMode=void 0;var b2e;(function(e){e.IPv4="IPv4",e.IPv6="IPv6"})(b2e=tm.EndpointMode||(tm.EndpointMode={}))});var _9=m(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});bi.ENDPOINT_MODE_CONFIG_OPTIONS=bi.CONFIG_ENDPOINT_MODE_NAME=bi.ENV_ENDPOINT_MODE_NAME=void 0;var R2e=Uz();bi.ENV_ENDPOINT_MODE_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";bi.CONFIG_ENDPOINT_MODE_NAME="ec2_metadata_service_endpoint_mode";bi.ENDPOINT_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[bi.ENV_ENDPOINT_MODE_NAME],configFileSelector:e=>e[bi.CONFIG_ENDPOINT_MODE_NAME],default:R2e.EndpointMode.IPv4}});var Vz=m(nv=>{"use strict";Object.defineProperty(nv,"__esModule",{value:!0});nv.getInstanceMetadataEndpoint=void 0;var C9=lr(),T2e=jr(),v9=y9(),I2e=S9(),Gz=Uz(),N2e=_9(),P2e=async()=>(0,T2e.parseUrl)(await k2e()||await z2e());nv.getInstanceMetadataEndpoint=P2e;var k2e=async()=>(0,C9.loadConfig)(I2e.ENDPOINT_CONFIG_OPTIONS)(),z2e=async()=>{let e=await(0,C9.loadConfig)(N2e.ENDPOINT_MODE_CONFIG_OPTIONS)();switch(e){case Gz.EndpointMode.IPv4:return v9.Endpoint.IPv4;case Gz.EndpointMode.IPv6:return v9.Endpoint.IPv6;default:throw new Error(`Unsupported endpoint mode: ${e}. Select from ${Object.values(Gz.EndpointMode)}`)}}});var E9=m(rv=>{"use strict";Object.defineProperty(rv,"__esModule",{value:!0});rv.getExtendedInstanceMetadataCredentials=void 0;var q2e=5*60,L2e=5*60,D2e="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",M2e=(e,t)=>{var n;let r=q2e+Math.floor(Math.random()*L2e),i=new Date(Date.now()+r*1e3);t.warn("Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(newExpiration)}.\nFor more information, please visit: "+D2e);let s=(n=e.originalExpiration)!==null&&n!==void 0?n:e.expiration;return S(o(o({},e),s?{originalExpiration:s}:{}),{expiration:i})};rv.getExtendedInstanceMetadataCredentials=M2e});var x9=m(iv=>{"use strict";Object.defineProperty(iv,"__esModule",{value:!0});iv.staticStabilityProvider=void 0;var A9=E9(),B2e=(e,t={})=>{let n=(t==null?void 0:t.logger)||console,r;return async()=>{let i;try{i=await e(),i.expiration&&i.expiration.getTime()<Date.now()&&(i=(0,A9.getExtendedInstanceMetadataCredentials)(i,n))}catch(s){if(r)n.warn("Credential renew failed: ",s),i=(0,A9.getExtendedInstanceMetadataCredentials)(r,n);else throw s}return r=i,i}};iv.staticStabilityProvider=B2e});var I9=m(sv=>{"use strict";Object.defineProperty(sv,"__esModule",{value:!0});sv.fromInstanceMetadata=void 0;var O2e=vt(),$z=Y_(),b9=Fz(),F2e=Z_(),R9=jz(),j2e=Vz(),U2e=x9(),T9="/latest/meta-data/iam/security-credentials/",G2e="/latest/api/token",V2e=(e={})=>(0,U2e.staticStabilityProvider)($2e(e),{logger:e.logger});sv.fromInstanceMetadata=V2e;var $2e=e=>{let t=!1,{timeout:n,maxRetries:r}=(0,F2e.providerConfigFromInit)(e),i=async(s,d)=>{let a=(await(0,R9.retry)(async()=>{let c;try{c=await J2e(d)}catch(l){throw l.statusCode===401&&(t=!1),l}return c},s)).trim();return(0,R9.retry)(async()=>{let c;try{c=await X2e(a,d)}catch(l){throw l.statusCode===401&&(t=!1),l}return c},s)};return async()=>{let s=await(0,j2e.getInstanceMetadataEndpoint)();if(t)return i(r,S(o({},s),{timeout:n}));{let d;try{d=(await H2e(S(o({},s),{timeout:n}))).toString()}catch(a){if((a==null?void 0:a.statusCode)===400)throw Object.assign(a,{message:"EC2 Metadata token request returned error"});return(a.message==="TimeoutError"||[403,404,405].includes(a.statusCode))&&(t=!0),i(r,S(o({},s),{timeout:n}))}return i(r,S(o({},s),{headers:{"x-aws-ec2-metadata-token":d},timeout:n}))}}},H2e=async e=>(0,$z.httpRequest)(S(o({},e),{path:G2e,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}})),J2e=async e=>(await(0,$z.httpRequest)(S(o({},e),{path:T9}))).toString(),X2e=async(e,t)=>{let n=JSON.parse((await(0,$z.httpRequest)(S(o({},t),{path:T9+e}))).toString());if(!(0,b9.isImdsCredentials)(n))throw new O2e.CredentialsProviderError("Invalid response received from instance metadata service.");return(0,b9.fromImdsCredentials)(n)}});var P9=m(N9=>{"use strict";Object.defineProperty(N9,"__esModule",{value:!0})});var k9=m(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});Ri.getInstanceMetadataEndpoint=Ri.httpRequest=void 0;var ov=oe();ov.__exportStar(w9(),Ri);ov.__exportStar(I9(),Ri);ov.__exportStar(Z_(),Ri);ov.__exportStar(P9(),Ri);var K2e=Y_();Object.defineProperty(Ri,"httpRequest",{enumerable:!0,get:function(){return K2e.httpRequest}});var W2e=Vz();Object.defineProperty(Ri,"getInstanceMetadataEndpoint",{enumerable:!0,get:function(){return W2e.getInstanceMetadataEndpoint}})});var z9=m(ha=>{"use strict";Object.defineProperty(ha,"__esModule",{value:!0});ha.remoteProvider=ha.ENV_IMDS_DISABLED=void 0;var av=k9(),Q2e=vt();ha.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";var Y2e=e=>process.env[av.ENV_CMDS_RELATIVE_URI]||process.env[av.ENV_CMDS_FULL_URI]?(0,av.fromContainerMetadata)(e):process.env[ha.ENV_IMDS_DISABLED]?async()=>{throw new Q2e.CredentialsProviderError("EC2 Instance Metadata Service access disabled")}:(0,av.fromInstanceMetadata)(e);ha.remoteProvider=Y2e});var q9=m(dv=>{"use strict";Object.defineProperty(dv,"__esModule",{value:!0});dv.defaultProvider=void 0;var Z2e=f1(),e$e=Y6(),t$e=y4(),n$e=g9(),r$e=gz(),Hz=vt(),i$e=h_(),s$e=z9(),o$e=(e={})=>(0,Hz.memoize)((0,Hz.chain)(...e.profile||process.env[i$e.ENV_PROFILE]?[]:[(0,Z2e.fromEnv)()],(0,n$e.fromSSO)(e),(0,e$e.fromIni)(e),(0,t$e.fromProcess)(e),(0,r$e.fromTokenFile)(e),(0,s$e.remoteProvider)(e),async()=>{throw new Hz.CredentialsProviderError("Could not load credentials from any providers",!1)}),t=>t.expiration!==void 0&&t.expiration.getTime()-Date.now()<3e5,t=>t.expiration!==void 0);dv.defaultProvider=o$e});var xd=m(Jz=>{"use strict";Object.defineProperty(Jz,"__esModule",{value:!0});var a$e=oe();a$e.__exportStar(q9(),Jz)});var L9=m(cv=>{"use strict";Object.defineProperty(cv,"__esModule",{value:!0});cv.defaultRegionInfoProvider=void 0;var d$e=Jt(),c$e={"aws-global":{variants:[{hostname:"sts.amazonaws.com",tags:[]}],signingRegion:"us-east-1"},"us-east-1":{variants:[{hostname:"sts-fips.us-east-1.amazonaws.com",tags:["fips"]}]},"us-east-2":{variants:[{hostname:"sts-fips.us-east-2.amazonaws.com",tags:["fips"]}]},"us-gov-east-1":{variants:[{hostname:"sts.us-gov-east-1.amazonaws.com",tags:["fips"]}]},"us-gov-west-1":{variants:[{hostname:"sts.us-gov-west-1.amazonaws.com",tags:["fips"]}]},"us-west-1":{variants:[{hostname:"sts-fips.us-west-1.amazonaws.com",tags:["fips"]}]},"us-west-2":{variants:[{hostname:"sts-fips.us-west-2.amazonaws.com",tags:["fips"]}]}},l$e={aws:{regions:["af-south-1","ap-east-1","ap-northeast-1","ap-northeast-2","ap-northeast-3","ap-south-1","ap-southeast-1","ap-southeast-2","ap-southeast-3","aws-global","ca-central-1","eu-central-1","eu-north-1","eu-south-1","eu-west-1","eu-west-2","eu-west-3","me-south-1","sa-east-1","us-east-1","us-east-1-fips","us-east-2","us-east-2-fips","us-west-1","us-west-1-fips","us-west-2","us-west-2-fips"],regionRegex:"^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",variants:[{hostname:"sts.{region}.amazonaws.com",tags:[]},{hostname:"sts-fips.{region}.amazonaws.com",tags:["fips"]},{hostname:"sts-fips.{region}.api.aws",tags:["dualstack","fips"]},{hostname:"sts.{region}.api.aws",tags:["dualstack"]}]},"aws-cn":{regions:["cn-north-1","cn-northwest-1"],regionRegex:"^cn\\-\\w+\\-\\d+$",variants:[{hostname:"sts.{region}.amazonaws.com.cn",tags:[]},{hostname:"sts-fips.{region}.amazonaws.com.cn",tags:["fips"]},{hostname:"sts-fips.{region}.api.amazonwebservices.com.cn",tags:["dualstack","fips"]},{hostname:"sts.{region}.api.amazonwebservices.com.cn",tags:["dualstack"]}]},"aws-iso":{regions:["us-iso-east-1","us-iso-west-1"],regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",variants:[{hostname:"sts.{region}.c2s.ic.gov",tags:[]},{hostname:"sts-fips.{region}.c2s.ic.gov",tags:["fips"]}]},"aws-iso-b":{regions:["us-isob-east-1"],regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",variants:[{hostname:"sts.{region}.sc2s.sgov.gov",tags:[]},{hostname:"sts-fips.{region}.sc2s.sgov.gov",tags:["fips"]}]},"aws-us-gov":{regions:["us-gov-east-1","us-gov-east-1-fips","us-gov-west-1","us-gov-west-1-fips"],regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",variants:[{hostname:"sts.{region}.amazonaws.com",tags:[]},{hostname:"sts.{region}.amazonaws.com",tags:["fips"]},{hostname:"sts-fips.{region}.api.aws",tags:["dualstack","fips"]},{hostname:"sts.{region}.api.aws",tags:["dualstack"]}]}},u$e=async(e,t)=>(0,d$e.getRegionInfo)(e,S(o({},t),{signingService:"sts",regionHash:c$e,partitionHash:l$e}));cv.defaultRegionInfoProvider=u$e});var D9=m(lv=>{"use strict";Object.defineProperty(lv,"__esModule",{value:!0});lv.getRuntimeConfig=void 0;var m$e=jr(),f$e=L9(),p$e=e=>{var t,n,r,i,s;return{apiVersion:"2011-06-15",disableHostPrefix:(t=e==null?void 0:e.disableHostPrefix)!==null&&t!==void 0?t:!1,logger:(n=e==null?void 0:e.logger)!==null&&n!==void 0?n:{},regionInfoProvider:(r=e==null?void 0:e.regionInfoProvider)!==null&&r!==void 0?r:f$e.defaultRegionInfoProvider,serviceId:(i=e==null?void 0:e.serviceId)!==null&&i!==void 0?i:"STS",urlParser:(s=e==null?void 0:e.urlParser)!==null&&s!==void 0?s:m$e.parseUrl}};lv.getRuntimeConfig=p$e});var F9=m(mv=>{"use strict";Object.defineProperty(mv,"__esModule",{value:!0});mv.getRuntimeConfig=void 0;var g$e=oe(),h$e=g$e.__importDefault(f8()),w$e=u1(),uv=Jt(),y$e=xd(),S$e=Ws(),Xz=Mn(),nm=lr(),M9=Qs(),B9=Ys(),_$e=Zs(),v$e=eo(),O9=to(),C$e=D9(),E$e=R(),A$e=ro(),x$e=e=>{var t,n,r,i,s,d,a,c,l,u,w,E,T,I,N;let F=(0,A$e.resolveDefaultsModeConfig)(e),J=()=>F().then(E$e.loadConfigsForDefaultMode),G=(0,C$e.getRuntimeConfig)(e);return S(o(o({},G),e),{runtime:"node",defaultsMode:F,base64Decoder:(t=e==null?void 0:e.base64Decoder)!==null&&t!==void 0?t:B9.fromBase64,base64Encoder:(n=e==null?void 0:e.base64Encoder)!==null&&n!==void 0?n:B9.toBase64,bodyLengthChecker:(r=e==null?void 0:e.bodyLengthChecker)!==null&&r!==void 0?r:_$e.calculateBodyLength,credentialDefaultProvider:(i=e==null?void 0:e.credentialDefaultProvider)!==null&&i!==void 0?i:(0,w$e.decorateDefaultCredentialProvider)(y$e.defaultProvider),defaultUserAgentProvider:(s=e==null?void 0:e.defaultUserAgentProvider)!==null&&s!==void 0?s:(0,v$e.defaultUserAgent)({serviceId:G.serviceId,clientVersion:h$e.default.version}),maxAttempts:(d=e==null?void 0:e.maxAttempts)!==null&&d!==void 0?d:(0,nm.loadConfig)(Xz.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(a=e==null?void 0:e.region)!==null&&a!==void 0?a:(0,nm.loadConfig)(uv.NODE_REGION_CONFIG_OPTIONS,uv.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(c=e==null?void 0:e.requestHandler)!==null&&c!==void 0?c:new M9.NodeHttpHandler(J),retryMode:(l=e==null?void 0:e.retryMode)!==null&&l!==void 0?l:(0,nm.loadConfig)(S(o({},Xz.NODE_RETRY_MODE_CONFIG_OPTIONS),{default:async()=>(await J()).retryMode||Xz.DEFAULT_RETRY_MODE})),sha256:(u=e==null?void 0:e.sha256)!==null&&u!==void 0?u:S$e.Hash.bind(null,"sha256"),streamCollector:(w=e==null?void 0:e.streamCollector)!==null&&w!==void 0?w:M9.streamCollector,useDualstackEndpoint:(E=e==null?void 0:e.useDualstackEndpoint)!==null&&E!==void 0?E:(0,nm.loadConfig)(uv.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(T=e==null?void 0:e.useFipsEndpoint)!==null&&T!==void 0?T:(0,nm.loadConfig)(uv.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:(I=e==null?void 0:e.utf8Decoder)!==null&&I!==void 0?I:O9.fromUtf8,utf8Encoder:(N=e==null?void 0:e.utf8Encoder)!==null&&N!==void 0?N:O9.toUtf8})};mv.getRuntimeConfig=x$e});var pv=m(fv=>{"use strict";Object.defineProperty(fv,"__esModule",{value:!0});fv.STSClient=void 0;var j9=Jt(),b$e=Ds(),U9=Ms(),R$e=Bs(),G9=Mn(),T$e=m8(),V9=Us(),I$e=R(),N$e=F9(),rm=class extends I$e.Client{constructor(t){let n=(0,N$e.getRuntimeConfig)(t),r=(0,j9.resolveRegionConfig)(n),i=(0,j9.resolveEndpointsConfig)(r),s=(0,G9.resolveRetryConfig)(i),d=(0,U9.resolveHostHeaderConfig)(s),a=(0,T$e.resolveStsAuthConfig)(d,{stsClientCtor:rm}),c=(0,V9.resolveUserAgentConfig)(a);super(c),this.config=c,this.middlewareStack.use((0,G9.getRetryPlugin)(this.config)),this.middlewareStack.use((0,b$e.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,U9.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,R$e.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,V9.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};fv.STSClient=rm});var $9=m(gv=>{"use strict";Object.defineProperty(gv,"__esModule",{value:!0});gv.STS=void 0;var P$e=Ww(),k$e=Zk(),z$e=Zw(),q$e=n1(),L$e=i1(),D$e=o1(),M$e=d1(),B$e=l1(),O$e=pv(),Kz=class extends O$e.STSClient{assumeRole(t,n,r){let i=new P$e.AssumeRoleCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}assumeRoleWithSAML(t,n,r){let i=new k$e.AssumeRoleWithSAMLCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}assumeRoleWithWebIdentity(t,n,r){let i=new z$e.AssumeRoleWithWebIdentityCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}decodeAuthorizationMessage(t,n,r){let i=new q$e.DecodeAuthorizationMessageCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}getAccessKeyInfo(t,n,r){let i=new L$e.GetAccessKeyInfoCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}getCallerIdentity(t,n,r){let i=new D$e.GetCallerIdentityCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}getFederationToken(t,n,r){let i=new M$e.GetFederationTokenCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}getSessionToken(t,n,r){let i=new B$e.GetSessionTokenCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}};gv.STS=Kz});var H9=m(Ti=>{"use strict";Object.defineProperty(Ti,"__esModule",{value:!0});var io=oe();io.__exportStar(Ww(),Ti);io.__exportStar(Zk(),Ti);io.__exportStar(Zw(),Ti);io.__exportStar(n1(),Ti);io.__exportStar(i1(),Ti);io.__exportStar(o1(),Ti);io.__exportStar(d1(),Ti);io.__exportStar(l1(),Ti)});var K9=m(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});Ii.decorateDefaultCredentialProvider=Ii.getDefaultRoleAssumerWithWebIdentity=Ii.getDefaultRoleAssumer=void 0;var J9=u1(),X9=pv(),F$e=(e={})=>(0,J9.getDefaultRoleAssumer)(e,X9.STSClient);Ii.getDefaultRoleAssumer=F$e;var j$e=(e={})=>(0,J9.getDefaultRoleAssumerWithWebIdentity)(e,X9.STSClient);Ii.getDefaultRoleAssumerWithWebIdentity=j$e;var U$e=e=>t=>e(o({roleAssumer:(0,Ii.getDefaultRoleAssumer)(t),roleAssumerWithWebIdentity:(0,Ii.getDefaultRoleAssumerWithWebIdentity)(t)},t));Ii.decorateDefaultCredentialProvider=U$e});var W9=m(Wz=>{"use strict";Object.defineProperty(Wz,"__esModule",{value:!0});var G$e=oe();G$e.__exportStar(Mr(),Wz)});var bd=m(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.STSServiceException=void 0;var im=oe();im.__exportStar($9(),is);im.__exportStar(pv(),is);im.__exportStar(H9(),is);im.__exportStar(K9(),is);im.__exportStar(W9(),is);var V$e=Dw();Object.defineProperty(is,"STSServiceException",{enumerable:!0,get:function(){return V$e.STSServiceException}})});var Q9=m(hv=>{"use strict";Object.defineProperty(hv,"__esModule",{value:!0});hv.defaultRegionInfoProvider=void 0;var $$e=Jt(),H$e={"ca-central-1":{variants:[{hostname:"dynamodb-fips.ca-central-1.amazonaws.com",tags:["fips"]}]},local:{variants:[{hostname:"localhost:8000",tags:[]}],signingRegion:"us-east-1"},"us-east-1":{variants:[{hostname:"dynamodb-fips.us-east-1.amazonaws.com",tags:["fips"]}]},"us-east-2":{variants:[{hostname:"dynamodb-fips.us-east-2.amazonaws.com",tags:["fips"]}]},"us-gov-east-1":{variants:[{hostname:"dynamodb.us-gov-east-1.amazonaws.com",tags:["fips"]}]},"us-gov-west-1":{variants:[{hostname:"dynamodb.us-gov-west-1.amazonaws.com",tags:["fips"]}]},"us-west-1":{variants:[{hostname:"dynamodb-fips.us-west-1.amazonaws.com",tags:["fips"]}]},"us-west-2":{variants:[{hostname:"dynamodb-fips.us-west-2.amazonaws.com",tags:["fips"]}]}},J$e={aws:{regions:["af-south-1","ap-east-1","ap-northeast-1","ap-northeast-2","ap-northeast-3","ap-south-1","ap-southeast-1","ap-southeast-2","ap-southeast-3","ca-central-1","ca-central-1-fips","eu-central-1","eu-north-1","eu-south-1","eu-west-1","eu-west-2","eu-west-3","local","me-south-1","sa-east-1","us-east-1","us-east-1-fips","us-east-2","us-east-2-fips","us-west-1","us-west-1-fips","us-west-2","us-west-2-fips"],regionRegex:"^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",variants:[{hostname:"dynamodb.{region}.amazonaws.com",tags:[]},{hostname:"dynamodb-fips.{region}.amazonaws.com",tags:["fips"]},{hostname:"dynamodb-fips.{region}.api.aws",tags:["dualstack","fips"]},{hostname:"dynamodb.{region}.api.aws",tags:["dualstack"]}]},"aws-cn":{regions:["cn-north-1","cn-northwest-1"],regionRegex:"^cn\\-\\w+\\-\\d+$",variants:[{hostname:"dynamodb.{region}.amazonaws.com.cn",tags:[]},{hostname:"dynamodb-fips.{region}.amazonaws.com.cn",tags:["fips"]},{hostname:"dynamodb-fips.{region}.api.amazonwebservices.com.cn",tags:["dualstack","fips"]},{hostname:"dynamodb.{region}.api.amazonwebservices.com.cn",tags:["dualstack"]}]},"aws-iso":{regions:["us-iso-east-1","us-iso-west-1"],regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",variants:[{hostname:"dynamodb.{region}.c2s.ic.gov",tags:[]},{hostname:"dynamodb-fips.{region}.c2s.ic.gov",tags:["fips"]}]},"aws-iso-b":{regions:["us-isob-east-1"],regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",variants:[{hostname:"dynamodb.{region}.sc2s.sgov.gov",tags:[]},{hostname:"dynamodb-fips.{region}.sc2s.sgov.gov",tags:["fips"]}]},"aws-us-gov":{regions:["us-gov-east-1","us-gov-east-1-fips","us-gov-west-1","us-gov-west-1-fips"],regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",variants:[{hostname:"dynamodb.{region}.amazonaws.com",tags:[]},{hostname:"dynamodb.{region}.amazonaws.com",tags:["fips"]},{hostname:"dynamodb-fips.{region}.api.aws",tags:["dualstack","fips"]},{hostname:"dynamodb.{region}.api.aws",tags:["dualstack"]}]}},X$e=async(e,t)=>(0,$$e.getRegionInfo)(e,S(o({},t),{signingService:"dynamodb",regionHash:H$e,partitionHash:J$e}));hv.defaultRegionInfoProvider=X$e});var Y9=m(wv=>{"use strict";Object.defineProperty(wv,"__esModule",{value:!0});wv.getRuntimeConfig=void 0;var K$e=jr(),W$e=Q9(),Q$e=e=>{var t,n,r,i,s;return{apiVersion:"2012-08-10",disableHostPrefix:(t=e==null?void 0:e.disableHostPrefix)!==null&&t!==void 0?t:!1,logger:(n=e==null?void 0:e.logger)!==null&&n!==void 0?n:{},regionInfoProvider:(r=e==null?void 0:e.regionInfoProvider)!==null&&r!==void 0?r:W$e.defaultRegionInfoProvider,serviceId:(i=e==null?void 0:e.serviceId)!==null&&i!==void 0?i:"DynamoDB",urlParser:(s=e==null?void 0:e.urlParser)!==null&&s!==void 0?s:K$e.parseUrl}};wv.getRuntimeConfig=Q$e});var n7=m(Sv=>{"use strict";Object.defineProperty(Sv,"__esModule",{value:!0});Sv.getRuntimeConfig=void 0;var Y$e=oe(),Z$e=Y$e.__importDefault(ZK()),e3e=bd(),yv=Jt(),t3e=xd(),n3e=Ws(),r3e=ck(),Qz=Mn(),Rd=lr(),Z9=Qs(),e7=Ys(),i3e=Zs(),s3e=eo(),t7=to(),o3e=Y9(),a3e=R(),d3e=ro(),c3e=e=>{var t,n,r,i,s,d,a,c,l,u,w,E,T,I,N,F;let J=(0,d3e.resolveDefaultsModeConfig)(e),G=()=>J().then(a3e.loadConfigsForDefaultMode),ue=(0,o3e.getRuntimeConfig)(e);return S(o(o({},ue),e),{runtime:"node",defaultsMode:J,base64Decoder:(t=e==null?void 0:e.base64Decoder)!==null&&t!==void 0?t:e7.fromBase64,base64Encoder:(n=e==null?void 0:e.base64Encoder)!==null&&n!==void 0?n:e7.toBase64,bodyLengthChecker:(r=e==null?void 0:e.bodyLengthChecker)!==null&&r!==void 0?r:i3e.calculateBodyLength,credentialDefaultProvider:(i=e==null?void 0:e.credentialDefaultProvider)!==null&&i!==void 0?i:(0,e3e.decorateDefaultCredentialProvider)(t3e.defaultProvider),defaultUserAgentProvider:(s=e==null?void 0:e.defaultUserAgentProvider)!==null&&s!==void 0?s:(0,s3e.defaultUserAgent)({serviceId:ue.serviceId,clientVersion:Z$e.default.version}),endpointDiscoveryEnabledProvider:(d=e==null?void 0:e.endpointDiscoveryEnabledProvider)!==null&&d!==void 0?d:(0,Rd.loadConfig)(r3e.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS),maxAttempts:(a=e==null?void 0:e.maxAttempts)!==null&&a!==void 0?a:(0,Rd.loadConfig)(Qz.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(c=e==null?void 0:e.region)!==null&&c!==void 0?c:(0,Rd.loadConfig)(yv.NODE_REGION_CONFIG_OPTIONS,yv.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(l=e==null?void 0:e.requestHandler)!==null&&l!==void 0?l:new Z9.NodeHttpHandler(G),retryMode:(u=e==null?void 0:e.retryMode)!==null&&u!==void 0?u:(0,Rd.loadConfig)(S(o({},Qz.NODE_RETRY_MODE_CONFIG_OPTIONS),{default:async()=>(await G()).retryMode||Qz.DEFAULT_RETRY_MODE})),sha256:(w=e==null?void 0:e.sha256)!==null&&w!==void 0?w:n3e.Hash.bind(null,"sha256"),streamCollector:(E=e==null?void 0:e.streamCollector)!==null&&E!==void 0?E:Z9.streamCollector,useDualstackEndpoint:(T=e==null?void 0:e.useDualstackEndpoint)!==null&&T!==void 0?T:(0,Rd.loadConfig)(yv.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(I=e==null?void 0:e.useFipsEndpoint)!==null&&I!==void 0?I:(0,Rd.loadConfig)(yv.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:(N=e==null?void 0:e.utf8Decoder)!==null&&N!==void 0?N:t7.fromUtf8,utf8Encoder:(F=e==null?void 0:e.utf8Encoder)!==null&&F!==void 0?F:t7.toUtf8})};Sv.getRuntimeConfig=c3e});var so=m(_v=>{"use strict";Object.defineProperty(_v,"__esModule",{value:!0});_v.DynamoDBClient=void 0;var r7=Jt(),l3e=Ds(),u3e=ck(),i7=Ms(),m3e=Bs(),s7=Mn(),o7=Ar(),a7=Us(),f3e=R(),p3e=Bg(),g3e=n7(),Yz=class extends f3e.Client{constructor(t){let n=(0,g3e.getRuntimeConfig)(t),r=(0,r7.resolveRegionConfig)(n),i=(0,r7.resolveEndpointsConfig)(r),s=(0,s7.resolveRetryConfig)(i),d=(0,i7.resolveHostHeaderConfig)(s),a=(0,o7.resolveAwsAuthConfig)(d),c=(0,a7.resolveUserAgentConfig)(a),l=(0,u3e.resolveEndpointDiscoveryConfig)(c,{endpointDiscoveryCommandCtor:p3e.DescribeEndpointsCommand});super(l),this.config=l,this.middlewareStack.use((0,s7.getRetryPlugin)(this.config)),this.middlewareStack.use((0,l3e.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,i7.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,m3e.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,o7.getAwsAuthPlugin)(this.config)),this.middlewareStack.use((0,a7.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};_v.DynamoDBClient=Yz});var wa=m(vv=>{"use strict";Object.defineProperty(vv,"__esModule",{value:!0});vv.DynamoDB=void 0;var h3e=mN(),w3e=pN(),y3e=hN(),S3e=yN(),_3e=_N(),v3e=CN(),C3e=AN(),E3e=bN(),A3e=TN(),x3e=NN(),b3e=kN(),R3e=qN(),T3e=Bg(),I3e=MN(),N3e=ON(),P3e=jN(),k3e=GN(),z3e=$N(),q3e=Kl(),L3e=XN(),D3e=WN(),M3e=YN(),B3e=eP(),O3e=nP(),F3e=iP(),j3e=oP(),U3e=dP(),G3e=lP(),V3e=th(),$3e=rh(),H3e=pP(),J3e=oh(),X3e=wP(),K3e=SP(),W3e=lh(),Q3e=CP(),Y3e=AP(),Z3e=ph(),eHe=RP(),tHe=IP(),nHe=PP(),rHe=zP(),iHe=LP(),sHe=MP(),oHe=OP(),aHe=jP(),dHe=GP(),cHe=$P(),lHe=JP(),uHe=KP(),mHe=so(),Zz=class extends mHe.DynamoDBClient{batchExecuteStatement(t,n,r){let i=new h3e.BatchExecuteStatementCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}batchGetItem(t,n,r){let i=new w3e.BatchGetItemCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}batchWriteItem(t,n,r){let i=new y3e.BatchWriteItemCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}createBackup(t,n,r){let i=new S3e.CreateBackupCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}createGlobalTable(t,n,r){let i=new _3e.CreateGlobalTableCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}createTable(t,n,r){let i=new v3e.CreateTableCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}deleteBackup(t,n,r){let i=new C3e.DeleteBackupCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}deleteItem(t,n,r){let i=new E3e.DeleteItemCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}deleteTable(t,n,r){let i=new A3e.DeleteTableCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}describeBackup(t,n,r){let i=new x3e.DescribeBackupCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}describeContinuousBackups(t,n,r){let i=new b3e.DescribeContinuousBackupsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}describeContributorInsights(t,n,r){let i=new R3e.DescribeContributorInsightsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}describeEndpoints(t,n,r){let i=new T3e.DescribeEndpointsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}describeExport(t,n,r){let i=new I3e.DescribeExportCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}describeGlobalTable(t,n,r){let i=new N3e.DescribeGlobalTableCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}describeGlobalTableSettings(t,n,r){let i=new P3e.DescribeGlobalTableSettingsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}describeKinesisStreamingDestination(t,n,r){let i=new k3e.DescribeKinesisStreamingDestinationCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}describeLimits(t,n,r){let i=new z3e.DescribeLimitsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}describeTable(t,n,r){let i=new q3e.DescribeTableCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}describeTableReplicaAutoScaling(t,n,r){let i=new L3e.DescribeTableReplicaAutoScalingCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}describeTimeToLive(t,n,r){let i=new D3e.DescribeTimeToLiveCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}disableKinesisStreamingDestination(t,n,r){let i=new M3e.DisableKinesisStreamingDestinationCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}enableKinesisStreamingDestination(t,n,r){let i=new B3e.EnableKinesisStreamingDestinationCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}executeStatement(t,n,r){let i=new O3e.ExecuteStatementCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}executeTransaction(t,n,r){let i=new F3e.ExecuteTransactionCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}exportTableToPointInTime(t,n,r){let i=new j3e.ExportTableToPointInTimeCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}getItem(t,n,r){let i=new U3e.GetItemCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listBackups(t,n,r){let i=new G3e.ListBackupsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listContributorInsights(t,n,r){let i=new V3e.ListContributorInsightsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listExports(t,n,r){let i=new $3e.ListExportsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listGlobalTables(t,n,r){let i=new H3e.ListGlobalTablesCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listTables(t,n,r){let i=new J3e.ListTablesCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listTagsOfResource(t,n,r){let i=new X3e.ListTagsOfResourceCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}putItem(t,n,r){let i=new K3e.PutItemCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}query(t,n,r){let i=new W3e.QueryCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}restoreTableFromBackup(t,n,r){let i=new Q3e.RestoreTableFromBackupCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}restoreTableToPointInTime(t,n,r){let i=new Y3e.RestoreTableToPointInTimeCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}scan(t,n,r){let i=new Z3e.ScanCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}tagResource(t,n,r){let i=new eHe.TagResourceCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}transactGetItems(t,n,r){let i=new tHe.TransactGetItemsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}transactWriteItems(t,n,r){let i=new nHe.TransactWriteItemsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}untagResource(t,n,r){let i=new rHe.UntagResourceCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}updateContinuousBackups(t,n,r){let i=new iHe.UpdateContinuousBackupsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}updateContributorInsights(t,n,r){let i=new sHe.UpdateContributorInsightsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}updateGlobalTable(t,n,r){let i=new oHe.UpdateGlobalTableCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}updateGlobalTableSettings(t,n,r){let i=new aHe.UpdateGlobalTableSettingsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}updateItem(t,n,r){let i=new dHe.UpdateItemCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}updateTable(t,n,r){let i=new cHe.UpdateTableCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}updateTableReplicaAutoScaling(t,n,r){let i=new lHe.UpdateTableReplicaAutoScalingCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}updateTimeToLive(t,n,r){let i=new uHe.UpdateTimeToLiveCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}};vv.DynamoDB=Zz});var d7=m(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});var Qe=oe();Qe.__exportStar(mN(),Ve);Qe.__exportStar(pN(),Ve);Qe.__exportStar(hN(),Ve);Qe.__exportStar(yN(),Ve);Qe.__exportStar(_N(),Ve);Qe.__exportStar(CN(),Ve);Qe.__exportStar(AN(),Ve);Qe.__exportStar(bN(),Ve);Qe.__exportStar(TN(),Ve);Qe.__exportStar(NN(),Ve);Qe.__exportStar(kN(),Ve);Qe.__exportStar(qN(),Ve);Qe.__exportStar(Bg(),Ve);Qe.__exportStar(MN(),Ve);Qe.__exportStar(ON(),Ve);Qe.__exportStar(jN(),Ve);Qe.__exportStar(GN(),Ve);Qe.__exportStar($N(),Ve);Qe.__exportStar(Kl(),Ve);Qe.__exportStar(XN(),Ve);Qe.__exportStar(WN(),Ve);Qe.__exportStar(YN(),Ve);Qe.__exportStar(eP(),Ve);Qe.__exportStar(nP(),Ve);Qe.__exportStar(iP(),Ve);Qe.__exportStar(oP(),Ve);Qe.__exportStar(dP(),Ve);Qe.__exportStar(lP(),Ve);Qe.__exportStar(th(),Ve);Qe.__exportStar(rh(),Ve);Qe.__exportStar(pP(),Ve);Qe.__exportStar(oh(),Ve);Qe.__exportStar(wP(),Ve);Qe.__exportStar(SP(),Ve);Qe.__exportStar(lh(),Ve);Qe.__exportStar(CP(),Ve);Qe.__exportStar(AP(),Ve);Qe.__exportStar(ph(),Ve);Qe.__exportStar(RP(),Ve);Qe.__exportStar(IP(),Ve);Qe.__exportStar(PP(),Ve);Qe.__exportStar(zP(),Ve);Qe.__exportStar(LP(),Ve);Qe.__exportStar(MP(),Ve);Qe.__exportStar(OP(),Ve);Qe.__exportStar(jP(),Ve);Qe.__exportStar(GP(),Ve);Qe.__exportStar($P(),Ve);Qe.__exportStar(JP(),Ve);Qe.__exportStar(KP(),Ve)});var c7=m(eq=>{"use strict";Object.defineProperty(eq,"__esModule",{value:!0});var fHe=oe();fHe.__exportStar(Ge(),eq)});var u7=m(l7=>{"use strict";Object.defineProperty(l7,"__esModule",{value:!0})});var m7=m(Cv=>{"use strict";Object.defineProperty(Cv,"__esModule",{value:!0});Cv.paginateListContributorInsights=void 0;var pHe=th(),gHe=wa(),hHe=so(),wHe=async(e,t,...n)=>await e.send(new pHe.ListContributorInsightsCommand(t),...n),yHe=async(e,t,...n)=>await e.listContributorInsights(t,...n);async function*SHe(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.NextToken=r,t.MaxResults=e.pageSize,e.client instanceof gHe.DynamoDB)s=await yHe(e.client,t,...n);else if(e.client instanceof hHe.DynamoDBClient)s=await wHe(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s;let d=r;r=s.NextToken,i=!!(r&&(!e.stopOnSameToken||r!==d))}return void 0}Cv.paginateListContributorInsights=SHe});var f7=m(Ev=>{"use strict";Object.defineProperty(Ev,"__esModule",{value:!0});Ev.paginateListExports=void 0;var _He=rh(),vHe=wa(),CHe=so(),EHe=async(e,t,...n)=>await e.send(new _He.ListExportsCommand(t),...n),AHe=async(e,t,...n)=>await e.listExports(t,...n);async function*xHe(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.NextToken=r,t.MaxResults=e.pageSize,e.client instanceof vHe.DynamoDB)s=await AHe(e.client,t,...n);else if(e.client instanceof CHe.DynamoDBClient)s=await EHe(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s;let d=r;r=s.NextToken,i=!!(r&&(!e.stopOnSameToken||r!==d))}return void 0}Ev.paginateListExports=xHe});var p7=m(Av=>{"use strict";Object.defineProperty(Av,"__esModule",{value:!0});Av.paginateListTables=void 0;var bHe=oh(),RHe=wa(),THe=so(),IHe=async(e,t,...n)=>await e.send(new bHe.ListTablesCommand(t),...n),NHe=async(e,t,...n)=>await e.listTables(t,...n);async function*PHe(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.ExclusiveStartTableName=r,t.Limit=e.pageSize,e.client instanceof RHe.DynamoDB)s=await NHe(e.client,t,...n);else if(e.client instanceof THe.DynamoDBClient)s=await IHe(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s;let d=r;r=s.LastEvaluatedTableName,i=!!(r&&(!e.stopOnSameToken||r!==d))}return void 0}Av.paginateListTables=PHe});var g7=m(xv=>{"use strict";Object.defineProperty(xv,"__esModule",{value:!0});xv.paginateQuery=void 0;var kHe=lh(),zHe=wa(),qHe=so(),LHe=async(e,t,...n)=>await e.send(new kHe.QueryCommand(t),...n),DHe=async(e,t,...n)=>await e.query(t,...n);async function*MHe(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.ExclusiveStartKey=r,t.Limit=e.pageSize,e.client instanceof zHe.DynamoDB)s=await DHe(e.client,t,...n);else if(e.client instanceof qHe.DynamoDBClient)s=await LHe(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s;let d=r;r=s.LastEvaluatedKey,i=!!(r&&(!e.stopOnSameToken||r!==d))}return void 0}xv.paginateQuery=MHe});var h7=m(bv=>{"use strict";Object.defineProperty(bv,"__esModule",{value:!0});bv.paginateScan=void 0;var BHe=ph(),OHe=wa(),FHe=so(),jHe=async(e,t,...n)=>await e.send(new BHe.ScanCommand(t),...n),UHe=async(e,t,...n)=>await e.scan(t,...n);async function*GHe(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.ExclusiveStartKey=r,t.Limit=e.pageSize,e.client instanceof OHe.DynamoDB)s=await UHe(e.client,t,...n);else if(e.client instanceof FHe.DynamoDBClient)s=await jHe(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s;let d=r;r=s.LastEvaluatedKey,i=!!(r&&(!e.stopOnSameToken||r!==d))}return void 0}bv.paginateScan=GHe});var w7=m(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});var Td=oe();Td.__exportStar(u7(),oo);Td.__exportStar(m7(),oo);Td.__exportStar(f7(),oo);Td.__exportStar(p7(),oo);Td.__exportStar(g7(),oo);Td.__exportStar(h7(),oo)});var tq=m(Rv=>{"use strict";Object.defineProperty(Rv,"__esModule",{value:!0});Rv.sleep=void 0;var VHe=e=>new Promise(t=>setTimeout(t,e*1e3));Rv.sleep=VHe});var Iv=m(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.checkExceptions=ss.WaiterState=ss.waiterServiceDefaults=void 0;ss.waiterServiceDefaults={minDelay:2,maxDelay:120};var Tv;(function(e){e.ABORTED="ABORTED",e.FAILURE="FAILURE",e.SUCCESS="SUCCESS",e.RETRY="RETRY",e.TIMEOUT="TIMEOUT"})(Tv=ss.WaiterState||(ss.WaiterState={}));var $He=e=>{if(e.state===Tv.ABORTED){let t=new Error(`${JSON.stringify(S(o({},e),{reason:"Request was aborted"}))}`);throw t.name="AbortError",t}else if(e.state===Tv.TIMEOUT){let t=new Error(`${JSON.stringify(S(o({},e),{reason:"Waiter has timed out"}))}`);throw t.name="TimeoutError",t}else if(e.state!==Tv.SUCCESS)throw new Error(`${JSON.stringify({result:e})}`);return e};ss.checkExceptions=$He});var y7=m(Pv=>{"use strict";Object.defineProperty(Pv,"__esModule",{value:!0});Pv.runPolling=void 0;var HHe=tq(),Nv=Iv(),JHe=(e,t,n,r)=>{if(r>n)return t;let i=e*2**(r-1);return XHe(e,i)},XHe=(e,t)=>e+Math.random()*(t-e),KHe=async({minDelay:e,maxDelay:t,maxWaitTime:n,abortController:r,client:i,abortSignal:s},d,a)=>{var c;let{state:l}=await a(i,d);if(l!==Nv.WaiterState.RETRY)return{state:l};let u=1,w=Date.now()+n*1e3,E=Math.log(t/e)/Math.log(2)+1;for(;;){if(((c=r==null?void 0:r.signal)===null||c===void 0?void 0:c.aborted)||(s==null?void 0:s.aborted))return{state:Nv.WaiterState.ABORTED};let T=JHe(e,t,E,u);if(Date.now()+T*1e3>w)return{state:Nv.WaiterState.TIMEOUT};await(0,HHe.sleep)(T);let{state:I}=await a(i,d);if(I!==Nv.WaiterState.RETRY)return{state:I};u+=1}};Pv.runPolling=KHe});var S7=m(kv=>{"use strict";Object.defineProperty(kv,"__esModule",{value:!0});kv.validateWaiterOptions=void 0;var WHe=e=>{if(e.maxWaitTime<1)throw new Error("WaiterConfiguration.maxWaitTime must be greater than 0");if(e.minDelay<1)throw new Error("WaiterConfiguration.minDelay must be greater than 0");if(e.maxDelay<1)throw new Error("WaiterConfiguration.maxDelay must be greater than 0");if(e.maxWaitTime<=e.minDelay)throw new Error(`WaiterConfiguration.maxWaitTime [${e.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${e.minDelay}] for this waiter`);if(e.maxDelay<e.minDelay)throw new Error(`WaiterConfiguration.maxDelay [${e.maxDelay}] must be greater than WaiterConfiguration.minDelay [${e.minDelay}] for this waiter`)};kv.validateWaiterOptions=WHe});var v7=m(zv=>{"use strict";Object.defineProperty(zv,"__esModule",{value:!0});var _7=oe();_7.__exportStar(tq(),zv);_7.__exportStar(S7(),zv)});var A7=m(qv=>{"use strict";Object.defineProperty(qv,"__esModule",{value:!0});qv.createWaiter=void 0;var QHe=y7(),YHe=v7(),E7=Iv(),C7=async e=>new Promise(t=>{e.onabort=()=>t({state:E7.WaiterState.ABORTED})}),ZHe=async(e,t,n)=>{let r=o(o({},E7.waiterServiceDefaults),e);(0,YHe.validateWaiterOptions)(r);let i=[(0,QHe.runPolling)(r,t,n)];return e.abortController&&i.push(C7(e.abortController.signal)),e.abortSignal&&i.push(C7(e.abortSignal)),Promise.race(i)};qv.createWaiter=ZHe});var Rr=m(Lv=>{"use strict";Object.defineProperty(Lv,"__esModule",{value:!0});var x7=oe();x7.__exportStar(A7(),Lv);x7.__exportStar(Iv(),Lv)});var R7=m(Nd=>{"use strict";Object.defineProperty(Nd,"__esModule",{value:!0});Nd.waitUntilTableExists=Nd.waitForTableExists=void 0;var Id=Rr(),eJe=Kl(),b7=async(e,t)=>{let n;try{let r=await e.send(new eJe.DescribeTableCommand(t));n=r;try{if((()=>r.Table.TableStatus)()==="ACTIVE")return{state:Id.WaiterState.SUCCESS,reason:n}}catch{}}catch(r){if(n=r,r.name&&r.name=="ResourceNotFoundException")return{state:Id.WaiterState.RETRY,reason:n}}return{state:Id.WaiterState.RETRY,reason:n}},tJe=async(e,t)=>{let n={minDelay:20,maxDelay:120};return(0,Id.createWaiter)(o(o({},n),e),t,b7)};Nd.waitForTableExists=tJe;var nJe=async(e,t)=>{let n={minDelay:20,maxDelay:120},r=await(0,Id.createWaiter)(o(o({},n),e),t,b7);return(0,Id.checkExceptions)(r)};Nd.waitUntilTableExists=nJe});var I7=m(Pd=>{"use strict";Object.defineProperty(Pd,"__esModule",{value:!0});Pd.waitUntilTableNotExists=Pd.waitForTableNotExists=void 0;var sm=Rr(),rJe=Kl(),T7=async(e,t)=>{let n;try{n=await e.send(new rJe.DescribeTableCommand(t))}catch(r){if(n=r,r.name&&r.name=="ResourceNotFoundException")return{state:sm.WaiterState.SUCCESS,reason:n}}return{state:sm.WaiterState.RETRY,reason:n}},iJe=async(e,t)=>{let n={minDelay:20,maxDelay:120};return(0,sm.createWaiter)(o(o({},n),e),t,T7)};Pd.waitForTableNotExists=iJe;var sJe=async(e,t)=>{let n={minDelay:20,maxDelay:120},r=await(0,sm.createWaiter)(o(o({},n),e),t,T7);return(0,sm.checkExceptions)(r)};Pd.waitUntilTableNotExists=sJe});var P7=m(Dv=>{"use strict";Object.defineProperty(Dv,"__esModule",{value:!0});var N7=oe();N7.__exportStar(R7(),Dv);N7.__exportStar(I7(),Dv)});var Bn=m(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});Ni.DynamoDBServiceException=void 0;var kd=oe();kd.__exportStar(wa(),Ni);kd.__exportStar(so(),Ni);kd.__exportStar(d7(),Ni);kd.__exportStar(c7(),Ni);kd.__exportStar(w7(),Ni);kd.__exportStar(P7(),Ni);var oJe=Kp();Object.defineProperty(Ni,"DynamoDBServiceException",{enumerable:!0,get:function(){return oJe.DynamoDBServiceException}})});var Bv=m(Mv=>{"use strict";Object.defineProperty(Mv,"__esModule",{value:!0});Mv.LambdaServiceException=void 0;var aJe=R(),om=class extends aJe.ServiceException{constructor(t){super(t),Object.setPrototypeOf(this,om.prototype)}};Mv.LambdaServiceException=om});var Re=m(_=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0});_.TracingMode=_.Runtime=_.PackageType=_.ImageConfig=_.FileSystemConfig=_.EphemeralStorage=_.Environment=_.DeadLetterConfig=_.FunctionCode=_.CodeVerificationFailedException=_.CodeStorageExceededException=_.CodeSigningConfigNotFoundException=_.EventSourceMappingConfiguration=_.CreateEventSourceMappingRequest=_.EventSourcePosition=_.SourceAccessConfiguration=_.SourceAccessType=_.SelfManagedEventSource=_.EndPointType=_.FunctionResponseType=_.FilterCriteria=_.Filter=_.DestinationConfig=_.OnSuccess=_.OnFailure=_.CreateCodeSigningConfigResponse=_.CodeSigningConfig=_.CreateCodeSigningConfigRequest=_.CodeSigningPolicies=_.CodeSigningPolicy=_.CreateAliasRequest=_.Architecture=_.AllowedPublishers=_.AliasConfiguration=_.AliasRoutingConfiguration=_.AddPermissionResponse=_.AddPermissionRequest=_.FunctionUrlAuthType=_.TooManyRequestsException=_.ThrottleReason=_.ServiceException=_.ResourceNotFoundException=_.ResourceConflictException=_.PreconditionFailedException=_.PolicyLengthExceededException=_.InvalidParameterValueException=_.AddLayerVersionPermissionResponse=_.AddLayerVersionPermissionRequest=_.AccountUsage=_.AccountLimit=void 0;_.GetFunctionUrlConfigResponse=_.GetFunctionUrlConfigRequest=_.GetFunctionEventInvokeConfigRequest=_.FunctionEventInvokeConfig=_.GetFunctionConfigurationRequest=_.GetFunctionConcurrencyResponse=_.GetFunctionConcurrencyRequest=_.GetFunctionCodeSigningConfigResponse=_.GetFunctionCodeSigningConfigRequest=_.GetFunctionResponse=_.Concurrency=_.FunctionCodeLocation=_.GetFunctionRequest=_.GetEventSourceMappingRequest=_.GetCodeSigningConfigResponse=_.GetCodeSigningConfigRequest=_.GetAliasRequest=_.GetAccountSettingsResponse=_.GetAccountSettingsRequest=_.DeleteProvisionedConcurrencyConfigRequest=_.DeleteLayerVersionRequest=_.DeleteFunctionUrlConfigRequest=_.DeleteFunctionEventInvokeConfigRequest=_.DeleteFunctionConcurrencyRequest=_.DeleteFunctionCodeSigningConfigRequest=_.DeleteFunctionRequest=_.ResourceInUseException=_.DeleteEventSourceMappingRequest=_.DeleteCodeSigningConfigResponse=_.DeleteCodeSigningConfigRequest=_.DeleteAliasRequest=_.CreateFunctionUrlConfigResponse=_.CreateFunctionUrlConfigRequest=_.Cors=_.InvalidCodeSignatureException=_.FunctionConfiguration=_.VpcConfigResponse=_.TracingConfigResponse=_.StateReasonCode=_.State=_.Layer=_.LastUpdateStatusReasonCode=_.LastUpdateStatus=_.ImageConfigResponse=_.ImageConfigError=_.EnvironmentResponse=_.EnvironmentError=_.CreateFunctionRequest=_.VpcConfig=_.TracingConfig=void 0;_.ListFunctionsResponse=_.ListFunctionsRequest=_.FunctionVersion=_.ListFunctionEventInvokeConfigsResponse=_.ListFunctionEventInvokeConfigsRequest=_.ListEventSourceMappingsResponse=_.ListEventSourceMappingsRequest=_.ListCodeSigningConfigsResponse=_.ListCodeSigningConfigsRequest=_.ListAliasesResponse=_.ListAliasesRequest=_.InvokeAsyncResponse=_.InvokeAsyncRequest=_.UnsupportedMediaTypeException=_.SubnetIPAddressLimitReachedException=_.ResourceNotReadyException=_.RequestTooLargeException=_.KMSNotFoundException=_.KMSInvalidStateException=_.KMSDisabledException=_.KMSAccessDeniedException=_.InvocationResponse=_.InvocationRequest=_.LogType=_.InvocationType=_.InvalidZipFileException=_.InvalidSubnetIDException=_.InvalidSecurityGroupIDException=_.InvalidRuntimeException=_.InvalidRequestContentException=_.ENILimitReachedException=_.EFSMountTimeoutException=_.EFSMountFailureException=_.EFSMountConnectivityException=_.EFSIOException=_.EC2UnexpectedException=_.EC2ThrottledException=_.EC2AccessDeniedException=_.ProvisionedConcurrencyConfigNotFoundException=_.GetProvisionedConcurrencyConfigResponse=_.ProvisionedConcurrencyStatusEnum=_.GetProvisionedConcurrencyConfigRequest=_.GetPolicyResponse=_.GetPolicyRequest=_.GetLayerVersionPolicyResponse=_.GetLayerVersionPolicyRequest=_.GetLayerVersionByArnRequest=_.GetLayerVersionResponse=_.LayerVersionContentOutput=_.GetLayerVersionRequest=void 0;_.UpdateFunctionUrlConfigResponse=_.UpdateFunctionUrlConfigRequest=_.UpdateFunctionEventInvokeConfigRequest=_.UpdateFunctionConfigurationRequest=_.UpdateFunctionCodeRequest=_.UpdateEventSourceMappingRequest=_.UpdateCodeSigningConfigResponse=_.UpdateCodeSigningConfigRequest=_.UpdateAliasRequest=_.UntagResourceRequest=_.TagResourceRequest=_.RemovePermissionRequest=_.RemoveLayerVersionPermissionRequest=_.PutProvisionedConcurrencyConfigResponse=_.PutProvisionedConcurrencyConfigRequest=_.PutFunctionEventInvokeConfigRequest=_.PutFunctionConcurrencyRequest=_.PutFunctionCodeSigningConfigResponse=_.PutFunctionCodeSigningConfigRequest=_.PublishVersionRequest=_.PublishLayerVersionResponse=_.PublishLayerVersionRequest=_.LayerVersionContentInput=_.ListVersionsByFunctionResponse=_.ListVersionsByFunctionRequest=_.ListTagsResponse=_.ListTagsRequest=_.ListProvisionedConcurrencyConfigsResponse=_.ProvisionedConcurrencyConfigListItem=_.ListProvisionedConcurrencyConfigsRequest=_.ListLayerVersionsResponse=_.ListLayerVersionsRequest=_.ListLayersResponse=_.LayersListItem=_.LayerVersionsListItem=_.ListLayersRequest=_.ListFunctionUrlConfigsResponse=_.FunctionUrlConfig=_.ListFunctionUrlConfigsRequest=_.ListFunctionsByCodeSigningConfigResponse=_.ListFunctionsByCodeSigningConfigRequest=void 0;var os=R(),pt=Bv(),dJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(dJe=_.AccountLimit||(_.AccountLimit={}));var cJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(cJe=_.AccountUsage||(_.AccountUsage={}));var lJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(lJe=_.AddLayerVersionPermissionRequest||(_.AddLayerVersionPermissionRequest={}));var uJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(uJe=_.AddLayerVersionPermissionResponse||(_.AddLayerVersionPermissionResponse={}));var am=class extends pt.LambdaServiceException{constructor(t){super(o({name:"InvalidParameterValueException",$fault:"client"},t)),this.name="InvalidParameterValueException",this.$fault="client",Object.setPrototypeOf(this,am.prototype),this.Type=t.Type}};_.InvalidParameterValueException=am;var dm=class extends pt.LambdaServiceException{constructor(t){super(o({name:"PolicyLengthExceededException",$fault:"client"},t)),this.name="PolicyLengthExceededException",this.$fault="client",Object.setPrototypeOf(this,dm.prototype),this.Type=t.Type}};_.PolicyLengthExceededException=dm;var cm=class extends pt.LambdaServiceException{constructor(t){super(o({name:"PreconditionFailedException",$fault:"client"},t)),this.name="PreconditionFailedException",this.$fault="client",Object.setPrototypeOf(this,cm.prototype),this.Type=t.Type}};_.PreconditionFailedException=cm;var lm=class extends pt.LambdaServiceException{constructor(t){super(o({name:"ResourceConflictException",$fault:"client"},t)),this.name="ResourceConflictException",this.$fault="client",Object.setPrototypeOf(this,lm.prototype),this.Type=t.Type}};_.ResourceConflictException=lm;var um=class extends pt.LambdaServiceException{constructor(t){super(o({name:"ResourceNotFoundException",$fault:"client"},t)),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,um.prototype),this.Type=t.Type,this.Message=t.Message}};_.ResourceNotFoundException=um;var mm=class extends pt.LambdaServiceException{constructor(t){super(o({name:"ServiceException",$fault:"server"},t)),this.name="ServiceException",this.$fault="server",Object.setPrototypeOf(this,mm.prototype),this.Type=t.Type,this.Message=t.Message}};_.ServiceException=mm;var mJe;(function(e){e.CallerRateLimitExceeded="CallerRateLimitExceeded",e.ConcurrentInvocationLimitExceeded="ConcurrentInvocationLimitExceeded",e.FunctionInvocationRateLimitExceeded="FunctionInvocationRateLimitExceeded",e.ReservedFunctionConcurrentInvocationLimitExceeded="ReservedFunctionConcurrentInvocationLimitExceeded",e.ReservedFunctionInvocationRateLimitExceeded="ReservedFunctionInvocationRateLimitExceeded"})(mJe=_.ThrottleReason||(_.ThrottleReason={}));var fm=class extends pt.LambdaServiceException{constructor(t){super(o({name:"TooManyRequestsException",$fault:"client"},t)),this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,fm.prototype),this.retryAfterSeconds=t.retryAfterSeconds,this.Type=t.Type,this.Reason=t.Reason}};_.TooManyRequestsException=fm;var fJe;(function(e){e.AWS_IAM="AWS_IAM",e.NONE="NONE"})(fJe=_.FunctionUrlAuthType||(_.FunctionUrlAuthType={}));var pJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(pJe=_.AddPermissionRequest||(_.AddPermissionRequest={}));var gJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(gJe=_.AddPermissionResponse||(_.AddPermissionResponse={}));var hJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(hJe=_.AliasRoutingConfiguration||(_.AliasRoutingConfiguration={}));var wJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(wJe=_.AliasConfiguration||(_.AliasConfiguration={}));var yJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(yJe=_.AllowedPublishers||(_.AllowedPublishers={}));var SJe;(function(e){e.arm64="arm64",e.x86_64="x86_64"})(SJe=_.Architecture||(_.Architecture={}));var _Je;(function(e){e.filterSensitiveLog=t=>o({},t)})(_Je=_.CreateAliasRequest||(_.CreateAliasRequest={}));var vJe;(function(e){e.Enforce="Enforce",e.Warn="Warn"})(vJe=_.CodeSigningPolicy||(_.CodeSigningPolicy={}));var CJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(CJe=_.CodeSigningPolicies||(_.CodeSigningPolicies={}));var EJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(EJe=_.CreateCodeSigningConfigRequest||(_.CreateCodeSigningConfigRequest={}));var AJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(AJe=_.CodeSigningConfig||(_.CodeSigningConfig={}));var xJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(xJe=_.CreateCodeSigningConfigResponse||(_.CreateCodeSigningConfigResponse={}));var bJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(bJe=_.OnFailure||(_.OnFailure={}));var RJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(RJe=_.OnSuccess||(_.OnSuccess={}));var TJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(TJe=_.DestinationConfig||(_.DestinationConfig={}));var IJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(IJe=_.Filter||(_.Filter={}));var NJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(NJe=_.FilterCriteria||(_.FilterCriteria={}));var PJe;(function(e){e.ReportBatchItemFailures="ReportBatchItemFailures"})(PJe=_.FunctionResponseType||(_.FunctionResponseType={}));var kJe;(function(e){e.KAFKA_BOOTSTRAP_SERVERS="KAFKA_BOOTSTRAP_SERVERS"})(kJe=_.EndPointType||(_.EndPointType={}));var zJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(zJe=_.SelfManagedEventSource||(_.SelfManagedEventSource={}));var qJe;(function(e){e.BASIC_AUTH="BASIC_AUTH",e.CLIENT_CERTIFICATE_TLS_AUTH="CLIENT_CERTIFICATE_TLS_AUTH",e.SASL_SCRAM_256_AUTH="SASL_SCRAM_256_AUTH",e.SASL_SCRAM_512_AUTH="SASL_SCRAM_512_AUTH",e.SERVER_ROOT_CA_CERTIFICATE="SERVER_ROOT_CA_CERTIFICATE",e.VIRTUAL_HOST="VIRTUAL_HOST",e.VPC_SECURITY_GROUP="VPC_SECURITY_GROUP",e.VPC_SUBNET="VPC_SUBNET"})(qJe=_.SourceAccessType||(_.SourceAccessType={}));var LJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(LJe=_.SourceAccessConfiguration||(_.SourceAccessConfiguration={}));var DJe;(function(e){e.AT_TIMESTAMP="AT_TIMESTAMP",e.LATEST="LATEST",e.TRIM_HORIZON="TRIM_HORIZON"})(DJe=_.EventSourcePosition||(_.EventSourcePosition={}));var MJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(MJe=_.CreateEventSourceMappingRequest||(_.CreateEventSourceMappingRequest={}));var BJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(BJe=_.EventSourceMappingConfiguration||(_.EventSourceMappingConfiguration={}));var pm=class extends pt.LambdaServiceException{constructor(t){super(o({name:"CodeSigningConfigNotFoundException",$fault:"client"},t)),this.name="CodeSigningConfigNotFoundException",this.$fault="client",Object.setPrototypeOf(this,pm.prototype),this.Type=t.Type,this.Message=t.Message}};_.CodeSigningConfigNotFoundException=pm;var gm=class extends pt.LambdaServiceException{constructor(t){super(o({name:"CodeStorageExceededException",$fault:"client"},t)),this.name="CodeStorageExceededException",this.$fault="client",Object.setPrototypeOf(this,gm.prototype),this.Type=t.Type}};_.CodeStorageExceededException=gm;var hm=class extends pt.LambdaServiceException{constructor(t){super(o({name:"CodeVerificationFailedException",$fault:"client"},t)),this.name="CodeVerificationFailedException",this.$fault="client",Object.setPrototypeOf(this,hm.prototype),this.Type=t.Type,this.Message=t.Message}};_.CodeVerificationFailedException=hm;var k7;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.ZipFile&&{ZipFile:os.SENSITIVE_STRING})})(k7=_.FunctionCode||(_.FunctionCode={}));var OJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(OJe=_.DeadLetterConfig||(_.DeadLetterConfig={}));var nq;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Variables&&{Variables:os.SENSITIVE_STRING})})(nq=_.Environment||(_.Environment={}));var FJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(FJe=_.EphemeralStorage||(_.EphemeralStorage={}));var jJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(jJe=_.FileSystemConfig||(_.FileSystemConfig={}));var UJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(UJe=_.ImageConfig||(_.ImageConfig={}));var GJe;(function(e){e.Image="Image",e.Zip="Zip"})(GJe=_.PackageType||(_.PackageType={}));var VJe;(function(e){e.dotnet6="dotnet6",e.dotnetcore10="dotnetcore1.0",e.dotnetcore20="dotnetcore2.0",e.dotnetcore21="dotnetcore2.1",e.dotnetcore31="dotnetcore3.1",e.go1x="go1.x",e.java11="java11",e.java8="java8",e.java8al2="java8.al2",e.nodejs="nodejs",e.nodejs10x="nodejs10.x",e.nodejs12x="nodejs12.x",e.nodejs14x="nodejs14.x",e.nodejs16x="nodejs16.x",e.nodejs43="nodejs4.3",e.nodejs43edge="nodejs4.3-edge",e.nodejs610="nodejs6.10",e.nodejs810="nodejs8.10",e.provided="provided",e.providedal2="provided.al2",e.python27="python2.7",e.python36="python3.6",e.python37="python3.7",e.python38="python3.8",e.python39="python3.9",e.ruby25="ruby2.5",e.ruby27="ruby2.7"})(VJe=_.Runtime||(_.Runtime={}));var $Je;(function(e){e.Active="Active",e.PassThrough="PassThrough"})($Je=_.TracingMode||(_.TracingMode={}));var HJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(HJe=_.TracingConfig||(_.TracingConfig={}));var JJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(JJe=_.VpcConfig||(_.VpcConfig={}));var XJe;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Code&&{Code:k7.filterSensitiveLog(t.Code)}),t.Environment&&{Environment:nq.filterSensitiveLog(t.Environment)})})(XJe=_.CreateFunctionRequest||(_.CreateFunctionRequest={}));var z7;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Message&&{Message:os.SENSITIVE_STRING})})(z7=_.EnvironmentError||(_.EnvironmentError={}));var q7;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Variables&&{Variables:os.SENSITIVE_STRING}),t.Error&&{Error:z7.filterSensitiveLog(t.Error)})})(q7=_.EnvironmentResponse||(_.EnvironmentResponse={}));var L7;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Message&&{Message:os.SENSITIVE_STRING})})(L7=_.ImageConfigError||(_.ImageConfigError={}));var D7;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Error&&{Error:L7.filterSensitiveLog(t.Error)})})(D7=_.ImageConfigResponse||(_.ImageConfigResponse={}));var KJe;(function(e){e.Failed="Failed",e.InProgress="InProgress",e.Successful="Successful"})(KJe=_.LastUpdateStatus||(_.LastUpdateStatus={}));var WJe;(function(e){e.EniLimitExceeded="EniLimitExceeded",e.ImageAccessDenied="ImageAccessDenied",e.ImageDeleted="ImageDeleted",e.InsufficientRolePermissions="InsufficientRolePermissions",e.InternalError="InternalError",e.InvalidConfiguration="InvalidConfiguration",e.InvalidImage="InvalidImage",e.InvalidSecurityGroup="InvalidSecurityGroup",e.InvalidSubnet="InvalidSubnet",e.SubnetOutOfIPAddresses="SubnetOutOfIPAddresses"})(WJe=_.LastUpdateStatusReasonCode||(_.LastUpdateStatusReasonCode={}));var QJe;(function(e){e.filterSensitiveLog=t=>o({},t)})(QJe=_.Layer||(_.Layer={}));var YJe;(function(e){e.Active="Active",e.Failed="Failed",e.Inactive="Inactive",e.Pending="Pending"})(YJe=_.State||(_.State={}));var ZJe;(function(e){e.Creating="Creating",e.EniLimitExceeded="EniLimitExceeded",e.Idle="Idle",e.ImageAccessDenied="ImageAccessDenied",e.ImageDeleted="ImageDeleted",e.InsufficientRolePermissions="InsufficientRolePermissions",e.InternalError="InternalError",e.InvalidConfiguration="InvalidConfiguration",e.InvalidImage="InvalidImage",e.InvalidSecurityGroup="InvalidSecurityGroup",e.InvalidSubnet="InvalidSubnet",e.Restoring="Restoring",e.SubnetOutOfIPAddresses="SubnetOutOfIPAddresses"})(ZJe=_.StateReasonCode||(_.StateReasonCode={}));var eXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(eXe=_.TracingConfigResponse||(_.TracingConfigResponse={}));var tXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(tXe=_.VpcConfigResponse||(_.VpcConfigResponse={}));var Ov;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Environment&&{Environment:q7.filterSensitiveLog(t.Environment)}),t.ImageConfigResponse&&{ImageConfigResponse:D7.filterSensitiveLog(t.ImageConfigResponse)})})(Ov=_.FunctionConfiguration||(_.FunctionConfiguration={}));var wm=class extends pt.LambdaServiceException{constructor(t){super(o({name:"InvalidCodeSignatureException",$fault:"client"},t)),this.name="InvalidCodeSignatureException",this.$fault="client",Object.setPrototypeOf(this,wm.prototype),this.Type=t.Type,this.Message=t.Message}};_.InvalidCodeSignatureException=wm;var nXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(nXe=_.Cors||(_.Cors={}));var rXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(rXe=_.CreateFunctionUrlConfigRequest||(_.CreateFunctionUrlConfigRequest={}));var iXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(iXe=_.CreateFunctionUrlConfigResponse||(_.CreateFunctionUrlConfigResponse={}));var sXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(sXe=_.DeleteAliasRequest||(_.DeleteAliasRequest={}));var oXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(oXe=_.DeleteCodeSigningConfigRequest||(_.DeleteCodeSigningConfigRequest={}));var aXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(aXe=_.DeleteCodeSigningConfigResponse||(_.DeleteCodeSigningConfigResponse={}));var dXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(dXe=_.DeleteEventSourceMappingRequest||(_.DeleteEventSourceMappingRequest={}));var ym=class extends pt.LambdaServiceException{constructor(t){super(o({name:"ResourceInUseException",$fault:"client"},t)),this.name="ResourceInUseException",this.$fault="client",Object.setPrototypeOf(this,ym.prototype),this.Type=t.Type,this.Message=t.Message}};_.ResourceInUseException=ym;var cXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(cXe=_.DeleteFunctionRequest||(_.DeleteFunctionRequest={}));var lXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(lXe=_.DeleteFunctionCodeSigningConfigRequest||(_.DeleteFunctionCodeSigningConfigRequest={}));var uXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(uXe=_.DeleteFunctionConcurrencyRequest||(_.DeleteFunctionConcurrencyRequest={}));var mXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(mXe=_.DeleteFunctionEventInvokeConfigRequest||(_.DeleteFunctionEventInvokeConfigRequest={}));var fXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(fXe=_.DeleteFunctionUrlConfigRequest||(_.DeleteFunctionUrlConfigRequest={}));var pXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(pXe=_.DeleteLayerVersionRequest||(_.DeleteLayerVersionRequest={}));var gXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(gXe=_.DeleteProvisionedConcurrencyConfigRequest||(_.DeleteProvisionedConcurrencyConfigRequest={}));var hXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(hXe=_.GetAccountSettingsRequest||(_.GetAccountSettingsRequest={}));var wXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(wXe=_.GetAccountSettingsResponse||(_.GetAccountSettingsResponse={}));var yXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(yXe=_.GetAliasRequest||(_.GetAliasRequest={}));var SXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(SXe=_.GetCodeSigningConfigRequest||(_.GetCodeSigningConfigRequest={}));var _Xe;(function(e){e.filterSensitiveLog=t=>o({},t)})(_Xe=_.GetCodeSigningConfigResponse||(_.GetCodeSigningConfigResponse={}));var vXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(vXe=_.GetEventSourceMappingRequest||(_.GetEventSourceMappingRequest={}));var CXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(CXe=_.GetFunctionRequest||(_.GetFunctionRequest={}));var EXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(EXe=_.FunctionCodeLocation||(_.FunctionCodeLocation={}));var AXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(AXe=_.Concurrency||(_.Concurrency={}));var xXe;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Configuration&&{Configuration:Ov.filterSensitiveLog(t.Configuration)})})(xXe=_.GetFunctionResponse||(_.GetFunctionResponse={}));var bXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(bXe=_.GetFunctionCodeSigningConfigRequest||(_.GetFunctionCodeSigningConfigRequest={}));var RXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(RXe=_.GetFunctionCodeSigningConfigResponse||(_.GetFunctionCodeSigningConfigResponse={}));var TXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(TXe=_.GetFunctionConcurrencyRequest||(_.GetFunctionConcurrencyRequest={}));var IXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(IXe=_.GetFunctionConcurrencyResponse||(_.GetFunctionConcurrencyResponse={}));var NXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(NXe=_.GetFunctionConfigurationRequest||(_.GetFunctionConfigurationRequest={}));var PXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(PXe=_.FunctionEventInvokeConfig||(_.FunctionEventInvokeConfig={}));var kXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(kXe=_.GetFunctionEventInvokeConfigRequest||(_.GetFunctionEventInvokeConfigRequest={}));var zXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(zXe=_.GetFunctionUrlConfigRequest||(_.GetFunctionUrlConfigRequest={}));var qXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(qXe=_.GetFunctionUrlConfigResponse||(_.GetFunctionUrlConfigResponse={}));var LXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(LXe=_.GetLayerVersionRequest||(_.GetLayerVersionRequest={}));var DXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(DXe=_.LayerVersionContentOutput||(_.LayerVersionContentOutput={}));var MXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(MXe=_.GetLayerVersionResponse||(_.GetLayerVersionResponse={}));var BXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(BXe=_.GetLayerVersionByArnRequest||(_.GetLayerVersionByArnRequest={}));var OXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(OXe=_.GetLayerVersionPolicyRequest||(_.GetLayerVersionPolicyRequest={}));var FXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(FXe=_.GetLayerVersionPolicyResponse||(_.GetLayerVersionPolicyResponse={}));var jXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(jXe=_.GetPolicyRequest||(_.GetPolicyRequest={}));var UXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(UXe=_.GetPolicyResponse||(_.GetPolicyResponse={}));var GXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(GXe=_.GetProvisionedConcurrencyConfigRequest||(_.GetProvisionedConcurrencyConfigRequest={}));var VXe;(function(e){e.FAILED="FAILED",e.IN_PROGRESS="IN_PROGRESS",e.READY="READY"})(VXe=_.ProvisionedConcurrencyStatusEnum||(_.ProvisionedConcurrencyStatusEnum={}));var $Xe;(function(e){e.filterSensitiveLog=t=>o({},t)})($Xe=_.GetProvisionedConcurrencyConfigResponse||(_.GetProvisionedConcurrencyConfigResponse={}));var Sm=class extends pt.LambdaServiceException{constructor(t){super(o({name:"ProvisionedConcurrencyConfigNotFoundException",$fault:"client"},t)),this.name="ProvisionedConcurrencyConfigNotFoundException",this.$fault="client",Object.setPrototypeOf(this,Sm.prototype),this.Type=t.Type}};_.ProvisionedConcurrencyConfigNotFoundException=Sm;var _m=class extends pt.LambdaServiceException{constructor(t){super(o({name:"EC2AccessDeniedException",$fault:"server"},t)),this.name="EC2AccessDeniedException",this.$fault="server",Object.setPrototypeOf(this,_m.prototype),this.Type=t.Type,this.Message=t.Message}};_.EC2AccessDeniedException=_m;var vm=class extends pt.LambdaServiceException{constructor(t){super(o({name:"EC2ThrottledException",$fault:"server"},t)),this.name="EC2ThrottledException",this.$fault="server",Object.setPrototypeOf(this,vm.prototype),this.Type=t.Type,this.Message=t.Message}};_.EC2ThrottledException=vm;var Cm=class extends pt.LambdaServiceException{constructor(t){super(o({name:"EC2UnexpectedException",$fault:"server"},t)),this.name="EC2UnexpectedException",this.$fault="server",Object.setPrototypeOf(this,Cm.prototype),this.Type=t.Type,this.Message=t.Message,this.EC2ErrorCode=t.EC2ErrorCode}};_.EC2UnexpectedException=Cm;var Em=class extends pt.LambdaServiceException{constructor(t){super(o({name:"EFSIOException",$fault:"client"},t)),this.name="EFSIOException",this.$fault="client",Object.setPrototypeOf(this,Em.prototype),this.Type=t.Type,this.Message=t.Message}};_.EFSIOException=Em;var Am=class extends pt.LambdaServiceException{constructor(t){super(o({name:"EFSMountConnectivityException",$fault:"client"},t)),this.name="EFSMountConnectivityException",this.$fault="client",Object.setPrototypeOf(this,Am.prototype),this.Type=t.Type,this.Message=t.Message}};_.EFSMountConnectivityException=Am;var xm=class extends pt.LambdaServiceException{constructor(t){super(o({name:"EFSMountFailureException",$fault:"client"},t)),this.name="EFSMountFailureException",this.$fault="client",Object.setPrototypeOf(this,xm.prototype),this.Type=t.Type,this.Message=t.Message}};_.EFSMountFailureException=xm;var bm=class extends pt.LambdaServiceException{constructor(t){super(o({name:"EFSMountTimeoutException",$fault:"client"},t)),this.name="EFSMountTimeoutException",this.$fault="client",Object.setPrototypeOf(this,bm.prototype),this.Type=t.Type,this.Message=t.Message}};_.EFSMountTimeoutException=bm;var Rm=class extends pt.LambdaServiceException{constructor(t){super(o({name:"ENILimitReachedException",$fault:"server"},t)),this.name="ENILimitReachedException",this.$fault="server",Object.setPrototypeOf(this,Rm.prototype),this.Type=t.Type,this.Message=t.Message}};_.ENILimitReachedException=Rm;var Tm=class extends pt.LambdaServiceException{constructor(t){super(o({name:"InvalidRequestContentException",$fault:"client"},t)),this.name="InvalidRequestContentException",this.$fault="client",Object.setPrototypeOf(this,Tm.prototype),this.Type=t.Type}};_.InvalidRequestContentException=Tm;var Im=class extends pt.LambdaServiceException{constructor(t){super(o({name:"InvalidRuntimeException",$fault:"server"},t)),this.name="InvalidRuntimeException",this.$fault="server",Object.setPrototypeOf(this,Im.prototype),this.Type=t.Type,this.Message=t.Message}};_.InvalidRuntimeException=Im;var Nm=class extends pt.LambdaServiceException{constructor(t){super(o({name:"InvalidSecurityGroupIDException",$fault:"server"},t)),this.name="InvalidSecurityGroupIDException",this.$fault="server",Object.setPrototypeOf(this,Nm.prototype),this.Type=t.Type,this.Message=t.Message}};_.InvalidSecurityGroupIDException=Nm;var Pm=class extends pt.LambdaServiceException{constructor(t){super(o({name:"InvalidSubnetIDException",$fault:"server"},t)),this.name="InvalidSubnetIDException",this.$fault="server",Object.setPrototypeOf(this,Pm.prototype),this.Type=t.Type,this.Message=t.Message}};_.InvalidSubnetIDException=Pm;var km=class extends pt.LambdaServiceException{constructor(t){super(o({name:"InvalidZipFileException",$fault:"server"},t)),this.name="InvalidZipFileException",this.$fault="server",Object.setPrototypeOf(this,km.prototype),this.Type=t.Type,this.Message=t.Message}};_.InvalidZipFileException=km;var HXe;(function(e){e.DryRun="DryRun",e.Event="Event",e.RequestResponse="RequestResponse"})(HXe=_.InvocationType||(_.InvocationType={}));var JXe;(function(e){e.None="None",e.Tail="Tail"})(JXe=_.LogType||(_.LogType={}));var XXe;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Payload&&{Payload:os.SENSITIVE_STRING})})(XXe=_.InvocationRequest||(_.InvocationRequest={}));var KXe;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Payload&&{Payload:os.SENSITIVE_STRING})})(KXe=_.InvocationResponse||(_.InvocationResponse={}));var zm=class extends pt.LambdaServiceException{constructor(t){super(o({name:"KMSAccessDeniedException",$fault:"server"},t)),this.name="KMSAccessDeniedException",this.$fault="server",Object.setPrototypeOf(this,zm.prototype),this.Type=t.Type,this.Message=t.Message}};_.KMSAccessDeniedException=zm;var qm=class extends pt.LambdaServiceException{constructor(t){super(o({name:"KMSDisabledException",$fault:"server"},t)),this.name="KMSDisabledException",this.$fault="server",Object.setPrototypeOf(this,qm.prototype),this.Type=t.Type,this.Message=t.Message}};_.KMSDisabledException=qm;var Lm=class extends pt.LambdaServiceException{constructor(t){super(o({name:"KMSInvalidStateException",$fault:"server"},t)),this.name="KMSInvalidStateException",this.$fault="server",Object.setPrototypeOf(this,Lm.prototype),this.Type=t.Type,this.Message=t.Message}};_.KMSInvalidStateException=Lm;var Dm=class extends pt.LambdaServiceException{constructor(t){super(o({name:"KMSNotFoundException",$fault:"server"},t)),this.name="KMSNotFoundException",this.$fault="server",Object.setPrototypeOf(this,Dm.prototype),this.Type=t.Type,this.Message=t.Message}};_.KMSNotFoundException=Dm;var Mm=class extends pt.LambdaServiceException{constructor(t){super(o({name:"RequestTooLargeException",$fault:"client"},t)),this.name="RequestTooLargeException",this.$fault="client",Object.setPrototypeOf(this,Mm.prototype),this.Type=t.Type}};_.RequestTooLargeException=Mm;var Bm=class extends pt.LambdaServiceException{constructor(t){super(o({name:"ResourceNotReadyException",$fault:"server"},t)),this.name="ResourceNotReadyException",this.$fault="server",Object.setPrototypeOf(this,Bm.prototype),this.Type=t.Type}};_.ResourceNotReadyException=Bm;var Om=class extends pt.LambdaServiceException{constructor(t){super(o({name:"SubnetIPAddressLimitReachedException",$fault:"server"},t)),this.name="SubnetIPAddressLimitReachedException",this.$fault="server",Object.setPrototypeOf(this,Om.prototype),this.Type=t.Type,this.Message=t.Message}};_.SubnetIPAddressLimitReachedException=Om;var Fm=class extends pt.LambdaServiceException{constructor(t){super(o({name:"UnsupportedMediaTypeException",$fault:"client"},t)),this.name="UnsupportedMediaTypeException",this.$fault="client",Object.setPrototypeOf(this,Fm.prototype),this.Type=t.Type}};_.UnsupportedMediaTypeException=Fm;var WXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(WXe=_.InvokeAsyncRequest||(_.InvokeAsyncRequest={}));var QXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(QXe=_.InvokeAsyncResponse||(_.InvokeAsyncResponse={}));var YXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(YXe=_.ListAliasesRequest||(_.ListAliasesRequest={}));var ZXe;(function(e){e.filterSensitiveLog=t=>o({},t)})(ZXe=_.ListAliasesResponse||(_.ListAliasesResponse={}));var eKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(eKe=_.ListCodeSigningConfigsRequest||(_.ListCodeSigningConfigsRequest={}));var tKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(tKe=_.ListCodeSigningConfigsResponse||(_.ListCodeSigningConfigsResponse={}));var nKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(nKe=_.ListEventSourceMappingsRequest||(_.ListEventSourceMappingsRequest={}));var rKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(rKe=_.ListEventSourceMappingsResponse||(_.ListEventSourceMappingsResponse={}));var iKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(iKe=_.ListFunctionEventInvokeConfigsRequest||(_.ListFunctionEventInvokeConfigsRequest={}));var sKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(sKe=_.ListFunctionEventInvokeConfigsResponse||(_.ListFunctionEventInvokeConfigsResponse={}));var oKe;(function(e){e.ALL="ALL"})(oKe=_.FunctionVersion||(_.FunctionVersion={}));var aKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(aKe=_.ListFunctionsRequest||(_.ListFunctionsRequest={}));var dKe;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Functions&&{Functions:t.Functions.map(n=>Ov.filterSensitiveLog(n))})})(dKe=_.ListFunctionsResponse||(_.ListFunctionsResponse={}));var cKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(cKe=_.ListFunctionsByCodeSigningConfigRequest||(_.ListFunctionsByCodeSigningConfigRequest={}));var lKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(lKe=_.ListFunctionsByCodeSigningConfigResponse||(_.ListFunctionsByCodeSigningConfigResponse={}));var uKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(uKe=_.ListFunctionUrlConfigsRequest||(_.ListFunctionUrlConfigsRequest={}));var mKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(mKe=_.FunctionUrlConfig||(_.FunctionUrlConfig={}));var fKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(fKe=_.ListFunctionUrlConfigsResponse||(_.ListFunctionUrlConfigsResponse={}));var pKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(pKe=_.ListLayersRequest||(_.ListLayersRequest={}));var gKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(gKe=_.LayerVersionsListItem||(_.LayerVersionsListItem={}));var hKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(hKe=_.LayersListItem||(_.LayersListItem={}));var wKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(wKe=_.ListLayersResponse||(_.ListLayersResponse={}));var yKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(yKe=_.ListLayerVersionsRequest||(_.ListLayerVersionsRequest={}));var SKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(SKe=_.ListLayerVersionsResponse||(_.ListLayerVersionsResponse={}));var _Ke;(function(e){e.filterSensitiveLog=t=>o({},t)})(_Ke=_.ListProvisionedConcurrencyConfigsRequest||(_.ListProvisionedConcurrencyConfigsRequest={}));var vKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(vKe=_.ProvisionedConcurrencyConfigListItem||(_.ProvisionedConcurrencyConfigListItem={}));var CKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(CKe=_.ListProvisionedConcurrencyConfigsResponse||(_.ListProvisionedConcurrencyConfigsResponse={}));var EKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(EKe=_.ListTagsRequest||(_.ListTagsRequest={}));var AKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(AKe=_.ListTagsResponse||(_.ListTagsResponse={}));var xKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(xKe=_.ListVersionsByFunctionRequest||(_.ListVersionsByFunctionRequest={}));var bKe;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Versions&&{Versions:t.Versions.map(n=>Ov.filterSensitiveLog(n))})})(bKe=_.ListVersionsByFunctionResponse||(_.ListVersionsByFunctionResponse={}));var M7;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.ZipFile&&{ZipFile:os.SENSITIVE_STRING})})(M7=_.LayerVersionContentInput||(_.LayerVersionContentInput={}));var RKe;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Content&&{Content:M7.filterSensitiveLog(t.Content)})})(RKe=_.PublishLayerVersionRequest||(_.PublishLayerVersionRequest={}));var TKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(TKe=_.PublishLayerVersionResponse||(_.PublishLayerVersionResponse={}));var IKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(IKe=_.PublishVersionRequest||(_.PublishVersionRequest={}));var NKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(NKe=_.PutFunctionCodeSigningConfigRequest||(_.PutFunctionCodeSigningConfigRequest={}));var PKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(PKe=_.PutFunctionCodeSigningConfigResponse||(_.PutFunctionCodeSigningConfigResponse={}));var kKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(kKe=_.PutFunctionConcurrencyRequest||(_.PutFunctionConcurrencyRequest={}));var zKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(zKe=_.PutFunctionEventInvokeConfigRequest||(_.PutFunctionEventInvokeConfigRequest={}));var qKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(qKe=_.PutProvisionedConcurrencyConfigRequest||(_.PutProvisionedConcurrencyConfigRequest={}));var LKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(LKe=_.PutProvisionedConcurrencyConfigResponse||(_.PutProvisionedConcurrencyConfigResponse={}));var DKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(DKe=_.RemoveLayerVersionPermissionRequest||(_.RemoveLayerVersionPermissionRequest={}));var MKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(MKe=_.RemovePermissionRequest||(_.RemovePermissionRequest={}));var BKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(BKe=_.TagResourceRequest||(_.TagResourceRequest={}));var OKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(OKe=_.UntagResourceRequest||(_.UntagResourceRequest={}));var FKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(FKe=_.UpdateAliasRequest||(_.UpdateAliasRequest={}));var jKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(jKe=_.UpdateCodeSigningConfigRequest||(_.UpdateCodeSigningConfigRequest={}));var UKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(UKe=_.UpdateCodeSigningConfigResponse||(_.UpdateCodeSigningConfigResponse={}));var GKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(GKe=_.UpdateEventSourceMappingRequest||(_.UpdateEventSourceMappingRequest={}));var VKe;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.ZipFile&&{ZipFile:os.SENSITIVE_STRING})})(VKe=_.UpdateFunctionCodeRequest||(_.UpdateFunctionCodeRequest={}));var $Ke;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Environment&&{Environment:nq.filterSensitiveLog(t.Environment)})})($Ke=_.UpdateFunctionConfigurationRequest||(_.UpdateFunctionConfigurationRequest={}));var HKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(HKe=_.UpdateFunctionEventInvokeConfigRequest||(_.UpdateFunctionEventInvokeConfigRequest={}));var JKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(JKe=_.UpdateFunctionUrlConfigRequest||(_.UpdateFunctionUrlConfigRequest={}));var XKe;(function(e){e.filterSensitiveLog=t=>o({},t)})(XKe=_.UpdateFunctionUrlConfigResponse||(_.UpdateFunctionUrlConfigResponse={}))});var Ie=m(z=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});z.serializeAws_restJson1PutFunctionConcurrencyCommand=z.serializeAws_restJson1PutFunctionCodeSigningConfigCommand=z.serializeAws_restJson1PublishVersionCommand=z.serializeAws_restJson1PublishLayerVersionCommand=z.serializeAws_restJson1ListVersionsByFunctionCommand=z.serializeAws_restJson1ListTagsCommand=z.serializeAws_restJson1ListProvisionedConcurrencyConfigsCommand=z.serializeAws_restJson1ListLayerVersionsCommand=z.serializeAws_restJson1ListLayersCommand=z.serializeAws_restJson1ListFunctionUrlConfigsCommand=z.serializeAws_restJson1ListFunctionsByCodeSigningConfigCommand=z.serializeAws_restJson1ListFunctionsCommand=z.serializeAws_restJson1ListFunctionEventInvokeConfigsCommand=z.serializeAws_restJson1ListEventSourceMappingsCommand=z.serializeAws_restJson1ListCodeSigningConfigsCommand=z.serializeAws_restJson1ListAliasesCommand=z.serializeAws_restJson1InvokeAsyncCommand=z.serializeAws_restJson1InvokeCommand=z.serializeAws_restJson1GetProvisionedConcurrencyConfigCommand=z.serializeAws_restJson1GetPolicyCommand=z.serializeAws_restJson1GetLayerVersionPolicyCommand=z.serializeAws_restJson1GetLayerVersionByArnCommand=z.serializeAws_restJson1GetLayerVersionCommand=z.serializeAws_restJson1GetFunctionUrlConfigCommand=z.serializeAws_restJson1GetFunctionEventInvokeConfigCommand=z.serializeAws_restJson1GetFunctionConfigurationCommand=z.serializeAws_restJson1GetFunctionConcurrencyCommand=z.serializeAws_restJson1GetFunctionCodeSigningConfigCommand=z.serializeAws_restJson1GetFunctionCommand=z.serializeAws_restJson1GetEventSourceMappingCommand=z.serializeAws_restJson1GetCodeSigningConfigCommand=z.serializeAws_restJson1GetAliasCommand=z.serializeAws_restJson1GetAccountSettingsCommand=z.serializeAws_restJson1DeleteProvisionedConcurrencyConfigCommand=z.serializeAws_restJson1DeleteLayerVersionCommand=z.serializeAws_restJson1DeleteFunctionUrlConfigCommand=z.serializeAws_restJson1DeleteFunctionEventInvokeConfigCommand=z.serializeAws_restJson1DeleteFunctionConcurrencyCommand=z.serializeAws_restJson1DeleteFunctionCodeSigningConfigCommand=z.serializeAws_restJson1DeleteFunctionCommand=z.serializeAws_restJson1DeleteEventSourceMappingCommand=z.serializeAws_restJson1DeleteCodeSigningConfigCommand=z.serializeAws_restJson1DeleteAliasCommand=z.serializeAws_restJson1CreateFunctionUrlConfigCommand=z.serializeAws_restJson1CreateFunctionCommand=z.serializeAws_restJson1CreateEventSourceMappingCommand=z.serializeAws_restJson1CreateCodeSigningConfigCommand=z.serializeAws_restJson1CreateAliasCommand=z.serializeAws_restJson1AddPermissionCommand=z.serializeAws_restJson1AddLayerVersionPermissionCommand=void 0;z.deserializeAws_restJson1ListEventSourceMappingsCommand=z.deserializeAws_restJson1ListCodeSigningConfigsCommand=z.deserializeAws_restJson1ListAliasesCommand=z.deserializeAws_restJson1InvokeAsyncCommand=z.deserializeAws_restJson1InvokeCommand=z.deserializeAws_restJson1GetProvisionedConcurrencyConfigCommand=z.deserializeAws_restJson1GetPolicyCommand=z.deserializeAws_restJson1GetLayerVersionPolicyCommand=z.deserializeAws_restJson1GetLayerVersionByArnCommand=z.deserializeAws_restJson1GetLayerVersionCommand=z.deserializeAws_restJson1GetFunctionUrlConfigCommand=z.deserializeAws_restJson1GetFunctionEventInvokeConfigCommand=z.deserializeAws_restJson1GetFunctionConfigurationCommand=z.deserializeAws_restJson1GetFunctionConcurrencyCommand=z.deserializeAws_restJson1GetFunctionCodeSigningConfigCommand=z.deserializeAws_restJson1GetFunctionCommand=z.deserializeAws_restJson1GetEventSourceMappingCommand=z.deserializeAws_restJson1GetCodeSigningConfigCommand=z.deserializeAws_restJson1GetAliasCommand=z.deserializeAws_restJson1GetAccountSettingsCommand=z.deserializeAws_restJson1DeleteProvisionedConcurrencyConfigCommand=z.deserializeAws_restJson1DeleteLayerVersionCommand=z.deserializeAws_restJson1DeleteFunctionUrlConfigCommand=z.deserializeAws_restJson1DeleteFunctionEventInvokeConfigCommand=z.deserializeAws_restJson1DeleteFunctionConcurrencyCommand=z.deserializeAws_restJson1DeleteFunctionCodeSigningConfigCommand=z.deserializeAws_restJson1DeleteFunctionCommand=z.deserializeAws_restJson1DeleteEventSourceMappingCommand=z.deserializeAws_restJson1DeleteCodeSigningConfigCommand=z.deserializeAws_restJson1DeleteAliasCommand=z.deserializeAws_restJson1CreateFunctionUrlConfigCommand=z.deserializeAws_restJson1CreateFunctionCommand=z.deserializeAws_restJson1CreateEventSourceMappingCommand=z.deserializeAws_restJson1CreateCodeSigningConfigCommand=z.deserializeAws_restJson1CreateAliasCommand=z.deserializeAws_restJson1AddPermissionCommand=z.deserializeAws_restJson1AddLayerVersionPermissionCommand=z.serializeAws_restJson1UpdateFunctionUrlConfigCommand=z.serializeAws_restJson1UpdateFunctionEventInvokeConfigCommand=z.serializeAws_restJson1UpdateFunctionConfigurationCommand=z.serializeAws_restJson1UpdateFunctionCodeCommand=z.serializeAws_restJson1UpdateEventSourceMappingCommand=z.serializeAws_restJson1UpdateCodeSigningConfigCommand=z.serializeAws_restJson1UpdateAliasCommand=z.serializeAws_restJson1UntagResourceCommand=z.serializeAws_restJson1TagResourceCommand=z.serializeAws_restJson1RemovePermissionCommand=z.serializeAws_restJson1RemoveLayerVersionPermissionCommand=z.serializeAws_restJson1PutProvisionedConcurrencyConfigCommand=z.serializeAws_restJson1PutFunctionEventInvokeConfigCommand=void 0;z.deserializeAws_restJson1UpdateFunctionUrlConfigCommand=z.deserializeAws_restJson1UpdateFunctionEventInvokeConfigCommand=z.deserializeAws_restJson1UpdateFunctionConfigurationCommand=z.deserializeAws_restJson1UpdateFunctionCodeCommand=z.deserializeAws_restJson1UpdateEventSourceMappingCommand=z.deserializeAws_restJson1UpdateCodeSigningConfigCommand=z.deserializeAws_restJson1UpdateAliasCommand=z.deserializeAws_restJson1UntagResourceCommand=z.deserializeAws_restJson1TagResourceCommand=z.deserializeAws_restJson1RemovePermissionCommand=z.deserializeAws_restJson1RemoveLayerVersionPermissionCommand=z.deserializeAws_restJson1PutProvisionedConcurrencyConfigCommand=z.deserializeAws_restJson1PutFunctionEventInvokeConfigCommand=z.deserializeAws_restJson1PutFunctionConcurrencyCommand=z.deserializeAws_restJson1PutFunctionCodeSigningConfigCommand=z.deserializeAws_restJson1PublishVersionCommand=z.deserializeAws_restJson1PublishLayerVersionCommand=z.deserializeAws_restJson1ListVersionsByFunctionCommand=z.deserializeAws_restJson1ListTagsCommand=z.deserializeAws_restJson1ListProvisionedConcurrencyConfigsCommand=z.deserializeAws_restJson1ListLayerVersionsCommand=z.deserializeAws_restJson1ListLayersCommand=z.deserializeAws_restJson1ListFunctionUrlConfigsCommand=z.deserializeAws_restJson1ListFunctionsByCodeSigningConfigCommand=z.deserializeAws_restJson1ListFunctionsCommand=z.deserializeAws_restJson1ListFunctionEventInvokeConfigsCommand=void 0;var Pe=Ht(),f=R(),ke=Bv(),gt=Re(),KKe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={"content-type":"application/json"},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy`;if(e.LayerName!==void 0){let u=e.LayerName;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: LayerName.");a=a.replace("{LayerName}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: LayerName.");if(e.VersionNumber!==void 0){let u=e.VersionNumber.toString();if(u.length<=0)throw new Error("Empty value provided for input HTTP label: VersionNumber.");a=a.replace("{VersionNumber}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: VersionNumber.");let c=o({},e.RevisionId!==void 0&&{RevisionId:e.RevisionId}),l;return l=JSON.stringify(o(o(o(o({},e.Action!==void 0&&e.Action!==null&&{Action:e.Action}),e.OrganizationId!==void 0&&e.OrganizationId!==null&&{OrganizationId:e.OrganizationId}),e.Principal!==void 0&&e.Principal!==null&&{Principal:e.Principal}),e.StatementId!==void 0&&e.StatementId!==null&&{StatementId:e.StatementId})),new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"POST",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1AddLayerVersionPermissionCommand=KKe;var WKe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={"content-type":"application/json"},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2015-03-31/functions/{FunctionName}/policy`;if(e.FunctionName!==void 0){let u=e.FunctionName;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c=o({},e.Qualifier!==void 0&&{Qualifier:e.Qualifier}),l;return l=JSON.stringify(o(o(o(o(o(o(o(o(o({},e.Action!==void 0&&e.Action!==null&&{Action:e.Action}),e.EventSourceToken!==void 0&&e.EventSourceToken!==null&&{EventSourceToken:e.EventSourceToken}),e.FunctionUrlAuthType!==void 0&&e.FunctionUrlAuthType!==null&&{FunctionUrlAuthType:e.FunctionUrlAuthType}),e.Principal!==void 0&&e.Principal!==null&&{Principal:e.Principal}),e.PrincipalOrgID!==void 0&&e.PrincipalOrgID!==null&&{PrincipalOrgID:e.PrincipalOrgID}),e.RevisionId!==void 0&&e.RevisionId!==null&&{RevisionId:e.RevisionId}),e.SourceAccount!==void 0&&e.SourceAccount!==null&&{SourceAccount:e.SourceAccount}),e.SourceArn!==void 0&&e.SourceArn!==null&&{SourceArn:e.SourceArn}),e.StatementId!==void 0&&e.StatementId!==null&&{StatementId:e.StatementId})),new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"POST",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1AddPermissionCommand=WKe;var QKe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={"content-type":"application/json"},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2015-03-31/functions/{FunctionName}/aliases`;if(e.FunctionName!==void 0){let l=e.FunctionName;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c;return c=JSON.stringify(o(o(o(o({},e.Description!==void 0&&e.Description!==null&&{Description:e.Description}),e.FunctionVersion!==void 0&&e.FunctionVersion!==null&&{FunctionVersion:e.FunctionVersion}),e.Name!==void 0&&e.Name!==null&&{Name:e.Name}),e.RoutingConfig!==void 0&&e.RoutingConfig!==null&&{RoutingConfig:H7(e.RoutingConfig,t)})),new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"POST",headers:d,path:a,body:c})};z.serializeAws_restJson1CreateAliasCommand=QKe;var YKe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={"content-type":"application/json"},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2020-04-22/code-signing-configs`,c;return c=JSON.stringify(o(o(o({},e.AllowedPublishers!==void 0&&e.AllowedPublishers!==null&&{AllowedPublishers:J7(e.AllowedPublishers,t)}),e.CodeSigningPolicies!==void 0&&e.CodeSigningPolicies!==null&&{CodeSigningPolicies:K7(e.CodeSigningPolicies,t)}),e.Description!==void 0&&e.Description!==null&&{Description:e.Description})),new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"POST",headers:d,path:a,body:c})};z.serializeAws_restJson1CreateCodeSigningConfigCommand=YKe;var ZKe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={"content-type":"application/json"},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2015-03-31/event-source-mappings`,c;return c=JSON.stringify(o(o(o(o(o(o(o(o(o(o(o(o(o(o(o(o(o(o(o({},e.BatchSize!==void 0&&e.BatchSize!==null&&{BatchSize:e.BatchSize}),e.BisectBatchOnFunctionError!==void 0&&e.BisectBatchOnFunctionError!==null&&{BisectBatchOnFunctionError:e.BisectBatchOnFunctionError}),e.DestinationConfig!==void 0&&e.DestinationConfig!==null&&{DestinationConfig:jv(e.DestinationConfig,t)}),e.Enabled!==void 0&&e.Enabled!==null&&{Enabled:e.Enabled}),e.EventSourceArn!==void 0&&e.EventSourceArn!==null&&{EventSourceArn:e.EventSourceArn}),e.FilterCriteria!==void 0&&e.FilterCriteria!==null&&{FilterCriteria:tQ(e.FilterCriteria,t)}),e.FunctionName!==void 0&&e.FunctionName!==null&&{FunctionName:e.FunctionName}),e.FunctionResponseTypes!==void 0&&e.FunctionResponseTypes!==null&&{FunctionResponseTypes:nQ(e.FunctionResponseTypes,t)}),e.MaximumBatchingWindowInSeconds!==void 0&&e.MaximumBatchingWindowInSeconds!==null&&{MaximumBatchingWindowInSeconds:e.MaximumBatchingWindowInSeconds}),e.MaximumRecordAgeInSeconds!==void 0&&e.MaximumRecordAgeInSeconds!==null&&{MaximumRecordAgeInSeconds:e.MaximumRecordAgeInSeconds}),e.MaximumRetryAttempts!==void 0&&e.MaximumRetryAttempts!==null&&{MaximumRetryAttempts:e.MaximumRetryAttempts}),e.ParallelizationFactor!==void 0&&e.ParallelizationFactor!==null&&{ParallelizationFactor:e.ParallelizationFactor}),e.Queues!==void 0&&e.Queues!==null&&{Queues:r4e(e.Queues,t)}),e.SelfManagedEventSource!==void 0&&e.SelfManagedEventSource!==null&&{SelfManagedEventSource:s4e(e.SelfManagedEventSource,t)}),e.SourceAccessConfigurations!==void 0&&e.SourceAccessConfigurations!==null&&{SourceAccessConfigurations:sQ(e.SourceAccessConfigurations,t)}),e.StartingPosition!==void 0&&e.StartingPosition!==null&&{StartingPosition:e.StartingPosition}),e.StartingPositionTimestamp!==void 0&&e.StartingPositionTimestamp!==null&&{StartingPositionTimestamp:Math.round(e.StartingPositionTimestamp.getTime()/1e3)}),e.Topics!==void 0&&e.Topics!==null&&{Topics:c4e(e.Topics,t)}),e.TumblingWindowInSeconds!==void 0&&e.TumblingWindowInSeconds!==null&&{TumblingWindowInSeconds:e.TumblingWindowInSeconds})),new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"POST",headers:d,path:a,body:c})};z.serializeAws_restJson1CreateEventSourceMappingCommand=ZKe;var eWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={"content-type":"application/json"},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2015-03-31/functions`,c;return c=JSON.stringify(o(o(o(o(o(o(o(o(o(o(o(o(o(o(o(o(o(o(o(o(o(o({},e.Architectures!==void 0&&e.Architectures!==null&&{Architectures:X7(e.Architectures,t)}),e.Code!==void 0&&e.Code!==null&&{Code:Z6e(e.Code,t)}),e.CodeSigningConfigArn!==void 0&&e.CodeSigningConfigArn!==null&&{CodeSigningConfigArn:e.CodeSigningConfigArn}),e.DeadLetterConfig!==void 0&&e.DeadLetterConfig!==null&&{DeadLetterConfig:Q7(e.DeadLetterConfig,t)}),e.Description!==void 0&&e.Description!==null&&{Description:e.Description}),e.Environment!==void 0&&e.Environment!==null&&{Environment:Y7(e.Environment,t)}),e.EphemeralStorage!==void 0&&e.EphemeralStorage!==null&&{EphemeralStorage:Z7(e.EphemeralStorage,t)}),e.FileSystemConfigs!==void 0&&e.FileSystemConfigs!==null&&{FileSystemConfigs:eQ(e.FileSystemConfigs,t)}),e.FunctionName!==void 0&&e.FunctionName!==null&&{FunctionName:e.FunctionName}),e.Handler!==void 0&&e.Handler!==null&&{Handler:e.Handler}),e.ImageConfig!==void 0&&e.ImageConfig!==null&&{ImageConfig:rQ(e.ImageConfig,t)}),e.KMSKeyArn!==void 0&&e.KMSKeyArn!==null&&{KMSKeyArn:e.KMSKeyArn}),e.Layers!==void 0&&e.Layers!==null&&{Layers:iQ(e.Layers,t)}),e.MemorySize!==void 0&&e.MemorySize!==null&&{MemorySize:e.MemorySize}),e.PackageType!==void 0&&e.PackageType!==null&&{PackageType:e.PackageType}),e.Publish!==void 0&&e.Publish!==null&&{Publish:e.Publish}),e.Role!==void 0&&e.Role!==null&&{Role:e.Role}),e.Runtime!==void 0&&e.Runtime!==null&&{Runtime:e.Runtime}),e.Tags!==void 0&&e.Tags!==null&&{Tags:oQ(e.Tags,t)}),e.Timeout!==void 0&&e.Timeout!==null&&{Timeout:e.Timeout}),e.TracingConfig!==void 0&&e.TracingConfig!==null&&{TracingConfig:aQ(e.TracingConfig,t)}),e.VpcConfig!==void 0&&e.VpcConfig!==null&&{VpcConfig:dQ(e.VpcConfig,t)})),new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"POST",headers:d,path:a,body:c})};z.serializeAws_restJson1CreateFunctionCommand=eWe;var tWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={"content-type":"application/json"},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2021-10-31/functions/{FunctionName}/url`;if(e.FunctionName!==void 0){let u=e.FunctionName;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c=o({},e.Qualifier!==void 0&&{Qualifier:e.Qualifier}),l;return l=JSON.stringify(o(o({},e.AuthType!==void 0&&e.AuthType!==null&&{AuthType:e.AuthType}),e.Cors!==void 0&&e.Cors!==null&&{Cors:W7(e.Cors,t)})),new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"POST",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1CreateFunctionUrlConfigCommand=tWe;var nWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2015-03-31/functions/{FunctionName}/aliases/{Name}`;if(e.FunctionName!==void 0){let l=e.FunctionName;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: FunctionName.");if(e.Name!==void 0){let l=e.Name;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: Name.");a=a.replace("{Name}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: Name.");let c;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"DELETE",headers:d,path:a,body:c})};z.serializeAws_restJson1DeleteAliasCommand=nWe;var rWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2020-04-22/code-signing-configs/{CodeSigningConfigArn}`;if(e.CodeSigningConfigArn!==void 0){let l=e.CodeSigningConfigArn;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: CodeSigningConfigArn.");a=a.replace("{CodeSigningConfigArn}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: CodeSigningConfigArn.");let c;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"DELETE",headers:d,path:a,body:c})};z.serializeAws_restJson1DeleteCodeSigningConfigCommand=rWe;var iWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2015-03-31/event-source-mappings/{UUID}`;if(e.UUID!==void 0){let l=e.UUID;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: UUID.");a=a.replace("{UUID}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: UUID.");let c;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"DELETE",headers:d,path:a,body:c})};z.serializeAws_restJson1DeleteEventSourceMappingCommand=iWe;var sWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2015-03-31/functions/{FunctionName}`;if(e.FunctionName!==void 0){let u=e.FunctionName;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c=o({},e.Qualifier!==void 0&&{Qualifier:e.Qualifier}),l;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"DELETE",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1DeleteFunctionCommand=sWe;var oWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2020-06-30/functions/{FunctionName}/code-signing-config`;if(e.FunctionName!==void 0){let l=e.FunctionName;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"DELETE",headers:d,path:a,body:c})};z.serializeAws_restJson1DeleteFunctionCodeSigningConfigCommand=oWe;var aWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2017-10-31/functions/{FunctionName}/concurrency`;if(e.FunctionName!==void 0){let l=e.FunctionName;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"DELETE",headers:d,path:a,body:c})};z.serializeAws_restJson1DeleteFunctionConcurrencyCommand=aWe;var dWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2019-09-25/functions/{FunctionName}/event-invoke-config`;if(e.FunctionName!==void 0){let u=e.FunctionName;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c=o({},e.Qualifier!==void 0&&{Qualifier:e.Qualifier}),l;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"DELETE",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1DeleteFunctionEventInvokeConfigCommand=dWe;var cWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2021-10-31/functions/{FunctionName}/url`;if(e.FunctionName!==void 0){let u=e.FunctionName;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c=o({},e.Qualifier!==void 0&&{Qualifier:e.Qualifier}),l;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"DELETE",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1DeleteFunctionUrlConfigCommand=cWe;var lWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2018-10-31/layers/{LayerName}/versions/{VersionNumber}`;if(e.LayerName!==void 0){let l=e.LayerName;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: LayerName.");a=a.replace("{LayerName}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: LayerName.");if(e.VersionNumber!==void 0){let l=e.VersionNumber.toString();if(l.length<=0)throw new Error("Empty value provided for input HTTP label: VersionNumber.");a=a.replace("{VersionNumber}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: VersionNumber.");let c;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"DELETE",headers:d,path:a,body:c})};z.serializeAws_restJson1DeleteLayerVersionCommand=lWe;var uWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2019-09-30/functions/{FunctionName}/provisioned-concurrency`;if(e.FunctionName!==void 0){let u=e.FunctionName;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c=o({},e.Qualifier!==void 0&&{Qualifier:e.Qualifier}),l;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"DELETE",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1DeleteProvisionedConcurrencyConfigCommand=uWe;var mWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={"content-type":"application/json"},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2016-08-19/account-settings`,c;return c="",new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,body:c})};z.serializeAws_restJson1GetAccountSettingsCommand=mWe;var fWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2015-03-31/functions/{FunctionName}/aliases/{Name}`;if(e.FunctionName!==void 0){let l=e.FunctionName;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: FunctionName.");if(e.Name!==void 0){let l=e.Name;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: Name.");a=a.replace("{Name}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: Name.");let c;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,body:c})};z.serializeAws_restJson1GetAliasCommand=fWe;var pWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2020-04-22/code-signing-configs/{CodeSigningConfigArn}`;if(e.CodeSigningConfigArn!==void 0){let l=e.CodeSigningConfigArn;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: CodeSigningConfigArn.");a=a.replace("{CodeSigningConfigArn}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: CodeSigningConfigArn.");let c;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,body:c})};z.serializeAws_restJson1GetCodeSigningConfigCommand=pWe;var gWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2015-03-31/event-source-mappings/{UUID}`;if(e.UUID!==void 0){let l=e.UUID;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: UUID.");a=a.replace("{UUID}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: UUID.");let c;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,body:c})};z.serializeAws_restJson1GetEventSourceMappingCommand=gWe;var hWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2015-03-31/functions/{FunctionName}`;if(e.FunctionName!==void 0){let u=e.FunctionName;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c=o({},e.Qualifier!==void 0&&{Qualifier:e.Qualifier}),l;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1GetFunctionCommand=hWe;var wWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2020-06-30/functions/{FunctionName}/code-signing-config`;if(e.FunctionName!==void 0){let l=e.FunctionName;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,body:c})};z.serializeAws_restJson1GetFunctionCodeSigningConfigCommand=wWe;var yWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2019-09-30/functions/{FunctionName}/concurrency`;if(e.FunctionName!==void 0){let l=e.FunctionName;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,body:c})};z.serializeAws_restJson1GetFunctionConcurrencyCommand=yWe;var SWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2015-03-31/functions/{FunctionName}/configuration`;if(e.FunctionName!==void 0){let u=e.FunctionName;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c=o({},e.Qualifier!==void 0&&{Qualifier:e.Qualifier}),l;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1GetFunctionConfigurationCommand=SWe;var _We=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2019-09-25/functions/{FunctionName}/event-invoke-config`;if(e.FunctionName!==void 0){let u=e.FunctionName;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c=o({},e.Qualifier!==void 0&&{Qualifier:e.Qualifier}),l;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1GetFunctionEventInvokeConfigCommand=_We;var vWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2021-10-31/functions/{FunctionName}/url`;if(e.FunctionName!==void 0){let u=e.FunctionName;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c=o({},e.Qualifier!==void 0&&{Qualifier:e.Qualifier}),l;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1GetFunctionUrlConfigCommand=vWe;var CWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2018-10-31/layers/{LayerName}/versions/{VersionNumber}`;if(e.LayerName!==void 0){let l=e.LayerName;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: LayerName.");a=a.replace("{LayerName}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: LayerName.");if(e.VersionNumber!==void 0){let l=e.VersionNumber.toString();if(l.length<=0)throw new Error("Empty value provided for input HTTP label: VersionNumber.");a=a.replace("{VersionNumber}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: VersionNumber.");let c;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,body:c})};z.serializeAws_restJson1GetLayerVersionCommand=CWe;var EWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2018-10-31/layers`,c=o({find:"LayerVersion"},e.Arn!==void 0&&{Arn:e.Arn}),l;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1GetLayerVersionByArnCommand=EWe;var AWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy`;if(e.LayerName!==void 0){let l=e.LayerName;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: LayerName.");a=a.replace("{LayerName}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: LayerName.");if(e.VersionNumber!==void 0){let l=e.VersionNumber.toString();if(l.length<=0)throw new Error("Empty value provided for input HTTP label: VersionNumber.");a=a.replace("{VersionNumber}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: VersionNumber.");let c;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,body:c})};z.serializeAws_restJson1GetLayerVersionPolicyCommand=AWe;var xWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2015-03-31/functions/{FunctionName}/policy`;if(e.FunctionName!==void 0){let u=e.FunctionName;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c=o({},e.Qualifier!==void 0&&{Qualifier:e.Qualifier}),l;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1GetPolicyCommand=xWe;var bWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2019-09-30/functions/{FunctionName}/provisioned-concurrency`;if(e.FunctionName!==void 0){let u=e.FunctionName;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c=o({},e.Qualifier!==void 0&&{Qualifier:e.Qualifier}),l;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1GetProvisionedConcurrencyConfigCommand=bWe;var RWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d=o(o(o({"content-type":"application/octet-stream"},rq(e.InvocationType)&&{"x-amz-invocation-type":e.InvocationType}),rq(e.LogType)&&{"x-amz-log-type":e.LogType}),rq(e.ClientContext)&&{"x-amz-client-context":e.ClientContext}),a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2015-03-31/functions/{FunctionName}/invocations`;if(e.FunctionName!==void 0){let u=e.FunctionName;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c=o({},e.Qualifier!==void 0&&{Qualifier:e.Qualifier}),l;return e.Payload!==void 0&&(l=e.Payload),new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"POST",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1InvokeCommand=RWe;var TWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={"content-type":"application/octet-stream"},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2014-11-13/functions/{FunctionName}/invoke-async`;if(e.FunctionName!==void 0){let l=e.FunctionName;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c;return e.InvokeArgs!==void 0&&(c=e.InvokeArgs),new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"POST",headers:d,path:a,body:c})};z.serializeAws_restJson1InvokeAsyncCommand=TWe;var IWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2015-03-31/functions/{FunctionName}/aliases`;if(e.FunctionName!==void 0){let u=e.FunctionName;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c=o(o(o({},e.FunctionVersion!==void 0&&{FunctionVersion:e.FunctionVersion}),e.Marker!==void 0&&{Marker:e.Marker}),e.MaxItems!==void 0&&{MaxItems:e.MaxItems.toString()}),l;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1ListAliasesCommand=IWe;var NWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2020-04-22/code-signing-configs`,c=o(o({},e.Marker!==void 0&&{Marker:e.Marker}),e.MaxItems!==void 0&&{MaxItems:e.MaxItems.toString()}),l;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1ListCodeSigningConfigsCommand=NWe;var PWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2015-03-31/event-source-mappings`,c=o(o(o(o({},e.EventSourceArn!==void 0&&{EventSourceArn:e.EventSourceArn}),e.FunctionName!==void 0&&{FunctionName:e.FunctionName}),e.Marker!==void 0&&{Marker:e.Marker}),e.MaxItems!==void 0&&{MaxItems:e.MaxItems.toString()}),l;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1ListEventSourceMappingsCommand=PWe;var kWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2019-09-25/functions/{FunctionName}/event-invoke-config/list`;if(e.FunctionName!==void 0){let u=e.FunctionName;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c=o(o({},e.Marker!==void 0&&{Marker:e.Marker}),e.MaxItems!==void 0&&{MaxItems:e.MaxItems.toString()}),l;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1ListFunctionEventInvokeConfigsCommand=kWe;var zWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2015-03-31/functions`,c=o(o(o(o({},e.MasterRegion!==void 0&&{MasterRegion:e.MasterRegion}),e.FunctionVersion!==void 0&&{FunctionVersion:e.FunctionVersion}),e.Marker!==void 0&&{Marker:e.Marker}),e.MaxItems!==void 0&&{MaxItems:e.MaxItems.toString()}),l;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1ListFunctionsCommand=zWe;var qWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2020-04-22/code-signing-configs/{CodeSigningConfigArn}/functions`;if(e.CodeSigningConfigArn!==void 0){let u=e.CodeSigningConfigArn;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: CodeSigningConfigArn.");a=a.replace("{CodeSigningConfigArn}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: CodeSigningConfigArn.");let c=o(o({},e.Marker!==void 0&&{Marker:e.Marker}),e.MaxItems!==void 0&&{MaxItems:e.MaxItems.toString()}),l;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1ListFunctionsByCodeSigningConfigCommand=qWe;var LWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2021-10-31/functions/{FunctionName}/urls`;if(e.FunctionName!==void 0){let u=e.FunctionName;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c=o(o({},e.Marker!==void 0&&{Marker:e.Marker}),e.MaxItems!==void 0&&{MaxItems:e.MaxItems.toString()}),l;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1ListFunctionUrlConfigsCommand=LWe;var DWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2018-10-31/layers`,c=o(o(o(o({},e.CompatibleRuntime!==void 0&&{CompatibleRuntime:e.CompatibleRuntime}),e.Marker!==void 0&&{Marker:e.Marker}),e.MaxItems!==void 0&&{MaxItems:e.MaxItems.toString()}),e.CompatibleArchitecture!==void 0&&{CompatibleArchitecture:e.CompatibleArchitecture}),l;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1ListLayersCommand=DWe;var MWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2018-10-31/layers/{LayerName}/versions`;if(e.LayerName!==void 0){let u=e.LayerName;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: LayerName.");a=a.replace("{LayerName}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: LayerName.");let c=o(o(o(o({},e.CompatibleRuntime!==void 0&&{CompatibleRuntime:e.CompatibleRuntime}),e.Marker!==void 0&&{Marker:e.Marker}),e.MaxItems!==void 0&&{MaxItems:e.MaxItems.toString()}),e.CompatibleArchitecture!==void 0&&{CompatibleArchitecture:e.CompatibleArchitecture}),l;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1ListLayerVersionsCommand=MWe;var BWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2019-09-30/functions/{FunctionName}/provisioned-concurrency`;if(e.FunctionName!==void 0){let u=e.FunctionName;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c=o(o({List:"ALL"},e.Marker!==void 0&&{Marker:e.Marker}),e.MaxItems!==void 0&&{MaxItems:e.MaxItems.toString()}),l;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1ListProvisionedConcurrencyConfigsCommand=BWe;var OWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2017-03-31/tags/{Resource}`;if(e.Resource!==void 0){let l=e.Resource;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: Resource.");a=a.replace("{Resource}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: Resource.");let c;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,body:c})};z.serializeAws_restJson1ListTagsCommand=OWe;var FWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2015-03-31/functions/{FunctionName}/versions`;if(e.FunctionName!==void 0){let u=e.FunctionName;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c=o(o({},e.Marker!==void 0&&{Marker:e.Marker}),e.MaxItems!==void 0&&{MaxItems:e.MaxItems.toString()}),l;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1ListVersionsByFunctionCommand=FWe;var jWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={"content-type":"application/json"},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2018-10-31/layers/{LayerName}/versions`;if(e.LayerName!==void 0){let l=e.LayerName;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: LayerName.");a=a.replace("{LayerName}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: LayerName.");let c;return c=JSON.stringify(o(o(o(o(o({},e.CompatibleArchitectures!==void 0&&e.CompatibleArchitectures!==null&&{CompatibleArchitectures:$6e(e.CompatibleArchitectures,t)}),e.CompatibleRuntimes!==void 0&&e.CompatibleRuntimes!==null&&{CompatibleRuntimes:H6e(e.CompatibleRuntimes,t)}),e.Content!==void 0&&e.Content!==null&&{Content:e4e(e.Content,t)}),e.Description!==void 0&&e.Description!==null&&{Description:e.Description}),e.LicenseInfo!==void 0&&e.LicenseInfo!==null&&{LicenseInfo:e.LicenseInfo})),new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"POST",headers:d,path:a,body:c})};z.serializeAws_restJson1PublishLayerVersionCommand=jWe;var UWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={"content-type":"application/json"},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2015-03-31/functions/{FunctionName}/versions`;if(e.FunctionName!==void 0){let l=e.FunctionName;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c;return c=JSON.stringify(o(o(o({},e.CodeSha256!==void 0&&e.CodeSha256!==null&&{CodeSha256:e.CodeSha256}),e.Description!==void 0&&e.Description!==null&&{Description:e.Description}),e.RevisionId!==void 0&&e.RevisionId!==null&&{RevisionId:e.RevisionId})),new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"POST",headers:d,path:a,body:c})};z.serializeAws_restJson1PublishVersionCommand=UWe;var GWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={"content-type":"application/json"},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2020-06-30/functions/{FunctionName}/code-signing-config`;if(e.FunctionName!==void 0){let l=e.FunctionName;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c;return c=JSON.stringify(o({},e.CodeSigningConfigArn!==void 0&&e.CodeSigningConfigArn!==null&&{CodeSigningConfigArn:e.CodeSigningConfigArn})),new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"PUT",headers:d,path:a,body:c})};z.serializeAws_restJson1PutFunctionCodeSigningConfigCommand=GWe;var VWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={"content-type":"application/json"},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2017-10-31/functions/{FunctionName}/concurrency`;if(e.FunctionName!==void 0){let l=e.FunctionName;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c;return c=JSON.stringify(o({},e.ReservedConcurrentExecutions!==void 0&&e.ReservedConcurrentExecutions!==null&&{ReservedConcurrentExecutions:e.ReservedConcurrentExecutions})),new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"PUT",headers:d,path:a,body:c})};z.serializeAws_restJson1PutFunctionConcurrencyCommand=VWe;var $We=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={"content-type":"application/json"},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2019-09-25/functions/{FunctionName}/event-invoke-config`;if(e.FunctionName!==void 0){let u=e.FunctionName;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c=o({},e.Qualifier!==void 0&&{Qualifier:e.Qualifier}),l;return l=JSON.stringify(o(o(o({},e.DestinationConfig!==void 0&&e.DestinationConfig!==null&&{DestinationConfig:jv(e.DestinationConfig,t)}),e.MaximumEventAgeInSeconds!==void 0&&e.MaximumEventAgeInSeconds!==null&&{MaximumEventAgeInSeconds:e.MaximumEventAgeInSeconds}),e.MaximumRetryAttempts!==void 0&&e.MaximumRetryAttempts!==null&&{MaximumRetryAttempts:e.MaximumRetryAttempts})),new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"PUT",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1PutFunctionEventInvokeConfigCommand=$We;var HWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={"content-type":"application/json"},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2019-09-30/functions/{FunctionName}/provisioned-concurrency`;if(e.FunctionName!==void 0){let u=e.FunctionName;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c=o({},e.Qualifier!==void 0&&{Qualifier:e.Qualifier}),l;return l=JSON.stringify(o({},e.ProvisionedConcurrentExecutions!==void 0&&e.ProvisionedConcurrentExecutions!==null&&{ProvisionedConcurrentExecutions:e.ProvisionedConcurrentExecutions})),new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"PUT",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1PutProvisionedConcurrencyConfigCommand=HWe;var JWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy/{StatementId}`;if(e.LayerName!==void 0){let u=e.LayerName;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: LayerName.");a=a.replace("{LayerName}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: LayerName.");if(e.VersionNumber!==void 0){let u=e.VersionNumber.toString();if(u.length<=0)throw new Error("Empty value provided for input HTTP label: VersionNumber.");a=a.replace("{VersionNumber}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: VersionNumber.");if(e.StatementId!==void 0){let u=e.StatementId;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: StatementId.");a=a.replace("{StatementId}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: StatementId.");let c=o({},e.RevisionId!==void 0&&{RevisionId:e.RevisionId}),l;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"DELETE",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1RemoveLayerVersionPermissionCommand=JWe;var XWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2015-03-31/functions/{FunctionName}/policy/{StatementId}`;if(e.FunctionName!==void 0){let u=e.FunctionName;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: FunctionName.");if(e.StatementId!==void 0){let u=e.StatementId;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: StatementId.");a=a.replace("{StatementId}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: StatementId.");let c=o(o({},e.Qualifier!==void 0&&{Qualifier:e.Qualifier}),e.RevisionId!==void 0&&{RevisionId:e.RevisionId}),l;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"DELETE",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1RemovePermissionCommand=XWe;var KWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={"content-type":"application/json"},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2017-03-31/tags/{Resource}`;if(e.Resource!==void 0){let l=e.Resource;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: Resource.");a=a.replace("{Resource}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: Resource.");let c;return c=JSON.stringify(o({},e.Tags!==void 0&&e.Tags!==null&&{Tags:oQ(e.Tags,t)})),new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"POST",headers:d,path:a,body:c})};z.serializeAws_restJson1TagResourceCommand=KWe;var WWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2017-03-31/tags/{Resource}`;if(e.Resource!==void 0){let u=e.Resource;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: Resource.");a=a.replace("{Resource}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: Resource.");let c=o({},e.TagKeys!==void 0&&{tagKeys:(e.TagKeys||[]).map(u=>u)}),l;return new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"DELETE",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1UntagResourceCommand=WWe;var QWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={"content-type":"application/json"},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2015-03-31/functions/{FunctionName}/aliases/{Name}`;if(e.FunctionName!==void 0){let l=e.FunctionName;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: FunctionName.");if(e.Name!==void 0){let l=e.Name;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: Name.");a=a.replace("{Name}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: Name.");let c;return c=JSON.stringify(o(o(o(o({},e.Description!==void 0&&e.Description!==null&&{Description:e.Description}),e.FunctionVersion!==void 0&&e.FunctionVersion!==null&&{FunctionVersion:e.FunctionVersion}),e.RevisionId!==void 0&&e.RevisionId!==null&&{RevisionId:e.RevisionId}),e.RoutingConfig!==void 0&&e.RoutingConfig!==null&&{RoutingConfig:H7(e.RoutingConfig,t)})),new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"PUT",headers:d,path:a,body:c})};z.serializeAws_restJson1UpdateAliasCommand=QWe;var YWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={"content-type":"application/json"},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2020-04-22/code-signing-configs/{CodeSigningConfigArn}`;if(e.CodeSigningConfigArn!==void 0){let l=e.CodeSigningConfigArn;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: CodeSigningConfigArn.");a=a.replace("{CodeSigningConfigArn}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: CodeSigningConfigArn.");let c;return c=JSON.stringify(o(o(o({},e.AllowedPublishers!==void 0&&e.AllowedPublishers!==null&&{AllowedPublishers:J7(e.AllowedPublishers,t)}),e.CodeSigningPolicies!==void 0&&e.CodeSigningPolicies!==null&&{CodeSigningPolicies:K7(e.CodeSigningPolicies,t)}),e.Description!==void 0&&e.Description!==null&&{Description:e.Description})),new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"PUT",headers:d,path:a,body:c})};z.serializeAws_restJson1UpdateCodeSigningConfigCommand=YWe;var ZWe=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={"content-type":"application/json"},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2015-03-31/event-source-mappings/{UUID}`;if(e.UUID!==void 0){let l=e.UUID;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: UUID.");a=a.replace("{UUID}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: UUID.");let c;return c=JSON.stringify(o(o(o(o(o(o(o(o(o(o(o(o(o({},e.BatchSize!==void 0&&e.BatchSize!==null&&{BatchSize:e.BatchSize}),e.BisectBatchOnFunctionError!==void 0&&e.BisectBatchOnFunctionError!==null&&{BisectBatchOnFunctionError:e.BisectBatchOnFunctionError}),e.DestinationConfig!==void 0&&e.DestinationConfig!==null&&{DestinationConfig:jv(e.DestinationConfig,t)}),e.Enabled!==void 0&&e.Enabled!==null&&{Enabled:e.Enabled}),e.FilterCriteria!==void 0&&e.FilterCriteria!==null&&{FilterCriteria:tQ(e.FilterCriteria,t)}),e.FunctionName!==void 0&&e.FunctionName!==null&&{FunctionName:e.FunctionName}),e.FunctionResponseTypes!==void 0&&e.FunctionResponseTypes!==null&&{FunctionResponseTypes:nQ(e.FunctionResponseTypes,t)}),e.MaximumBatchingWindowInSeconds!==void 0&&e.MaximumBatchingWindowInSeconds!==null&&{MaximumBatchingWindowInSeconds:e.MaximumBatchingWindowInSeconds}),e.MaximumRecordAgeInSeconds!==void 0&&e.MaximumRecordAgeInSeconds!==null&&{MaximumRecordAgeInSeconds:e.MaximumRecordAgeInSeconds}),e.MaximumRetryAttempts!==void 0&&e.MaximumRetryAttempts!==null&&{MaximumRetryAttempts:e.MaximumRetryAttempts}),e.ParallelizationFactor!==void 0&&e.ParallelizationFactor!==null&&{ParallelizationFactor:e.ParallelizationFactor}),e.SourceAccessConfigurations!==void 0&&e.SourceAccessConfigurations!==null&&{SourceAccessConfigurations:sQ(e.SourceAccessConfigurations,t)}),e.TumblingWindowInSeconds!==void 0&&e.TumblingWindowInSeconds!==null&&{TumblingWindowInSeconds:e.TumblingWindowInSeconds})),new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"PUT",headers:d,path:a,body:c})};z.serializeAws_restJson1UpdateEventSourceMappingCommand=ZWe;var e8e=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={"content-type":"application/json"},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2015-03-31/functions/{FunctionName}/code`;if(e.FunctionName!==void 0){let l=e.FunctionName;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c;return c=JSON.stringify(o(o(o(o(o(o(o(o(o({},e.Architectures!==void 0&&e.Architectures!==null&&{Architectures:X7(e.Architectures,t)}),e.DryRun!==void 0&&e.DryRun!==null&&{DryRun:e.DryRun}),e.ImageUri!==void 0&&e.ImageUri!==null&&{ImageUri:e.ImageUri}),e.Publish!==void 0&&e.Publish!==null&&{Publish:e.Publish}),e.RevisionId!==void 0&&e.RevisionId!==null&&{RevisionId:e.RevisionId}),e.S3Bucket!==void 0&&e.S3Bucket!==null&&{S3Bucket:e.S3Bucket}),e.S3Key!==void 0&&e.S3Key!==null&&{S3Key:e.S3Key}),e.S3ObjectVersion!==void 0&&e.S3ObjectVersion!==null&&{S3ObjectVersion:e.S3ObjectVersion}),e.ZipFile!==void 0&&e.ZipFile!==null&&{ZipFile:t.base64Encoder(e.ZipFile)})),new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"PUT",headers:d,path:a,body:c})};z.serializeAws_restJson1UpdateFunctionCodeCommand=e8e;var t8e=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={"content-type":"application/json"},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2015-03-31/functions/{FunctionName}/configuration`;if(e.FunctionName!==void 0){let l=e.FunctionName;if(l.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(l))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c;return c=JSON.stringify(o(o(o(o(o(o(o(o(o(o(o(o(o(o(o(o({},e.DeadLetterConfig!==void 0&&e.DeadLetterConfig!==null&&{DeadLetterConfig:Q7(e.DeadLetterConfig,t)}),e.Description!==void 0&&e.Description!==null&&{Description:e.Description}),e.Environment!==void 0&&e.Environment!==null&&{Environment:Y7(e.Environment,t)}),e.EphemeralStorage!==void 0&&e.EphemeralStorage!==null&&{EphemeralStorage:Z7(e.EphemeralStorage,t)}),e.FileSystemConfigs!==void 0&&e.FileSystemConfigs!==null&&{FileSystemConfigs:eQ(e.FileSystemConfigs,t)}),e.Handler!==void 0&&e.Handler!==null&&{Handler:e.Handler}),e.ImageConfig!==void 0&&e.ImageConfig!==null&&{ImageConfig:rQ(e.ImageConfig,t)}),e.KMSKeyArn!==void 0&&e.KMSKeyArn!==null&&{KMSKeyArn:e.KMSKeyArn}),e.Layers!==void 0&&e.Layers!==null&&{Layers:iQ(e.Layers,t)}),e.MemorySize!==void 0&&e.MemorySize!==null&&{MemorySize:e.MemorySize}),e.RevisionId!==void 0&&e.RevisionId!==null&&{RevisionId:e.RevisionId}),e.Role!==void 0&&e.Role!==null&&{Role:e.Role}),e.Runtime!==void 0&&e.Runtime!==null&&{Runtime:e.Runtime}),e.Timeout!==void 0&&e.Timeout!==null&&{Timeout:e.Timeout}),e.TracingConfig!==void 0&&e.TracingConfig!==null&&{TracingConfig:aQ(e.TracingConfig,t)}),e.VpcConfig!==void 0&&e.VpcConfig!==null&&{VpcConfig:dQ(e.VpcConfig,t)})),new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"PUT",headers:d,path:a,body:c})};z.serializeAws_restJson1UpdateFunctionConfigurationCommand=t8e;var n8e=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={"content-type":"application/json"},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2019-09-25/functions/{FunctionName}/event-invoke-config`;if(e.FunctionName!==void 0){let u=e.FunctionName;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c=o({},e.Qualifier!==void 0&&{Qualifier:e.Qualifier}),l;return l=JSON.stringify(o(o(o({},e.DestinationConfig!==void 0&&e.DestinationConfig!==null&&{DestinationConfig:jv(e.DestinationConfig,t)}),e.MaximumEventAgeInSeconds!==void 0&&e.MaximumEventAgeInSeconds!==null&&{MaximumEventAgeInSeconds:e.MaximumEventAgeInSeconds}),e.MaximumRetryAttempts!==void 0&&e.MaximumRetryAttempts!==null&&{MaximumRetryAttempts:e.MaximumRetryAttempts})),new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"POST",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1UpdateFunctionEventInvokeConfigCommand=n8e;var r8e=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),d={"content-type":"application/json"},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/2021-10-31/functions/{FunctionName}/url`;if(e.FunctionName!==void 0){let u=e.FunctionName;if(u.length<=0)throw new Error("Empty value provided for input HTTP label: FunctionName.");a=a.replace("{FunctionName}",(0,f.extendedEncodeURIComponent)(u))}else throw new Error("No value provided for input HTTP label: FunctionName.");let c=o({},e.Qualifier!==void 0&&{Qualifier:e.Qualifier}),l;return l=JSON.stringify(o(o({},e.AuthType!==void 0&&e.AuthType!==null&&{AuthType:e.AuthType}),e.Cors!==void 0&&e.Cors!==null&&{Cors:W7(e.Cors,t)})),new Pe.HttpRequest({protocol:r,hostname:n,port:i,method:"PUT",headers:d,path:a,query:c,body:l})};z.serializeAws_restJson1UpdateFunctionUrlConfigCommand=r8e;var i8e=async(e,t)=>{if(e.statusCode!==201&&e.statusCode>=300)return s8e(e,t);let n={$metadata:O(e),RevisionId:void 0,Statement:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.RevisionId!==void 0&&r.RevisionId!==null&&(n.RevisionId=(0,f.expectString)(r.RevisionId)),r.Statement!==void 0&&r.Statement!==null&&(n.Statement=(0,f.expectString)(r.Statement)),Promise.resolve(n)};z.deserializeAws_restJson1AddLayerVersionPermissionCommand=i8e;var s8e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"PolicyLengthExceededException":case"com.amazonaws.lambda#PolicyLengthExceededException":throw await V7(n,t);case"PreconditionFailedException":case"com.amazonaws.lambda#PreconditionFailedException":throw await ao(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},o8e=async(e,t)=>{if(e.statusCode!==201&&e.statusCode>=300)return a8e(e,t);let n={$metadata:O(e),Statement:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.Statement!==void 0&&r.Statement!==null&&(n.Statement=(0,f.expectString)(r.Statement)),Promise.resolve(n)};z.deserializeAws_restJson1AddPermissionCommand=o8e;var a8e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"PolicyLengthExceededException":case"com.amazonaws.lambda#PolicyLengthExceededException":throw await V7(n,t);case"PreconditionFailedException":case"com.amazonaws.lambda#PreconditionFailedException":throw await ao(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},d8e=async(e,t)=>{if(e.statusCode!==201&&e.statusCode>=300)return c8e(e,t);let n={$metadata:O(e),AliasArn:void 0,Description:void 0,FunctionVersion:void 0,Name:void 0,RevisionId:void 0,RoutingConfig:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.AliasArn!==void 0&&r.AliasArn!==null&&(n.AliasArn=(0,f.expectString)(r.AliasArn)),r.Description!==void 0&&r.Description!==null&&(n.Description=(0,f.expectString)(r.Description)),r.FunctionVersion!==void 0&&r.FunctionVersion!==null&&(n.FunctionVersion=(0,f.expectString)(r.FunctionVersion)),r.Name!==void 0&&r.Name!==null&&(n.Name=(0,f.expectString)(r.Name)),r.RevisionId!==void 0&&r.RevisionId!==null&&(n.RevisionId=(0,f.expectString)(r.RevisionId)),r.RoutingConfig!==void 0&&r.RoutingConfig!==null&&(n.RoutingConfig=Uv(r.RoutingConfig,t)),Promise.resolve(n)};z.deserializeAws_restJson1CreateAliasCommand=d8e;var c8e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},l8e=async(e,t)=>{if(e.statusCode!==201&&e.statusCode>=300)return u8e(e,t);let n={$metadata:O(e),CodeSigningConfig:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.CodeSigningConfig!==void 0&&r.CodeSigningConfig!==null&&(n.CodeSigningConfig=Gv(r.CodeSigningConfig,t)),Promise.resolve(n)};z.deserializeAws_restJson1CreateCodeSigningConfigCommand=l8e;var u8e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},m8e=async(e,t)=>{if(e.statusCode!==202&&e.statusCode>=300)return f8e(e,t);let n={$metadata:O(e),BatchSize:void 0,BisectBatchOnFunctionError:void 0,DestinationConfig:void 0,EventSourceArn:void 0,FilterCriteria:void 0,FunctionArn:void 0,FunctionResponseTypes:void 0,LastModified:void 0,LastProcessingResult:void 0,MaximumBatchingWindowInSeconds:void 0,MaximumRecordAgeInSeconds:void 0,MaximumRetryAttempts:void 0,ParallelizationFactor:void 0,Queues:void 0,SelfManagedEventSource:void 0,SourceAccessConfigurations:void 0,StartingPosition:void 0,StartingPositionTimestamp:void 0,State:void 0,StateTransitionReason:void 0,Topics:void 0,TumblingWindowInSeconds:void 0,UUID:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.BatchSize!==void 0&&r.BatchSize!==null&&(n.BatchSize=(0,f.expectInt32)(r.BatchSize)),r.BisectBatchOnFunctionError!==void 0&&r.BisectBatchOnFunctionError!==null&&(n.BisectBatchOnFunctionError=(0,f.expectBoolean)(r.BisectBatchOnFunctionError)),r.DestinationConfig!==void 0&&r.DestinationConfig!==null&&(n.DestinationConfig=as(r.DestinationConfig,t)),r.EventSourceArn!==void 0&&r.EventSourceArn!==null&&(n.EventSourceArn=(0,f.expectString)(r.EventSourceArn)),r.FilterCriteria!==void 0&&r.FilterCriteria!==null&&(n.FilterCriteria=Um(r.FilterCriteria,t)),r.FunctionArn!==void 0&&r.FunctionArn!==null&&(n.FunctionArn=(0,f.expectString)(r.FunctionArn)),r.FunctionResponseTypes!==void 0&&r.FunctionResponseTypes!==null&&(n.FunctionResponseTypes=Gm(r.FunctionResponseTypes,t)),r.LastModified!==void 0&&r.LastModified!==null&&(n.LastModified=(0,f.expectNonNull)((0,f.parseEpochTimestamp)((0,f.expectNumber)(r.LastModified)))),r.LastProcessingResult!==void 0&&r.LastProcessingResult!==null&&(n.LastProcessingResult=(0,f.expectString)(r.LastProcessingResult)),r.MaximumBatchingWindowInSeconds!==void 0&&r.MaximumBatchingWindowInSeconds!==null&&(n.MaximumBatchingWindowInSeconds=(0,f.expectInt32)(r.MaximumBatchingWindowInSeconds)),r.MaximumRecordAgeInSeconds!==void 0&&r.MaximumRecordAgeInSeconds!==null&&(n.MaximumRecordAgeInSeconds=(0,f.expectInt32)(r.MaximumRecordAgeInSeconds)),r.MaximumRetryAttempts!==void 0&&r.MaximumRetryAttempts!==null&&(n.MaximumRetryAttempts=(0,f.expectInt32)(r.MaximumRetryAttempts)),r.ParallelizationFactor!==void 0&&r.ParallelizationFactor!==null&&(n.ParallelizationFactor=(0,f.expectInt32)(r.ParallelizationFactor)),r.Queues!==void 0&&r.Queues!==null&&(n.Queues=Vm(r.Queues,t)),r.SelfManagedEventSource!==void 0&&r.SelfManagedEventSource!==null&&(n.SelfManagedEventSource=$m(r.SelfManagedEventSource,t)),r.SourceAccessConfigurations!==void 0&&r.SourceAccessConfigurations!==null&&(n.SourceAccessConfigurations=Hm(r.SourceAccessConfigurations,t)),r.StartingPosition!==void 0&&r.StartingPosition!==null&&(n.StartingPosition=(0,f.expectString)(r.StartingPosition)),r.StartingPositionTimestamp!==void 0&&r.StartingPositionTimestamp!==null&&(n.StartingPositionTimestamp=(0,f.expectNonNull)((0,f.parseEpochTimestamp)((0,f.expectNumber)(r.StartingPositionTimestamp)))),r.State!==void 0&&r.State!==null&&(n.State=(0,f.expectString)(r.State)),r.StateTransitionReason!==void 0&&r.StateTransitionReason!==null&&(n.StateTransitionReason=(0,f.expectString)(r.StateTransitionReason)),r.Topics!==void 0&&r.Topics!==null&&(n.Topics=Jm(r.Topics,t)),r.TumblingWindowInSeconds!==void 0&&r.TumblingWindowInSeconds!==null&&(n.TumblingWindowInSeconds=(0,f.expectInt32)(r.TumblingWindowInSeconds)),r.UUID!==void 0&&r.UUID!==null&&(n.UUID=(0,f.expectString)(r.UUID)),Promise.resolve(n)};z.deserializeAws_restJson1CreateEventSourceMappingCommand=m8e;var f8e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},p8e=async(e,t)=>{if(e.statusCode!==201&&e.statusCode>=300)return g8e(e,t);let n={$metadata:O(e),Architectures:void 0,CodeSha256:void 0,CodeSize:void 0,DeadLetterConfig:void 0,Description:void 0,Environment:void 0,EphemeralStorage:void 0,FileSystemConfigs:void 0,FunctionArn:void 0,FunctionName:void 0,Handler:void 0,ImageConfigResponse:void 0,KMSKeyArn:void 0,LastModified:void 0,LastUpdateStatus:void 0,LastUpdateStatusReason:void 0,LastUpdateStatusReasonCode:void 0,Layers:void 0,MasterArn:void 0,MemorySize:void 0,PackageType:void 0,RevisionId:void 0,Role:void 0,Runtime:void 0,SigningJobArn:void 0,SigningProfileVersionArn:void 0,State:void 0,StateReason:void 0,StateReasonCode:void 0,Timeout:void 0,TracingConfig:void 0,Version:void 0,VpcConfig:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.Architectures!==void 0&&r.Architectures!==null&&(n.Architectures=zd(r.Architectures,t)),r.CodeSha256!==void 0&&r.CodeSha256!==null&&(n.CodeSha256=(0,f.expectString)(r.CodeSha256)),r.CodeSize!==void 0&&r.CodeSize!==null&&(n.CodeSize=(0,f.expectLong)(r.CodeSize)),r.DeadLetterConfig!==void 0&&r.DeadLetterConfig!==null&&(n.DeadLetterConfig=qd(r.DeadLetterConfig,t)),r.Description!==void 0&&r.Description!==null&&(n.Description=(0,f.expectString)(r.Description)),r.Environment!==void 0&&r.Environment!==null&&(n.Environment=Ld(r.Environment,t)),r.EphemeralStorage!==void 0&&r.EphemeralStorage!==null&&(n.EphemeralStorage=Dd(r.EphemeralStorage,t)),r.FileSystemConfigs!==void 0&&r.FileSystemConfigs!==null&&(n.FileSystemConfigs=Md(r.FileSystemConfigs,t)),r.FunctionArn!==void 0&&r.FunctionArn!==null&&(n.FunctionArn=(0,f.expectString)(r.FunctionArn)),r.FunctionName!==void 0&&r.FunctionName!==null&&(n.FunctionName=(0,f.expectString)(r.FunctionName)),r.Handler!==void 0&&r.Handler!==null&&(n.Handler=(0,f.expectString)(r.Handler)),r.ImageConfigResponse!==void 0&&r.ImageConfigResponse!==null&&(n.ImageConfigResponse=Bd(r.ImageConfigResponse,t)),r.KMSKeyArn!==void 0&&r.KMSKeyArn!==null&&(n.KMSKeyArn=(0,f.expectString)(r.KMSKeyArn)),r.LastModified!==void 0&&r.LastModified!==null&&(n.LastModified=(0,f.expectString)(r.LastModified)),r.LastUpdateStatus!==void 0&&r.LastUpdateStatus!==null&&(n.LastUpdateStatus=(0,f.expectString)(r.LastUpdateStatus)),r.LastUpdateStatusReason!==void 0&&r.LastUpdateStatusReason!==null&&(n.LastUpdateStatusReason=(0,f.expectString)(r.LastUpdateStatusReason)),r.LastUpdateStatusReasonCode!==void 0&&r.LastUpdateStatusReasonCode!==null&&(n.LastUpdateStatusReasonCode=(0,f.expectString)(r.LastUpdateStatusReasonCode)),r.Layers!==void 0&&r.Layers!==null&&(n.Layers=Od(r.Layers,t)),r.MasterArn!==void 0&&r.MasterArn!==null&&(n.MasterArn=(0,f.expectString)(r.MasterArn)),r.MemorySize!==void 0&&r.MemorySize!==null&&(n.MemorySize=(0,f.expectInt32)(r.MemorySize)),r.PackageType!==void 0&&r.PackageType!==null&&(n.PackageType=(0,f.expectString)(r.PackageType)),r.RevisionId!==void 0&&r.RevisionId!==null&&(n.RevisionId=(0,f.expectString)(r.RevisionId)),r.Role!==void 0&&r.Role!==null&&(n.Role=(0,f.expectString)(r.Role)),r.Runtime!==void 0&&r.Runtime!==null&&(n.Runtime=(0,f.expectString)(r.Runtime)),r.SigningJobArn!==void 0&&r.SigningJobArn!==null&&(n.SigningJobArn=(0,f.expectString)(r.SigningJobArn)),r.SigningProfileVersionArn!==void 0&&r.SigningProfileVersionArn!==null&&(n.SigningProfileVersionArn=(0,f.expectString)(r.SigningProfileVersionArn)),r.State!==void 0&&r.State!==null&&(n.State=(0,f.expectString)(r.State)),r.StateReason!==void 0&&r.StateReason!==null&&(n.StateReason=(0,f.expectString)(r.StateReason)),r.StateReasonCode!==void 0&&r.StateReasonCode!==null&&(n.StateReasonCode=(0,f.expectString)(r.StateReasonCode)),r.Timeout!==void 0&&r.Timeout!==null&&(n.Timeout=(0,f.expectInt32)(r.Timeout)),r.TracingConfig!==void 0&&r.TracingConfig!==null&&(n.TracingConfig=Fd(r.TracingConfig,t)),r.Version!==void 0&&r.Version!==null&&(n.Version=(0,f.expectString)(r.Version)),r.VpcConfig!==void 0&&r.VpcConfig!==null&&(n.VpcConfig=jd(r.VpcConfig,t)),Promise.resolve(n)};z.deserializeAws_restJson1CreateFunctionCommand=p8e;var g8e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"CodeSigningConfigNotFoundException":case"com.amazonaws.lambda#CodeSigningConfigNotFoundException":throw await jm(n,t);case"CodeStorageExceededException":case"com.amazonaws.lambda#CodeStorageExceededException":throw await Fv(n,t);case"CodeVerificationFailedException":case"com.amazonaws.lambda#CodeVerificationFailedException":throw await iq(n,t);case"InvalidCodeSignatureException":case"com.amazonaws.lambda#InvalidCodeSignatureException":throw await sq(n,t);case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},h8e=async(e,t)=>{if(e.statusCode!==201&&e.statusCode>=300)return w8e(e,t);let n={$metadata:O(e),AuthType:void 0,Cors:void 0,CreationTime:void 0,FunctionArn:void 0,FunctionUrl:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.AuthType!==void 0&&r.AuthType!==null&&(n.AuthType=(0,f.expectString)(r.AuthType)),r.Cors!==void 0&&r.Cors!==null&&(n.Cors=Hv(r.Cors,t)),r.CreationTime!==void 0&&r.CreationTime!==null&&(n.CreationTime=(0,f.expectString)(r.CreationTime)),r.FunctionArn!==void 0&&r.FunctionArn!==null&&(n.FunctionArn=(0,f.expectString)(r.FunctionArn)),r.FunctionUrl!==void 0&&r.FunctionUrl!==null&&(n.FunctionUrl=(0,f.expectString)(r.FunctionUrl)),Promise.resolve(n)};z.deserializeAws_restJson1CreateFunctionUrlConfigCommand=h8e;var w8e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},y8e=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return S8e(e,t);let n={$metadata:O(e)};return await kn(e.body,t),Promise.resolve(n)};z.deserializeAws_restJson1DeleteAliasCommand=y8e;var S8e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},_8e=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return v8e(e,t);let n={$metadata:O(e)};return await kn(e.body,t),Promise.resolve(n)};z.deserializeAws_restJson1DeleteCodeSigningConfigCommand=_8e;var v8e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},C8e=async(e,t)=>{if(e.statusCode!==202&&e.statusCode>=300)return E8e(e,t);let n={$metadata:O(e),BatchSize:void 0,BisectBatchOnFunctionError:void 0,DestinationConfig:void 0,EventSourceArn:void 0,FilterCriteria:void 0,FunctionArn:void 0,FunctionResponseTypes:void 0,LastModified:void 0,LastProcessingResult:void 0,MaximumBatchingWindowInSeconds:void 0,MaximumRecordAgeInSeconds:void 0,MaximumRetryAttempts:void 0,ParallelizationFactor:void 0,Queues:void 0,SelfManagedEventSource:void 0,SourceAccessConfigurations:void 0,StartingPosition:void 0,StartingPositionTimestamp:void 0,State:void 0,StateTransitionReason:void 0,Topics:void 0,TumblingWindowInSeconds:void 0,UUID:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.BatchSize!==void 0&&r.BatchSize!==null&&(n.BatchSize=(0,f.expectInt32)(r.BatchSize)),r.BisectBatchOnFunctionError!==void 0&&r.BisectBatchOnFunctionError!==null&&(n.BisectBatchOnFunctionError=(0,f.expectBoolean)(r.BisectBatchOnFunctionError)),r.DestinationConfig!==void 0&&r.DestinationConfig!==null&&(n.DestinationConfig=as(r.DestinationConfig,t)),r.EventSourceArn!==void 0&&r.EventSourceArn!==null&&(n.EventSourceArn=(0,f.expectString)(r.EventSourceArn)),r.FilterCriteria!==void 0&&r.FilterCriteria!==null&&(n.FilterCriteria=Um(r.FilterCriteria,t)),r.FunctionArn!==void 0&&r.FunctionArn!==null&&(n.FunctionArn=(0,f.expectString)(r.FunctionArn)),r.FunctionResponseTypes!==void 0&&r.FunctionResponseTypes!==null&&(n.FunctionResponseTypes=Gm(r.FunctionResponseTypes,t)),r.LastModified!==void 0&&r.LastModified!==null&&(n.LastModified=(0,f.expectNonNull)((0,f.parseEpochTimestamp)((0,f.expectNumber)(r.LastModified)))),r.LastProcessingResult!==void 0&&r.LastProcessingResult!==null&&(n.LastProcessingResult=(0,f.expectString)(r.LastProcessingResult)),r.MaximumBatchingWindowInSeconds!==void 0&&r.MaximumBatchingWindowInSeconds!==null&&(n.MaximumBatchingWindowInSeconds=(0,f.expectInt32)(r.MaximumBatchingWindowInSeconds)),r.MaximumRecordAgeInSeconds!==void 0&&r.MaximumRecordAgeInSeconds!==null&&(n.MaximumRecordAgeInSeconds=(0,f.expectInt32)(r.MaximumRecordAgeInSeconds)),r.MaximumRetryAttempts!==void 0&&r.MaximumRetryAttempts!==null&&(n.MaximumRetryAttempts=(0,f.expectInt32)(r.MaximumRetryAttempts)),r.ParallelizationFactor!==void 0&&r.ParallelizationFactor!==null&&(n.ParallelizationFactor=(0,f.expectInt32)(r.ParallelizationFactor)),r.Queues!==void 0&&r.Queues!==null&&(n.Queues=Vm(r.Queues,t)),r.SelfManagedEventSource!==void 0&&r.SelfManagedEventSource!==null&&(n.SelfManagedEventSource=$m(r.SelfManagedEventSource,t)),r.SourceAccessConfigurations!==void 0&&r.SourceAccessConfigurations!==null&&(n.SourceAccessConfigurations=Hm(r.SourceAccessConfigurations,t)),r.StartingPosition!==void 0&&r.StartingPosition!==null&&(n.StartingPosition=(0,f.expectString)(r.StartingPosition)),r.StartingPositionTimestamp!==void 0&&r.StartingPositionTimestamp!==null&&(n.StartingPositionTimestamp=(0,f.expectNonNull)((0,f.parseEpochTimestamp)((0,f.expectNumber)(r.StartingPositionTimestamp)))),r.State!==void 0&&r.State!==null&&(n.State=(0,f.expectString)(r.State)),r.StateTransitionReason!==void 0&&r.StateTransitionReason!==null&&(n.StateTransitionReason=(0,f.expectString)(r.StateTransitionReason)),r.Topics!==void 0&&r.Topics!==null&&(n.Topics=Jm(r.Topics,t)),r.TumblingWindowInSeconds!==void 0&&r.TumblingWindowInSeconds!==null&&(n.TumblingWindowInSeconds=(0,f.expectInt32)(r.TumblingWindowInSeconds)),r.UUID!==void 0&&r.UUID!==null&&(n.UUID=(0,f.expectString)(r.UUID)),Promise.resolve(n)};z.deserializeAws_restJson1DeleteEventSourceMappingCommand=C8e;var E8e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceInUseException":case"com.amazonaws.lambda#ResourceInUseException":throw await $7(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},A8e=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return x8e(e,t);let n={$metadata:O(e)};return await kn(e.body,t),Promise.resolve(n)};z.deserializeAws_restJson1DeleteFunctionCommand=A8e;var x8e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},b8e=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return R8e(e,t);let n={$metadata:O(e)};return await kn(e.body,t),Promise.resolve(n)};z.deserializeAws_restJson1DeleteFunctionCodeSigningConfigCommand=b8e;var R8e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"CodeSigningConfigNotFoundException":case"com.amazonaws.lambda#CodeSigningConfigNotFoundException":throw await jm(n,t);case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},T8e=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return I8e(e,t);let n={$metadata:O(e)};return await kn(e.body,t),Promise.resolve(n)};z.deserializeAws_restJson1DeleteFunctionConcurrencyCommand=T8e;var I8e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},N8e=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return P8e(e,t);let n={$metadata:O(e)};return await kn(e.body,t),Promise.resolve(n)};z.deserializeAws_restJson1DeleteFunctionEventInvokeConfigCommand=N8e;var P8e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},k8e=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return z8e(e,t);let n={$metadata:O(e)};return await kn(e.body,t),Promise.resolve(n)};z.deserializeAws_restJson1DeleteFunctionUrlConfigCommand=k8e;var z8e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},q8e=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return L8e(e,t);let n={$metadata:O(e)};return await kn(e.body,t),Promise.resolve(n)};z.deserializeAws_restJson1DeleteLayerVersionCommand=q8e;var L8e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},D8e=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return M8e(e,t);let n={$metadata:O(e)};return await kn(e.body,t),Promise.resolve(n)};z.deserializeAws_restJson1DeleteProvisionedConcurrencyConfigCommand=D8e;var M8e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},B8e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return O8e(e,t);let n={$metadata:O(e),AccountLimit:void 0,AccountUsage:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.AccountLimit!==void 0&&r.AccountLimit!==null&&(n.AccountLimit=l4e(r.AccountLimit,t)),r.AccountUsage!==void 0&&r.AccountUsage!==null&&(n.AccountUsage=u4e(r.AccountUsage,t)),Promise.resolve(n)};z.deserializeAws_restJson1GetAccountSettingsCommand=B8e;var O8e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},F8e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return j8e(e,t);let n={$metadata:O(e),AliasArn:void 0,Description:void 0,FunctionVersion:void 0,Name:void 0,RevisionId:void 0,RoutingConfig:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.AliasArn!==void 0&&r.AliasArn!==null&&(n.AliasArn=(0,f.expectString)(r.AliasArn)),r.Description!==void 0&&r.Description!==null&&(n.Description=(0,f.expectString)(r.Description)),r.FunctionVersion!==void 0&&r.FunctionVersion!==null&&(n.FunctionVersion=(0,f.expectString)(r.FunctionVersion)),r.Name!==void 0&&r.Name!==null&&(n.Name=(0,f.expectString)(r.Name)),r.RevisionId!==void 0&&r.RevisionId!==null&&(n.RevisionId=(0,f.expectString)(r.RevisionId)),r.RoutingConfig!==void 0&&r.RoutingConfig!==null&&(n.RoutingConfig=Uv(r.RoutingConfig,t)),Promise.resolve(n)};z.deserializeAws_restJson1GetAliasCommand=F8e;var j8e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},U8e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return G8e(e,t);let n={$metadata:O(e),CodeSigningConfig:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.CodeSigningConfig!==void 0&&r.CodeSigningConfig!==null&&(n.CodeSigningConfig=Gv(r.CodeSigningConfig,t)),Promise.resolve(n)};z.deserializeAws_restJson1GetCodeSigningConfigCommand=U8e;var G8e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},V8e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return $8e(e,t);let n={$metadata:O(e),BatchSize:void 0,BisectBatchOnFunctionError:void 0,DestinationConfig:void 0,EventSourceArn:void 0,FilterCriteria:void 0,FunctionArn:void 0,FunctionResponseTypes:void 0,LastModified:void 0,LastProcessingResult:void 0,MaximumBatchingWindowInSeconds:void 0,MaximumRecordAgeInSeconds:void 0,MaximumRetryAttempts:void 0,ParallelizationFactor:void 0,Queues:void 0,SelfManagedEventSource:void 0,SourceAccessConfigurations:void 0,StartingPosition:void 0,StartingPositionTimestamp:void 0,State:void 0,StateTransitionReason:void 0,Topics:void 0,TumblingWindowInSeconds:void 0,UUID:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.BatchSize!==void 0&&r.BatchSize!==null&&(n.BatchSize=(0,f.expectInt32)(r.BatchSize)),r.BisectBatchOnFunctionError!==void 0&&r.BisectBatchOnFunctionError!==null&&(n.BisectBatchOnFunctionError=(0,f.expectBoolean)(r.BisectBatchOnFunctionError)),r.DestinationConfig!==void 0&&r.DestinationConfig!==null&&(n.DestinationConfig=as(r.DestinationConfig,t)),r.EventSourceArn!==void 0&&r.EventSourceArn!==null&&(n.EventSourceArn=(0,f.expectString)(r.EventSourceArn)),r.FilterCriteria!==void 0&&r.FilterCriteria!==null&&(n.FilterCriteria=Um(r.FilterCriteria,t)),r.FunctionArn!==void 0&&r.FunctionArn!==null&&(n.FunctionArn=(0,f.expectString)(r.FunctionArn)),r.FunctionResponseTypes!==void 0&&r.FunctionResponseTypes!==null&&(n.FunctionResponseTypes=Gm(r.FunctionResponseTypes,t)),r.LastModified!==void 0&&r.LastModified!==null&&(n.LastModified=(0,f.expectNonNull)((0,f.parseEpochTimestamp)((0,f.expectNumber)(r.LastModified)))),r.LastProcessingResult!==void 0&&r.LastProcessingResult!==null&&(n.LastProcessingResult=(0,f.expectString)(r.LastProcessingResult)),r.MaximumBatchingWindowInSeconds!==void 0&&r.MaximumBatchingWindowInSeconds!==null&&(n.MaximumBatchingWindowInSeconds=(0,f.expectInt32)(r.MaximumBatchingWindowInSeconds)),r.MaximumRecordAgeInSeconds!==void 0&&r.MaximumRecordAgeInSeconds!==null&&(n.MaximumRecordAgeInSeconds=(0,f.expectInt32)(r.MaximumRecordAgeInSeconds)),r.MaximumRetryAttempts!==void 0&&r.MaximumRetryAttempts!==null&&(n.MaximumRetryAttempts=(0,f.expectInt32)(r.MaximumRetryAttempts)),r.ParallelizationFactor!==void 0&&r.ParallelizationFactor!==null&&(n.ParallelizationFactor=(0,f.expectInt32)(r.ParallelizationFactor)),r.Queues!==void 0&&r.Queues!==null&&(n.Queues=Vm(r.Queues,t)),r.SelfManagedEventSource!==void 0&&r.SelfManagedEventSource!==null&&(n.SelfManagedEventSource=$m(r.SelfManagedEventSource,t)),r.SourceAccessConfigurations!==void 0&&r.SourceAccessConfigurations!==null&&(n.SourceAccessConfigurations=Hm(r.SourceAccessConfigurations,t)),r.StartingPosition!==void 0&&r.StartingPosition!==null&&(n.StartingPosition=(0,f.expectString)(r.StartingPosition)),r.StartingPositionTimestamp!==void 0&&r.StartingPositionTimestamp!==null&&(n.StartingPositionTimestamp=(0,f.expectNonNull)((0,f.parseEpochTimestamp)((0,f.expectNumber)(r.StartingPositionTimestamp)))),r.State!==void 0&&r.State!==null&&(n.State=(0,f.expectString)(r.State)),r.StateTransitionReason!==void 0&&r.StateTransitionReason!==null&&(n.StateTransitionReason=(0,f.expectString)(r.StateTransitionReason)),r.Topics!==void 0&&r.Topics!==null&&(n.Topics=Jm(r.Topics,t)),r.TumblingWindowInSeconds!==void 0&&r.TumblingWindowInSeconds!==null&&(n.TumblingWindowInSeconds=(0,f.expectInt32)(r.TumblingWindowInSeconds)),r.UUID!==void 0&&r.UUID!==null&&(n.UUID=(0,f.expectString)(r.UUID)),Promise.resolve(n)};z.deserializeAws_restJson1GetEventSourceMappingCommand=V8e;var $8e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},H8e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return J8e(e,t);let n={$metadata:O(e),Code:void 0,Concurrency:void 0,Configuration:void 0,Tags:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.Code!==void 0&&r.Code!==null&&(n.Code=P4e(r.Code,t)),r.Concurrency!==void 0&&r.Concurrency!==null&&(n.Concurrency=_4e(r.Concurrency,t)),r.Configuration!==void 0&&r.Configuration!==null&&(n.Configuration=cQ(r.Configuration,t)),r.Tags!==void 0&&r.Tags!==null&&(n.Tags=mQ(r.Tags,t)),Promise.resolve(n)};z.deserializeAws_restJson1GetFunctionCommand=H8e;var J8e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},X8e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return K8e(e,t);let n={$metadata:O(e),CodeSigningConfigArn:void 0,FunctionName:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.CodeSigningConfigArn!==void 0&&r.CodeSigningConfigArn!==null&&(n.CodeSigningConfigArn=(0,f.expectString)(r.CodeSigningConfigArn)),r.FunctionName!==void 0&&r.FunctionName!==null&&(n.FunctionName=(0,f.expectString)(r.FunctionName)),Promise.resolve(n)};z.deserializeAws_restJson1GetFunctionCodeSigningConfigCommand=X8e;var K8e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},W8e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Q8e(e,t);let n={$metadata:O(e),ReservedConcurrentExecutions:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.ReservedConcurrentExecutions!==void 0&&r.ReservedConcurrentExecutions!==null&&(n.ReservedConcurrentExecutions=(0,f.expectInt32)(r.ReservedConcurrentExecutions)),Promise.resolve(n)};z.deserializeAws_restJson1GetFunctionConcurrencyCommand=W8e;var Q8e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},Y8e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Z8e(e,t);let n={$metadata:O(e),Architectures:void 0,CodeSha256:void 0,CodeSize:void 0,DeadLetterConfig:void 0,Description:void 0,Environment:void 0,EphemeralStorage:void 0,FileSystemConfigs:void 0,FunctionArn:void 0,FunctionName:void 0,Handler:void 0,ImageConfigResponse:void 0,KMSKeyArn:void 0,LastModified:void 0,LastUpdateStatus:void 0,LastUpdateStatusReason:void 0,LastUpdateStatusReasonCode:void 0,Layers:void 0,MasterArn:void 0,MemorySize:void 0,PackageType:void 0,RevisionId:void 0,Role:void 0,Runtime:void 0,SigningJobArn:void 0,SigningProfileVersionArn:void 0,State:void 0,StateReason:void 0,StateReasonCode:void 0,Timeout:void 0,TracingConfig:void 0,Version:void 0,VpcConfig:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.Architectures!==void 0&&r.Architectures!==null&&(n.Architectures=zd(r.Architectures,t)),r.CodeSha256!==void 0&&r.CodeSha256!==null&&(n.CodeSha256=(0,f.expectString)(r.CodeSha256)),r.CodeSize!==void 0&&r.CodeSize!==null&&(n.CodeSize=(0,f.expectLong)(r.CodeSize)),r.DeadLetterConfig!==void 0&&r.DeadLetterConfig!==null&&(n.DeadLetterConfig=qd(r.DeadLetterConfig,t)),r.Description!==void 0&&r.Description!==null&&(n.Description=(0,f.expectString)(r.Description)),r.Environment!==void 0&&r.Environment!==null&&(n.Environment=Ld(r.Environment,t)),r.EphemeralStorage!==void 0&&r.EphemeralStorage!==null&&(n.EphemeralStorage=Dd(r.EphemeralStorage,t)),r.FileSystemConfigs!==void 0&&r.FileSystemConfigs!==null&&(n.FileSystemConfigs=Md(r.FileSystemConfigs,t)),r.FunctionArn!==void 0&&r.FunctionArn!==null&&(n.FunctionArn=(0,f.expectString)(r.FunctionArn)),r.FunctionName!==void 0&&r.FunctionName!==null&&(n.FunctionName=(0,f.expectString)(r.FunctionName)),r.Handler!==void 0&&r.Handler!==null&&(n.Handler=(0,f.expectString)(r.Handler)),r.ImageConfigResponse!==void 0&&r.ImageConfigResponse!==null&&(n.ImageConfigResponse=Bd(r.ImageConfigResponse,t)),r.KMSKeyArn!==void 0&&r.KMSKeyArn!==null&&(n.KMSKeyArn=(0,f.expectString)(r.KMSKeyArn)),r.LastModified!==void 0&&r.LastModified!==null&&(n.LastModified=(0,f.expectString)(r.LastModified)),r.LastUpdateStatus!==void 0&&r.LastUpdateStatus!==null&&(n.LastUpdateStatus=(0,f.expectString)(r.LastUpdateStatus)),r.LastUpdateStatusReason!==void 0&&r.LastUpdateStatusReason!==null&&(n.LastUpdateStatusReason=(0,f.expectString)(r.LastUpdateStatusReason)),r.LastUpdateStatusReasonCode!==void 0&&r.LastUpdateStatusReasonCode!==null&&(n.LastUpdateStatusReasonCode=(0,f.expectString)(r.LastUpdateStatusReasonCode)),r.Layers!==void 0&&r.Layers!==null&&(n.Layers=Od(r.Layers,t)),r.MasterArn!==void 0&&r.MasterArn!==null&&(n.MasterArn=(0,f.expectString)(r.MasterArn)),r.MemorySize!==void 0&&r.MemorySize!==null&&(n.MemorySize=(0,f.expectInt32)(r.MemorySize)),r.PackageType!==void 0&&r.PackageType!==null&&(n.PackageType=(0,f.expectString)(r.PackageType)),r.RevisionId!==void 0&&r.RevisionId!==null&&(n.RevisionId=(0,f.expectString)(r.RevisionId)),r.Role!==void 0&&r.Role!==null&&(n.Role=(0,f.expectString)(r.Role)),r.Runtime!==void 0&&r.Runtime!==null&&(n.Runtime=(0,f.expectString)(r.Runtime)),r.SigningJobArn!==void 0&&r.SigningJobArn!==null&&(n.SigningJobArn=(0,f.expectString)(r.SigningJobArn)),r.SigningProfileVersionArn!==void 0&&r.SigningProfileVersionArn!==null&&(n.SigningProfileVersionArn=(0,f.expectString)(r.SigningProfileVersionArn)),r.State!==void 0&&r.State!==null&&(n.State=(0,f.expectString)(r.State)),r.StateReason!==void 0&&r.StateReason!==null&&(n.StateReason=(0,f.expectString)(r.StateReason)),r.StateReasonCode!==void 0&&r.StateReasonCode!==null&&(n.StateReasonCode=(0,f.expectString)(r.StateReasonCode)),r.Timeout!==void 0&&r.Timeout!==null&&(n.Timeout=(0,f.expectInt32)(r.Timeout)),r.TracingConfig!==void 0&&r.TracingConfig!==null&&(n.TracingConfig=Fd(r.TracingConfig,t)),r.Version!==void 0&&r.Version!==null&&(n.Version=(0,f.expectString)(r.Version)),r.VpcConfig!==void 0&&r.VpcConfig!==null&&(n.VpcConfig=jd(r.VpcConfig,t)),Promise.resolve(n)};z.deserializeAws_restJson1GetFunctionConfigurationCommand=Y8e;var Z8e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},e5e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return t5e(e,t);let n={$metadata:O(e),DestinationConfig:void 0,FunctionArn:void 0,LastModified:void 0,MaximumEventAgeInSeconds:void 0,MaximumRetryAttempts:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.DestinationConfig!==void 0&&r.DestinationConfig!==null&&(n.DestinationConfig=as(r.DestinationConfig,t)),r.FunctionArn!==void 0&&r.FunctionArn!==null&&(n.FunctionArn=(0,f.expectString)(r.FunctionArn)),r.LastModified!==void 0&&r.LastModified!==null&&(n.LastModified=(0,f.expectNonNull)((0,f.parseEpochTimestamp)((0,f.expectNumber)(r.LastModified)))),r.MaximumEventAgeInSeconds!==void 0&&r.MaximumEventAgeInSeconds!==null&&(n.MaximumEventAgeInSeconds=(0,f.expectInt32)(r.MaximumEventAgeInSeconds)),r.MaximumRetryAttempts!==void 0&&r.MaximumRetryAttempts!==null&&(n.MaximumRetryAttempts=(0,f.expectInt32)(r.MaximumRetryAttempts)),Promise.resolve(n)};z.deserializeAws_restJson1GetFunctionEventInvokeConfigCommand=e5e;var t5e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},n5e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return r5e(e,t);let n={$metadata:O(e),AuthType:void 0,Cors:void 0,CreationTime:void 0,FunctionArn:void 0,FunctionUrl:void 0,LastModifiedTime:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.AuthType!==void 0&&r.AuthType!==null&&(n.AuthType=(0,f.expectString)(r.AuthType)),r.Cors!==void 0&&r.Cors!==null&&(n.Cors=Hv(r.Cors,t)),r.CreationTime!==void 0&&r.CreationTime!==null&&(n.CreationTime=(0,f.expectString)(r.CreationTime)),r.FunctionArn!==void 0&&r.FunctionArn!==null&&(n.FunctionArn=(0,f.expectString)(r.FunctionArn)),r.FunctionUrl!==void 0&&r.FunctionUrl!==null&&(n.FunctionUrl=(0,f.expectString)(r.FunctionUrl)),r.LastModifiedTime!==void 0&&r.LastModifiedTime!==null&&(n.LastModifiedTime=(0,f.expectString)(r.LastModifiedTime)),Promise.resolve(n)};z.deserializeAws_restJson1GetFunctionUrlConfigCommand=n5e;var r5e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},i5e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return s5e(e,t);let n={$metadata:O(e),CompatibleArchitectures:void 0,CompatibleRuntimes:void 0,Content:void 0,CreatedDate:void 0,Description:void 0,LayerArn:void 0,LayerVersionArn:void 0,LicenseInfo:void 0,Version:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.CompatibleArchitectures!==void 0&&r.CompatibleArchitectures!==null&&(n.CompatibleArchitectures=Vv(r.CompatibleArchitectures,t)),r.CompatibleRuntimes!==void 0&&r.CompatibleRuntimes!==null&&(n.CompatibleRuntimes=$v(r.CompatibleRuntimes,t)),r.Content!==void 0&&r.Content!==null&&(n.Content=oq(r.Content,t)),r.CreatedDate!==void 0&&r.CreatedDate!==null&&(n.CreatedDate=(0,f.expectString)(r.CreatedDate)),r.Description!==void 0&&r.Description!==null&&(n.Description=(0,f.expectString)(r.Description)),r.LayerArn!==void 0&&r.LayerArn!==null&&(n.LayerArn=(0,f.expectString)(r.LayerArn)),r.LayerVersionArn!==void 0&&r.LayerVersionArn!==null&&(n.LayerVersionArn=(0,f.expectString)(r.LayerVersionArn)),r.LicenseInfo!==void 0&&r.LicenseInfo!==null&&(n.LicenseInfo=(0,f.expectString)(r.LicenseInfo)),r.Version!==void 0&&r.Version!==null&&(n.Version=(0,f.expectLong)(r.Version)),Promise.resolve(n)};z.deserializeAws_restJson1GetLayerVersionCommand=i5e;var s5e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},o5e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return a5e(e,t);let n={$metadata:O(e),CompatibleArchitectures:void 0,CompatibleRuntimes:void 0,Content:void 0,CreatedDate:void 0,Description:void 0,LayerArn:void 0,LayerVersionArn:void 0,LicenseInfo:void 0,Version:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.CompatibleArchitectures!==void 0&&r.CompatibleArchitectures!==null&&(n.CompatibleArchitectures=Vv(r.CompatibleArchitectures,t)),r.CompatibleRuntimes!==void 0&&r.CompatibleRuntimes!==null&&(n.CompatibleRuntimes=$v(r.CompatibleRuntimes,t)),r.Content!==void 0&&r.Content!==null&&(n.Content=oq(r.Content,t)),r.CreatedDate!==void 0&&r.CreatedDate!==null&&(n.CreatedDate=(0,f.expectString)(r.CreatedDate)),r.Description!==void 0&&r.Description!==null&&(n.Description=(0,f.expectString)(r.Description)),r.LayerArn!==void 0&&r.LayerArn!==null&&(n.LayerArn=(0,f.expectString)(r.LayerArn)),r.LayerVersionArn!==void 0&&r.LayerVersionArn!==null&&(n.LayerVersionArn=(0,f.expectString)(r.LayerVersionArn)),r.LicenseInfo!==void 0&&r.LicenseInfo!==null&&(n.LicenseInfo=(0,f.expectString)(r.LicenseInfo)),r.Version!==void 0&&r.Version!==null&&(n.Version=(0,f.expectLong)(r.Version)),Promise.resolve(n)};z.deserializeAws_restJson1GetLayerVersionByArnCommand=o5e;var a5e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},d5e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return c5e(e,t);let n={$metadata:O(e),Policy:void 0,RevisionId:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.Policy!==void 0&&r.Policy!==null&&(n.Policy=(0,f.expectString)(r.Policy)),r.RevisionId!==void 0&&r.RevisionId!==null&&(n.RevisionId=(0,f.expectString)(r.RevisionId)),Promise.resolve(n)};z.deserializeAws_restJson1GetLayerVersionPolicyCommand=d5e;var c5e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},l5e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return u5e(e,t);let n={$metadata:O(e),Policy:void 0,RevisionId:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.Policy!==void 0&&r.Policy!==null&&(n.Policy=(0,f.expectString)(r.Policy)),r.RevisionId!==void 0&&r.RevisionId!==null&&(n.RevisionId=(0,f.expectString)(r.RevisionId)),Promise.resolve(n)};z.deserializeAws_restJson1GetPolicyCommand=l5e;var u5e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},m5e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return f5e(e,t);let n={$metadata:O(e),AllocatedProvisionedConcurrentExecutions:void 0,AvailableProvisionedConcurrentExecutions:void 0,LastModified:void 0,RequestedProvisionedConcurrentExecutions:void 0,Status:void 0,StatusReason:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.AllocatedProvisionedConcurrentExecutions!==void 0&&r.AllocatedProvisionedConcurrentExecutions!==null&&(n.AllocatedProvisionedConcurrentExecutions=(0,f.expectInt32)(r.AllocatedProvisionedConcurrentExecutions)),r.AvailableProvisionedConcurrentExecutions!==void 0&&r.AvailableProvisionedConcurrentExecutions!==null&&(n.AvailableProvisionedConcurrentExecutions=(0,f.expectInt32)(r.AvailableProvisionedConcurrentExecutions)),r.LastModified!==void 0&&r.LastModified!==null&&(n.LastModified=(0,f.expectString)(r.LastModified)),r.RequestedProvisionedConcurrentExecutions!==void 0&&r.RequestedProvisionedConcurrentExecutions!==null&&(n.RequestedProvisionedConcurrentExecutions=(0,f.expectInt32)(r.RequestedProvisionedConcurrentExecutions)),r.Status!==void 0&&r.Status!==null&&(n.Status=(0,f.expectString)(r.Status)),r.StatusReason!==void 0&&r.StatusReason!==null&&(n.StatusReason=(0,f.expectString)(r.StatusReason)),Promise.resolve(n)};z.deserializeAws_restJson1GetProvisionedConcurrencyConfigCommand=m5e;var f5e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ProvisionedConcurrencyConfigNotFoundException":case"com.amazonaws.lambda#ProvisionedConcurrencyConfigNotFoundException":throw await M6e(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},p5e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return g5e(e,t);let n={$metadata:O(e),ExecutedVersion:void 0,FunctionError:void 0,LogResult:void 0,Payload:void 0,StatusCode:void 0};e.headers["x-amz-function-error"]!==void 0&&(n.FunctionError=e.headers["x-amz-function-error"]),e.headers["x-amz-log-result"]!==void 0&&(n.LogResult=e.headers["x-amz-log-result"]),e.headers["x-amz-executed-version"]!==void 0&&(n.ExecutedVersion=e.headers["x-amz-executed-version"]);let r=await kn(e.body,t);return n.Payload=r,n.StatusCode===void 0&&(n.StatusCode=e.statusCode),Promise.resolve(n)};z.deserializeAws_restJson1InvokeCommand=p5e;var g5e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"EC2AccessDeniedException":case"com.amazonaws.lambda#EC2AccessDeniedException":throw await C6e(n,t);case"EC2ThrottledException":case"com.amazonaws.lambda#EC2ThrottledException":throw await E6e(n,t);case"EC2UnexpectedException":case"com.amazonaws.lambda#EC2UnexpectedException":throw await A6e(n,t);case"EFSIOException":case"com.amazonaws.lambda#EFSIOException":throw await x6e(n,t);case"EFSMountConnectivityException":case"com.amazonaws.lambda#EFSMountConnectivityException":throw await b6e(n,t);case"EFSMountFailureException":case"com.amazonaws.lambda#EFSMountFailureException":throw await R6e(n,t);case"EFSMountTimeoutException":case"com.amazonaws.lambda#EFSMountTimeoutException":throw await T6e(n,t);case"ENILimitReachedException":case"com.amazonaws.lambda#ENILimitReachedException":throw await I6e(n,t);case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"InvalidRequestContentException":case"com.amazonaws.lambda#InvalidRequestContentException":throw await U7(n,t);case"InvalidRuntimeException":case"com.amazonaws.lambda#InvalidRuntimeException":throw await G7(n,t);case"InvalidSecurityGroupIDException":case"com.amazonaws.lambda#InvalidSecurityGroupIDException":throw await N6e(n,t);case"InvalidSubnetIDException":case"com.amazonaws.lambda#InvalidSubnetIDException":throw await P6e(n,t);case"InvalidZipFileException":case"com.amazonaws.lambda#InvalidZipFileException":throw await k6e(n,t);case"KMSAccessDeniedException":case"com.amazonaws.lambda#KMSAccessDeniedException":throw await z6e(n,t);case"KMSDisabledException":case"com.amazonaws.lambda#KMSDisabledException":throw await q6e(n,t);case"KMSInvalidStateException":case"com.amazonaws.lambda#KMSInvalidStateException":throw await L6e(n,t);case"KMSNotFoundException":case"com.amazonaws.lambda#KMSNotFoundException":throw await D6e(n,t);case"RequestTooLargeException":case"com.amazonaws.lambda#RequestTooLargeException":throw await B6e(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ResourceNotReadyException":case"com.amazonaws.lambda#ResourceNotReadyException":throw await O6e(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"SubnetIPAddressLimitReachedException":case"com.amazonaws.lambda#SubnetIPAddressLimitReachedException":throw await F6e(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);case"UnsupportedMediaTypeException":case"com.amazonaws.lambda#UnsupportedMediaTypeException":throw await j6e(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},h5e=async(e,t)=>{if(e.statusCode!==202&&e.statusCode>=300)return w5e(e,t);let n={$metadata:O(e),Status:void 0};return n.Status===void 0&&(n.Status=e.statusCode),await kn(e.body,t),Promise.resolve(n)};z.deserializeAws_restJson1InvokeAsyncCommand=h5e;var w5e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidRequestContentException":case"com.amazonaws.lambda#InvalidRequestContentException":throw await U7(n,t);case"InvalidRuntimeException":case"com.amazonaws.lambda#InvalidRuntimeException":throw await G7(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},y5e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return S5e(e,t);let n={$metadata:O(e),Aliases:void 0,NextMarker:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.Aliases!==void 0&&r.Aliases!==null&&(n.Aliases=p4e(r.Aliases,t)),r.NextMarker!==void 0&&r.NextMarker!==null&&(n.NextMarker=(0,f.expectString)(r.NextMarker)),Promise.resolve(n)};z.deserializeAws_restJson1ListAliasesCommand=y5e;var S5e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},_5e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return v5e(e,t);let n={$metadata:O(e),CodeSigningConfigs:void 0,NextMarker:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.CodeSigningConfigs!==void 0&&r.CodeSigningConfigs!==null&&(n.CodeSigningConfigs=y4e(r.CodeSigningConfigs,t)),r.NextMarker!==void 0&&r.NextMarker!==null&&(n.NextMarker=(0,f.expectString)(r.NextMarker)),Promise.resolve(n)};z.deserializeAws_restJson1ListCodeSigningConfigsCommand=_5e;var v5e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},C5e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return E5e(e,t);let n={$metadata:O(e),EventSourceMappings:void 0,NextMarker:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.EventSourceMappings!==void 0&&r.EventSourceMappings!==null&&(n.EventSourceMappings=b4e(r.EventSourceMappings,t)),r.NextMarker!==void 0&&r.NextMarker!==null&&(n.NextMarker=(0,f.expectString)(r.NextMarker)),Promise.resolve(n)};z.deserializeAws_restJson1ListEventSourceMappingsCommand=C5e;var E5e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},A5e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return x5e(e,t);let n={$metadata:O(e),FunctionEventInvokeConfigs:void 0,NextMarker:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.FunctionEventInvokeConfigs!==void 0&&r.FunctionEventInvokeConfigs!==null&&(n.FunctionEventInvokeConfigs=z4e(r.FunctionEventInvokeConfigs,t)),r.NextMarker!==void 0&&r.NextMarker!==null&&(n.NextMarker=(0,f.expectString)(r.NextMarker)),Promise.resolve(n)};z.deserializeAws_restJson1ListFunctionEventInvokeConfigsCommand=A5e;var x5e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},b5e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return R5e(e,t);let n={$metadata:O(e),Functions:void 0,NextMarker:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.Functions!==void 0&&r.Functions!==null&&(n.Functions=lQ(r.Functions,t)),r.NextMarker!==void 0&&r.NextMarker!==null&&(n.NextMarker=(0,f.expectString)(r.NextMarker)),Promise.resolve(n)};z.deserializeAws_restJson1ListFunctionsCommand=b5e;var R5e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},T5e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return I5e(e,t);let n={$metadata:O(e),FunctionArns:void 0,NextMarker:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.FunctionArns!==void 0&&r.FunctionArns!==null&&(n.FunctionArns=N4e(r.FunctionArns,t)),r.NextMarker!==void 0&&r.NextMarker!==null&&(n.NextMarker=(0,f.expectString)(r.NextMarker)),Promise.resolve(n)};z.deserializeAws_restJson1ListFunctionsByCodeSigningConfigCommand=T5e;var I5e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},N5e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return P5e(e,t);let n={$metadata:O(e),FunctionUrlConfigs:void 0,NextMarker:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.FunctionUrlConfigs!==void 0&&r.FunctionUrlConfigs!==null&&(n.FunctionUrlConfigs=L4e(r.FunctionUrlConfigs,t)),r.NextMarker!==void 0&&r.NextMarker!==null&&(n.NextMarker=(0,f.expectString)(r.NextMarker)),Promise.resolve(n)};z.deserializeAws_restJson1ListFunctionUrlConfigsCommand=N5e;var P5e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},k5e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return z5e(e,t);let n={$metadata:O(e),Layers:void 0,NextMarker:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.Layers!==void 0&&r.Layers!==null&&(n.Layers=O4e(r.Layers,t)),r.NextMarker!==void 0&&r.NextMarker!==null&&(n.NextMarker=(0,f.expectString)(r.NextMarker)),Promise.resolve(n)};z.deserializeAws_restJson1ListLayersCommand=k5e;var z5e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},q5e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return L5e(e,t);let n={$metadata:O(e),LayerVersions:void 0,NextMarker:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.LayerVersions!==void 0&&r.LayerVersions!==null&&(n.LayerVersions=j4e(r.LayerVersions,t)),r.NextMarker!==void 0&&r.NextMarker!==null&&(n.NextMarker=(0,f.expectString)(r.NextMarker)),Promise.resolve(n)};z.deserializeAws_restJson1ListLayerVersionsCommand=q5e;var L5e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},D5e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return M5e(e,t);let n={$metadata:O(e),NextMarker:void 0,ProvisionedConcurrencyConfigs:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.NextMarker!==void 0&&r.NextMarker!==null&&(n.NextMarker=(0,f.expectString)(r.NextMarker)),r.ProvisionedConcurrencyConfigs!==void 0&&r.ProvisionedConcurrencyConfigs!==null&&(n.ProvisionedConcurrencyConfigs=V4e(r.ProvisionedConcurrencyConfigs,t)),Promise.resolve(n)};z.deserializeAws_restJson1ListProvisionedConcurrencyConfigsCommand=D5e;var M5e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},B5e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return O5e(e,t);let n={$metadata:O(e),Tags:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.Tags!==void 0&&r.Tags!==null&&(n.Tags=mQ(r.Tags,t)),Promise.resolve(n)};z.deserializeAws_restJson1ListTagsCommand=B5e;var O5e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},F5e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return j5e(e,t);let n={$metadata:O(e),NextMarker:void 0,Versions:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.NextMarker!==void 0&&r.NextMarker!==null&&(n.NextMarker=(0,f.expectString)(r.NextMarker)),r.Versions!==void 0&&r.Versions!==null&&(n.Versions=lQ(r.Versions,t)),Promise.resolve(n)};z.deserializeAws_restJson1ListVersionsByFunctionCommand=F5e;var j5e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},U5e=async(e,t)=>{if(e.statusCode!==201&&e.statusCode>=300)return G5e(e,t);let n={$metadata:O(e),CompatibleArchitectures:void 0,CompatibleRuntimes:void 0,Content:void 0,CreatedDate:void 0,Description:void 0,LayerArn:void 0,LayerVersionArn:void 0,LicenseInfo:void 0,Version:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.CompatibleArchitectures!==void 0&&r.CompatibleArchitectures!==null&&(n.CompatibleArchitectures=Vv(r.CompatibleArchitectures,t)),r.CompatibleRuntimes!==void 0&&r.CompatibleRuntimes!==null&&(n.CompatibleRuntimes=$v(r.CompatibleRuntimes,t)),r.Content!==void 0&&r.Content!==null&&(n.Content=oq(r.Content,t)),r.CreatedDate!==void 0&&r.CreatedDate!==null&&(n.CreatedDate=(0,f.expectString)(r.CreatedDate)),r.Description!==void 0&&r.Description!==null&&(n.Description=(0,f.expectString)(r.Description)),r.LayerArn!==void 0&&r.LayerArn!==null&&(n.LayerArn=(0,f.expectString)(r.LayerArn)),r.LayerVersionArn!==void 0&&r.LayerVersionArn!==null&&(n.LayerVersionArn=(0,f.expectString)(r.LayerVersionArn)),r.LicenseInfo!==void 0&&r.LicenseInfo!==null&&(n.LicenseInfo=(0,f.expectString)(r.LicenseInfo)),r.Version!==void 0&&r.Version!==null&&(n.Version=(0,f.expectLong)(r.Version)),Promise.resolve(n)};z.deserializeAws_restJson1PublishLayerVersionCommand=U5e;var G5e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"CodeStorageExceededException":case"com.amazonaws.lambda#CodeStorageExceededException":throw await Fv(n,t);case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},V5e=async(e,t)=>{if(e.statusCode!==201&&e.statusCode>=300)return $5e(e,t);let n={$metadata:O(e),Architectures:void 0,CodeSha256:void 0,CodeSize:void 0,DeadLetterConfig:void 0,Description:void 0,Environment:void 0,EphemeralStorage:void 0,FileSystemConfigs:void 0,FunctionArn:void 0,FunctionName:void 0,Handler:void 0,ImageConfigResponse:void 0,KMSKeyArn:void 0,LastModified:void 0,LastUpdateStatus:void 0,LastUpdateStatusReason:void 0,LastUpdateStatusReasonCode:void 0,Layers:void 0,MasterArn:void 0,MemorySize:void 0,PackageType:void 0,RevisionId:void 0,Role:void 0,Runtime:void 0,SigningJobArn:void 0,SigningProfileVersionArn:void 0,State:void 0,StateReason:void 0,StateReasonCode:void 0,Timeout:void 0,TracingConfig:void 0,Version:void 0,VpcConfig:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.Architectures!==void 0&&r.Architectures!==null&&(n.Architectures=zd(r.Architectures,t)),r.CodeSha256!==void 0&&r.CodeSha256!==null&&(n.CodeSha256=(0,f.expectString)(r.CodeSha256)),r.CodeSize!==void 0&&r.CodeSize!==null&&(n.CodeSize=(0,f.expectLong)(r.CodeSize)),r.DeadLetterConfig!==void 0&&r.DeadLetterConfig!==null&&(n.DeadLetterConfig=qd(r.DeadLetterConfig,t)),r.Description!==void 0&&r.Description!==null&&(n.Description=(0,f.expectString)(r.Description)),r.Environment!==void 0&&r.Environment!==null&&(n.Environment=Ld(r.Environment,t)),r.EphemeralStorage!==void 0&&r.EphemeralStorage!==null&&(n.EphemeralStorage=Dd(r.EphemeralStorage,t)),r.FileSystemConfigs!==void 0&&r.FileSystemConfigs!==null&&(n.FileSystemConfigs=Md(r.FileSystemConfigs,t)),r.FunctionArn!==void 0&&r.FunctionArn!==null&&(n.FunctionArn=(0,f.expectString)(r.FunctionArn)),r.FunctionName!==void 0&&r.FunctionName!==null&&(n.FunctionName=(0,f.expectString)(r.FunctionName)),r.Handler!==void 0&&r.Handler!==null&&(n.Handler=(0,f.expectString)(r.Handler)),r.ImageConfigResponse!==void 0&&r.ImageConfigResponse!==null&&(n.ImageConfigResponse=Bd(r.ImageConfigResponse,t)),r.KMSKeyArn!==void 0&&r.KMSKeyArn!==null&&(n.KMSKeyArn=(0,f.expectString)(r.KMSKeyArn)),r.LastModified!==void 0&&r.LastModified!==null&&(n.LastModified=(0,f.expectString)(r.LastModified)),r.LastUpdateStatus!==void 0&&r.LastUpdateStatus!==null&&(n.LastUpdateStatus=(0,f.expectString)(r.LastUpdateStatus)),r.LastUpdateStatusReason!==void 0&&r.LastUpdateStatusReason!==null&&(n.LastUpdateStatusReason=(0,f.expectString)(r.LastUpdateStatusReason)),r.LastUpdateStatusReasonCode!==void 0&&r.LastUpdateStatusReasonCode!==null&&(n.LastUpdateStatusReasonCode=(0,f.expectString)(r.LastUpdateStatusReasonCode)),r.Layers!==void 0&&r.Layers!==null&&(n.Layers=Od(r.Layers,t)),r.MasterArn!==void 0&&r.MasterArn!==null&&(n.MasterArn=(0,f.expectString)(r.MasterArn)),r.MemorySize!==void 0&&r.MemorySize!==null&&(n.MemorySize=(0,f.expectInt32)(r.MemorySize)),r.PackageType!==void 0&&r.PackageType!==null&&(n.PackageType=(0,f.expectString)(r.PackageType)),r.RevisionId!==void 0&&r.RevisionId!==null&&(n.RevisionId=(0,f.expectString)(r.RevisionId)),r.Role!==void 0&&r.Role!==null&&(n.Role=(0,f.expectString)(r.Role)),r.Runtime!==void 0&&r.Runtime!==null&&(n.Runtime=(0,f.expectString)(r.Runtime)),r.SigningJobArn!==void 0&&r.SigningJobArn!==null&&(n.SigningJobArn=(0,f.expectString)(r.SigningJobArn)),r.SigningProfileVersionArn!==void 0&&r.SigningProfileVersionArn!==null&&(n.SigningProfileVersionArn=(0,f.expectString)(r.SigningProfileVersionArn)),r.State!==void 0&&r.State!==null&&(n.State=(0,f.expectString)(r.State)),r.StateReason!==void 0&&r.StateReason!==null&&(n.StateReason=(0,f.expectString)(r.StateReason)),r.StateReasonCode!==void 0&&r.StateReasonCode!==null&&(n.StateReasonCode=(0,f.expectString)(r.StateReasonCode)),r.Timeout!==void 0&&r.Timeout!==null&&(n.Timeout=(0,f.expectInt32)(r.Timeout)),r.TracingConfig!==void 0&&r.TracingConfig!==null&&(n.TracingConfig=Fd(r.TracingConfig,t)),r.Version!==void 0&&r.Version!==null&&(n.Version=(0,f.expectString)(r.Version)),r.VpcConfig!==void 0&&r.VpcConfig!==null&&(n.VpcConfig=jd(r.VpcConfig,t)),Promise.resolve(n)};z.deserializeAws_restJson1PublishVersionCommand=V5e;var $5e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"CodeStorageExceededException":case"com.amazonaws.lambda#CodeStorageExceededException":throw await Fv(n,t);case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"PreconditionFailedException":case"com.amazonaws.lambda#PreconditionFailedException":throw await ao(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},H5e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return J5e(e,t);let n={$metadata:O(e),CodeSigningConfigArn:void 0,FunctionName:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.CodeSigningConfigArn!==void 0&&r.CodeSigningConfigArn!==null&&(n.CodeSigningConfigArn=(0,f.expectString)(r.CodeSigningConfigArn)),r.FunctionName!==void 0&&r.FunctionName!==null&&(n.FunctionName=(0,f.expectString)(r.FunctionName)),Promise.resolve(n)};z.deserializeAws_restJson1PutFunctionCodeSigningConfigCommand=H5e;var J5e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"CodeSigningConfigNotFoundException":case"com.amazonaws.lambda#CodeSigningConfigNotFoundException":throw await jm(n,t);case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},X5e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return K5e(e,t);let n={$metadata:O(e),ReservedConcurrentExecutions:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.ReservedConcurrentExecutions!==void 0&&r.ReservedConcurrentExecutions!==null&&(n.ReservedConcurrentExecutions=(0,f.expectInt32)(r.ReservedConcurrentExecutions)),Promise.resolve(n)};z.deserializeAws_restJson1PutFunctionConcurrencyCommand=X5e;var K5e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},W5e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Q5e(e,t);let n={$metadata:O(e),DestinationConfig:void 0,FunctionArn:void 0,LastModified:void 0,MaximumEventAgeInSeconds:void 0,MaximumRetryAttempts:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.DestinationConfig!==void 0&&r.DestinationConfig!==null&&(n.DestinationConfig=as(r.DestinationConfig,t)),r.FunctionArn!==void 0&&r.FunctionArn!==null&&(n.FunctionArn=(0,f.expectString)(r.FunctionArn)),r.LastModified!==void 0&&r.LastModified!==null&&(n.LastModified=(0,f.expectNonNull)((0,f.parseEpochTimestamp)((0,f.expectNumber)(r.LastModified)))),r.MaximumEventAgeInSeconds!==void 0&&r.MaximumEventAgeInSeconds!==null&&(n.MaximumEventAgeInSeconds=(0,f.expectInt32)(r.MaximumEventAgeInSeconds)),r.MaximumRetryAttempts!==void 0&&r.MaximumRetryAttempts!==null&&(n.MaximumRetryAttempts=(0,f.expectInt32)(r.MaximumRetryAttempts)),Promise.resolve(n)};z.deserializeAws_restJson1PutFunctionEventInvokeConfigCommand=W5e;var Q5e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},Y5e=async(e,t)=>{if(e.statusCode!==202&&e.statusCode>=300)return Z5e(e,t);let n={$metadata:O(e),AllocatedProvisionedConcurrentExecutions:void 0,AvailableProvisionedConcurrentExecutions:void 0,LastModified:void 0,RequestedProvisionedConcurrentExecutions:void 0,Status:void 0,StatusReason:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.AllocatedProvisionedConcurrentExecutions!==void 0&&r.AllocatedProvisionedConcurrentExecutions!==null&&(n.AllocatedProvisionedConcurrentExecutions=(0,f.expectInt32)(r.AllocatedProvisionedConcurrentExecutions)),r.AvailableProvisionedConcurrentExecutions!==void 0&&r.AvailableProvisionedConcurrentExecutions!==null&&(n.AvailableProvisionedConcurrentExecutions=(0,f.expectInt32)(r.AvailableProvisionedConcurrentExecutions)),r.LastModified!==void 0&&r.LastModified!==null&&(n.LastModified=(0,f.expectString)(r.LastModified)),r.RequestedProvisionedConcurrentExecutions!==void 0&&r.RequestedProvisionedConcurrentExecutions!==null&&(n.RequestedProvisionedConcurrentExecutions=(0,f.expectInt32)(r.RequestedProvisionedConcurrentExecutions)),r.Status!==void 0&&r.Status!==null&&(n.Status=(0,f.expectString)(r.Status)),r.StatusReason!==void 0&&r.StatusReason!==null&&(n.StatusReason=(0,f.expectString)(r.StatusReason)),Promise.resolve(n)};z.deserializeAws_restJson1PutProvisionedConcurrencyConfigCommand=Y5e;var Z5e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},e6e=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return t6e(e,t);let n={$metadata:O(e)};return await kn(e.body,t),Promise.resolve(n)};z.deserializeAws_restJson1RemoveLayerVersionPermissionCommand=e6e;var t6e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"PreconditionFailedException":case"com.amazonaws.lambda#PreconditionFailedException":throw await ao(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},n6e=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return r6e(e,t);let n={$metadata:O(e)};return await kn(e.body,t),Promise.resolve(n)};z.deserializeAws_restJson1RemovePermissionCommand=n6e;var r6e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"PreconditionFailedException":case"com.amazonaws.lambda#PreconditionFailedException":throw await ao(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},i6e=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return s6e(e,t);let n={$metadata:O(e)};return await kn(e.body,t),Promise.resolve(n)};z.deserializeAws_restJson1TagResourceCommand=i6e;var s6e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},o6e=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return a6e(e,t);let n={$metadata:O(e)};return await kn(e.body,t),Promise.resolve(n)};z.deserializeAws_restJson1UntagResourceCommand=o6e;var a6e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},d6e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return c6e(e,t);let n={$metadata:O(e),AliasArn:void 0,Description:void 0,FunctionVersion:void 0,Name:void 0,RevisionId:void 0,RoutingConfig:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.AliasArn!==void 0&&r.AliasArn!==null&&(n.AliasArn=(0,f.expectString)(r.AliasArn)),r.Description!==void 0&&r.Description!==null&&(n.Description=(0,f.expectString)(r.Description)),r.FunctionVersion!==void 0&&r.FunctionVersion!==null&&(n.FunctionVersion=(0,f.expectString)(r.FunctionVersion)),r.Name!==void 0&&r.Name!==null&&(n.Name=(0,f.expectString)(r.Name)),r.RevisionId!==void 0&&r.RevisionId!==null&&(n.RevisionId=(0,f.expectString)(r.RevisionId)),r.RoutingConfig!==void 0&&r.RoutingConfig!==null&&(n.RoutingConfig=Uv(r.RoutingConfig,t)),Promise.resolve(n)};z.deserializeAws_restJson1UpdateAliasCommand=d6e;var c6e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"PreconditionFailedException":case"com.amazonaws.lambda#PreconditionFailedException":throw await ao(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},l6e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return u6e(e,t);let n={$metadata:O(e),CodeSigningConfig:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.CodeSigningConfig!==void 0&&r.CodeSigningConfig!==null&&(n.CodeSigningConfig=Gv(r.CodeSigningConfig,t)),Promise.resolve(n)};z.deserializeAws_restJson1UpdateCodeSigningConfigCommand=l6e;var u6e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},m6e=async(e,t)=>{if(e.statusCode!==202&&e.statusCode>=300)return f6e(e,t);let n={$metadata:O(e),BatchSize:void 0,BisectBatchOnFunctionError:void 0,DestinationConfig:void 0,EventSourceArn:void 0,FilterCriteria:void 0,FunctionArn:void 0,FunctionResponseTypes:void 0,LastModified:void 0,LastProcessingResult:void 0,MaximumBatchingWindowInSeconds:void 0,MaximumRecordAgeInSeconds:void 0,MaximumRetryAttempts:void 0,ParallelizationFactor:void 0,Queues:void 0,SelfManagedEventSource:void 0,SourceAccessConfigurations:void 0,StartingPosition:void 0,StartingPositionTimestamp:void 0,State:void 0,StateTransitionReason:void 0,Topics:void 0,TumblingWindowInSeconds:void 0,UUID:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.BatchSize!==void 0&&r.BatchSize!==null&&(n.BatchSize=(0,f.expectInt32)(r.BatchSize)),r.BisectBatchOnFunctionError!==void 0&&r.BisectBatchOnFunctionError!==null&&(n.BisectBatchOnFunctionError=(0,f.expectBoolean)(r.BisectBatchOnFunctionError)),r.DestinationConfig!==void 0&&r.DestinationConfig!==null&&(n.DestinationConfig=as(r.DestinationConfig,t)),r.EventSourceArn!==void 0&&r.EventSourceArn!==null&&(n.EventSourceArn=(0,f.expectString)(r.EventSourceArn)),r.FilterCriteria!==void 0&&r.FilterCriteria!==null&&(n.FilterCriteria=Um(r.FilterCriteria,t)),r.FunctionArn!==void 0&&r.FunctionArn!==null&&(n.FunctionArn=(0,f.expectString)(r.FunctionArn)),r.FunctionResponseTypes!==void 0&&r.FunctionResponseTypes!==null&&(n.FunctionResponseTypes=Gm(r.FunctionResponseTypes,t)),r.LastModified!==void 0&&r.LastModified!==null&&(n.LastModified=(0,f.expectNonNull)((0,f.parseEpochTimestamp)((0,f.expectNumber)(r.LastModified)))),r.LastProcessingResult!==void 0&&r.LastProcessingResult!==null&&(n.LastProcessingResult=(0,f.expectString)(r.LastProcessingResult)),r.MaximumBatchingWindowInSeconds!==void 0&&r.MaximumBatchingWindowInSeconds!==null&&(n.MaximumBatchingWindowInSeconds=(0,f.expectInt32)(r.MaximumBatchingWindowInSeconds)),r.MaximumRecordAgeInSeconds!==void 0&&r.MaximumRecordAgeInSeconds!==null&&(n.MaximumRecordAgeInSeconds=(0,f.expectInt32)(r.MaximumRecordAgeInSeconds)),r.MaximumRetryAttempts!==void 0&&r.MaximumRetryAttempts!==null&&(n.MaximumRetryAttempts=(0,f.expectInt32)(r.MaximumRetryAttempts)),r.ParallelizationFactor!==void 0&&r.ParallelizationFactor!==null&&(n.ParallelizationFactor=(0,f.expectInt32)(r.ParallelizationFactor)),r.Queues!==void 0&&r.Queues!==null&&(n.Queues=Vm(r.Queues,t)),r.SelfManagedEventSource!==void 0&&r.SelfManagedEventSource!==null&&(n.SelfManagedEventSource=$m(r.SelfManagedEventSource,t)),r.SourceAccessConfigurations!==void 0&&r.SourceAccessConfigurations!==null&&(n.SourceAccessConfigurations=Hm(r.SourceAccessConfigurations,t)),r.StartingPosition!==void 0&&r.StartingPosition!==null&&(n.StartingPosition=(0,f.expectString)(r.StartingPosition)),r.StartingPositionTimestamp!==void 0&&r.StartingPositionTimestamp!==null&&(n.StartingPositionTimestamp=(0,f.expectNonNull)((0,f.parseEpochTimestamp)((0,f.expectNumber)(r.StartingPositionTimestamp)))),r.State!==void 0&&r.State!==null&&(n.State=(0,f.expectString)(r.State)),r.StateTransitionReason!==void 0&&r.StateTransitionReason!==null&&(n.StateTransitionReason=(0,f.expectString)(r.StateTransitionReason)),r.Topics!==void 0&&r.Topics!==null&&(n.Topics=Jm(r.Topics,t)),r.TumblingWindowInSeconds!==void 0&&r.TumblingWindowInSeconds!==null&&(n.TumblingWindowInSeconds=(0,f.expectInt32)(r.TumblingWindowInSeconds)),r.UUID!==void 0&&r.UUID!==null&&(n.UUID=(0,f.expectString)(r.UUID)),Promise.resolve(n)};z.deserializeAws_restJson1UpdateEventSourceMappingCommand=m6e;var f6e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceInUseException":case"com.amazonaws.lambda#ResourceInUseException":throw await $7(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},p6e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return g6e(e,t);let n={$metadata:O(e),Architectures:void 0,CodeSha256:void 0,CodeSize:void 0,DeadLetterConfig:void 0,Description:void 0,Environment:void 0,EphemeralStorage:void 0,FileSystemConfigs:void 0,FunctionArn:void 0,FunctionName:void 0,Handler:void 0,ImageConfigResponse:void 0,KMSKeyArn:void 0,LastModified:void 0,LastUpdateStatus:void 0,LastUpdateStatusReason:void 0,LastUpdateStatusReasonCode:void 0,Layers:void 0,MasterArn:void 0,MemorySize:void 0,PackageType:void 0,RevisionId:void 0,Role:void 0,Runtime:void 0,SigningJobArn:void 0,SigningProfileVersionArn:void 0,State:void 0,StateReason:void 0,StateReasonCode:void 0,Timeout:void 0,TracingConfig:void 0,Version:void 0,VpcConfig:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.Architectures!==void 0&&r.Architectures!==null&&(n.Architectures=zd(r.Architectures,t)),r.CodeSha256!==void 0&&r.CodeSha256!==null&&(n.CodeSha256=(0,f.expectString)(r.CodeSha256)),r.CodeSize!==void 0&&r.CodeSize!==null&&(n.CodeSize=(0,f.expectLong)(r.CodeSize)),r.DeadLetterConfig!==void 0&&r.DeadLetterConfig!==null&&(n.DeadLetterConfig=qd(r.DeadLetterConfig,t)),r.Description!==void 0&&r.Description!==null&&(n.Description=(0,f.expectString)(r.Description)),r.Environment!==void 0&&r.Environment!==null&&(n.Environment=Ld(r.Environment,t)),r.EphemeralStorage!==void 0&&r.EphemeralStorage!==null&&(n.EphemeralStorage=Dd(r.EphemeralStorage,t)),r.FileSystemConfigs!==void 0&&r.FileSystemConfigs!==null&&(n.FileSystemConfigs=Md(r.FileSystemConfigs,t)),r.FunctionArn!==void 0&&r.FunctionArn!==null&&(n.FunctionArn=(0,f.expectString)(r.FunctionArn)),r.FunctionName!==void 0&&r.FunctionName!==null&&(n.FunctionName=(0,f.expectString)(r.FunctionName)),r.Handler!==void 0&&r.Handler!==null&&(n.Handler=(0,f.expectString)(r.Handler)),r.ImageConfigResponse!==void 0&&r.ImageConfigResponse!==null&&(n.ImageConfigResponse=Bd(r.ImageConfigResponse,t)),r.KMSKeyArn!==void 0&&r.KMSKeyArn!==null&&(n.KMSKeyArn=(0,f.expectString)(r.KMSKeyArn)),r.LastModified!==void 0&&r.LastModified!==null&&(n.LastModified=(0,f.expectString)(r.LastModified)),r.LastUpdateStatus!==void 0&&r.LastUpdateStatus!==null&&(n.LastUpdateStatus=(0,f.expectString)(r.LastUpdateStatus)),r.LastUpdateStatusReason!==void 0&&r.LastUpdateStatusReason!==null&&(n.LastUpdateStatusReason=(0,f.expectString)(r.LastUpdateStatusReason)),r.LastUpdateStatusReasonCode!==void 0&&r.LastUpdateStatusReasonCode!==null&&(n.LastUpdateStatusReasonCode=(0,f.expectString)(r.LastUpdateStatusReasonCode)),r.Layers!==void 0&&r.Layers!==null&&(n.Layers=Od(r.Layers,t)),r.MasterArn!==void 0&&r.MasterArn!==null&&(n.MasterArn=(0,f.expectString)(r.MasterArn)),r.MemorySize!==void 0&&r.MemorySize!==null&&(n.MemorySize=(0,f.expectInt32)(r.MemorySize)),r.PackageType!==void 0&&r.PackageType!==null&&(n.PackageType=(0,f.expectString)(r.PackageType)),r.RevisionId!==void 0&&r.RevisionId!==null&&(n.RevisionId=(0,f.expectString)(r.RevisionId)),r.Role!==void 0&&r.Role!==null&&(n.Role=(0,f.expectString)(r.Role)),r.Runtime!==void 0&&r.Runtime!==null&&(n.Runtime=(0,f.expectString)(r.Runtime)),r.SigningJobArn!==void 0&&r.SigningJobArn!==null&&(n.SigningJobArn=(0,f.expectString)(r.SigningJobArn)),r.SigningProfileVersionArn!==void 0&&r.SigningProfileVersionArn!==null&&(n.SigningProfileVersionArn=(0,f.expectString)(r.SigningProfileVersionArn)),r.State!==void 0&&r.State!==null&&(n.State=(0,f.expectString)(r.State)),r.StateReason!==void 0&&r.StateReason!==null&&(n.StateReason=(0,f.expectString)(r.StateReason)),r.StateReasonCode!==void 0&&r.StateReasonCode!==null&&(n.StateReasonCode=(0,f.expectString)(r.StateReasonCode)),r.Timeout!==void 0&&r.Timeout!==null&&(n.Timeout=(0,f.expectInt32)(r.Timeout)),r.TracingConfig!==void 0&&r.TracingConfig!==null&&(n.TracingConfig=Fd(r.TracingConfig,t)),r.Version!==void 0&&r.Version!==null&&(n.Version=(0,f.expectString)(r.Version)),r.VpcConfig!==void 0&&r.VpcConfig!==null&&(n.VpcConfig=jd(r.VpcConfig,t)),Promise.resolve(n)};z.deserializeAws_restJson1UpdateFunctionCodeCommand=p6e;var g6e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"CodeSigningConfigNotFoundException":case"com.amazonaws.lambda#CodeSigningConfigNotFoundException":throw await jm(n,t);case"CodeStorageExceededException":case"com.amazonaws.lambda#CodeStorageExceededException":throw await Fv(n,t);case"CodeVerificationFailedException":case"com.amazonaws.lambda#CodeVerificationFailedException":throw await iq(n,t);case"InvalidCodeSignatureException":case"com.amazonaws.lambda#InvalidCodeSignatureException":throw await sq(n,t);case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"PreconditionFailedException":case"com.amazonaws.lambda#PreconditionFailedException":throw await ao(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},h6e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return w6e(e,t);let n={$metadata:O(e),Architectures:void 0,CodeSha256:void 0,CodeSize:void 0,DeadLetterConfig:void 0,Description:void 0,Environment:void 0,EphemeralStorage:void 0,FileSystemConfigs:void 0,FunctionArn:void 0,FunctionName:void 0,Handler:void 0,ImageConfigResponse:void 0,KMSKeyArn:void 0,LastModified:void 0,LastUpdateStatus:void 0,LastUpdateStatusReason:void 0,LastUpdateStatusReasonCode:void 0,Layers:void 0,MasterArn:void 0,MemorySize:void 0,PackageType:void 0,RevisionId:void 0,Role:void 0,Runtime:void 0,SigningJobArn:void 0,SigningProfileVersionArn:void 0,State:void 0,StateReason:void 0,StateReasonCode:void 0,Timeout:void 0,TracingConfig:void 0,Version:void 0,VpcConfig:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.Architectures!==void 0&&r.Architectures!==null&&(n.Architectures=zd(r.Architectures,t)),r.CodeSha256!==void 0&&r.CodeSha256!==null&&(n.CodeSha256=(0,f.expectString)(r.CodeSha256)),r.CodeSize!==void 0&&r.CodeSize!==null&&(n.CodeSize=(0,f.expectLong)(r.CodeSize)),r.DeadLetterConfig!==void 0&&r.DeadLetterConfig!==null&&(n.DeadLetterConfig=qd(r.DeadLetterConfig,t)),r.Description!==void 0&&r.Description!==null&&(n.Description=(0,f.expectString)(r.Description)),r.Environment!==void 0&&r.Environment!==null&&(n.Environment=Ld(r.Environment,t)),r.EphemeralStorage!==void 0&&r.EphemeralStorage!==null&&(n.EphemeralStorage=Dd(r.EphemeralStorage,t)),r.FileSystemConfigs!==void 0&&r.FileSystemConfigs!==null&&(n.FileSystemConfigs=Md(r.FileSystemConfigs,t)),r.FunctionArn!==void 0&&r.FunctionArn!==null&&(n.FunctionArn=(0,f.expectString)(r.FunctionArn)),r.FunctionName!==void 0&&r.FunctionName!==null&&(n.FunctionName=(0,f.expectString)(r.FunctionName)),r.Handler!==void 0&&r.Handler!==null&&(n.Handler=(0,f.expectString)(r.Handler)),r.ImageConfigResponse!==void 0&&r.ImageConfigResponse!==null&&(n.ImageConfigResponse=Bd(r.ImageConfigResponse,t)),r.KMSKeyArn!==void 0&&r.KMSKeyArn!==null&&(n.KMSKeyArn=(0,f.expectString)(r.KMSKeyArn)),r.LastModified!==void 0&&r.LastModified!==null&&(n.LastModified=(0,f.expectString)(r.LastModified)),r.LastUpdateStatus!==void 0&&r.LastUpdateStatus!==null&&(n.LastUpdateStatus=(0,f.expectString)(r.LastUpdateStatus)),r.LastUpdateStatusReason!==void 0&&r.LastUpdateStatusReason!==null&&(n.LastUpdateStatusReason=(0,f.expectString)(r.LastUpdateStatusReason)),r.LastUpdateStatusReasonCode!==void 0&&r.LastUpdateStatusReasonCode!==null&&(n.LastUpdateStatusReasonCode=(0,f.expectString)(r.LastUpdateStatusReasonCode)),r.Layers!==void 0&&r.Layers!==null&&(n.Layers=Od(r.Layers,t)),r.MasterArn!==void 0&&r.MasterArn!==null&&(n.MasterArn=(0,f.expectString)(r.MasterArn)),r.MemorySize!==void 0&&r.MemorySize!==null&&(n.MemorySize=(0,f.expectInt32)(r.MemorySize)),r.PackageType!==void 0&&r.PackageType!==null&&(n.PackageType=(0,f.expectString)(r.PackageType)),r.RevisionId!==void 0&&r.RevisionId!==null&&(n.RevisionId=(0,f.expectString)(r.RevisionId)),r.Role!==void 0&&r.Role!==null&&(n.Role=(0,f.expectString)(r.Role)),r.Runtime!==void 0&&r.Runtime!==null&&(n.Runtime=(0,f.expectString)(r.Runtime)),r.SigningJobArn!==void 0&&r.SigningJobArn!==null&&(n.SigningJobArn=(0,f.expectString)(r.SigningJobArn)),r.SigningProfileVersionArn!==void 0&&r.SigningProfileVersionArn!==null&&(n.SigningProfileVersionArn=(0,f.expectString)(r.SigningProfileVersionArn)),r.State!==void 0&&r.State!==null&&(n.State=(0,f.expectString)(r.State)),r.StateReason!==void 0&&r.StateReason!==null&&(n.StateReason=(0,f.expectString)(r.StateReason)),r.StateReasonCode!==void 0&&r.StateReasonCode!==null&&(n.StateReasonCode=(0,f.expectString)(r.StateReasonCode)),r.Timeout!==void 0&&r.Timeout!==null&&(n.Timeout=(0,f.expectInt32)(r.Timeout)),r.TracingConfig!==void 0&&r.TracingConfig!==null&&(n.TracingConfig=Fd(r.TracingConfig,t)),r.Version!==void 0&&r.Version!==null&&(n.Version=(0,f.expectString)(r.Version)),r.VpcConfig!==void 0&&r.VpcConfig!==null&&(n.VpcConfig=jd(r.VpcConfig,t)),Promise.resolve(n)};z.deserializeAws_restJson1UpdateFunctionConfigurationCommand=h6e;var w6e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"CodeSigningConfigNotFoundException":case"com.amazonaws.lambda#CodeSigningConfigNotFoundException":throw await jm(n,t);case"CodeVerificationFailedException":case"com.amazonaws.lambda#CodeVerificationFailedException":throw await iq(n,t);case"InvalidCodeSignatureException":case"com.amazonaws.lambda#InvalidCodeSignatureException":throw await sq(n,t);case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"PreconditionFailedException":case"com.amazonaws.lambda#PreconditionFailedException":throw await ao(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},y6e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return S6e(e,t);let n={$metadata:O(e),DestinationConfig:void 0,FunctionArn:void 0,LastModified:void 0,MaximumEventAgeInSeconds:void 0,MaximumRetryAttempts:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.DestinationConfig!==void 0&&r.DestinationConfig!==null&&(n.DestinationConfig=as(r.DestinationConfig,t)),r.FunctionArn!==void 0&&r.FunctionArn!==null&&(n.FunctionArn=(0,f.expectString)(r.FunctionArn)),r.LastModified!==void 0&&r.LastModified!==null&&(n.LastModified=(0,f.expectNonNull)((0,f.parseEpochTimestamp)((0,f.expectNumber)(r.LastModified)))),r.MaximumEventAgeInSeconds!==void 0&&r.MaximumEventAgeInSeconds!==null&&(n.MaximumEventAgeInSeconds=(0,f.expectInt32)(r.MaximumEventAgeInSeconds)),r.MaximumRetryAttempts!==void 0&&r.MaximumRetryAttempts!==null&&(n.MaximumRetryAttempts=(0,f.expectInt32)(r.MaximumRetryAttempts)),Promise.resolve(n)};z.deserializeAws_restJson1UpdateFunctionEventInvokeConfigCommand=y6e;var S6e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},_6e=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return v6e(e,t);let n={$metadata:O(e),AuthType:void 0,Cors:void 0,CreationTime:void 0,FunctionArn:void 0,FunctionUrl:void 0,LastModifiedTime:void 0},r=(0,f.expectNonNull)((0,f.expectObject)(await Q(e.body,t)),"body");return r.AuthType!==void 0&&r.AuthType!==null&&(n.AuthType=(0,f.expectString)(r.AuthType)),r.Cors!==void 0&&r.Cors!==null&&(n.Cors=Hv(r.Cors,t)),r.CreationTime!==void 0&&r.CreationTime!==null&&(n.CreationTime=(0,f.expectString)(r.CreationTime)),r.FunctionArn!==void 0&&r.FunctionArn!==null&&(n.FunctionArn=(0,f.expectString)(r.FunctionArn)),r.FunctionUrl!==void 0&&r.FunctionUrl!==null&&(n.FunctionUrl=(0,f.expectString)(r.FunctionUrl)),r.LastModifiedTime!==void 0&&r.LastModifiedTime!==null&&(n.LastModifiedTime=(0,f.expectString)(r.LastModifiedTime)),Promise.resolve(n)};z.deserializeAws_restJson1UpdateFunctionUrlConfigCommand=_6e;var v6e=async(e,t)=>{let n=S(o({},e),{body:await Q(e.body,t)}),r,i="UnknownError";switch(i=qe(e,n.body),i){case"InvalidParameterValueException":case"com.amazonaws.lambda#InvalidParameterValueException":throw await Me(n,t);case"ResourceConflictException":case"com.amazonaws.lambda#ResourceConflictException":throw await bt(n,t);case"ResourceNotFoundException":case"com.amazonaws.lambda#ResourceNotFoundException":throw await Oe(n,t);case"ServiceException":case"com.amazonaws.lambda#ServiceException":throw await ze(n,t);case"TooManyRequestsException":case"com.amazonaws.lambda#TooManyRequestsException":throw await Fe(n,t);default:let s=n.body;throw r=new ke.LambdaServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:O(e)}),(0,f.decorateServiceException)(r,s)}},jm=async(e,t)=>{let n={},r=e.body;r.Message!==void 0&&r.Message!==null&&(n.Message=(0,f.expectString)(r.Message)),r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type));let i=new gt.CodeSigningConfigNotFoundException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},Fv=async(e,t)=>{let n={},r=e.body;r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type)),r.message!==void 0&&r.message!==null&&(n.message=(0,f.expectString)(r.message));let i=new gt.CodeStorageExceededException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},iq=async(e,t)=>{let n={},r=e.body;r.Message!==void 0&&r.Message!==null&&(n.Message=(0,f.expectString)(r.Message)),r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type));let i=new gt.CodeVerificationFailedException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},C6e=async(e,t)=>{let n={},r=e.body;r.Message!==void 0&&r.Message!==null&&(n.Message=(0,f.expectString)(r.Message)),r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type));let i=new gt.EC2AccessDeniedException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},E6e=async(e,t)=>{let n={},r=e.body;r.Message!==void 0&&r.Message!==null&&(n.Message=(0,f.expectString)(r.Message)),r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type));let i=new gt.EC2ThrottledException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},A6e=async(e,t)=>{let n={},r=e.body;r.EC2ErrorCode!==void 0&&r.EC2ErrorCode!==null&&(n.EC2ErrorCode=(0,f.expectString)(r.EC2ErrorCode)),r.Message!==void 0&&r.Message!==null&&(n.Message=(0,f.expectString)(r.Message)),r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type));let i=new gt.EC2UnexpectedException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},x6e=async(e,t)=>{let n={},r=e.body;r.Message!==void 0&&r.Message!==null&&(n.Message=(0,f.expectString)(r.Message)),r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type));let i=new gt.EFSIOException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},b6e=async(e,t)=>{let n={},r=e.body;r.Message!==void 0&&r.Message!==null&&(n.Message=(0,f.expectString)(r.Message)),r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type));let i=new gt.EFSMountConnectivityException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},R6e=async(e,t)=>{let n={},r=e.body;r.Message!==void 0&&r.Message!==null&&(n.Message=(0,f.expectString)(r.Message)),r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type));let i=new gt.EFSMountFailureException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},T6e=async(e,t)=>{let n={},r=e.body;r.Message!==void 0&&r.Message!==null&&(n.Message=(0,f.expectString)(r.Message)),r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type));let i=new gt.EFSMountTimeoutException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},I6e=async(e,t)=>{let n={},r=e.body;r.Message!==void 0&&r.Message!==null&&(n.Message=(0,f.expectString)(r.Message)),r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type));let i=new gt.ENILimitReachedException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},sq=async(e,t)=>{let n={},r=e.body;r.Message!==void 0&&r.Message!==null&&(n.Message=(0,f.expectString)(r.Message)),r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type));let i=new gt.InvalidCodeSignatureException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},Me=async(e,t)=>{let n={},r=e.body;r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type)),r.message!==void 0&&r.message!==null&&(n.message=(0,f.expectString)(r.message));let i=new gt.InvalidParameterValueException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},U7=async(e,t)=>{let n={},r=e.body;r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type)),r.message!==void 0&&r.message!==null&&(n.message=(0,f.expectString)(r.message));let i=new gt.InvalidRequestContentException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},G7=async(e,t)=>{let n={},r=e.body;r.Message!==void 0&&r.Message!==null&&(n.Message=(0,f.expectString)(r.Message)),r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type));let i=new gt.InvalidRuntimeException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},N6e=async(e,t)=>{let n={},r=e.body;r.Message!==void 0&&r.Message!==null&&(n.Message=(0,f.expectString)(r.Message)),r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type));let i=new gt.InvalidSecurityGroupIDException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},P6e=async(e,t)=>{let n={},r=e.body;r.Message!==void 0&&r.Message!==null&&(n.Message=(0,f.expectString)(r.Message)),r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type));let i=new gt.InvalidSubnetIDException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},k6e=async(e,t)=>{let n={},r=e.body;r.Message!==void 0&&r.Message!==null&&(n.Message=(0,f.expectString)(r.Message)),r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type));let i=new gt.InvalidZipFileException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},z6e=async(e,t)=>{let n={},r=e.body;r.Message!==void 0&&r.Message!==null&&(n.Message=(0,f.expectString)(r.Message)),r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type));let i=new gt.KMSAccessDeniedException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},q6e=async(e,t)=>{let n={},r=e.body;r.Message!==void 0&&r.Message!==null&&(n.Message=(0,f.expectString)(r.Message)),r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type));let i=new gt.KMSDisabledException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},L6e=async(e,t)=>{let n={},r=e.body;r.Message!==void 0&&r.Message!==null&&(n.Message=(0,f.expectString)(r.Message)),r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type));let i=new gt.KMSInvalidStateException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},D6e=async(e,t)=>{let n={},r=e.body;r.Message!==void 0&&r.Message!==null&&(n.Message=(0,f.expectString)(r.Message)),r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type));let i=new gt.KMSNotFoundException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},V7=async(e,t)=>{let n={},r=e.body;r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type)),r.message!==void 0&&r.message!==null&&(n.message=(0,f.expectString)(r.message));let i=new gt.PolicyLengthExceededException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},ao=async(e,t)=>{let n={},r=e.body;r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type)),r.message!==void 0&&r.message!==null&&(n.message=(0,f.expectString)(r.message));let i=new gt.PreconditionFailedException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},M6e=async(e,t)=>{let n={},r=e.body;r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type)),r.message!==void 0&&r.message!==null&&(n.message=(0,f.expectString)(r.message));let i=new gt.ProvisionedConcurrencyConfigNotFoundException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},B6e=async(e,t)=>{let n={},r=e.body;r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type)),r.message!==void 0&&r.message!==null&&(n.message=(0,f.expectString)(r.message));let i=new gt.RequestTooLargeException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},bt=async(e,t)=>{let n={},r=e.body;r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type)),r.message!==void 0&&r.message!==null&&(n.message=(0,f.expectString)(r.message));let i=new gt.ResourceConflictException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},$7=async(e,t)=>{let n={},r=e.body;r.Message!==void 0&&r.Message!==null&&(n.Message=(0,f.expectString)(r.Message)),r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type));let i=new gt.ResourceInUseException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},Oe=async(e,t)=>{let n={},r=e.body;r.Message!==void 0&&r.Message!==null&&(n.Message=(0,f.expectString)(r.Message)),r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type));let i=new gt.ResourceNotFoundException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},O6e=async(e,t)=>{let n={},r=e.body;r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type)),r.message!==void 0&&r.message!==null&&(n.message=(0,f.expectString)(r.message));let i=new gt.ResourceNotReadyException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},ze=async(e,t)=>{let n={},r=e.body;r.Message!==void 0&&r.Message!==null&&(n.Message=(0,f.expectString)(r.Message)),r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type));let i=new gt.ServiceException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},F6e=async(e,t)=>{let n={},r=e.body;r.Message!==void 0&&r.Message!==null&&(n.Message=(0,f.expectString)(r.Message)),r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type));let i=new gt.SubnetIPAddressLimitReachedException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},Fe=async(e,t)=>{let n={};e.headers["retry-after"]!==void 0&&(n.retryAfterSeconds=e.headers["retry-after"]);let r=e.body;r.Reason!==void 0&&r.Reason!==null&&(n.Reason=(0,f.expectString)(r.Reason)),r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type)),r.message!==void 0&&r.message!==null&&(n.message=(0,f.expectString)(r.message));let i=new gt.TooManyRequestsException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},j6e=async(e,t)=>{let n={},r=e.body;r.Type!==void 0&&r.Type!==null&&(n.Type=(0,f.expectString)(r.Type)),r.message!==void 0&&r.message!==null&&(n.message=(0,f.expectString)(r.message));let i=new gt.UnsupportedMediaTypeException(o({$metadata:O(e)},n));return(0,f.decorateServiceException)(i,e.body)},U6e=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:S(o({},n),{[r]:(0,f.serializeFloat)(i)}),{}),H7=(e,t)=>o({},e.AdditionalVersionWeights!==void 0&&e.AdditionalVersionWeights!==null&&{AdditionalVersionWeights:U6e(e.AdditionalVersionWeights,t)}),J7=(e,t)=>o({},e.SigningProfileVersionArns!==void 0&&e.SigningProfileVersionArns!==null&&{SigningProfileVersionArns:o4e(e.SigningProfileVersionArns,t)}),G6e=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),V6e=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),X7=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),K7=(e,t)=>o({},e.UntrustedArtifactOnDeployment!==void 0&&e.UntrustedArtifactOnDeployment!==null&&{UntrustedArtifactOnDeployment:e.UntrustedArtifactOnDeployment}),$6e=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),H6e=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),W7=(e,t)=>o(o(o(o(o(o({},e.AllowCredentials!==void 0&&e.AllowCredentials!==null&&{AllowCredentials:e.AllowCredentials}),e.AllowHeaders!==void 0&&e.AllowHeaders!==null&&{AllowHeaders:B7(e.AllowHeaders,t)}),e.AllowMethods!==void 0&&e.AllowMethods!==null&&{AllowMethods:G6e(e.AllowMethods,t)}),e.AllowOrigins!==void 0&&e.AllowOrigins!==null&&{AllowOrigins:V6e(e.AllowOrigins,t)}),e.ExposeHeaders!==void 0&&e.ExposeHeaders!==null&&{ExposeHeaders:B7(e.ExposeHeaders,t)}),e.MaxAge!==void 0&&e.MaxAge!==null&&{MaxAge:e.MaxAge}),Q7=(e,t)=>o({},e.TargetArn!==void 0&&e.TargetArn!==null&&{TargetArn:e.TargetArn}),jv=(e,t)=>o(o({},e.OnFailure!==void 0&&e.OnFailure!==null&&{OnFailure:t4e(e.OnFailure,t)}),e.OnSuccess!==void 0&&e.OnSuccess!==null&&{OnSuccess:n4e(e.OnSuccess,t)}),J6e=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),X6e=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:S(o({},n),{[r]:J6e(i,t)}),{}),Y7=(e,t)=>o({},e.Variables!==void 0&&e.Variables!==null&&{Variables:K6e(e.Variables,t)}),K6e=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:S(o({},n),{[r]:i}),{}),Z7=(e,t)=>o({},e.Size!==void 0&&e.Size!==null&&{Size:e.Size}),W6e=(e,t)=>o(o({},e.Arn!==void 0&&e.Arn!==null&&{Arn:e.Arn}),e.LocalMountPath!==void 0&&e.LocalMountPath!==null&&{LocalMountPath:e.LocalMountPath}),eQ=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:W6e(n,t)),Q6e=(e,t)=>o({},e.Pattern!==void 0&&e.Pattern!==null&&{Pattern:e.Pattern}),tQ=(e,t)=>o({},e.Filters!==void 0&&e.Filters!==null&&{Filters:Y6e(e.Filters,t)}),Y6e=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:Q6e(n,t)),Z6e=(e,t)=>o(o(o(o(o({},e.ImageUri!==void 0&&e.ImageUri!==null&&{ImageUri:e.ImageUri}),e.S3Bucket!==void 0&&e.S3Bucket!==null&&{S3Bucket:e.S3Bucket}),e.S3Key!==void 0&&e.S3Key!==null&&{S3Key:e.S3Key}),e.S3ObjectVersion!==void 0&&e.S3ObjectVersion!==null&&{S3ObjectVersion:e.S3ObjectVersion}),e.ZipFile!==void 0&&e.ZipFile!==null&&{ZipFile:t.base64Encoder(e.ZipFile)}),nQ=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),B7=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),rQ=(e,t)=>o(o(o({},e.Command!==void 0&&e.Command!==null&&{Command:O7(e.Command,t)}),e.EntryPoint!==void 0&&e.EntryPoint!==null&&{EntryPoint:O7(e.EntryPoint,t)}),e.WorkingDirectory!==void 0&&e.WorkingDirectory!==null&&{WorkingDirectory:e.WorkingDirectory}),iQ=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),e4e=(e,t)=>o(o(o(o({},e.S3Bucket!==void 0&&e.S3Bucket!==null&&{S3Bucket:e.S3Bucket}),e.S3Key!==void 0&&e.S3Key!==null&&{S3Key:e.S3Key}),e.S3ObjectVersion!==void 0&&e.S3ObjectVersion!==null&&{S3ObjectVersion:e.S3ObjectVersion}),e.ZipFile!==void 0&&e.ZipFile!==null&&{ZipFile:t.base64Encoder(e.ZipFile)}),t4e=(e,t)=>o({},e.Destination!==void 0&&e.Destination!==null&&{Destination:e.Destination}),n4e=(e,t)=>o({},e.Destination!==void 0&&e.Destination!==null&&{Destination:e.Destination}),r4e=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),i4e=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),s4e=(e,t)=>o({},e.Endpoints!==void 0&&e.Endpoints!==null&&{Endpoints:X6e(e.Endpoints,t)}),o4e=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),a4e=(e,t)=>o(o({},e.Type!==void 0&&e.Type!==null&&{Type:e.Type}),e.URI!==void 0&&e.URI!==null&&{URI:e.URI}),sQ=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:a4e(n,t)),O7=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),d4e=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),oQ=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:S(o({},n),{[r]:i}),{}),c4e=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),aQ=(e,t)=>o({},e.Mode!==void 0&&e.Mode!==null&&{Mode:e.Mode}),dQ=(e,t)=>o(o({},e.SecurityGroupIds!==void 0&&e.SecurityGroupIds!==null&&{SecurityGroupIds:i4e(e.SecurityGroupIds,t)}),e.SubnetIds!==void 0&&e.SubnetIds!==null&&{SubnetIds:d4e(e.SubnetIds,t)}),l4e=(e,t)=>({CodeSizeUnzipped:(0,f.expectLong)(e.CodeSizeUnzipped),CodeSizeZipped:(0,f.expectLong)(e.CodeSizeZipped),ConcurrentExecutions:(0,f.expectInt32)(e.ConcurrentExecutions),TotalCodeSize:(0,f.expectLong)(e.TotalCodeSize),UnreservedConcurrentExecutions:(0,f.expectInt32)(e.UnreservedConcurrentExecutions)}),u4e=(e,t)=>({FunctionCount:(0,f.expectLong)(e.FunctionCount),TotalCodeSize:(0,f.expectLong)(e.TotalCodeSize)}),m4e=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:S(o({},n),{[r]:(0,f.limitedParseDouble)(i)}),{}),f4e=(e,t)=>({AliasArn:(0,f.expectString)(e.AliasArn),Description:(0,f.expectString)(e.Description),FunctionVersion:(0,f.expectString)(e.FunctionVersion),Name:(0,f.expectString)(e.Name),RevisionId:(0,f.expectString)(e.RevisionId),RoutingConfig:e.RoutingConfig!==void 0&&e.RoutingConfig!==null?Uv(e.RoutingConfig,t):void 0}),p4e=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:f4e(r,t)),Uv=(e,t)=>({AdditionalVersionWeights:e.AdditionalVersionWeights!==void 0&&e.AdditionalVersionWeights!==null?m4e(e.AdditionalVersionWeights,t):void 0}),g4e=(e,t)=>({SigningProfileVersionArns:e.SigningProfileVersionArns!==void 0&&e.SigningProfileVersionArns!==null?J4e(e.SigningProfileVersionArns,t):void 0}),h4e=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:(0,f.expectString)(r)),w4e=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:(0,f.expectString)(r)),zd=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:(0,f.expectString)(r)),Gv=(e,t)=>({AllowedPublishers:e.AllowedPublishers!==void 0&&e.AllowedPublishers!==null?g4e(e.AllowedPublishers,t):void 0,CodeSigningConfigArn:(0,f.expectString)(e.CodeSigningConfigArn),CodeSigningConfigId:(0,f.expectString)(e.CodeSigningConfigId),CodeSigningPolicies:e.CodeSigningPolicies!==void 0&&e.CodeSigningPolicies!==null?S4e(e.CodeSigningPolicies,t):void 0,Description:(0,f.expectString)(e.Description),LastModified:(0,f.expectString)(e.LastModified)}),y4e=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:Gv(r,t)),S4e=(e,t)=>({UntrustedArtifactOnDeployment:(0,f.expectString)(e.UntrustedArtifactOnDeployment)}),Vv=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:(0,f.expectString)(r)),$v=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:(0,f.expectString)(r)),_4e=(e,t)=>({ReservedConcurrentExecutions:(0,f.expectInt32)(e.ReservedConcurrentExecutions)}),Hv=(e,t)=>({AllowCredentials:(0,f.expectBoolean)(e.AllowCredentials),AllowHeaders:e.AllowHeaders!==void 0&&e.AllowHeaders!==null?F7(e.AllowHeaders,t):void 0,AllowMethods:e.AllowMethods!==void 0&&e.AllowMethods!==null?h4e(e.AllowMethods,t):void 0,AllowOrigins:e.AllowOrigins!==void 0&&e.AllowOrigins!==null?w4e(e.AllowOrigins,t):void 0,ExposeHeaders:e.ExposeHeaders!==void 0&&e.ExposeHeaders!==null?F7(e.ExposeHeaders,t):void 0,MaxAge:(0,f.expectInt32)(e.MaxAge)}),qd=(e,t)=>({TargetArn:(0,f.expectString)(e.TargetArn)}),as=(e,t)=>({OnFailure:e.OnFailure!==void 0&&e.OnFailure!==null?U4e(e.OnFailure,t):void 0,OnSuccess:e.OnSuccess!==void 0&&e.OnSuccess!==null?G4e(e.OnSuccess,t):void 0}),v4e=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:(0,f.expectString)(r)),C4e=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:S(o({},n),{[r]:v4e(i,t)}),{}),E4e=(e,t)=>({ErrorCode:(0,f.expectString)(e.ErrorCode),Message:(0,f.expectString)(e.Message)}),Ld=(e,t)=>({Error:e.Error!==void 0&&e.Error!==null?E4e(e.Error,t):void 0,Variables:e.Variables!==void 0&&e.Variables!==null?A4e(e.Variables,t):void 0}),A4e=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:S(o({},n),{[r]:(0,f.expectString)(i)}),{}),Dd=(e,t)=>({Size:(0,f.expectInt32)(e.Size)}),x4e=(e,t)=>({BatchSize:(0,f.expectInt32)(e.BatchSize),BisectBatchOnFunctionError:(0,f.expectBoolean)(e.BisectBatchOnFunctionError),DestinationConfig:e.DestinationConfig!==void 0&&e.DestinationConfig!==null?as(e.DestinationConfig,t):void 0,EventSourceArn:(0,f.expectString)(e.EventSourceArn),FilterCriteria:e.FilterCriteria!==void 0&&e.FilterCriteria!==null?Um(e.FilterCriteria,t):void 0,FunctionArn:(0,f.expectString)(e.FunctionArn),FunctionResponseTypes:e.FunctionResponseTypes!==void 0&&e.FunctionResponseTypes!==null?Gm(e.FunctionResponseTypes,t):void 0,LastModified:e.LastModified!==void 0&&e.LastModified!==null?(0,f.expectNonNull)((0,f.parseEpochTimestamp)((0,f.expectNumber)(e.LastModified))):void 0,LastProcessingResult:(0,f.expectString)(e.LastProcessingResult),MaximumBatchingWindowInSeconds:(0,f.expectInt32)(e.MaximumBatchingWindowInSeconds),MaximumRecordAgeInSeconds:(0,f.expectInt32)(e.MaximumRecordAgeInSeconds),MaximumRetryAttempts:(0,f.expectInt32)(e.MaximumRetryAttempts),ParallelizationFactor:(0,f.expectInt32)(e.ParallelizationFactor),Queues:e.Queues!==void 0&&e.Queues!==null?Vm(e.Queues,t):void 0,SelfManagedEventSource:e.SelfManagedEventSource!==void 0&&e.SelfManagedEventSource!==null?$m(e.SelfManagedEventSource,t):void 0,SourceAccessConfigurations:e.SourceAccessConfigurations!==void 0&&e.SourceAccessConfigurations!==null?Hm(e.SourceAccessConfigurations,t):void 0,StartingPosition:(0,f.expectString)(e.StartingPosition),StartingPositionTimestamp:e.StartingPositionTimestamp!==void 0&&e.StartingPositionTimestamp!==null?(0,f.expectNonNull)((0,f.parseEpochTimestamp)((0,f.expectNumber)(e.StartingPositionTimestamp))):void 0,State:(0,f.expectString)(e.State),StateTransitionReason:(0,f.expectString)(e.StateTransitionReason),Topics:e.Topics!==void 0&&e.Topics!==null?Jm(e.Topics,t):void 0,TumblingWindowInSeconds:(0,f.expectInt32)(e.TumblingWindowInSeconds),UUID:(0,f.expectString)(e.UUID)}),b4e=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:x4e(r,t)),R4e=(e,t)=>({Arn:(0,f.expectString)(e.Arn),LocalMountPath:(0,f.expectString)(e.LocalMountPath)}),Md=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:R4e(r,t)),T4e=(e,t)=>({Pattern:(0,f.expectString)(e.Pattern)}),Um=(e,t)=>({Filters:e.Filters!==void 0&&e.Filters!==null?I4e(e.Filters,t):void 0}),I4e=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:T4e(r,t)),N4e=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:(0,f.expectString)(r)),P4e=(e,t)=>({ImageUri:(0,f.expectString)(e.ImageUri),Location:(0,f.expectString)(e.Location),RepositoryType:(0,f.expectString)(e.RepositoryType),ResolvedImageUri:(0,f.expectString)(e.ResolvedImageUri)}),cQ=(e,t)=>({Architectures:e.Architectures!==void 0&&e.Architectures!==null?zd(e.Architectures,t):void 0,CodeSha256:(0,f.expectString)(e.CodeSha256),CodeSize:(0,f.expectLong)(e.CodeSize),DeadLetterConfig:e.DeadLetterConfig!==void 0&&e.DeadLetterConfig!==null?qd(e.DeadLetterConfig,t):void 0,Description:(0,f.expectString)(e.Description),Environment:e.Environment!==void 0&&e.Environment!==null?Ld(e.Environment,t):void 0,EphemeralStorage:e.EphemeralStorage!==void 0&&e.EphemeralStorage!==null?Dd(e.EphemeralStorage,t):void 0,FileSystemConfigs:e.FileSystemConfigs!==void 0&&e.FileSystemConfigs!==null?Md(e.FileSystemConfigs,t):void 0,FunctionArn:(0,f.expectString)(e.FunctionArn),FunctionName:(0,f.expectString)(e.FunctionName),Handler:(0,f.expectString)(e.Handler),ImageConfigResponse:e.ImageConfigResponse!==void 0&&e.ImageConfigResponse!==null?Bd(e.ImageConfigResponse,t):void 0,KMSKeyArn:(0,f.expectString)(e.KMSKeyArn),LastModified:(0,f.expectString)(e.LastModified),LastUpdateStatus:(0,f.expectString)(e.LastUpdateStatus),LastUpdateStatusReason:(0,f.expectString)(e.LastUpdateStatusReason),LastUpdateStatusReasonCode:(0,f.expectString)(e.LastUpdateStatusReasonCode),Layers:e.Layers!==void 0&&e.Layers!==null?Od(e.Layers,t):void 0,MasterArn:(0,f.expectString)(e.MasterArn),MemorySize:(0,f.expectInt32)(e.MemorySize),PackageType:(0,f.expectString)(e.PackageType),RevisionId:(0,f.expectString)(e.RevisionId),Role:(0,f.expectString)(e.Role),Runtime:(0,f.expectString)(e.Runtime),SigningJobArn:(0,f.expectString)(e.SigningJobArn),SigningProfileVersionArn:(0,f.expectString)(e.SigningProfileVersionArn),State:(0,f.expectString)(e.State),StateReason:(0,f.expectString)(e.StateReason),StateReasonCode:(0,f.expectString)(e.StateReasonCode),Timeout:(0,f.expectInt32)(e.Timeout),TracingConfig:e.TracingConfig!==void 0&&e.TracingConfig!==null?Fd(e.TracingConfig,t):void 0,Version:(0,f.expectString)(e.Version),VpcConfig:e.VpcConfig!==void 0&&e.VpcConfig!==null?jd(e.VpcConfig,t):void 0}),k4e=(e,t)=>({DestinationConfig:e.DestinationConfig!==void 0&&e.DestinationConfig!==null?as(e.DestinationConfig,t):void 0,FunctionArn:(0,f.expectString)(e.FunctionArn),LastModified:e.LastModified!==void 0&&e.LastModified!==null?(0,f.expectNonNull)((0,f.parseEpochTimestamp)((0,f.expectNumber)(e.LastModified))):void 0,MaximumEventAgeInSeconds:(0,f.expectInt32)(e.MaximumEventAgeInSeconds),MaximumRetryAttempts:(0,f.expectInt32)(e.MaximumRetryAttempts)}),z4e=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:k4e(r,t)),lQ=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:cQ(r,t)),Gm=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:(0,f.expectString)(r)),q4e=(e,t)=>({AuthType:(0,f.expectString)(e.AuthType),Cors:e.Cors!==void 0&&e.Cors!==null?Hv(e.Cors,t):void 0,CreationTime:(0,f.expectString)(e.CreationTime),FunctionArn:(0,f.expectString)(e.FunctionArn),FunctionUrl:(0,f.expectString)(e.FunctionUrl),LastModifiedTime:(0,f.expectString)(e.LastModifiedTime)}),L4e=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:q4e(r,t)),F7=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:(0,f.expectString)(r)),D4e=(e,t)=>({Command:e.Command!==void 0&&e.Command!==null?j7(e.Command,t):void 0,EntryPoint:e.EntryPoint!==void 0&&e.EntryPoint!==null?j7(e.EntryPoint,t):void 0,WorkingDirectory:(0,f.expectString)(e.WorkingDirectory)}),M4e=(e,t)=>({ErrorCode:(0,f.expectString)(e.ErrorCode),Message:(0,f.expectString)(e.Message)}),Bd=(e,t)=>({Error:e.Error!==void 0&&e.Error!==null?M4e(e.Error,t):void 0,ImageConfig:e.ImageConfig!==void 0&&e.ImageConfig!==null?D4e(e.ImageConfig,t):void 0}),B4e=(e,t)=>({Arn:(0,f.expectString)(e.Arn),CodeSize:(0,f.expectLong)(e.CodeSize),SigningJobArn:(0,f.expectString)(e.SigningJobArn),SigningProfileVersionArn:(0,f.expectString)(e.SigningProfileVersionArn)}),O4e=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:F4e(r,t)),F4e=(e,t)=>({LatestMatchingVersion:e.LatestMatchingVersion!==void 0&&e.LatestMatchingVersion!==null?uQ(e.LatestMatchingVersion,t):void 0,LayerArn:(0,f.expectString)(e.LayerArn),LayerName:(0,f.expectString)(e.LayerName)}),Od=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:B4e(r,t)),oq=(e,t)=>({CodeSha256:(0,f.expectString)(e.CodeSha256),CodeSize:(0,f.expectLong)(e.CodeSize),Location:(0,f.expectString)(e.Location),SigningJobArn:(0,f.expectString)(e.SigningJobArn),SigningProfileVersionArn:(0,f.expectString)(e.SigningProfileVersionArn)}),j4e=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:uQ(r,t)),uQ=(e,t)=>({CompatibleArchitectures:e.CompatibleArchitectures!==void 0&&e.CompatibleArchitectures!==null?Vv(e.CompatibleArchitectures,t):void 0,CompatibleRuntimes:e.CompatibleRuntimes!==void 0&&e.CompatibleRuntimes!==null?$v(e.CompatibleRuntimes,t):void 0,CreatedDate:(0,f.expectString)(e.CreatedDate),Description:(0,f.expectString)(e.Description),LayerVersionArn:(0,f.expectString)(e.LayerVersionArn),LicenseInfo:(0,f.expectString)(e.LicenseInfo),Version:(0,f.expectLong)(e.Version)}),U4e=(e,t)=>({Destination:(0,f.expectString)(e.Destination)}),G4e=(e,t)=>({Destination:(0,f.expectString)(e.Destination)}),V4e=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:$4e(r,t)),$4e=(e,t)=>({AllocatedProvisionedConcurrentExecutions:(0,f.expectInt32)(e.AllocatedProvisionedConcurrentExecutions),AvailableProvisionedConcurrentExecutions:(0,f.expectInt32)(e.AvailableProvisionedConcurrentExecutions),FunctionArn:(0,f.expectString)(e.FunctionArn),LastModified:(0,f.expectString)(e.LastModified),RequestedProvisionedConcurrentExecutions:(0,f.expectInt32)(e.RequestedProvisionedConcurrentExecutions),Status:(0,f.expectString)(e.Status),StatusReason:(0,f.expectString)(e.StatusReason)}),Vm=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:(0,f.expectString)(r)),H4e=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:(0,f.expectString)(r)),$m=(e,t)=>({Endpoints:e.Endpoints!==void 0&&e.Endpoints!==null?C4e(e.Endpoints,t):void 0}),J4e=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:(0,f.expectString)(r)),X4e=(e,t)=>({Type:(0,f.expectString)(e.Type),URI:(0,f.expectString)(e.URI)}),Hm=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:X4e(r,t)),j7=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:(0,f.expectString)(r)),K4e=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:(0,f.expectString)(r)),mQ=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:S(o({},n),{[r]:(0,f.expectString)(i)}),{}),Jm=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:(0,f.expectString)(r)),Fd=(e,t)=>({Mode:(0,f.expectString)(e.Mode)}),jd=(e,t)=>({SecurityGroupIds:e.SecurityGroupIds!==void 0&&e.SecurityGroupIds!==null?H4e(e.SecurityGroupIds,t):void 0,SubnetIds:e.SubnetIds!==void 0&&e.SubnetIds!==null?K4e(e.SubnetIds,t):void 0,VpcId:(0,f.expectString)(e.VpcId)}),O=e=>{var t;return{httpStatusCode:e.statusCode,requestId:(t=e.headers["x-amzn-requestid"])!==null&&t!==void 0?t:e.headers["x-amzn-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}},kn=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),W4e=(e,t)=>kn(e,t).then(n=>t.utf8Encoder(n)),rq=e=>e!=null&&e!==""&&(!Object.getOwnPropertyNames(e).includes("length")||e.length!=0)&&(!Object.getOwnPropertyNames(e).includes("size")||e.size!=0),Q=(e,t)=>W4e(e,t).then(n=>n.length?JSON.parse(n):{}),qe=(e,t)=>{let n=(s,d)=>Object.keys(s).find(a=>a.toLowerCase()===d.toLowerCase()),r=s=>{let d=s;return d.indexOf(":")>=0&&(d=d.split(":")[0]),d.indexOf("#")>=0&&(d=d.split("#")[1]),d},i=n(e.headers,"x-amzn-errortype");return i!==void 0?r(e.headers[i]):t.code!==void 0?r(t.code):t.__type!==void 0?r(t.__type):""}});var dq=m(Jv=>{"use strict";Object.defineProperty(Jv,"__esModule",{value:!0});Jv.AddLayerVersionPermissionCommand=void 0;var Q4e=P(),Y4e=R(),fQ=Re(),pQ=Ie(),aq=class extends Y4e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Q4e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"AddLayerVersionPermissionCommand",inputFilterSensitiveLog:fQ.AddLayerVersionPermissionRequest.filterSensitiveLog,outputFilterSensitiveLog:fQ.AddLayerVersionPermissionResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,pQ.serializeAws_restJson1AddLayerVersionPermissionCommand)(t,n)}deserialize(t,n){return(0,pQ.deserializeAws_restJson1AddLayerVersionPermissionCommand)(t,n)}};Jv.AddLayerVersionPermissionCommand=aq});var lq=m(Xv=>{"use strict";Object.defineProperty(Xv,"__esModule",{value:!0});Xv.AddPermissionCommand=void 0;var Z4e=P(),e9e=R(),gQ=Re(),hQ=Ie(),cq=class extends e9e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Z4e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"AddPermissionCommand",inputFilterSensitiveLog:gQ.AddPermissionRequest.filterSensitiveLog,outputFilterSensitiveLog:gQ.AddPermissionResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,hQ.serializeAws_restJson1AddPermissionCommand)(t,n)}deserialize(t,n){return(0,hQ.deserializeAws_restJson1AddPermissionCommand)(t,n)}};Xv.AddPermissionCommand=cq});var mq=m(Kv=>{"use strict";Object.defineProperty(Kv,"__esModule",{value:!0});Kv.CreateAliasCommand=void 0;var t9e=P(),n9e=R(),wQ=Re(),yQ=Ie(),uq=class extends n9e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,t9e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"CreateAliasCommand",inputFilterSensitiveLog:wQ.CreateAliasRequest.filterSensitiveLog,outputFilterSensitiveLog:wQ.AliasConfiguration.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,yQ.serializeAws_restJson1CreateAliasCommand)(t,n)}deserialize(t,n){return(0,yQ.deserializeAws_restJson1CreateAliasCommand)(t,n)}};Kv.CreateAliasCommand=uq});var pq=m(Wv=>{"use strict";Object.defineProperty(Wv,"__esModule",{value:!0});Wv.CreateCodeSigningConfigCommand=void 0;var r9e=P(),i9e=R(),SQ=Re(),_Q=Ie(),fq=class extends i9e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,r9e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"CreateCodeSigningConfigCommand",inputFilterSensitiveLog:SQ.CreateCodeSigningConfigRequest.filterSensitiveLog,outputFilterSensitiveLog:SQ.CreateCodeSigningConfigResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,_Q.serializeAws_restJson1CreateCodeSigningConfigCommand)(t,n)}deserialize(t,n){return(0,_Q.deserializeAws_restJson1CreateCodeSigningConfigCommand)(t,n)}};Wv.CreateCodeSigningConfigCommand=fq});var hq=m(Qv=>{"use strict";Object.defineProperty(Qv,"__esModule",{value:!0});Qv.CreateEventSourceMappingCommand=void 0;var s9e=P(),o9e=R(),vQ=Re(),CQ=Ie(),gq=class extends o9e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,s9e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"CreateEventSourceMappingCommand",inputFilterSensitiveLog:vQ.CreateEventSourceMappingRequest.filterSensitiveLog,outputFilterSensitiveLog:vQ.EventSourceMappingConfiguration.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,CQ.serializeAws_restJson1CreateEventSourceMappingCommand)(t,n)}deserialize(t,n){return(0,CQ.deserializeAws_restJson1CreateEventSourceMappingCommand)(t,n)}};Qv.CreateEventSourceMappingCommand=gq});var yq=m(Yv=>{"use strict";Object.defineProperty(Yv,"__esModule",{value:!0});Yv.CreateFunctionCommand=void 0;var a9e=P(),d9e=R(),EQ=Re(),AQ=Ie(),wq=class extends d9e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,a9e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"CreateFunctionCommand",inputFilterSensitiveLog:EQ.CreateFunctionRequest.filterSensitiveLog,outputFilterSensitiveLog:EQ.FunctionConfiguration.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,AQ.serializeAws_restJson1CreateFunctionCommand)(t,n)}deserialize(t,n){return(0,AQ.deserializeAws_restJson1CreateFunctionCommand)(t,n)}};Yv.CreateFunctionCommand=wq});var _q=m(Zv=>{"use strict";Object.defineProperty(Zv,"__esModule",{value:!0});Zv.CreateFunctionUrlConfigCommand=void 0;var c9e=P(),l9e=R(),xQ=Re(),bQ=Ie(),Sq=class extends l9e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,c9e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"CreateFunctionUrlConfigCommand",inputFilterSensitiveLog:xQ.CreateFunctionUrlConfigRequest.filterSensitiveLog,outputFilterSensitiveLog:xQ.CreateFunctionUrlConfigResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,bQ.serializeAws_restJson1CreateFunctionUrlConfigCommand)(t,n)}deserialize(t,n){return(0,bQ.deserializeAws_restJson1CreateFunctionUrlConfigCommand)(t,n)}};Zv.CreateFunctionUrlConfigCommand=Sq});var Cq=m(eC=>{"use strict";Object.defineProperty(eC,"__esModule",{value:!0});eC.DeleteAliasCommand=void 0;var u9e=P(),m9e=R(),f9e=Re(),RQ=Ie(),vq=class extends m9e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,u9e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"DeleteAliasCommand",inputFilterSensitiveLog:f9e.DeleteAliasRequest.filterSensitiveLog,outputFilterSensitiveLog:u=>u},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,RQ.serializeAws_restJson1DeleteAliasCommand)(t,n)}deserialize(t,n){return(0,RQ.deserializeAws_restJson1DeleteAliasCommand)(t,n)}};eC.DeleteAliasCommand=vq});var Aq=m(tC=>{"use strict";Object.defineProperty(tC,"__esModule",{value:!0});tC.DeleteCodeSigningConfigCommand=void 0;var p9e=P(),g9e=R(),TQ=Re(),IQ=Ie(),Eq=class extends g9e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,p9e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"DeleteCodeSigningConfigCommand",inputFilterSensitiveLog:TQ.DeleteCodeSigningConfigRequest.filterSensitiveLog,outputFilterSensitiveLog:TQ.DeleteCodeSigningConfigResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,IQ.serializeAws_restJson1DeleteCodeSigningConfigCommand)(t,n)}deserialize(t,n){return(0,IQ.deserializeAws_restJson1DeleteCodeSigningConfigCommand)(t,n)}};tC.DeleteCodeSigningConfigCommand=Eq});var bq=m(nC=>{"use strict";Object.defineProperty(nC,"__esModule",{value:!0});nC.DeleteEventSourceMappingCommand=void 0;var h9e=P(),w9e=R(),NQ=Re(),PQ=Ie(),xq=class extends w9e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,h9e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"DeleteEventSourceMappingCommand",inputFilterSensitiveLog:NQ.DeleteEventSourceMappingRequest.filterSensitiveLog,outputFilterSensitiveLog:NQ.EventSourceMappingConfiguration.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,PQ.serializeAws_restJson1DeleteEventSourceMappingCommand)(t,n)}deserialize(t,n){return(0,PQ.deserializeAws_restJson1DeleteEventSourceMappingCommand)(t,n)}};nC.DeleteEventSourceMappingCommand=xq});var Tq=m(rC=>{"use strict";Object.defineProperty(rC,"__esModule",{value:!0});rC.DeleteFunctionCodeSigningConfigCommand=void 0;var y9e=P(),S9e=R(),_9e=Re(),kQ=Ie(),Rq=class extends S9e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,y9e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"DeleteFunctionCodeSigningConfigCommand",inputFilterSensitiveLog:_9e.DeleteFunctionCodeSigningConfigRequest.filterSensitiveLog,outputFilterSensitiveLog:u=>u},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,kQ.serializeAws_restJson1DeleteFunctionCodeSigningConfigCommand)(t,n)}deserialize(t,n){return(0,kQ.deserializeAws_restJson1DeleteFunctionCodeSigningConfigCommand)(t,n)}};rC.DeleteFunctionCodeSigningConfigCommand=Rq});var Nq=m(iC=>{"use strict";Object.defineProperty(iC,"__esModule",{value:!0});iC.DeleteFunctionCommand=void 0;var v9e=P(),C9e=R(),E9e=Re(),zQ=Ie(),Iq=class extends C9e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,v9e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"DeleteFunctionCommand",inputFilterSensitiveLog:E9e.DeleteFunctionRequest.filterSensitiveLog,outputFilterSensitiveLog:u=>u},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,zQ.serializeAws_restJson1DeleteFunctionCommand)(t,n)}deserialize(t,n){return(0,zQ.deserializeAws_restJson1DeleteFunctionCommand)(t,n)}};iC.DeleteFunctionCommand=Iq});var kq=m(sC=>{"use strict";Object.defineProperty(sC,"__esModule",{value:!0});sC.DeleteFunctionConcurrencyCommand=void 0;var A9e=P(),x9e=R(),b9e=Re(),qQ=Ie(),Pq=class extends x9e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,A9e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"DeleteFunctionConcurrencyCommand",inputFilterSensitiveLog:b9e.DeleteFunctionConcurrencyRequest.filterSensitiveLog,outputFilterSensitiveLog:u=>u},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,qQ.serializeAws_restJson1DeleteFunctionConcurrencyCommand)(t,n)}deserialize(t,n){return(0,qQ.deserializeAws_restJson1DeleteFunctionConcurrencyCommand)(t,n)}};sC.DeleteFunctionConcurrencyCommand=Pq});var qq=m(oC=>{"use strict";Object.defineProperty(oC,"__esModule",{value:!0});oC.DeleteFunctionEventInvokeConfigCommand=void 0;var R9e=P(),T9e=R(),I9e=Re(),LQ=Ie(),zq=class extends T9e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,R9e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"DeleteFunctionEventInvokeConfigCommand",inputFilterSensitiveLog:I9e.DeleteFunctionEventInvokeConfigRequest.filterSensitiveLog,outputFilterSensitiveLog:u=>u},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,LQ.serializeAws_restJson1DeleteFunctionEventInvokeConfigCommand)(t,n)}deserialize(t,n){return(0,LQ.deserializeAws_restJson1DeleteFunctionEventInvokeConfigCommand)(t,n)}};oC.DeleteFunctionEventInvokeConfigCommand=zq});var Dq=m(aC=>{"use strict";Object.defineProperty(aC,"__esModule",{value:!0});aC.DeleteFunctionUrlConfigCommand=void 0;var N9e=P(),P9e=R(),k9e=Re(),DQ=Ie(),Lq=class extends P9e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,N9e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"DeleteFunctionUrlConfigCommand",inputFilterSensitiveLog:k9e.DeleteFunctionUrlConfigRequest.filterSensitiveLog,outputFilterSensitiveLog:u=>u},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,DQ.serializeAws_restJson1DeleteFunctionUrlConfigCommand)(t,n)}deserialize(t,n){return(0,DQ.deserializeAws_restJson1DeleteFunctionUrlConfigCommand)(t,n)}};aC.DeleteFunctionUrlConfigCommand=Lq});var Bq=m(dC=>{"use strict";Object.defineProperty(dC,"__esModule",{value:!0});dC.DeleteLayerVersionCommand=void 0;var z9e=P(),q9e=R(),L9e=Re(),MQ=Ie(),Mq=class extends q9e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,z9e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"DeleteLayerVersionCommand",inputFilterSensitiveLog:L9e.DeleteLayerVersionRequest.filterSensitiveLog,outputFilterSensitiveLog:u=>u},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,MQ.serializeAws_restJson1DeleteLayerVersionCommand)(t,n)}deserialize(t,n){return(0,MQ.deserializeAws_restJson1DeleteLayerVersionCommand)(t,n)}};dC.DeleteLayerVersionCommand=Mq});var Fq=m(cC=>{"use strict";Object.defineProperty(cC,"__esModule",{value:!0});cC.DeleteProvisionedConcurrencyConfigCommand=void 0;var D9e=P(),M9e=R(),B9e=Re(),BQ=Ie(),Oq=class extends M9e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,D9e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"DeleteProvisionedConcurrencyConfigCommand",inputFilterSensitiveLog:B9e.DeleteProvisionedConcurrencyConfigRequest.filterSensitiveLog,outputFilterSensitiveLog:u=>u},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,BQ.serializeAws_restJson1DeleteProvisionedConcurrencyConfigCommand)(t,n)}deserialize(t,n){return(0,BQ.deserializeAws_restJson1DeleteProvisionedConcurrencyConfigCommand)(t,n)}};cC.DeleteProvisionedConcurrencyConfigCommand=Oq});var Uq=m(lC=>{"use strict";Object.defineProperty(lC,"__esModule",{value:!0});lC.GetAccountSettingsCommand=void 0;var O9e=P(),F9e=R(),OQ=Re(),FQ=Ie(),jq=class extends F9e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,O9e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"GetAccountSettingsCommand",inputFilterSensitiveLog:OQ.GetAccountSettingsRequest.filterSensitiveLog,outputFilterSensitiveLog:OQ.GetAccountSettingsResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,FQ.serializeAws_restJson1GetAccountSettingsCommand)(t,n)}deserialize(t,n){return(0,FQ.deserializeAws_restJson1GetAccountSettingsCommand)(t,n)}};lC.GetAccountSettingsCommand=jq});var Vq=m(uC=>{"use strict";Object.defineProperty(uC,"__esModule",{value:!0});uC.GetAliasCommand=void 0;var j9e=P(),U9e=R(),jQ=Re(),UQ=Ie(),Gq=class extends U9e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,j9e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"GetAliasCommand",inputFilterSensitiveLog:jQ.GetAliasRequest.filterSensitiveLog,outputFilterSensitiveLog:jQ.AliasConfiguration.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,UQ.serializeAws_restJson1GetAliasCommand)(t,n)}deserialize(t,n){return(0,UQ.deserializeAws_restJson1GetAliasCommand)(t,n)}};uC.GetAliasCommand=Gq});var Hq=m(mC=>{"use strict";Object.defineProperty(mC,"__esModule",{value:!0});mC.GetCodeSigningConfigCommand=void 0;var G9e=P(),V9e=R(),GQ=Re(),VQ=Ie(),$q=class extends V9e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,G9e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"GetCodeSigningConfigCommand",inputFilterSensitiveLog:GQ.GetCodeSigningConfigRequest.filterSensitiveLog,outputFilterSensitiveLog:GQ.GetCodeSigningConfigResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,VQ.serializeAws_restJson1GetCodeSigningConfigCommand)(t,n)}deserialize(t,n){return(0,VQ.deserializeAws_restJson1GetCodeSigningConfigCommand)(t,n)}};mC.GetCodeSigningConfigCommand=$q});var Xq=m(fC=>{"use strict";Object.defineProperty(fC,"__esModule",{value:!0});fC.GetEventSourceMappingCommand=void 0;var $9e=P(),H9e=R(),$Q=Re(),HQ=Ie(),Jq=class extends H9e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,$9e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"GetEventSourceMappingCommand",inputFilterSensitiveLog:$Q.GetEventSourceMappingRequest.filterSensitiveLog,outputFilterSensitiveLog:$Q.EventSourceMappingConfiguration.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,HQ.serializeAws_restJson1GetEventSourceMappingCommand)(t,n)}deserialize(t,n){return(0,HQ.deserializeAws_restJson1GetEventSourceMappingCommand)(t,n)}};fC.GetEventSourceMappingCommand=Jq});var Wq=m(pC=>{"use strict";Object.defineProperty(pC,"__esModule",{value:!0});pC.GetFunctionCodeSigningConfigCommand=void 0;var J9e=P(),X9e=R(),JQ=Re(),XQ=Ie(),Kq=class extends X9e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,J9e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"GetFunctionCodeSigningConfigCommand",inputFilterSensitiveLog:JQ.GetFunctionCodeSigningConfigRequest.filterSensitiveLog,outputFilterSensitiveLog:JQ.GetFunctionCodeSigningConfigResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,XQ.serializeAws_restJson1GetFunctionCodeSigningConfigCommand)(t,n)}deserialize(t,n){return(0,XQ.deserializeAws_restJson1GetFunctionCodeSigningConfigCommand)(t,n)}};pC.GetFunctionCodeSigningConfigCommand=Kq});var Ud=m(gC=>{"use strict";Object.defineProperty(gC,"__esModule",{value:!0});gC.GetFunctionCommand=void 0;var K9e=P(),W9e=R(),KQ=Re(),WQ=Ie(),Qq=class extends W9e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,K9e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"GetFunctionCommand",inputFilterSensitiveLog:KQ.GetFunctionRequest.filterSensitiveLog,outputFilterSensitiveLog:KQ.GetFunctionResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,WQ.serializeAws_restJson1GetFunctionCommand)(t,n)}deserialize(t,n){return(0,WQ.deserializeAws_restJson1GetFunctionCommand)(t,n)}};gC.GetFunctionCommand=Qq});var Zq=m(hC=>{"use strict";Object.defineProperty(hC,"__esModule",{value:!0});hC.GetFunctionConcurrencyCommand=void 0;var Q9e=P(),Y9e=R(),QQ=Re(),YQ=Ie(),Yq=class extends Y9e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Q9e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"GetFunctionConcurrencyCommand",inputFilterSensitiveLog:QQ.GetFunctionConcurrencyRequest.filterSensitiveLog,outputFilterSensitiveLog:QQ.GetFunctionConcurrencyResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,YQ.serializeAws_restJson1GetFunctionConcurrencyCommand)(t,n)}deserialize(t,n){return(0,YQ.deserializeAws_restJson1GetFunctionConcurrencyCommand)(t,n)}};hC.GetFunctionConcurrencyCommand=Yq});var Xm=m(wC=>{"use strict";Object.defineProperty(wC,"__esModule",{value:!0});wC.GetFunctionConfigurationCommand=void 0;var Z9e=P(),e7e=R(),ZQ=Re(),eY=Ie(),eL=class extends e7e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Z9e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"GetFunctionConfigurationCommand",inputFilterSensitiveLog:ZQ.GetFunctionConfigurationRequest.filterSensitiveLog,outputFilterSensitiveLog:ZQ.FunctionConfiguration.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,eY.serializeAws_restJson1GetFunctionConfigurationCommand)(t,n)}deserialize(t,n){return(0,eY.deserializeAws_restJson1GetFunctionConfigurationCommand)(t,n)}};wC.GetFunctionConfigurationCommand=eL});var nL=m(yC=>{"use strict";Object.defineProperty(yC,"__esModule",{value:!0});yC.GetFunctionEventInvokeConfigCommand=void 0;var t7e=P(),n7e=R(),tY=Re(),nY=Ie(),tL=class extends n7e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,t7e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"GetFunctionEventInvokeConfigCommand",inputFilterSensitiveLog:tY.GetFunctionEventInvokeConfigRequest.filterSensitiveLog,outputFilterSensitiveLog:tY.FunctionEventInvokeConfig.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,nY.serializeAws_restJson1GetFunctionEventInvokeConfigCommand)(t,n)}deserialize(t,n){return(0,nY.deserializeAws_restJson1GetFunctionEventInvokeConfigCommand)(t,n)}};yC.GetFunctionEventInvokeConfigCommand=tL});var iL=m(SC=>{"use strict";Object.defineProperty(SC,"__esModule",{value:!0});SC.GetFunctionUrlConfigCommand=void 0;var r7e=P(),i7e=R(),rY=Re(),iY=Ie(),rL=class extends i7e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,r7e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"GetFunctionUrlConfigCommand",inputFilterSensitiveLog:rY.GetFunctionUrlConfigRequest.filterSensitiveLog,outputFilterSensitiveLog:rY.GetFunctionUrlConfigResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,iY.serializeAws_restJson1GetFunctionUrlConfigCommand)(t,n)}deserialize(t,n){return(0,iY.deserializeAws_restJson1GetFunctionUrlConfigCommand)(t,n)}};SC.GetFunctionUrlConfigCommand=rL});var oL=m(_C=>{"use strict";Object.defineProperty(_C,"__esModule",{value:!0});_C.GetLayerVersionByArnCommand=void 0;var s7e=P(),o7e=R(),sY=Re(),oY=Ie(),sL=class extends o7e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,s7e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"GetLayerVersionByArnCommand",inputFilterSensitiveLog:sY.GetLayerVersionByArnRequest.filterSensitiveLog,outputFilterSensitiveLog:sY.GetLayerVersionResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,oY.serializeAws_restJson1GetLayerVersionByArnCommand)(t,n)}deserialize(t,n){return(0,oY.deserializeAws_restJson1GetLayerVersionByArnCommand)(t,n)}};_C.GetLayerVersionByArnCommand=sL});var dL=m(vC=>{"use strict";Object.defineProperty(vC,"__esModule",{value:!0});vC.GetLayerVersionCommand=void 0;var a7e=P(),d7e=R(),aY=Re(),dY=Ie(),aL=class extends d7e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,a7e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"GetLayerVersionCommand",inputFilterSensitiveLog:aY.GetLayerVersionRequest.filterSensitiveLog,outputFilterSensitiveLog:aY.GetLayerVersionResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,dY.serializeAws_restJson1GetLayerVersionCommand)(t,n)}deserialize(t,n){return(0,dY.deserializeAws_restJson1GetLayerVersionCommand)(t,n)}};vC.GetLayerVersionCommand=aL});var lL=m(CC=>{"use strict";Object.defineProperty(CC,"__esModule",{value:!0});CC.GetLayerVersionPolicyCommand=void 0;var c7e=P(),l7e=R(),cY=Re(),lY=Ie(),cL=class extends l7e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,c7e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"GetLayerVersionPolicyCommand",inputFilterSensitiveLog:cY.GetLayerVersionPolicyRequest.filterSensitiveLog,outputFilterSensitiveLog:cY.GetLayerVersionPolicyResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,lY.serializeAws_restJson1GetLayerVersionPolicyCommand)(t,n)}deserialize(t,n){return(0,lY.deserializeAws_restJson1GetLayerVersionPolicyCommand)(t,n)}};CC.GetLayerVersionPolicyCommand=cL});var mL=m(EC=>{"use strict";Object.defineProperty(EC,"__esModule",{value:!0});EC.GetPolicyCommand=void 0;var u7e=P(),m7e=R(),uY=Re(),mY=Ie(),uL=class extends m7e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,u7e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"GetPolicyCommand",inputFilterSensitiveLog:uY.GetPolicyRequest.filterSensitiveLog,outputFilterSensitiveLog:uY.GetPolicyResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,mY.serializeAws_restJson1GetPolicyCommand)(t,n)}deserialize(t,n){return(0,mY.deserializeAws_restJson1GetPolicyCommand)(t,n)}};EC.GetPolicyCommand=uL});var pL=m(AC=>{"use strict";Object.defineProperty(AC,"__esModule",{value:!0});AC.GetProvisionedConcurrencyConfigCommand=void 0;var f7e=P(),p7e=R(),fY=Re(),pY=Ie(),fL=class extends p7e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,f7e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"GetProvisionedConcurrencyConfigCommand",inputFilterSensitiveLog:fY.GetProvisionedConcurrencyConfigRequest.filterSensitiveLog,outputFilterSensitiveLog:fY.GetProvisionedConcurrencyConfigResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,pY.serializeAws_restJson1GetProvisionedConcurrencyConfigCommand)(t,n)}deserialize(t,n){return(0,pY.deserializeAws_restJson1GetProvisionedConcurrencyConfigCommand)(t,n)}};AC.GetProvisionedConcurrencyConfigCommand=fL});var hL=m(xC=>{"use strict";Object.defineProperty(xC,"__esModule",{value:!0});xC.InvokeAsyncCommand=void 0;var g7e=P(),h7e=R(),gY=Re(),hY=Ie(),gL=class extends h7e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,g7e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"InvokeAsyncCommand",inputFilterSensitiveLog:gY.InvokeAsyncRequest.filterSensitiveLog,outputFilterSensitiveLog:gY.InvokeAsyncResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,hY.serializeAws_restJson1InvokeAsyncCommand)(t,n)}deserialize(t,n){return(0,hY.deserializeAws_restJson1InvokeAsyncCommand)(t,n)}};xC.InvokeAsyncCommand=gL});var yL=m(bC=>{"use strict";Object.defineProperty(bC,"__esModule",{value:!0});bC.InvokeCommand=void 0;var w7e=P(),y7e=R(),wY=Re(),yY=Ie(),wL=class extends y7e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,w7e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"InvokeCommand",inputFilterSensitiveLog:wY.InvocationRequest.filterSensitiveLog,outputFilterSensitiveLog:wY.InvocationResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,yY.serializeAws_restJson1InvokeCommand)(t,n)}deserialize(t,n){return(0,yY.deserializeAws_restJson1InvokeCommand)(t,n)}};bC.InvokeCommand=wL});var TC=m(RC=>{"use strict";Object.defineProperty(RC,"__esModule",{value:!0});RC.ListAliasesCommand=void 0;var S7e=P(),_7e=R(),SY=Re(),_Y=Ie(),SL=class extends _7e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,S7e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"ListAliasesCommand",inputFilterSensitiveLog:SY.ListAliasesRequest.filterSensitiveLog,outputFilterSensitiveLog:SY.ListAliasesResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,_Y.serializeAws_restJson1ListAliasesCommand)(t,n)}deserialize(t,n){return(0,_Y.deserializeAws_restJson1ListAliasesCommand)(t,n)}};RC.ListAliasesCommand=SL});var NC=m(IC=>{"use strict";Object.defineProperty(IC,"__esModule",{value:!0});IC.ListCodeSigningConfigsCommand=void 0;var v7e=P(),C7e=R(),vY=Re(),CY=Ie(),_L=class extends C7e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,v7e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"ListCodeSigningConfigsCommand",inputFilterSensitiveLog:vY.ListCodeSigningConfigsRequest.filterSensitiveLog,outputFilterSensitiveLog:vY.ListCodeSigningConfigsResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,CY.serializeAws_restJson1ListCodeSigningConfigsCommand)(t,n)}deserialize(t,n){return(0,CY.deserializeAws_restJson1ListCodeSigningConfigsCommand)(t,n)}};IC.ListCodeSigningConfigsCommand=_L});var kC=m(PC=>{"use strict";Object.defineProperty(PC,"__esModule",{value:!0});PC.ListEventSourceMappingsCommand=void 0;var E7e=P(),A7e=R(),EY=Re(),AY=Ie(),vL=class extends A7e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,E7e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"ListEventSourceMappingsCommand",inputFilterSensitiveLog:EY.ListEventSourceMappingsRequest.filterSensitiveLog,outputFilterSensitiveLog:EY.ListEventSourceMappingsResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,AY.serializeAws_restJson1ListEventSourceMappingsCommand)(t,n)}deserialize(t,n){return(0,AY.deserializeAws_restJson1ListEventSourceMappingsCommand)(t,n)}};PC.ListEventSourceMappingsCommand=vL});var qC=m(zC=>{"use strict";Object.defineProperty(zC,"__esModule",{value:!0});zC.ListFunctionEventInvokeConfigsCommand=void 0;var x7e=P(),b7e=R(),xY=Re(),bY=Ie(),CL=class extends b7e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,x7e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"ListFunctionEventInvokeConfigsCommand",inputFilterSensitiveLog:xY.ListFunctionEventInvokeConfigsRequest.filterSensitiveLog,outputFilterSensitiveLog:xY.ListFunctionEventInvokeConfigsResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,bY.serializeAws_restJson1ListFunctionEventInvokeConfigsCommand)(t,n)}deserialize(t,n){return(0,bY.deserializeAws_restJson1ListFunctionEventInvokeConfigsCommand)(t,n)}};zC.ListFunctionEventInvokeConfigsCommand=CL});var DC=m(LC=>{"use strict";Object.defineProperty(LC,"__esModule",{value:!0});LC.ListFunctionsByCodeSigningConfigCommand=void 0;var R7e=P(),T7e=R(),RY=Re(),TY=Ie(),EL=class extends T7e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,R7e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"ListFunctionsByCodeSigningConfigCommand",inputFilterSensitiveLog:RY.ListFunctionsByCodeSigningConfigRequest.filterSensitiveLog,outputFilterSensitiveLog:RY.ListFunctionsByCodeSigningConfigResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,TY.serializeAws_restJson1ListFunctionsByCodeSigningConfigCommand)(t,n)}deserialize(t,n){return(0,TY.deserializeAws_restJson1ListFunctionsByCodeSigningConfigCommand)(t,n)}};LC.ListFunctionsByCodeSigningConfigCommand=EL});var BC=m(MC=>{"use strict";Object.defineProperty(MC,"__esModule",{value:!0});MC.ListFunctionsCommand=void 0;var I7e=P(),N7e=R(),IY=Re(),NY=Ie(),AL=class extends N7e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,I7e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"ListFunctionsCommand",inputFilterSensitiveLog:IY.ListFunctionsRequest.filterSensitiveLog,outputFilterSensitiveLog:IY.ListFunctionsResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,NY.serializeAws_restJson1ListFunctionsCommand)(t,n)}deserialize(t,n){return(0,NY.deserializeAws_restJson1ListFunctionsCommand)(t,n)}};MC.ListFunctionsCommand=AL});var FC=m(OC=>{"use strict";Object.defineProperty(OC,"__esModule",{value:!0});OC.ListFunctionUrlConfigsCommand=void 0;var P7e=P(),k7e=R(),PY=Re(),kY=Ie(),xL=class extends k7e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,P7e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"ListFunctionUrlConfigsCommand",inputFilterSensitiveLog:PY.ListFunctionUrlConfigsRequest.filterSensitiveLog,outputFilterSensitiveLog:PY.ListFunctionUrlConfigsResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,kY.serializeAws_restJson1ListFunctionUrlConfigsCommand)(t,n)}deserialize(t,n){return(0,kY.deserializeAws_restJson1ListFunctionUrlConfigsCommand)(t,n)}};OC.ListFunctionUrlConfigsCommand=xL});var UC=m(jC=>{"use strict";Object.defineProperty(jC,"__esModule",{value:!0});jC.ListLayersCommand=void 0;var z7e=P(),q7e=R(),zY=Re(),qY=Ie(),bL=class extends q7e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,z7e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"ListLayersCommand",inputFilterSensitiveLog:zY.ListLayersRequest.filterSensitiveLog,outputFilterSensitiveLog:zY.ListLayersResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,qY.serializeAws_restJson1ListLayersCommand)(t,n)}deserialize(t,n){return(0,qY.deserializeAws_restJson1ListLayersCommand)(t,n)}};jC.ListLayersCommand=bL});var VC=m(GC=>{"use strict";Object.defineProperty(GC,"__esModule",{value:!0});GC.ListLayerVersionsCommand=void 0;var L7e=P(),D7e=R(),LY=Re(),DY=Ie(),RL=class extends D7e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,L7e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"ListLayerVersionsCommand",inputFilterSensitiveLog:LY.ListLayerVersionsRequest.filterSensitiveLog,outputFilterSensitiveLog:LY.ListLayerVersionsResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,DY.serializeAws_restJson1ListLayerVersionsCommand)(t,n)}deserialize(t,n){return(0,DY.deserializeAws_restJson1ListLayerVersionsCommand)(t,n)}};GC.ListLayerVersionsCommand=RL});var HC=m($C=>{"use strict";Object.defineProperty($C,"__esModule",{value:!0});$C.ListProvisionedConcurrencyConfigsCommand=void 0;var M7e=P(),B7e=R(),MY=Re(),BY=Ie(),TL=class extends B7e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,M7e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"ListProvisionedConcurrencyConfigsCommand",inputFilterSensitiveLog:MY.ListProvisionedConcurrencyConfigsRequest.filterSensitiveLog,outputFilterSensitiveLog:MY.ListProvisionedConcurrencyConfigsResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,BY.serializeAws_restJson1ListProvisionedConcurrencyConfigsCommand)(t,n)}deserialize(t,n){return(0,BY.deserializeAws_restJson1ListProvisionedConcurrencyConfigsCommand)(t,n)}};$C.ListProvisionedConcurrencyConfigsCommand=TL});var NL=m(JC=>{"use strict";Object.defineProperty(JC,"__esModule",{value:!0});JC.ListTagsCommand=void 0;var O7e=P(),F7e=R(),OY=Re(),FY=Ie(),IL=class extends F7e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,O7e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"ListTagsCommand",inputFilterSensitiveLog:OY.ListTagsRequest.filterSensitiveLog,outputFilterSensitiveLog:OY.ListTagsResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,FY.serializeAws_restJson1ListTagsCommand)(t,n)}deserialize(t,n){return(0,FY.deserializeAws_restJson1ListTagsCommand)(t,n)}};JC.ListTagsCommand=IL});var KC=m(XC=>{"use strict";Object.defineProperty(XC,"__esModule",{value:!0});XC.ListVersionsByFunctionCommand=void 0;var j7e=P(),U7e=R(),jY=Re(),UY=Ie(),PL=class extends U7e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,j7e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"ListVersionsByFunctionCommand",inputFilterSensitiveLog:jY.ListVersionsByFunctionRequest.filterSensitiveLog,outputFilterSensitiveLog:jY.ListVersionsByFunctionResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,UY.serializeAws_restJson1ListVersionsByFunctionCommand)(t,n)}deserialize(t,n){return(0,UY.deserializeAws_restJson1ListVersionsByFunctionCommand)(t,n)}};XC.ListVersionsByFunctionCommand=PL});var zL=m(WC=>{"use strict";Object.defineProperty(WC,"__esModule",{value:!0});WC.PublishLayerVersionCommand=void 0;var G7e=P(),V7e=R(),GY=Re(),VY=Ie(),kL=class extends V7e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,G7e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"PublishLayerVersionCommand",inputFilterSensitiveLog:GY.PublishLayerVersionRequest.filterSensitiveLog,outputFilterSensitiveLog:GY.PublishLayerVersionResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,VY.serializeAws_restJson1PublishLayerVersionCommand)(t,n)}deserialize(t,n){return(0,VY.deserializeAws_restJson1PublishLayerVersionCommand)(t,n)}};WC.PublishLayerVersionCommand=kL});var LL=m(QC=>{"use strict";Object.defineProperty(QC,"__esModule",{value:!0});QC.PublishVersionCommand=void 0;var $7e=P(),H7e=R(),$Y=Re(),HY=Ie(),qL=class extends H7e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,$7e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"PublishVersionCommand",inputFilterSensitiveLog:$Y.PublishVersionRequest.filterSensitiveLog,outputFilterSensitiveLog:$Y.FunctionConfiguration.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,HY.serializeAws_restJson1PublishVersionCommand)(t,n)}deserialize(t,n){return(0,HY.deserializeAws_restJson1PublishVersionCommand)(t,n)}};QC.PublishVersionCommand=qL});var ML=m(YC=>{"use strict";Object.defineProperty(YC,"__esModule",{value:!0});YC.PutFunctionCodeSigningConfigCommand=void 0;var J7e=P(),X7e=R(),JY=Re(),XY=Ie(),DL=class extends X7e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,J7e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"PutFunctionCodeSigningConfigCommand",inputFilterSensitiveLog:JY.PutFunctionCodeSigningConfigRequest.filterSensitiveLog,outputFilterSensitiveLog:JY.PutFunctionCodeSigningConfigResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,XY.serializeAws_restJson1PutFunctionCodeSigningConfigCommand)(t,n)}deserialize(t,n){return(0,XY.deserializeAws_restJson1PutFunctionCodeSigningConfigCommand)(t,n)}};YC.PutFunctionCodeSigningConfigCommand=DL});var OL=m(ZC=>{"use strict";Object.defineProperty(ZC,"__esModule",{value:!0});ZC.PutFunctionConcurrencyCommand=void 0;var K7e=P(),W7e=R(),KY=Re(),WY=Ie(),BL=class extends W7e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,K7e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"PutFunctionConcurrencyCommand",inputFilterSensitiveLog:KY.PutFunctionConcurrencyRequest.filterSensitiveLog,outputFilterSensitiveLog:KY.Concurrency.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,WY.serializeAws_restJson1PutFunctionConcurrencyCommand)(t,n)}deserialize(t,n){return(0,WY.deserializeAws_restJson1PutFunctionConcurrencyCommand)(t,n)}};ZC.PutFunctionConcurrencyCommand=BL});var jL=m(eE=>{"use strict";Object.defineProperty(eE,"__esModule",{value:!0});eE.PutFunctionEventInvokeConfigCommand=void 0;var Q7e=P(),Y7e=R(),QY=Re(),YY=Ie(),FL=class extends Y7e.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Q7e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"PutFunctionEventInvokeConfigCommand",inputFilterSensitiveLog:QY.PutFunctionEventInvokeConfigRequest.filterSensitiveLog,outputFilterSensitiveLog:QY.FunctionEventInvokeConfig.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,YY.serializeAws_restJson1PutFunctionEventInvokeConfigCommand)(t,n)}deserialize(t,n){return(0,YY.deserializeAws_restJson1PutFunctionEventInvokeConfigCommand)(t,n)}};eE.PutFunctionEventInvokeConfigCommand=FL});var GL=m(tE=>{"use strict";Object.defineProperty(tE,"__esModule",{value:!0});tE.PutProvisionedConcurrencyConfigCommand=void 0;var Z7e=P(),eQe=R(),ZY=Re(),eZ=Ie(),UL=class extends eQe.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Z7e.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"PutProvisionedConcurrencyConfigCommand",inputFilterSensitiveLog:ZY.PutProvisionedConcurrencyConfigRequest.filterSensitiveLog,outputFilterSensitiveLog:ZY.PutProvisionedConcurrencyConfigResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,eZ.serializeAws_restJson1PutProvisionedConcurrencyConfigCommand)(t,n)}deserialize(t,n){return(0,eZ.deserializeAws_restJson1PutProvisionedConcurrencyConfigCommand)(t,n)}};tE.PutProvisionedConcurrencyConfigCommand=UL});var $L=m(nE=>{"use strict";Object.defineProperty(nE,"__esModule",{value:!0});nE.RemoveLayerVersionPermissionCommand=void 0;var tQe=P(),nQe=R(),rQe=Re(),tZ=Ie(),VL=class extends nQe.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,tQe.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"RemoveLayerVersionPermissionCommand",inputFilterSensitiveLog:rQe.RemoveLayerVersionPermissionRequest.filterSensitiveLog,outputFilterSensitiveLog:u=>u},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,tZ.serializeAws_restJson1RemoveLayerVersionPermissionCommand)(t,n)}deserialize(t,n){return(0,tZ.deserializeAws_restJson1RemoveLayerVersionPermissionCommand)(t,n)}};nE.RemoveLayerVersionPermissionCommand=VL});var JL=m(rE=>{"use strict";Object.defineProperty(rE,"__esModule",{value:!0});rE.RemovePermissionCommand=void 0;var iQe=P(),sQe=R(),oQe=Re(),nZ=Ie(),HL=class extends sQe.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,iQe.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"RemovePermissionCommand",inputFilterSensitiveLog:oQe.RemovePermissionRequest.filterSensitiveLog,outputFilterSensitiveLog:u=>u},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,nZ.serializeAws_restJson1RemovePermissionCommand)(t,n)}deserialize(t,n){return(0,nZ.deserializeAws_restJson1RemovePermissionCommand)(t,n)}};rE.RemovePermissionCommand=HL});var KL=m(iE=>{"use strict";Object.defineProperty(iE,"__esModule",{value:!0});iE.TagResourceCommand=void 0;var aQe=P(),dQe=R(),cQe=Re(),rZ=Ie(),XL=class extends dQe.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,aQe.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"TagResourceCommand",inputFilterSensitiveLog:cQe.TagResourceRequest.filterSensitiveLog,outputFilterSensitiveLog:u=>u},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,rZ.serializeAws_restJson1TagResourceCommand)(t,n)}deserialize(t,n){return(0,rZ.deserializeAws_restJson1TagResourceCommand)(t,n)}};iE.TagResourceCommand=XL});var QL=m(sE=>{"use strict";Object.defineProperty(sE,"__esModule",{value:!0});sE.UntagResourceCommand=void 0;var lQe=P(),uQe=R(),mQe=Re(),iZ=Ie(),WL=class extends uQe.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,lQe.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"UntagResourceCommand",inputFilterSensitiveLog:mQe.UntagResourceRequest.filterSensitiveLog,outputFilterSensitiveLog:u=>u},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,iZ.serializeAws_restJson1UntagResourceCommand)(t,n)}deserialize(t,n){return(0,iZ.deserializeAws_restJson1UntagResourceCommand)(t,n)}};sE.UntagResourceCommand=WL});var ZL=m(oE=>{"use strict";Object.defineProperty(oE,"__esModule",{value:!0});oE.UpdateAliasCommand=void 0;var fQe=P(),pQe=R(),sZ=Re(),oZ=Ie(),YL=class extends pQe.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,fQe.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"UpdateAliasCommand",inputFilterSensitiveLog:sZ.UpdateAliasRequest.filterSensitiveLog,outputFilterSensitiveLog:sZ.AliasConfiguration.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,oZ.serializeAws_restJson1UpdateAliasCommand)(t,n)}deserialize(t,n){return(0,oZ.deserializeAws_restJson1UpdateAliasCommand)(t,n)}};oE.UpdateAliasCommand=YL});var tD=m(aE=>{"use strict";Object.defineProperty(aE,"__esModule",{value:!0});aE.UpdateCodeSigningConfigCommand=void 0;var gQe=P(),hQe=R(),aZ=Re(),dZ=Ie(),eD=class extends hQe.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,gQe.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"UpdateCodeSigningConfigCommand",inputFilterSensitiveLog:aZ.UpdateCodeSigningConfigRequest.filterSensitiveLog,outputFilterSensitiveLog:aZ.UpdateCodeSigningConfigResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,dZ.serializeAws_restJson1UpdateCodeSigningConfigCommand)(t,n)}deserialize(t,n){return(0,dZ.deserializeAws_restJson1UpdateCodeSigningConfigCommand)(t,n)}};aE.UpdateCodeSigningConfigCommand=eD});var rD=m(dE=>{"use strict";Object.defineProperty(dE,"__esModule",{value:!0});dE.UpdateEventSourceMappingCommand=void 0;var wQe=P(),yQe=R(),cZ=Re(),lZ=Ie(),nD=class extends yQe.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,wQe.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"UpdateEventSourceMappingCommand",inputFilterSensitiveLog:cZ.UpdateEventSourceMappingRequest.filterSensitiveLog,outputFilterSensitiveLog:cZ.EventSourceMappingConfiguration.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,lZ.serializeAws_restJson1UpdateEventSourceMappingCommand)(t,n)}deserialize(t,n){return(0,lZ.deserializeAws_restJson1UpdateEventSourceMappingCommand)(t,n)}};dE.UpdateEventSourceMappingCommand=nD});var sD=m(cE=>{"use strict";Object.defineProperty(cE,"__esModule",{value:!0});cE.UpdateFunctionCodeCommand=void 0;var SQe=P(),_Qe=R(),uZ=Re(),mZ=Ie(),iD=class extends _Qe.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,SQe.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"UpdateFunctionCodeCommand",inputFilterSensitiveLog:uZ.UpdateFunctionCodeRequest.filterSensitiveLog,outputFilterSensitiveLog:uZ.FunctionConfiguration.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,mZ.serializeAws_restJson1UpdateFunctionCodeCommand)(t,n)}deserialize(t,n){return(0,mZ.deserializeAws_restJson1UpdateFunctionCodeCommand)(t,n)}};cE.UpdateFunctionCodeCommand=iD});var aD=m(lE=>{"use strict";Object.defineProperty(lE,"__esModule",{value:!0});lE.UpdateFunctionConfigurationCommand=void 0;var vQe=P(),CQe=R(),fZ=Re(),pZ=Ie(),oD=class extends CQe.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,vQe.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"UpdateFunctionConfigurationCommand",inputFilterSensitiveLog:fZ.UpdateFunctionConfigurationRequest.filterSensitiveLog,outputFilterSensitiveLog:fZ.FunctionConfiguration.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,pZ.serializeAws_restJson1UpdateFunctionConfigurationCommand)(t,n)}deserialize(t,n){return(0,pZ.deserializeAws_restJson1UpdateFunctionConfigurationCommand)(t,n)}};lE.UpdateFunctionConfigurationCommand=oD});var cD=m(uE=>{"use strict";Object.defineProperty(uE,"__esModule",{value:!0});uE.UpdateFunctionEventInvokeConfigCommand=void 0;var EQe=P(),AQe=R(),gZ=Re(),hZ=Ie(),dD=class extends AQe.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,EQe.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"UpdateFunctionEventInvokeConfigCommand",inputFilterSensitiveLog:gZ.UpdateFunctionEventInvokeConfigRequest.filterSensitiveLog,outputFilterSensitiveLog:gZ.FunctionEventInvokeConfig.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,hZ.serializeAws_restJson1UpdateFunctionEventInvokeConfigCommand)(t,n)}deserialize(t,n){return(0,hZ.deserializeAws_restJson1UpdateFunctionEventInvokeConfigCommand)(t,n)}};uE.UpdateFunctionEventInvokeConfigCommand=dD});var uD=m(mE=>{"use strict";Object.defineProperty(mE,"__esModule",{value:!0});mE.UpdateFunctionUrlConfigCommand=void 0;var xQe=P(),bQe=R(),wZ=Re(),yZ=Ie(),lD=class extends bQe.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,xQe.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"LambdaClient",commandName:"UpdateFunctionUrlConfigCommand",inputFilterSensitiveLog:wZ.UpdateFunctionUrlConfigRequest.filterSensitiveLog,outputFilterSensitiveLog:wZ.UpdateFunctionUrlConfigResponse.filterSensitiveLog},{requestHandler:l}=n;return i.resolve(u=>l.handle(u.request,r||{}),c)}serialize(t,n){return(0,yZ.serializeAws_restJson1UpdateFunctionUrlConfigCommand)(t,n)}deserialize(t,n){return(0,yZ.deserializeAws_restJson1UpdateFunctionUrlConfigCommand)(t,n)}};mE.UpdateFunctionUrlConfigCommand=lD});var SZ=m((u9t,RQe)=>{RQe.exports={name:"@aws-sdk/client-lambda",description:"AWS SDK for JavaScript Lambda Client for Node.js, Browser and React Native",version:"3.95.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/client-sts":"3.95.0","@aws-sdk/config-resolver":"3.80.0","@aws-sdk/credential-provider-node":"3.95.0","@aws-sdk/fetch-http-handler":"3.78.0","@aws-sdk/hash-node":"3.78.0","@aws-sdk/invalid-dependency":"3.78.0","@aws-sdk/middleware-content-length":"3.78.0","@aws-sdk/middleware-host-header":"3.78.0","@aws-sdk/middleware-logger":"3.78.0","@aws-sdk/middleware-retry":"3.80.0","@aws-sdk/middleware-serde":"3.78.0","@aws-sdk/middleware-signing":"3.78.0","@aws-sdk/middleware-stack":"3.78.0","@aws-sdk/middleware-user-agent":"3.78.0","@aws-sdk/node-config-provider":"3.80.0","@aws-sdk/node-http-handler":"3.94.0","@aws-sdk/protocol-http":"3.78.0","@aws-sdk/smithy-client":"3.85.0","@aws-sdk/types":"3.78.0","@aws-sdk/url-parser":"3.78.0","@aws-sdk/util-base64-browser":"3.58.0","@aws-sdk/util-base64-node":"3.55.0","@aws-sdk/util-body-length-browser":"3.55.0","@aws-sdk/util-body-length-node":"3.55.0","@aws-sdk/util-defaults-mode-browser":"3.85.0","@aws-sdk/util-defaults-mode-node":"3.85.0","@aws-sdk/util-user-agent-browser":"3.78.0","@aws-sdk/util-user-agent-node":"3.80.0","@aws-sdk/util-utf8-browser":"3.55.0","@aws-sdk/util-utf8-node":"3.55.0","@aws-sdk/util-waiter":"3.78.0",tslib:"^2.3.1"},devDependencies:{"@aws-sdk/service-client-documentation-generator":"3.58.0","@tsconfig/recommended":"1.0.1","@types/node":"^12.7.5",concurrently:"7.0.0","downlevel-dts":"0.7.0",rimraf:"3.0.2",typedoc:"0.19.2",typescript:"~4.6.2"},engines:{node:">=12.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-lambda",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-lambda"}}});var _Z=m(fE=>{"use strict";Object.defineProperty(fE,"__esModule",{value:!0});fE.defaultRegionInfoProvider=void 0;var TQe=Jt(),IQe={"af-south-1":{variants:[{hostname:"lambda.af-south-1.api.aws",tags:["dualstack"]}]},"ap-east-1":{variants:[{hostname:"lambda.ap-east-1.api.aws",tags:["dualstack"]}]},"ap-northeast-1":{variants:[{hostname:"lambda.ap-northeast-1.api.aws",tags:["dualstack"]}]},"ap-northeast-2":{variants:[{hostname:"lambda.ap-northeast-2.api.aws",tags:["dualstack"]}]},"ap-northeast-3":{variants:[{hostname:"lambda.ap-northeast-3.api.aws",tags:["dualstack"]}]},"ap-south-1":{variants:[{hostname:"lambda.ap-south-1.api.aws",tags:["dualstack"]}]},"ap-southeast-1":{variants:[{hostname:"lambda.ap-southeast-1.api.aws",tags:["dualstack"]}]},"ap-southeast-2":{variants:[{hostname:"lambda.ap-southeast-2.api.aws",tags:["dualstack"]}]},"ap-southeast-3":{variants:[{hostname:"lambda.ap-southeast-3.api.aws",tags:["dualstack"]}]},"ca-central-1":{variants:[{hostname:"lambda.ca-central-1.api.aws",tags:["dualstack"]}]},"cn-north-1":{variants:[{hostname:"lambda.cn-north-1.api.amazonwebservices.com.cn",tags:["dualstack"]}]},"cn-northwest-1":{variants:[{hostname:"lambda.cn-northwest-1.api.amazonwebservices.com.cn",tags:["dualstack"]}]},"eu-central-1":{variants:[{hostname:"lambda.eu-central-1.api.aws",tags:["dualstack"]}]},"eu-north-1":{variants:[{hostname:"lambda.eu-north-1.api.aws",tags:["dualstack"]}]},"eu-south-1":{variants:[{hostname:"lambda.eu-south-1.api.aws",tags:["dualstack"]}]},"eu-west-1":{variants:[{hostname:"lambda.eu-west-1.api.aws",tags:["dualstack"]}]},"eu-west-2":{variants:[{hostname:"lambda.eu-west-2.api.aws",tags:["dualstack"]}]},"eu-west-3":{variants:[{hostname:"lambda.eu-west-3.api.aws",tags:["dualstack"]}]},"me-south-1":{variants:[{hostname:"lambda.me-south-1.api.aws",tags:["dualstack"]}]},"sa-east-1":{variants:[{hostname:"lambda.sa-east-1.api.aws",tags:["dualstack"]}]},"us-east-1":{variants:[{hostname:"lambda-fips.us-east-1.amazonaws.com",tags:["fips"]},{hostname:"lambda.us-east-1.api.aws",tags:["dualstack"]}]},"us-east-2":{variants:[{hostname:"lambda-fips.us-east-2.amazonaws.com",tags:["fips"]},{hostname:"lambda.us-east-2.api.aws",tags:["dualstack"]}]},"us-gov-east-1":{variants:[{hostname:"lambda-fips.us-gov-east-1.amazonaws.com",tags:["fips"]}]},"us-gov-west-1":{variants:[{hostname:"lambda-fips.us-gov-west-1.amazonaws.com",tags:["fips"]}]},"us-west-1":{variants:[{hostname:"lambda-fips.us-west-1.amazonaws.com",tags:["fips"]},{hostname:"lambda.us-west-1.api.aws",tags:["dualstack"]}]},"us-west-2":{variants:[{hostname:"lambda-fips.us-west-2.amazonaws.com",tags:["fips"]},{hostname:"lambda.us-west-2.api.aws",tags:["dualstack"]}]}},NQe={aws:{regions:["af-south-1","ap-east-1","ap-northeast-1","ap-northeast-2","ap-northeast-3","ap-south-1","ap-southeast-1","ap-southeast-2","ap-southeast-3","ca-central-1","eu-central-1","eu-north-1","eu-south-1","eu-west-1","eu-west-2","eu-west-3","fips-us-east-1","fips-us-east-2","fips-us-west-1","fips-us-west-2","me-south-1","sa-east-1","us-east-1","us-east-2","us-west-1","us-west-2"],regionRegex:"^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",variants:[{hostname:"lambda.{region}.amazonaws.com",tags:[]},{hostname:"lambda-fips.{region}.amazonaws.com",tags:["fips"]},{hostname:"lambda-fips.{region}.api.aws",tags:["dualstack","fips"]},{hostname:"lambda.{region}.api.aws",tags:["dualstack"]}]},"aws-cn":{regions:["cn-north-1","cn-northwest-1"],regionRegex:"^cn\\-\\w+\\-\\d+$",variants:[{hostname:"lambda.{region}.amazonaws.com.cn",tags:[]},{hostname:"lambda-fips.{region}.amazonaws.com.cn",tags:["fips"]},{hostname:"lambda-fips.{region}.api.amazonwebservices.com.cn",tags:["dualstack","fips"]},{hostname:"lambda.{region}.api.amazonwebservices.com.cn",tags:["dualstack"]}]},"aws-iso":{regions:["us-iso-east-1","us-iso-west-1"],regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",variants:[{hostname:"lambda.{region}.c2s.ic.gov",tags:[]},{hostname:"lambda-fips.{region}.c2s.ic.gov",tags:["fips"]}]},"aws-iso-b":{regions:["us-isob-east-1"],regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",variants:[{hostname:"lambda.{region}.sc2s.sgov.gov",tags:[]},{hostname:"lambda-fips.{region}.sc2s.sgov.gov",tags:["fips"]}]},"aws-us-gov":{regions:["fips-us-gov-east-1","fips-us-gov-west-1","us-gov-east-1","us-gov-west-1"],regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",variants:[{hostname:"lambda.{region}.amazonaws.com",tags:[]},{hostname:"lambda-fips.{region}.amazonaws.com",tags:["fips"]},{hostname:"lambda-fips.{region}.api.aws",tags:["dualstack","fips"]},{hostname:"lambda.{region}.api.aws",tags:["dualstack"]}]}},PQe=async(e,t)=>(0,TQe.getRegionInfo)(e,S(o({},t),{signingService:"lambda",regionHash:IQe,partitionHash:NQe}));fE.defaultRegionInfoProvider=PQe});var vZ=m(pE=>{"use strict";Object.defineProperty(pE,"__esModule",{value:!0});pE.getRuntimeConfig=void 0;var kQe=jr(),zQe=_Z(),qQe=e=>{var t,n,r,i,s;return{apiVersion:"2015-03-31",disableHostPrefix:(t=e==null?void 0:e.disableHostPrefix)!==null&&t!==void 0?t:!1,logger:(n=e==null?void 0:e.logger)!==null&&n!==void 0?n:{},regionInfoProvider:(r=e==null?void 0:e.regionInfoProvider)!==null&&r!==void 0?r:zQe.defaultRegionInfoProvider,serviceId:(i=e==null?void 0:e.serviceId)!==null&&i!==void 0?i:"Lambda",urlParser:(s=e==null?void 0:e.urlParser)!==null&&s!==void 0?s:kQe.parseUrl}};pE.getRuntimeConfig=qQe});var xZ=m(hE=>{"use strict";Object.defineProperty(hE,"__esModule",{value:!0});hE.getRuntimeConfig=void 0;var LQe=oe(),DQe=LQe.__importDefault(SZ()),MQe=bd(),gE=Jt(),BQe=xd(),OQe=Ws(),mD=Mn(),Km=lr(),CZ=Qs(),EZ=Ys(),FQe=Zs(),jQe=eo(),AZ=to(),UQe=vZ(),GQe=R(),VQe=ro(),$Qe=e=>{var t,n,r,i,s,d,a,c,l,u,w,E,T,I,N;let F=(0,VQe.resolveDefaultsModeConfig)(e),J=()=>F().then(GQe.loadConfigsForDefaultMode),G=(0,UQe.getRuntimeConfig)(e);return S(o(o({},G),e),{runtime:"node",defaultsMode:F,base64Decoder:(t=e==null?void 0:e.base64Decoder)!==null&&t!==void 0?t:EZ.fromBase64,base64Encoder:(n=e==null?void 0:e.base64Encoder)!==null&&n!==void 0?n:EZ.toBase64,bodyLengthChecker:(r=e==null?void 0:e.bodyLengthChecker)!==null&&r!==void 0?r:FQe.calculateBodyLength,credentialDefaultProvider:(i=e==null?void 0:e.credentialDefaultProvider)!==null&&i!==void 0?i:(0,MQe.decorateDefaultCredentialProvider)(BQe.defaultProvider),defaultUserAgentProvider:(s=e==null?void 0:e.defaultUserAgentProvider)!==null&&s!==void 0?s:(0,jQe.defaultUserAgent)({serviceId:G.serviceId,clientVersion:DQe.default.version}),maxAttempts:(d=e==null?void 0:e.maxAttempts)!==null&&d!==void 0?d:(0,Km.loadConfig)(mD.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(a=e==null?void 0:e.region)!==null&&a!==void 0?a:(0,Km.loadConfig)(gE.NODE_REGION_CONFIG_OPTIONS,gE.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(c=e==null?void 0:e.requestHandler)!==null&&c!==void 0?c:new CZ.NodeHttpHandler(J),retryMode:(l=e==null?void 0:e.retryMode)!==null&&l!==void 0?l:(0,Km.loadConfig)(S(o({},mD.NODE_RETRY_MODE_CONFIG_OPTIONS),{default:async()=>(await J()).retryMode||mD.DEFAULT_RETRY_MODE})),sha256:(u=e==null?void 0:e.sha256)!==null&&u!==void 0?u:OQe.Hash.bind(null,"sha256"),streamCollector:(w=e==null?void 0:e.streamCollector)!==null&&w!==void 0?w:CZ.streamCollector,useDualstackEndpoint:(E=e==null?void 0:e.useDualstackEndpoint)!==null&&E!==void 0?E:(0,Km.loadConfig)(gE.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(T=e==null?void 0:e.useFipsEndpoint)!==null&&T!==void 0?T:(0,Km.loadConfig)(gE.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:(I=e==null?void 0:e.utf8Decoder)!==null&&I!==void 0?I:AZ.fromUtf8,utf8Encoder:(N=e==null?void 0:e.utf8Encoder)!==null&&N!==void 0?N:AZ.toUtf8})};hE.getRuntimeConfig=$Qe});var Jn=m(wE=>{"use strict";Object.defineProperty(wE,"__esModule",{value:!0});wE.LambdaClient=void 0;var bZ=Jt(),HQe=Ds(),RZ=Ms(),JQe=Bs(),TZ=Mn(),IZ=Ar(),NZ=Us(),XQe=R(),KQe=xZ(),fD=class extends XQe.Client{constructor(t){let n=(0,KQe.getRuntimeConfig)(t),r=(0,bZ.resolveRegionConfig)(n),i=(0,bZ.resolveEndpointsConfig)(r),s=(0,TZ.resolveRetryConfig)(i),d=(0,RZ.resolveHostHeaderConfig)(s),a=(0,IZ.resolveAwsAuthConfig)(d),c=(0,NZ.resolveUserAgentConfig)(a);super(c),this.config=c,this.middlewareStack.use((0,TZ.getRetryPlugin)(this.config)),this.middlewareStack.use((0,HQe.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,RZ.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,JQe.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,IZ.getAwsAuthPlugin)(this.config)),this.middlewareStack.use((0,NZ.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};wE.LambdaClient=fD});var ur=m(yE=>{"use strict";Object.defineProperty(yE,"__esModule",{value:!0});yE.Lambda=void 0;var WQe=dq(),QQe=lq(),YQe=mq(),ZQe=pq(),eYe=hq(),tYe=yq(),nYe=_q(),rYe=Cq(),iYe=Aq(),sYe=bq(),oYe=Tq(),aYe=Nq(),dYe=kq(),cYe=qq(),lYe=Dq(),uYe=Bq(),mYe=Fq(),fYe=Uq(),pYe=Vq(),gYe=Hq(),hYe=Xq(),wYe=Wq(),yYe=Ud(),SYe=Zq(),_Ye=Xm(),vYe=nL(),CYe=iL(),EYe=oL(),AYe=dL(),xYe=lL(),bYe=mL(),RYe=pL(),TYe=hL(),IYe=yL(),NYe=TC(),PYe=NC(),kYe=kC(),zYe=qC(),qYe=DC(),LYe=BC(),DYe=FC(),MYe=UC(),BYe=VC(),OYe=HC(),FYe=NL(),jYe=KC(),UYe=zL(),GYe=LL(),VYe=ML(),$Ye=OL(),HYe=jL(),JYe=GL(),XYe=$L(),KYe=JL(),WYe=KL(),QYe=QL(),YYe=ZL(),ZYe=tD(),eZe=rD(),tZe=sD(),nZe=aD(),rZe=cD(),iZe=uD(),sZe=Jn(),pD=class extends sZe.LambdaClient{addLayerVersionPermission(t,n,r){let i=new WQe.AddLayerVersionPermissionCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}addPermission(t,n,r){let i=new QQe.AddPermissionCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}createAlias(t,n,r){let i=new YQe.CreateAliasCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}createCodeSigningConfig(t,n,r){let i=new ZQe.CreateCodeSigningConfigCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}createEventSourceMapping(t,n,r){let i=new eYe.CreateEventSourceMappingCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}createFunction(t,n,r){let i=new tYe.CreateFunctionCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}createFunctionUrlConfig(t,n,r){let i=new nYe.CreateFunctionUrlConfigCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}deleteAlias(t,n,r){let i=new rYe.DeleteAliasCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}deleteCodeSigningConfig(t,n,r){let i=new iYe.DeleteCodeSigningConfigCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}deleteEventSourceMapping(t,n,r){let i=new sYe.DeleteEventSourceMappingCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}deleteFunction(t,n,r){let i=new aYe.DeleteFunctionCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}deleteFunctionCodeSigningConfig(t,n,r){let i=new oYe.DeleteFunctionCodeSigningConfigCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}deleteFunctionConcurrency(t,n,r){let i=new dYe.DeleteFunctionConcurrencyCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}deleteFunctionEventInvokeConfig(t,n,r){let i=new cYe.DeleteFunctionEventInvokeConfigCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}deleteFunctionUrlConfig(t,n,r){let i=new lYe.DeleteFunctionUrlConfigCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}deleteLayerVersion(t,n,r){let i=new uYe.DeleteLayerVersionCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}deleteProvisionedConcurrencyConfig(t,n,r){let i=new mYe.DeleteProvisionedConcurrencyConfigCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}getAccountSettings(t,n,r){let i=new fYe.GetAccountSettingsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}getAlias(t,n,r){let i=new pYe.GetAliasCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}getCodeSigningConfig(t,n,r){let i=new gYe.GetCodeSigningConfigCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}getEventSourceMapping(t,n,r){let i=new hYe.GetEventSourceMappingCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}getFunction(t,n,r){let i=new yYe.GetFunctionCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}getFunctionCodeSigningConfig(t,n,r){let i=new wYe.GetFunctionCodeSigningConfigCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}getFunctionConcurrency(t,n,r){let i=new SYe.GetFunctionConcurrencyCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}getFunctionConfiguration(t,n,r){let i=new _Ye.GetFunctionConfigurationCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}getFunctionEventInvokeConfig(t,n,r){let i=new vYe.GetFunctionEventInvokeConfigCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}getFunctionUrlConfig(t,n,r){let i=new CYe.GetFunctionUrlConfigCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}getLayerVersion(t,n,r){let i=new AYe.GetLayerVersionCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}getLayerVersionByArn(t,n,r){let i=new EYe.GetLayerVersionByArnCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}getLayerVersionPolicy(t,n,r){let i=new xYe.GetLayerVersionPolicyCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}getPolicy(t,n,r){let i=new bYe.GetPolicyCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}getProvisionedConcurrencyConfig(t,n,r){let i=new RYe.GetProvisionedConcurrencyConfigCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}invoke(t,n,r){let i=new IYe.InvokeCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}invokeAsync(t,n,r){let i=new TYe.InvokeAsyncCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listAliases(t,n,r){let i=new NYe.ListAliasesCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listCodeSigningConfigs(t,n,r){let i=new PYe.ListCodeSigningConfigsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listEventSourceMappings(t,n,r){let i=new kYe.ListEventSourceMappingsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listFunctionEventInvokeConfigs(t,n,r){let i=new zYe.ListFunctionEventInvokeConfigsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listFunctions(t,n,r){let i=new LYe.ListFunctionsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listFunctionsByCodeSigningConfig(t,n,r){let i=new qYe.ListFunctionsByCodeSigningConfigCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listFunctionUrlConfigs(t,n,r){let i=new DYe.ListFunctionUrlConfigsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listLayers(t,n,r){let i=new MYe.ListLayersCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listLayerVersions(t,n,r){let i=new BYe.ListLayerVersionsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listProvisionedConcurrencyConfigs(t,n,r){let i=new OYe.ListProvisionedConcurrencyConfigsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listTags(t,n,r){let i=new FYe.ListTagsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listVersionsByFunction(t,n,r){let i=new jYe.ListVersionsByFunctionCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}publishLayerVersion(t,n,r){let i=new UYe.PublishLayerVersionCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}publishVersion(t,n,r){let i=new GYe.PublishVersionCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}putFunctionCodeSigningConfig(t,n,r){let i=new VYe.PutFunctionCodeSigningConfigCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}putFunctionConcurrency(t,n,r){let i=new $Ye.PutFunctionConcurrencyCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}putFunctionEventInvokeConfig(t,n,r){let i=new HYe.PutFunctionEventInvokeConfigCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}putProvisionedConcurrencyConfig(t,n,r){let i=new JYe.PutProvisionedConcurrencyConfigCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}removeLayerVersionPermission(t,n,r){let i=new XYe.RemoveLayerVersionPermissionCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}removePermission(t,n,r){let i=new KYe.RemovePermissionCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}tagResource(t,n,r){let i=new WYe.TagResourceCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}untagResource(t,n,r){let i=new QYe.UntagResourceCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}updateAlias(t,n,r){let i=new YYe.UpdateAliasCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}updateCodeSigningConfig(t,n,r){let i=new ZYe.UpdateCodeSigningConfigCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}updateEventSourceMapping(t,n,r){let i=new eZe.UpdateEventSourceMappingCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}updateFunctionCode(t,n,r){let i=new tZe.UpdateFunctionCodeCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}updateFunctionConfiguration(t,n,r){let i=new nZe.UpdateFunctionConfigurationCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}updateFunctionEventInvokeConfig(t,n,r){let i=new rZe.UpdateFunctionEventInvokeConfigCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}updateFunctionUrlConfig(t,n,r){let i=new iZe.UpdateFunctionUrlConfigCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}};yE.Lambda=pD});var PZ=m(Te=>{"use strict";Object.defineProperty(Te,"__esModule",{value:!0});var Le=oe();Le.__exportStar(dq(),Te);Le.__exportStar(lq(),Te);Le.__exportStar(mq(),Te);Le.__exportStar(pq(),Te);Le.__exportStar(hq(),Te);Le.__exportStar(yq(),Te);Le.__exportStar(_q(),Te);Le.__exportStar(Cq(),Te);Le.__exportStar(Aq(),Te);Le.__exportStar(bq(),Te);Le.__exportStar(Tq(),Te);Le.__exportStar(Nq(),Te);Le.__exportStar(kq(),Te);Le.__exportStar(qq(),Te);Le.__exportStar(Dq(),Te);Le.__exportStar(Bq(),Te);Le.__exportStar(Fq(),Te);Le.__exportStar(Uq(),Te);Le.__exportStar(Vq(),Te);Le.__exportStar(Hq(),Te);Le.__exportStar(Xq(),Te);Le.__exportStar(Wq(),Te);Le.__exportStar(Ud(),Te);Le.__exportStar(Zq(),Te);Le.__exportStar(Xm(),Te);Le.__exportStar(nL(),Te);Le.__exportStar(iL(),Te);Le.__exportStar(oL(),Te);Le.__exportStar(dL(),Te);Le.__exportStar(lL(),Te);Le.__exportStar(mL(),Te);Le.__exportStar(pL(),Te);Le.__exportStar(hL(),Te);Le.__exportStar(yL(),Te);Le.__exportStar(TC(),Te);Le.__exportStar(NC(),Te);Le.__exportStar(kC(),Te);Le.__exportStar(qC(),Te);Le.__exportStar(FC(),Te);Le.__exportStar(DC(),Te);Le.__exportStar(BC(),Te);Le.__exportStar(VC(),Te);Le.__exportStar(UC(),Te);Le.__exportStar(HC(),Te);Le.__exportStar(NL(),Te);Le.__exportStar(KC(),Te);Le.__exportStar(zL(),Te);Le.__exportStar(LL(),Te);Le.__exportStar(ML(),Te);Le.__exportStar(OL(),Te);Le.__exportStar(jL(),Te);Le.__exportStar(GL(),Te);Le.__exportStar($L(),Te);Le.__exportStar(JL(),Te);Le.__exportStar(KL(),Te);Le.__exportStar(QL(),Te);Le.__exportStar(ZL(),Te);Le.__exportStar(tD(),Te);Le.__exportStar(rD(),Te);Le.__exportStar(sD(),Te);Le.__exportStar(aD(),Te);Le.__exportStar(cD(),Te);Le.__exportStar(uD(),Te)});var kZ=m(gD=>{"use strict";Object.defineProperty(gD,"__esModule",{value:!0});var oZe=oe();oZe.__exportStar(Re(),gD)});var qZ=m(zZ=>{"use strict";Object.defineProperty(zZ,"__esModule",{value:!0})});var LZ=m(SE=>{"use strict";Object.defineProperty(SE,"__esModule",{value:!0});SE.paginateListAliases=void 0;var aZe=TC(),dZe=ur(),cZe=Jn(),lZe=async(e,t,...n)=>await e.send(new aZe.ListAliasesCommand(t),...n),uZe=async(e,t,...n)=>await e.listAliases(t,...n);async function*mZe(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.Marker=r,t.MaxItems=e.pageSize,e.client instanceof dZe.Lambda)s=await uZe(e.client,t,...n);else if(e.client instanceof cZe.LambdaClient)s=await lZe(e.client,t,...n);else throw new Error("Invalid client, expected Lambda | LambdaClient");yield s;let d=r;r=s.NextMarker,i=!!(r&&(!e.stopOnSameToken||r!==d))}return void 0}SE.paginateListAliases=mZe});var DZ=m(_E=>{"use strict";Object.defineProperty(_E,"__esModule",{value:!0});_E.paginateListCodeSigningConfigs=void 0;var fZe=NC(),pZe=ur(),gZe=Jn(),hZe=async(e,t,...n)=>await e.send(new fZe.ListCodeSigningConfigsCommand(t),...n),wZe=async(e,t,...n)=>await e.listCodeSigningConfigs(t,...n);async function*yZe(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.Marker=r,t.MaxItems=e.pageSize,e.client instanceof pZe.Lambda)s=await wZe(e.client,t,...n);else if(e.client instanceof gZe.LambdaClient)s=await hZe(e.client,t,...n);else throw new Error("Invalid client, expected Lambda | LambdaClient");yield s;let d=r;r=s.NextMarker,i=!!(r&&(!e.stopOnSameToken||r!==d))}return void 0}_E.paginateListCodeSigningConfigs=yZe});var MZ=m(vE=>{"use strict";Object.defineProperty(vE,"__esModule",{value:!0});vE.paginateListEventSourceMappings=void 0;var SZe=kC(),_Ze=ur(),vZe=Jn(),CZe=async(e,t,...n)=>await e.send(new SZe.ListEventSourceMappingsCommand(t),...n),EZe=async(e,t,...n)=>await e.listEventSourceMappings(t,...n);async function*AZe(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.Marker=r,t.MaxItems=e.pageSize,e.client instanceof _Ze.Lambda)s=await EZe(e.client,t,...n);else if(e.client instanceof vZe.LambdaClient)s=await CZe(e.client,t,...n);else throw new Error("Invalid client, expected Lambda | LambdaClient");yield s;let d=r;r=s.NextMarker,i=!!(r&&(!e.stopOnSameToken||r!==d))}return void 0}vE.paginateListEventSourceMappings=AZe});var BZ=m(CE=>{"use strict";Object.defineProperty(CE,"__esModule",{value:!0});CE.paginateListFunctionEventInvokeConfigs=void 0;var xZe=qC(),bZe=ur(),RZe=Jn(),TZe=async(e,t,...n)=>await e.send(new xZe.ListFunctionEventInvokeConfigsCommand(t),...n),IZe=async(e,t,...n)=>await e.listFunctionEventInvokeConfigs(t,...n);async function*NZe(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.Marker=r,t.MaxItems=e.pageSize,e.client instanceof bZe.Lambda)s=await IZe(e.client,t,...n);else if(e.client instanceof RZe.LambdaClient)s=await TZe(e.client,t,...n);else throw new Error("Invalid client, expected Lambda | LambdaClient");yield s;let d=r;r=s.NextMarker,i=!!(r&&(!e.stopOnSameToken||r!==d))}return void 0}CE.paginateListFunctionEventInvokeConfigs=NZe});var OZ=m(EE=>{"use strict";Object.defineProperty(EE,"__esModule",{value:!0});EE.paginateListFunctionUrlConfigs=void 0;var PZe=FC(),kZe=ur(),zZe=Jn(),qZe=async(e,t,...n)=>await e.send(new PZe.ListFunctionUrlConfigsCommand(t),...n),LZe=async(e,t,...n)=>await e.listFunctionUrlConfigs(t,...n);async function*DZe(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.Marker=r,t.MaxItems=e.pageSize,e.client instanceof kZe.Lambda)s=await LZe(e.client,t,...n);else if(e.client instanceof zZe.LambdaClient)s=await qZe(e.client,t,...n);else throw new Error("Invalid client, expected Lambda | LambdaClient");yield s;let d=r;r=s.NextMarker,i=!!(r&&(!e.stopOnSameToken||r!==d))}return void 0}EE.paginateListFunctionUrlConfigs=DZe});var FZ=m(AE=>{"use strict";Object.defineProperty(AE,"__esModule",{value:!0});AE.paginateListFunctionsByCodeSigningConfig=void 0;var MZe=DC(),BZe=ur(),OZe=Jn(),FZe=async(e,t,...n)=>await e.send(new MZe.ListFunctionsByCodeSigningConfigCommand(t),...n),jZe=async(e,t,...n)=>await e.listFunctionsByCodeSigningConfig(t,...n);async function*UZe(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.Marker=r,t.MaxItems=e.pageSize,e.client instanceof BZe.Lambda)s=await jZe(e.client,t,...n);else if(e.client instanceof OZe.LambdaClient)s=await FZe(e.client,t,...n);else throw new Error("Invalid client, expected Lambda | LambdaClient");yield s;let d=r;r=s.NextMarker,i=!!(r&&(!e.stopOnSameToken||r!==d))}return void 0}AE.paginateListFunctionsByCodeSigningConfig=UZe});var jZ=m(xE=>{"use strict";Object.defineProperty(xE,"__esModule",{value:!0});xE.paginateListFunctions=void 0;var GZe=BC(),VZe=ur(),$Ze=Jn(),HZe=async(e,t,...n)=>await e.send(new GZe.ListFunctionsCommand(t),...n),JZe=async(e,t,...n)=>await e.listFunctions(t,...n);async function*XZe(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.Marker=r,t.MaxItems=e.pageSize,e.client instanceof VZe.Lambda)s=await JZe(e.client,t,...n);else if(e.client instanceof $Ze.LambdaClient)s=await HZe(e.client,t,...n);else throw new Error("Invalid client, expected Lambda | LambdaClient");yield s;let d=r;r=s.NextMarker,i=!!(r&&(!e.stopOnSameToken||r!==d))}return void 0}xE.paginateListFunctions=XZe});var UZ=m(bE=>{"use strict";Object.defineProperty(bE,"__esModule",{value:!0});bE.paginateListLayerVersions=void 0;var KZe=VC(),WZe=ur(),QZe=Jn(),YZe=async(e,t,...n)=>await e.send(new KZe.ListLayerVersionsCommand(t),...n),ZZe=async(e,t,...n)=>await e.listLayerVersions(t,...n);async function*eet(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.Marker=r,t.MaxItems=e.pageSize,e.client instanceof WZe.Lambda)s=await ZZe(e.client,t,...n);else if(e.client instanceof QZe.LambdaClient)s=await YZe(e.client,t,...n);else throw new Error("Invalid client, expected Lambda | LambdaClient");yield s;let d=r;r=s.NextMarker,i=!!(r&&(!e.stopOnSameToken||r!==d))}return void 0}bE.paginateListLayerVersions=eet});var GZ=m(RE=>{"use strict";Object.defineProperty(RE,"__esModule",{value:!0});RE.paginateListLayers=void 0;var tet=UC(),net=ur(),ret=Jn(),iet=async(e,t,...n)=>await e.send(new tet.ListLayersCommand(t),...n),set=async(e,t,...n)=>await e.listLayers(t,...n);async function*oet(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.Marker=r,t.MaxItems=e.pageSize,e.client instanceof net.Lambda)s=await set(e.client,t,...n);else if(e.client instanceof ret.LambdaClient)s=await iet(e.client,t,...n);else throw new Error("Invalid client, expected Lambda | LambdaClient");yield s;let d=r;r=s.NextMarker,i=!!(r&&(!e.stopOnSameToken||r!==d))}return void 0}RE.paginateListLayers=oet});var VZ=m(TE=>{"use strict";Object.defineProperty(TE,"__esModule",{value:!0});TE.paginateListProvisionedConcurrencyConfigs=void 0;var aet=HC(),det=ur(),cet=Jn(),uet=async(e,t,...n)=>await e.send(new aet.ListProvisionedConcurrencyConfigsCommand(t),...n),met=async(e,t,...n)=>await e.listProvisionedConcurrencyConfigs(t,...n);async function*fet(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.Marker=r,t.MaxItems=e.pageSize,e.client instanceof det.Lambda)s=await met(e.client,t,...n);else if(e.client instanceof cet.LambdaClient)s=await uet(e.client,t,...n);else throw new Error("Invalid client, expected Lambda | LambdaClient");yield s;let d=r;r=s.NextMarker,i=!!(r&&(!e.stopOnSameToken||r!==d))}return void 0}TE.paginateListProvisionedConcurrencyConfigs=fet});var $Z=m(IE=>{"use strict";Object.defineProperty(IE,"__esModule",{value:!0});IE.paginateListVersionsByFunction=void 0;var pet=KC(),get=ur(),het=Jn(),wet=async(e,t,...n)=>await e.send(new pet.ListVersionsByFunctionCommand(t),...n),yet=async(e,t,...n)=>await e.listVersionsByFunction(t,...n);async function*_et(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.Marker=r,t.MaxItems=e.pageSize,e.client instanceof get.Lambda)s=await yet(e.client,t,...n);else if(e.client instanceof het.LambdaClient)s=await wet(e.client,t,...n);else throw new Error("Invalid client, expected Lambda | LambdaClient");yield s;let d=r;r=s.NextMarker,i=!!(r&&(!e.stopOnSameToken||r!==d))}return void 0}IE.paginateListVersionsByFunction=_et});var HZ=m(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});var Tr=oe();Tr.__exportStar(qZ(),Xn);Tr.__exportStar(LZ(),Xn);Tr.__exportStar(DZ(),Xn);Tr.__exportStar(MZ(),Xn);Tr.__exportStar(BZ(),Xn);Tr.__exportStar(OZ(),Xn);Tr.__exportStar(FZ(),Xn);Tr.__exportStar(jZ(),Xn);Tr.__exportStar(UZ(),Xn);Tr.__exportStar(GZ(),Xn);Tr.__exportStar(VZ(),Xn);Tr.__exportStar($Z(),Xn)});var XZ=m(Gd=>{"use strict";Object.defineProperty(Gd,"__esModule",{value:!0});Gd.waitUntilFunctionActive=Gd.waitForFunctionActive=void 0;var ya=Rr(),vet=Xm(),JZ=async(e,t)=>{let n;try{let r=await e.send(new vet.GetFunctionConfigurationCommand(t));n=r;try{if((()=>r.State)()==="Active")return{state:ya.WaiterState.SUCCESS,reason:n}}catch{}try{if((()=>r.State)()==="Failed")return{state:ya.WaiterState.FAILURE,reason:n}}catch{}try{if((()=>r.State)()==="Pending")return{state:ya.WaiterState.RETRY,reason:n}}catch{}}catch(r){n=r}return{state:ya.WaiterState.RETRY,reason:n}},Cet=async(e,t)=>{let n={minDelay:5,maxDelay:120};return(0,ya.createWaiter)(o(o({},n),e),t,JZ)};Gd.waitForFunctionActive=Cet;var Eet=async(e,t)=>{let n={minDelay:5,maxDelay:120},r=await(0,ya.createWaiter)(o(o({},n),e),t,JZ);return(0,ya.checkExceptions)(r)};Gd.waitUntilFunctionActive=Eet});var WZ=m(Vd=>{"use strict";Object.defineProperty(Vd,"__esModule",{value:!0});Vd.waitUntilFunctionActiveV2=Vd.waitForFunctionActiveV2=void 0;var Sa=Rr(),Aet=Ud(),KZ=async(e,t)=>{let n;try{let r=await e.send(new Aet.GetFunctionCommand(t));n=r;try{if((()=>r.Configuration.State)()==="Active")return{state:Sa.WaiterState.SUCCESS,reason:n}}catch{}try{if((()=>r.Configuration.State)()==="Failed")return{state:Sa.WaiterState.FAILURE,reason:n}}catch{}try{if((()=>r.Configuration.State)()==="Pending")return{state:Sa.WaiterState.RETRY,reason:n}}catch{}}catch(r){n=r}return{state:Sa.WaiterState.RETRY,reason:n}},xet=async(e,t)=>{let n={minDelay:1,maxDelay:120};return(0,Sa.createWaiter)(o(o({},n),e),t,KZ)};Vd.waitForFunctionActiveV2=xet;var bet=async(e,t)=>{let n={minDelay:1,maxDelay:120},r=await(0,Sa.createWaiter)(o(o({},n),e),t,KZ);return(0,Sa.checkExceptions)(r)};Vd.waitUntilFunctionActiveV2=bet});var YZ=m(Hd=>{"use strict";Object.defineProperty(Hd,"__esModule",{value:!0});Hd.waitUntilFunctionExists=Hd.waitForFunctionExists=void 0;var $d=Rr(),Ret=Ud(),QZ=async(e,t)=>{let n;try{return n=await e.send(new Ret.GetFunctionCommand(t)),{state:$d.WaiterState.SUCCESS,reason:n}}catch(r){if(n=r,r.name&&r.name=="ResourceNotFoundException")return{state:$d.WaiterState.RETRY,reason:n}}return{state:$d.WaiterState.RETRY,reason:n}},Tet=async(e,t)=>{let n={minDelay:1,maxDelay:120};return(0,$d.createWaiter)(o(o({},n),e),t,QZ)};Hd.waitForFunctionExists=Tet;var Iet=async(e,t)=>{let n={minDelay:1,maxDelay:120},r=await(0,$d.createWaiter)(o(o({},n),e),t,QZ);return(0,$d.checkExceptions)(r)};Hd.waitUntilFunctionExists=Iet});var eee=m(Jd=>{"use strict";Object.defineProperty(Jd,"__esModule",{value:!0});Jd.waitUntilFunctionUpdated=Jd.waitForFunctionUpdated=void 0;var _a=Rr(),Net=Xm(),ZZ=async(e,t)=>{let n;try{let r=await e.send(new Net.GetFunctionConfigurationCommand(t));n=r;try{if((()=>r.LastUpdateStatus)()==="Successful")return{state:_a.WaiterState.SUCCESS,reason:n}}catch{}try{if((()=>r.LastUpdateStatus)()==="Failed")return{state:_a.WaiterState.FAILURE,reason:n}}catch{}try{if((()=>r.LastUpdateStatus)()==="InProgress")return{state:_a.WaiterState.RETRY,reason:n}}catch{}}catch(r){n=r}return{state:_a.WaiterState.RETRY,reason:n}},Pet=async(e,t)=>{let n={minDelay:5,maxDelay:120};return(0,_a.createWaiter)(o(o({},n),e),t,ZZ)};Jd.waitForFunctionUpdated=Pet;var ket=async(e,t)=>{let n={minDelay:5,maxDelay:120},r=await(0,_a.createWaiter)(o(o({},n),e),t,ZZ);return(0,_a.checkExceptions)(r)};Jd.waitUntilFunctionUpdated=ket});var nee=m(Xd=>{"use strict";Object.defineProperty(Xd,"__esModule",{value:!0});Xd.waitUntilFunctionUpdatedV2=Xd.waitForFunctionUpdatedV2=void 0;var va=Rr(),zet=Ud(),tee=async(e,t)=>{let n;try{let r=await e.send(new zet.GetFunctionCommand(t));n=r;try{if((()=>r.Configuration.LastUpdateStatus)()==="Successful")return{state:va.WaiterState.SUCCESS,reason:n}}catch{}try{if((()=>r.Configuration.LastUpdateStatus)()==="Failed")return{state:va.WaiterState.FAILURE,reason:n}}catch{}try{if((()=>r.Configuration.LastUpdateStatus)()==="InProgress")return{state:va.WaiterState.RETRY,reason:n}}catch{}}catch(r){n=r}return{state:va.WaiterState.RETRY,reason:n}},qet=async(e,t)=>{let n={minDelay:1,maxDelay:120};return(0,va.createWaiter)(o(o({},n),e),t,tee)};Xd.waitForFunctionUpdatedV2=qet;var Let=async(e,t)=>{let n={minDelay:1,maxDelay:120},r=await(0,va.createWaiter)(o(o({},n),e),t,tee);return(0,va.checkExceptions)(r)};Xd.waitUntilFunctionUpdatedV2=Let});var ree=m(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});var Wm=oe();Wm.__exportStar(XZ(),Ca);Wm.__exportStar(WZ(),Ca);Wm.__exportStar(YZ(),Ca);Wm.__exportStar(eee(),Ca);Wm.__exportStar(nee(),Ca)});var Qm=m(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Pi.LambdaServiceException=void 0;var Kd=oe();Kd.__exportStar(ur(),Pi);Kd.__exportStar(Jn(),Pi);Kd.__exportStar(PZ(),Pi);Kd.__exportStar(kZ(),Pi);Kd.__exportStar(HZ(),Pi);Kd.__exportStar(ree(),Pi);var Det=Bv();Object.defineProperty(Pi,"LambdaServiceException",{enumerable:!0,get:function(){return Det.LambdaServiceException}})});var hD=m(Ea=>{"use strict";Object.defineProperty(Ea,"__esModule",{value:!0});Ea.convertToAttr=void 0;var Met=(e,t)=>{var n,r,i,s,d,a;if(e===void 0)throw new Error("Pass options.removeUndefinedValues=true to remove undefined values from map/array/set.");if(e===null&&typeof e=="object")return NE();if(Array.isArray(e))return Bet(e,t);if(((n=e==null?void 0:e.constructor)===null||n===void 0?void 0:n.name)==="Set")return Oet(e,t);if(((r=e==null?void 0:e.constructor)===null||r===void 0?void 0:r.name)==="Map")return Fet(e,t);if(((i=e==null?void 0:e.constructor)===null||i===void 0?void 0:i.name)==="Object"||!e.constructor&&typeof e=="object")return iee(e,t);if(lee(e))return e.length===0&&(t==null?void 0:t.convertEmptyValues)?NE():oee(e);if(typeof e=="boolean"||((s=e==null?void 0:e.constructor)===null||s===void 0?void 0:s.name)==="Boolean")return{BOOL:e.valueOf()};if(typeof e=="number"||((d=e==null?void 0:e.constructor)===null||d===void 0?void 0:d.name)==="Number")return cee(e);if(typeof e=="bigint")return dee(e);if(typeof e=="string"||((a=e==null?void 0:e.constructor)===null||a===void 0?void 0:a.name)==="String")return e.length===0&&(t==null?void 0:t.convertEmptyValues)?NE():aee(e);if((t==null?void 0:t.convertClassInstanceToMap)&&typeof e=="object")return iee(e,t);throw new Error(`Unsupported type passed: ${e}. Pass options.convertClassInstanceToMap=true to marshall typeof object as map attribute.`)};Ea.convertToAttr=Met;var Bet=(e,t)=>({L:e.filter(n=>!(t!=null&&t.removeUndefinedValues)||(t==null?void 0:t.removeUndefinedValues)&&n!==void 0).map(n=>(0,Ea.convertToAttr)(n,t))}),Oet=(e,t)=>{let n=t!=null&&t.removeUndefinedValues?new Set([...e].filter(i=>i!==void 0)):e;if(!(t!=null&&t.removeUndefinedValues)&&n.has(void 0))throw new Error("Pass options.removeUndefinedValues=true to remove undefined values from map/array/set.");if(n.size===0){if(t!=null&&t.convertEmptyValues)return NE();throw new Error("Pass a non-empty set, or options.convertEmptyValues=true.")}let r=n.values().next().value;if(typeof r=="number")return{NS:Array.from(n).map(cee).map(i=>i.N)};if(typeof r=="bigint")return{NS:Array.from(n).map(dee).map(i=>i.N)};if(typeof r=="string")return{SS:Array.from(n).map(aee).map(i=>i.S)};if(lee(r))return{BS:Array.from(n).map(oee).map(i=>i.B)};throw new Error("Only Number Set (NS), Binary Set (BS) or String Set (SS) are allowed.")},Fet=(e,t)=>({M:(n=>{let r={};for(let[i,s]of n)typeof s!="function"&&(s!==void 0||!(t!=null&&t.removeUndefinedValues))&&(r[i]=(0,Ea.convertToAttr)(s,t));return r})(e)}),iee=(e,t)=>({M:(n=>{let r={};for(let i in n){let s=n[i];typeof s!="function"&&(s!==void 0||!(t!=null&&t.removeUndefinedValues))&&(r[i]=(0,Ea.convertToAttr)(s,t))}return r})(e)}),NE=()=>({NULL:!0}),oee=e=>({B:e}),aee=e=>({S:e.toString()}),dee=e=>({N:e.toString()}),see=e=>{throw new Error(`${e} ${typeof BigInt=="function"?"Use BigInt.":"Pass string value instead."} `)},cee=e=>{if([Number.NaN,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY].map(t=>t.toString()).includes(e.toString()))throw new Error(`Special numeric value ${e.toString()} is not allowed`);return e>Number.MAX_SAFE_INTEGER?see(`Number ${e.toString()} is greater than Number.MAX_SAFE_INTEGER.`):e<Number.MIN_SAFE_INTEGER&&see(`Number ${e.toString()} is lesser than Number.MIN_SAFE_INTEGER.`),{N:e.toString()}},lee=e=>{let t=["ArrayBuffer","Blob","Buffer","DataView","File","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];return e!=null&&e.constructor?t.includes(e.constructor.name):!1}});var wD=m(Wd=>{"use strict";Object.defineProperty(Wd,"__esModule",{value:!0});Wd.convertToNative=void 0;var jet=(e,t)=>{for(let[n,r]of Object.entries(e))if(r!==void 0)switch(n){case"NULL":return null;case"BOOL":return Boolean(r);case"N":return uee(r,t);case"B":return fee(r);case"S":return mee(r);case"L":return Uet(r,t);case"M":return Get(r,t);case"NS":return new Set(r.map(i=>uee(i,t)));case"BS":return new Set(r.map(fee));case"SS":return new Set(r.map(mee));default:throw new Error(`Unsupported type passed: ${n}`)}throw new Error(`No value defined: ${JSON.stringify(e)}`)};Wd.convertToNative=jet;var uee=(e,t)=>{if(t!=null&&t.wrapNumbers)return{value:e};let n=Number(e),r=[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY];if((n>Number.MAX_SAFE_INTEGER||n<Number.MIN_SAFE_INTEGER)&&!r.includes(n))if(typeof BigInt=="function")try{return BigInt(e)}catch{throw new Error(`${e} can't be converted to BigInt. Set options.wrapNumbers to get string value.`)}else throw new Error(`${e} is outside SAFE_INTEGER bounds. Set options.wrapNumbers to get string value.`);return n},mee=e=>e,fee=e=>e,Uet=(e,t)=>e.map(n=>(0,Wd.convertToNative)(n,t)),Get=(e,t)=>Object.entries(e).reduce((n,[r,i])=>S(o({},n),{[r]:(0,Wd.convertToNative)(i,t)}),{})});var pee=m(PE=>{"use strict";Object.defineProperty(PE,"__esModule",{value:!0});PE.marshall=void 0;var Vet=hD();function $et(e,t){let n=(0,Vet.convertToAttr)(e,t),[r,i]=Object.entries(n)[0];switch(r){case"M":case"L":return i;case"SS":case"NS":case"BS":case"S":case"N":case"B":case"NULL":case"BOOL":case"$unknown":default:return n}}PE.marshall=$et});var hee=m(gee=>{"use strict";Object.defineProperty(gee,"__esModule",{value:!0})});var wee=m(kE=>{"use strict";Object.defineProperty(kE,"__esModule",{value:!0});kE.unmarshall=void 0;var Het=wD(),Jet=(e,t)=>(0,Het.convertToNative)({M:e},t);kE.unmarshall=Jet});var yee=m(Aa=>{"use strict";Object.defineProperty(Aa,"__esModule",{value:!0});var Ym=oe();Ym.__exportStar(hD(),Aa);Ym.__exportStar(wD(),Aa);Ym.__exportStar(pee(),Aa);Ym.__exportStar(hee(),Aa);Ym.__exportStar(wee(),Aa)});var Kn=m(Qd=>{"use strict";Object.defineProperty(Qd,"__esModule",{value:!0});Qd.unmarshallOutput=Qd.marshallInput=void 0;var _ee=yee(),See=(e,t,n)=>{if(e!==void 0)return!n||Array.isArray(n)&&n.length===0?t(e):Array.isArray(n)?yD(e,t,n):Xet(e,t,n.children)},vee=(e,t,n)=>Array.isArray(e)?e.map(r=>See(r,t,n)):See(e,t,n),yD=(e,t,n)=>n.reduce((r,{key:i,children:s})=>S(o({},r),{[i]:vee(r[i],t,s)}),e),Xet=(e,t,n)=>Object.entries(e).reduce((r,[i,s])=>S(o({},r),{[i]:vee(s,t,n)}),{}),Ket=(e,t,n)=>yD(e,i=>(0,_ee.marshall)(i,n),t);Qd.marshallInput=Ket;var Wet=(e,t,n)=>yD(e,i=>(0,_ee.unmarshall)(i,n),t);Qd.unmarshallOutput=Wet});var _D=m(zE=>{"use strict";Object.defineProperty(zE,"__esModule",{value:!0});zE.BatchExecuteStatementCommand=void 0;var Qet=Bn(),Yet=R(),Cee=Kn(),SD=class extends Yet.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"Statements",children:[{key:"Parameters"}]}],this.outputKeyNodes=[{key:"Responses",children:[{key:"Item"}]}]}resolveMiddleware(t,n,r){let{marshallOptions:i,unmarshallOptions:s}=n.translateConfig||{},d=new Qet.BatchExecuteStatementCommand((0,Cee.marshallInput)(this.input,this.inputKeyNodes,i)),a=d.resolveMiddleware(t,n,r);return async()=>{let c=await a(d);return S(o({},c),{output:(0,Cee.unmarshallOutput)(c.output,this.outputKeyNodes,s)})}}};zE.BatchExecuteStatementCommand=SD});var CD=m(qE=>{"use strict";Object.defineProperty(qE,"__esModule",{value:!0});qE.BatchGetCommand=void 0;var Zet=Bn(),ett=R(),Eee=Kn(),vD=class extends ett.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"RequestItems",children:{children:[{key:"Keys"}]}}],this.outputKeyNodes=[{key:"Responses",children:{}},{key:"UnprocessedKeys",children:{children:[{key:"Keys"}]}}]}resolveMiddleware(t,n,r){let{marshallOptions:i,unmarshallOptions:s}=n.translateConfig||{},d=new Zet.BatchGetItemCommand((0,Eee.marshallInput)(this.input,this.inputKeyNodes,i)),a=d.resolveMiddleware(t,n,r);return async()=>{let c=await a(d);return S(o({},c),{output:(0,Eee.unmarshallOutput)(c.output,this.outputKeyNodes,s)})}}};qE.BatchGetCommand=vD});var AD=m(LE=>{"use strict";Object.defineProperty(LE,"__esModule",{value:!0});LE.BatchWriteCommand=void 0;var ttt=Bn(),ntt=R(),Aee=Kn(),ED=class extends ntt.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"RequestItems",children:{children:[{key:"PutRequest",children:[{key:"Item"}]},{key:"DeleteRequest",children:[{key:"Key"}]}]}}],this.outputKeyNodes=[{key:"UnprocessedItems",children:{children:[{key:"PutRequest",children:[{key:"Item"}]},{key:"DeleteRequest",children:[{key:"Key"}]}]}},{key:"ItemCollectionMetrics",children:{children:[{key:"ItemCollectionKey"}]}}]}resolveMiddleware(t,n,r){let{marshallOptions:i,unmarshallOptions:s}=n.translateConfig||{},d=new ttt.BatchWriteItemCommand((0,Aee.marshallInput)(this.input,this.inputKeyNodes,i)),a=d.resolveMiddleware(t,n,r);return async()=>{let c=await a(d);return S(o({},c),{output:(0,Aee.unmarshallOutput)(c.output,this.outputKeyNodes,s)})}}};LE.BatchWriteCommand=ED});var bD=m(DE=>{"use strict";Object.defineProperty(DE,"__esModule",{value:!0});DE.DeleteCommand=void 0;var rtt=Bn(),itt=R(),xee=Kn(),xD=class extends itt.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"Key"},{key:"Expected",children:{children:[{key:"Value"},{key:"AttributeValueList"}]}},{key:"ExpressionAttributeValues"}],this.outputKeyNodes=[{key:"Attributes"},{key:"ItemCollectionMetrics",children:[{key:"ItemCollectionKey"}]}]}resolveMiddleware(t,n,r){let{marshallOptions:i,unmarshallOptions:s}=n.translateConfig||{},d=new rtt.DeleteItemCommand((0,xee.marshallInput)(this.input,this.inputKeyNodes,i)),a=d.resolveMiddleware(t,n,r);return async()=>{let c=await a(d);return S(o({},c),{output:(0,xee.unmarshallOutput)(c.output,this.outputKeyNodes,s)})}}};DE.DeleteCommand=xD});var TD=m(ME=>{"use strict";Object.defineProperty(ME,"__esModule",{value:!0});ME.ExecuteStatementCommand=void 0;var stt=Bn(),ott=R(),bee=Kn(),RD=class extends ott.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"Parameters"}],this.outputKeyNodes=[{key:"Items"},{key:"LastEvaluatedKey"}]}resolveMiddleware(t,n,r){let{marshallOptions:i,unmarshallOptions:s}=n.translateConfig||{},d=new stt.ExecuteStatementCommand((0,bee.marshallInput)(this.input,this.inputKeyNodes,i)),a=d.resolveMiddleware(t,n,r);return async()=>{let c=await a(d);return S(o({},c),{output:(0,bee.unmarshallOutput)(c.output,this.outputKeyNodes,s)})}}};ME.ExecuteStatementCommand=RD});var ND=m(BE=>{"use strict";Object.defineProperty(BE,"__esModule",{value:!0});BE.ExecuteTransactionCommand=void 0;var att=Bn(),dtt=R(),Ree=Kn(),ID=class extends dtt.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"TransactStatements",children:[{key:"Parameters"}]}],this.outputKeyNodes=[{key:"Responses",children:[{key:"Item"}]}]}resolveMiddleware(t,n,r){let{marshallOptions:i,unmarshallOptions:s}=n.translateConfig||{},d=new att.ExecuteTransactionCommand((0,Ree.marshallInput)(this.input,this.inputKeyNodes,i)),a=d.resolveMiddleware(t,n,r);return async()=>{let c=await a(d);return S(o({},c),{output:(0,Ree.unmarshallOutput)(c.output,this.outputKeyNodes,s)})}}};BE.ExecuteTransactionCommand=ID});var kD=m(OE=>{"use strict";Object.defineProperty(OE,"__esModule",{value:!0});OE.GetCommand=void 0;var ctt=Bn(),ltt=R(),Tee=Kn(),PD=class extends ltt.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"Key"}],this.outputKeyNodes=[{key:"Item"}]}resolveMiddleware(t,n,r){let{marshallOptions:i,unmarshallOptions:s}=n.translateConfig||{},d=new ctt.GetItemCommand((0,Tee.marshallInput)(this.input,this.inputKeyNodes,i)),a=d.resolveMiddleware(t,n,r);return async()=>{let c=await a(d);return S(o({},c),{output:(0,Tee.unmarshallOutput)(c.output,this.outputKeyNodes,s)})}}};OE.GetCommand=PD});var qD=m(FE=>{"use strict";Object.defineProperty(FE,"__esModule",{value:!0});FE.PutCommand=void 0;var utt=Bn(),mtt=R(),Iee=Kn(),zD=class extends mtt.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"Item"},{key:"Expected",children:{children:[{key:"Value"},{key:"AttributeValueList"}]}},{key:"ExpressionAttributeValues"}],this.outputKeyNodes=[{key:"Attributes"},{key:"ItemCollectionMetrics",children:[{key:"ItemCollectionKey"}]}]}resolveMiddleware(t,n,r){let{marshallOptions:i,unmarshallOptions:s}=n.translateConfig||{},d=new utt.PutItemCommand((0,Iee.marshallInput)(this.input,this.inputKeyNodes,i)),a=d.resolveMiddleware(t,n,r);return async()=>{let c=await a(d);return S(o({},c),{output:(0,Iee.unmarshallOutput)(c.output,this.outputKeyNodes,s)})}}};FE.PutCommand=zD});var UE=m(jE=>{"use strict";Object.defineProperty(jE,"__esModule",{value:!0});jE.QueryCommand=void 0;var ftt=Bn(),ptt=R(),Nee=Kn(),LD=class extends ptt.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"KeyConditions",children:{children:[{key:"AttributeValueList"}]}},{key:"QueryFilter",children:{children:[{key:"AttributeValueList"}]}},{key:"ExclusiveStartKey"},{key:"ExpressionAttributeValues"}],this.outputKeyNodes=[{key:"Items"},{key:"LastEvaluatedKey"}]}resolveMiddleware(t,n,r){let{marshallOptions:i,unmarshallOptions:s}=n.translateConfig||{},d=new ftt.QueryCommand((0,Nee.marshallInput)(this.input,this.inputKeyNodes,i)),a=d.resolveMiddleware(t,n,r);return async()=>{let c=await a(d);return S(o({},c),{output:(0,Nee.unmarshallOutput)(c.output,this.outputKeyNodes,s)})}}};jE.QueryCommand=LD});var VE=m(GE=>{"use strict";Object.defineProperty(GE,"__esModule",{value:!0});GE.ScanCommand=void 0;var gtt=Bn(),htt=R(),Pee=Kn(),DD=class extends htt.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"ScanFilter",children:{children:[{key:"AttributeValueList"}]}},{key:"ExclusiveStartKey"},{key:"ExpressionAttributeValues"}],this.outputKeyNodes=[{key:"Items"},{key:"LastEvaluatedKey"}]}resolveMiddleware(t,n,r){let{marshallOptions:i,unmarshallOptions:s}=n.translateConfig||{},d=new gtt.ScanCommand((0,Pee.marshallInput)(this.input,this.inputKeyNodes,i)),a=d.resolveMiddleware(t,n,r);return async()=>{let c=await a(d);return S(o({},c),{output:(0,Pee.unmarshallOutput)(c.output,this.outputKeyNodes,s)})}}};GE.ScanCommand=DD});var BD=m($E=>{"use strict";Object.defineProperty($E,"__esModule",{value:!0});$E.TransactGetCommand=void 0;var wtt=Bn(),ytt=R(),kee=Kn(),MD=class extends ytt.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"TransactItems",children:[{key:"Get",children:[{key:"Key"}]}]}],this.outputKeyNodes=[{key:"Responses",children:[{key:"Item"}]}]}resolveMiddleware(t,n,r){let{marshallOptions:i,unmarshallOptions:s}=n.translateConfig||{},d=new wtt.TransactGetItemsCommand((0,kee.marshallInput)(this.input,this.inputKeyNodes,i)),a=d.resolveMiddleware(t,n,r);return async()=>{let c=await a(d);return S(o({},c),{output:(0,kee.unmarshallOutput)(c.output,this.outputKeyNodes,s)})}}};$E.TransactGetCommand=MD});var FD=m(HE=>{"use strict";Object.defineProperty(HE,"__esModule",{value:!0});HE.TransactWriteCommand=void 0;var Stt=Bn(),_tt=R(),zee=Kn(),OD=class extends _tt.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"TransactItems",children:[{key:"ConditionCheck",children:[{key:"Key"},{key:"ExpressionAttributeValues"}]},{key:"Put",children:[{key:"Item"},{key:"ExpressionAttributeValues"}]},{key:"Delete",children:[{key:"Key"},{key:"ExpressionAttributeValues"}]},{key:"Update",children:[{key:"Key"},{key:"ExpressionAttributeValues"}]}]}],this.outputKeyNodes=[{key:"ItemCollectionMetrics",children:{children:[{key:"ItemCollectionKey"}]}}]}resolveMiddleware(t,n,r){let{marshallOptions:i,unmarshallOptions:s}=n.translateConfig||{},d=new Stt.TransactWriteItemsCommand((0,zee.marshallInput)(this.input,this.inputKeyNodes,i)),a=d.resolveMiddleware(t,n,r);return async()=>{let c=await a(d);return S(o({},c),{output:(0,zee.unmarshallOutput)(c.output,this.outputKeyNodes,s)})}}};HE.TransactWriteCommand=OD});var UD=m(JE=>{"use strict";Object.defineProperty(JE,"__esModule",{value:!0});JE.UpdateCommand=void 0;var vtt=Bn(),Ctt=R(),qee=Kn(),jD=class extends Ctt.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"Key"},{key:"AttributeUpdates",children:{children:[{key:"Value"}]}},{key:"Expected",children:{children:[{key:"Value"},{key:"AttributeValueList"}]}},{key:"ExpressionAttributeValues"}],this.outputKeyNodes=[{key:"Attributes"},{key:"ItemCollectionMetrics",children:[{key:"ItemCollectionKey"}]}]}resolveMiddleware(t,n,r){let{marshallOptions:i,unmarshallOptions:s}=n.translateConfig||{},d=new vtt.UpdateItemCommand((0,qee.marshallInput)(this.input,this.inputKeyNodes,i)),a=d.resolveMiddleware(t,n,r);return async()=>{let c=await a(d);return S(o({},c),{output:(0,qee.unmarshallOutput)(c.output,this.outputKeyNodes,s)})}}};JE.UpdateCommand=jD});var ef=m(XE=>{"use strict";Object.defineProperty(XE,"__esModule",{value:!0});XE.DynamoDBDocumentClient=void 0;var Ett=R(),Zm=class extends Ett.Client{constructor(t,n){super(t.config),this.config=t.config,this.config.translateConfig=n,this.middlewareStack=t.middlewareStack}static from(t,n){return new Zm(t,n)}destroy(){}};XE.DynamoDBDocumentClient=Zm});var WE=m(KE=>{"use strict";Object.defineProperty(KE,"__esModule",{value:!0});KE.DynamoDBDocument=void 0;var Att=_D(),xtt=CD(),btt=AD(),Rtt=bD(),Ttt=TD(),Itt=ND(),Ntt=kD(),Ptt=qD(),ktt=UE(),ztt=VE(),qtt=BD(),Ltt=FD(),Dtt=UD(),Mtt=ef(),tf=class extends Mtt.DynamoDBDocumentClient{static from(t,n){return new tf(t,n)}batchExecuteStatement(t,n,r){let i=new Att.BatchExecuteStatementCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}batchGet(t,n,r){let i=new xtt.BatchGetCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}batchWrite(t,n,r){let i=new btt.BatchWriteCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}delete(t,n,r){let i=new Rtt.DeleteCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}executeStatement(t,n,r){let i=new Ttt.ExecuteStatementCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}executeTransaction(t,n,r){let i=new Itt.ExecuteTransactionCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}get(t,n,r){let i=new Ntt.GetCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}put(t,n,r){let i=new Ptt.PutCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}query(t,n,r){let i=new ktt.QueryCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}scan(t,n,r){let i=new ztt.ScanCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}transactGet(t,n,r){let i=new qtt.TransactGetCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}transactWrite(t,n,r){let i=new Ltt.TransactWriteCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}update(t,n,r){let i=new Dtt.UpdateCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}};KE.DynamoDBDocument=tf});var Lee=m(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});var mr=oe();mr.__exportStar(_D(),On);mr.__exportStar(CD(),On);mr.__exportStar(AD(),On);mr.__exportStar(bD(),On);mr.__exportStar(TD(),On);mr.__exportStar(ND(),On);mr.__exportStar(kD(),On);mr.__exportStar(qD(),On);mr.__exportStar(UE(),On);mr.__exportStar(VE(),On);mr.__exportStar(BD(),On);mr.__exportStar(FD(),On);mr.__exportStar(UD(),On)});var Mee=m(Dee=>{"use strict";Object.defineProperty(Dee,"__esModule",{value:!0})});var Bee=m(QE=>{"use strict";Object.defineProperty(QE,"__esModule",{value:!0});QE.paginateQuery=void 0;var Btt=UE(),Ott=WE(),Ftt=ef(),jtt=async(e,t,...n)=>await e.send(new Btt.QueryCommand(t),...n),Utt=async(e,t,...n)=>await e.query(t,...n);async function*Gtt(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.ExclusiveStartKey=r,t.Limit=e.pageSize,e.client instanceof Ott.DynamoDBDocument)s=await Utt(e.client,t,...n);else if(e.client instanceof Ftt.DynamoDBDocumentClient)s=await jtt(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDBDocument | DynamoDBDocumentClient");yield s,r=s.LastEvaluatedKey,i=!!r}return void 0}QE.paginateQuery=Gtt});var Oee=m(YE=>{"use strict";Object.defineProperty(YE,"__esModule",{value:!0});YE.paginateScan=void 0;var Vtt=VE(),$tt=WE(),Htt=ef(),Jtt=async(e,t,...n)=>await e.send(new Vtt.ScanCommand(t),...n),Xtt=async(e,t,...n)=>await e.scan(t,...n);async function*Ktt(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.ExclusiveStartKey=r,t.Limit=e.pageSize,e.client instanceof $tt.DynamoDBDocument)s=await Xtt(e.client,t,...n);else if(e.client instanceof Htt.DynamoDBDocumentClient)s=await Jtt(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDBDocument | DynamoDBDocumentClient");yield s,r=s.LastEvaluatedKey,i=!!r}return void 0}YE.paginateScan=Ktt});var Fee=m(nf=>{"use strict";Object.defineProperty(nf,"__esModule",{value:!0});var GD=oe();GD.__exportStar(Mee(),nf);GD.__exportStar(Bee(),nf);GD.__exportStar(Oee(),nf)});var jee=m(Yd=>{"use strict";Object.defineProperty(Yd,"__esModule",{value:!0});var ZE=oe();ZE.__exportStar(WE(),Yd);ZE.__exportStar(ef(),Yd);ZE.__exportStar(Lee(),Yd);ZE.__exportStar(Fee(),Yd)});var Uee=m(e0=>{"use strict";Object.defineProperty(e0,"__esModule",{value:!0});e0.DBManager=void 0;var Wtt=jee(),VD=class{get client(){return this._client}get ddbDocClient(){return this._ddbDocClient}constructor(t){let{dynamoClient:n,tableName:r}=t;this._tableName=r,this._client=n,this._ddbDocClient=Wtt.DynamoDBDocument.from(this._client)}get tableName(){return this._tableName}set tableName(t){this._tableName=t}};e0.DBManager=VD});var Gee=m(rf=>{"use strict";Object.defineProperty(rf,"__esModule",{value:!0});rf.TransformationType=void 0;var Qtt;(function(e){e[e.PLAIN_TO_CLASS=0]="PLAIN_TO_CLASS",e[e.CLASS_TO_PLAIN=1]="CLASS_TO_PLAIN",e[e.CLASS_TO_CLASS=2]="CLASS_TO_CLASS"})(Qtt=rf.TransformationType||(rf.TransformationType={}))});var sf=m(xa=>{"use strict";var Ytt=xa&&xa.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),Ztt=xa&&xa.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Ytt(t,e,n)};Object.defineProperty(xa,"__esModule",{value:!0});Ztt(Gee(),xa)});var Vee=m(t0=>{"use strict";Object.defineProperty(t0,"__esModule",{value:!0});t0.MetadataStorage=void 0;var ds=sf(),$D=class{constructor(){this._typeMetadatas=new Map,this._transformMetadatas=new Map,this._exposeMetadatas=new Map,this._excludeMetadatas=new Map,this._ancestorsMap=new Map}addTypeMetadata(t){this._typeMetadatas.has(t.target)||this._typeMetadatas.set(t.target,new Map),this._typeMetadatas.get(t.target).set(t.propertyName,t)}addTransformMetadata(t){this._transformMetadatas.has(t.target)||this._transformMetadatas.set(t.target,new Map),this._transformMetadatas.get(t.target).has(t.propertyName)||this._transformMetadatas.get(t.target).set(t.propertyName,[]),this._transformMetadatas.get(t.target).get(t.propertyName).push(t)}addExposeMetadata(t){this._exposeMetadatas.has(t.target)||this._exposeMetadatas.set(t.target,new Map),this._exposeMetadatas.get(t.target).set(t.propertyName,t)}addExcludeMetadata(t){this._excludeMetadatas.has(t.target)||this._excludeMetadatas.set(t.target,new Map),this._excludeMetadatas.get(t.target).set(t.propertyName,t)}findTransformMetadatas(t,n,r){return this.findMetadatas(this._transformMetadatas,t,n).filter(i=>!i.options||i.options.toClassOnly===!0&&i.options.toPlainOnly===!0?!0:i.options.toClassOnly===!0?r===ds.TransformationType.CLASS_TO_CLASS||r===ds.TransformationType.PLAIN_TO_CLASS:i.options.toPlainOnly===!0?r===ds.TransformationType.CLASS_TO_PLAIN:!0)}findExcludeMetadata(t,n){return this.findMetadata(this._excludeMetadatas,t,n)}findExposeMetadata(t,n){return this.findMetadata(this._exposeMetadatas,t,n)}findExposeMetadataByCustomName(t,n){return this.getExposedMetadatas(t).find(r=>r.options&&r.options.name===n)}findTypeMetadata(t,n){return this.findMetadata(this._typeMetadatas,t,n)}getStrategy(t){let n=this._excludeMetadatas.get(t),r=n&&n.get(void 0),i=this._exposeMetadatas.get(t),s=i&&i.get(void 0);return r&&s||!r&&!s?"none":r?"excludeAll":"exposeAll"}getExposedMetadatas(t){return this.getMetadata(this._exposeMetadatas,t)}getExcludedMetadatas(t){return this.getMetadata(this._excludeMetadatas,t)}getExposedProperties(t,n){return this.getExposedMetadatas(t).filter(r=>!r.options||r.options.toClassOnly===!0&&r.options.toPlainOnly===!0?!0:r.options.toClassOnly===!0?n===ds.TransformationType.CLASS_TO_CLASS||n===ds.TransformationType.PLAIN_TO_CLASS:r.options.toPlainOnly===!0?n===ds.TransformationType.CLASS_TO_PLAIN:!0).map(r=>r.propertyName)}getExcludedProperties(t,n){return this.getExcludedMetadatas(t).filter(r=>!r.options||r.options.toClassOnly===!0&&r.options.toPlainOnly===!0?!0:r.options.toClassOnly===!0?n===ds.TransformationType.CLASS_TO_CLASS||n===ds.TransformationType.PLAIN_TO_CLASS:r.options.toPlainOnly===!0?n===ds.TransformationType.CLASS_TO_PLAIN:!0).map(r=>r.propertyName)}clear(){this._typeMetadatas.clear(),this._exposeMetadatas.clear(),this._excludeMetadatas.clear(),this._ancestorsMap.clear()}getMetadata(t,n){let r=t.get(n),i;r&&(i=Array.from(r.values()).filter(d=>d.propertyName!==void 0));let s=[];for(let d of this.getAncestors(n)){let a=t.get(d);if(a){let c=Array.from(a.values()).filter(l=>l.propertyName!==void 0);s.push(...c)}}return s.concat(i||[])}findMetadata(t,n,r){let i=t.get(n);if(i){let s=i.get(r);if(s)return s}for(let s of this.getAncestors(n)){let d=t.get(s);if(d){let a=d.get(r);if(a)return a}}}findMetadatas(t,n,r){let i=t.get(n),s;i&&(s=i.get(r));let d=[];for(let a of this.getAncestors(n)){let c=t.get(a);c&&c.has(r)&&d.push(...c.get(r))}return d.slice().reverse().concat((s||[]).slice().reverse())}getAncestors(t){if(!t)return[];if(!this._ancestorsMap.has(t)){let n=[];for(let r=Object.getPrototypeOf(t.prototype.constructor);typeof r.prototype<"u";r=Object.getPrototypeOf(r.prototype.constructor))n.push(r);this._ancestorsMap.set(t,n)}return this._ancestorsMap.get(t)}};t0.MetadataStorage=$D});var Zd=m(n0=>{"use strict";Object.defineProperty(n0,"__esModule",{value:!0});n0.defaultMetadataStorage=void 0;var ent=Vee();n0.defaultMetadataStorage=new ent.MetadataStorage});var $ee=m(r0=>{"use strict";Object.defineProperty(r0,"__esModule",{value:!0});r0.getGlobal=void 0;function tnt(){if(typeof globalThis<"u")return globalThis;if(typeof global<"u")return global;if(typeof window<"u")return window;if(typeof self<"u")return self}r0.getGlobal=tnt});var Hee=m(i0=>{"use strict";Object.defineProperty(i0,"__esModule",{value:!0});i0.isPromise=void 0;function nnt(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}i0.isPromise=nnt});var Xee=m(co=>{"use strict";var rnt=co&&co.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),Jee=co&&co.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&rnt(t,e,n)};Object.defineProperty(co,"__esModule",{value:!0});Jee($ee(),co);Jee(Hee(),co)});var Wee=m(s0=>{"use strict";Object.defineProperty(s0,"__esModule",{value:!0});s0.TransformOperationExecutor=void 0;var Wn=Zd(),Zt=sf(),Kee=Xee();function int(e){let t=new e;return!(t instanceof Set)&&!("push"in t)?[]:t}var HD=class{constructor(t,n){this.transformationType=t,this.options=n,this.recursionStack=new Set}transform(t,n,r,i,s,d=0){if(Array.isArray(n)||n instanceof Set){let a=i&&this.transformationType===Zt.TransformationType.PLAIN_TO_CLASS?int(i):[];return n.forEach((c,l)=>{let u=t?t[l]:void 0;if(!this.options.enableCircularCheck||!this.isCircular(c)){let w;if(typeof r!="function"&&r&&r.options&&r.options.discriminator&&r.options.discriminator.property&&r.options.discriminator.subTypes){if(this.transformationType===Zt.TransformationType.PLAIN_TO_CLASS){w=r.options.discriminator.subTypes.find(N=>N.name===c[r.options.discriminator.property]);let T={newObject:a,object:c,property:void 0},I=r.typeFunction(T);w===void 0?w=I:w=w.value,r.options.keepDiscriminatorProperty||delete c[r.options.discriminator.property]}this.transformationType===Zt.TransformationType.CLASS_TO_CLASS&&(w=c.constructor),this.transformationType===Zt.TransformationType.CLASS_TO_PLAIN&&(c[r.options.discriminator.property]=r.options.discriminator.subTypes.find(T=>T.value===c.constructor).name)}else w=r;let E=this.transform(u,c,w,void 0,c instanceof Map,d+1);a instanceof Set?a.add(E):a.push(E)}else this.transformationType===Zt.TransformationType.CLASS_TO_CLASS&&(a instanceof Set?a.add(c):a.push(c))}),a}else{if(r===String&&!s)return n==null?n:String(n);if(r===Number&&!s)return n==null?n:Number(n);if(r===Boolean&&!s)return n==null?n:Boolean(n);if((r===Date||n instanceof Date)&&!s)return n instanceof Date?new Date(n.valueOf()):n==null?n:new Date(n);if(!!(0,Kee.getGlobal)().Buffer&&(r===Buffer||n instanceof Buffer)&&!s)return n==null?n:Buffer.from(n);if((0,Kee.isPromise)(n)&&!s)return new Promise((a,c)=>{n.then(l=>a(this.transform(void 0,l,r,void 0,void 0,d+1)),c)});if(!s&&n!==null&&typeof n=="object"&&typeof n.then=="function")return n;if(typeof n=="object"&&n!==null){!r&&n.constructor!==Object&&(!Array.isArray(n)&&n.constructor===Array||(r=n.constructor)),!r&&t&&(r=t.constructor),this.options.enableCircularCheck&&this.recursionStack.add(n);let a=this.getKeys(r,n,s),c=t||{};!t&&(this.transformationType===Zt.TransformationType.PLAIN_TO_CLASS||this.transformationType===Zt.TransformationType.CLASS_TO_CLASS)&&(s?c=new Map:r?c=new r:c={});for(let l of a){if(l==="__proto__"||l==="constructor")continue;let u=l,w=l,E=l;if(!this.options.ignoreDecorators&&r){if(this.transformationType===Zt.TransformationType.PLAIN_TO_CLASS){let G=Wn.defaultMetadataStorage.findExposeMetadataByCustomName(r,l);G&&(E=G.propertyName,w=G.propertyName)}else if(this.transformationType===Zt.TransformationType.CLASS_TO_PLAIN||this.transformationType===Zt.TransformationType.CLASS_TO_CLASS){let G=Wn.defaultMetadataStorage.findExposeMetadata(r,l);G&&G.options&&G.options.name&&(w=G.options.name)}}let T;this.transformationType===Zt.TransformationType.PLAIN_TO_CLASS?T=n[u]:n instanceof Map?T=n.get(u):n[u]instanceof Function?T=n[u]():T=n[u];let I,N=T instanceof Map;if(r&&s)I=r;else if(r){let G=Wn.defaultMetadataStorage.findTypeMetadata(r,E);if(G){let ue={newObject:c,object:n,property:E},it=G.typeFunction?G.typeFunction(ue):G.reflectedType;G.options&&G.options.discriminator&&G.options.discriminator.property&&G.options.discriminator.subTypes?n[u]instanceof Array?I=G:(this.transformationType===Zt.TransformationType.PLAIN_TO_CLASS&&(I=G.options.discriminator.subTypes.find(ln=>{if(T&&T instanceof Object&&G.options.discriminator.property in T)return ln.name===T[G.options.discriminator.property]}),I===void 0?I=it:I=I.value,G.options.keepDiscriminatorProperty||T&&T instanceof Object&&G.options.discriminator.property in T&&delete T[G.options.discriminator.property]),this.transformationType===Zt.TransformationType.CLASS_TO_CLASS&&(I=T.constructor),this.transformationType===Zt.TransformationType.CLASS_TO_PLAIN&&T&&(T[G.options.discriminator.property]=G.options.discriminator.subTypes.find(ln=>ln.value===T.constructor).name)):I=it,N=N||G.reflectedType===Map}else if(this.options.targetMaps)this.options.targetMaps.filter(ue=>ue.target===r&&!!ue.properties[E]).forEach(ue=>I=ue.properties[E]);else if(this.options.enableImplicitConversion&&this.transformationType===Zt.TransformationType.PLAIN_TO_CLASS){let ue=Reflect.getMetadata("design:type",r.prototype,E);ue&&(I=ue)}}let F=Array.isArray(n[u])?this.getReflectedType(r,E):void 0,J=t?t[u]:void 0;if(c.constructor.prototype){let G=Object.getOwnPropertyDescriptor(c.constructor.prototype,w);if((this.transformationType===Zt.TransformationType.PLAIN_TO_CLASS||this.transformationType===Zt.TransformationType.CLASS_TO_CLASS)&&(G&&!G.set||c[w]instanceof Function))continue}if(!this.options.enableCircularCheck||!this.isCircular(T)){let G=this.transformationType===Zt.TransformationType.PLAIN_TO_CLASS?w:l,ue;this.transformationType===Zt.TransformationType.CLASS_TO_PLAIN?(ue=n[G],ue=this.applyCustomTransformations(ue,r,G,n,this.transformationType),ue=n[G]===ue?T:ue,ue=this.transform(J,ue,I,F,N,d+1)):T===void 0&&this.options.exposeDefaultValues?ue=c[w]:(ue=this.transform(J,T,I,F,N,d+1),ue=this.applyCustomTransformations(ue,r,G,n,this.transformationType)),(ue!==void 0||this.options.exposeUnsetFields)&&(c instanceof Map?c.set(w,ue):c[w]=ue)}else if(this.transformationType===Zt.TransformationType.CLASS_TO_CLASS){let G=T;G=this.applyCustomTransformations(G,r,l,n,this.transformationType),(G!==void 0||this.options.exposeUnsetFields)&&(c instanceof Map?c.set(w,G):c[w]=G)}}return this.options.enableCircularCheck&&this.recursionStack.delete(n),c}else return n}}applyCustomTransformations(t,n,r,i,s){let d=Wn.defaultMetadataStorage.findTransformMetadatas(n,r,this.transformationType);return this.options.version!==void 0&&(d=d.filter(a=>a.options?this.checkVersion(a.options.since,a.options.until):!0)),this.options.groups&&this.options.groups.length?d=d.filter(a=>a.options?this.checkGroups(a.options.groups):!0):d=d.filter(a=>!a.options||!a.options.groups||!a.options.groups.length),d.forEach(a=>{t=a.transformFn({value:t,key:r,obj:i,type:s,options:this.options})}),t}isCircular(t){return this.recursionStack.has(t)}getReflectedType(t,n){if(!t)return;let r=Wn.defaultMetadataStorage.findTypeMetadata(t,n);return r?r.reflectedType:void 0}getKeys(t,n,r){let i=Wn.defaultMetadataStorage.getStrategy(t);i==="none"&&(i=this.options.strategy||"exposeAll");let s=[];if((i==="exposeAll"||r)&&(n instanceof Map?s=Array.from(n.keys()):s=Object.keys(n)),r)return s;if(this.options.ignoreDecorators&&this.options.excludeExtraneousValues&&t){let d=Wn.defaultMetadataStorage.getExposedProperties(t,this.transformationType),a=Wn.defaultMetadataStorage.getExcludedProperties(t,this.transformationType);s=[...d,...a]}if(!this.options.ignoreDecorators&&t){let d=Wn.defaultMetadataStorage.getExposedProperties(t,this.transformationType);this.transformationType===Zt.TransformationType.PLAIN_TO_CLASS&&(d=d.map(c=>{let l=Wn.defaultMetadataStorage.findExposeMetadata(t,c);return l&&l.options&&l.options.name?l.options.name:c})),this.options.excludeExtraneousValues?s=d:s=s.concat(d);let a=Wn.defaultMetadataStorage.getExcludedProperties(t,this.transformationType);a.length>0&&(s=s.filter(c=>!a.includes(c))),this.options.version!==void 0&&(s=s.filter(c=>{let l=Wn.defaultMetadataStorage.findExposeMetadata(t,c);return!l||!l.options?!0:this.checkVersion(l.options.since,l.options.until)})),this.options.groups&&this.options.groups.length?s=s.filter(c=>{let l=Wn.defaultMetadataStorage.findExposeMetadata(t,c);return!l||!l.options?!0:this.checkGroups(l.options.groups)}):s=s.filter(c=>{let l=Wn.defaultMetadataStorage.findExposeMetadata(t,c);return!l||!l.options||!l.options.groups||!l.options.groups.length})}return this.options.excludePrefixes&&this.options.excludePrefixes.length&&(s=s.filter(d=>this.options.excludePrefixes.every(a=>d.substr(0,a.length)!==a))),s=s.filter((d,a,c)=>c.indexOf(d)===a),s}checkVersion(t,n){let r=!0;return r&&t&&(r=this.options.version>=t),r&&n&&(r=this.options.version<n),r}checkGroups(t){return t?this.options.groups.some(n=>t.includes(n)):!0}};s0.TransformOperationExecutor=HD});var Qee=m(o0=>{"use strict";Object.defineProperty(o0,"__esModule",{value:!0});o0.defaultOptions=void 0;o0.defaultOptions={enableCircularCheck:!1,enableImplicitConversion:!1,excludeExtraneousValues:!1,excludePrefixes:void 0,exposeDefaultValues:!1,exposeUnsetFields:!0,groups:void 0,ignoreDecorators:!1,strategy:void 0,targetMaps:void 0,version:void 0}});var rc=m(a0=>{"use strict";Object.defineProperty(a0,"__esModule",{value:!0});a0.ClassTransformer=void 0;var ec=Wee(),tc=sf(),nc=Qee(),JD=class{instanceToPlain(t,n){return new ec.TransformOperationExecutor(tc.TransformationType.CLASS_TO_PLAIN,o(o({},nc.defaultOptions),n)).transform(void 0,t,void 0,void 0,void 0,void 0)}classToPlainFromExist(t,n,r){return new ec.TransformOperationExecutor(tc.TransformationType.CLASS_TO_PLAIN,o(o({},nc.defaultOptions),r)).transform(n,t,void 0,void 0,void 0,void 0)}plainToInstance(t,n,r){return new ec.TransformOperationExecutor(tc.TransformationType.PLAIN_TO_CLASS,o(o({},nc.defaultOptions),r)).transform(void 0,n,t,void 0,void 0,void 0)}plainToClassFromExist(t,n,r){return new ec.TransformOperationExecutor(tc.TransformationType.PLAIN_TO_CLASS,o(o({},nc.defaultOptions),r)).transform(t,n,void 0,void 0,void 0,void 0)}instanceToInstance(t,n){return new ec.TransformOperationExecutor(tc.TransformationType.CLASS_TO_CLASS,o(o({},nc.defaultOptions),n)).transform(void 0,t,void 0,void 0,void 0,void 0)}classToClassFromExist(t,n,r){return new ec.TransformOperationExecutor(tc.TransformationType.CLASS_TO_CLASS,o(o({},nc.defaultOptions),r)).transform(n,t,void 0,void 0,void 0,void 0)}serialize(t,n){return JSON.stringify(this.instanceToPlain(t,n))}deserialize(t,n,r){let i=JSON.parse(n);return this.plainToInstance(t,i,r)}deserializeArray(t,n,r){let i=JSON.parse(n);return this.plainToInstance(t,i,r)}};a0.ClassTransformer=JD});var Yee=m(d0=>{"use strict";Object.defineProperty(d0,"__esModule",{value:!0});d0.Exclude=void 0;var snt=Zd();function ont(e={}){return function(t,n){snt.defaultMetadataStorage.addExcludeMetadata({target:t instanceof Function?t:t.constructor,propertyName:n,options:e})}}d0.Exclude=ont});var Zee=m(c0=>{"use strict";Object.defineProperty(c0,"__esModule",{value:!0});c0.Expose=void 0;var ant=Zd();function dnt(e={}){return function(t,n){ant.defaultMetadataStorage.addExposeMetadata({target:t instanceof Function?t:t.constructor,propertyName:n,options:e})}}c0.Expose=dnt});var ete=m(l0=>{"use strict";Object.defineProperty(l0,"__esModule",{value:!0});l0.TransformInstanceToInstance=void 0;var cnt=rc();function lnt(e){return function(t,n,r){let i=new cnt.ClassTransformer,s=r.value;r.value=function(...d){let a=s.apply(this,d);return!!a&&(typeof a=="object"||typeof a=="function")&&typeof a.then=="function"?a.then(l=>i.instanceToInstance(l,e)):i.instanceToInstance(a,e)}}}l0.TransformInstanceToInstance=lnt});var tte=m(u0=>{"use strict";Object.defineProperty(u0,"__esModule",{value:!0});u0.TransformInstanceToPlain=void 0;var unt=rc();function mnt(e){return function(t,n,r){let i=new unt.ClassTransformer,s=r.value;r.value=function(...d){let a=s.apply(this,d);return!!a&&(typeof a=="object"||typeof a=="function")&&typeof a.then=="function"?a.then(l=>i.instanceToPlain(l,e)):i.instanceToPlain(a,e)}}}u0.TransformInstanceToPlain=mnt});var nte=m(m0=>{"use strict";Object.defineProperty(m0,"__esModule",{value:!0});m0.TransformPlainToInstance=void 0;var fnt=rc();function pnt(e,t){return function(n,r,i){let s=new fnt.ClassTransformer,d=i.value;i.value=function(...a){let c=d.apply(this,a);return!!c&&(typeof c=="object"||typeof c=="function")&&typeof c.then=="function"?c.then(u=>s.plainToInstance(e,u,t)):s.plainToInstance(e,c,t)}}}m0.TransformPlainToInstance=pnt});var rte=m(f0=>{"use strict";Object.defineProperty(f0,"__esModule",{value:!0});f0.Transform=void 0;var gnt=Zd();function hnt(e,t={}){return function(n,r){gnt.defaultMetadataStorage.addTransformMetadata({target:n.constructor,propertyName:r,transformFn:e,options:t})}}f0.Transform=hnt});var ite=m(p0=>{"use strict";Object.defineProperty(p0,"__esModule",{value:!0});p0.Type=void 0;var wnt=Zd();function ynt(e,t={}){return function(n,r){let i=Reflect.getMetadata("design:type",n,r);wnt.defaultMetadataStorage.addTypeMetadata({target:n.constructor,propertyName:r,reflectedType:i,typeFunction:e,options:t})}}p0.Type=ynt});var ste=m(fr=>{"use strict";var Snt=fr&&fr.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),ba=fr&&fr.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Snt(t,e,n)};Object.defineProperty(fr,"__esModule",{value:!0});ba(Yee(),fr);ba(Zee(),fr);ba(ete(),fr);ba(tte(),fr);ba(nte(),fr);ba(rte(),fr);ba(ite(),fr)});var ate=m(ote=>{"use strict";Object.defineProperty(ote,"__esModule",{value:!0})});var cte=m(dte=>{"use strict";Object.defineProperty(dte,"__esModule",{value:!0})});var ute=m(lte=>{"use strict";Object.defineProperty(lte,"__esModule",{value:!0})});var fte=m(mte=>{"use strict";Object.defineProperty(mte,"__esModule",{value:!0})});var gte=m(pte=>{"use strict";Object.defineProperty(pte,"__esModule",{value:!0})});var wte=m(hte=>{"use strict";Object.defineProperty(hte,"__esModule",{value:!0})});var Ste=m(yte=>{"use strict";Object.defineProperty(yte,"__esModule",{value:!0})});var vte=m(_te=>{"use strict";Object.defineProperty(_te,"__esModule",{value:!0})});var Ete=m(Cte=>{"use strict";Object.defineProperty(Cte,"__esModule",{value:!0})});var xte=m(Ate=>{"use strict";Object.defineProperty(Ate,"__esModule",{value:!0})});var Rte=m(bte=>{"use strict";Object.defineProperty(bte,"__esModule",{value:!0})});var Ite=m(Tte=>{"use strict";Object.defineProperty(Tte,"__esModule",{value:!0})});var Pte=m(Nte=>{"use strict";Object.defineProperty(Nte,"__esModule",{value:!0})});var zte=m(kte=>{"use strict";Object.defineProperty(kte,"__esModule",{value:!0})});var qte=m(an=>{"use strict";var _nt=an&&an.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),Qn=an&&an.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&_nt(t,e,n)};Object.defineProperty(an,"__esModule",{value:!0});Qn(ate(),an);Qn(cte(),an);Qn(ute(),an);Qn(fte(),an);Qn(gte(),an);Qn(wte(),an);Qn(Ste(),an);Qn(vte(),an);Qn(Ete(),an);Qn(xte(),an);Qn(Rte(),an);Qn(Ite(),an);Qn(Pte(),an);Qn(zte(),an)});var g0=m(ht=>{"use strict";var vnt=ht&&ht.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),XD=ht&&ht.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&vnt(t,e,n)};Object.defineProperty(ht,"__esModule",{value:!0});ht.deserializeArray=ht.deserialize=ht.serialize=ht.classToClassFromExist=ht.instanceToInstance=ht.plainToClassFromExist=ht.plainToInstance=ht.plainToClass=ht.classToPlainFromExist=ht.instanceToPlain=ht.classToPlain=ht.ClassTransformer=void 0;var Cnt=rc(),Ent=rc();Object.defineProperty(ht,"ClassTransformer",{enumerable:!0,get:function(){return Ent.ClassTransformer}});XD(ste(),ht);XD(qte(),ht);XD(sf(),ht);var Ur=new Cnt.ClassTransformer;function Ant(e,t){return Ur.instanceToPlain(e,t)}ht.classToPlain=Ant;function xnt(e,t){return Ur.instanceToPlain(e,t)}ht.instanceToPlain=xnt;function bnt(e,t,n){return Ur.classToPlainFromExist(e,t,n)}ht.classToPlainFromExist=bnt;function Rnt(e,t,n){return Ur.plainToInstance(e,t,n)}ht.plainToClass=Rnt;function Tnt(e,t,n){return Ur.plainToInstance(e,t,n)}ht.plainToInstance=Tnt;function Int(e,t,n){return Ur.plainToClassFromExist(e,t,n)}ht.plainToClassFromExist=Int;function Nnt(e,t){return Ur.instanceToInstance(e,t)}ht.instanceToInstance=Nnt;function Pnt(e,t,n){return Ur.classToClassFromExist(e,t,n)}ht.classToClassFromExist=Pnt;function knt(e,t){return Ur.serialize(e,t)}ht.serialize=knt;function znt(e,t,n){return Ur.deserialize(e,t,n)}ht.deserialize=znt;function qnt(e,t,n){return Ur.deserializeArray(e,t,n)}ht.deserializeArray=qnt});var KD=m(h0=>{"use strict";Object.defineProperty(h0,"__esModule",{value:!0});h0.Rules=void 0;var Lnt=g0(),of=class{static async Load(t){let{dbManager:n,key:r}=t,{Item:i}=await n.ddbDocClient.get({TableName:n.tableName,Key:{PK:`appName#${r.AppName}`.toLowerCase(),SK:"rules"}});return(0,Lnt.plainToInstance)(of,i)}constructor(t){Object.assign(this,t),t===void 0&&(this._ruleSet={})}get DbStruct(){return{PK:this.PK,SK:this.SK,AppName:this.AppName,RuleSet:this.RuleSet,Version:this.Version}}async Save(t){let n=t.ddbDocClient.put({TableName:t.tableName,Item:this.DbStruct}),r=t.ddbDocClient.put({TableName:t.tableName,Item:this.DbStruct});await Promise.all([n,r]),await n,await r}get PK(){return`appName#${this.AppName}`.toLowerCase()}get SK(){return"rules"}get AppName(){return this._appName}set AppName(t){this._appName=t.toLowerCase()}get RuleSet(){return this._ruleSet}set RuleSet(t){this._ruleSet=t}get Version(){return this._version}set Version(t){this._version=t}};h0.Rules=of});var WD=m(w0=>{"use strict";Object.defineProperty(w0,"__esModule",{value:!0});w0.Version=void 0;var Lte=g0(),ic;(function(e){e[e.AppName=0]="AppName"})(ic||(ic={}));var sc=class{static async LoadVersions(t){let{dbManager:n,key:r}=t,{Items:i}=await n.ddbDocClient.query({TableName:n.tableName,KeyConditionExpression:"PK = :pkval and begins_with(SK, :skval)",ExpressionAttributeValues:{":pkval":`appName#${r.AppName}`.toLowerCase(),":skval":"version"}}),s=[];if(i!==void 0)for(let d of i){let a=(0,Lte.plainToInstance)(sc,d);s.push(a)}return s}static async LoadVersion(t){let{dbManager:n,key:r}=t,{Item:i}=await n.ddbDocClient.get({TableName:n.tableName,Key:{PK:`appName#${r.AppName}`.toLowerCase(),SK:`version#${r.SemVer}`.toLowerCase()}});return(0,Lte.plainToInstance)(sc,i)}static async DeleteVersion(t){let{dbManager:n,key:r}=t;await n.ddbDocClient.delete({TableName:n.tableName,Key:{PK:`appName#${r.AppName}`.toLowerCase(),SK:`version#${r.SemVer}`.toLowerCase()}})}get PK(){switch(this._keyBy){case ic.AppName:return`appName#${this.AppName}`.toLowerCase();default:throw new Error("Missing SaveBy handler")}}constructor(t){this._keyBy=ic.AppName,this._status="pending",this._startupType="iframe",this._defaultFile="",this._integrationID="",this._routeIDAppVersion="",this._routeIDAppVersionSplat="",this._url="",this._lambdaARN="",Object.assign(this,t)}get DbStruct(){return{PK:this.PK,SK:this.SK,AppName:this.AppName,SemVer:this.SemVer,Type:this.Type,StartupType:this.StartupType,Status:this.Status,DefaultFile:this.DefaultFile,IntegrationID:this.IntegrationID,RouteIDAppVersion:this.RouteIDAppVersion,RouteIDAppVersionSplat:this.RouteIDAppVersionSplat,URL:this.URL,LambdaARN:this.LambdaARN}}async Save(t){this._keyBy=ic.AppName,await t.ddbDocClient.put({TableName:t.tableName,Item:this.DbStruct})}get SK(){switch(this._keyBy){case ic.AppName:return`version#${this.SemVer}`.toLowerCase();default:throw new Error("Missing SaveBy handler")}}get AppName(){return this._appName}set AppName(t){this._appName=t.toLowerCase()}get SemVer(){return this._semVer}set SemVer(t){this._semVer=t}get Type(){return this._type}set Type(t){this._type=t}get StartupType(){return this._startupType}set StartupType(t){this._startupType=t}get Status(){return this._status}set Status(t){this._status=t}get DefaultFile(){return this._defaultFile}set DefaultFile(t){this._defaultFile=t}get IntegrationID(){return this._integrationID}set IntegrationID(t){this._integrationID=t}get RouteIDAppVersion(){return this._routeIDAppVersion}set RouteIDAppVersion(t){this._routeIDAppVersion=t}get RouteIDAppVersionSplat(){return this._routeIDAppVersionSplat}set RouteIDAppVersionSplat(t){this._routeIDAppVersionSplat=t}get URL(){return this._url}set URL(t){this._url=t}get LambdaARN(){return this._lambdaARN}set LambdaARN(t){this._lambdaARN=t}};w0.Version=sc});var Bte=m(y0=>{"use strict";Object.defineProperty(y0,"__esModule",{value:!0});y0.Application=void 0;var Dte=g0(),Mte=KD(),Dnt=WD(),cs;(function(e){e[e.AppName=0]="AppName",e[e.Applications=1]="Applications"})(cs||(cs={}));var oc=class{static async UpdateDefaultRule(t){let{dbManager:n,key:r}=t,i=await Mte.Rules.Load({dbManager:n,key:r}),s=i.RuleSet.default;s.SemVer=r.SemVer,await i.Save(n)}static async GetVersionsAndRules(t){let{key:n,dbManager:r}=t,i=Dnt.Version.LoadVersions({dbManager:r,key:n}),s=Mte.Rules.Load({dbManager:r,key:n});return await Promise.all([i,s]),{Versions:await i,Rules:await s}}static async Load(t){let{key:n,dbManager:r}=t,{Item:i}=await r.ddbDocClient.get({TableName:r.tableName,Key:{PK:`appName#${n.AppName}`.toLowerCase(),SK:"application"}});return(0,Dte.plainToInstance)(oc,i)}static async LoadAllApps(t){let{Items:n}=await t.ddbDocClient.query({TableName:t.tableName,KeyConditionExpression:"PK = :pkval",ExpressionAttributeValues:{":pkval":"applications"}}),r=[];if(n!==void 0)for(let i of n){let s=(0,Dte.plainToInstance)(oc,i);r.push(s)}return r}constructor(t){Object.assign(this,t),this._keyBy=cs.AppName}get DbStruct(){return{PK:this.PK,SK:this.SK,AppName:this.AppName,DisplayName:this.DisplayName}}async Save(t){this._keyBy=cs.AppName;let n=t.ddbDocClient.put({TableName:t.tableName,Item:this.DbStruct});this._keyBy=cs.Applications;let r=t.ddbDocClient.put({TableName:t.tableName,Item:this.DbStruct});await Promise.all([n,r]),await n,await r}get PK(){switch(this._keyBy){case cs.Applications:return"applications";case cs.AppName:return`appName#${this.AppName}`.toLowerCase();default:throw new Error("Missing SaveBy handler")}}get SK(){switch(this._keyBy){case cs.Applications:return`appName#${this.AppName}`.toLowerCase();case cs.AppName:return"application";default:throw new Error("Missing SaveBy handler")}}get AppName(){return this._appName}set AppName(t){this._appName=t.toLowerCase()}get DisplayName(){return this._displayName}set DisplayName(t){this._displayName=t}};y0.Application=oc});var Ra=m(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});ki.Version=ki.Rules=ki.Application=ki.DBManager=void 0;var Mnt=Uee();Object.defineProperty(ki,"DBManager",{enumerable:!0,get:function(){return Mnt.DBManager}});var Bnt=Bte();Object.defineProperty(ki,"Application",{enumerable:!0,get:function(){return Bnt.Application}});var Ont=KD();Object.defineProperty(ki,"Rules",{enumerable:!0,get:function(){return Ont.Rules}});var Fnt=WD();Object.defineProperty(ki,"Version",{enumerable:!0,get:function(){return Fnt.Version}})});var ac=m((af,QD)=>{"use strict";Object.defineProperty(af,"__esModule",{value:!0});af.default=jnt;function S0(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?S0=function(n){return typeof n}:S0=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},S0(e)}function jnt(e){var t=typeof e=="string"||e instanceof String;if(!t){var n=S0(e);throw e===null?n="null":n==="object"&&(n=e.constructor.name),new TypeError("Expected a string but received a ".concat(n))}}QD.exports=af.default;QD.exports.default=af.default});var _0=m((df,YD)=>{"use strict";Object.defineProperty(df,"__esModule",{value:!0});df.default=Unt;function Unt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var n in t)typeof e[n]>"u"&&(e[n]=t[n]);return e}YD.exports=df.default;YD.exports.default=df.default});var Ote=m((cf,ZD)=>{"use strict";Object.defineProperty(cf,"__esModule",{value:!0});cf.default=$nt;var Gnt=Vnt(ac());function Vnt(e){return e&&e.__esModule?e:{default:e}}function v0(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?v0=function(n){return typeof n}:v0=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},v0(e)}function $nt(e,t){(0,Gnt.default)(e);var n,r;v0(t)==="object"?(n=t.min||0,r=t.max):(n=arguments[1],r=arguments[2]);var i=encodeURI(e).split(/%..|./).length-1;return i>=n&&(typeof r>"u"||i<=r)}ZD.exports=cf.default;ZD.exports.default=cf.default});var tM=m((lf,eM)=>{"use strict";Object.defineProperty(lf,"__esModule",{value:!0});lf.default=Knt;var Hnt=Fte(ac()),Jnt=Fte(_0());function Fte(e){return e&&e.__esModule?e:{default:e}}var Xnt={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1};function Knt(e,t){(0,Hnt.default)(e),t=(0,Jnt.default)(t,Xnt),t.allow_trailing_dot&&e[e.length-1]==="."&&(e=e.substring(0,e.length-1)),t.allow_wildcard===!0&&e.indexOf("*.")===0&&(e=e.substring(2));var n=e.split("."),r=n[n.length-1];return t.require_tld&&(n.length<2||!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(r)||/\s/.test(r))||!t.allow_numeric_tld&&/^\d+$/.test(r)?!1:n.every(function(i){return!(i.length>63||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(i)||/[\uff01-\uff5e]/.test(i)||/^-|-$/.test(i)||!t.allow_underscores&&/_/.test(i))})}eM.exports=lf.default;eM.exports.default=lf.default});var C0=m((uf,rM)=>{"use strict";Object.defineProperty(uf,"__esModule",{value:!0});uf.default=nM;var Wnt=Qnt(ac());function Qnt(e){return e&&e.__esModule?e:{default:e}}var jte="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",lo="(".concat(jte,"[.]){3}").concat(jte),Ynt=new RegExp("^".concat(lo,"$")),dn="(?:[0-9a-fA-F]{1,4})",Znt=new RegExp("^("+"(?:".concat(dn,":){7}(?:").concat(dn,"|:)|")+"(?:".concat(dn,":){6}(?:").concat(lo,"|:").concat(dn,"|:)|")+"(?:".concat(dn,":){5}(?::").concat(lo,"|(:").concat(dn,"){1,2}|:)|")+"(?:".concat(dn,":){4}(?:(:").concat(dn,"){0,1}:").concat(lo,"|(:").concat(dn,"){1,3}|:)|")+"(?:".concat(dn,":){3}(?:(:").concat(dn,"){0,2}:").concat(lo,"|(:").concat(dn,"){1,4}|:)|")+"(?:".concat(dn,":){2}(?:(:").concat(dn,"){0,3}:").concat(lo,"|(:").concat(dn,"){1,5}|:)|")+"(?:".concat(dn,":){1}(?:(:").concat(dn,"){0,4}:").concat(lo,"|(:").concat(dn,"){1,6}|:)|")+"(?::((?::".concat(dn,"){0,5}:").concat(lo,"|(?::").concat(dn,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");function nM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if((0,Wnt.default)(e),t=String(t),!t)return nM(e,4)||nM(e,6);if(t==="4"){if(!Ynt.test(e))return!1;var n=e.split(".").sort(function(r,i){return r-i});return n[3]<=255}return t==="6"?!!Znt.test(e):!1}rM.exports=uf.default;rM.exports.default=uf.default});var Gte=m((ff,sM)=>{"use strict";Object.defineProperty(ff,"__esModule",{value:!0});ff.default=mrt;var ert=mf(ac()),trt=mf(_0()),iM=mf(Ote()),nrt=mf(tM()),Ute=mf(C0());function mf(e){return e&&e.__esModule?e:{default:e}}var rrt={allow_display_name:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[]},irt=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,srt=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,ort=/^[a-z\d]+$/,art=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,drt=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,crt=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i,lrt=254;function urt(e){var t=e.replace(/^"(.+)"$/,"$1");if(!t.trim())return!1;var n=/[\.";<>]/.test(t);if(n){if(t===e)return!1;var r=t.split('"').length===t.split('\\"').length;if(!r)return!1}return!0}function mrt(e,t){if((0,ert.default)(e),t=(0,trt.default)(t,rrt),t.require_display_name||t.allow_display_name){var n=e.match(irt);if(n){var r=n[1];if(e=e.replace(r,"").replace(/(^<|>$)/g,""),r.endsWith(" ")&&(r=r.substr(0,r.length-1)),!urt(r))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>lrt)return!1;var i=e.split("@"),s=i.pop(),d=s.toLowerCase();if(t.host_blacklist.includes(d))return!1;var a=i.join("@");if(t.domain_specific_validation&&(d==="gmail.com"||d==="googlemail.com")){a=a.toLowerCase();var c=a.split("+")[0];if(!(0,iM.default)(c.replace(/\./g,""),{min:6,max:30}))return!1;for(var l=c.split("."),u=0;u<l.length;u++)if(!ort.test(l[u]))return!1}if(t.ignore_max_length===!1&&(!(0,iM.default)(a,{max:64})||!(0,iM.default)(s,{max:254})))return!1;if(!(0,nrt.default)(s,{require_tld:t.require_tld})){if(!t.allow_ip_domain)return!1;if(!(0,Ute.default)(s)){if(!s.startsWith("[")||!s.endsWith("]"))return!1;var w=s.substr(1,s.length-2);if(w.length===0||!(0,Ute.default)(w))return!1}}if(a[0]==='"')return a=a.slice(1,a.length-1),t.allow_utf8_local_part?crt.test(a):art.test(a);for(var E=t.allow_utf8_local_part?drt:srt,T=a.split("."),I=0;I<T.length;I++)if(!E.test(T[I]))return!1;return!(t.blacklisted_chars&&a.search(new RegExp("[".concat(t.blacklisted_chars,"]+"),"g"))!==-1)}sM.exports=ff.default;sM.exports.default=ff.default});var Jte=m((pf,oM)=>{"use strict";Object.defineProperty(pf,"__esModule",{value:!0});pf.default=Art;var frt=E0(ac()),prt=E0(tM()),Vte=E0(C0()),grt=E0(_0());function E0(e){return e&&e.__esModule?e:{default:e}}function hrt(e,t){return _rt(e)||Srt(e,t)||yrt(e,t)||wrt()}function wrt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
30
30
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yrt(e,t){if(!!e){if(typeof e=="string")return $te(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $te(e,t)}}function $te(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Srt(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,s=void 0;try{for(var d=e[Symbol.iterator](),a;!(r=(a=d.next()).done)&&(n.push(a.value),!(t&&n.length===t));r=!0);}catch(c){i=!0,s=c}finally{try{!r&&d.return!=null&&d.return()}finally{if(i)throw s}}return n}}function _rt(e){if(Array.isArray(e))return e}var vrt={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0},Crt=/^\[([^\]]+)\](?::([0-9]+))?$/;function Ert(e){return Object.prototype.toString.call(e)==="[object RegExp]"}function Hte(e,t){for(var n=0;n<t.length;n++){var r=t[n];if(e===r||Ert(r)&&r.test(e))return!0}return!1}function Art(e,t){if((0,frt.default)(e),!e||/[\s<>]/.test(e)||e.indexOf("mailto:")===0||(t=(0,grt.default)(t,vrt),t.validate_length&&e.length>=2083)||!t.allow_fragments&&e.includes("#")||!t.allow_query_components&&(e.includes("?")||e.includes("&")))return!1;var n,r,i,s,d,a,c,l;if(c=e.split("#"),e=c.shift(),c=e.split("?"),e=c.shift(),c=e.split("://"),c.length>1){if(n=c.shift().toLowerCase(),t.require_valid_protocol&&t.protocols.indexOf(n)===-1)return!1}else{if(t.require_protocol)return!1;if(e.substr(0,2)==="//"){if(!t.allow_protocol_relative_urls)return!1;c[0]=e.substr(2)}}if(e=c.join("://"),e==="")return!1;if(c=e.split("/"),e=c.shift(),e===""&&!t.require_host)return!0;if(c=e.split("@"),c.length>1){if(t.disallow_auth||c[0]===""||(r=c.shift(),r.indexOf(":")>=0&&r.split(":").length>2))return!1;var u=r.split(":"),w=hrt(u,2),E=w[0],T=w[1];if(E===""&&T==="")return!1}s=c.join("@"),a=null,l=null;var I=s.match(Crt);if(I?(i="",l=I[1],a=I[2]||null):(c=s.split(":"),i=c.shift(),c.length&&(a=c.join(":"))),a!==null&&a.length>0){if(d=parseInt(a,10),!/^[0-9]+$/.test(a)||d<=0||d>65535)return!1}else if(t.require_port)return!1;return t.host_whitelist?Hte(i,t.host_whitelist):!(!(0,Vte.default)(i)&&!(0,prt.default)(i,t)&&(!l||!(0,Vte.default)(l,6))||(i=i||l,t.host_blacklist&&Hte(i,t.host_blacklist)))}oM.exports=pf.default;oM.exports.default=pf.default});var Kte=m((Y7t,Xte)=>{"use strict";var xrt=Gte(),brt=Jte(),Rrt=C0();function aM(e,t){if(!e)throw new Error(t)}var Trt={name:"email",coerce:e=>e.toString(),validate:function(e){aM(xrt(e),"must be an email address")}},Irt={name:"ipaddress",coerce:e=>e.toString(),validate:function(e){aM(Rrt(e),"must be an IP address")}},Nrt={name:"url",coerce:e=>e.toString(),validate:function(e){aM(brt(e,{require_tld:!1}),"must be a URL")}};Xte.exports={email:Trt,ipaddress:Irt,url:Nrt}});var Bne=m(Mne=>{"use strict";Object.defineProperty(Mne,"__esModule",{value:!0})});var EM=m(CM=>{"use strict";Object.defineProperty(CM,"__esModule",{value:!0});var vM=class{constructor(){if(!!!(Reflect&&Reflect.getMetadata))throw new Error("reflect-metadata should be installed properly");this._reflect=Reflect}isConstructor(t){return!!t.prototype&&!!t.prototype.constructor.name&&t instanceof Function}isConfigClass(t){let n=this._reflect.hasMetadata("tsconvict:properties",t),r=this._reflect.hasMetadata("tsconvict:schema",t);return n||r}getTsType(t,n){return this._reflect.getMetadata("design:type",t,n)}getConvictMetaForProperty(t,n){return this._reflect.getMetadata("tsconvict:property",t,n)}setConvictMetaForProperty(t,n,r){return this._reflect.defineMetadata("tsconvict:property",t,n,r)}setConvictMetaForClass(t,n){return this._reflect.defineMetadata("tsconvict:schema",t,n)}getConvictMetaForClass(t){return this._reflect.getMetadata("tsconvict:schema",t)||null}setPropertyForClass(t,n){let r=this.getClassProperties(t);return r.length===0&&(this._reflect.defineMetadata("tsconvict:properties",[],t.constructor),r=this.getClassProperties(t)),r.push(n)}getClassProperties(t){return this._reflect.getMetadata("tsconvict:properties",t.constructor)||[]}};CM.default=new vM});var One=m(fo=>{"use strict";var eot=fo&&fo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(fo,"__esModule",{value:!0});fo.Property=fo.Config=void 0;var N0=eot(EM());function tot(e={}){return t=>{N0.default.setConvictMetaForClass(e,t)}}fo.Config=tot;function not(e){return(t,n)=>{if(typeof e=="object"&&typeof e.format>"u"){let r=N0.default.getTsType(t,n);r&&(e.format=r)}N0.default.setConvictMetaForProperty(e,t,n),N0.default.setPropertyForClass(t,n)}}fo.Property=not});var Jne=m((aQt,Hne)=>{"use strict";var rot=require("util"),iot=require("fs"),Fne=require("path");function _f(e){if(e!==e.toLowerCase()&&e!==e.toUpperCase()||(e=e.toLowerCase()),e.indexOf("-")===-1&&e.indexOf("_")===-1)return e;{let n="",r=!1,i=e.match(/^-+/);for(let s=i?i[0].length:0;s<e.length;s++){let d=e.charAt(s);r&&(r=!1,d=d.toUpperCase()),s!==0&&(d==="-"||d==="_")?r=!0:d!=="-"&&d!=="_"&&(n+=d)}return n}}function Gne(e,t){let n=e.toLowerCase();t=t||"-";let r="";for(let i=0;i<e.length;i++){let s=n.charAt(i),d=e.charAt(i);s!==d&&i>0?r+=`${t}${n.charAt(i)}`:r+=d}return r}function Vne(e){return e==null?!1:typeof e=="number"||/^0x[0-9a-f]+$/i.test(e)?!0:/^0[^.]/.test(e)?!1:/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}function sot(e){if(Array.isArray(e))return e.map(d=>typeof d!="string"?d+"":d);e=e.trim();let t=0,n=null,r=null,i=null,s=[];for(let d=0;d<e.length;d++){if(n=r,r=e.charAt(d),r===" "&&!i){n!==" "&&t++;continue}r===i?i=null:(r==="'"||r==='"')&&!i&&(i=r),s[t]||(s[t]=""),s[t]+=r}return s}var Gr;(function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"})(Gr||(Gr={}));var us,xM=class{constructor(t){us=t}parse(t,n){let r=Object.assign({alias:void 0,array:void 0,boolean:void 0,config:void 0,configObjects:void 0,configuration:void 0,coerce:void 0,count:void 0,default:void 0,envPrefix:void 0,narg:void 0,normalize:void 0,string:void 0,number:void 0,__:void 0,key:void 0},n),i=sot(t),s=oot(Object.assign(Object.create(null),r.alias)),d=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":"no-","parse-numbers":!0,"parse-positional-numbers":!0,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},r.configuration),a=Object.assign(Object.create(null),r.default),c=r.configObjects||[],l=r.envPrefix,u=d["populate--"],w=u?"--":"_",E=Object.create(null),T=Object.create(null),I=r.__||us.format,N={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},F=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,J=new RegExp("^--"+d["negation-prefix"]+"(.+)");[].concat(r.array||[]).filter(Boolean).forEach(function(L){let M=typeof L=="object"?L.key:L,de=Object.keys(L).map(function(K){return{boolean:"bools",string:"strings",number:"numbers"}[K]}).filter(Boolean).pop();de&&(N[de][M]=!0),N.arrays[M]=!0,N.keys.push(M)}),[].concat(r.boolean||[]).filter(Boolean).forEach(function(L){N.bools[L]=!0,N.keys.push(L)}),[].concat(r.string||[]).filter(Boolean).forEach(function(L){N.strings[L]=!0,N.keys.push(L)}),[].concat(r.number||[]).filter(Boolean).forEach(function(L){N.numbers[L]=!0,N.keys.push(L)}),[].concat(r.count||[]).filter(Boolean).forEach(function(L){N.counts[L]=!0,N.keys.push(L)}),[].concat(r.normalize||[]).filter(Boolean).forEach(function(L){N.normalize[L]=!0,N.keys.push(L)}),typeof r.narg=="object"&&Object.entries(r.narg).forEach(([L,M])=>{typeof M=="number"&&(N.nargs[L]=M,N.keys.push(L))}),typeof r.coerce=="object"&&Object.entries(r.coerce).forEach(([L,M])=>{typeof M=="function"&&(N.coercions[L]=M,N.keys.push(L))}),typeof r.config<"u"&&(Array.isArray(r.config)||typeof r.config=="string"?[].concat(r.config).filter(Boolean).forEach(function(L){N.configs[L]=!0}):typeof r.config=="object"&&Object.entries(r.config).forEach(([L,M])=>{(typeof M=="boolean"||typeof M=="function")&&(N.configs[L]=M)})),xs(r.key,s,r.default,N.arrays),Object.keys(a).forEach(function(L){(N.aliases[L]||[]).forEach(function(M){a[M]=a[L]})});let G=null;nI();let ue=[],it=Object.assign(Object.create(null),{_:[]}),ln={};for(let L=0;L<i.length;L++){let M=i[L],de=M.replace(/^-{3,}/,"---"),K,B,xe,be,$e,tn;if(M!=="--"&&ja(M))kr(M);else if(de.match(/---+(=|$)/)){kr(M);continue}else if(M.match(/^--.+=/)||!d["short-option-groups"]&&M.match(/^-.+=/))be=M.match(/^--?([^=]+)=([\s\S]*)$/),be!==null&&Array.isArray(be)&&be.length>=3&&(et(be[1],N.arrays)?L=sr(L,be[1],i,be[2]):et(be[1],N.nargs)!==!1?L=zr(L,be[1],i,be[2]):Ee(be[1],be[2]));else if(M.match(J)&&d["boolean-negation"])be=M.match(J),be!==null&&Array.isArray(be)&&be.length>=2&&(B=be[1],Ee(B,et(B,N.arrays)?[!1]:!1));else if(M.match(/^--.+/)||!d["short-option-groups"]&&M.match(/^-[^-]+/))be=M.match(/^--?(.+)/),be!==null&&Array.isArray(be)&&be.length>=2&&(B=be[1],et(B,N.arrays)?L=sr(L,B,i):et(B,N.nargs)!==!1?L=zr(L,B,i):($e=i[L+1],$e!==void 0&&(!$e.match(/^-/)||$e.match(F))&&!et(B,N.bools)&&!et(B,N.counts)||/^(true|false)$/.test($e)?(Ee(B,$e),L++):Ee(B,Rn(B))));else if(M.match(/^-.\..+=/))be=M.match(/^-([^=]+)=([\s\S]*)$/),be!==null&&Array.isArray(be)&&be.length>=3&&Ee(be[1],be[2]);else if(M.match(/^-.\..+/)&&!M.match(F))$e=i[L+1],be=M.match(/^-(.\..+)/),be!==null&&Array.isArray(be)&&be.length>=2&&(B=be[1],$e!==void 0&&!$e.match(/^-/)&&!et(B,N.bools)&&!et(B,N.counts)?(Ee(B,$e),L++):Ee(B,Rn(B)));else if(M.match(/^-[^-]+/)&&!M.match(F)){xe=M.slice(1,-1).split(""),K=!1;for(let un=0;un<xe.length;un++){if($e=M.slice(un+2),xe[un+1]&&xe[un+1]==="="){tn=M.slice(un+3),B=xe[un],et(B,N.arrays)?L=sr(L,B,i,tn):et(B,N.nargs)!==!1?L=zr(L,B,i,tn):Ee(B,tn),K=!0;break}if($e==="-"){Ee(xe[un],$e);continue}if(/[A-Za-z]/.test(xe[un])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test($e)&&et($e,N.bools)===!1){Ee(xe[un],$e),K=!0;break}if(xe[un+1]&&xe[un+1].match(/\W/)){Ee(xe[un],$e),K=!0;break}else Ee(xe[un],Rn(xe[un]))}B=M.slice(-1)[0],!K&&B!=="-"&&(et(B,N.arrays)?L=sr(L,B,i):et(B,N.nargs)!==!1?L=zr(L,B,i):($e=i[L+1],$e!==void 0&&(!/^(-|--)[^-]/.test($e)||$e.match(F))&&!et(B,N.bools)&&!et(B,N.counts)||/^(true|false)$/.test($e)?(Ee(B,$e),L++):Ee(B,Rn(B))))}else if(M.match(/^-[0-9]$/)&&M.match(F)&&et(M.slice(1),N.bools))B=M.slice(1),Ee(B,Rn(B));else if(M==="--"){ue=i.slice(L+1);break}else if(d["halt-at-non-option"]){ue=i.slice(L);break}else kr(M)}It(it,!0),It(it,!1),Kt(it),Tt(),Ct(it,N.aliases,a,!0),St(it),d["set-placeholder-key"]&&Wt(it),Object.keys(N.counts).forEach(function(L){Ui(it,L.split("."))||Ee(L,0)}),u&&ue.length&&(it[w]=[]),ue.forEach(function(L){it[w].push(L)}),d["camel-case-expansion"]&&d["strip-dashed"]&&Object.keys(it).filter(L=>L!=="--"&&L.includes("-")).forEach(L=>{delete it[L]}),d["strip-aliased"]&&[].concat(...Object.keys(s).map(L=>s[L])).forEach(L=>{d["camel-case-expansion"]&&L.includes("-")&&delete it[L.split(".").map(M=>_f(M)).join(".")],delete it[L]});function kr(L){let M=Rt("_",L);(typeof M=="string"||typeof M=="number")&&it._.push(M)}function zr(L,M,de,K){let B,xe=et(M,N.nargs);if(xe=typeof xe!="number"||isNaN(xe)?1:xe,xe===0)return gr(K)||(G=Error(I("Argument unexpected for: %s",M))),Ee(M,Rn(M)),L;let be=gr(K)?0:1;if(d["nargs-eats-options"])de.length-(L+1)+be<xe&&(G=Error(I("Not enough arguments following: %s",M))),be=xe;else{for(B=L+1;B<de.length&&(!de[B].match(/^-[^0-9]/)||de[B].match(F)||ja(de[B]));B++)be++;be<xe&&(G=Error(I("Not enough arguments following: %s",M)))}let $e=Math.min(be,xe);for(!gr(K)&&$e>0&&(Ee(M,K),$e--),B=L+1;B<$e+L+1;B++)Ee(M,de[B]);return L+$e}function sr(L,M,de,K){let B=[],xe=K||de[L+1],be=et(M,N.nargs);if(et(M,N.bools)&&!/^(true|false)$/.test(xe))B.push(!0);else if(gr(xe)||gr(K)&&/^-/.test(xe)&&!F.test(xe)&&!ja(xe)){if(a[M]!==void 0){let $e=a[M];B=Array.isArray($e)?$e:[$e]}}else{gr(K)||B.push(ut(M,K));for(let $e=L+1;$e<de.length&&!(!d["greedy-arrays"]&&B.length>0||be&&typeof be=="number"&&B.length>=be||(xe=de[$e],/^-/.test(xe)&&!F.test(xe)&&!ja(xe)));$e++)L=$e,B.push(ut(M,xe))}return typeof be=="number"&&(be&&B.length<be||isNaN(be)&&B.length===0)&&(G=Error(I("Not enough arguments following: %s",M))),Ee(M,B),L}function Ee(L,M){if(/-/.test(L)&&d["camel-case-expansion"]){let B=L.split(".").map(function(xe){return _f(xe)}).join(".");mt(L,B)}let de=ut(L,M),K=L.split(".");Ft(it,K,de),N.aliases[L]&&N.aliases[L].forEach(function(B){let xe=B.split(".");Ft(it,xe,de)}),K.length>1&&d["dot-notation"]&&(N.aliases[K[0]]||[]).forEach(function(B){let xe=B.split("."),be=[].concat(K);be.shift(),xe=xe.concat(be),(N.aliases[L]||[]).includes(xe.join("."))||Ft(it,xe,de)}),et(L,N.normalize)&&!et(L,N.arrays)&&[L].concat(N.aliases[L]||[]).forEach(function(xe){Object.defineProperty(ln,xe,{enumerable:!0,get(){return M},set(be){M=typeof be=="string"?us.normalize(be):be}})})}function mt(L,M){N.aliases[L]&&N.aliases[L].length||(N.aliases[L]=[M],E[M]=!0),N.aliases[M]&&N.aliases[M].length||mt(M,L)}function ut(L,M){typeof M=="string"&&(M[0]==="'"||M[0]==='"')&&M[M.length-1]===M[0]&&(M=M.substring(1,M.length-1)),(et(L,N.bools)||et(L,N.counts))&&typeof M=="string"&&(M=M==="true");let de=Array.isArray(M)?M.map(function(K){return Rt(L,K)}):Rt(L,M);return et(L,N.counts)&&(gr(de)||typeof de=="boolean")&&(de=AM()),et(L,N.normalize)&&et(L,N.arrays)&&(Array.isArray(M)?de=M.map(K=>us.normalize(K)):de=us.normalize(M)),de}function Rt(L,M){return!d["parse-positional-numbers"]&&L==="_"||!et(L,N.strings)&&!et(L,N.bools)&&!Array.isArray(M)&&(Vne(M)&&d["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${M}`)))||!gr(M)&&et(L,N.numbers))&&(M=Number(M)),M}function Kt(L){let M=Object.create(null);Ct(M,N.aliases,a),Object.keys(N.configs).forEach(function(de){let K=L[de]||M[de];if(K)try{let B=null,xe=us.resolve(us.cwd(),K),be=N.configs[de];if(typeof be=="function"){try{B=be(xe)}catch($e){B=$e}if(B instanceof Error){G=B;return}}else B=us.require(xe);Lt(B)}catch(B){B.name==="PermissionDenied"?G=B:L[de]&&(G=Error(I("Invalid JSON config file: %s",K)))}})}function Lt(L,M){Object.keys(L).forEach(function(de){let K=L[de],B=M?M+"."+de:de;typeof K=="object"&&K!==null&&!Array.isArray(K)&&d["dot-notation"]?Lt(K,B):(!Ui(it,B.split("."))||et(B,N.arrays)&&d["combine-arrays"])&&Ee(B,K)})}function Tt(){typeof c<"u"&&c.forEach(function(L){Lt(L)})}function It(L,M){if(typeof l>"u")return;let de=typeof l=="string"?l:"",K=us.env();Object.keys(K).forEach(function(B){if(de===""||B.lastIndexOf(de,0)===0){let xe=B.split("__").map(function(be,$e){return $e===0&&(be=be.substring(de.length)),_f(be)});(M&&N.configs[xe.join(".")]||!M)&&!Ui(L,xe)&&Ee(xe.join("."),K[B])}})}function St(L){let M,de=new Set;Object.keys(L).forEach(function(K){if(!de.has(K)&&(M=et(K,N.coercions),typeof M=="function"))try{let B=Rt(K,M(L[K]));[].concat(N.aliases[K]||[],K).forEach(xe=>{de.add(xe),L[xe]=B})}catch(B){G=B}})}function Wt(L){return N.keys.forEach(M=>{~M.indexOf(".")||typeof L[M]>"u"&&(L[M]=void 0)}),L}function Ct(L,M,de,K=!1){Object.keys(de).forEach(function(B){Ui(L,B.split("."))||(Ft(L,B.split("."),de[B]),K&&(T[B]=!0),(M[B]||[]).forEach(function(xe){Ui(L,xe.split("."))||Ft(L,xe.split("."),de[B])}))})}function Ui(L,M){let de=L;d["dot-notation"]||(M=[M.join(".")]),M.slice(0,-1).forEach(function(B){de=de[B]||{}});let K=M[M.length-1];return typeof de!="object"?!1:K in de}function Ft(L,M,de){let K=L;d["dot-notation"]||(M=[M.join(".")]),M.slice(0,-1).forEach(function(tn){tn=jne(tn),typeof K=="object"&&K[tn]===void 0&&(K[tn]={}),typeof K[tn]!="object"||Array.isArray(K[tn])?(Array.isArray(K[tn])?K[tn].push({}):K[tn]=[K[tn],{}],K=K[tn][K[tn].length-1]):K=K[tn]});let B=jne(M[M.length-1]),xe=et(M.join("."),N.arrays),be=Array.isArray(de),$e=d["duplicate-arguments-array"];!$e&&et(B,N.nargs)&&($e=!0,(!gr(K[B])&&N.nargs[B]===1||Array.isArray(K[B])&&K[B].length===N.nargs[B])&&(K[B]=void 0)),de===AM()?K[B]=AM(K[B]):Array.isArray(K[B])?$e&&xe&&be?K[B]=d["flatten-duplicate-arrays"]?K[B].concat(de):(Array.isArray(K[B][0])?K[B]:[K[B]]).concat([de]):!$e&&Boolean(xe)===Boolean(be)?K[B]=de:K[B]=K[B].concat([de]):K[B]===void 0&&xe?K[B]=be?de:[de]:$e&&!(K[B]===void 0||et(B,N.counts)||et(B,N.bools))?K[B]=[K[B],de]:K[B]=de}function xs(...L){L.forEach(function(M){Object.keys(M||{}).forEach(function(de){N.aliases[de]||(N.aliases[de]=[].concat(s[de]||[]),N.aliases[de].concat(de).forEach(function(K){if(/-/.test(K)&&d["camel-case-expansion"]){let B=_f(K);B!==de&&N.aliases[de].indexOf(B)===-1&&(N.aliases[de].push(B),E[B]=!0)}}),N.aliases[de].concat(de).forEach(function(K){if(K.length>1&&/[A-Z]/.test(K)&&d["camel-case-expansion"]){let B=Gne(K,"-");B!==de&&N.aliases[de].indexOf(B)===-1&&(N.aliases[de].push(B),E[B]=!0)}}),N.aliases[de].forEach(function(K){N.aliases[K]=[de].concat(N.aliases[de].filter(function(B){return K!==B}))}))})})}function et(L,M){let de=[].concat(N.aliases[L]||[],L),K=Object.keys(M),B=de.find(xe=>K.includes(xe));return B?M[B]:!1}function Yt(L){let M=Object.keys(N);return[].concat(M.map(K=>N[K])).some(function(K){return Array.isArray(K)?K.includes(L):K[L]})}function ZT(L,...M){return[].concat(...M).some(function(K){let B=L.match(K);return B&&Yt(B[1])})}function eI(L){if(L.match(F)||!L.match(/^-[^-]+/))return!1;let M=!0,de,K=L.slice(1).split("");for(let B=0;B<K.length;B++){if(de=L.slice(B+2),!Yt(K[B])){M=!1;break}if(K[B+1]&&K[B+1]==="="||de==="-"||/[A-Za-z]/.test(K[B])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(de)||K[B+1]&&K[B+1].match(/\W/))break}return M}function ja(L){return d["unknown-options-as-args"]&&tI(L)}function tI(L){return L=L.replace(/^-{3,}/,"--"),L.match(F)||eI(L)?!1:!ZT(L,/^-+([^=]+?)=[\s\S]*$/,J,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function Rn(L){return!et(L,N.bools)&&!et(L,N.counts)&&`${L}`in a?a[L]:xp(bs(L))}function xp(L){return{[Gr.BOOLEAN]:!0,[Gr.STRING]:"",[Gr.NUMBER]:void 0,[Gr.ARRAY]:[]}[L]}function bs(L){let M=Gr.BOOLEAN;return et(L,N.strings)?M=Gr.STRING:et(L,N.numbers)?M=Gr.NUMBER:et(L,N.bools)?M=Gr.BOOLEAN:et(L,N.arrays)&&(M=Gr.ARRAY),M}function gr(L){return L===void 0}function nI(){Object.keys(N.counts).find(L=>et(L,N.arrays)?(G=Error(I("Invalid configuration: %s, opts.count excludes opts.array.",L)),!0):et(L,N.nargs)?(G=Error(I("Invalid configuration: %s, opts.count excludes opts.narg.",L)),!0):!1)}return{aliases:Object.assign({},N.aliases),argv:Object.assign(ln,it),configuration:d,defaulted:Object.assign({},T),error:G,newAliases:Object.assign({},E)}}};function oot(e){let t=[],n=Object.create(null),r=!0;for(Object.keys(e).forEach(function(i){t.push([].concat(e[i],i))});r;){r=!1;for(let i=0;i<t.length;i++)for(let s=i+1;s<t.length;s++)if(t[i].filter(function(a){return t[s].indexOf(a)!==-1}).length){t[i]=t[i].concat(t[s]),t.splice(s,1),r=!0;break}}return t.forEach(function(i){i=i.filter(function(d,a,c){return c.indexOf(d)===a});let s=i.pop();s!==void 0&&typeof s=="string"&&(n[s]=i)}),n}function AM(e){return e!==void 0?e+1:1}function jne(e){return e==="__proto__"?"___proto___":e}var Une=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):10;if(process&&process.version&&Number(process.version.match(/v([^.]+)/)[1])<Une)throw Error(`yargs parser supports a minimum Node.js version of ${Une}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var aot=process?process.env:{},$ne=new xM({cwd:process.cwd,env:()=>aot,format:rot.format,normalize:Fne.normalize,resolve:Fne.resolve,require:e=>{if(typeof require<"u")return require(e);if(e.match(/\.json$/))return iot.readFileSync(e,"utf8");throw Error("only .json config files are supported in ESM")}}),vf=function(t,n){return $ne.parse(t.slice(),n).argv};vf.detailed=function(e,t){return $ne.parse(e.slice(),t)};vf.camelCase=_f;vf.decamelize=Gne;vf.looksLikeNumber=Vne;Hne.exports=vf});var Lre=m((Cf,mc)=>{var dot=200,sre="__lodash_hash_undefined__",ore=9007199254740991,zM="[object Arguments]",cot="[object Array]",are="[object Boolean]",dre="[object Date]",lot="[object Error]",qM="[object Function]",cre="[object GeneratorFunction]",P0="[object Map]",lre="[object Number]",LM="[object Object]",Xne="[object Promise]",ure="[object RegExp]",k0="[object Set]",mre="[object String]",fre="[object Symbol]",RM="[object WeakMap]",pre="[object ArrayBuffer]",z0="[object DataView]",gre="[object Float32Array]",hre="[object Float64Array]",wre="[object Int8Array]",yre="[object Int16Array]",Sre="[object Int32Array]",_re="[object Uint8Array]",vre="[object Uint8ClampedArray]",Cre="[object Uint16Array]",Ere="[object Uint32Array]",uot=/[\\^$.*+?()[\]{}|]/g,mot=/\w*$/,fot=/^\[object .+?Constructor\]$/,pot=/^(?:0|[1-9]\d*)$/,Mt={};Mt[zM]=Mt[cot]=Mt[pre]=Mt[z0]=Mt[are]=Mt[dre]=Mt[gre]=Mt[hre]=Mt[wre]=Mt[yre]=Mt[Sre]=Mt[P0]=Mt[lre]=Mt[LM]=Mt[ure]=Mt[k0]=Mt[mre]=Mt[fre]=Mt[_re]=Mt[vre]=Mt[Cre]=Mt[Ere]=!0;Mt[lot]=Mt[qM]=Mt[RM]=!1;var got=typeof global=="object"&&global&&global.Object===Object&&global,hot=typeof self=="object"&&self&&self.Object===Object&&self,ms=got||hot||Function("return this")(),Are=typeof Cf=="object"&&Cf&&!Cf.nodeType&&Cf,Kne=Are&&typeof mc=="object"&&mc&&!mc.nodeType&&mc,wot=Kne&&Kne.exports===Are;function yot(e,t){return e.set(t[0],t[1]),e}function Sot(e,t){return e.add(t),e}function _ot(e,t){for(var n=-1,r=e?e.length:0;++n<r&&t(e[n],n,e)!==!1;);return e}function vot(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function xre(e,t,n,r){var i=-1,s=e?e.length:0;for(r&&s&&(n=e[++i]);++i<s;)n=t(n,e[i],i,e);return n}function Cot(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Eot(e,t){return e==null?void 0:e[t]}function bre(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function Wne(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}function DM(e,t){return function(n){return e(t(n))}}function Qne(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Aot=Array.prototype,xot=Function.prototype,q0=Object.prototype,bM=ms["__core-js_shared__"],Yne=function(){var e=/[^.]+$/.exec(bM&&bM.keys&&bM.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Rre=xot.toString,po=q0.hasOwnProperty,L0=q0.toString,bot=RegExp("^"+Rre.call(po).replace(uot,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Zne=wot?ms.Buffer:void 0,ere=ms.Symbol,tre=ms.Uint8Array,Rot=DM(Object.getPrototypeOf,Object),Tot=Object.create,Iot=q0.propertyIsEnumerable,Not=Aot.splice,nre=Object.getOwnPropertySymbols,Pot=Zne?Zne.isBuffer:void 0,kot=DM(Object.keys,Object),TM=gc(ms,"DataView"),Ef=gc(ms,"Map"),IM=gc(ms,"Promise"),NM=gc(ms,"Set"),PM=gc(ms,"WeakMap"),Af=gc(Object,"create"),zot=ka(TM),qot=ka(Ef),Lot=ka(IM),Dot=ka(NM),Mot=ka(PM),rre=ere?ere.prototype:void 0,ire=rre?rre.valueOf:void 0;function Pa(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Bot(){this.__data__=Af?Af(null):{}}function Oot(e){return this.has(e)&&delete this.__data__[e]}function Fot(e){var t=this.__data__;if(Af){var n=t[e];return n===sre?void 0:n}return po.call(t,e)?t[e]:void 0}function jot(e){var t=this.__data__;return Af?t[e]!==void 0:po.call(t,e)}function Uot(e,t){var n=this.__data__;return n[e]=Af&&t===void 0?sre:t,this}Pa.prototype.clear=Bot;Pa.prototype.delete=Oot;Pa.prototype.get=Fot;Pa.prototype.has=jot;Pa.prototype.set=Uot;function fs(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Got(){this.__data__=[]}function Vot(e){var t=this.__data__,n=D0(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Not.call(t,n,1),!0}function $ot(e){var t=this.__data__,n=D0(t,e);return n<0?void 0:t[n][1]}function Hot(e){return D0(this.__data__,e)>-1}function Jot(e,t){var n=this.__data__,r=D0(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}fs.prototype.clear=Got;fs.prototype.delete=Vot;fs.prototype.get=$ot;fs.prototype.has=Hot;fs.prototype.set=Jot;function fc(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Xot(){this.__data__={hash:new Pa,map:new(Ef||fs),string:new Pa}}function Kot(e){return M0(this,e).delete(e)}function Wot(e){return M0(this,e).get(e)}function Qot(e){return M0(this,e).has(e)}function Yot(e,t){return M0(this,e).set(e,t),this}fc.prototype.clear=Xot;fc.prototype.delete=Kot;fc.prototype.get=Wot;fc.prototype.has=Qot;fc.prototype.set=Yot;function pc(e){this.__data__=new fs(e)}function Zot(){this.__data__=new fs}function eat(e){return this.__data__.delete(e)}function tat(e){return this.__data__.get(e)}function nat(e){return this.__data__.has(e)}function rat(e,t){var n=this.__data__;if(n instanceof fs){var r=n.__data__;if(!Ef||r.length<dot-1)return r.push([e,t]),this;n=this.__data__=new fc(r)}return n.set(e,t),this}pc.prototype.clear=Zot;pc.prototype.delete=eat;pc.prototype.get=tat;pc.prototype.has=nat;pc.prototype.set=rat;function iat(e,t){var n=BM(e)||Tat(e)?Cot(e.length,String):[],r=n.length,i=!!r;for(var s in e)(t||po.call(e,s))&&!(i&&(s=="length"||Aat(s,r)))&&n.push(s);return n}function Tre(e,t,n){var r=e[t];(!(po.call(e,t)&&kre(r,n))||n===void 0&&!(t in e))&&(e[t]=n)}function D0(e,t){for(var n=e.length;n--;)if(kre(e[n][0],t))return n;return-1}function sat(e,t){return e&&Ire(t,OM(t),e)}function kM(e,t,n,r,i,s,d){var a;if(r&&(a=s?r(e,i,s,d):r(e)),a!==void 0)return a;if(!B0(e))return e;var c=BM(e);if(c){if(a=vat(e),!t)return yat(e,a)}else{var l=Na(e),u=l==qM||l==cre;if(Nat(e))return uat(e,t);if(l==LM||l==zM||u&&!s){if(bre(e))return s?e:{};if(a=Cat(u?{}:e),!t)return Sat(e,sat(a,e))}else{if(!Mt[l])return s?e:{};a=Eat(e,l,kM,t)}}d||(d=new pc);var w=d.get(e);if(w)return w;if(d.set(e,a),!c)var E=n?_at(e):OM(e);return _ot(E||e,function(T,I){E&&(I=T,T=e[I]),Tre(a,I,kM(T,t,n,r,I,e,d))}),a}function oat(e){return B0(e)?Tot(e):{}}function aat(e,t,n){var r=t(e);return BM(e)?r:vot(r,n(e))}function dat(e){return L0.call(e)}function cat(e){if(!B0(e)||bat(e))return!1;var t=qre(e)||bre(e)?bot:fot;return t.test(ka(e))}function lat(e){if(!Pre(e))return kot(e);var t=[];for(var n in Object(e))po.call(e,n)&&n!="constructor"&&t.push(n);return t}function uat(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}function MM(e){var t=new e.constructor(e.byteLength);return new tre(t).set(new tre(e)),t}function mat(e,t){var n=t?MM(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function fat(e,t,n){var r=t?n(Wne(e),!0):Wne(e);return xre(r,yot,new e.constructor)}function pat(e){var t=new e.constructor(e.source,mot.exec(e));return t.lastIndex=e.lastIndex,t}function gat(e,t,n){var r=t?n(Qne(e),!0):Qne(e);return xre(r,Sot,new e.constructor)}function hat(e){return ire?Object(ire.call(e)):{}}function wat(e,t){var n=t?MM(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function yat(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function Ire(e,t,n,r){n||(n={});for(var i=-1,s=t.length;++i<s;){var d=t[i],a=r?r(n[d],e[d],d,n,e):void 0;Tre(n,d,a===void 0?e[d]:a)}return n}function Sat(e,t){return Ire(e,Nre(e),t)}function _at(e){return aat(e,OM,Nre)}function M0(e,t){var n=e.__data__;return xat(t)?n[typeof t=="string"?"string":"hash"]:n.map}function gc(e,t){var n=Eot(e,t);return cat(n)?n:void 0}var Nre=nre?DM(nre,Object):zat,Na=dat;(TM&&Na(new TM(new ArrayBuffer(1)))!=z0||Ef&&Na(new Ef)!=P0||IM&&Na(IM.resolve())!=Xne||NM&&Na(new NM)!=k0||PM&&Na(new PM)!=RM)&&(Na=function(e){var t=L0.call(e),n=t==LM?e.constructor:void 0,r=n?ka(n):void 0;if(r)switch(r){case zot:return z0;case qot:return P0;case Lot:return Xne;case Dot:return k0;case Mot:return RM}return t});function vat(e){var t=e.length,n=e.constructor(t);return t&&typeof e[0]=="string"&&po.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function Cat(e){return typeof e.constructor=="function"&&!Pre(e)?oat(Rot(e)):{}}function Eat(e,t,n,r){var i=e.constructor;switch(t){case pre:return MM(e);case are:case dre:return new i(+e);case z0:return mat(e,r);case gre:case hre:case wre:case yre:case Sre:case _re:case vre:case Cre:case Ere:return wat(e,r);case P0:return fat(e,r,n);case lre:case mre:return new i(e);case ure:return pat(e);case k0:return gat(e,r,n);case fre:return hat(e)}}function Aat(e,t){return t=t??ore,!!t&&(typeof e=="number"||pot.test(e))&&e>-1&&e%1==0&&e<t}function xat(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function bat(e){return!!Yne&&Yne in e}function Pre(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||q0;return e===n}function ka(e){if(e!=null){try{return Rre.call(e)}catch{}try{return e+""}catch{}}return""}function Rat(e){return kM(e,!0,!0)}function kre(e,t){return e===t||e!==e&&t!==t}function Tat(e){return Iat(e)&&po.call(e,"callee")&&(!Iot.call(e,"callee")||L0.call(e)==zM)}var BM=Array.isArray;function zre(e){return e!=null&&Pat(e.length)&&!qre(e)}function Iat(e){return kat(e)&&zre(e)}var Nat=Pot||qat;function qre(e){var t=B0(e)?L0.call(e):"";return t==qM||t==cre}function Pat(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ore}function B0(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function kat(e){return!!e&&typeof e=="object"}function OM(e){return zre(e)?iat(e):lat(e)}function zat(){return[]}function qat(){return!1}mc.exports=Rat});var $re=m((dQt,Vre)=>{"use strict";var Lat=require("fs"),Dat=Jne(),hc=Lre(),Mat=["__proto__.","this.constructor.prototype."],Bat="strict",Dre="warn";function go(e,t){if(!e)throw new Error(t)}function Mre(e){return Number.isInteger(e)&&e>=0&&e<=65535}function UM(e){return String(e).includes("\\\\.\\pipe\\")}var xf={"*":function(){},int:function(e){go(Number.isInteger(e),"must be an integer")},nat:function(e){go(Number.isInteger(e)&&e>=0,"must be a positive integer")},port:function(e){go(Mre(e),"ports must be within range 0 - 65535")},windows_named_pipe:function(e){go(UM(e),"must be a valid pipe")},port_or_windows_named_pipe:function(e){UM(e)||go(Mre(e),"must be a windows named pipe or a number within range 0 - 65535")}};xf.integer=xf.int;var GM=new Map,VM={"*":JSON.parse};function Bre(e,t){let n=Object.keys(e),r,i=[];for(;n.length;){r=n.shift();let d=wc(e,r);if(typeof d=="object"&&!Array.isArray(d)&&d!=null){if(t)if("_cvtProperties"in d)d=d._cvtProperties,r=r+"._cvtProperties";else{i.push([r,d]);continue}let a=Object.keys(d);if(a.length>0){a.forEach(function(c){n.push(r+"."+c)});continue}}i.push([r,d])}let s={};return i.forEach(function(d){let a=d[0];t&&(a=a.replace(/\._cvtProperties/g,""));let c=d[1];s[a]=c}),s}function Oat(e,t,n){let r={undeclared:[],invalid_type:[],missing:[]},i=Bre(e),s=Bre(t._cvtProperties,!0);return Object.keys(s).forEach(function(d){let a=s[d],c=i[d];if(!(d in i))try{if(typeof a.default=="object"&&!Array.isArray(a.default))c=wc(e,d);else throw new Error("missing")}catch{let u=new Error("configuration param '"+d+"' missing from config, did you override its parent?");r.missing.push(u);return}if(delete i[d],(a.format==="object"||typeof a.default=="object")&&Object.keys(i).filter(function(l){return l.lastIndexOf(d+".",0)===0}).forEach(function(l){delete i[l]}),!(typeof a.default>"u"&&c===a.default))try{a._format(c)}catch(l){r.invalid_type.push(l)}}),n&&Object.keys(i).forEach(function(d){let a=new Error("configuration param '"+d+"' not declared in the schema");r.undeclared.push(a)}),r}function Fat(e,t){go(e.indexOf(t)!==-1,"must be one of the possible values: "+JSON.stringify(e))}var HM={Object,Array,String,Number,Boolean,RegExp},jre=Object.keys(HM),jat=jre.map(function(e){return HM[e]});function Ure(e,t,n,r,i,s,d){if(e==="_cvtProperties")throw new Error("'"+r+"': '_cvtProperties' is reserved word of convict.");if(typeof t=="object"&&t!==null&&!Array.isArray(t)&&Object.keys(t).length>0&&!("default"in t)){n[e]={_cvtProperties:{}},Object.keys(t).forEach(function(u){Ure(u,t[u],n[e]._cvtProperties,r+"."+u,i,s,d)});return}else(typeof t!="object"||Array.isArray(t)||t===null||Object.keys(t).length==0)&&(t={default:t});let a=hc(t);if(n[e]=a,a.env&&(i[a.env]||(i[a.env]=[]),i[a.env].push(r)),a.arg){if(s[a.arg])throw new Error("'"+r+"' reuses a command-line argument: "+a.arg);s[a.arg]=r}a.sensitive===!0&&d.add(r);let c=a.format,l;if(jat.indexOf(c)>=0||jre.indexOf(c)>=0){let u=typeof c=="string"?HM[c]:c;l=function(w){go(Object.prototype.toString.call(w)==Object.prototype.toString.call(new u),"must be of type "+u.name)},a.format=u.name.toLowerCase()}else if(typeof c=="string"){if(!xf[c])throw new Error("'"+r+"' uses an unknown format type: "+c);l=xf[c]}else if(Array.isArray(c))l=Fat.bind(null,c);else if(typeof c=="function")l=c;else if(c&&typeof c!="function")throw new Error("'"+r+"': `format` must be a function or a known format type.");if(!l&&!c){let u=Object.prototype.toString.call(a.default);l=function(w){go(Object.prototype.toString.call(w)==u," should be of type "+u.replace(/\[.* |]/g,""))}}a._format=function(u){if(!(this.nullable&&u===null))try{l(u,this)}catch(w){throw w.fullName=r,w.value=u,w}}}function FM(e){let t=e.getEnv();Object.keys(e._env).forEach(function(n){t[n]!==void 0&&e._env[n].forEach(function(i){e.set(i,t[n])})})}function jM(e){let t=Dat(e.getArgs(),{configuration:{"dot-notation":!1}});Object.keys(e._argv).forEach(function(n){let r=e._argv[n];t[n]!==void 0&&e.set(r,String(t[n]))})}function Gre(e,t,n){Object.keys(e._cvtProperties).forEach(function(r){let i=e._cvtProperties[r];if(i._cvtProperties){let s=t[r]||{};Gre(i,s,n),t[r]=s}else t[r]=JM(r,hc(i.default),e,n)})}function Ore(e){return typeof e=="object"&&e!==null}function $M(e,t,n){Object.keys(e).forEach(function(r){Array.isArray(e[r])||!Ore(e[r])||!n||n.format==="object"?t[r]=JM(r,e[r],n):(Ore(t[r])||(t[r]={}),$M(e[r],t[r],n._cvtProperties[r]))})}function Uat(e,t){let n=t.split("."),r=e;for(;n.length>0;){let i=n.shift();if(r&&r._cvtProperties&&r._cvtProperties[i])r=r._cvtProperties[i];else{r=null;break}}return r}function Gat(e,t){let n=Uat(e,t);return n==null?null:typeof n.format=="string"?n.format:n.default!=null?typeof n.default:null}function JM(e,t,n,r){let i=Gat(n,e);if(typeof t=="string"){if(GM.has(i))return GM.get(i)(t,r,e);switch(i){case"port":case"nat":case"integer":case"int":t=parseInt(t,10);break;case"port_or_windows_named_pipe":t=UM(t)?t:parseInt(t,10);break;case"number":t=parseFloat(t);break;case"boolean":t=String(t).toLowerCase()!=="false";break;case"array":t=t.split(",");break;case"object":t=JSON.parse(t);break;case"regexp":t=new RegExp(t);break;default:}}return t}function Fre(e){let t=e.split("."),n=t.length>1?t.pop():"";return(VM[n]||VM["*"])(Lat.readFileSync(e,"utf-8"))}function wc(e,t,n){if(t){let r=t.split(".");for(;r.length;){let i=r.shift();if(n&&e[i]==null)e[i]={},e=e[i];else if(i in e)e=e[i];else throw new Error("cannot find configuration param '"+t+"'")}}return e}var bf=function(t,n){let r={getArgs:function(){return n&&n.args||process.argv.slice(2)},getEnv:function(){return n&&n.env||process.env},getProperties:function(){return hc(this._instance)},toString:function(){let i=hc(this._instance);return this._sensitive.forEach(function(s){let d=s.split("."),a=d.pop(),c=d.join("."),l=wc(i,c);l[a]="[Sensitive]"}),JSON.stringify(i,null,2)},getSchema:function(){return JSON.parse(JSON.stringify(this._schema))},getSchemaString:function(){return JSON.stringify(this._schema,null,2)},get:function(i){let s=wc(this._instance,i);return hc(s)},default:function(i){i=i.split(".").join("._cvtProperties.")+".default";let s=wc(this._schema._cvtProperties,i);return hc(s)},reset:function(i){this.set(i,this.default(i))},has:function(i){try{return typeof this.get(i)<"u"}catch{return!1}},set:function(i,s){for(let u of Mat)if(i.startsWith(u)||i.includes(`.${u}`))return this;s=JM(i,s,this._schema,this);let d=i.split("."),a=d.pop(),c=d.join("."),l=wc(this._instance,c,!0);return l[a]=s,this},load:function(i){return $M(i,this._instance,this._schema),FM(r),jM(r),this},loadFile:function(i){let s=this;return Array.isArray(i)||(i=[i]),i.forEach(function(d){let a=Fre(d);a&&$M(a,s._instance,s._schema)}),FM(r),jM(r),this},validate:function(i){if(i=i||{},i.allowed=i.allowed||Dre,i.output&&typeof i.output!="function")throw new Error("options.output is optional and must be a function.");let s=i.output||global.console.log,d=Oat(this._instance,this._schema,i.allowed);if(d.invalid_type.length+d.undeclared.length+d.missing.length){let a=this._sensitive,c=function(I){let N="";for(let F=0;F<I.length;F++){N.length&&(N+=`
|
|
31
31
|
`);let J=I[F];J.fullName&&(N+=J.fullName+": "),J.message&&(N+=J.message),J.value&&!a.has(J.fullName)&&(N+=": value was "+JSON.stringify(J.value))}return N},l=c(d.invalid_type),u=c(d.undeclared),w=c(d.missing),E=[l,w];if(i.allowed===Dre&&u.length){let I="Warning:";if(process.stdout.isTTY){let N="\x1B[33;1m",F="\x1B[0m";I=N+I+F}s(I+" "+u)}else i.allowed===Bat&&E.push(u);let T=E.filter(function(I){return I.length}).join(`
|
|
32
32
|
`);if(T.length)throw new Error(T)}return this}};return typeof t=="string"?r._def=Fre(t):r._def=t,r._schema={_cvtProperties:{}},r._env={},r._argv={},r._sensitive=new Set,Object.keys(r._def).forEach(function(i){Ure(i,r._def[i],r._schema._cvtProperties,i,r._env,r._argv,r._sensitive)}),r._instance={},Gre(r._schema,r._instance,r),FM(r),jM(r),r};bf.addFormat=function(e,t,n){if(typeof e=="object"&&(t=e.validate,n=e.coerce,e=e.name),typeof t!="function")throw new Error("Validation function for "+e+" must be a function.");if(n&&typeof n!="function")throw new Error("Coerce function for "+e+" must be a function.");xf[e]=t,n&&GM.set(e,n)};bf.addFormats=function(e){Object.keys(e).forEach(function(t){bf.addFormat(t,e[t].validate,e[t].coerce)})};bf.addParser=function(e){Array.isArray(e)||(e=[e]),e.forEach(function(t){if(!t)throw new Error("Invalid parser");if(!t.extension)throw new Error("Missing parser.extension");if(!t.parse)throw new Error("Missing parser.parse function");if(typeof t.parse!="function")throw new Error("Invalid parser.parse function");(Array.isArray(t.extension)?t.extension:[t.extension]).forEach(function(r){if(typeof r!="string")throw new Error("Invalid parser.extension");VM[r]=t.parse})})};Vre.exports=bf});var Hre=m(yc=>{"use strict";var O0=yc&&yc.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(yc,"__esModule",{value:!0});yc.TSConvict=void 0;var qi=O0(EM()),XM=O0($re()),Vat=O0(require("fs")),$at=O0(require("path")),KM=class{constructor(t){if(this.opts={},!qi.default.isConfigClass)throw new Error("A class must be decorated with Config or at least one Property");let n=qi.default.getConvictMetaForClass(t);n!==null&&(typeof n.parser<"u"&&XM.default.addParser(n.parser),typeof n.formats<"u"&&XM.default.addFormats(n.formats),this.opts=n),this.baseModel=new t,this.schema=this.getSchemaFor(this.baseModel),this.client=XM.default(this.schema)}load(t=null){let n=null;if(typeof this.opts.file<"u"&&Vat.default.existsSync($at.default.resolve(this.opts.file))&&(n=this.opts.file),typeof t=="string"||Array.isArray(t)){let s;Array.isArray(t)?s=t:s=[t],n!==null&&s.unshift(n),this.client.loadFile(s)}else if(t===null)n!==null?this.client.loadFile(n):this.client.load({});else if(typeof t=="object")n!==null&&this.client.loadFile(n),this.client.load(t);else throw new Error(`Could not load the config given: ${t}`);let r=this.opts.validationMethod===void 0?"strict":this.opts.validationMethod;this.client.validate({allowed:r});let i=this.client.getProperties();return this.applyDataToModel(this.baseModel,i)}getSchemaFor(t){let n={};for(let r of qi.default.getClassProperties(t)){let i=qi.default.getConvictMetaForProperty(t,r);if(qi.default.isConstructor(i)&&qi.default.isConfigClass(i))try{t[r]=new i,n[r]=this.getSchemaFor(t[r])}catch(s){throw console.error(s),new Error("Could not make a new class of "+i)}else n[r]=i}return n}applyDataToModel(t,n){for(let r of qi.default.getClassProperties(t)){let i=qi.default.getConvictMetaForProperty(t,r);qi.default.isConstructor(i)&&qi.default.isConfigClass(i)?this.applyDataToModel(t[r],n[r]||{}):r in n&&(t[r]=n[r])}return t}};yc.TSConvict=KM});var Sc=m(ps=>{"use strict";var Hat=ps&&ps.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),WM=ps&&ps.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Hat(t,e,n)};Object.defineProperty(ps,"__esModule",{value:!0});WM(Bne(),ps);WM(One(),ps);WM(Hre(),ps)});var er=m(QM=>{"use strict";QM.fromCallback=function(e){return Object.defineProperty(function(...t){if(typeof t[t.length-1]=="function")e.apply(this,t);else return new Promise((n,r)=>{e.call(this,...t,(i,s)=>i!=null?r(i):n(s))})},"name",{value:e.name})};QM.fromPromise=function(e){return Object.defineProperty(function(...t){let n=t[t.length-1];if(typeof n!="function")return e.apply(this,t);e.apply(this,t.slice(0,-1)).then(r=>n(null,r),n)},"name",{value:e.name})}});var Xre=m((mQt,Jre)=>{var ho=require("constants"),Jat=process.cwd,F0=null,Xat=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return F0||(F0=Jat.call(process)),F0};try{process.cwd()}catch{}typeof process.chdir=="function"&&(YM=process.chdir,process.chdir=function(e){F0=null,YM.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,YM));var YM;Jre.exports=Kat;function Kat(e){ho.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||n(e),e.chown=s(e.chown),e.fchown=s(e.fchown),e.lchown=s(e.lchown),e.chmod=r(e.chmod),e.fchmod=r(e.fchmod),e.lchmod=r(e.lchmod),e.chownSync=d(e.chownSync),e.fchownSync=d(e.fchownSync),e.lchownSync=d(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=a(e.stat),e.fstat=a(e.fstat),e.lstat=a(e.lstat),e.statSync=c(e.statSync),e.fstatSync=c(e.fstatSync),e.lstatSync=c(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(u,w,E){E&&process.nextTick(E)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(u,w,E,T){T&&process.nextTick(T)},e.lchownSync=function(){}),Xat==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(u){function w(E,T,I){var N=Date.now(),F=0;u(E,T,function J(G){if(G&&(G.code==="EACCES"||G.code==="EPERM")&&Date.now()-N<6e4){setTimeout(function(){e.stat(T,function(ue,it){ue&&ue.code==="ENOENT"?u(E,T,J):I(G)})},F),F<100&&(F+=10);return}I&&I(G)})}return Object.setPrototypeOf&&Object.setPrototypeOf(w,u),w}(e.rename)),e.read=typeof e.read!="function"?e.read:function(u){function w(E,T,I,N,F,J){var G;if(J&&typeof J=="function"){var ue=0;G=function(it,ln,kr){if(it&&it.code==="EAGAIN"&&ue<10)return ue++,u.call(e,E,T,I,N,F,G);J.apply(this,arguments)}}return u.call(e,E,T,I,N,F,G)}return Object.setPrototypeOf&&Object.setPrototypeOf(w,u),w}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(u){return function(w,E,T,I,N){for(var F=0;;)try{return u.call(e,w,E,T,I,N)}catch(J){if(J.code==="EAGAIN"&&F<10){F++;continue}throw J}}}(e.readSync);function t(u){u.lchmod=function(w,E,T){u.open(w,ho.O_WRONLY|ho.O_SYMLINK,E,function(I,N){if(I){T&&T(I);return}u.fchmod(N,E,function(F){u.close(N,function(J){T&&T(F||J)})})})},u.lchmodSync=function(w,E){var T=u.openSync(w,ho.O_WRONLY|ho.O_SYMLINK,E),I=!0,N;try{N=u.fchmodSync(T,E),I=!1}finally{if(I)try{u.closeSync(T)}catch{}else u.closeSync(T)}return N}}function n(u){ho.hasOwnProperty("O_SYMLINK")&&u.futimes?(u.lutimes=function(w,E,T,I){u.open(w,ho.O_SYMLINK,function(N,F){if(N){I&&I(N);return}u.futimes(F,E,T,function(J){u.close(F,function(G){I&&I(J||G)})})})},u.lutimesSync=function(w,E,T){var I=u.openSync(w,ho.O_SYMLINK),N,F=!0;try{N=u.futimesSync(I,E,T),F=!1}finally{if(F)try{u.closeSync(I)}catch{}else u.closeSync(I)}return N}):u.futimes&&(u.lutimes=function(w,E,T,I){I&&process.nextTick(I)},u.lutimesSync=function(){})}function r(u){return u&&function(w,E,T){return u.call(e,w,E,function(I){l(I)&&(I=null),T&&T.apply(this,arguments)})}}function i(u){return u&&function(w,E){try{return u.call(e,w,E)}catch(T){if(!l(T))throw T}}}function s(u){return u&&function(w,E,T,I){return u.call(e,w,E,T,function(N){l(N)&&(N=null),I&&I.apply(this,arguments)})}}function d(u){return u&&function(w,E,T){try{return u.call(e,w,E,T)}catch(I){if(!l(I))throw I}}}function a(u){return u&&function(w,E,T){typeof E=="function"&&(T=E,E=null);function I(N,F){F&&(F.uid<0&&(F.uid+=4294967296),F.gid<0&&(F.gid+=4294967296)),T&&T.apply(this,arguments)}return E?u.call(e,w,E,I):u.call(e,w,I)}}function c(u){return u&&function(w,E){var T=E?u.call(e,w,E):u.call(e,w);return T&&(T.uid<0&&(T.uid+=4294967296),T.gid<0&&(T.gid+=4294967296)),T}}function l(u){if(!u||u.code==="ENOSYS")return!0;var w=!process.getuid||process.getuid()!==0;return!!(w&&(u.code==="EINVAL"||u.code==="EPERM"))}}});var Qre=m((fQt,Wre)=>{var Kre=require("stream").Stream;Wre.exports=Wat;function Wat(e){return{ReadStream:t,WriteStream:n};function t(r,i){if(!(this instanceof t))return new t(r,i);Kre.call(this);var s=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var d=Object.keys(i),a=0,c=d.length;a<c;a++){var l=d[a];this[l]=i[l]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){s._read()});return}e.open(this.path,this.flags,this.mode,function(u,w){if(u){s.emit("error",u),s.readable=!1;return}s.fd=w,s.emit("open",w),s._read()})}function n(r,i){if(!(this instanceof n))return new n(r,i);Kre.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var s=Object.keys(i),d=0,a=s.length;d<a;d++){var c=s[d];this[c]=i[c]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var Zre=m((pQt,Yre)=>{"use strict";Yre.exports=Yat;var Qat=Object.getPrototypeOf||function(e){return e.__proto__};function Yat(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:Qat(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}});var Ln=m((gQt,tB)=>{var Xt=require("fs"),Zat=Xre(),edt=Qre(),tdt=Zre(),j0=require("util"),bn,G0;typeof Symbol=="function"&&typeof Symbol.for=="function"?(bn=Symbol.for("graceful-fs.queue"),G0=Symbol.for("graceful-fs.previous")):(bn="___graceful-fs.queue",G0="___graceful-fs.previous");function ndt(){}function nie(e,t){Object.defineProperty(e,bn,{get:function(){return t}})}var za=ndt;j0.debuglog?za=j0.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(za=function(){var e=j0.format.apply(j0,arguments);e="GFS4: "+e.split(/\n/).join(`
|