@pwrdrvr/microapps-cdk 0.2.8 → 0.2.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/.gitattributes +18 -18
  2. package/.jsii +1264 -165
  3. package/API.md +511 -8
  4. package/README.md +29 -0
  5. package/changelog.md +2 -0
  6. package/lib/MicroApps.d.ts +126 -105
  7. package/lib/MicroApps.d.ts.map +1 -0
  8. package/lib/MicroApps.js +32 -30
  9. package/lib/MicroAppsAPIGwy.d.ts +28 -61
  10. package/lib/MicroAppsAPIGwy.d.ts.map +1 -0
  11. package/lib/MicroAppsAPIGwy.js +17 -25
  12. package/lib/MicroAppsCF.d.ts +85 -104
  13. package/lib/MicroAppsCF.d.ts.map +1 -0
  14. package/lib/MicroAppsCF.js +58 -41
  15. package/lib/MicroAppsEdgeToOrigin.d.ts +108 -0
  16. package/lib/MicroAppsEdgeToOrigin.d.ts.map +1 -0
  17. package/lib/MicroAppsEdgeToOrigin.js +139 -0
  18. package/lib/MicroAppsS3.d.ts +19 -69
  19. package/lib/MicroAppsS3.d.ts.map +1 -0
  20. package/lib/MicroAppsS3.js +5 -32
  21. package/lib/MicroAppsSvcs.d.ts +58 -86
  22. package/lib/MicroAppsSvcs.d.ts.map +1 -0
  23. package/lib/MicroAppsSvcs.js +36 -95
  24. package/lib/MicroAppsTable.d.ts +60 -0
  25. package/lib/MicroAppsTable.d.ts.map +1 -0
  26. package/lib/MicroAppsTable.js +42 -0
  27. package/lib/index.d.ts +3 -0
  28. package/lib/index.d.ts.map +1 -0
  29. package/lib/index.js +3 -1
  30. package/lib/microapps-deployer/index.js +174 -113
  31. package/lib/microapps-deployer/index.js.map +3 -3
  32. package/lib/microapps-router/index.js +54 -69
  33. package/lib/microapps-router/index.js.map +3 -3
  34. package/lib/microapps-router/templates/appFrame.html +0 -0
  35. package/lib/utils/ReverseDomain.d.ts +1 -0
  36. package/lib/utils/ReverseDomain.d.ts.map +1 -0
  37. package/package.json +29 -24
  38. package/releasetag.txt +1 -0
  39. package/version.txt +1 -0
  40. package/patches/@aws-cdk+aws-apigatewayv2-alpha+2.8.0-alpha.0.patch +0 -39
@@ -1,73 +1,72 @@
1
- var cj=Object.create;var Yi=Object.defineProperty,dj=Object.defineProperties,tS=Object.getOwnPropertyDescriptor,uj=Object.getOwnPropertyDescriptors,mj=Object.getOwnPropertyNames,Ho=Object.getOwnPropertySymbols,fj=Object.getPrototypeOf,u_=Object.prototype.hasOwnProperty,nS=Object.prototype.propertyIsEnumerable;var rS=(e,t,n)=>t in e?Yi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,o=(e,t)=>{for(var n in t||(t={}))u_.call(t,n)&&rS(e,n,t[n]);if(Ho)for(var n of Ho(t))nS.call(t,n)&&rS(e,n,t[n]);return e},f=(e,t)=>dj(e,uj(t)),iS=e=>Yi(e,"__esModule",{value:!0});var xr=(e,t)=>{var n={};for(var r in e)u_.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Ho)for(var r of Ho(e))t.indexOf(r)<0&&nS.call(e,r)&&(n[r]=e[r]);return n};var p=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),pj=(e,t)=>{for(var n in t)Yi(e,n,{get:t[n],enumerable:!0})},sS=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of mj(t))!u_.call(e,i)&&(n||i!=="default")&&Yi(e,i,{get:()=>t[i],enumerable:!(r=tS(t,i))||r.enumerable});return e},bn=(e,t)=>sS(iS(Yi(e!=null?cj(fj(e)):{},"default",!t&&e&&e.__esModule?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e),_j=(e=>(t,n)=>e&&e.get(t)||(n=sS(iS({}),t,1),e&&e.set(t,n),n))(typeof WeakMap!="undefined"?new WeakMap:0),Ji=(e,t,n,r)=>{for(var i=r>1?void 0:r?tS(t,n):t,s=e.length-1,a;s>=0;s--)(a=e[s])&&(i=(r?a(t,n,i):a(i))||i);return r&&i&&Yi(t,n,i),i};var oS=p(m_=>{var aS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");m_.encode=function(e){if(0<=e&&e<aS.length)return aS[e];throw new TypeError("Must be between 0 and 63: "+e)};m_.decode=function(e){var t=65,n=90,r=97,i=122,s=48,a=57,l=43,c=47,d=26,u=52;return t<=e&&e<=n?e-t:r<=e&&e<=i?e-r+d:s<=e&&e<=a?e-s+u:e==l?62:e==c?63:-1}});var __=p(p_=>{var lS=oS(),f_=5,cS=1<<f_,dS=cS-1,uS=cS;function hj(e){return e<0?(-e<<1)+1:(e<<1)+0}function gj(e){var t=(e&1)===1,n=e>>1;return t?-n:n}p_.encode=function(t){var n="",r,i=hj(t);do r=i&dS,i>>>=f_,i>0&&(r|=uS),n+=lS.encode(r);while(i>0);return n};p_.decode=function(t,n,r){var i=t.length,s=0,a=0,l,c;do{if(n>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(c=lS.decode(t.charCodeAt(n++)),c===-1)throw new Error("Invalid base64 digit: "+t.charAt(n-1));l=!!(c&uS),c&=dS,s=s+(c<<a),a+=f_}while(l);r.value=gj(s),r.rest=n}});var Zi=p(pt=>{function yj(e,t,n){if(t in e)return e[t];if(arguments.length===3)return n;throw new Error('"'+t+'" is a required argument.')}pt.getArg=yj;var mS=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,vj=/^data:.+\,.+$/;function fa(e){var t=e.match(mS);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}pt.urlParse=fa;function Qi(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}pt.urlGenerate=Qi;function h_(e){var t=e,n=fa(e);if(n){if(!n.path)return e;t=n.path}for(var r=pt.isAbsolute(t),i=t.split(/\/+/),s,a=0,l=i.length-1;l>=0;l--)s=i[l],s==="."?i.splice(l,1):s===".."?a++:a>0&&(s===""?(i.splice(l+1,a),a=0):(i.splice(l,2),a--));return t=i.join("/"),t===""&&(t=r?"/":"."),n?(n.path=t,Qi(n)):t}pt.normalize=h_;function fS(e,t){e===""&&(e="."),t===""&&(t=".");var n=fa(t),r=fa(e);if(r&&(e=r.path||"/"),n&&!n.scheme)return r&&(n.scheme=r.scheme),Qi(n);if(n||t.match(vj))return t;if(r&&!r.host&&!r.path)return r.host=t,Qi(r);var i=t.charAt(0)==="/"?t:h_(e.replace(/\/+$/,"")+"/"+t);return r?(r.path=i,Qi(r)):i}pt.join=fS;pt.isAbsolute=function(e){return e.charAt(0)==="/"||mS.test(e)};function bj(e,t){e===""&&(e="."),e=e.replace(/\/$/,"");for(var n=0;t.indexOf(e+"/")!==0;){var r=e.lastIndexOf("/");if(r<0||(e=e.slice(0,r),e.match(/^([^\/]+:\/)?\/*$/)))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)}pt.relative=bj;var pS=function(){var e=Object.create(null);return!("__proto__"in e)}();function _S(e){return e}function Sj(e){return hS(e)?"$"+e:e}pt.toSetString=pS?_S:Sj;function wj(e){return hS(e)?e.slice(1):e}pt.fromSetString=pS?_S:wj;function hS(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var n=t-10;n>=0;n--)if(e.charCodeAt(n)!==36)return!1;return!0}function Ej(e,t,n){var r=Xi(e.source,t.source);return r!==0||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0||n)||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=e.generatedLine-t.generatedLine,r!==0)?r:Xi(e.name,t.name)}pt.compareByOriginalPositions=Ej;function Aj(e,t,n){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0||n)||(r=Xi(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:Xi(e.name,t.name)}pt.compareByGeneratedPositionsDeflated=Aj;function Xi(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}function Cj(e,t){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0)||(n=Xi(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:Xi(e.name,t.name)}pt.compareByGeneratedPositionsInflated=Cj;function Tj(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}pt.parseSourceMapInput=Tj;function xj(e,t,n){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),n){var r=fa(n);if(!r)throw new Error("sourceMapURL could not be parsed");if(r.path){var i=r.path.lastIndexOf("/");i>=0&&(r.path=r.path.substring(0,i+1))}t=fS(Qi(r),t)}return h_(t)}pt.computeSourceURL=xj});var v_=p(gS=>{var g_=Zi(),y_=Object.prototype.hasOwnProperty,oi=typeof Map!="undefined";function Zn(){this._array=[],this._set=oi?new Map:Object.create(null)}Zn.fromArray=function(t,n){for(var r=new Zn,i=0,s=t.length;i<s;i++)r.add(t[i],n);return r};Zn.prototype.size=function(){return oi?this._set.size:Object.getOwnPropertyNames(this._set).length};Zn.prototype.add=function(t,n){var r=oi?t:g_.toSetString(t),i=oi?this.has(t):y_.call(this._set,r),s=this._array.length;(!i||n)&&this._array.push(t),i||(oi?this._set.set(t,s):this._set[r]=s)};Zn.prototype.has=function(t){if(oi)return this._set.has(t);var n=g_.toSetString(t);return y_.call(this._set,n)};Zn.prototype.indexOf=function(t){if(oi){var n=this._set.get(t);if(n>=0)return n}else{var r=g_.toSetString(t);if(y_.call(this._set,r))return this._set[r]}throw new Error('"'+t+'" is not in the set.')};Zn.prototype.at=function(t){if(t>=0&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)};Zn.prototype.toArray=function(){return this._array.slice()};gS.ArraySet=Zn});var bS=p(vS=>{var yS=Zi();function Ij(e,t){var n=e.generatedLine,r=t.generatedLine,i=e.generatedColumn,s=t.generatedColumn;return r>n||r==n&&s>=i||yS.compareByGeneratedPositionsInflated(e,t)<=0}function Wo(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Wo.prototype.unsortedForEach=function(t,n){this._array.forEach(t,n)};Wo.prototype.add=function(t){Ij(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))};Wo.prototype.toArray=function(){return this._sorted||(this._array.sort(yS.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};vS.MappingList=Wo});var b_=p(SS=>{var pa=__(),Be=Zi(),Yo=v_().ArraySet,Rj=bS().MappingList;function Ht(e){e||(e={}),this._file=Be.getArg(e,"file",null),this._sourceRoot=Be.getArg(e,"sourceRoot",null),this._skipValidation=Be.getArg(e,"skipValidation",!1),this._sources=new Yo,this._names=new Yo,this._mappings=new Rj,this._sourcesContents=null}Ht.prototype._version=3;Ht.fromSourceMap=function(t){var n=t.sourceRoot,r=new Ht({file:t.file,sourceRoot:n});return t.eachMapping(function(i){var s={generated:{line:i.generatedLine,column:i.generatedColumn}};i.source!=null&&(s.source=i.source,n!=null&&(s.source=Be.relative(n,s.source)),s.original={line:i.originalLine,column:i.originalColumn},i.name!=null&&(s.name=i.name)),r.addMapping(s)}),t.sources.forEach(function(i){var s=i;n!==null&&(s=Be.relative(n,i)),r._sources.has(s)||r._sources.add(s);var a=t.sourceContentFor(i);a!=null&&r.setSourceContent(i,a)}),r};Ht.prototype.addMapping=function(t){var n=Be.getArg(t,"generated"),r=Be.getArg(t,"original",null),i=Be.getArg(t,"source",null),s=Be.getArg(t,"name",null);this._skipValidation||this._validateMapping(n,r,i,s),i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),s!=null&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:n.line,generatedColumn:n.column,originalLine:r!=null&&r.line,originalColumn:r!=null&&r.column,source:i,name:s})};Ht.prototype.setSourceContent=function(t,n){var r=t;this._sourceRoot!=null&&(r=Be.relative(this._sourceRoot,r)),n!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Be.toSetString(r)]=n):this._sourcesContents&&(delete this._sourcesContents[Be.toSetString(r)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};Ht.prototype.applySourceMap=function(t,n,r){var i=n;if(n==null){if(t.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);i=t.file}var s=this._sourceRoot;s!=null&&(i=Be.relative(s,i));var a=new Yo,l=new Yo;this._mappings.unsortedForEach(function(c){if(c.source===i&&c.originalLine!=null){var d=t.originalPositionFor({line:c.originalLine,column:c.originalColumn});d.source!=null&&(c.source=d.source,r!=null&&(c.source=Be.join(r,c.source)),s!=null&&(c.source=Be.relative(s,c.source)),c.originalLine=d.line,c.originalColumn=d.column,d.name!=null&&(c.name=d.name))}var u=c.source;u!=null&&!a.has(u)&&a.add(u);var _=c.name;_!=null&&!l.has(_)&&l.add(_)},this),this._sources=a,this._names=l,t.sources.forEach(function(c){var d=t.sourceContentFor(c);d!=null&&(r!=null&&(c=Be.join(r,c)),s!=null&&(c=Be.relative(s,c)),this.setSourceContent(c,d))},this)};Ht.prototype._validateMapping=function(t,n,r,i){if(n&&typeof n.line!="number"&&typeof n.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(t&&"line"in t&&"column"in t&&t.line>0&&t.column>=0&&!n&&!r&&!i)){if(t&&"line"in t&&"column"in t&&n&&"line"in n&&"column"in n&&t.line>0&&t.column>=0&&n.line>0&&n.column>=0&&r)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:t,source:r,original:n,name:i}))}};Ht.prototype._serializeMappings=function(){for(var t=0,n=1,r=0,i=0,s=0,a=0,l="",c,d,u,_,g=this._mappings.toArray(),b=0,S=g.length;b<S;b++){if(d=g[b],c="",d.generatedLine!==n)for(t=0;d.generatedLine!==n;)c+=";",n++;else if(b>0){if(!Be.compareByGeneratedPositionsInflated(d,g[b-1]))continue;c+=","}c+=pa.encode(d.generatedColumn-t),t=d.generatedColumn,d.source!=null&&(_=this._sources.indexOf(d.source),c+=pa.encode(_-a),a=_,c+=pa.encode(d.originalLine-1-i),i=d.originalLine-1,c+=pa.encode(d.originalColumn-r),r=d.originalColumn,d.name!=null&&(u=this._names.indexOf(d.name),c+=pa.encode(u-s),s=u)),l+=c}return l};Ht.prototype._generateSourcesContent=function(t,n){return t.map(function(r){if(!this._sourcesContents)return null;n!=null&&(r=Be.relative(n,r));var i=Be.toSetString(r);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)};Ht.prototype.toJSON=function(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(t.file=this._file),this._sourceRoot!=null&&(t.sourceRoot=this._sourceRoot),this._sourcesContents&&(t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot)),t};Ht.prototype.toString=function(){return JSON.stringify(this.toJSON())};SS.SourceMapGenerator=Ht});var wS=p(li=>{li.GREATEST_LOWER_BOUND=1;li.LEAST_UPPER_BOUND=2;function S_(e,t,n,r,i,s){var a=Math.floor((t-e)/2)+e,l=i(n,r[a],!0);return l===0?a:l>0?t-a>1?S_(a,t,n,r,i,s):s==li.LEAST_UPPER_BOUND?t<r.length?t:-1:a:a-e>1?S_(e,a,n,r,i,s):s==li.LEAST_UPPER_BOUND?a:e<0?-1:e}li.search=function(t,n,r,i){if(n.length===0)return-1;var s=S_(-1,n.length,t,n,r,i||li.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&r(n[s],n[s-1],!0)===0;)--s;return s}});var AS=p(ES=>{function w_(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function Nj(e,t){return Math.round(e+Math.random()*(t-e))}function E_(e,t,n,r){if(n<r){var i=Nj(n,r),s=n-1;w_(e,i,r);for(var a=e[r],l=n;l<r;l++)t(e[l],a)<=0&&(s+=1,w_(e,s,l));w_(e,s+1,l);var c=s+1;E_(e,t,n,c-1),E_(e,t,c+1,r)}}ES.quickSort=function(e,t){E_(e,t,0,e.length-1)}});var TS=p(Jo=>{var F=Zi(),A_=wS(),es=v_().ArraySet,Pj=__(),_a=AS().quickSort;function Ne(e,t){var n=e;return typeof e=="string"&&(n=F.parseSourceMapInput(e)),n.sections!=null?new ln(n,t):new at(n,t)}Ne.fromSourceMap=function(e,t){return at.fromSourceMap(e,t)};Ne.prototype._version=3;Ne.prototype.__generatedMappings=null;Object.defineProperty(Ne.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});Ne.prototype.__originalMappings=null;Object.defineProperty(Ne.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});Ne.prototype._charIsMappingSeparator=function(t,n){var r=t.charAt(n);return r===";"||r===","};Ne.prototype._parseMappings=function(t,n){throw new Error("Subclasses must implement _parseMappings")};Ne.GENERATED_ORDER=1;Ne.ORIGINAL_ORDER=2;Ne.GREATEST_LOWER_BOUND=1;Ne.LEAST_UPPER_BOUND=2;Ne.prototype.eachMapping=function(t,n,r){var i=n||null,s=r||Ne.GENERATED_ORDER,a;switch(s){case Ne.GENERATED_ORDER:a=this._generatedMappings;break;case Ne.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var l=this.sourceRoot;a.map(function(c){var d=c.source===null?null:this._sources.at(c.source);return d=F.computeSourceURL(l,d,this._sourceMapURL),{source:d,generatedLine:c.generatedLine,generatedColumn:c.generatedColumn,originalLine:c.originalLine,originalColumn:c.originalColumn,name:c.name===null?null:this._names.at(c.name)}},this).forEach(t,i)};Ne.prototype.allGeneratedPositionsFor=function(t){var n=F.getArg(t,"line"),r={source:F.getArg(t,"source"),originalLine:n,originalColumn:F.getArg(t,"column",0)};if(r.source=this._findSourceIndex(r.source),r.source<0)return[];var i=[],s=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",F.compareByOriginalPositions,A_.LEAST_UPPER_BOUND);if(s>=0){var a=this._originalMappings[s];if(t.column===void 0)for(var l=a.originalLine;a&&a.originalLine===l;)i.push({line:F.getArg(a,"generatedLine",null),column:F.getArg(a,"generatedColumn",null),lastColumn:F.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s];else for(var c=a.originalColumn;a&&a.originalLine===n&&a.originalColumn==c;)i.push({line:F.getArg(a,"generatedLine",null),column:F.getArg(a,"generatedColumn",null),lastColumn:F.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s]}return i};Jo.SourceMapConsumer=Ne;function at(e,t){var n=e;typeof e=="string"&&(n=F.parseSourceMapInput(e));var r=F.getArg(n,"version"),i=F.getArg(n,"sources"),s=F.getArg(n,"names",[]),a=F.getArg(n,"sourceRoot",null),l=F.getArg(n,"sourcesContent",null),c=F.getArg(n,"mappings"),d=F.getArg(n,"file",null);if(r!=this._version)throw new Error("Unsupported version: "+r);a&&(a=F.normalize(a)),i=i.map(String).map(F.normalize).map(function(u){return a&&F.isAbsolute(a)&&F.isAbsolute(u)?F.relative(a,u):u}),this._names=es.fromArray(s.map(String),!0),this._sources=es.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(u){return F.computeSourceURL(a,u,t)}),this.sourceRoot=a,this.sourcesContent=l,this._mappings=c,this._sourceMapURL=t,this.file=d}at.prototype=Object.create(Ne.prototype);at.prototype.consumer=Ne;at.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=F.relative(this.sourceRoot,t)),this._sources.has(t))return this._sources.indexOf(t);var n;for(n=0;n<this._absoluteSources.length;++n)if(this._absoluteSources[n]==e)return n;return-1};at.fromSourceMap=function(t,n){var r=Object.create(at.prototype),i=r._names=es.fromArray(t._names.toArray(),!0),s=r._sources=es.fromArray(t._sources.toArray(),!0);r.sourceRoot=t._sourceRoot,r.sourcesContent=t._generateSourcesContent(r._sources.toArray(),r.sourceRoot),r.file=t._file,r._sourceMapURL=n,r._absoluteSources=r._sources.toArray().map(function(b){return F.computeSourceURL(r.sourceRoot,b,n)});for(var a=t._mappings.toArray().slice(),l=r.__generatedMappings=[],c=r.__originalMappings=[],d=0,u=a.length;d<u;d++){var _=a[d],g=new CS;g.generatedLine=_.generatedLine,g.generatedColumn=_.generatedColumn,_.source&&(g.source=s.indexOf(_.source),g.originalLine=_.originalLine,g.originalColumn=_.originalColumn,_.name&&(g.name=i.indexOf(_.name)),c.push(g)),l.push(g)}return _a(r.__originalMappings,F.compareByOriginalPositions),r};at.prototype._version=3;Object.defineProperty(at.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function CS(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}at.prototype._parseMappings=function(t,n){for(var r=1,i=0,s=0,a=0,l=0,c=0,d=t.length,u=0,_={},g={},b=[],S=[],v,I,L,x,re;u<d;)if(t.charAt(u)===";")r++,u++,i=0;else if(t.charAt(u)===",")u++;else{for(v=new CS,v.generatedLine=r,x=u;x<d&&!this._charIsMappingSeparator(t,x);x++);if(I=t.slice(u,x),L=_[I],L)u+=I.length;else{for(L=[];u<x;)Pj.decode(t,u,g),re=g.value,u=g.rest,L.push(re);if(L.length===2)throw new Error("Found a source, but no line and column");if(L.length===3)throw new Error("Found a source and line, but no column");_[I]=L}v.generatedColumn=i+L[0],i=v.generatedColumn,L.length>1&&(v.source=l+L[1],l+=L[1],v.originalLine=s+L[2],s=v.originalLine,v.originalLine+=1,v.originalColumn=a+L[3],a=v.originalColumn,L.length>4&&(v.name=c+L[4],c+=L[4])),S.push(v),typeof v.originalLine=="number"&&b.push(v)}_a(S,F.compareByGeneratedPositionsDeflated),this.__generatedMappings=S,_a(b,F.compareByOriginalPositions),this.__originalMappings=b};at.prototype._findMapping=function(t,n,r,i,s,a){if(t[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+t[r]);if(t[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+t[i]);return A_.search(t,n,s,a)};at.prototype.computeColumnSpans=function(){for(var t=0;t<this._generatedMappings.length;++t){var n=this._generatedMappings[t];if(t+1<this._generatedMappings.length){var r=this._generatedMappings[t+1];if(n.generatedLine===r.generatedLine){n.lastGeneratedColumn=r.generatedColumn-1;continue}}n.lastGeneratedColumn=1/0}};at.prototype.originalPositionFor=function(t){var n={generatedLine:F.getArg(t,"line"),generatedColumn:F.getArg(t,"column")},r=this._findMapping(n,this._generatedMappings,"generatedLine","generatedColumn",F.compareByGeneratedPositionsDeflated,F.getArg(t,"bias",Ne.GREATEST_LOWER_BOUND));if(r>=0){var i=this._generatedMappings[r];if(i.generatedLine===n.generatedLine){var s=F.getArg(i,"source",null);s!==null&&(s=this._sources.at(s),s=F.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var a=F.getArg(i,"name",null);return a!==null&&(a=this._names.at(a)),{source:s,line:F.getArg(i,"originalLine",null),column:F.getArg(i,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}};at.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1};at.prototype.sourceContentFor=function(t,n){if(!this.sourcesContent)return null;var r=this._findSourceIndex(t);if(r>=0)return this.sourcesContent[r];var i=t;this.sourceRoot!=null&&(i=F.relative(this.sourceRoot,i));var s;if(this.sourceRoot!=null&&(s=F.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if(s.scheme=="file"&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!s.path||s.path=="/")&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(n)return null;throw new Error('"'+i+'" is not in the SourceMap.')};at.prototype.generatedPositionFor=function(t){var n=F.getArg(t,"source");if(n=this._findSourceIndex(n),n<0)return{line:null,column:null,lastColumn:null};var r={source:n,originalLine:F.getArg(t,"line"),originalColumn:F.getArg(t,"column")},i=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",F.compareByOriginalPositions,F.getArg(t,"bias",Ne.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===r.source)return{line:F.getArg(s,"generatedLine",null),column:F.getArg(s,"generatedColumn",null),lastColumn:F.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};Jo.BasicSourceMapConsumer=at;function ln(e,t){var n=e;typeof e=="string"&&(n=F.parseSourceMapInput(e));var r=F.getArg(n,"version"),i=F.getArg(n,"sections");if(r!=this._version)throw new Error("Unsupported version: "+r);this._sources=new es,this._names=new es;var s={line:-1,column:0};this._sections=i.map(function(a){if(a.url)throw new Error("Support for url field in sections not implemented.");var l=F.getArg(a,"offset"),c=F.getArg(l,"line"),d=F.getArg(l,"column");if(c<s.line||c===s.line&&d<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=l,{generatedOffset:{generatedLine:c+1,generatedColumn:d+1},consumer:new Ne(F.getArg(a,"map"),t)}})}ln.prototype=Object.create(Ne.prototype);ln.prototype.constructor=Ne;ln.prototype._version=3;Object.defineProperty(ln.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e}});ln.prototype.originalPositionFor=function(t){var n={generatedLine:F.getArg(t,"line"),generatedColumn:F.getArg(t,"column")},r=A_.search(n,this._sections,function(s,a){var l=s.generatedLine-a.generatedOffset.generatedLine;return l||s.generatedColumn-a.generatedOffset.generatedColumn}),i=this._sections[r];return i?i.consumer.originalPositionFor({line:n.generatedLine-(i.generatedOffset.generatedLine-1),column:n.generatedColumn-(i.generatedOffset.generatedLine===n.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:t.bias}):{source:null,line:null,column:null,name:null}};ln.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})};ln.prototype.sourceContentFor=function(t,n){for(var r=0;r<this._sections.length;r++){var i=this._sections[r],s=i.consumer.sourceContentFor(t,!0);if(s)return s}if(n)return null;throw new Error('"'+t+'" is not in the SourceMap.')};ln.prototype.generatedPositionFor=function(t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n];if(r.consumer._findSourceIndex(F.getArg(t,"source"))!==-1){var i=r.consumer.generatedPositionFor(t);if(i){var s={line:i.line+(r.generatedOffset.generatedLine-1),column:i.column+(r.generatedOffset.generatedLine===i.line?r.generatedOffset.generatedColumn-1:0)};return s}}}return{line:null,column:null}};ln.prototype._parseMappings=function(t,n){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var i=this._sections[r],s=i.consumer._generatedMappings,a=0;a<s.length;a++){var l=s[a],c=i.consumer._sources.at(l.source);c=F.computeSourceURL(i.consumer.sourceRoot,c,this._sourceMapURL),this._sources.add(c),c=this._sources.indexOf(c);var d=null;l.name&&(d=i.consumer._names.at(l.name),this._names.add(d),d=this._names.indexOf(d));var u={source:c,generatedLine:l.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:l.generatedColumn+(i.generatedOffset.generatedLine===l.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:l.originalLine,originalColumn:l.originalColumn,name:d};this.__generatedMappings.push(u),typeof u.originalLine=="number"&&this.__originalMappings.push(u)}_a(this.__generatedMappings,F.compareByGeneratedPositionsDeflated),_a(this.__originalMappings,F.compareByOriginalPositions)};Jo.IndexedSourceMapConsumer=ln});var IS=p(xS=>{var Dj=b_().SourceMapGenerator,Qo=Zi(),Oj=/(\r?\n)/,Lj=10,ts="$$$isSourceNode$$$";function Mt(e,t,n,r,i){this.children=[],this.sourceContents={},this.line=e??null,this.column=t??null,this.source=n??null,this.name=i??null,this[ts]=!0,r!=null&&this.add(r)}Mt.fromStringWithSourceMap=function(t,n,r){var i=new Mt,s=t.split(Oj),a=0,l=function(){var g=S(),b=S()||"";return g+b;function S(){return a<s.length?s[a++]:void 0}},c=1,d=0,u=null;return n.eachMapping(function(g){if(u!==null)if(c<g.generatedLine)_(u,l()),c++,d=0;else{var b=s[a]||"",S=b.substr(0,g.generatedColumn-d);s[a]=b.substr(g.generatedColumn-d),d=g.generatedColumn,_(u,S),u=g;return}for(;c<g.generatedLine;)i.add(l()),c++;if(d<g.generatedColumn){var b=s[a]||"";i.add(b.substr(0,g.generatedColumn)),s[a]=b.substr(g.generatedColumn),d=g.generatedColumn}u=g},this),a<s.length&&(u&&_(u,l()),i.add(s.splice(a).join(""))),n.sources.forEach(function(g){var b=n.sourceContentFor(g);b!=null&&(r!=null&&(g=Qo.join(r,g)),i.setSourceContent(g,b))}),i;function _(g,b){if(g===null||g.source===void 0)i.add(b);else{var S=r?Qo.join(r,g.source):g.source;i.add(new Mt(g.originalLine,g.originalColumn,S,b,g.name))}}};Mt.prototype.add=function(t){if(Array.isArray(t))t.forEach(function(n){this.add(n)},this);else if(t[ts]||typeof t=="string")t&&this.children.push(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this};Mt.prototype.prepend=function(t){if(Array.isArray(t))for(var n=t.length-1;n>=0;n--)this.prepend(t[n]);else if(t[ts]||typeof t=="string")this.children.unshift(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this};Mt.prototype.walk=function(t){for(var n,r=0,i=this.children.length;r<i;r++)n=this.children[r],n[ts]?n.walk(t):n!==""&&t(n,{source:this.source,line:this.line,column:this.column,name:this.name})};Mt.prototype.join=function(t){var n,r,i=this.children.length;if(i>0){for(n=[],r=0;r<i-1;r++)n.push(this.children[r]),n.push(t);n.push(this.children[r]),this.children=n}return this};Mt.prototype.replaceRight=function(t,n){var r=this.children[this.children.length-1];return r[ts]?r.replaceRight(t,n):typeof r=="string"?this.children[this.children.length-1]=r.replace(t,n):this.children.push("".replace(t,n)),this};Mt.prototype.setSourceContent=function(t,n){this.sourceContents[Qo.toSetString(t)]=n};Mt.prototype.walkSourceContents=function(t){for(var n=0,r=this.children.length;n<r;n++)this.children[n][ts]&&this.children[n].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),n=0,r=i.length;n<r;n++)t(Qo.fromSetString(i[n]),this.sourceContents[i[n]])};Mt.prototype.toString=function(){var t="";return this.walk(function(n){t+=n}),t};Mt.prototype.toStringWithSourceMap=function(t){var n={code:"",line:1,column:0},r=new Dj(t),i=!1,s=null,a=null,l=null,c=null;return this.walk(function(d,u){n.code+=d,u.source!==null&&u.line!==null&&u.column!==null?((s!==u.source||a!==u.line||l!==u.column||c!==u.name)&&r.addMapping({source:u.source,original:{line:u.line,column:u.column},generated:{line:n.line,column:n.column},name:u.name}),s=u.source,a=u.line,l=u.column,c=u.name,i=!0):i&&(r.addMapping({generated:{line:n.line,column:n.column}}),s=null,i=!1);for(var _=0,g=d.length;_<g;_++)d.charCodeAt(_)===Lj?(n.line++,n.column=0,_+1===g?(s=null,i=!1):i&&r.addMapping({source:u.source,original:{line:u.line,column:u.column},generated:{line:n.line,column:n.column},name:u.name})):n.column++}),this.walkSourceContents(function(d,u){r.setSourceContent(d,u)}),{code:n.code,map:r}};xS.SourceNode=Mt});var RS=p(Xo=>{Xo.SourceMapGenerator=b_().SourceMapGenerator;Xo.SourceMapConsumer=TS().SourceMapConsumer;Xo.SourceNode=IS().SourceNode});var PS=p((mhe,NS)=>{var qj=Object.prototype.toString,C_=typeof Buffer!="undefined"&&typeof Buffer.alloc=="function"&&typeof Buffer.allocUnsafe=="function"&&typeof Buffer.from=="function";function Mj(e){return qj.call(e).slice(8,-1)==="ArrayBuffer"}function kj(e,t,n){t>>>=0;var r=e.byteLength-t;if(r<0)throw new RangeError("'offset' is out of bounds");if(n===void 0)n=r;else if(n>>>=0,n>r)throw new RangeError("'length' is out of bounds");return C_?Buffer.from(e.slice(t,t+n)):new Buffer(new Uint8Array(e.slice(t,t+n)))}function jj(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!Buffer.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');return C_?Buffer.from(e,t):new Buffer(e,t)}function zj(e,t,n){if(typeof e=="number")throw new TypeError('"value" argument must not be a number');return Mj(e)?kj(e,t,n):typeof e=="string"?jj(e,t):C_?Buffer.from(e):new Buffer(e)}NS.exports=zj});var zS=p((di,O_)=>{var Uj=RS().SourceMapConsumer,T_=require("path"),Sn;try{Sn=require("fs"),(!Sn.existsSync||!Sn.readFileSync)&&(Sn=null)}catch{}var Fj=PS();function DS(e,t){return e.require(t)}var OS=!1,LS=!1,x_=!1,ha="auto",ci={},ga={},Bj=/^data:application\/json[^,]+base64,/,Ir=[],Rr=[];function I_(){return ha==="browser"?!0:ha==="node"?!1:typeof window!="undefined"&&typeof XMLHttpRequest=="function"&&!(window.require&&window.module&&window.process&&window.process.type==="renderer")}function Gj(){return typeof process=="object"&&process!==null&&typeof process.on=="function"}function $j(){return typeof process=="object"&&process!==null?process.version:""}function Kj(){if(typeof process=="object"&&process!==null)return process.stderr}function Vj(e){if(typeof process=="object"&&process!==null&&typeof process.exit=="function")return process.exit(e)}function Zo(e){return function(t){for(var n=0;n<e.length;n++){var r=e[n](t);if(r)return r}return null}}var R_=Zo(Ir);Ir.push(function(e){if(e=e.trim(),/^file:/.test(e)&&(e=e.replace(/file:\/\/\/(\w:)?/,function(r,i){return i?"":"/"})),e in ci)return ci[e];var t="";try{if(Sn)Sn.existsSync(e)&&(t=Sn.readFileSync(e,"utf8"));else{var n=new XMLHttpRequest;n.open("GET",e,!1),n.send(null),n.readyState===4&&n.status===200&&(t=n.responseText)}}catch{}return ci[e]=t});function N_(e,t){if(!e)return t;var n=T_.dirname(e),r=/^\w+:\/\/[^\/]*/.exec(n),i=r?r[0]:"",s=n.slice(i.length);return i&&/^\/\w\:/.test(s)?(i+="/",i+T_.resolve(n.slice(i.length),t).replace(/\\/g,"/")):i+T_.resolve(n.slice(i.length),t)}function Hj(e){var t;if(I_())try{var n=new XMLHttpRequest;n.open("GET",e,!1),n.send(null),t=n.readyState===4?n.responseText:null;var r=n.getResponseHeader("SourceMap")||n.getResponseHeader("X-SourceMap");if(r)return r}catch{}t=R_(e);for(var i=/(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/mg,s,a;a=i.exec(t);)s=a;return s?s[1]:null}var P_=Zo(Rr);Rr.push(function(e){var t=Hj(e);if(!t)return null;var n;if(Bj.test(t)){var r=t.slice(t.indexOf(",")+1);n=Fj(r,"base64").toString(),t=e}else t=N_(e,t),n=R_(t);return n?{url:t,map:n}:null});function D_(e){var t=ga[e.source];if(!t){var n=P_(e.source);n?(t=ga[e.source]={url:n.url,map:new Uj(n.map)},t.map.sourcesContent&&t.map.sources.forEach(function(i,s){var a=t.map.sourcesContent[s];if(a){var l=N_(t.url,i);ci[l]=a}})):t=ga[e.source]={url:null,map:null}}if(t&&t.map&&typeof t.map.originalPositionFor=="function"){var r=t.map.originalPositionFor(e);if(r.source!==null)return r.source=N_(t.url,r.source),r}return e}function qS(e){var t=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(e);if(t){var n=D_({source:t[2],line:+t[3],column:t[4]-1});return"eval at "+t[1]+" ("+n.source+":"+n.line+":"+(n.column+1)+")"}return t=/^eval at ([^(]+) \((.+)\)$/.exec(e),t?"eval at "+t[1]+" ("+qS(t[2])+")":e}function Wj(){var e,t="";if(this.isNative())t="native";else{e=this.getScriptNameOrSourceURL(),!e&&this.isEval()&&(t=this.getEvalOrigin(),t+=", "),e?t+=e:t+="<anonymous>";var n=this.getLineNumber();if(n!=null){t+=":"+n;var r=this.getColumnNumber();r&&(t+=":"+r)}}var i="",s=this.getFunctionName(),a=!0,l=this.isConstructor(),c=!(this.isToplevel()||l);if(c){var d=this.getTypeName();d==="[object Object]"&&(d="null");var u=this.getMethodName();s?(d&&s.indexOf(d)!=0&&(i+=d+"."),i+=s,u&&s.indexOf("."+u)!=s.length-u.length-1&&(i+=" [as "+u+"]")):i+=d+"."+(u||"<anonymous>")}else l?i+="new "+(s||"<anonymous>"):s?i+=s:(i+=t,a=!1);return a&&(i+=" ("+t+")"),i}function MS(e){var t={};return Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(function(n){t[n]=/^(?:is|get)/.test(n)?function(){return e[n].call(e)}:e[n]}),t.toString=Wj,t}function kS(e,t){if(t===void 0&&(t={nextPosition:null,curPosition:null}),e.isNative())return t.curPosition=null,e;var n=e.getFileName()||e.getScriptNameOrSourceURL();if(n){var r=e.getLineNumber(),i=e.getColumnNumber()-1,s=/^v(10\.1[6-9]|10\.[2-9][0-9]|10\.[0-9]{3,}|1[2-9]\d*|[2-9]\d|\d{3,}|11\.11)/,a=s.test($j())?0:62;r===1&&i>a&&!I_()&&!e.isEval()&&(i-=a);var l=D_({source:n,line:r,column:i});t.curPosition=l,e=MS(e);var c=e.getFunctionName;return e.getFunctionName=function(){return t.nextPosition==null?c():t.nextPosition.name||c()},e.getFileName=function(){return l.source},e.getLineNumber=function(){return l.line},e.getColumnNumber=function(){return l.column+1},e.getScriptNameOrSourceURL=function(){return l.source},e}var d=e.isEval()&&e.getEvalOrigin();return d&&(d=qS(d),e=MS(e),e.getEvalOrigin=function(){return d}),e}function Yj(e,t){x_&&(ci={},ga={});for(var n=e.name||"Error",r=e.message||"",i=n+": "+r,s={nextPosition:null,curPosition:null},a=[],l=t.length-1;l>=0;l--)a.push(`
2
- at `+kS(t[l],s)),s.nextPosition=s.curPosition;return s.curPosition=s.nextPosition=null,i+a.reverse().join("")}function jS(e){var t=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(e.stack);if(t){var n=t[1],r=+t[2],i=+t[3],s=ci[n];if(!s&&Sn&&Sn.existsSync(n))try{s=Sn.readFileSync(n,"utf8")}catch{s=""}if(s){var a=s.split(/(?:\r\n|\r|\n)/)[r-1];if(a)return n+":"+r+`
1
+ var i$=Object.create;var vs=Object.defineProperty,s$=Object.defineProperties,$T=Object.getOwnPropertyDescriptor,o$=Object.getOwnPropertyDescriptors,a$=Object.getOwnPropertyNames,Gl=Object.getOwnPropertySymbols,c$=Object.getPrototypeOf,kg=Object.prototype.hasOwnProperty,VT=Object.prototype.propertyIsEnumerable;var GT=(e,t,r)=>t in e?vs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,o=(e,t)=>{for(var r in t||(t={}))kg.call(t,r)&&GT(e,r,t[r]);if(Gl)for(var r of Gl(t))VT.call(t,r)&&GT(e,r,t[r]);return e},y=(e,t)=>s$(e,o$(t));var Un=(e,t)=>{var r={};for(var n in e)kg.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Gl)for(var n of Gl(e))t.indexOf(n)<0&&VT.call(e,n)&&(r[n]=e[n]);return r};var m=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),l$=(e,t)=>{for(var r in t)vs(e,r,{get:t[r],enumerable:!0})},KT=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of a$(t))!kg.call(e,i)&&i!==r&&vs(e,i,{get:()=>t[i],enumerable:!(n=$T(t,i))||n.enumerable});return e};var yr=(e,t,r)=>(r=e!=null?i$(c$(e)):{},KT(t||!e||!e.__esModule?vs(r,"default",{value:e,enumerable:!0}):r,e)),d$=e=>KT(vs({},"__esModule",{value:!0}),e),Ss=(e,t,r,n)=>{for(var i=n>1?void 0:n?$T(t,r):t,s=e.length-1,a;s>=0;s--)(a=e[s])&&(i=(n?a(t,r,i):a(i))||i);return n&&i&&vs(t,r,i),i};var WT=m(Fg=>{var HT="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Fg.encode=function(e){if(0<=e&&e<HT.length)return HT[e];throw new TypeError("Must be between 0 and 63: "+e)};Fg.decode=function(e){var t=65,r=90,n=97,i=122,s=48,a=57,c=43,l=47,u=26,f=52;return t<=e&&e<=r?e-t:n<=e&&e<=i?e-n+u:s<=e&&e<=a?e-s+f:e==c?62:e==l?63:-1}});var Gg=m(Bg=>{var JT=WT(),Ug=5,YT=1<<Ug,QT=YT-1,XT=YT;function u$(e){return e<0?(-e<<1)+1:(e<<1)+0}function f$(e){var t=(e&1)===1,r=e>>1;return t?-r:r}Bg.encode=function(t){var r="",n,i=u$(t);do n=i&QT,i>>>=Ug,i>0&&(n|=XT),r+=JT.encode(n);while(i>0);return r};Bg.decode=function(t,r,n){var i=t.length,s=0,a=0,c,l;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(l=JT.decode(t.charCodeAt(r++)),l===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));c=!!(l&XT),l&=QT,s=s+(l<<a),a+=Ug}while(c);n.value=f$(s),n.rest=r}});var bs=m(_t=>{function m$(e,t,r){if(t in e)return e[t];if(arguments.length===3)return r;throw new Error('"'+t+'" is a required argument.')}_t.getArg=m$;var ZT=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,p$=/^data:.+\,.+$/;function Go(e){var t=e.match(ZT);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}_t.urlParse=Go;function ws(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}_t.urlGenerate=ws;function $g(e){var t=e,r=Go(e);if(r){if(!r.path)return e;t=r.path}for(var n=_t.isAbsolute(t),i=t.split(/\/+/),s,a=0,c=i.length-1;c>=0;c--)s=i[c],s==="."?i.splice(c,1):s===".."?a++:a>0&&(s===""?(i.splice(c+1,a),a=0):(i.splice(c,2),a--));return t=i.join("/"),t===""&&(t=n?"/":"."),r?(r.path=t,ws(r)):t}_t.normalize=$g;function eC(e,t){e===""&&(e="."),t===""&&(t=".");var r=Go(t),n=Go(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),ws(r);if(r||t.match(p$))return t;if(n&&!n.host&&!n.path)return n.host=t,ws(n);var i=t.charAt(0)==="/"?t:$g(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=i,ws(n)):i}_t.join=eC;_t.isAbsolute=function(e){return e.charAt(0)==="/"||ZT.test(e)};function _$(e,t){e===""&&(e="."),e=e.replace(/\/$/,"");for(var r=0;t.indexOf(e+"/")!==0;){var n=e.lastIndexOf("/");if(n<0||(e=e.slice(0,n),e.match(/^([^\/]+:\/)?\/*$/)))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)}_t.relative=_$;var tC=function(){var e=Object.create(null);return!("__proto__"in e)}();function rC(e){return e}function h$(e){return nC(e)?"$"+e:e}_t.toSetString=tC?rC:h$;function y$(e){return nC(e)?e.slice(1):e}_t.fromSetString=tC?rC:y$;function nC(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var r=t-10;r>=0;r--)if(e.charCodeAt(r)!==36)return!1;return!0}function g$(e,t,r){var n=Es(e.source,t.source);return n!==0||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0||r)||(n=e.generatedColumn-t.generatedColumn,n!==0)||(n=e.generatedLine-t.generatedLine,n!==0)?n:Es(e.name,t.name)}_t.compareByOriginalPositions=g$;function v$(e,t,r){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0||r)||(n=Es(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:Es(e.name,t.name)}_t.compareByGeneratedPositionsDeflated=v$;function Es(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}function S$(e,t){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=Es(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:Es(e.name,t.name)}_t.compareByGeneratedPositionsInflated=S$;function w$(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}_t.parseSourceMapInput=w$;function E$(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var n=Go(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var i=n.path.lastIndexOf("/");i>=0&&(n.path=n.path.substring(0,i+1))}t=eC(ws(n),t)}return $g(t)}_t.computeSourceURL=E$});var Hg=m(iC=>{var Vg=bs(),Kg=Object.prototype.hasOwnProperty,bi=typeof Map<"u";function cn(){this._array=[],this._set=bi?new Map:Object.create(null)}cn.fromArray=function(t,r){for(var n=new cn,i=0,s=t.length;i<s;i++)n.add(t[i],r);return n};cn.prototype.size=function(){return bi?this._set.size:Object.getOwnPropertyNames(this._set).length};cn.prototype.add=function(t,r){var n=bi?t:Vg.toSetString(t),i=bi?this.has(t):Kg.call(this._set,n),s=this._array.length;(!i||r)&&this._array.push(t),i||(bi?this._set.set(t,s):this._set[n]=s)};cn.prototype.has=function(t){if(bi)return this._set.has(t);var r=Vg.toSetString(t);return Kg.call(this._set,r)};cn.prototype.indexOf=function(t){if(bi){var r=this._set.get(t);if(r>=0)return r}else{var n=Vg.toSetString(t);if(Kg.call(this._set,n))return this._set[n]}throw new Error('"'+t+'" is not in the set.')};cn.prototype.at=function(t){if(t>=0&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)};cn.prototype.toArray=function(){return this._array.slice()};iC.ArraySet=cn});var aC=m(oC=>{var sC=bs();function b$(e,t){var r=e.generatedLine,n=t.generatedLine,i=e.generatedColumn,s=t.generatedColumn;return n>r||n==r&&s>=i||sC.compareByGeneratedPositionsInflated(e,t)<=0}function $l(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}$l.prototype.unsortedForEach=function(t,r){this._array.forEach(t,r)};$l.prototype.add=function(t){b$(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))};$l.prototype.toArray=function(){return this._sorted||(this._array.sort(sC.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};oC.MappingList=$l});var Wg=m(cC=>{var $o=Gg(),Ke=bs(),Vl=Hg().ArraySet,A$=aC().MappingList;function Yt(e){e||(e={}),this._file=Ke.getArg(e,"file",null),this._sourceRoot=Ke.getArg(e,"sourceRoot",null),this._skipValidation=Ke.getArg(e,"skipValidation",!1),this._sources=new Vl,this._names=new Vl,this._mappings=new A$,this._sourcesContents=null}Yt.prototype._version=3;Yt.fromSourceMap=function(t){var r=t.sourceRoot,n=new Yt({file:t.file,sourceRoot:r});return t.eachMapping(function(i){var s={generated:{line:i.generatedLine,column:i.generatedColumn}};i.source!=null&&(s.source=i.source,r!=null&&(s.source=Ke.relative(r,s.source)),s.original={line:i.originalLine,column:i.originalColumn},i.name!=null&&(s.name=i.name)),n.addMapping(s)}),t.sources.forEach(function(i){var s=i;r!==null&&(s=Ke.relative(r,i)),n._sources.has(s)||n._sources.add(s);var a=t.sourceContentFor(i);a!=null&&n.setSourceContent(i,a)}),n};Yt.prototype.addMapping=function(t){var r=Ke.getArg(t,"generated"),n=Ke.getArg(t,"original",null),i=Ke.getArg(t,"source",null),s=Ke.getArg(t,"name",null);this._skipValidation||this._validateMapping(r,n,i,s),i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),s!=null&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:i,name:s})};Yt.prototype.setSourceContent=function(t,r){var n=t;this._sourceRoot!=null&&(n=Ke.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Ke.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[Ke.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};Yt.prototype.applySourceMap=function(t,r,n){var i=r;if(r==null){if(t.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);i=t.file}var s=this._sourceRoot;s!=null&&(i=Ke.relative(s,i));var a=new Vl,c=new Vl;this._mappings.unsortedForEach(function(l){if(l.source===i&&l.originalLine!=null){var u=t.originalPositionFor({line:l.originalLine,column:l.originalColumn});u.source!=null&&(l.source=u.source,n!=null&&(l.source=Ke.join(n,l.source)),s!=null&&(l.source=Ke.relative(s,l.source)),l.originalLine=u.line,l.originalColumn=u.column,u.name!=null&&(l.name=u.name))}var f=l.source;f!=null&&!a.has(f)&&a.add(f);var _=l.name;_!=null&&!c.has(_)&&c.add(_)},this),this._sources=a,this._names=c,t.sources.forEach(function(l){var u=t.sourceContentFor(l);u!=null&&(n!=null&&(l=Ke.join(n,l)),s!=null&&(l=Ke.relative(s,l)),this.setSourceContent(l,u))},this)};Yt.prototype._validateMapping=function(t,r,n,i){if(r&&typeof r.line!="number"&&typeof r.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(t&&"line"in t&&"column"in t&&t.line>0&&t.column>=0&&!r&&!n&&!i)){if(t&&"line"in t&&"column"in t&&r&&"line"in r&&"column"in r&&t.line>0&&t.column>=0&&r.line>0&&r.column>=0&&n)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:t,source:n,original:r,name:i}))}};Yt.prototype._serializeMappings=function(){for(var t=0,r=1,n=0,i=0,s=0,a=0,c="",l,u,f,_,h=this._mappings.toArray(),v=0,S=h.length;v<S;v++){if(u=h[v],l="",u.generatedLine!==r)for(t=0;u.generatedLine!==r;)l+=";",r++;else if(v>0){if(!Ke.compareByGeneratedPositionsInflated(u,h[v-1]))continue;l+=","}l+=$o.encode(u.generatedColumn-t),t=u.generatedColumn,u.source!=null&&(_=this._sources.indexOf(u.source),l+=$o.encode(_-a),a=_,l+=$o.encode(u.originalLine-1-i),i=u.originalLine-1,l+=$o.encode(u.originalColumn-n),n=u.originalColumn,u.name!=null&&(f=this._names.indexOf(u.name),l+=$o.encode(f-s),s=f)),c+=l}return c};Yt.prototype._generateSourcesContent=function(t,r){return t.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=Ke.relative(r,n));var i=Ke.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)};Yt.prototype.toJSON=function(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(t.file=this._file),this._sourceRoot!=null&&(t.sourceRoot=this._sourceRoot),this._sourcesContents&&(t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot)),t};Yt.prototype.toString=function(){return JSON.stringify(this.toJSON())};cC.SourceMapGenerator=Yt});var lC=m(Ai=>{Ai.GREATEST_LOWER_BOUND=1;Ai.LEAST_UPPER_BOUND=2;function Jg(e,t,r,n,i,s){var a=Math.floor((t-e)/2)+e,c=i(r,n[a],!0);return c===0?a:c>0?t-a>1?Jg(a,t,r,n,i,s):s==Ai.LEAST_UPPER_BOUND?t<n.length?t:-1:a:a-e>1?Jg(e,a,r,n,i,s):s==Ai.LEAST_UPPER_BOUND?a:e<0?-1:e}Ai.search=function(t,r,n,i){if(r.length===0)return-1;var s=Jg(-1,r.length,t,r,n,i||Ai.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&n(r[s],r[s-1],!0)===0;)--s;return s}});var uC=m(dC=>{function Yg(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function T$(e,t){return Math.round(e+Math.random()*(t-e))}function Qg(e,t,r,n){if(r<n){var i=T$(r,n),s=r-1;Yg(e,i,n);for(var a=e[n],c=r;c<n;c++)t(e[c],a)<=0&&(s+=1,Yg(e,s,c));Yg(e,s+1,c);var l=s+1;Qg(e,t,r,l-1),Qg(e,t,l+1,n)}}dC.quickSort=function(e,t){Qg(e,t,0,e.length-1)}});var mC=m(Kl=>{var V=bs(),Xg=lC(),As=Hg().ArraySet,C$=Gg(),Vo=uC().quickSort;function ze(e,t){var r=e;return typeof e=="string"&&(r=V.parseSourceMapInput(e)),r.sections!=null?new or(r,t):new lt(r,t)}ze.fromSourceMap=function(e,t){return lt.fromSourceMap(e,t)};ze.prototype._version=3;ze.prototype.__generatedMappings=null;Object.defineProperty(ze.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});ze.prototype.__originalMappings=null;Object.defineProperty(ze.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});ze.prototype._charIsMappingSeparator=function(t,r){var n=t.charAt(r);return n===";"||n===","};ze.prototype._parseMappings=function(t,r){throw new Error("Subclasses must implement _parseMappings")};ze.GENERATED_ORDER=1;ze.ORIGINAL_ORDER=2;ze.GREATEST_LOWER_BOUND=1;ze.LEAST_UPPER_BOUND=2;ze.prototype.eachMapping=function(t,r,n){var i=r||null,s=n||ze.GENERATED_ORDER,a;switch(s){case ze.GENERATED_ORDER:a=this._generatedMappings;break;case ze.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var c=this.sourceRoot;a.map(function(l){var u=l.source===null?null:this._sources.at(l.source);return u=V.computeSourceURL(c,u,this._sourceMapURL),{source:u,generatedLine:l.generatedLine,generatedColumn:l.generatedColumn,originalLine:l.originalLine,originalColumn:l.originalColumn,name:l.name===null?null:this._names.at(l.name)}},this).forEach(t,i)};ze.prototype.allGeneratedPositionsFor=function(t){var r=V.getArg(t,"line"),n={source:V.getArg(t,"source"),originalLine:r,originalColumn:V.getArg(t,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],s=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",V.compareByOriginalPositions,Xg.LEAST_UPPER_BOUND);if(s>=0){var a=this._originalMappings[s];if(t.column===void 0)for(var c=a.originalLine;a&&a.originalLine===c;)i.push({line:V.getArg(a,"generatedLine",null),column:V.getArg(a,"generatedColumn",null),lastColumn:V.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s];else for(var l=a.originalColumn;a&&a.originalLine===r&&a.originalColumn==l;)i.push({line:V.getArg(a,"generatedLine",null),column:V.getArg(a,"generatedColumn",null),lastColumn:V.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s]}return i};Kl.SourceMapConsumer=ze;function lt(e,t){var r=e;typeof e=="string"&&(r=V.parseSourceMapInput(e));var n=V.getArg(r,"version"),i=V.getArg(r,"sources"),s=V.getArg(r,"names",[]),a=V.getArg(r,"sourceRoot",null),c=V.getArg(r,"sourcesContent",null),l=V.getArg(r,"mappings"),u=V.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);a&&(a=V.normalize(a)),i=i.map(String).map(V.normalize).map(function(f){return a&&V.isAbsolute(a)&&V.isAbsolute(f)?V.relative(a,f):f}),this._names=As.fromArray(s.map(String),!0),this._sources=As.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(f){return V.computeSourceURL(a,f,t)}),this.sourceRoot=a,this.sourcesContent=c,this._mappings=l,this._sourceMapURL=t,this.file=u}lt.prototype=Object.create(ze.prototype);lt.prototype.consumer=ze;lt.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=V.relative(this.sourceRoot,t)),this._sources.has(t))return this._sources.indexOf(t);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==e)return r;return-1};lt.fromSourceMap=function(t,r){var n=Object.create(lt.prototype),i=n._names=As.fromArray(t._names.toArray(),!0),s=n._sources=As.fromArray(t._sources.toArray(),!0);n.sourceRoot=t._sourceRoot,n.sourcesContent=t._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=t._file,n._sourceMapURL=r,n._absoluteSources=n._sources.toArray().map(function(v){return V.computeSourceURL(n.sourceRoot,v,r)});for(var a=t._mappings.toArray().slice(),c=n.__generatedMappings=[],l=n.__originalMappings=[],u=0,f=a.length;u<f;u++){var _=a[u],h=new fC;h.generatedLine=_.generatedLine,h.generatedColumn=_.generatedColumn,_.source&&(h.source=s.indexOf(_.source),h.originalLine=_.originalLine,h.originalColumn=_.originalColumn,_.name&&(h.name=i.indexOf(_.name)),l.push(h)),c.push(h)}return Vo(n.__originalMappings,V.compareByOriginalPositions),n};lt.prototype._version=3;Object.defineProperty(lt.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function fC(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}lt.prototype._parseMappings=function(t,r){for(var n=1,i=0,s=0,a=0,c=0,l=0,u=t.length,f=0,_={},h={},v=[],S=[],g,I,O,C,k;f<u;)if(t.charAt(f)===";")n++,f++,i=0;else if(t.charAt(f)===",")f++;else{for(g=new fC,g.generatedLine=n,C=f;C<u&&!this._charIsMappingSeparator(t,C);C++);if(I=t.slice(f,C),O=_[I],O)f+=I.length;else{for(O=[];f<C;)C$.decode(t,f,h),k=h.value,f=h.rest,O.push(k);if(O.length===2)throw new Error("Found a source, but no line and column");if(O.length===3)throw new Error("Found a source and line, but no column");_[I]=O}g.generatedColumn=i+O[0],i=g.generatedColumn,O.length>1&&(g.source=c+O[1],c+=O[1],g.originalLine=s+O[2],s=g.originalLine,g.originalLine+=1,g.originalColumn=a+O[3],a=g.originalColumn,O.length>4&&(g.name=l+O[4],l+=O[4])),S.push(g),typeof g.originalLine=="number"&&v.push(g)}Vo(S,V.compareByGeneratedPositionsDeflated),this.__generatedMappings=S,Vo(v,V.compareByOriginalPositions),this.__originalMappings=v};lt.prototype._findMapping=function(t,r,n,i,s,a){if(t[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+t[n]);if(t[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+t[i]);return Xg.search(t,r,s,a)};lt.prototype.computeColumnSpans=function(){for(var t=0;t<this._generatedMappings.length;++t){var r=this._generatedMappings[t];if(t+1<this._generatedMappings.length){var n=this._generatedMappings[t+1];if(r.generatedLine===n.generatedLine){r.lastGeneratedColumn=n.generatedColumn-1;continue}}r.lastGeneratedColumn=1/0}};lt.prototype.originalPositionFor=function(t){var r={generatedLine:V.getArg(t,"line"),generatedColumn:V.getArg(t,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",V.compareByGeneratedPositionsDeflated,V.getArg(t,"bias",ze.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var s=V.getArg(i,"source",null);s!==null&&(s=this._sources.at(s),s=V.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var a=V.getArg(i,"name",null);return a!==null&&(a=this._names.at(a)),{source:s,line:V.getArg(i,"originalLine",null),column:V.getArg(i,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}};lt.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1};lt.prototype.sourceContentFor=function(t,r){if(!this.sourcesContent)return null;var n=this._findSourceIndex(t);if(n>=0)return this.sourcesContent[n];var i=t;this.sourceRoot!=null&&(i=V.relative(this.sourceRoot,i));var s;if(this.sourceRoot!=null&&(s=V.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if(s.scheme=="file"&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!s.path||s.path=="/")&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(r)return null;throw new Error('"'+i+'" is not in the SourceMap.')};lt.prototype.generatedPositionFor=function(t){var r=V.getArg(t,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:V.getArg(t,"line"),originalColumn:V.getArg(t,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",V.compareByOriginalPositions,V.getArg(t,"bias",ze.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===n.source)return{line:V.getArg(s,"generatedLine",null),column:V.getArg(s,"generatedColumn",null),lastColumn:V.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};Kl.BasicSourceMapConsumer=lt;function or(e,t){var r=e;typeof e=="string"&&(r=V.parseSourceMapInput(e));var n=V.getArg(r,"version"),i=V.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new As,this._names=new As;var s={line:-1,column:0};this._sections=i.map(function(a){if(a.url)throw new Error("Support for url field in sections not implemented.");var c=V.getArg(a,"offset"),l=V.getArg(c,"line"),u=V.getArg(c,"column");if(l<s.line||l===s.line&&u<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=c,{generatedOffset:{generatedLine:l+1,generatedColumn:u+1},consumer:new ze(V.getArg(a,"map"),t)}})}or.prototype=Object.create(ze.prototype);or.prototype.constructor=ze;or.prototype._version=3;Object.defineProperty(or.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var r=0;r<this._sections[t].consumer.sources.length;r++)e.push(this._sections[t].consumer.sources[r]);return e}});or.prototype.originalPositionFor=function(t){var r={generatedLine:V.getArg(t,"line"),generatedColumn:V.getArg(t,"column")},n=Xg.search(r,this._sections,function(s,a){var c=s.generatedLine-a.generatedOffset.generatedLine;return c||s.generatedColumn-a.generatedOffset.generatedColumn}),i=this._sections[n];return i?i.consumer.originalPositionFor({line:r.generatedLine-(i.generatedOffset.generatedLine-1),column:r.generatedColumn-(i.generatedOffset.generatedLine===r.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:t.bias}):{source:null,line:null,column:null,name:null}};or.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})};or.prototype.sourceContentFor=function(t,r){for(var n=0;n<this._sections.length;n++){var i=this._sections[n],s=i.consumer.sourceContentFor(t,!0);if(s)return s}if(r)return null;throw new Error('"'+t+'" is not in the SourceMap.')};or.prototype.generatedPositionFor=function(t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex(V.getArg(t,"source"))!==-1){var i=n.consumer.generatedPositionFor(t);if(i){var s={line:i.line+(n.generatedOffset.generatedLine-1),column:i.column+(n.generatedOffset.generatedLine===i.line?n.generatedOffset.generatedColumn-1:0)};return s}}}return{line:null,column:null}};or.prototype._parseMappings=function(t,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],s=i.consumer._generatedMappings,a=0;a<s.length;a++){var c=s[a],l=i.consumer._sources.at(c.source);l=V.computeSourceURL(i.consumer.sourceRoot,l,this._sourceMapURL),this._sources.add(l),l=this._sources.indexOf(l);var u=null;c.name&&(u=i.consumer._names.at(c.name),this._names.add(u),u=this._names.indexOf(u));var f={source:l,generatedLine:c.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:c.generatedColumn+(i.generatedOffset.generatedLine===c.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:c.originalLine,originalColumn:c.originalColumn,name:u};this.__generatedMappings.push(f),typeof f.originalLine=="number"&&this.__originalMappings.push(f)}Vo(this.__generatedMappings,V.compareByGeneratedPositionsDeflated),Vo(this.__originalMappings,V.compareByOriginalPositions)};Kl.IndexedSourceMapConsumer=or});var _C=m(pC=>{var x$=Wg().SourceMapGenerator,Hl=bs(),I$=/(\r?\n)/,R$=10,Ts="$$$isSourceNode$$$";function Bt(e,t,r,n,i){this.children=[],this.sourceContents={},this.line=e??null,this.column=t??null,this.source=r??null,this.name=i??null,this[Ts]=!0,n!=null&&this.add(n)}Bt.fromStringWithSourceMap=function(t,r,n){var i=new Bt,s=t.split(I$),a=0,c=function(){var h=S(),v=S()||"";return h+v;function S(){return a<s.length?s[a++]:void 0}},l=1,u=0,f=null;return r.eachMapping(function(h){if(f!==null)if(l<h.generatedLine)_(f,c()),l++,u=0;else{var v=s[a]||"",S=v.substr(0,h.generatedColumn-u);s[a]=v.substr(h.generatedColumn-u),u=h.generatedColumn,_(f,S),f=h;return}for(;l<h.generatedLine;)i.add(c()),l++;if(u<h.generatedColumn){var v=s[a]||"";i.add(v.substr(0,h.generatedColumn)),s[a]=v.substr(h.generatedColumn),u=h.generatedColumn}f=h},this),a<s.length&&(f&&_(f,c()),i.add(s.splice(a).join(""))),r.sources.forEach(function(h){var v=r.sourceContentFor(h);v!=null&&(n!=null&&(h=Hl.join(n,h)),i.setSourceContent(h,v))}),i;function _(h,v){if(h===null||h.source===void 0)i.add(v);else{var S=n?Hl.join(n,h.source):h.source;i.add(new Bt(h.originalLine,h.originalColumn,S,v,h.name))}}};Bt.prototype.add=function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r)},this);else if(t[Ts]||typeof t=="string")t&&this.children.push(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this};Bt.prototype.prepend=function(t){if(Array.isArray(t))for(var r=t.length-1;r>=0;r--)this.prepend(t[r]);else if(t[Ts]||typeof t=="string")this.children.unshift(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this};Bt.prototype.walk=function(t){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[Ts]?r.walk(t):r!==""&&t(r,{source:this.source,line:this.line,column:this.column,name:this.name})};Bt.prototype.join=function(t){var r,n,i=this.children.length;if(i>0){for(r=[],n=0;n<i-1;n++)r.push(this.children[n]),r.push(t);r.push(this.children[n]),this.children=r}return this};Bt.prototype.replaceRight=function(t,r){var n=this.children[this.children.length-1];return n[Ts]?n.replaceRight(t,r):typeof n=="string"?this.children[this.children.length-1]=n.replace(t,r):this.children.push("".replace(t,r)),this};Bt.prototype.setSourceContent=function(t,r){this.sourceContents[Hl.toSetString(t)]=r};Bt.prototype.walkSourceContents=function(t){for(var r=0,n=this.children.length;r<n;r++)this.children[r][Ts]&&this.children[r].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)t(Hl.fromSetString(i[r]),this.sourceContents[i[r]])};Bt.prototype.toString=function(){var t="";return this.walk(function(r){t+=r}),t};Bt.prototype.toStringWithSourceMap=function(t){var r={code:"",line:1,column:0},n=new x$(t),i=!1,s=null,a=null,c=null,l=null;return this.walk(function(u,f){r.code+=u,f.source!==null&&f.line!==null&&f.column!==null?((s!==f.source||a!==f.line||c!==f.column||l!==f.name)&&n.addMapping({source:f.source,original:{line:f.line,column:f.column},generated:{line:r.line,column:r.column},name:f.name}),s=f.source,a=f.line,c=f.column,l=f.name,i=!0):i&&(n.addMapping({generated:{line:r.line,column:r.column}}),s=null,i=!1);for(var _=0,h=u.length;_<h;_++)u.charCodeAt(_)===R$?(r.line++,r.column=0,_+1===h?(s=null,i=!1):i&&n.addMapping({source:f.source,original:{line:f.line,column:f.column},generated:{line:r.line,column:r.column},name:f.name})):r.column++}),this.walkSourceContents(function(u,f){n.setSourceContent(u,f)}),{code:r.code,map:n}};pC.SourceNode=Bt});var hC=m(Wl=>{Wl.SourceMapGenerator=Wg().SourceMapGenerator;Wl.SourceMapConsumer=mC().SourceMapConsumer;Wl.SourceNode=_C().SourceNode});var gC=m((DTe,yC)=>{var N$=Object.prototype.toString,Zg=typeof Buffer<"u"&&typeof Buffer.alloc=="function"&&typeof Buffer.allocUnsafe=="function"&&typeof Buffer.from=="function";function P$(e){return N$.call(e).slice(8,-1)==="ArrayBuffer"}function D$(e,t,r){t>>>=0;var n=e.byteLength-t;if(n<0)throw new RangeError("'offset' is out of bounds");if(r===void 0)r=n;else if(r>>>=0,r>n)throw new RangeError("'length' is out of bounds");return Zg?Buffer.from(e.slice(t,t+r)):new Buffer(new Uint8Array(e.slice(t,t+r)))}function O$(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!Buffer.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');return Zg?Buffer.from(e,t):new Buffer(e,t)}function L$(e,t,r){if(typeof e=="number")throw new TypeError('"value" argument must not be a number');return P$(e)?D$(e,t,r):typeof e=="string"?O$(e,t):Zg?Buffer.from(e):new Buffer(e)}yC.exports=L$});var CC=m((Ci,nv)=>{var q$=hC().SourceMapConsumer,ev=require("path"),gr;try{gr=require("fs"),(!gr.existsSync||!gr.readFileSync)&&(gr=null)}catch{}var M$=gC();function vC(e,t){return e.require(t)}var SC=!1,wC=!1,tv=!1,Ko="auto",Ti={},Ho={},z$=/^data:application\/json[^,]+base64,/,Bn=[],Gn=[];function iv(){return Ko==="browser"?!0:Ko==="node"?!1:typeof window<"u"&&typeof XMLHttpRequest=="function"&&!(window.require&&window.module&&window.process&&window.process.type==="renderer")}function j$(){return typeof process=="object"&&process!==null&&typeof process.on=="function"}function k$(){return typeof process=="object"&&process!==null?process.version:""}function F$(){if(typeof process=="object"&&process!==null)return process.stderr}function U$(e){if(typeof process=="object"&&process!==null&&typeof process.exit=="function")return process.exit(e)}function Jl(e){return function(t){for(var r=0;r<e.length;r++){var n=e[r](t);if(n)return n}return null}}var sv=Jl(Bn);Bn.push(function(e){if(e=e.trim(),/^file:/.test(e)&&(e=e.replace(/file:\/\/\/(\w:)?/,function(n,i){return i?"":"/"})),e in Ti)return Ti[e];var t="";try{if(gr)gr.existsSync(e)&&(t=gr.readFileSync(e,"utf8"));else{var r=new XMLHttpRequest;r.open("GET",e,!1),r.send(null),r.readyState===4&&r.status===200&&(t=r.responseText)}}catch{}return Ti[e]=t});function rv(e,t){if(!e)return t;var r=ev.dirname(e),n=/^\w+:\/\/[^\/]*/.exec(r),i=n?n[0]:"",s=r.slice(i.length);return i&&/^\/\w\:/.test(s)?(i+="/",i+ev.resolve(r.slice(i.length),t).replace(/\\/g,"/")):i+ev.resolve(r.slice(i.length),t)}function B$(e){var t;if(iv())try{var r=new XMLHttpRequest;r.open("GET",e,!1),r.send(null),t=r.readyState===4?r.responseText:null;var n=r.getResponseHeader("SourceMap")||r.getResponseHeader("X-SourceMap");if(n)return n}catch{}t=sv(e);for(var i=/(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/mg,s,a;a=i.exec(t);)s=a;return s?s[1]:null}var ov=Jl(Gn);Gn.push(function(e){var t=B$(e);if(!t)return null;var r;if(z$.test(t)){var n=t.slice(t.indexOf(",")+1);r=M$(n,"base64").toString(),t=e}else t=rv(e,t),r=sv(t);return r?{url:t,map:r}:null});function av(e){var t=Ho[e.source];if(!t){var r=ov(e.source);r?(t=Ho[e.source]={url:r.url,map:new q$(r.map)},t.map.sourcesContent&&t.map.sources.forEach(function(i,s){var a=t.map.sourcesContent[s];if(a){var c=rv(t.url,i);Ti[c]=a}})):t=Ho[e.source]={url:null,map:null}}if(t&&t.map&&typeof t.map.originalPositionFor=="function"){var n=t.map.originalPositionFor(e);if(n.source!==null)return n.source=rv(t.url,n.source),n}return e}function bC(e){var t=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(e);if(t){var r=av({source:t[2],line:+t[3],column:t[4]-1});return"eval at "+t[1]+" ("+r.source+":"+r.line+":"+(r.column+1)+")"}return t=/^eval at ([^(]+) \((.+)\)$/.exec(e),t?"eval at "+t[1]+" ("+bC(t[2])+")":e}function G$(){var e,t="";if(this.isNative())t="native";else{e=this.getScriptNameOrSourceURL(),!e&&this.isEval()&&(t=this.getEvalOrigin(),t+=", "),e?t+=e:t+="<anonymous>";var r=this.getLineNumber();if(r!=null){t+=":"+r;var n=this.getColumnNumber();n&&(t+=":"+n)}}var i="",s=this.getFunctionName(),a=!0,c=this.isConstructor(),l=!(this.isToplevel()||c);if(l){var u=this.getTypeName();u==="[object Object]"&&(u="null");var f=this.getMethodName();s?(u&&s.indexOf(u)!=0&&(i+=u+"."),i+=s,f&&s.indexOf("."+f)!=s.length-f.length-1&&(i+=" [as "+f+"]")):i+=u+"."+(f||"<anonymous>")}else c?i+="new "+(s||"<anonymous>"):s?i+=s:(i+=t,a=!1);return a&&(i+=" ("+t+")"),i}function EC(e){var t={};return Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(function(r){t[r]=/^(?:is|get)/.test(r)?function(){return e[r].call(e)}:e[r]}),t.toString=G$,t}function AC(e,t){if(t===void 0&&(t={nextPosition:null,curPosition:null}),e.isNative())return t.curPosition=null,e;var r=e.getFileName()||e.getScriptNameOrSourceURL();if(r){var n=e.getLineNumber(),i=e.getColumnNumber()-1,s=/^v(10\.1[6-9]|10\.[2-9][0-9]|10\.[0-9]{3,}|1[2-9]\d*|[2-9]\d|\d{3,}|11\.11)/,a=s.test(k$())?0:62;n===1&&i>a&&!iv()&&!e.isEval()&&(i-=a);var c=av({source:r,line:n,column:i});t.curPosition=c,e=EC(e);var l=e.getFunctionName;return e.getFunctionName=function(){return t.nextPosition==null?l():t.nextPosition.name||l()},e.getFileName=function(){return c.source},e.getLineNumber=function(){return c.line},e.getColumnNumber=function(){return c.column+1},e.getScriptNameOrSourceURL=function(){return c.source},e}var u=e.isEval()&&e.getEvalOrigin();return u&&(u=bC(u),e=EC(e),e.getEvalOrigin=function(){return u}),e}function $$(e,t){tv&&(Ti={},Ho={});for(var r=e.name||"Error",n=e.message||"",i=r+": "+n,s={nextPosition:null,curPosition:null},a=[],c=t.length-1;c>=0;c--)a.push(`
2
+ at `+AC(t[c],s)),s.nextPosition=s.curPosition;return s.curPosition=s.nextPosition=null,i+a.reverse().join("")}function TC(e){var t=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(e.stack);if(t){var r=t[1],n=+t[2],i=+t[3],s=Ti[r];if(!s&&gr&&gr.existsSync(r))try{s=gr.readFileSync(r,"utf8")}catch{s=""}if(s){var a=s.split(/(?:\r\n|\r|\n)/)[n-1];if(a)return r+":"+n+`
3
3
  `+a+`
4
- `+new Array(i).join(" ")+"^"}}return null}function Jj(e){var t=jS(e),n=Kj();n&&n._handle&&n._handle.setBlocking&&n._handle.setBlocking(!0),t&&(console.error(),console.error(t)),console.error(e.stack),Vj(1)}function Qj(){var e=process.emit;process.emit=function(t){if(t==="uncaughtException"){var n=arguments[1]&&arguments[1].stack,r=this.listeners(t).length>0;if(n&&!r)return Jj(arguments[1])}return e.apply(this,arguments)}}var Xj=Ir.slice(0),Zj=Rr.slice(0);di.wrapCallSite=kS;di.getErrorSource=jS;di.mapSourcePosition=D_;di.retrieveSourceMap=P_;di.install=function(e){if(e=e||{},e.environment&&(ha=e.environment,["node","browser","auto"].indexOf(ha)===-1))throw new Error("environment "+ha+" was unknown. Available options are {auto, browser, node}");if(e.retrieveFile&&(e.overrideRetrieveFile&&(Ir.length=0),Ir.unshift(e.retrieveFile)),e.retrieveSourceMap&&(e.overrideRetrieveSourceMap&&(Rr.length=0),Rr.unshift(e.retrieveSourceMap)),e.hookRequire&&!I_()){var t=DS(O_,"module"),n=t.prototype._compile;n.__sourceMapSupport||(t.prototype._compile=function(s,a){return ci[a]=s,ga[a]=void 0,n.call(this,s,a)},t.prototype._compile.__sourceMapSupport=!0)}if(x_||(x_="emptyCacheBetweenOperations"in e?e.emptyCacheBetweenOperations:!1),OS||(OS=!0,Error.prepareStackTrace=Yj),!LS){var r="handleUncaughtExceptions"in e?e.handleUncaughtExceptions:!0;try{var i=DS(O_,"worker_threads");i.isMainThread===!1&&(r=!1)}catch{}r&&Gj()&&(LS=!0,Qj())}};di.resetRetrieveHandlers=function(){Ir.length=0,Rr.length=0,Ir=Xj.slice(0),Rr=Zj.slice(0),P_=Zo(Rr),R_=Zo(Ir)}});var se=p((fhe,nl)=>{var FS,BS,GS,$S,KS,VS,HS,WS,YS,el,L_,JS,QS,XS,ns,ZS,ew,tw,nw,rw,iw,sw,aw,tl;(function(e){var t=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(r){e(n(t,n(r)))}):typeof nl=="object"&&typeof nl.exports=="object"?e(n(t,n(nl.exports))):e(n(t));function n(r,i){return r!==t&&(typeof Object.create=="function"?Object.defineProperty(r,"__esModule",{value:!0}):r.__esModule=!0),function(s,a){return r[s]=i?i(s,a):a}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])};FS=function(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");t(r,i);function s(){this.constructor=r}r.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)},BS=Object.assign||function(r){for(var i,s=1,a=arguments.length;s<a;s++){i=arguments[s];for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(r[l]=i[l])}return r},GS=function(r,i){var s={};for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&i.indexOf(a)<0&&(s[a]=r[a]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,a=Object.getOwnPropertySymbols(r);l<a.length;l++)i.indexOf(a[l])<0&&Object.prototype.propertyIsEnumerable.call(r,a[l])&&(s[a[l]]=r[a[l]]);return s},$S=function(r,i,s,a){var l=arguments.length,c=l<3?i:a===null?a=Object.getOwnPropertyDescriptor(i,s):a,d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(r,i,s,a);else for(var u=r.length-1;u>=0;u--)(d=r[u])&&(c=(l<3?d(c):l>3?d(i,s,c):d(i,s))||c);return l>3&&c&&Object.defineProperty(i,s,c),c},KS=function(r,i){return function(s,a){i(s,a,r)}},VS=function(r,i){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,i)},HS=function(r,i,s,a){function l(c){return c instanceof s?c:new s(function(d){d(c)})}return new(s||(s=Promise))(function(c,d){function u(b){try{g(a.next(b))}catch(S){d(S)}}function _(b){try{g(a.throw(b))}catch(S){d(S)}}function g(b){b.done?c(b.value):l(b.value).then(u,_)}g((a=a.apply(r,i||[])).next())})},WS=function(r,i){var s={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},a,l,c,d;return d={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function u(g){return function(b){return _([g,b])}}function _(g){if(a)throw new TypeError("Generator is already executing.");for(;s;)try{if(a=1,l&&(c=g[0]&2?l.return:g[0]?l.throw||((c=l.return)&&c.call(l),0):l.next)&&!(c=c.call(l,g[1])).done)return c;switch(l=0,c&&(g=[g[0]&2,c.value]),g[0]){case 0:case 1:c=g;break;case 4:return s.label++,{value:g[1],done:!1};case 5:s.label++,l=g[1],g=[0];continue;case 7:g=s.ops.pop(),s.trys.pop();continue;default:if(c=s.trys,!(c=c.length>0&&c[c.length-1])&&(g[0]===6||g[0]===2)){s=0;continue}if(g[0]===3&&(!c||g[1]>c[0]&&g[1]<c[3])){s.label=g[1];break}if(g[0]===6&&s.label<c[1]){s.label=c[1],c=g;break}if(c&&s.label<c[2]){s.label=c[2],s.ops.push(g);break}c[2]&&s.ops.pop(),s.trys.pop();continue}g=i.call(r,s)}catch(b){g=[6,b],l=0}finally{a=c=0}if(g[0]&5)throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}},YS=function(r,i){for(var s in r)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&tl(i,r,s)},tl=Object.create?function(r,i,s,a){a===void 0&&(a=s),Object.defineProperty(r,a,{enumerable:!0,get:function(){return i[s]}})}:function(r,i,s,a){a===void 0&&(a=s),r[a]=i[s]},el=function(r){var i=typeof Symbol=="function"&&Symbol.iterator,s=i&&r[i],a=0;if(s)return s.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&a>=r.length&&(r=void 0),{value:r&&r[a++],done:!r}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")},L_=function(r,i){var s=typeof Symbol=="function"&&r[Symbol.iterator];if(!s)return r;var a=s.call(r),l,c=[],d;try{for(;(i===void 0||i-- >0)&&!(l=a.next()).done;)c.push(l.value)}catch(u){d={error:u}}finally{try{l&&!l.done&&(s=a.return)&&s.call(a)}finally{if(d)throw d.error}}return c},JS=function(){for(var r=[],i=0;i<arguments.length;i++)r=r.concat(L_(arguments[i]));return r},QS=function(){for(var r=0,i=0,s=arguments.length;i<s;i++)r+=arguments[i].length;for(var a=Array(r),l=0,i=0;i<s;i++)for(var c=arguments[i],d=0,u=c.length;d<u;d++,l++)a[l]=c[d];return a},XS=function(r,i,s){if(s||arguments.length===2)for(var a=0,l=i.length,c;a<l;a++)(c||!(a in i))&&(c||(c=Array.prototype.slice.call(i,0,a)),c[a]=i[a]);return r.concat(c||Array.prototype.slice.call(i))},ns=function(r){return this instanceof ns?(this.v=r,this):new ns(r)},ZS=function(r,i,s){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=s.apply(r,i||[]),l,c=[];return l={},d("next"),d("throw"),d("return"),l[Symbol.asyncIterator]=function(){return this},l;function d(v){a[v]&&(l[v]=function(I){return new Promise(function(L,x){c.push([v,I,L,x])>1||u(v,I)})})}function u(v,I){try{_(a[v](I))}catch(L){S(c[0][3],L)}}function _(v){v.value instanceof ns?Promise.resolve(v.value.v).then(g,b):S(c[0][2],v)}function g(v){u("next",v)}function b(v){u("throw",v)}function S(v,I){v(I),c.shift(),c.length&&u(c[0][0],c[0][1])}},ew=function(r){var i,s;return i={},a("next"),a("throw",function(l){throw l}),a("return"),i[Symbol.iterator]=function(){return this},i;function a(l,c){i[l]=r[l]?function(d){return(s=!s)?{value:ns(r[l](d)),done:l==="return"}:c?c(d):d}:c}},tw=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=r[Symbol.asyncIterator],s;return i?i.call(r):(r=typeof el=="function"?el(r):r[Symbol.iterator](),s={},a("next"),a("throw"),a("return"),s[Symbol.asyncIterator]=function(){return this},s);function a(c){s[c]=r[c]&&function(d){return new Promise(function(u,_){d=r[c](d),l(u,_,d.done,d.value)})}}function l(c,d,u,_){Promise.resolve(_).then(function(g){c({value:g,done:u})},d)}},nw=function(r,i){return Object.defineProperty?Object.defineProperty(r,"raw",{value:i}):r.raw=i,r};var n=Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:!0,value:i})}:function(r,i){r.default=i};rw=function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var s in r)s!=="default"&&Object.prototype.hasOwnProperty.call(r,s)&&tl(i,r,s);return n(i,r),i},iw=function(r){return r&&r.__esModule?r:{default:r}},sw=function(r,i,s,a){if(s==="a"&&!a)throw new TypeError("Private accessor was defined without a getter");if(typeof i=="function"?r!==i||!a:!i.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return s==="m"?a:s==="a"?a.call(r):a?a.value:i.get(r)},aw=function(r,i,s,a,l){if(a==="m")throw new TypeError("Private method is not writable");if(a==="a"&&!l)throw new TypeError("Private accessor was defined without a setter");if(typeof i=="function"?r!==i||!l:!i.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return a==="a"?l.call(r,s):l?l.value=s:i.set(r,s),s},e("__extends",FS),e("__assign",BS),e("__rest",GS),e("__decorate",$S),e("__param",KS),e("__metadata",VS),e("__awaiter",HS),e("__generator",WS),e("__exportStar",YS),e("__createBinding",tl),e("__values",el),e("__read",L_),e("__spread",JS),e("__spreadArrays",QS),e("__spreadArray",XS),e("__await",ns),e("__asyncGenerator",ZS),e("__asyncDelegator",ew),e("__asyncValues",tw),e("__makeTemplateObject",nw),e("__importStar",rw),e("__importDefault",iw),e("__classPrivateFieldGet",sw),e("__classPrivateFieldSet",aw)})});var q_=p(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});rl.deserializerMiddleware=void 0;var ez=(e,t)=>(n,r)=>async i=>{let{response:s}=await n(i);try{let a=await t(s,e);return{response:s,output:a}}catch(a){throw Object.assign(a,{$response:s})}};rl.deserializerMiddleware=ez});var M_=p(il=>{"use strict";Object.defineProperty(il,"__esModule",{value:!0});il.serializerMiddleware=void 0;var tz=(e,t)=>(n,r)=>async i=>{let s=await t(i.input,e);return n(f(o({},i),{request:s}))};il.serializerMiddleware=tz});var ow=p(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.getSerdePlugin=wn.serializerMiddlewareOption=wn.deserializerMiddlewareOption=void 0;var nz=q_(),rz=M_();wn.deserializerMiddlewareOption={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0};wn.serializerMiddlewareOption={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function iz(e,t,n){return{applyToStack:r=>{r.add(nz.deserializerMiddleware(e,n),wn.deserializerMiddlewareOption),r.add(rz.serializerMiddleware(e,t),wn.serializerMiddlewareOption)}}}wn.getSerdePlugin=iz});var B=p(ya=>{"use strict";Object.defineProperty(ya,"__esModule",{value:!0});var k_=se();k_.__exportStar(q_(),ya);k_.__exportStar(ow(),ya);k_.__exportStar(M_(),ya)});var dw=p(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.constructStack=void 0;var sz=()=>{let e=[],t=[],n=new Set,r=u=>u.sort((_,g)=>lw[g.step]-lw[_.step]||cw[g.priority||"normal"]-cw[_.priority||"normal"]),i=u=>{let _=!1,g=b=>b.name&&b.name===u?(_=!0,n.delete(u),!1):!0;return e=e.filter(g),t=t.filter(g),_},s=u=>{let _=!1,g=b=>b.middleware===u?(_=!0,b.name&&n.delete(b.name),!1):!0;return e=e.filter(g),t=t.filter(g),_},a=u=>(e.forEach(_=>{u.add(_.middleware,o({},_))}),t.forEach(_=>{u.addRelativeTo(_.middleware,o({},_))}),u),l=u=>{let _=[];return u.before.forEach(g=>{g.before.length===0&&g.after.length===0?_.push(g):_.push(...l(g))}),_.push(u),u.after.reverse().forEach(g=>{g.before.length===0&&g.after.length===0?_.push(g):_.push(...l(g))}),_},c=()=>{let u=[],_=[],g={};return e.forEach(S=>{let v=f(o({},S),{before:[],after:[]});v.name&&(g[v.name]=v),u.push(v)}),t.forEach(S=>{let v=f(o({},S),{before:[],after:[]});v.name&&(g[v.name]=v),_.push(v)}),_.forEach(S=>{if(S.toMiddleware){let v=g[S.toMiddleware];if(v===void 0)throw new Error(`${S.toMiddleware} is not found when adding ${S.name||"anonymous"} middleware ${S.relation} ${S.toMiddleware}`);S.relation==="after"&&v.after.push(S),S.relation==="before"&&v.before.push(S)}}),r(u).map(l).reduce((S,v)=>(S.push(...v),S),[]).map(S=>S.middleware)},d={add:(u,_={})=>{let{name:g,override:b}=_,S=o({step:"initialize",priority:"normal",middleware:u},_);if(g){if(n.has(g)){if(!b)throw new Error(`Duplicate middleware name '${g}'`);let v=e.findIndex(L=>L.name===g),I=e[v];if(I.step!==S.step||I.priority!==S.priority)throw new Error(`"${g}" middleware with ${I.priority} priority in ${I.step} step cannot be overridden by same-name middleware with ${S.priority} priority in ${S.step} step.`);e.splice(v,1)}n.add(g)}e.push(S)},addRelativeTo:(u,_)=>{let{name:g,override:b}=_,S=o({middleware:u},_);if(g){if(n.has(g)){if(!b)throw new Error(`Duplicate middleware name '${g}'`);let v=t.findIndex(L=>L.name===g),I=t[v];if(I.toMiddleware!==S.toMiddleware||I.relation!==S.relation)throw new Error(`"${g}" middleware ${I.relation} "${I.toMiddleware}" middleware cannot be overridden by same-name middleware ${S.relation} "${S.toMiddleware}" middleware.`);t.splice(v,1)}n.add(g)}t.push(S)},clone:()=>a(rs.constructStack()),use:u=>{u.applyToStack(d)},remove:u=>typeof u=="string"?i(u):s(u),removeByTag:u=>{let _=!1,g=b=>{let{tags:S,name:v}=b;return S&&S.includes(u)?(v&&n.delete(v),_=!0,!1):!0};return e=e.filter(g),t=t.filter(g),_},concat:u=>{let _=a(rs.constructStack());return _.use(u),_},applyToStack:a,resolve:(u,_)=>{for(let g of c().reverse())u=g(u,_);return u}};return d};rs.constructStack=sz;var lw={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},cw={high:3,normal:2,low:1}});var z_=p(j_=>{"use strict";Object.defineProperty(j_,"__esModule",{value:!0});var az=se();az.__exportStar(dw(),j_)});var mw=p(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0});sl.Client=void 0;var oz=z_(),uw=class{constructor(t){this.middlewareStack=oz.constructStack(),this.config=t}send(t,n,r){let i=typeof n!="function"?n:void 0,s=typeof n=="function"?n:r,a=t.resolveMiddleware(this.middlewareStack,this.config,i);if(s)a(t).then(l=>s(null,l.output),l=>s(l)).catch(()=>{});else return a(t).then(l=>l.output)}destroy(){this.config.requestHandler.destroy&&this.config.requestHandler.destroy()}};sl.Client=uw});var pw=p(al=>{"use strict";Object.defineProperty(al,"__esModule",{value:!0});al.Command=void 0;var lz=z_(),fw=class{constructor(){this.middlewareStack=lz.constructStack()}};al.Command=fw});var _w=p(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});ol.SENSITIVE_STRING=void 0;ol.SENSITIVE_STRING="***SensitiveInformation***"});var F_=p(M=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0});M.strictParseByte=M.strictParseShort=M.strictParseInt32=M.strictParseInt=M.strictParseLong=M.limitedParseFloat32=M.limitedParseFloat=M.handleFloat=M.limitedParseDouble=M.strictParseFloat32=M.strictParseFloat=M.strictParseDouble=M.expectUnion=M.expectString=M.expectObject=M.expectNonNull=M.expectByte=M.expectShort=M.expectInt32=M.expectInt=M.expectLong=M.expectFloat32=M.expectNumber=M.expectBoolean=M.parseBoolean=void 0;var cz=e=>{switch(e){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${e}"`)}};M.parseBoolean=cz;var dz=e=>{if(e!=null){if(typeof e=="boolean")return e;throw new TypeError(`Expected boolean, got ${typeof e}`)}};M.expectBoolean=dz;var uz=e=>{if(e!=null){if(typeof e=="number")return e;throw new TypeError(`Expected number, got ${typeof e}`)}};M.expectNumber=uz;var mz=Math.ceil(2**127*(2-2**-23)),fz=e=>{let t=M.expectNumber(e);if(t!==void 0&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>mz)throw new TypeError(`Expected 32-bit float, got ${e}`);return t};M.expectFloat32=fz;var pz=e=>{if(e!=null){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}`)}};M.expectLong=pz;M.expectInt=M.expectLong;var _z=e=>U_(e,32);M.expectInt32=_z;var hz=e=>U_(e,16);M.expectShort=hz;var gz=e=>U_(e,8);M.expectByte=gz;var U_=(e,t)=>{let n=M.expectLong(e);if(n!==void 0&&yz(n,t)!==n)throw new TypeError(`Expected ${t}-bit integer, got ${e}`);return n},yz=(e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}},vz=(e,t)=>{if(e==null)throw t?new TypeError(`Expected a non-null value for ${t}`):new TypeError("Expected a non-null value");return e};M.expectNonNull=vz;var bz=e=>{if(e!=null){if(typeof e=="object"&&!Array.isArray(e))return e;throw new TypeError(`Expected object, got ${typeof e}`)}};M.expectObject=bz;var Sz=e=>{if(e!=null){if(typeof e=="string")return e;throw new TypeError(`Expected string, got ${typeof e}`)}};M.expectString=Sz;var wz=e=>{if(e==null)return;let t=M.expectObject(e),n=Object.entries(t).filter(([r,i])=>i!=null).map(([r,i])=>r);if(n.length===0)throw new TypeError("Unions must have exactly one non-null member");if(n.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${n} were not null.`);return t};M.expectUnion=wz;var Ez=e=>typeof e=="string"?M.expectNumber(is(e)):M.expectNumber(e);M.strictParseDouble=Ez;M.strictParseFloat=M.strictParseDouble;var Az=e=>typeof e=="string"?M.expectFloat32(is(e)):M.expectFloat32(e);M.strictParseFloat32=Az;var Cz=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,is=e=>{let t=e.match(Cz);if(t===null||t[0].length!==e.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(e)},Tz=e=>typeof e=="string"?hw(e):M.expectNumber(e);M.limitedParseDouble=Tz;M.handleFloat=M.limitedParseDouble;M.limitedParseFloat=M.limitedParseDouble;var xz=e=>typeof e=="string"?hw(e):M.expectFloat32(e);M.limitedParseFloat32=xz;var hw=e=>{switch(e){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new Error(`Unable to parse float value: ${e}`)}},Iz=e=>typeof e=="string"?M.expectLong(is(e)):M.expectLong(e);M.strictParseLong=Iz;M.strictParseInt=M.strictParseLong;var Rz=e=>typeof e=="string"?M.expectInt32(is(e)):M.expectInt32(e);M.strictParseInt32=Rz;var Nz=e=>typeof e=="string"?M.expectShort(is(e)):M.expectShort(e);M.strictParseShort=Nz;var Pz=e=>typeof e=="string"?M.expectByte(is(e)):M.expectByte(e);M.strictParseByte=Pz});var gw=p(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.parseEpochTimestamp=En.parseRfc7231DateTime=En.parseRfc3339DateTime=En.dateToUtcString=void 0;var ui=F_(),Dz=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],B_=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Oz(e){let t=e.getUTCFullYear(),n=e.getUTCMonth(),r=e.getUTCDay(),i=e.getUTCDate(),s=e.getUTCHours(),a=e.getUTCMinutes(),l=e.getUTCSeconds(),c=i<10?`0${i}`:`${i}`,d=s<10?`0${s}`:`${s}`,u=a<10?`0${a}`:`${a}`,_=l<10?`0${l}`:`${l}`;return`${Dz[r]}, ${c} ${B_[n]} ${t} ${d}:${u}:${_} GMT`}En.dateToUtcString=Oz;var Lz=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),qz=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let t=Lz.exec(e);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");let[n,r,i,s,a,l,c,d]=t,u=ui.strictParseShort(va(r)),_=Nr(i,"month",1,12),g=Nr(s,"day",1,31);return ll(u,_,g,{hours:a,minutes:l,seconds:c,fractionalMilliseconds:d})};En.parseRfc3339DateTime=qz;var Mz=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),kz=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),jz=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),zz=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let t=Mz.exec(e);if(t){let[n,r,i,s,a,l,c,d]=t;return ll(ui.strictParseShort(va(s)),G_(i),Nr(r,"day",1,31),{hours:a,minutes:l,seconds:c,fractionalMilliseconds:d})}if(t=kz.exec(e),t){let[n,r,i,s,a,l,c,d]=t;return Gz(ll(Fz(s),G_(i),Nr(r,"day",1,31),{hours:a,minutes:l,seconds:c,fractionalMilliseconds:d}))}if(t=jz.exec(e),t){let[n,r,i,s,a,l,c,d]=t;return ll(ui.strictParseShort(va(d)),G_(r),Nr(i.trimLeft(),"day",1,31),{hours:s,minutes:a,seconds:l,fractionalMilliseconds:c})}throw new TypeError("Invalid RFC-7231 date-time value")};En.parseRfc7231DateTime=zz;var Uz=e=>{if(e==null)return;let t;if(typeof e=="number")t=e;else if(typeof e=="string")t=ui.strictParseDouble(e);else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(t)||t===1/0||t===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(t*1e3))};En.parseEpochTimestamp=Uz;var ll=(e,t,n,r)=>{let i=t-1;return Kz(e,i,n),new Date(Date.UTC(e,i,n,Nr(r.hours,"hour",0,23),Nr(r.minutes,"minute",0,59),Nr(r.seconds,"seconds",0,60),Hz(r.fractionalMilliseconds)))},Fz=e=>{let t=new Date().getUTCFullYear(),n=Math.floor(t/100)*100+ui.strictParseShort(va(e));return n<t?n+100:n},Bz=50*365*24*60*60*1e3,Gz=e=>e.getTime()-new Date().getTime()>Bz?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,G_=e=>{let t=B_.indexOf(e);if(t<0)throw new TypeError(`Invalid month: ${e}`);return t+1},$z=[31,28,31,30,31,30,31,31,30,31,30,31],Kz=(e,t,n)=>{let r=$z[t];if(t===1&&Vz(e)&&(r=29),n>r)throw new TypeError(`Invalid day for ${B_[t]} in ${e}: ${n}`)},Vz=e=>e%4===0&&(e%100!==0||e%400===0),Nr=(e,t,n,r)=>{let i=ui.strictParseByte(va(e));if(i<n||i>r)throw new TypeError(`${t} must be between ${n} and ${r}, inclusive`);return i},Hz=e=>e==null?0:ui.strictParseFloat32("0."+e)*1e3,va=e=>{let t=0;for(;t<e.length-1&&e.charAt(t)==="0";)t++;return t===0?e:e.slice(t)}});var yw=p(cl=>{"use strict";Object.defineProperty(cl,"__esModule",{value:!0});cl.loadConfigsForDefaultMode=void 0;var Wz=e=>{switch(e){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}};cl.loadConfigsForDefaultMode=Wz});var bw=p(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});dl.emitWarningIfUnsupportedVersion=void 0;var vw=!1,Yz=e=>{e&&!vw&&parseInt(e.substring(1,e.indexOf(".")))<12&&(vw=!0,process.emitWarning(`The AWS SDK for JavaScript (v3) will
4
+ `+new Array(i).join(" ")+"^"}}return null}function V$(e){var t=TC(e),r=F$();r&&r._handle&&r._handle.setBlocking&&r._handle.setBlocking(!0),t&&(console.error(),console.error(t)),console.error(e.stack),U$(1)}function K$(){var e=process.emit;process.emit=function(t){if(t==="uncaughtException"){var r=arguments[1]&&arguments[1].stack,n=this.listeners(t).length>0;if(r&&!n)return V$(arguments[1])}return e.apply(this,arguments)}}var H$=Bn.slice(0),W$=Gn.slice(0);Ci.wrapCallSite=AC;Ci.getErrorSource=TC;Ci.mapSourcePosition=av;Ci.retrieveSourceMap=ov;Ci.install=function(e){if(e=e||{},e.environment&&(Ko=e.environment,["node","browser","auto"].indexOf(Ko)===-1))throw new Error("environment "+Ko+" was unknown. Available options are {auto, browser, node}");if(e.retrieveFile&&(e.overrideRetrieveFile&&(Bn.length=0),Bn.unshift(e.retrieveFile)),e.retrieveSourceMap&&(e.overrideRetrieveSourceMap&&(Gn.length=0),Gn.unshift(e.retrieveSourceMap)),e.hookRequire&&!iv()){var t=vC(nv,"module"),r=t.prototype._compile;r.__sourceMapSupport||(t.prototype._compile=function(s,a){return Ti[a]=s,Ho[a]=void 0,r.call(this,s,a)},t.prototype._compile.__sourceMapSupport=!0)}if(tv||(tv="emptyCacheBetweenOperations"in e?e.emptyCacheBetweenOperations:!1),SC||(SC=!0,Error.prepareStackTrace=$$),!wC){var n="handleUncaughtExceptions"in e?e.handleUncaughtExceptions:!0;try{var i=vC(nv,"worker_threads");i.isMainThread===!1&&(n=!1)}catch{}n&&j$()&&(wC=!0,K$())}};Ci.resetRetrieveHandlers=function(){Bn.length=0,Gn.length=0,Bn=H$.slice(0),Gn=W$.slice(0),ov=Jl(Gn),sv=Jl(Bn)}});var $=m((OTe,Xl)=>{var IC,RC,NC,PC,DC,OC,LC,qC,MC,Yl,cv,zC,jC,kC,Cs,FC,UC,BC,GC,$C,VC,KC,HC,WC,Ql;(function(e){var t=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){e(r(t,r(n)))}):typeof Xl=="object"&&typeof Xl.exports=="object"?e(r(t,r(Xl.exports))):e(r(t));function r(n,i){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(s,a){return n[s]=i?i(s,a):a}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])};IC=function(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");t(n,i);function s(){this.constructor=n}n.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)},RC=Object.assign||function(n){for(var i,s=1,a=arguments.length;s<a;s++){i=arguments[s];for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(n[c]=i[c])}return n},NC=function(n,i){var s={};for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&i.indexOf(a)<0&&(s[a]=n[a]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,a=Object.getOwnPropertySymbols(n);c<a.length;c++)i.indexOf(a[c])<0&&Object.prototype.propertyIsEnumerable.call(n,a[c])&&(s[a[c]]=n[a[c]]);return s},PC=function(n,i,s,a){var c=arguments.length,l=c<3?i:a===null?a=Object.getOwnPropertyDescriptor(i,s):a,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(n,i,s,a);else for(var f=n.length-1;f>=0;f--)(u=n[f])&&(l=(c<3?u(l):c>3?u(i,s,l):u(i,s))||l);return c>3&&l&&Object.defineProperty(i,s,l),l},DC=function(n,i){return function(s,a){i(s,a,n)}},OC=function(n,i){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,i)},LC=function(n,i,s,a){function c(l){return l instanceof s?l:new s(function(u){u(l)})}return new(s||(s=Promise))(function(l,u){function f(v){try{h(a.next(v))}catch(S){u(S)}}function _(v){try{h(a.throw(v))}catch(S){u(S)}}function h(v){v.done?l(v.value):c(v.value).then(f,_)}h((a=a.apply(n,i||[])).next())})},qC=function(n,i){var s={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},a,c,l,u;return u={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function f(h){return function(v){return _([h,v])}}function _(h){if(a)throw new TypeError("Generator is already executing.");for(;s;)try{if(a=1,c&&(l=h[0]&2?c.return:h[0]?c.throw||((l=c.return)&&l.call(c),0):c.next)&&!(l=l.call(c,h[1])).done)return l;switch(c=0,l&&(h=[h[0]&2,l.value]),h[0]){case 0:case 1:l=h;break;case 4:return s.label++,{value:h[1],done:!1};case 5:s.label++,c=h[1],h=[0];continue;case 7:h=s.ops.pop(),s.trys.pop();continue;default:if(l=s.trys,!(l=l.length>0&&l[l.length-1])&&(h[0]===6||h[0]===2)){s=0;continue}if(h[0]===3&&(!l||h[1]>l[0]&&h[1]<l[3])){s.label=h[1];break}if(h[0]===6&&s.label<l[1]){s.label=l[1],l=h;break}if(l&&s.label<l[2]){s.label=l[2],s.ops.push(h);break}l[2]&&s.ops.pop(),s.trys.pop();continue}h=i.call(n,s)}catch(v){h=[6,v],c=0}finally{a=l=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},MC=function(n,i){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&Ql(i,n,s)},Ql=Object.create?function(n,i,s,a){a===void 0&&(a=s);var c=Object.getOwnPropertyDescriptor(i,s);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[s]}}),Object.defineProperty(n,a,c)}:function(n,i,s,a){a===void 0&&(a=s),n[a]=i[s]},Yl=function(n){var i=typeof Symbol=="function"&&Symbol.iterator,s=i&&n[i],a=0;if(s)return s.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&a>=n.length&&(n=void 0),{value:n&&n[a++],done:!n}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")},cv=function(n,i){var s=typeof Symbol=="function"&&n[Symbol.iterator];if(!s)return n;var a=s.call(n),c,l=[],u;try{for(;(i===void 0||i-- >0)&&!(c=a.next()).done;)l.push(c.value)}catch(f){u={error:f}}finally{try{c&&!c.done&&(s=a.return)&&s.call(a)}finally{if(u)throw u.error}}return l},zC=function(){for(var n=[],i=0;i<arguments.length;i++)n=n.concat(cv(arguments[i]));return n},jC=function(){for(var n=0,i=0,s=arguments.length;i<s;i++)n+=arguments[i].length;for(var a=Array(n),c=0,i=0;i<s;i++)for(var l=arguments[i],u=0,f=l.length;u<f;u++,c++)a[c]=l[u];return a},kC=function(n,i,s){if(s||arguments.length===2)for(var a=0,c=i.length,l;a<c;a++)(l||!(a in i))&&(l||(l=Array.prototype.slice.call(i,0,a)),l[a]=i[a]);return n.concat(l||Array.prototype.slice.call(i))},Cs=function(n){return this instanceof Cs?(this.v=n,this):new Cs(n)},FC=function(n,i,s){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=s.apply(n,i||[]),c,l=[];return c={},u("next"),u("throw"),u("return"),c[Symbol.asyncIterator]=function(){return this},c;function u(g){a[g]&&(c[g]=function(I){return new Promise(function(O,C){l.push([g,I,O,C])>1||f(g,I)})})}function f(g,I){try{_(a[g](I))}catch(O){S(l[0][3],O)}}function _(g){g.value instanceof Cs?Promise.resolve(g.value.v).then(h,v):S(l[0][2],g)}function h(g){f("next",g)}function v(g){f("throw",g)}function S(g,I){g(I),l.shift(),l.length&&f(l[0][0],l[0][1])}},UC=function(n){var i,s;return i={},a("next"),a("throw",function(c){throw c}),a("return"),i[Symbol.iterator]=function(){return this},i;function a(c,l){i[c]=n[c]?function(u){return(s=!s)?{value:Cs(n[c](u)),done:c==="return"}:l?l(u):u}:l}},BC=function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=n[Symbol.asyncIterator],s;return i?i.call(n):(n=typeof Yl=="function"?Yl(n):n[Symbol.iterator](),s={},a("next"),a("throw"),a("return"),s[Symbol.asyncIterator]=function(){return this},s);function a(l){s[l]=n[l]&&function(u){return new Promise(function(f,_){u=n[l](u),c(f,_,u.done,u.value)})}}function c(l,u,f,_){Promise.resolve(_).then(function(h){l({value:h,done:f})},u)}},GC=function(n,i){return Object.defineProperty?Object.defineProperty(n,"raw",{value:i}):n.raw=i,n};var r=Object.create?function(n,i){Object.defineProperty(n,"default",{enumerable:!0,value:i})}:function(n,i){n.default=i};$C=function(n){if(n&&n.__esModule)return n;var i={};if(n!=null)for(var s in n)s!=="default"&&Object.prototype.hasOwnProperty.call(n,s)&&Ql(i,n,s);return r(i,n),i},VC=function(n){return n&&n.__esModule?n:{default:n}},KC=function(n,i,s,a){if(s==="a"&&!a)throw new TypeError("Private accessor was defined without a getter");if(typeof i=="function"?n!==i||!a:!i.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return s==="m"?a:s==="a"?a.call(n):a?a.value:i.get(n)},HC=function(n,i,s,a,c){if(a==="m")throw new TypeError("Private method is not writable");if(a==="a"&&!c)throw new TypeError("Private accessor was defined without a setter");if(typeof i=="function"?n!==i||!c:!i.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return a==="a"?c.call(n,s):c?c.value=s:i.set(n,s),s},WC=function(n,i){if(i===null||typeof i!="object"&&typeof i!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof n=="function"?i===n:n.has(i)},e("__extends",IC),e("__assign",RC),e("__rest",NC),e("__decorate",PC),e("__param",DC),e("__metadata",OC),e("__awaiter",LC),e("__generator",qC),e("__exportStar",MC),e("__createBinding",Ql),e("__values",Yl),e("__read",cv),e("__spread",zC),e("__spreadArrays",jC),e("__spreadArray",kC),e("__await",Cs),e("__asyncGenerator",FC),e("__asyncDelegator",UC),e("__asyncValues",BC),e("__makeTemplateObject",GC),e("__importStar",$C),e("__importDefault",VC),e("__classPrivateFieldGet",KC),e("__classPrivateFieldSet",HC),e("__classPrivateFieldIn",WC)})});var lv=m(Zl=>{"use strict";Object.defineProperty(Zl,"__esModule",{value:!0});Zl.deserializerMiddleware=void 0;var J$=(e,t)=>(r,n)=>async i=>{let{response:s}=await r(i);try{let a=await t(s,e);return{response:s,output:a}}catch(a){throw Object.defineProperty(a,"$response",{value:s}),a}};Zl.deserializerMiddleware=J$});var dv=m(ed=>{"use strict";Object.defineProperty(ed,"__esModule",{value:!0});ed.serializerMiddleware=void 0;var Y$=(e,t)=>(r,n)=>async i=>{let s=await t(i.input,e);return r(y(o({},i),{request:s}))};ed.serializerMiddleware=Y$});var JC=m(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.getSerdePlugin=vr.serializerMiddlewareOption=vr.deserializerMiddlewareOption=void 0;var Q$=lv(),X$=dv();vr.deserializerMiddlewareOption={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0};vr.serializerMiddlewareOption={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function Z$(e,t,r){return{applyToStack:n=>{n.add((0,Q$.deserializerMiddleware)(e,r),vr.deserializerMiddlewareOption),n.add((0,X$.serializerMiddleware)(e,t),vr.serializerMiddlewareOption)}}}vr.getSerdePlugin=Z$});var G=m(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});var uv=$();uv.__exportStar(lv(),Wo);uv.__exportStar(JC(),Wo);uv.__exportStar(dv(),Wo)});var XC=m(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.constructStack=void 0;var e2=()=>{let e=[],t=[],r=new Set,n=f=>f.sort((_,h)=>YC[h.step]-YC[_.step]||QC[h.priority||"normal"]-QC[_.priority||"normal"]),i=f=>{let _=!1,h=v=>v.name&&v.name===f?(_=!0,r.delete(f),!1):!0;return e=e.filter(h),t=t.filter(h),_},s=f=>{let _=!1,h=v=>v.middleware===f?(_=!0,v.name&&r.delete(v.name),!1):!0;return e=e.filter(h),t=t.filter(h),_},a=f=>(e.forEach(_=>{f.add(_.middleware,o({},_))}),t.forEach(_=>{f.addRelativeTo(_.middleware,o({},_))}),f),c=f=>{let _=[];return f.before.forEach(h=>{h.before.length===0&&h.after.length===0?_.push(h):_.push(...c(h))}),_.push(f),f.after.reverse().forEach(h=>{h.before.length===0&&h.after.length===0?_.push(h):_.push(...c(h))}),_},l=()=>{let f=[],_=[],h={};return e.forEach(S=>{let g=y(o({},S),{before:[],after:[]});g.name&&(h[g.name]=g),f.push(g)}),t.forEach(S=>{let g=y(o({},S),{before:[],after:[]});g.name&&(h[g.name]=g),_.push(g)}),_.forEach(S=>{if(S.toMiddleware){let g=h[S.toMiddleware];if(g===void 0)throw new Error(`${S.toMiddleware} is not found when adding ${S.name||"anonymous"} middleware ${S.relation} ${S.toMiddleware}`);S.relation==="after"&&g.after.push(S),S.relation==="before"&&g.before.push(S)}}),n(f).map(c).reduce((S,g)=>(S.push(...g),S),[]).map(S=>S.middleware)},u={add:(f,_={})=>{let{name:h,override:v}=_,S=o({step:"initialize",priority:"normal",middleware:f},_);if(h){if(r.has(h)){if(!v)throw new Error(`Duplicate middleware name '${h}'`);let g=e.findIndex(O=>O.name===h),I=e[g];if(I.step!==S.step||I.priority!==S.priority)throw new Error(`"${h}" middleware with ${I.priority} priority in ${I.step} step cannot be overridden by same-name middleware with ${S.priority} priority in ${S.step} step.`);e.splice(g,1)}r.add(h)}e.push(S)},addRelativeTo:(f,_)=>{let{name:h,override:v}=_,S=o({middleware:f},_);if(h){if(r.has(h)){if(!v)throw new Error(`Duplicate middleware name '${h}'`);let g=t.findIndex(O=>O.name===h),I=t[g];if(I.toMiddleware!==S.toMiddleware||I.relation!==S.relation)throw new Error(`"${h}" middleware ${I.relation} "${I.toMiddleware}" middleware cannot be overridden by same-name middleware ${S.relation} "${S.toMiddleware}" middleware.`);t.splice(g,1)}r.add(h)}t.push(S)},clone:()=>a((0,xs.constructStack)()),use:f=>{f.applyToStack(u)},remove:f=>typeof f=="string"?i(f):s(f),removeByTag:f=>{let _=!1,h=v=>{let{tags:S,name:g}=v;return S&&S.includes(f)?(g&&r.delete(g),_=!0,!1):!0};return e=e.filter(h),t=t.filter(h),_},concat:f=>{let _=a((0,xs.constructStack)());return _.use(f),_},applyToStack:a,resolve:(f,_)=>{for(let h of l().reverse())f=h(f,_);return f}};return u};xs.constructStack=e2;var YC={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},QC={high:3,normal:2,low:1}});var mv=m(fv=>{"use strict";Object.defineProperty(fv,"__esModule",{value:!0});var t2=$();t2.__exportStar(XC(),fv)});var ZC=m(td=>{"use strict";Object.defineProperty(td,"__esModule",{value:!0});td.Client=void 0;var r2=mv(),pv=class{constructor(t){this.middlewareStack=(0,r2.constructStack)(),this.config=t}send(t,r,n){let i=typeof r!="function"?r:void 0,s=typeof r=="function"?r:n,a=t.resolveMiddleware(this.middlewareStack,this.config,i);if(s)a(t).then(c=>s(null,c.output),c=>s(c)).catch(()=>{});else return a(t).then(c=>c.output)}destroy(){this.config.requestHandler.destroy&&this.config.requestHandler.destroy()}};td.Client=pv});var ex=m(rd=>{"use strict";Object.defineProperty(rd,"__esModule",{value:!0});rd.Command=void 0;var n2=mv(),_v=class{constructor(){this.middlewareStack=(0,n2.constructStack)()}};rd.Command=_v});var tx=m(nd=>{"use strict";Object.defineProperty(nd,"__esModule",{value:!0});nd.SENSITIVE_STRING=void 0;nd.SENSITIVE_STRING="***SensitiveInformation***"});var yv=m(z=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});z.strictParseByte=z.strictParseShort=z.strictParseInt32=z.strictParseInt=z.strictParseLong=z.limitedParseFloat32=z.limitedParseFloat=z.handleFloat=z.limitedParseDouble=z.strictParseFloat32=z.strictParseFloat=z.strictParseDouble=z.expectUnion=z.expectString=z.expectObject=z.expectNonNull=z.expectByte=z.expectShort=z.expectInt32=z.expectInt=z.expectLong=z.expectFloat32=z.expectNumber=z.expectBoolean=z.parseBoolean=void 0;var i2=e=>{switch(e){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${e}"`)}};z.parseBoolean=i2;var s2=e=>{if(e!=null){if(typeof e=="boolean")return e;throw new TypeError(`Expected boolean, got ${typeof e}`)}};z.expectBoolean=s2;var o2=e=>{if(e!=null){if(typeof e=="number")return e;throw new TypeError(`Expected number, got ${typeof e}`)}};z.expectNumber=o2;var a2=Math.ceil(2**127*(2-2**-23)),c2=e=>{let t=(0,z.expectNumber)(e);if(t!==void 0&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>a2)throw new TypeError(`Expected 32-bit float, got ${e}`);return t};z.expectFloat32=c2;var l2=e=>{if(e!=null){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}`)}};z.expectLong=l2;z.expectInt=z.expectLong;var d2=e=>hv(e,32);z.expectInt32=d2;var u2=e=>hv(e,16);z.expectShort=u2;var f2=e=>hv(e,8);z.expectByte=f2;var hv=(e,t)=>{let r=(0,z.expectLong)(e);if(r!==void 0&&m2(r,t)!==r)throw new TypeError(`Expected ${t}-bit integer, got ${e}`);return r},m2=(e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}},p2=(e,t)=>{if(e==null)throw t?new TypeError(`Expected a non-null value for ${t}`):new TypeError("Expected a non-null value");return e};z.expectNonNull=p2;var _2=e=>{if(e!=null){if(typeof e=="object"&&!Array.isArray(e))return e;throw new TypeError(`Expected object, got ${typeof e}`)}};z.expectObject=_2;var h2=e=>{if(e!=null){if(typeof e=="string")return e;throw new TypeError(`Expected string, got ${typeof e}`)}};z.expectString=h2;var y2=e=>{if(e==null)return;let t=(0,z.expectObject)(e),r=Object.entries(t).filter(([n,i])=>i!=null).map(([n,i])=>n);if(r.length===0)throw new TypeError("Unions must have exactly one non-null member");if(r.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${r} were not null.`);return t};z.expectUnion=y2;var g2=e=>typeof e=="string"?(0,z.expectNumber)(Is(e)):(0,z.expectNumber)(e);z.strictParseDouble=g2;z.strictParseFloat=z.strictParseDouble;var v2=e=>typeof e=="string"?(0,z.expectFloat32)(Is(e)):(0,z.expectFloat32)(e);z.strictParseFloat32=v2;var S2=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,Is=e=>{let t=e.match(S2);if(t===null||t[0].length!==e.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(e)},w2=e=>typeof e=="string"?rx(e):(0,z.expectNumber)(e);z.limitedParseDouble=w2;z.handleFloat=z.limitedParseDouble;z.limitedParseFloat=z.limitedParseDouble;var E2=e=>typeof e=="string"?rx(e):(0,z.expectFloat32)(e);z.limitedParseFloat32=E2;var rx=e=>{switch(e){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new Error(`Unable to parse float value: ${e}`)}},b2=e=>typeof e=="string"?(0,z.expectLong)(Is(e)):(0,z.expectLong)(e);z.strictParseLong=b2;z.strictParseInt=z.strictParseLong;var A2=e=>typeof e=="string"?(0,z.expectInt32)(Is(e)):(0,z.expectInt32)(e);z.strictParseInt32=A2;var T2=e=>typeof e=="string"?(0,z.expectShort)(Is(e)):(0,z.expectShort)(e);z.strictParseShort=T2;var C2=e=>typeof e=="string"?(0,z.expectByte)(Is(e)):(0,z.expectByte)(e);z.strictParseByte=C2});var nx=m(Sr=>{"use strict";Object.defineProperty(Sr,"__esModule",{value:!0});Sr.parseEpochTimestamp=Sr.parseRfc7231DateTime=Sr.parseRfc3339DateTime=Sr.dateToUtcString=void 0;var xi=yv(),x2=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],vv=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function I2(e){let t=e.getUTCFullYear(),r=e.getUTCMonth(),n=e.getUTCDay(),i=e.getUTCDate(),s=e.getUTCHours(),a=e.getUTCMinutes(),c=e.getUTCSeconds(),l=i<10?`0${i}`:`${i}`,u=s<10?`0${s}`:`${s}`,f=a<10?`0${a}`:`${a}`,_=c<10?`0${c}`:`${c}`;return`${x2[n]}, ${l} ${vv[r]} ${t} ${u}:${f}:${_} GMT`}Sr.dateToUtcString=I2;var R2=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),N2=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let t=R2.exec(e);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");let[r,n,i,s,a,c,l,u]=t,f=(0,xi.strictParseShort)(Jo(n)),_=$n(i,"month",1,12),h=$n(s,"day",1,31);return id(f,_,h,{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u})};Sr.parseRfc3339DateTime=N2;var P2=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),D2=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),O2=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),L2=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let t=P2.exec(e);if(t){let[r,n,i,s,a,c,l,u]=t;return id((0,xi.strictParseShort)(Jo(s)),gv(i),$n(n,"day",1,31),{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u})}if(t=D2.exec(e),t){let[r,n,i,s,a,c,l,u]=t;return j2(id(M2(s),gv(i),$n(n,"day",1,31),{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u}))}if(t=O2.exec(e),t){let[r,n,i,s,a,c,l,u]=t;return id((0,xi.strictParseShort)(Jo(u)),gv(n),$n(i.trimLeft(),"day",1,31),{hours:s,minutes:a,seconds:c,fractionalMilliseconds:l})}throw new TypeError("Invalid RFC-7231 date-time value")};Sr.parseRfc7231DateTime=L2;var q2=e=>{if(e==null)return;let t;if(typeof e=="number")t=e;else if(typeof e=="string")t=(0,xi.strictParseDouble)(e);else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(t)||t===1/0||t===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(t*1e3))};Sr.parseEpochTimestamp=q2;var id=(e,t,r,n)=>{let i=t-1;return F2(e,i,r),new Date(Date.UTC(e,i,r,$n(n.hours,"hour",0,23),$n(n.minutes,"minute",0,59),$n(n.seconds,"seconds",0,60),B2(n.fractionalMilliseconds)))},M2=e=>{let t=new Date().getUTCFullYear(),r=Math.floor(t/100)*100+(0,xi.strictParseShort)(Jo(e));return r<t?r+100:r},z2=50*365*24*60*60*1e3,j2=e=>e.getTime()-new Date().getTime()>z2?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,gv=e=>{let t=vv.indexOf(e);if(t<0)throw new TypeError(`Invalid month: ${e}`);return t+1},k2=[31,28,31,30,31,30,31,31,30,31,30,31],F2=(e,t,r)=>{let n=k2[t];if(t===1&&U2(e)&&(n=29),r>n)throw new TypeError(`Invalid day for ${vv[t]} in ${e}: ${r}`)},U2=e=>e%4===0&&(e%100!==0||e%400===0),$n=(e,t,r,n)=>{let i=(0,xi.strictParseByte)(Jo(e));if(i<r||i>n)throw new TypeError(`${t} must be between ${r} and ${n}, inclusive`);return i},B2=e=>e==null?0:(0,xi.strictParseFloat32)("0."+e)*1e3,Jo=e=>{let t=0;for(;t<e.length-1&&e.charAt(t)==="0";)t++;return t===0?e:e.slice(t)}});var ix=m(sd=>{"use strict";Object.defineProperty(sd,"__esModule",{value:!0});sd.loadConfigsForDefaultMode=void 0;var G2=e=>{switch(e){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}};sd.loadConfigsForDefaultMode=G2});var ox=m(od=>{"use strict";Object.defineProperty(od,"__esModule",{value:!0});od.emitWarningIfUnsupportedVersion=void 0;var sx=!1,$2=e=>{e&&!sx&&parseInt(e.substring(1,e.indexOf(".")))<12&&(sx=!0,process.emitWarning(`The AWS SDK for JavaScript (v3) will
5
5
  no longer support Node.js ${e} as of January 1, 2022.
6
6
  To continue receiving updates to AWS services, bug fixes, and security
7
7
  updates please upgrade to Node.js 12.x or later.
8
8
 
9
- More information can be found at: https://a.co/1l6FLnu`,"NodeDeprecationWarning"))};dl.emitWarningIfUnsupportedVersion=Yz});var Sw=p(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});ul.extendedEncodeURIComponent=void 0;function Jz(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}ul.extendedEncodeURIComponent=Jz});var ww=p(ml=>{"use strict";Object.defineProperty(ml,"__esModule",{value:!0});ml.getArrayIfSingleItem=void 0;var Qz=e=>Array.isArray(e)?e:[e];ml.getArrayIfSingleItem=Qz});var Ew=p(ba=>{"use strict";Object.defineProperty(ba,"__esModule",{value:!0});ba.getValueFromTextNode=void 0;var Xz=e=>{let t="#text";for(let n in e)e.hasOwnProperty(n)&&e[n][t]!==void 0?e[n]=e[n][t]:typeof e[n]=="object"&&e[n]!==null&&(e[n]=ba.getValueFromTextNode(e[n]));return e};ba.getValueFromTextNode=Xz});var Aw=p(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.LazyJsonString=An.StringWrapper=void 0;var Zz=function(){let e=Object.getPrototypeOf(this).constructor,t=Function.bind.apply(String,[null,...arguments]),n=new t;return Object.setPrototypeOf(n,e.prototype),n};An.StringWrapper=Zz;An.StringWrapper.prototype=Object.create(String.prototype,{constructor:{value:An.StringWrapper,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(An.StringWrapper,String);var ss=class extends An.StringWrapper{deserializeJSON(){return JSON.parse(super.toString())}toJSON(){return super.toString()}static fromObject(t){return t instanceof ss?t:t instanceof String||typeof t=="string"?new ss(t):new ss(JSON.stringify(t))}};An.LazyJsonString=ss});var Cw=p(fl=>{"use strict";Object.defineProperty(fl,"__esModule",{value:!0});fl.serializeFloat=void 0;var eU=e=>{if(e!==e)return"NaN";switch(e){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return e}};fl.serializeFloat=eU});var Tw=p(pl=>{"use strict";Object.defineProperty(pl,"__esModule",{value:!0});pl.splitEvery=void 0;function tU(e,t,n){if(n<=0||!Number.isInteger(n))throw new Error("Invalid number of delimiters ("+n+") for splitEvery.");let r=e.split(t);if(n===1)return r;let i=[],s="";for(let a=0;a<r.length;a++)s===""?s=r[a]:s+=t+r[a],(a+1)%n===0&&(i.push(s),s="");return s!==""&&i.push(s),i}pl.splitEvery=tU});var q=p(St=>{"use strict";Object.defineProperty(St,"__esModule",{value:!0});var kt=se();kt.__exportStar(mw(),St);kt.__exportStar(pw(),St);kt.__exportStar(_w(),St);kt.__exportStar(gw(),St);kt.__exportStar(yw(),St);kt.__exportStar(bw(),St);kt.__exportStar(Sw(),St);kt.__exportStar(ww(),St);kt.__exportStar(Ew(),St);kt.__exportStar(Aw(),St);kt.__exportStar(F_(),St);kt.__exportStar(Cw(),St);kt.__exportStar(Tw(),St)});var H=p(m=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0});m.Tag=m.SSESpecification=m.LocalSecondaryIndex=m.GlobalSecondaryIndex=m.CreateReplicationGroupMemberAction=m.ReplicaGlobalSecondaryIndex=m.CreateReplicaAction=m.CreateGlobalTableOutput=m.GlobalTableDescription=m.ReplicaDescription=m.TableClassSummary=m.TableClass=m.ReplicaGlobalSecondaryIndexDescription=m.ProvisionedThroughputOverride=m.CreateGlobalTableInput=m.Replica=m.CreateGlobalSecondaryIndexAction=m.CreateBackupOutput=m.CreateBackupInput=m.ContributorInsightsSummary=m.ContinuousBackupsDescription=m.PointInTimeRecoveryDescription=m.BillingModeSummary=m.BatchStatementError=m.BatchStatementErrorCodeEnum=m.ConsumedCapacity=m.Capacity=m.BackupTypeFilter=m.BackupSummary=m.BackupDescription=m.SourceTableFeatureDetails=m.TimeToLiveDescription=m.StreamSpecification=m.SSEDescription=m.LocalSecondaryIndexInfo=m.GlobalSecondaryIndexInfo=m.Projection=m.SourceTableDetails=m.ProvisionedThroughput=m.KeySchemaElement=m.BackupDetails=m.BackupType=m.AutoScalingSettingsUpdate=m.AutoScalingSettingsDescription=m.AutoScalingPolicyUpdate=m.AutoScalingTargetTrackingScalingPolicyConfigurationUpdate=m.AutoScalingPolicyDescription=m.AutoScalingTargetTrackingScalingPolicyConfigurationDescription=m.AttributeDefinition=m.ArchivalSummary=void 0;m.KinesisStreamingDestinationInput=m.DescribeTimeToLiveOutput=m.DescribeTimeToLiveInput=m.DescribeTableReplicaAutoScalingOutput=m.TableAutoScalingDescription=m.ReplicaAutoScalingDescription=m.ReplicaGlobalSecondaryIndexAutoScalingDescription=m.DescribeTableReplicaAutoScalingInput=m.DescribeTableOutput=m.DescribeTableInput=m.DescribeLimitsOutput=m.DescribeLimitsInput=m.DescribeKinesisStreamingDestinationOutput=m.KinesisDataStreamDestination=m.DescribeKinesisStreamingDestinationInput=m.DescribeGlobalTableSettingsOutput=m.ReplicaSettingsDescription=m.ReplicaGlobalSecondaryIndexSettingsDescription=m.DescribeGlobalTableSettingsInput=m.DescribeGlobalTableOutput=m.DescribeGlobalTableInput=m.DescribeExportOutput=m.ExportDescription=m.ExportStatus=m.ExportFormat=m.DescribeExportInput=m.DescribeEndpointsResponse=m.Endpoint=m.DescribeEndpointsRequest=m.DescribeContributorInsightsOutput=m.FailureException=m.DescribeContributorInsightsInput=m.DescribeContinuousBackupsOutput=m.DescribeContinuousBackupsInput=m.DescribeBackupOutput=m.DescribeBackupInput=m.DeleteTableOutput=m.DeleteTableInput=m.DeleteReplicationGroupMemberAction=m.DeleteReplicaAction=m.DeleteGlobalSecondaryIndexAction=m.DeleteBackupOutput=m.DeleteBackupInput=m.CreateTableOutput=m.TableDescription=m.RestoreSummary=m.LocalSecondaryIndexDescription=m.GlobalSecondaryIndexDescription=m.ProvisionedThroughputDescription=m.CreateTableInput=void 0;m.UpdateTimeToLiveOutput=m.UpdateTimeToLiveInput=m.TimeToLiveSpecification=m.UpdateTableReplicaAutoScalingOutput=m.UpdateTableReplicaAutoScalingInput=m.ReplicaAutoScalingUpdate=m.ReplicaGlobalSecondaryIndexAutoScalingUpdate=m.GlobalSecondaryIndexAutoScalingUpdate=m.UpdateTableOutput=m.UpdateTableInput=m.ReplicationGroupUpdate=m.UpdateReplicationGroupMemberAction=m.GlobalSecondaryIndexUpdate=m.UpdateGlobalSecondaryIndexAction=m.UpdateGlobalTableSettingsOutput=m.UpdateGlobalTableSettingsInput=m.ReplicaSettingsUpdate=m.ReplicaGlobalSecondaryIndexSettingsUpdate=m.GlobalTableGlobalSecondaryIndexSettingsUpdate=m.UpdateGlobalTableOutput=m.UpdateGlobalTableInput=m.ReplicaUpdate=m.UpdateContributorInsightsOutput=m.UpdateContributorInsightsInput=m.UpdateContinuousBackupsOutput=m.UpdateContinuousBackupsInput=m.PointInTimeRecoverySpecification=m.UntagResourceInput=m.TagResourceInput=m.RestoreTableToPointInTimeOutput=m.RestoreTableToPointInTimeInput=m.RestoreTableFromBackupOutput=m.RestoreTableFromBackupInput=m.ListTagsOfResourceOutput=m.ListTagsOfResourceInput=m.ListTablesOutput=m.ListTablesInput=m.ListGlobalTablesOutput=m.GlobalTable=m.ListGlobalTablesInput=m.ListExportsOutput=m.ExportSummary=m.ListExportsInput=m.ListContributorInsightsOutput=m.ListContributorInsightsInput=m.ListBackupsOutput=m.ListBackupsInput=m.ExportTableToPointInTimeOutput=m.ExportTableToPointInTimeInput=m.KinesisStreamingDestinationOutput=void 0;m.TransactWriteItemsInput=m.TransactWriteItem=m.UpdateItemInput=m.BatchWriteItemOutput=m.QueryInput=m.PutItemInput=m.DeleteItemInput=m.BatchWriteItemInput=m.ScanInput=m.BatchGetItemOutput=m.WriteRequest=m.UpdateItemOutput=m.ScanOutput=m.QueryOutput=m.PutItemOutput=m.DeleteItemOutput=m.Update=m.Put=m.Delete=m.ConditionCheck=m.TransactWriteItemsOutput=m.TransactGetItemsInput=m.ExpectedAttributeValue=m.BatchGetItemInput=m.TransactGetItemsOutput=m.ExecuteTransactionOutput=m.ExecuteTransactionInput=m.BatchExecuteStatementOutput=m.BatchExecuteStatementInput=m.TransactGetItem=m.KeysAndAttributes=m.ExecuteStatementOutput=m.PutRequest=m.ParameterizedStatement=m.ItemResponse=m.ItemCollectionMetrics=m.GetItemOutput=m.GetItemInput=m.Get=m.ExecuteStatementInput=m.DeleteRequest=m.Condition=m.CancellationReason=m.BatchStatementResponse=m.BatchStatementRequest=m.AttributeValueUpdate=m.AttributeValue=void 0;var nU;(function(e){e.filterSensitiveLog=t=>o({},t)})(nU=m.ArchivalSummary||(m.ArchivalSummary={}));var rU;(function(e){e.filterSensitiveLog=t=>o({},t)})(rU=m.AttributeDefinition||(m.AttributeDefinition={}));var iU;(function(e){e.filterSensitiveLog=t=>o({},t)})(iU=m.AutoScalingTargetTrackingScalingPolicyConfigurationDescription||(m.AutoScalingTargetTrackingScalingPolicyConfigurationDescription={}));var sU;(function(e){e.filterSensitiveLog=t=>o({},t)})(sU=m.AutoScalingPolicyDescription||(m.AutoScalingPolicyDescription={}));var aU;(function(e){e.filterSensitiveLog=t=>o({},t)})(aU=m.AutoScalingTargetTrackingScalingPolicyConfigurationUpdate||(m.AutoScalingTargetTrackingScalingPolicyConfigurationUpdate={}));var oU;(function(e){e.filterSensitiveLog=t=>o({},t)})(oU=m.AutoScalingPolicyUpdate||(m.AutoScalingPolicyUpdate={}));var lU;(function(e){e.filterSensitiveLog=t=>o({},t)})(lU=m.AutoScalingSettingsDescription||(m.AutoScalingSettingsDescription={}));var cU;(function(e){e.filterSensitiveLog=t=>o({},t)})(cU=m.AutoScalingSettingsUpdate||(m.AutoScalingSettingsUpdate={}));var dU;(function(e){e.AWS_BACKUP="AWS_BACKUP",e.SYSTEM="SYSTEM",e.USER="USER"})(dU=m.BackupType||(m.BackupType={}));var uU;(function(e){e.filterSensitiveLog=t=>o({},t)})(uU=m.BackupDetails||(m.BackupDetails={}));var mU;(function(e){e.filterSensitiveLog=t=>o({},t)})(mU=m.KeySchemaElement||(m.KeySchemaElement={}));var fU;(function(e){e.filterSensitiveLog=t=>o({},t)})(fU=m.ProvisionedThroughput||(m.ProvisionedThroughput={}));var pU;(function(e){e.filterSensitiveLog=t=>o({},t)})(pU=m.SourceTableDetails||(m.SourceTableDetails={}));var _U;(function(e){e.filterSensitiveLog=t=>o({},t)})(_U=m.Projection||(m.Projection={}));var hU;(function(e){e.filterSensitiveLog=t=>o({},t)})(hU=m.GlobalSecondaryIndexInfo||(m.GlobalSecondaryIndexInfo={}));var gU;(function(e){e.filterSensitiveLog=t=>o({},t)})(gU=m.LocalSecondaryIndexInfo||(m.LocalSecondaryIndexInfo={}));var yU;(function(e){e.filterSensitiveLog=t=>o({},t)})(yU=m.SSEDescription||(m.SSEDescription={}));var vU;(function(e){e.filterSensitiveLog=t=>o({},t)})(vU=m.StreamSpecification||(m.StreamSpecification={}));var bU;(function(e){e.filterSensitiveLog=t=>o({},t)})(bU=m.TimeToLiveDescription||(m.TimeToLiveDescription={}));var SU;(function(e){e.filterSensitiveLog=t=>o({},t)})(SU=m.SourceTableFeatureDetails||(m.SourceTableFeatureDetails={}));var wU;(function(e){e.filterSensitiveLog=t=>o({},t)})(wU=m.BackupDescription||(m.BackupDescription={}));var EU;(function(e){e.filterSensitiveLog=t=>o({},t)})(EU=m.BackupSummary||(m.BackupSummary={}));var AU;(function(e){e.ALL="ALL",e.AWS_BACKUP="AWS_BACKUP",e.SYSTEM="SYSTEM",e.USER="USER"})(AU=m.BackupTypeFilter||(m.BackupTypeFilter={}));var CU;(function(e){e.filterSensitiveLog=t=>o({},t)})(CU=m.Capacity||(m.Capacity={}));var TU;(function(e){e.filterSensitiveLog=t=>o({},t)})(TU=m.ConsumedCapacity||(m.ConsumedCapacity={}));var xU;(function(e){e.AccessDenied="AccessDenied",e.ConditionalCheckFailed="ConditionalCheckFailed",e.DuplicateItem="DuplicateItem",e.InternalServerError="InternalServerError",e.ItemCollectionSizeLimitExceeded="ItemCollectionSizeLimitExceeded",e.ProvisionedThroughputExceeded="ProvisionedThroughputExceeded",e.RequestLimitExceeded="RequestLimitExceeded",e.ResourceNotFound="ResourceNotFound",e.ThrottlingError="ThrottlingError",e.TransactionConflict="TransactionConflict",e.ValidationError="ValidationError"})(xU=m.BatchStatementErrorCodeEnum||(m.BatchStatementErrorCodeEnum={}));var IU;(function(e){e.filterSensitiveLog=t=>o({},t)})(IU=m.BatchStatementError||(m.BatchStatementError={}));var RU;(function(e){e.filterSensitiveLog=t=>o({},t)})(RU=m.BillingModeSummary||(m.BillingModeSummary={}));var NU;(function(e){e.filterSensitiveLog=t=>o({},t)})(NU=m.PointInTimeRecoveryDescription||(m.PointInTimeRecoveryDescription={}));var PU;(function(e){e.filterSensitiveLog=t=>o({},t)})(PU=m.ContinuousBackupsDescription||(m.ContinuousBackupsDescription={}));var DU;(function(e){e.filterSensitiveLog=t=>o({},t)})(DU=m.ContributorInsightsSummary||(m.ContributorInsightsSummary={}));var OU;(function(e){e.filterSensitiveLog=t=>o({},t)})(OU=m.CreateBackupInput||(m.CreateBackupInput={}));var LU;(function(e){e.filterSensitiveLog=t=>o({},t)})(LU=m.CreateBackupOutput||(m.CreateBackupOutput={}));var qU;(function(e){e.filterSensitiveLog=t=>o({},t)})(qU=m.CreateGlobalSecondaryIndexAction||(m.CreateGlobalSecondaryIndexAction={}));var MU;(function(e){e.filterSensitiveLog=t=>o({},t)})(MU=m.Replica||(m.Replica={}));var kU;(function(e){e.filterSensitiveLog=t=>o({},t)})(kU=m.CreateGlobalTableInput||(m.CreateGlobalTableInput={}));var jU;(function(e){e.filterSensitiveLog=t=>o({},t)})(jU=m.ProvisionedThroughputOverride||(m.ProvisionedThroughputOverride={}));var zU;(function(e){e.filterSensitiveLog=t=>o({},t)})(zU=m.ReplicaGlobalSecondaryIndexDescription||(m.ReplicaGlobalSecondaryIndexDescription={}));var UU;(function(e){e.STANDARD="STANDARD",e.STANDARD_INFREQUENT_ACCESS="STANDARD_INFREQUENT_ACCESS"})(UU=m.TableClass||(m.TableClass={}));var FU;(function(e){e.filterSensitiveLog=t=>o({},t)})(FU=m.TableClassSummary||(m.TableClassSummary={}));var BU;(function(e){e.filterSensitiveLog=t=>o({},t)})(BU=m.ReplicaDescription||(m.ReplicaDescription={}));var GU;(function(e){e.filterSensitiveLog=t=>o({},t)})(GU=m.GlobalTableDescription||(m.GlobalTableDescription={}));var $U;(function(e){e.filterSensitiveLog=t=>o({},t)})($U=m.CreateGlobalTableOutput||(m.CreateGlobalTableOutput={}));var KU;(function(e){e.filterSensitiveLog=t=>o({},t)})(KU=m.CreateReplicaAction||(m.CreateReplicaAction={}));var VU;(function(e){e.filterSensitiveLog=t=>o({},t)})(VU=m.ReplicaGlobalSecondaryIndex||(m.ReplicaGlobalSecondaryIndex={}));var HU;(function(e){e.filterSensitiveLog=t=>o({},t)})(HU=m.CreateReplicationGroupMemberAction||(m.CreateReplicationGroupMemberAction={}));var WU;(function(e){e.filterSensitiveLog=t=>o({},t)})(WU=m.GlobalSecondaryIndex||(m.GlobalSecondaryIndex={}));var YU;(function(e){e.filterSensitiveLog=t=>o({},t)})(YU=m.LocalSecondaryIndex||(m.LocalSecondaryIndex={}));var JU;(function(e){e.filterSensitiveLog=t=>o({},t)})(JU=m.SSESpecification||(m.SSESpecification={}));var QU;(function(e){e.filterSensitiveLog=t=>o({},t)})(QU=m.Tag||(m.Tag={}));var XU;(function(e){e.filterSensitiveLog=t=>o({},t)})(XU=m.CreateTableInput||(m.CreateTableInput={}));var ZU;(function(e){e.filterSensitiveLog=t=>o({},t)})(ZU=m.ProvisionedThroughputDescription||(m.ProvisionedThroughputDescription={}));var eF;(function(e){e.filterSensitiveLog=t=>o({},t)})(eF=m.GlobalSecondaryIndexDescription||(m.GlobalSecondaryIndexDescription={}));var tF;(function(e){e.filterSensitiveLog=t=>o({},t)})(tF=m.LocalSecondaryIndexDescription||(m.LocalSecondaryIndexDescription={}));var nF;(function(e){e.filterSensitiveLog=t=>o({},t)})(nF=m.RestoreSummary||(m.RestoreSummary={}));var rF;(function(e){e.filterSensitiveLog=t=>o({},t)})(rF=m.TableDescription||(m.TableDescription={}));var iF;(function(e){e.filterSensitiveLog=t=>o({},t)})(iF=m.CreateTableOutput||(m.CreateTableOutput={}));var sF;(function(e){e.filterSensitiveLog=t=>o({},t)})(sF=m.DeleteBackupInput||(m.DeleteBackupInput={}));var aF;(function(e){e.filterSensitiveLog=t=>o({},t)})(aF=m.DeleteBackupOutput||(m.DeleteBackupOutput={}));var oF;(function(e){e.filterSensitiveLog=t=>o({},t)})(oF=m.DeleteGlobalSecondaryIndexAction||(m.DeleteGlobalSecondaryIndexAction={}));var lF;(function(e){e.filterSensitiveLog=t=>o({},t)})(lF=m.DeleteReplicaAction||(m.DeleteReplicaAction={}));var cF;(function(e){e.filterSensitiveLog=t=>o({},t)})(cF=m.DeleteReplicationGroupMemberAction||(m.DeleteReplicationGroupMemberAction={}));var dF;(function(e){e.filterSensitiveLog=t=>o({},t)})(dF=m.DeleteTableInput||(m.DeleteTableInput={}));var uF;(function(e){e.filterSensitiveLog=t=>o({},t)})(uF=m.DeleteTableOutput||(m.DeleteTableOutput={}));var mF;(function(e){e.filterSensitiveLog=t=>o({},t)})(mF=m.DescribeBackupInput||(m.DescribeBackupInput={}));var fF;(function(e){e.filterSensitiveLog=t=>o({},t)})(fF=m.DescribeBackupOutput||(m.DescribeBackupOutput={}));var pF;(function(e){e.filterSensitiveLog=t=>o({},t)})(pF=m.DescribeContinuousBackupsInput||(m.DescribeContinuousBackupsInput={}));var _F;(function(e){e.filterSensitiveLog=t=>o({},t)})(_F=m.DescribeContinuousBackupsOutput||(m.DescribeContinuousBackupsOutput={}));var hF;(function(e){e.filterSensitiveLog=t=>o({},t)})(hF=m.DescribeContributorInsightsInput||(m.DescribeContributorInsightsInput={}));var gF;(function(e){e.filterSensitiveLog=t=>o({},t)})(gF=m.FailureException||(m.FailureException={}));var yF;(function(e){e.filterSensitiveLog=t=>o({},t)})(yF=m.DescribeContributorInsightsOutput||(m.DescribeContributorInsightsOutput={}));var vF;(function(e){e.filterSensitiveLog=t=>o({},t)})(vF=m.DescribeEndpointsRequest||(m.DescribeEndpointsRequest={}));var bF;(function(e){e.filterSensitiveLog=t=>o({},t)})(bF=m.Endpoint||(m.Endpoint={}));var SF;(function(e){e.filterSensitiveLog=t=>o({},t)})(SF=m.DescribeEndpointsResponse||(m.DescribeEndpointsResponse={}));var wF;(function(e){e.filterSensitiveLog=t=>o({},t)})(wF=m.DescribeExportInput||(m.DescribeExportInput={}));var EF;(function(e){e.DYNAMODB_JSON="DYNAMODB_JSON",e.ION="ION"})(EF=m.ExportFormat||(m.ExportFormat={}));var AF;(function(e){e.COMPLETED="COMPLETED",e.FAILED="FAILED",e.IN_PROGRESS="IN_PROGRESS"})(AF=m.ExportStatus||(m.ExportStatus={}));var CF;(function(e){e.filterSensitiveLog=t=>o({},t)})(CF=m.ExportDescription||(m.ExportDescription={}));var TF;(function(e){e.filterSensitiveLog=t=>o({},t)})(TF=m.DescribeExportOutput||(m.DescribeExportOutput={}));var xF;(function(e){e.filterSensitiveLog=t=>o({},t)})(xF=m.DescribeGlobalTableInput||(m.DescribeGlobalTableInput={}));var IF;(function(e){e.filterSensitiveLog=t=>o({},t)})(IF=m.DescribeGlobalTableOutput||(m.DescribeGlobalTableOutput={}));var RF;(function(e){e.filterSensitiveLog=t=>o({},t)})(RF=m.DescribeGlobalTableSettingsInput||(m.DescribeGlobalTableSettingsInput={}));var NF;(function(e){e.filterSensitiveLog=t=>o({},t)})(NF=m.ReplicaGlobalSecondaryIndexSettingsDescription||(m.ReplicaGlobalSecondaryIndexSettingsDescription={}));var PF;(function(e){e.filterSensitiveLog=t=>o({},t)})(PF=m.ReplicaSettingsDescription||(m.ReplicaSettingsDescription={}));var DF;(function(e){e.filterSensitiveLog=t=>o({},t)})(DF=m.DescribeGlobalTableSettingsOutput||(m.DescribeGlobalTableSettingsOutput={}));var OF;(function(e){e.filterSensitiveLog=t=>o({},t)})(OF=m.DescribeKinesisStreamingDestinationInput||(m.DescribeKinesisStreamingDestinationInput={}));var LF;(function(e){e.filterSensitiveLog=t=>o({},t)})(LF=m.KinesisDataStreamDestination||(m.KinesisDataStreamDestination={}));var qF;(function(e){e.filterSensitiveLog=t=>o({},t)})(qF=m.DescribeKinesisStreamingDestinationOutput||(m.DescribeKinesisStreamingDestinationOutput={}));var MF;(function(e){e.filterSensitiveLog=t=>o({},t)})(MF=m.DescribeLimitsInput||(m.DescribeLimitsInput={}));var kF;(function(e){e.filterSensitiveLog=t=>o({},t)})(kF=m.DescribeLimitsOutput||(m.DescribeLimitsOutput={}));var jF;(function(e){e.filterSensitiveLog=t=>o({},t)})(jF=m.DescribeTableInput||(m.DescribeTableInput={}));var zF;(function(e){e.filterSensitiveLog=t=>o({},t)})(zF=m.DescribeTableOutput||(m.DescribeTableOutput={}));var UF;(function(e){e.filterSensitiveLog=t=>o({},t)})(UF=m.DescribeTableReplicaAutoScalingInput||(m.DescribeTableReplicaAutoScalingInput={}));var FF;(function(e){e.filterSensitiveLog=t=>o({},t)})(FF=m.ReplicaGlobalSecondaryIndexAutoScalingDescription||(m.ReplicaGlobalSecondaryIndexAutoScalingDescription={}));var BF;(function(e){e.filterSensitiveLog=t=>o({},t)})(BF=m.ReplicaAutoScalingDescription||(m.ReplicaAutoScalingDescription={}));var GF;(function(e){e.filterSensitiveLog=t=>o({},t)})(GF=m.TableAutoScalingDescription||(m.TableAutoScalingDescription={}));var $F;(function(e){e.filterSensitiveLog=t=>o({},t)})($F=m.DescribeTableReplicaAutoScalingOutput||(m.DescribeTableReplicaAutoScalingOutput={}));var KF;(function(e){e.filterSensitiveLog=t=>o({},t)})(KF=m.DescribeTimeToLiveInput||(m.DescribeTimeToLiveInput={}));var VF;(function(e){e.filterSensitiveLog=t=>o({},t)})(VF=m.DescribeTimeToLiveOutput||(m.DescribeTimeToLiveOutput={}));var HF;(function(e){e.filterSensitiveLog=t=>o({},t)})(HF=m.KinesisStreamingDestinationInput||(m.KinesisStreamingDestinationInput={}));var WF;(function(e){e.filterSensitiveLog=t=>o({},t)})(WF=m.KinesisStreamingDestinationOutput||(m.KinesisStreamingDestinationOutput={}));var YF;(function(e){e.filterSensitiveLog=t=>o({},t)})(YF=m.ExportTableToPointInTimeInput||(m.ExportTableToPointInTimeInput={}));var JF;(function(e){e.filterSensitiveLog=t=>o({},t)})(JF=m.ExportTableToPointInTimeOutput||(m.ExportTableToPointInTimeOutput={}));var QF;(function(e){e.filterSensitiveLog=t=>o({},t)})(QF=m.ListBackupsInput||(m.ListBackupsInput={}));var XF;(function(e){e.filterSensitiveLog=t=>o({},t)})(XF=m.ListBackupsOutput||(m.ListBackupsOutput={}));var ZF;(function(e){e.filterSensitiveLog=t=>o({},t)})(ZF=m.ListContributorInsightsInput||(m.ListContributorInsightsInput={}));var eB;(function(e){e.filterSensitiveLog=t=>o({},t)})(eB=m.ListContributorInsightsOutput||(m.ListContributorInsightsOutput={}));var tB;(function(e){e.filterSensitiveLog=t=>o({},t)})(tB=m.ListExportsInput||(m.ListExportsInput={}));var nB;(function(e){e.filterSensitiveLog=t=>o({},t)})(nB=m.ExportSummary||(m.ExportSummary={}));var rB;(function(e){e.filterSensitiveLog=t=>o({},t)})(rB=m.ListExportsOutput||(m.ListExportsOutput={}));var iB;(function(e){e.filterSensitiveLog=t=>o({},t)})(iB=m.ListGlobalTablesInput||(m.ListGlobalTablesInput={}));var sB;(function(e){e.filterSensitiveLog=t=>o({},t)})(sB=m.GlobalTable||(m.GlobalTable={}));var aB;(function(e){e.filterSensitiveLog=t=>o({},t)})(aB=m.ListGlobalTablesOutput||(m.ListGlobalTablesOutput={}));var oB;(function(e){e.filterSensitiveLog=t=>o({},t)})(oB=m.ListTablesInput||(m.ListTablesInput={}));var lB;(function(e){e.filterSensitiveLog=t=>o({},t)})(lB=m.ListTablesOutput||(m.ListTablesOutput={}));var cB;(function(e){e.filterSensitiveLog=t=>o({},t)})(cB=m.ListTagsOfResourceInput||(m.ListTagsOfResourceInput={}));var dB;(function(e){e.filterSensitiveLog=t=>o({},t)})(dB=m.ListTagsOfResourceOutput||(m.ListTagsOfResourceOutput={}));var uB;(function(e){e.filterSensitiveLog=t=>o({},t)})(uB=m.RestoreTableFromBackupInput||(m.RestoreTableFromBackupInput={}));var mB;(function(e){e.filterSensitiveLog=t=>o({},t)})(mB=m.RestoreTableFromBackupOutput||(m.RestoreTableFromBackupOutput={}));var fB;(function(e){e.filterSensitiveLog=t=>o({},t)})(fB=m.RestoreTableToPointInTimeInput||(m.RestoreTableToPointInTimeInput={}));var pB;(function(e){e.filterSensitiveLog=t=>o({},t)})(pB=m.RestoreTableToPointInTimeOutput||(m.RestoreTableToPointInTimeOutput={}));var _B;(function(e){e.filterSensitiveLog=t=>o({},t)})(_B=m.TagResourceInput||(m.TagResourceInput={}));var hB;(function(e){e.filterSensitiveLog=t=>o({},t)})(hB=m.UntagResourceInput||(m.UntagResourceInput={}));var gB;(function(e){e.filterSensitiveLog=t=>o({},t)})(gB=m.PointInTimeRecoverySpecification||(m.PointInTimeRecoverySpecification={}));var yB;(function(e){e.filterSensitiveLog=t=>o({},t)})(yB=m.UpdateContinuousBackupsInput||(m.UpdateContinuousBackupsInput={}));var vB;(function(e){e.filterSensitiveLog=t=>o({},t)})(vB=m.UpdateContinuousBackupsOutput||(m.UpdateContinuousBackupsOutput={}));var bB;(function(e){e.filterSensitiveLog=t=>o({},t)})(bB=m.UpdateContributorInsightsInput||(m.UpdateContributorInsightsInput={}));var SB;(function(e){e.filterSensitiveLog=t=>o({},t)})(SB=m.UpdateContributorInsightsOutput||(m.UpdateContributorInsightsOutput={}));var wB;(function(e){e.filterSensitiveLog=t=>o({},t)})(wB=m.ReplicaUpdate||(m.ReplicaUpdate={}));var EB;(function(e){e.filterSensitiveLog=t=>o({},t)})(EB=m.UpdateGlobalTableInput||(m.UpdateGlobalTableInput={}));var AB;(function(e){e.filterSensitiveLog=t=>o({},t)})(AB=m.UpdateGlobalTableOutput||(m.UpdateGlobalTableOutput={}));var CB;(function(e){e.filterSensitiveLog=t=>o({},t)})(CB=m.GlobalTableGlobalSecondaryIndexSettingsUpdate||(m.GlobalTableGlobalSecondaryIndexSettingsUpdate={}));var TB;(function(e){e.filterSensitiveLog=t=>o({},t)})(TB=m.ReplicaGlobalSecondaryIndexSettingsUpdate||(m.ReplicaGlobalSecondaryIndexSettingsUpdate={}));var xB;(function(e){e.filterSensitiveLog=t=>o({},t)})(xB=m.ReplicaSettingsUpdate||(m.ReplicaSettingsUpdate={}));var IB;(function(e){e.filterSensitiveLog=t=>o({},t)})(IB=m.UpdateGlobalTableSettingsInput||(m.UpdateGlobalTableSettingsInput={}));var RB;(function(e){e.filterSensitiveLog=t=>o({},t)})(RB=m.UpdateGlobalTableSettingsOutput||(m.UpdateGlobalTableSettingsOutput={}));var NB;(function(e){e.filterSensitiveLog=t=>o({},t)})(NB=m.UpdateGlobalSecondaryIndexAction||(m.UpdateGlobalSecondaryIndexAction={}));var PB;(function(e){e.filterSensitiveLog=t=>o({},t)})(PB=m.GlobalSecondaryIndexUpdate||(m.GlobalSecondaryIndexUpdate={}));var DB;(function(e){e.filterSensitiveLog=t=>o({},t)})(DB=m.UpdateReplicationGroupMemberAction||(m.UpdateReplicationGroupMemberAction={}));var OB;(function(e){e.filterSensitiveLog=t=>o({},t)})(OB=m.ReplicationGroupUpdate||(m.ReplicationGroupUpdate={}));var LB;(function(e){e.filterSensitiveLog=t=>o({},t)})(LB=m.UpdateTableInput||(m.UpdateTableInput={}));var qB;(function(e){e.filterSensitiveLog=t=>o({},t)})(qB=m.UpdateTableOutput||(m.UpdateTableOutput={}));var MB;(function(e){e.filterSensitiveLog=t=>o({},t)})(MB=m.GlobalSecondaryIndexAutoScalingUpdate||(m.GlobalSecondaryIndexAutoScalingUpdate={}));var kB;(function(e){e.filterSensitiveLog=t=>o({},t)})(kB=m.ReplicaGlobalSecondaryIndexAutoScalingUpdate||(m.ReplicaGlobalSecondaryIndexAutoScalingUpdate={}));var jB;(function(e){e.filterSensitiveLog=t=>o({},t)})(jB=m.ReplicaAutoScalingUpdate||(m.ReplicaAutoScalingUpdate={}));var zB;(function(e){e.filterSensitiveLog=t=>o({},t)})(zB=m.UpdateTableReplicaAutoScalingInput||(m.UpdateTableReplicaAutoScalingInput={}));var UB;(function(e){e.filterSensitiveLog=t=>o({},t)})(UB=m.UpdateTableReplicaAutoScalingOutput||(m.UpdateTableReplicaAutoScalingOutput={}));var FB;(function(e){e.filterSensitiveLog=t=>o({},t)})(FB=m.TimeToLiveSpecification||(m.TimeToLiveSpecification={}));var BB;(function(e){e.filterSensitiveLog=t=>o({},t)})(BB=m.UpdateTimeToLiveInput||(m.UpdateTimeToLiveInput={}));var GB;(function(e){e.filterSensitiveLog=t=>o({},t)})(GB=m.UpdateTimeToLiveOutput||(m.UpdateTimeToLiveOutput={}));var oe;(function(e){e.visit=(t,n)=>t.S!==void 0?n.S(t.S):t.N!==void 0?n.N(t.N):t.B!==void 0?n.B(t.B):t.SS!==void 0?n.SS(t.SS):t.NS!==void 0?n.NS(t.NS):t.BS!==void 0?n.BS(t.BS):t.M!==void 0?n.M(t.M):t.L!==void 0?n.L(t.L):t.NULL!==void 0?n.NULL(t.NULL):t.BOOL!==void 0?n.BOOL(t.BOOL):n._(t.$unknown[0],t.$unknown[1]),e.filterSensitiveLog=t=>{if(t.S!==void 0)return{S:t.S};if(t.N!==void 0)return{N:t.N};if(t.B!==void 0)return{B:t.B};if(t.SS!==void 0)return{SS:t.SS};if(t.NS!==void 0)return{NS:t.NS};if(t.BS!==void 0)return{BS:t.BS};if(t.M!==void 0)return{M:Object.entries(t.M).reduce((n,[r,i])=>f(o({},n),{[r]:e.filterSensitiveLog(i)}),{})};if(t.L!==void 0)return{L:t.L.map(n=>e.filterSensitiveLog(n))};if(t.NULL!==void 0)return{NULL:t.NULL};if(t.BOOL!==void 0)return{BOOL:t.BOOL};if(t.$unknown!==void 0)return{[t.$unknown[0]]:"UNKNOWN"}}})(oe=m.AttributeValue||(m.AttributeValue={}));var xw;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Value&&{Value:oe.filterSensitiveLog(t.Value)})})(xw=m.AttributeValueUpdate||(m.AttributeValueUpdate={}));var Iw;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Parameters&&{Parameters:t.Parameters.map(n=>oe.filterSensitiveLog(n))})})(Iw=m.BatchStatementRequest||(m.BatchStatementRequest={}));var Rw;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})})})(Rw=m.BatchStatementResponse||(m.BatchStatementResponse={}));var $B;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})})})($B=m.CancellationReason||(m.CancellationReason={}));var _l;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.AttributeValueList&&{AttributeValueList:t.AttributeValueList.map(n=>oe.filterSensitiveLog(n))})})(_l=m.Condition||(m.Condition={}));var Nw;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})})})(Nw=m.DeleteRequest||(m.DeleteRequest={}));var KB;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Parameters&&{Parameters:t.Parameters.map(n=>oe.filterSensitiveLog(n))})})(KB=m.ExecuteStatementInput||(m.ExecuteStatementInput={}));var Pw;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})})})(Pw=m.Get||(m.Get={}));var VB;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})})})(VB=m.GetItemInput||(m.GetItemInput={}));var HB;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})})})(HB=m.GetItemOutput||(m.GetItemOutput={}));var as;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.ItemCollectionKey&&{ItemCollectionKey:Object.entries(t.ItemCollectionKey).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})})})(as=m.ItemCollectionMetrics||(m.ItemCollectionMetrics={}));var $_;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})})})($_=m.ItemResponse||(m.ItemResponse={}));var Dw;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Parameters&&{Parameters:t.Parameters.map(n=>oe.filterSensitiveLog(n))})})(Dw=m.ParameterizedStatement||(m.ParameterizedStatement={}));var Ow;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})})})(Ow=m.PutRequest||(m.PutRequest={}));var WB;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Items&&{Items:t.Items.map(n=>Object.entries(n).reduce((r,[i,s])=>f(o({},r),{[i]:oe.filterSensitiveLog(s)}),{}))})})(WB=m.ExecuteStatementOutput||(m.ExecuteStatementOutput={}));var K_;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Keys&&{Keys:t.Keys.map(n=>Object.entries(n).reduce((r,[i,s])=>f(o({},r),{[i]:oe.filterSensitiveLog(s)}),{}))})})(K_=m.KeysAndAttributes||(m.KeysAndAttributes={}));var Lw;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Get&&{Get:Pw.filterSensitiveLog(t.Get)})})(Lw=m.TransactGetItem||(m.TransactGetItem={}));var YB;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Statements&&{Statements:t.Statements.map(n=>Iw.filterSensitiveLog(n))})})(YB=m.BatchExecuteStatementInput||(m.BatchExecuteStatementInput={}));var JB;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Responses&&{Responses:t.Responses.map(n=>Rw.filterSensitiveLog(n))})})(JB=m.BatchExecuteStatementOutput||(m.BatchExecuteStatementOutput={}));var QB;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.TransactStatements&&{TransactStatements:t.TransactStatements.map(n=>Dw.filterSensitiveLog(n))})})(QB=m.ExecuteTransactionInput||(m.ExecuteTransactionInput={}));var XB;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Responses&&{Responses:t.Responses.map(n=>$_.filterSensitiveLog(n))})})(XB=m.ExecuteTransactionOutput||(m.ExecuteTransactionOutput={}));var ZB;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Responses&&{Responses:t.Responses.map(n=>$_.filterSensitiveLog(n))})})(ZB=m.TransactGetItemsOutput||(m.TransactGetItemsOutput={}));var eG;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.RequestItems&&{RequestItems:Object.entries(t.RequestItems).reduce((n,[r,i])=>f(o({},n),{[r]:K_.filterSensitiveLog(i)}),{})})})(eG=m.BatchGetItemInput||(m.BatchGetItemInput={}));var hl;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Value&&{Value:oe.filterSensitiveLog(t.Value)}),t.AttributeValueList&&{AttributeValueList:t.AttributeValueList.map(n=>oe.filterSensitiveLog(n))})})(hl=m.ExpectedAttributeValue||(m.ExpectedAttributeValue={}));var tG;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.TransactItems&&{TransactItems:t.TransactItems.map(n=>Lw.filterSensitiveLog(n))})})(tG=m.TransactGetItemsInput||(m.TransactGetItemsInput={}));var nG;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.ItemCollectionMetrics&&{ItemCollectionMetrics:Object.entries(t.ItemCollectionMetrics).reduce((n,[r,i])=>f(o({},n),{[r]:i.map(s=>as.filterSensitiveLog(s))}),{})})})(nG=m.TransactWriteItemsOutput||(m.TransactWriteItemsOutput={}));var qw;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})})})(qw=m.ConditionCheck||(m.ConditionCheck={}));var Mw;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})})})(Mw=m.Delete||(m.Delete={}));var kw;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})})})(kw=m.Put||(m.Put={}));var jw;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})})})(jw=m.Update||(m.Update={}));var rG;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Attributes&&{Attributes:Object.entries(t.Attributes).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})}),t.ItemCollectionMetrics&&{ItemCollectionMetrics:as.filterSensitiveLog(t.ItemCollectionMetrics)})})(rG=m.DeleteItemOutput||(m.DeleteItemOutput={}));var iG;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Attributes&&{Attributes:Object.entries(t.Attributes).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})}),t.ItemCollectionMetrics&&{ItemCollectionMetrics:as.filterSensitiveLog(t.ItemCollectionMetrics)})})(iG=m.PutItemOutput||(m.PutItemOutput={}));var sG;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Items&&{Items:t.Items.map(n=>Object.entries(n).reduce((r,[i,s])=>f(o({},r),{[i]:oe.filterSensitiveLog(s)}),{}))}),t.LastEvaluatedKey&&{LastEvaluatedKey:Object.entries(t.LastEvaluatedKey).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})})})(sG=m.QueryOutput||(m.QueryOutput={}));var aG;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Items&&{Items:t.Items.map(n=>Object.entries(n).reduce((r,[i,s])=>f(o({},r),{[i]:oe.filterSensitiveLog(s)}),{}))}),t.LastEvaluatedKey&&{LastEvaluatedKey:Object.entries(t.LastEvaluatedKey).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})})})(aG=m.ScanOutput||(m.ScanOutput={}));var oG;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Attributes&&{Attributes:Object.entries(t.Attributes).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})}),t.ItemCollectionMetrics&&{ItemCollectionMetrics:as.filterSensitiveLog(t.ItemCollectionMetrics)})})(oG=m.UpdateItemOutput||(m.UpdateItemOutput={}));var V_;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.PutRequest&&{PutRequest:Ow.filterSensitiveLog(t.PutRequest)}),t.DeleteRequest&&{DeleteRequest:Nw.filterSensitiveLog(t.DeleteRequest)})})(V_=m.WriteRequest||(m.WriteRequest={}));var lG;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Responses&&{Responses:Object.entries(t.Responses).reduce((n,[r,i])=>f(o({},n),{[r]:i.map(s=>Object.entries(s).reduce((a,[l,c])=>f(o({},a),{[l]:oe.filterSensitiveLog(c)}),{}))}),{})}),t.UnprocessedKeys&&{UnprocessedKeys:Object.entries(t.UnprocessedKeys).reduce((n,[r,i])=>f(o({},n),{[r]:K_.filterSensitiveLog(i)}),{})})})(lG=m.BatchGetItemOutput||(m.BatchGetItemOutput={}));var cG;(function(e){e.filterSensitiveLog=t=>o(o(o(o({},t),t.ScanFilter&&{ScanFilter:Object.entries(t.ScanFilter).reduce((n,[r,i])=>f(o({},n),{[r]:_l.filterSensitiveLog(i)}),{})}),t.ExclusiveStartKey&&{ExclusiveStartKey:Object.entries(t.ExclusiveStartKey).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})})})(cG=m.ScanInput||(m.ScanInput={}));var dG;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.RequestItems&&{RequestItems:Object.entries(t.RequestItems).reduce((n,[r,i])=>f(o({},n),{[r]:i.map(s=>V_.filterSensitiveLog(s))}),{})})})(dG=m.BatchWriteItemInput||(m.BatchWriteItemInput={}));var uG;(function(e){e.filterSensitiveLog=t=>o(o(o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})}),t.Expected&&{Expected:Object.entries(t.Expected).reduce((n,[r,i])=>f(o({},n),{[r]:hl.filterSensitiveLog(i)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})})})(uG=m.DeleteItemInput||(m.DeleteItemInput={}));var mG;(function(e){e.filterSensitiveLog=t=>o(o(o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})}),t.Expected&&{Expected:Object.entries(t.Expected).reduce((n,[r,i])=>f(o({},n),{[r]:hl.filterSensitiveLog(i)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})})})(mG=m.PutItemInput||(m.PutItemInput={}));var fG;(function(e){e.filterSensitiveLog=t=>o(o(o(o(o({},t),t.KeyConditions&&{KeyConditions:Object.entries(t.KeyConditions).reduce((n,[r,i])=>f(o({},n),{[r]:_l.filterSensitiveLog(i)}),{})}),t.QueryFilter&&{QueryFilter:Object.entries(t.QueryFilter).reduce((n,[r,i])=>f(o({},n),{[r]:_l.filterSensitiveLog(i)}),{})}),t.ExclusiveStartKey&&{ExclusiveStartKey:Object.entries(t.ExclusiveStartKey).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})})})(fG=m.QueryInput||(m.QueryInput={}));var pG;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.UnprocessedItems&&{UnprocessedItems:Object.entries(t.UnprocessedItems).reduce((n,[r,i])=>f(o({},n),{[r]:i.map(s=>V_.filterSensitiveLog(s))}),{})}),t.ItemCollectionMetrics&&{ItemCollectionMetrics:Object.entries(t.ItemCollectionMetrics).reduce((n,[r,i])=>f(o({},n),{[r]:i.map(s=>as.filterSensitiveLog(s))}),{})})})(pG=m.BatchWriteItemOutput||(m.BatchWriteItemOutput={}));var _G;(function(e){e.filterSensitiveLog=t=>o(o(o(o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})}),t.AttributeUpdates&&{AttributeUpdates:Object.entries(t.AttributeUpdates).reduce((n,[r,i])=>f(o({},n),{[r]:xw.filterSensitiveLog(i)}),{})}),t.Expected&&{Expected:Object.entries(t.Expected).reduce((n,[r,i])=>f(o({},n),{[r]:hl.filterSensitiveLog(i)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})})})(_G=m.UpdateItemInput||(m.UpdateItemInput={}));var zw;(function(e){e.filterSensitiveLog=t=>o(o(o(o(o({},t),t.ConditionCheck&&{ConditionCheck:qw.filterSensitiveLog(t.ConditionCheck)}),t.Put&&{Put:kw.filterSensitiveLog(t.Put)}),t.Delete&&{Delete:Mw.filterSensitiveLog(t.Delete)}),t.Update&&{Update:jw.filterSensitiveLog(t.Update)})})(zw=m.TransactWriteItem||(m.TransactWriteItem={}));var hG;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.TransactItems&&{TransactItems:t.TransactItems.map(n=>zw.filterSensitiveLog(n))})})(hG=m.TransactWriteItemsInput||(m.TransactWriteItemsInput={}))});var Fw=p(Uw=>{"use strict";Object.defineProperty(Uw,"__esModule",{value:!0})});var Bw=p(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});yl.HttpRequest=void 0;var gl=class{constructor(t){this.method=t.method||"GET",this.hostname=t.hostname||"localhost",this.port=t.port,this.query=t.query||{},this.headers=t.headers||{},this.body=t.body,this.protocol=t.protocol?t.protocol.substr(-1)!==":"?`${t.protocol}:`:t.protocol:"https:",this.path=t.path?t.path.charAt(0)!=="/"?`/${t.path}`:t.path:"/"}static isInstance(t){if(!t)return!1;let n=t;return"method"in n&&"protocol"in n&&"hostname"in n&&"path"in n&&typeof n.query=="object"&&typeof n.headers=="object"}clone(){let t=new gl(f(o({},this),{headers:o({},this.headers)}));return t.query&&(t.query=gG(t.query)),t}};yl.HttpRequest=gl;function gG(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return f(o({},t),{[n]:Array.isArray(r)?[...r]:r})},{})}});var $w=p(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});vl.HttpResponse=void 0;var Gw=class{constructor(t){this.statusCode=t.statusCode,this.headers=t.headers||{},this.body=t.body}static isInstance(t){if(!t)return!1;let n=t;return typeof n.statusCode=="number"&&typeof n.headers=="object"}};vl.HttpResponse=Gw});var Kw=p(bl=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});bl.isValidHostname=void 0;function yG(e){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(e)}bl.isValidHostname=yG});var jt=p(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});var Sl=se();Sl.__exportStar(Fw(),os);Sl.__exportStar(Bw(),os);Sl.__exportStar($w(),os);Sl.__exportStar(Kw(),os)});var W_=p(H_=>{"use strict";Object.defineProperty(H_,"__esModule",{value:!0});H_.default=SG;var vG=bG(require("crypto"));function bG(e){return e&&e.__esModule?e:{default:e}}var wl=new Uint8Array(256),El=wl.length;function SG(){return El>wl.length-16&&(vG.default.randomFillSync(wl),El=0),wl.slice(El,El+=16)}});var Vw=p(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});Al.default=void 0;var wG=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;Al.default=wG});var Sa=p(Cl=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});Cl.default=void 0;var EG=AG(Vw());function AG(e){return e&&e.__esModule?e:{default:e}}function CG(e){return typeof e=="string"&&EG.default.test(e)}var TG=CG;Cl.default=TG});var wa=p(Tl=>{"use strict";Object.defineProperty(Tl,"__esModule",{value:!0});Tl.default=void 0;var xG=IG(Sa());function IG(e){return e&&e.__esModule?e:{default:e}}var ot=[];for(let e=0;e<256;++e)ot.push((e+256).toString(16).substr(1));function RG(e,t=0){let n=(ot[e[t+0]]+ot[e[t+1]]+ot[e[t+2]]+ot[e[t+3]]+"-"+ot[e[t+4]]+ot[e[t+5]]+"-"+ot[e[t+6]]+ot[e[t+7]]+"-"+ot[e[t+8]]+ot[e[t+9]]+"-"+ot[e[t+10]]+ot[e[t+11]]+ot[e[t+12]]+ot[e[t+13]]+ot[e[t+14]]+ot[e[t+15]]).toLowerCase();if(!(0,xG.default)(n))throw TypeError("Stringified UUID is invalid");return n}var NG=RG;Tl.default=NG});var Yw=p(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});xl.default=void 0;var PG=Hw(W_()),DG=Hw(wa());function Hw(e){return e&&e.__esModule?e:{default:e}}var Ww,Y_,J_=0,Q_=0;function OG(e,t,n){let r=t&&n||0,i=t||new Array(16);e=e||{};let s=e.node||Ww,a=e.clockseq!==void 0?e.clockseq:Y_;if(s==null||a==null){let g=e.random||(e.rng||PG.default)();s==null&&(s=Ww=[g[0]|1,g[1],g[2],g[3],g[4],g[5]]),a==null&&(a=Y_=(g[6]<<8|g[7])&16383)}let l=e.msecs!==void 0?e.msecs:Date.now(),c=e.nsecs!==void 0?e.nsecs:Q_+1,d=l-J_+(c-Q_)/1e4;if(d<0&&e.clockseq===void 0&&(a=a+1&16383),(d<0||l>J_)&&e.nsecs===void 0&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");J_=l,Q_=c,Y_=a,l+=122192928e5;let u=((l&268435455)*1e4+c)%4294967296;i[r++]=u>>>24&255,i[r++]=u>>>16&255,i[r++]=u>>>8&255,i[r++]=u&255;let _=l/4294967296*1e4&268435455;i[r++]=_>>>8&255,i[r++]=_&255,i[r++]=_>>>24&15|16,i[r++]=_>>>16&255,i[r++]=a>>>8|128,i[r++]=a&255;for(let g=0;g<6;++g)i[r+g]=s[g];return t||(0,DG.default)(i)}var LG=OG;xl.default=LG});var X_=p(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});Il.default=void 0;var qG=MG(Sa());function MG(e){return e&&e.__esModule?e:{default:e}}function kG(e){if(!(0,qG.default)(e))throw TypeError("Invalid UUID");let t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=t&255,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=t&255,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=t&255,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=t&255,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=t&255,n}var jG=kG;Il.default=jG});var Z_=p(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.default=BG;mi.URL=mi.DNS=void 0;var zG=Jw(wa()),UG=Jw(X_());function Jw(e){return e&&e.__esModule?e:{default:e}}function FG(e){e=unescape(encodeURIComponent(e));let t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}var Qw="6ba7b810-9dad-11d1-80b4-00c04fd430c8";mi.DNS=Qw;var Xw="6ba7b811-9dad-11d1-80b4-00c04fd430c8";mi.URL=Xw;function BG(e,t,n){function r(i,s,a,l){if(typeof i=="string"&&(i=FG(i)),typeof s=="string"&&(s=(0,UG.default)(s)),s.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let c=new Uint8Array(16+i.length);if(c.set(s),c.set(i,s.length),c=n(c),c[6]=c[6]&15|t,c[8]=c[8]&63|128,a){l=l||0;for(let d=0;d<16;++d)a[l+d]=c[d];return a}return(0,zG.default)(c)}try{r.name=e}catch{}return r.DNS=Qw,r.URL=Xw,r}});var Zw=p(Rl=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});Rl.default=void 0;var GG=$G(require("crypto"));function $G(e){return e&&e.__esModule?e:{default:e}}function KG(e){return Array.isArray(e)?e=Buffer.from(e):typeof e=="string"&&(e=Buffer.from(e,"utf8")),GG.default.createHash("md5").update(e).digest()}var VG=KG;Rl.default=VG});var tE=p(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});Nl.default=void 0;var HG=eE(Z_()),WG=eE(Zw());function eE(e){return e&&e.__esModule?e:{default:e}}var YG=(0,HG.default)("v3",48,WG.default),JG=YG;Nl.default=JG});var rE=p(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});Pl.default=void 0;var QG=nE(W_()),XG=nE(wa());function nE(e){return e&&e.__esModule?e:{default:e}}function ZG(e,t,n){e=e||{};let r=e.random||(e.rng||QG.default)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let i=0;i<16;++i)t[n+i]=r[i];return t}return(0,XG.default)(r)}var e$=ZG;Pl.default=e$});var iE=p(Dl=>{"use strict";Object.defineProperty(Dl,"__esModule",{value:!0});Dl.default=void 0;var t$=n$(require("crypto"));function n$(e){return e&&e.__esModule?e:{default:e}}function r$(e){return Array.isArray(e)?e=Buffer.from(e):typeof e=="string"&&(e=Buffer.from(e,"utf8")),t$.default.createHash("sha1").update(e).digest()}var i$=r$;Dl.default=i$});var aE=p(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});Ol.default=void 0;var s$=sE(Z_()),a$=sE(iE());function sE(e){return e&&e.__esModule?e:{default:e}}var o$=(0,s$.default)("v5",80,a$.default),l$=o$;Ol.default=l$});var oE=p(Ll=>{"use strict";Object.defineProperty(Ll,"__esModule",{value:!0});Ll.default=void 0;var c$="00000000-0000-0000-0000-000000000000";Ll.default=c$});var lE=p(ql=>{"use strict";Object.defineProperty(ql,"__esModule",{value:!0});ql.default=void 0;var d$=u$(Sa());function u$(e){return e&&e.__esModule?e:{default:e}}function m$(e){if(!(0,d$.default)(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}var f$=m$;ql.default=f$});var eh=p(cn=>{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});Object.defineProperty(cn,"v1",{enumerable:!0,get:function(){return p$.default}});Object.defineProperty(cn,"v3",{enumerable:!0,get:function(){return _$.default}});Object.defineProperty(cn,"v4",{enumerable:!0,get:function(){return h$.default}});Object.defineProperty(cn,"v5",{enumerable:!0,get:function(){return g$.default}});Object.defineProperty(cn,"NIL",{enumerable:!0,get:function(){return y$.default}});Object.defineProperty(cn,"version",{enumerable:!0,get:function(){return v$.default}});Object.defineProperty(cn,"validate",{enumerable:!0,get:function(){return b$.default}});Object.defineProperty(cn,"stringify",{enumerable:!0,get:function(){return S$.default}});Object.defineProperty(cn,"parse",{enumerable:!0,get:function(){return w$.default}});var p$=er(Yw()),_$=er(tE()),h$=er(rE()),g$=er(aE()),y$=er(oE()),v$=er(lE()),b$=er(Sa()),S$=er(wa()),w$=er(X_());function er(e){return e&&e.__esModule?e:{default:e}}});var J=p(w=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});w.serializeAws_json1_0UpdateTimeToLiveCommand=w.serializeAws_json1_0UpdateTableReplicaAutoScalingCommand=w.serializeAws_json1_0UpdateTableCommand=w.serializeAws_json1_0UpdateItemCommand=w.serializeAws_json1_0UpdateGlobalTableSettingsCommand=w.serializeAws_json1_0UpdateGlobalTableCommand=w.serializeAws_json1_0UpdateContributorInsightsCommand=w.serializeAws_json1_0UpdateContinuousBackupsCommand=w.serializeAws_json1_0UntagResourceCommand=w.serializeAws_json1_0TransactWriteItemsCommand=w.serializeAws_json1_0TransactGetItemsCommand=w.serializeAws_json1_0TagResourceCommand=w.serializeAws_json1_0ScanCommand=w.serializeAws_json1_0RestoreTableToPointInTimeCommand=w.serializeAws_json1_0RestoreTableFromBackupCommand=w.serializeAws_json1_0QueryCommand=w.serializeAws_json1_0PutItemCommand=w.serializeAws_json1_0ListTagsOfResourceCommand=w.serializeAws_json1_0ListTablesCommand=w.serializeAws_json1_0ListGlobalTablesCommand=w.serializeAws_json1_0ListExportsCommand=w.serializeAws_json1_0ListContributorInsightsCommand=w.serializeAws_json1_0ListBackupsCommand=w.serializeAws_json1_0GetItemCommand=w.serializeAws_json1_0ExportTableToPointInTimeCommand=w.serializeAws_json1_0ExecuteTransactionCommand=w.serializeAws_json1_0ExecuteStatementCommand=w.serializeAws_json1_0EnableKinesisStreamingDestinationCommand=w.serializeAws_json1_0DisableKinesisStreamingDestinationCommand=w.serializeAws_json1_0DescribeTimeToLiveCommand=w.serializeAws_json1_0DescribeTableReplicaAutoScalingCommand=w.serializeAws_json1_0DescribeTableCommand=w.serializeAws_json1_0DescribeLimitsCommand=w.serializeAws_json1_0DescribeKinesisStreamingDestinationCommand=w.serializeAws_json1_0DescribeGlobalTableSettingsCommand=w.serializeAws_json1_0DescribeGlobalTableCommand=w.serializeAws_json1_0DescribeExportCommand=w.serializeAws_json1_0DescribeEndpointsCommand=w.serializeAws_json1_0DescribeContributorInsightsCommand=w.serializeAws_json1_0DescribeContinuousBackupsCommand=w.serializeAws_json1_0DescribeBackupCommand=w.serializeAws_json1_0DeleteTableCommand=w.serializeAws_json1_0DeleteItemCommand=w.serializeAws_json1_0DeleteBackupCommand=w.serializeAws_json1_0CreateTableCommand=w.serializeAws_json1_0CreateGlobalTableCommand=w.serializeAws_json1_0CreateBackupCommand=w.serializeAws_json1_0BatchWriteItemCommand=w.serializeAws_json1_0BatchGetItemCommand=w.serializeAws_json1_0BatchExecuteStatementCommand=void 0;w.deserializeAws_json1_0UpdateTimeToLiveCommand=w.deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand=w.deserializeAws_json1_0UpdateTableCommand=w.deserializeAws_json1_0UpdateItemCommand=w.deserializeAws_json1_0UpdateGlobalTableSettingsCommand=w.deserializeAws_json1_0UpdateGlobalTableCommand=w.deserializeAws_json1_0UpdateContributorInsightsCommand=w.deserializeAws_json1_0UpdateContinuousBackupsCommand=w.deserializeAws_json1_0UntagResourceCommand=w.deserializeAws_json1_0TransactWriteItemsCommand=w.deserializeAws_json1_0TransactGetItemsCommand=w.deserializeAws_json1_0TagResourceCommand=w.deserializeAws_json1_0ScanCommand=w.deserializeAws_json1_0RestoreTableToPointInTimeCommand=w.deserializeAws_json1_0RestoreTableFromBackupCommand=w.deserializeAws_json1_0QueryCommand=w.deserializeAws_json1_0PutItemCommand=w.deserializeAws_json1_0ListTagsOfResourceCommand=w.deserializeAws_json1_0ListTablesCommand=w.deserializeAws_json1_0ListGlobalTablesCommand=w.deserializeAws_json1_0ListExportsCommand=w.deserializeAws_json1_0ListContributorInsightsCommand=w.deserializeAws_json1_0ListBackupsCommand=w.deserializeAws_json1_0GetItemCommand=w.deserializeAws_json1_0ExportTableToPointInTimeCommand=w.deserializeAws_json1_0ExecuteTransactionCommand=w.deserializeAws_json1_0ExecuteStatementCommand=w.deserializeAws_json1_0EnableKinesisStreamingDestinationCommand=w.deserializeAws_json1_0DisableKinesisStreamingDestinationCommand=w.deserializeAws_json1_0DescribeTimeToLiveCommand=w.deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand=w.deserializeAws_json1_0DescribeTableCommand=w.deserializeAws_json1_0DescribeLimitsCommand=w.deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand=w.deserializeAws_json1_0DescribeGlobalTableSettingsCommand=w.deserializeAws_json1_0DescribeGlobalTableCommand=w.deserializeAws_json1_0DescribeExportCommand=w.deserializeAws_json1_0DescribeEndpointsCommand=w.deserializeAws_json1_0DescribeContributorInsightsCommand=w.deserializeAws_json1_0DescribeContinuousBackupsCommand=w.deserializeAws_json1_0DescribeBackupCommand=w.deserializeAws_json1_0DeleteTableCommand=w.deserializeAws_json1_0DeleteItemCommand=w.deserializeAws_json1_0DeleteBackupCommand=w.deserializeAws_json1_0CreateTableCommand=w.deserializeAws_json1_0CreateGlobalTableCommand=w.deserializeAws_json1_0CreateBackupCommand=w.deserializeAws_json1_0BatchWriteItemCommand=w.deserializeAws_json1_0BatchGetItemCommand=w.deserializeAws_json1_0BatchExecuteStatementCommand=void 0;var E$=jt(),y=q(),th=eh(),A$=H(),C$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.BatchExecuteStatement"},r;return r=JSON.stringify(TV(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0BatchExecuteStatementCommand=C$;var T$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.BatchGetItem"},r;return r=JSON.stringify(xV(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0BatchGetItemCommand=T$;var x$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.BatchWriteItem"},r;return r=JSON.stringify(NV(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0BatchWriteItemCommand=x$;var I$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.CreateBackup"},r;return r=JSON.stringify(LV(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0CreateBackupCommand=I$;var R$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.CreateGlobalTable"},r;return r=JSON.stringify(MV(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0CreateGlobalTableCommand=R$;var N$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.CreateTable"},r;return r=JSON.stringify(zV(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0CreateTableCommand=N$;var P$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DeleteBackup"},r;return r=JSON.stringify(FV(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0DeleteBackupCommand=P$;var D$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DeleteItem"},r;return r=JSON.stringify(GV(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0DeleteItemCommand=D$;var O$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DeleteTable"},r;return r=JSON.stringify(HV(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0DeleteTableCommand=O$;var L$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeBackup"},r;return r=JSON.stringify(WV(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0DescribeBackupCommand=L$;var q$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeContinuousBackups"},r;return r=JSON.stringify(YV(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0DescribeContinuousBackupsCommand=q$;var M$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeContributorInsights"},r;return r=JSON.stringify(JV(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0DescribeContributorInsightsCommand=M$;var k$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeEndpoints"},r;return r=JSON.stringify(QV(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0DescribeEndpointsCommand=k$;var j$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeExport"},r;return r=JSON.stringify(XV(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0DescribeExportCommand=j$;var z$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeGlobalTable"},r;return r=JSON.stringify(ZV(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0DescribeGlobalTableCommand=z$;var U$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeGlobalTableSettings"},r;return r=JSON.stringify(eH(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0DescribeGlobalTableSettingsCommand=U$;var F$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeKinesisStreamingDestination"},r;return r=JSON.stringify(tH(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0DescribeKinesisStreamingDestinationCommand=F$;var B$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeLimits"},r;return r=JSON.stringify(nH(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0DescribeLimitsCommand=B$;var G$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeTable"},r;return r=JSON.stringify(rH(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0DescribeTableCommand=G$;var $$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeTableReplicaAutoScaling"},r;return r=JSON.stringify(iH(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0DescribeTableReplicaAutoScalingCommand=$$;var K$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeTimeToLive"},r;return r=JSON.stringify(sH(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0DescribeTimeToLiveCommand=K$;var V$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DisableKinesisStreamingDestination"},r;return r=JSON.stringify(vE(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0DisableKinesisStreamingDestinationCommand=V$;var H$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.EnableKinesisStreamingDestination"},r;return r=JSON.stringify(vE(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0EnableKinesisStreamingDestinationCommand=H$;var W$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ExecuteStatement"},r;return r=JSON.stringify(aH(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0ExecuteStatementCommand=W$;var Y$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ExecuteTransaction"},r;return r=JSON.stringify(oH(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0ExecuteTransactionCommand=Y$;var J$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ExportTableToPointInTime"},r;return r=JSON.stringify(cH(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0ExportTableToPointInTimeCommand=J$;var Q$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.GetItem"},r;return r=JSON.stringify(uH(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0GetItemCommand=Q$;var X$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListBackups"},r;return r=JSON.stringify(AH(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0ListBackupsCommand=X$;var Z$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListContributorInsights"},r;return r=JSON.stringify(CH(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0ListContributorInsightsCommand=Z$;var e2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListExports"},r;return r=JSON.stringify(TH(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0ListExportsCommand=e2;var t2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListGlobalTables"},r;return r=JSON.stringify(xH(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0ListGlobalTablesCommand=t2;var n2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListTables"},r;return r=JSON.stringify(IH(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0ListTablesCommand=n2;var r2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListTagsOfResource"},r;return r=JSON.stringify(RH(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0ListTagsOfResourceCommand=r2;var i2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.PutItem"},r;return r=JSON.stringify(zH(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0PutItemCommand=i2;var s2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.Query"},r;return r=JSON.stringify(FH(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0QueryCommand=s2;var a2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.RestoreTableFromBackup"},r;return r=JSON.stringify(r3(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0RestoreTableFromBackupCommand=a2;var o2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.RestoreTableToPointInTime"},r;return r=JSON.stringify(i3(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0RestoreTableToPointInTimeCommand=o2;var l2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.Scan"},r;return r=JSON.stringify(s3(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0ScanCommand=l2;var c2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.TagResource"},r;return r=JSON.stringify(c3(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0TagResourceCommand=c2;var d2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.TransactGetItems"},r;return r=JSON.stringify(f3(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0TransactGetItemsCommand=d2;var u2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.TransactWriteItems"},r;return r=JSON.stringify(h3(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0TransactWriteItemsCommand=u2;var m2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UntagResource"},r;return r=JSON.stringify(g3(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0UntagResourceCommand=m2;var f2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateContinuousBackups"},r;return r=JSON.stringify(v3(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0UpdateContinuousBackupsCommand=f2;var p2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateContributorInsights"},r;return r=JSON.stringify(b3(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0UpdateContributorInsightsCommand=p2;var _2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateGlobalTable"},r;return r=JSON.stringify(w3(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0UpdateGlobalTableCommand=_2;var h2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateGlobalTableSettings"},r;return r=JSON.stringify(E3(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0UpdateGlobalTableSettingsCommand=h2;var g2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateItem"},r;return r=JSON.stringify(A3(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0UpdateItemCommand=g2;var y2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateTable"},r;return r=JSON.stringify(T3(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0UpdateTableCommand=y2;var v2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateTableReplicaAutoScaling"},r;return r=JSON.stringify(x3(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0UpdateTableReplicaAutoScalingCommand=v2;var b2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateTimeToLive"},r;return r=JSON.stringify(I3(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0UpdateTimeToLiveCommand=b2;var S2=async(e,t)=>{if(e.statusCode>=300)return w2(e,t);let n=await P(e.body,t),r={};r=B3(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0BatchExecuteStatementCommand=S2;var w2=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=f(o({},await zt(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},E2=async(e,t)=>{if(e.statusCode>=300)return A2(e,t);let n=await P(e.body,t),r={};r=G3(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0BatchGetItemCommand=E2;var A2=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=f(o({},await Wt(n,t)),{name:i,$metadata:h(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=f(o({},await zt(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},C2=async(e,t)=>{if(e.statusCode>=300)return T2(e,t);let n=await P(e.body,t),r={};r=W3(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0BatchWriteItemCommand=C2;var T2=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":r=f(o({},await Ea(n,t)),{name:i,$metadata:h(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=f(o({},await Wt(n,t)),{name:i,$metadata:h(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=f(o({},await zt(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},x2=async(e,t)=>{if(e.statusCode>=300)return I2(e,t);let n=await P(e.body,t),r={};r=iW(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0CreateBackupCommand=x2;var I2=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"BackupInUseException":case"com.amazonaws.dynamodb#BackupInUseException":r=f(o({},await nh(n,t)),{name:i,$metadata:h(e)});break;case"ContinuousBackupsUnavailableException":case"com.amazonaws.dynamodb#ContinuousBackupsUnavailableException":r=f(o({},await cE(n,t)),{name:i,$metadata:h(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=f(o({},await et(n,t)),{name:i,$metadata:h(e)});break;case"TableInUseException":case"com.amazonaws.dynamodb#TableInUseException":r=f(o({},await ih(n,t)),{name:i,$metadata:h(e)});break;case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":r=f(o({},await fi(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},R2=async(e,t)=>{if(e.statusCode>=300)return N2(e,t);let n=await P(e.body,t),r={};r=sW(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0CreateGlobalTableCommand=R2;var N2=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"GlobalTableAlreadyExistsException":case"com.amazonaws.dynamodb#GlobalTableAlreadyExistsException":r=f(o({},await hV(n,t)),{name:i,$metadata:h(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=f(o({},await et(n,t)),{name:i,$metadata:h(e)});break;case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":r=f(o({},await fi(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},P2=async(e,t)=>{if(e.statusCode>=300)return D2(e,t);let n=await P(e.body,t),r={};r=aW(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0CreateTableCommand=P2;var D2=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=f(o({},await et(n,t)),{name:i,$metadata:h(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=f(o({},await Cn(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},O2=async(e,t)=>{if(e.statusCode>=300)return L2(e,t);let n=await P(e.body,t),r={};r=oW(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0DeleteBackupCommand=O2;var L2=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"BackupInUseException":case"com.amazonaws.dynamodb#BackupInUseException":r=f(o({},await nh(n,t)),{name:i,$metadata:h(e)});break;case"BackupNotFoundException":case"com.amazonaws.dynamodb#BackupNotFoundException":r=f(o({},await rh(n,t)),{name:i,$metadata:h(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=f(o({},await et(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},q2=async(e,t)=>{if(e.statusCode>=300)return M2(e,t);let n=await P(e.body,t),r={};r=lW(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0DeleteItemCommand=q2;var M2=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":r=f(o({},await Ml(n,t)),{name:i,$metadata:h(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":r=f(o({},await Ea(n,t)),{name:i,$metadata:h(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=f(o({},await Wt(n,t)),{name:i,$metadata:h(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=f(o({},await zt(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":r=f(o({},await jl(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},k2=async(e,t)=>{if(e.statusCode>=300)return j2(e,t);let n=await P(e.body,t),r={};r=dW(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0DeleteTableCommand=k2;var j2=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=f(o({},await et(n,t)),{name:i,$metadata:h(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=f(o({},await Cn(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},z2=async(e,t)=>{if(e.statusCode>=300)return U2(e,t);let n=await P(e.body,t),r={};r=uW(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeBackupCommand=z2;var U2=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"BackupNotFoundException":case"com.amazonaws.dynamodb#BackupNotFoundException":r=f(o({},await rh(n,t)),{name:i,$metadata:h(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},F2=async(e,t)=>{if(e.statusCode>=300)return B2(e,t);let n=await P(e.body,t),r={};r=mW(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeContinuousBackupsCommand=F2;var B2=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":r=f(o({},await fi(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},G2=async(e,t)=>{if(e.statusCode>=300)return $2(e,t);let n=await P(e.body,t),r={};r=fW(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeContributorInsightsCommand=G2;var $2=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},K2=async(e,t)=>{if(e.statusCode>=300)return V2(e,t);let n=await P(e.body,t),r={};r=pW(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeEndpointsCommand=K2;var V2=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},H2=async(e,t)=>{if(e.statusCode>=300)return W2(e,t);let n=await P(e.body,t),r={};r=_W(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeExportCommand=H2;var W2=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"ExportNotFoundException":case"com.amazonaws.dynamodb#ExportNotFoundException":r=f(o({},await _V(n,t)),{name:i,$metadata:h(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=f(o({},await et(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},Y2=async(e,t)=>{if(e.statusCode>=300)return J2(e,t);let n=await P(e.body,t),r={};r=hW(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeGlobalTableCommand=Y2;var J2=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"GlobalTableNotFoundException":case"com.amazonaws.dynamodb#GlobalTableNotFoundException":r=f(o({},await kl(n,t)),{name:i,$metadata:h(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},Q2=async(e,t)=>{if(e.statusCode>=300)return X2(e,t);let n=await P(e.body,t),r={};r=gW(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeGlobalTableSettingsCommand=Q2;var X2=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"GlobalTableNotFoundException":case"com.amazonaws.dynamodb#GlobalTableNotFoundException":r=f(o({},await kl(n,t)),{name:i,$metadata:h(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},Z2=async(e,t)=>{if(e.statusCode>=300)return eK(e,t);let n=await P(e.body,t),r={};r=yW(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand=Z2;var eK=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},tK=async(e,t)=>{if(e.statusCode>=300)return nK(e,t);let n=await P(e.body,t),r={};r=vW(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeLimitsCommand=tK;var nK=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},rK=async(e,t)=>{if(e.statusCode>=300)return iK(e,t);let n=await P(e.body,t),r={};r=bW(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeTableCommand=rK;var iK=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},sK=async(e,t)=>{if(e.statusCode>=300)return aK(e,t);let n=await P(e.body,t),r={};r=SW(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand=sK;var aK=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},oK=async(e,t)=>{if(e.statusCode>=300)return lK(e,t);let n=await P(e.body,t),r={};r=wW(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeTimeToLiveCommand=oK;var lK=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},cK=async(e,t)=>{if(e.statusCode>=300)return dK(e,t);let n=await P(e.body,t),r={};r=PE(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0DisableKinesisStreamingDestinationCommand=cK;var dK=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=f(o({},await et(n,t)),{name:i,$metadata:h(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=f(o({},await Cn(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},uK=async(e,t)=>{if(e.statusCode>=300)return mK(e,t);let n=await P(e.body,t),r={};r=PE(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0EnableKinesisStreamingDestinationCommand=uK;var mK=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=f(o({},await et(n,t)),{name:i,$metadata:h(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=f(o({},await Cn(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},fK=async(e,t)=>{if(e.statusCode>=300)return pK(e,t);let n=await P(e.body,t),r={};r=TW(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0ExecuteStatementCommand=fK;var pK=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":r=f(o({},await Ml(n,t)),{name:i,$metadata:h(e)});break;case"DuplicateItemException":case"com.amazonaws.dynamodb#DuplicateItemException":r=f(o({},await fV(n,t)),{name:i,$metadata:h(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":r=f(o({},await Ea(n,t)),{name:i,$metadata:h(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=f(o({},await Wt(n,t)),{name:i,$metadata:h(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=f(o({},await zt(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":r=f(o({},await jl(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},_K=async(e,t)=>{if(e.statusCode>=300)return hK(e,t);let n=await P(e.body,t),r={};r=xW(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0ExecuteTransactionCommand=_K;var hK=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"IdempotentParameterMismatchException":case"com.amazonaws.dynamodb#IdempotentParameterMismatchException":r=f(o({},await dE(n,t)),{name:i,$metadata:h(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=f(o({},await Wt(n,t)),{name:i,$metadata:h(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=f(o({},await zt(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;case"TransactionCanceledException":case"com.amazonaws.dynamodb#TransactionCanceledException":r=f(o({},await sh(n,t)),{name:i,$metadata:h(e)});break;case"TransactionInProgressException":case"com.amazonaws.dynamodb#TransactionInProgressException":r=f(o({},await pE(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},gK=async(e,t)=>{if(e.statusCode>=300)return yK(e,t);let n=await P(e.body,t),r={};r=DW(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0ExportTableToPointInTimeCommand=gK;var yK=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"ExportConflictException":case"com.amazonaws.dynamodb#ExportConflictException":r=f(o({},await pV(n,t)),{name:i,$metadata:h(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidExportTimeException":case"com.amazonaws.dynamodb#InvalidExportTimeException":r=f(o({},await yV(n,t)),{name:i,$metadata:h(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=f(o({},await et(n,t)),{name:i,$metadata:h(e)});break;case"PointInTimeRecoveryUnavailableException":case"com.amazonaws.dynamodb#PointInTimeRecoveryUnavailableException":r=f(o({},await uE(n,t)),{name:i,$metadata:h(e)});break;case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":r=f(o({},await fi(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},vK=async(e,t)=>{if(e.statusCode>=300)return bK(e,t);let n=await P(e.body,t),r={};r=qW(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0GetItemCommand=vK;var bK=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=f(o({},await Wt(n,t)),{name:i,$metadata:h(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=f(o({},await zt(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},SK=async(e,t)=>{if(e.statusCode>=300)return wK(e,t);let n=await P(e.body,t),r={};r=l4(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0ListBackupsCommand=SK;var wK=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},EK=async(e,t)=>{if(e.statusCode>=300)return AK(e,t);let n=await P(e.body,t),r={};r=c4(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0ListContributorInsightsCommand=EK;var AK=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},CK=async(e,t)=>{if(e.statusCode>=300)return TK(e,t);let n=await P(e.body,t),r={};r=d4(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0ListExportsCommand=CK;var TK=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=f(o({},await et(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},xK=async(e,t)=>{if(e.statusCode>=300)return IK(e,t);let n=await P(e.body,t),r={};r=u4(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0ListGlobalTablesCommand=xK;var IK=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},RK=async(e,t)=>{if(e.statusCode>=300)return NK(e,t);let n=await P(e.body,t),r={};r=m4(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0ListTablesCommand=RK;var NK=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},PK=async(e,t)=>{if(e.statusCode>=300)return DK(e,t);let n=await P(e.body,t),r={};r=f4(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0ListTagsOfResourceCommand=PK;var DK=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},OK=async(e,t)=>{if(e.statusCode>=300)return LK(e,t);let n=await P(e.body,t),r={};r=T4(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0PutItemCommand=OK;var LK=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":r=f(o({},await Ml(n,t)),{name:i,$metadata:h(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":r=f(o({},await Ea(n,t)),{name:i,$metadata:h(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=f(o({},await Wt(n,t)),{name:i,$metadata:h(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=f(o({},await zt(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":r=f(o({},await jl(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},qK=async(e,t)=>{if(e.statusCode>=300)return MK(e,t);let n=await P(e.body,t),r={};r=I4(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0QueryCommand=qK;var MK=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=f(o({},await Wt(n,t)),{name:i,$metadata:h(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=f(o({},await zt(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},kK=async(e,t)=>{if(e.statusCode>=300)return jK(e,t);let n=await P(e.body,t),r={};r=H4(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0RestoreTableFromBackupCommand=kK;var jK=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"BackupInUseException":case"com.amazonaws.dynamodb#BackupInUseException":r=f(o({},await nh(n,t)),{name:i,$metadata:h(e)});break;case"BackupNotFoundException":case"com.amazonaws.dynamodb#BackupNotFoundException":r=f(o({},await rh(n,t)),{name:i,$metadata:h(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=f(o({},await et(n,t)),{name:i,$metadata:h(e)});break;case"TableAlreadyExistsException":case"com.amazonaws.dynamodb#TableAlreadyExistsException":r=f(o({},await fE(n,t)),{name:i,$metadata:h(e)});break;case"TableInUseException":case"com.amazonaws.dynamodb#TableInUseException":r=f(o({},await ih(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},zK=async(e,t)=>{if(e.statusCode>=300)return UK(e,t);let n=await P(e.body,t),r={};r=W4(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0RestoreTableToPointInTimeCommand=zK;var UK=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"InvalidRestoreTimeException":case"com.amazonaws.dynamodb#InvalidRestoreTimeException":r=f(o({},await vV(n,t)),{name:i,$metadata:h(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=f(o({},await et(n,t)),{name:i,$metadata:h(e)});break;case"PointInTimeRecoveryUnavailableException":case"com.amazonaws.dynamodb#PointInTimeRecoveryUnavailableException":r=f(o({},await uE(n,t)),{name:i,$metadata:h(e)});break;case"TableAlreadyExistsException":case"com.amazonaws.dynamodb#TableAlreadyExistsException":r=f(o({},await fE(n,t)),{name:i,$metadata:h(e)});break;case"TableInUseException":case"com.amazonaws.dynamodb#TableInUseException":r=f(o({},await ih(n,t)),{name:i,$metadata:h(e)});break;case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":r=f(o({},await fi(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},FK=async(e,t)=>{if(e.statusCode>=300)return BK(e,t);let n=await P(e.body,t),r={};r=Y4(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0ScanCommand=FK;var BK=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=f(o({},await Wt(n,t)),{name:i,$metadata:h(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=f(o({},await zt(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},GK=async(e,t)=>{if(e.statusCode>=300)return $K(e,t);await _h(e.body,t);let n={$metadata:h(e)};return Promise.resolve(n)};w.deserializeAws_json1_0TagResourceCommand=GK;var $K=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=f(o({},await et(n,t)),{name:i,$metadata:h(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=f(o({},await Cn(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},KK=async(e,t)=>{if(e.statusCode>=300)return VK(e,t);let n=await P(e.body,t),r={};r=a6(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0TransactGetItemsCommand=KK;var VK=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=f(o({},await Wt(n,t)),{name:i,$metadata:h(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=f(o({},await zt(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;case"TransactionCanceledException":case"com.amazonaws.dynamodb#TransactionCanceledException":r=f(o({},await sh(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},HK=async(e,t)=>{if(e.statusCode>=300)return WK(e,t);let n=await P(e.body,t),r={};r=d6(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0TransactWriteItemsCommand=HK;var WK=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"IdempotentParameterMismatchException":case"com.amazonaws.dynamodb#IdempotentParameterMismatchException":r=f(o({},await dE(n,t)),{name:i,$metadata:h(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=f(o({},await Wt(n,t)),{name:i,$metadata:h(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=f(o({},await zt(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;case"TransactionCanceledException":case"com.amazonaws.dynamodb#TransactionCanceledException":r=f(o({},await sh(n,t)),{name:i,$metadata:h(e)});break;case"TransactionInProgressException":case"com.amazonaws.dynamodb#TransactionInProgressException":r=f(o({},await pE(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},YK=async(e,t)=>{if(e.statusCode>=300)return JK(e,t);await _h(e.body,t);let n={$metadata:h(e)};return Promise.resolve(n)};w.deserializeAws_json1_0UntagResourceCommand=YK;var JK=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=f(o({},await et(n,t)),{name:i,$metadata:h(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=f(o({},await Cn(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},QK=async(e,t)=>{if(e.statusCode>=300)return XK(e,t);let n=await P(e.body,t),r={};r=u6(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0UpdateContinuousBackupsCommand=QK;var XK=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"ContinuousBackupsUnavailableException":case"com.amazonaws.dynamodb#ContinuousBackupsUnavailableException":r=f(o({},await cE(n,t)),{name:i,$metadata:h(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":r=f(o({},await fi(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},ZK=async(e,t)=>{if(e.statusCode>=300)return eV(e,t);let n=await P(e.body,t),r={};r=m6(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0UpdateContributorInsightsCommand=ZK;var eV=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},tV=async(e,t)=>{if(e.statusCode>=300)return nV(e,t);let n=await P(e.body,t),r={};r=f6(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0UpdateGlobalTableCommand=tV;var nV=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"GlobalTableNotFoundException":case"com.amazonaws.dynamodb#GlobalTableNotFoundException":r=f(o({},await kl(n,t)),{name:i,$metadata:h(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"ReplicaAlreadyExistsException":case"com.amazonaws.dynamodb#ReplicaAlreadyExistsException":r=f(o({},await bV(n,t)),{name:i,$metadata:h(e)});break;case"ReplicaNotFoundException":case"com.amazonaws.dynamodb#ReplicaNotFoundException":r=f(o({},await mE(n,t)),{name:i,$metadata:h(e)});break;case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":r=f(o({},await fi(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},rV=async(e,t)=>{if(e.statusCode>=300)return iV(e,t);let n=await P(e.body,t),r={};r=p6(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0UpdateGlobalTableSettingsCommand=rV;var iV=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"GlobalTableNotFoundException":case"com.amazonaws.dynamodb#GlobalTableNotFoundException":r=f(o({},await kl(n,t)),{name:i,$metadata:h(e)});break;case"IndexNotFoundException":case"com.amazonaws.dynamodb#IndexNotFoundException":r=f(o({},await gV(n,t)),{name:i,$metadata:h(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=f(o({},await et(n,t)),{name:i,$metadata:h(e)});break;case"ReplicaNotFoundException":case"com.amazonaws.dynamodb#ReplicaNotFoundException":r=f(o({},await mE(n,t)),{name:i,$metadata:h(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=f(o({},await Cn(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},sV=async(e,t)=>{if(e.statusCode>=300)return aV(e,t);let n=await P(e.body,t),r={};r=_6(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0UpdateItemCommand=sV;var aV=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":r=f(o({},await Ml(n,t)),{name:i,$metadata:h(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":r=f(o({},await Ea(n,t)),{name:i,$metadata:h(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=f(o({},await Wt(n,t)),{name:i,$metadata:h(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=f(o({},await zt(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":r=f(o({},await jl(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},oV=async(e,t)=>{if(e.statusCode>=300)return lV(e,t);let n=await P(e.body,t),r={};r=h6(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0UpdateTableCommand=oV;var lV=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=f(o({},await et(n,t)),{name:i,$metadata:h(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=f(o({},await Cn(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},cV=async(e,t)=>{if(e.statusCode>=300)return dV(e,t);let n=await P(e.body,t),r={};r=g6(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand=cV;var dV=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=f(o({},await et(n,t)),{name:i,$metadata:h(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=f(o({},await Cn(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},uV=async(e,t)=>{if(e.statusCode>=300)return mV(e,t);let n=await P(e.body,t),r={};r=y6(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0UpdateTimeToLiveCommand=uV;var mV=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=f(o({},await et(n,t)),{name:i,$metadata:h(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=f(o({},await Cn(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},nh=async(e,t)=>{let n=e.body,r=j3(n,t);return o({name:"BackupInUseException",$fault:"client",$metadata:h(e)},r)},rh=async(e,t)=>{let n=e.body,r=z3(n,t);return o({name:"BackupNotFoundException",$fault:"client",$metadata:h(e)},r)},Ml=async(e,t)=>{let n=e.body,r=Z3(n,t);return o({name:"ConditionalCheckFailedException",$fault:"client",$metadata:h(e)},r)},cE=async(e,t)=>{let n=e.body,r=eW(n,t);return o({name:"ContinuousBackupsUnavailableException",$fault:"client",$metadata:h(e)},r)},fV=async(e,t)=>{let n=e.body,r=EW(n,t);return o({name:"DuplicateItemException",$fault:"client",$metadata:h(e)},r)},pV=async(e,t)=>{let n=e.body,r=IW(n,t);return o({name:"ExportConflictException",$fault:"client",$metadata:h(e)},r)},_V=async(e,t)=>{let n=e.body,r=RW(n,t);return o({name:"ExportNotFoundException",$fault:"client",$metadata:h(e)},r)},hV=async(e,t)=>{let n=e.body,r=FW(n,t);return o({name:"GlobalTableAlreadyExistsException",$fault:"client",$metadata:h(e)},r)},kl=async(e,t)=>{let n=e.body,r=GW(n,t);return o({name:"GlobalTableNotFoundException",$fault:"client",$metadata:h(e)},r)},dE=async(e,t)=>{let n=e.body,r=$W(n,t);return o({name:"IdempotentParameterMismatchException",$fault:"client",$metadata:h(e)},r)},gV=async(e,t)=>{let n=e.body,r=KW(n,t);return o({name:"IndexNotFoundException",$fault:"client",$metadata:h(e)},r)},ne=async(e,t)=>{let n=e.body,r=VW(n,t);return o({name:"InternalServerError",$fault:"server",$metadata:h(e)},r)},ue=async(e,t)=>{let n=e.body,r=HW(n,t);return o({name:"InvalidEndpointException",$fault:"client",$metadata:h(e)},r)},yV=async(e,t)=>{let n=e.body,r=WW(n,t);return o({name:"InvalidExportTimeException",$fault:"client",$metadata:h(e)},r)},vV=async(e,t)=>{let n=e.body,r=YW(n,t);return o({name:"InvalidRestoreTimeException",$fault:"client",$metadata:h(e)},r)},Ea=async(e,t)=>{let n=e.body,r=ZW(n,t);return o({name:"ItemCollectionSizeLimitExceededException",$fault:"client",$metadata:h(e)},r)},et=async(e,t)=>{let n=e.body,r=a4(n,t);return o({name:"LimitExceededException",$fault:"client",$metadata:h(e)},r)},uE=async(e,t)=>{let n=e.body,r=E4(n,t);return o({name:"PointInTimeRecoveryUnavailableException",$fault:"client",$metadata:h(e)},r)},Wt=async(e,t)=>{let n=e.body,r=A4(n,t);return o({name:"ProvisionedThroughputExceededException",$fault:"client",$metadata:h(e)},r)},bV=async(e,t)=>{let n=e.body,r=N4(n,t);return o({name:"ReplicaAlreadyExistsException",$fault:"client",$metadata:h(e)},r)},mE=async(e,t)=>{let n=e.body,r=F4(n,t);return o({name:"ReplicaNotFoundException",$fault:"client",$metadata:h(e)},r)},zt=async(e,t)=>{let n=e.body,r=G4(n,t);return o({name:"RequestLimitExceeded",$fault:"client",$metadata:h(e)},r)},Cn=async(e,t)=>{let n=e.body,r=$4(n,t);return o({name:"ResourceInUseException",$fault:"client",$metadata:h(e)},r)},Ee=async(e,t)=>{let n=e.body,r=K4(n,t);return o({name:"ResourceNotFoundException",$fault:"client",$metadata:h(e)},r)},fE=async(e,t)=>{let n=e.body,r=Z4(n,t);return o({name:"TableAlreadyExistsException",$fault:"client",$metadata:h(e)},r)},ih=async(e,t)=>{let n=e.body,r=e6(n,t);return o({name:"TableInUseException",$fault:"client",$metadata:h(e)},r)},fi=async(e,t)=>{let n=e.body,r=n6(n,t);return o({name:"TableNotFoundException",$fault:"client",$metadata:h(e)},r)},sh=async(e,t)=>{let n=e.body,r=o6(n,t);return o({name:"TransactionCanceledException",$fault:"client",$metadata:h(e)},r)},jl=async(e,t)=>{let n=e.body,r=l6(n,t);return o({name:"TransactionConflictException",$fault:"client",$metadata:h(e)},r)},pE=async(e,t)=>{let n=e.body,r=c6(n,t);return o({name:"TransactionInProgressException",$fault:"client",$metadata:h(e)},r)},SV=(e,t)=>o(o({},e.AttributeName!==void 0&&e.AttributeName!==null&&{AttributeName:e.AttributeName}),e.AttributeType!==void 0&&e.AttributeType!==null&&{AttributeType:e.AttributeType}),_E=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:SV(n,t)),zl=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),wV=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:f(o({},n),{[r]:EV(i,t)}),{}),tr=(e,t)=>A$.AttributeValue.visit(e,{B:n=>({B:t.base64Encoder(n)}),BOOL:n=>({BOOL:n}),BS:n=>({BS:DV(n,t)}),L:n=>({L:EH(n,t)}),M:n=>({M:PH(n,t)}),N:n=>({N:n}),NS:n=>({NS:OH(n,t)}),NULL:n=>({NULL:n}),S:n=>({S:n}),SS:n=>({SS:a3(n,t)}),_:(n,r)=>({name:r})}),hE=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:tr(n,t)),EV=(e,t)=>o(o({},e.Action!==void 0&&e.Action!==null&&{Action:e.Action}),e.Value!==void 0&&e.Value!==null&&{Value:tr(e.Value,t)}),AV=(e,t)=>o(o({},e.PolicyName!==void 0&&e.PolicyName!==null&&{PolicyName:e.PolicyName}),e.TargetTrackingScalingPolicyConfiguration!==void 0&&e.TargetTrackingScalingPolicyConfiguration!==null&&{TargetTrackingScalingPolicyConfiguration:CV(e.TargetTrackingScalingPolicyConfiguration,t)}),Pr=(e,t)=>o(o(o(o(o({},e.AutoScalingDisabled!==void 0&&e.AutoScalingDisabled!==null&&{AutoScalingDisabled:e.AutoScalingDisabled}),e.AutoScalingRoleArn!==void 0&&e.AutoScalingRoleArn!==null&&{AutoScalingRoleArn:e.AutoScalingRoleArn}),e.MaximumUnits!==void 0&&e.MaximumUnits!==null&&{MaximumUnits:e.MaximumUnits}),e.MinimumUnits!==void 0&&e.MinimumUnits!==null&&{MinimumUnits:e.MinimumUnits}),e.ScalingPolicyUpdate!==void 0&&e.ScalingPolicyUpdate!==null&&{ScalingPolicyUpdate:AV(e.ScalingPolicyUpdate,t)}),CV=(e,t)=>o(o(o(o({},e.DisableScaleIn!==void 0&&e.DisableScaleIn!==null&&{DisableScaleIn:e.DisableScaleIn}),e.ScaleInCooldown!==void 0&&e.ScaleInCooldown!==null&&{ScaleInCooldown:e.ScaleInCooldown}),e.ScaleOutCooldown!==void 0&&e.ScaleOutCooldown!==null&&{ScaleOutCooldown:e.ScaleOutCooldown}),e.TargetValue!==void 0&&e.TargetValue!==null&&{TargetValue:y.serializeFloat(e.TargetValue)}),TV=(e,t)=>o(o({},e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.Statements!==void 0&&e.Statements!==null&&{Statements:MH(e.Statements,t)}),xV=(e,t)=>o(o({},e.RequestItems!==void 0&&e.RequestItems!==null&&{RequestItems:IV(e.RequestItems,t)}),e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),IV=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:f(o({},n),{[r]:SH(i,t)}),{}),RV=(e,t)=>o(o(o({},e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead}),e.Parameters!==void 0&&e.Parameters!==null&&{Parameters:ch(e.Parameters,t)}),e.Statement!==void 0&&e.Statement!==null&&{Statement:e.Statement}),NV=(e,t)=>o(o(o({},e.RequestItems!==void 0&&e.RequestItems!==null&&{RequestItems:PV(e.RequestItems,t)}),e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.ReturnItemCollectionMetrics!==void 0&&e.ReturnItemCollectionMetrics!==null&&{ReturnItemCollectionMetrics:e.ReturnItemCollectionMetrics}),PV=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:f(o({},n),{[r]:N3(i,t)}),{}),DV=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:t.base64Encoder(n)),gE=(e,t)=>o(o({},e.AttributeValueList!==void 0&&e.AttributeValueList!==null&&{AttributeValueList:hE(e.AttributeValueList,t)}),e.ComparisonOperator!==void 0&&e.ComparisonOperator!==null&&{ComparisonOperator:e.ComparisonOperator}),OV=(e,t)=>o(o(o(o(o(o({},e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Yt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:nr(e.ExpressionAttributeValues,t)}),e.Key!==void 0&&e.Key!==null&&{Key:dn(e.Key,t)}),e.ReturnValuesOnConditionCheckFailure!==void 0&&e.ReturnValuesOnConditionCheckFailure!==null&&{ReturnValuesOnConditionCheckFailure:e.ReturnValuesOnConditionCheckFailure}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),LV=(e,t)=>o(o({},e.BackupName!==void 0&&e.BackupName!==null&&{BackupName:e.BackupName}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),qV=(e,t)=>o(o(o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:Ul(e.KeySchema,t)}),e.Projection!==void 0&&e.Projection!==null&&{Projection:dh(e.Projection,t)}),e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:pi(e.ProvisionedThroughput,t)}),MV=(e,t)=>o(o({},e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName}),e.ReplicationGroup!==void 0&&e.ReplicationGroup!==null&&{ReplicationGroup:JH(e.ReplicationGroup,t)}),kV=(e,t)=>o({},e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),jV=(e,t)=>o(o(o(o(o({},e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null&&{GlobalSecondaryIndexes:bE(e.GlobalSecondaryIndexes,t)}),e.KMSMasterKeyId!==void 0&&e.KMSMasterKeyId!==null&&{KMSMasterKeyId:e.KMSMasterKeyId}),e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:uh(e.ProvisionedThroughputOverride,t)}),e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),e.TableClassOverride!==void 0&&e.TableClassOverride!==null&&{TableClassOverride:e.TableClassOverride}),zV=(e,t)=>o(o(o(o(o(o(o(o(o(o(o({},e.AttributeDefinitions!==void 0&&e.AttributeDefinitions!==null&&{AttributeDefinitions:_E(e.AttributeDefinitions,t)}),e.BillingMode!==void 0&&e.BillingMode!==null&&{BillingMode:e.BillingMode}),e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null&&{GlobalSecondaryIndexes:oh(e.GlobalSecondaryIndexes,t)}),e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:Ul(e.KeySchema,t)}),e.LocalSecondaryIndexes!==void 0&&e.LocalSecondaryIndexes!==null&&{LocalSecondaryIndexes:lh(e.LocalSecondaryIndexes,t)}),e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:pi(e.ProvisionedThroughput,t)}),e.SSESpecification!==void 0&&e.SSESpecification!==null&&{SSESpecification:Fl(e.SSESpecification,t)}),e.StreamSpecification!==void 0&&e.StreamSpecification!==null&&{StreamSpecification:SE(e.StreamSpecification,t)}),e.TableClass!==void 0&&e.TableClass!==null&&{TableClass:e.TableClass}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),e.Tags!==void 0&&e.Tags!==null&&{Tags:wE(e.Tags,t)}),UV=(e,t)=>o(o(o(o(o(o({},e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Yt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:nr(e.ExpressionAttributeValues,t)}),e.Key!==void 0&&e.Key!==null&&{Key:dn(e.Key,t)}),e.ReturnValuesOnConditionCheckFailure!==void 0&&e.ReturnValuesOnConditionCheckFailure!==null&&{ReturnValuesOnConditionCheckFailure:e.ReturnValuesOnConditionCheckFailure}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),FV=(e,t)=>o({},e.BackupArn!==void 0&&e.BackupArn!==null&&{BackupArn:e.BackupArn}),BV=(e,t)=>o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),GV=(e,t)=>o(o(o(o(o(o(o(o(o(o({},e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression}),e.ConditionalOperator!==void 0&&e.ConditionalOperator!==null&&{ConditionalOperator:e.ConditionalOperator}),e.Expected!==void 0&&e.Expected!==null&&{Expected:ah(e.Expected,t)}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Yt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:nr(e.ExpressionAttributeValues,t)}),e.Key!==void 0&&e.Key!==null&&{Key:dn(e.Key,t)}),e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.ReturnItemCollectionMetrics!==void 0&&e.ReturnItemCollectionMetrics!==null&&{ReturnItemCollectionMetrics:e.ReturnItemCollectionMetrics}),e.ReturnValues!==void 0&&e.ReturnValues!==null&&{ReturnValues:e.ReturnValues}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),$V=(e,t)=>o({},e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),KV=(e,t)=>o({},e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),VV=(e,t)=>o({},e.Key!==void 0&&e.Key!==null&&{Key:dn(e.Key,t)}),HV=(e,t)=>o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),WV=(e,t)=>o({},e.BackupArn!==void 0&&e.BackupArn!==null&&{BackupArn:e.BackupArn}),YV=(e,t)=>o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),JV=(e,t)=>o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),QV=(e,t)=>({}),XV=(e,t)=>o({},e.ExportArn!==void 0&&e.ExportArn!==null&&{ExportArn:e.ExportArn}),ZV=(e,t)=>o({},e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName}),eH=(e,t)=>o({},e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName}),tH=(e,t)=>o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),nH=(e,t)=>({}),rH=(e,t)=>o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),iH=(e,t)=>o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),sH=(e,t)=>o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),aH=(e,t)=>o(o(o(o(o({},e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead}),e.NextToken!==void 0&&e.NextToken!==null&&{NextToken:e.NextToken}),e.Parameters!==void 0&&e.Parameters!==null&&{Parameters:ch(e.Parameters,t)}),e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.Statement!==void 0&&e.Statement!==null&&{Statement:e.Statement}),oH=(e,t)=>{var n;return o(o({ClientRequestToken:(n=e.ClientRequestToken)!==null&&n!==void 0?n:th.v4()},e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.TransactStatements!==void 0&&e.TransactStatements!==null&&{TransactStatements:qH(e.TransactStatements,t)})},ah=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:f(o({},n),{[r]:lH(i,t)}),{}),lH=(e,t)=>o(o(o(o({},e.AttributeValueList!==void 0&&e.AttributeValueList!==null&&{AttributeValueList:hE(e.AttributeValueList,t)}),e.ComparisonOperator!==void 0&&e.ComparisonOperator!==null&&{ComparisonOperator:e.ComparisonOperator}),e.Exists!==void 0&&e.Exists!==null&&{Exists:e.Exists}),e.Value!==void 0&&e.Value!==null&&{Value:tr(e.Value,t)}),cH=(e,t)=>{var n;return o(o(o(o(o(o(o(o({ClientToken:(n=e.ClientToken)!==null&&n!==void 0?n:th.v4()},e.ExportFormat!==void 0&&e.ExportFormat!==null&&{ExportFormat:e.ExportFormat}),e.ExportTime!==void 0&&e.ExportTime!==null&&{ExportTime:Math.round(e.ExportTime.getTime()/1e3)}),e.S3Bucket!==void 0&&e.S3Bucket!==null&&{S3Bucket:e.S3Bucket}),e.S3BucketOwner!==void 0&&e.S3BucketOwner!==null&&{S3BucketOwner:e.S3BucketOwner}),e.S3Prefix!==void 0&&e.S3Prefix!==null&&{S3Prefix:e.S3Prefix}),e.S3SseAlgorithm!==void 0&&e.S3SseAlgorithm!==null&&{S3SseAlgorithm:e.S3SseAlgorithm}),e.S3SseKmsKeyId!==void 0&&e.S3SseKmsKeyId!==null&&{S3SseKmsKeyId:e.S3SseKmsKeyId}),e.TableArn!==void 0&&e.TableArn!==null&&{TableArn:e.TableArn})},Yt=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:f(o({},n),{[r]:i}),{}),nr=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:f(o({},n),{[r]:tr(i,t)}),{}),yE=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:f(o({},n),{[r]:gE(i,t)}),{}),dH=(e,t)=>o(o(o(o({},e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Yt(e.ExpressionAttributeNames,t)}),e.Key!==void 0&&e.Key!==null&&{Key:dn(e.Key,t)}),e.ProjectionExpression!==void 0&&e.ProjectionExpression!==null&&{ProjectionExpression:e.ProjectionExpression}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),uH=(e,t)=>o(o(o(o(o(o(o({},e.AttributesToGet!==void 0&&e.AttributesToGet!==null&&{AttributesToGet:zl(e.AttributesToGet,t)}),e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Yt(e.ExpressionAttributeNames,t)}),e.Key!==void 0&&e.Key!==null&&{Key:dn(e.Key,t)}),e.ProjectionExpression!==void 0&&e.ProjectionExpression!==null&&{ProjectionExpression:e.ProjectionExpression}),e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),mH=(e,t)=>o(o(o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:Ul(e.KeySchema,t)}),e.Projection!==void 0&&e.Projection!==null&&{Projection:dh(e.Projection,t)}),e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:pi(e.ProvisionedThroughput,t)}),fH=(e,t)=>o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.ProvisionedWriteCapacityAutoScalingUpdate!==void 0&&e.ProvisionedWriteCapacityAutoScalingUpdate!==null&&{ProvisionedWriteCapacityAutoScalingUpdate:Pr(e.ProvisionedWriteCapacityAutoScalingUpdate,t)}),pH=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:fH(n,t)),oh=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:mH(n,t)),_H=(e,t)=>o(o(o({},e.Create!==void 0&&e.Create!==null&&{Create:qV(e.Create,t)}),e.Delete!==void 0&&e.Delete!==null&&{Delete:BV(e.Delete,t)}),e.Update!==void 0&&e.Update!==null&&{Update:S3(e.Update,t)}),hH=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:_H(n,t)),gH=(e,t)=>o(o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.ProvisionedWriteCapacityAutoScalingSettingsUpdate!==void 0&&e.ProvisionedWriteCapacityAutoScalingSettingsUpdate!==null&&{ProvisionedWriteCapacityAutoScalingSettingsUpdate:Pr(e.ProvisionedWriteCapacityAutoScalingSettingsUpdate,t)}),e.ProvisionedWriteCapacityUnits!==void 0&&e.ProvisionedWriteCapacityUnits!==null&&{ProvisionedWriteCapacityUnits:e.ProvisionedWriteCapacityUnits}),yH=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:gH(n,t)),dn=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:f(o({},n),{[r]:tr(i,t)}),{}),vH=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:f(o({},n),{[r]:gE(i,t)}),{}),bH=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:dn(n,t)),SH=(e,t)=>o(o(o(o(o({},e.AttributesToGet!==void 0&&e.AttributesToGet!==null&&{AttributesToGet:zl(e.AttributesToGet,t)}),e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Yt(e.ExpressionAttributeNames,t)}),e.Keys!==void 0&&e.Keys!==null&&{Keys:bH(e.Keys,t)}),e.ProjectionExpression!==void 0&&e.ProjectionExpression!==null&&{ProjectionExpression:e.ProjectionExpression}),Ul=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:wH(n,t)),wH=(e,t)=>o(o({},e.AttributeName!==void 0&&e.AttributeName!==null&&{AttributeName:e.AttributeName}),e.KeyType!==void 0&&e.KeyType!==null&&{KeyType:e.KeyType}),vE=(e,t)=>o(o({},e.StreamArn!==void 0&&e.StreamArn!==null&&{StreamArn:e.StreamArn}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),EH=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:tr(n,t)),AH=(e,t)=>o(o(o(o(o(o({},e.BackupType!==void 0&&e.BackupType!==null&&{BackupType:e.BackupType}),e.ExclusiveStartBackupArn!==void 0&&e.ExclusiveStartBackupArn!==null&&{ExclusiveStartBackupArn:e.ExclusiveStartBackupArn}),e.Limit!==void 0&&e.Limit!==null&&{Limit:e.Limit}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),e.TimeRangeLowerBound!==void 0&&e.TimeRangeLowerBound!==null&&{TimeRangeLowerBound:Math.round(e.TimeRangeLowerBound.getTime()/1e3)}),e.TimeRangeUpperBound!==void 0&&e.TimeRangeUpperBound!==null&&{TimeRangeUpperBound:Math.round(e.TimeRangeUpperBound.getTime()/1e3)}),CH=(e,t)=>o(o(o({},e.MaxResults!==void 0&&e.MaxResults!==null&&{MaxResults:e.MaxResults}),e.NextToken!==void 0&&e.NextToken!==null&&{NextToken:e.NextToken}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),TH=(e,t)=>o(o(o({},e.MaxResults!==void 0&&e.MaxResults!==null&&{MaxResults:e.MaxResults}),e.NextToken!==void 0&&e.NextToken!==null&&{NextToken:e.NextToken}),e.TableArn!==void 0&&e.TableArn!==null&&{TableArn:e.TableArn}),xH=(e,t)=>o(o(o({},e.ExclusiveStartGlobalTableName!==void 0&&e.ExclusiveStartGlobalTableName!==null&&{ExclusiveStartGlobalTableName:e.ExclusiveStartGlobalTableName}),e.Limit!==void 0&&e.Limit!==null&&{Limit:e.Limit}),e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),IH=(e,t)=>o(o({},e.ExclusiveStartTableName!==void 0&&e.ExclusiveStartTableName!==null&&{ExclusiveStartTableName:e.ExclusiveStartTableName}),e.Limit!==void 0&&e.Limit!==null&&{Limit:e.Limit}),RH=(e,t)=>o(o({},e.NextToken!==void 0&&e.NextToken!==null&&{NextToken:e.NextToken}),e.ResourceArn!==void 0&&e.ResourceArn!==null&&{ResourceArn:e.ResourceArn}),NH=(e,t)=>o(o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:Ul(e.KeySchema,t)}),e.Projection!==void 0&&e.Projection!==null&&{Projection:dh(e.Projection,t)}),lh=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:NH(n,t)),PH=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:f(o({},n),{[r]:tr(i,t)}),{}),DH=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),OH=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),LH=(e,t)=>o(o({},e.Parameters!==void 0&&e.Parameters!==null&&{Parameters:ch(e.Parameters,t)}),e.Statement!==void 0&&e.Statement!==null&&{Statement:e.Statement}),qH=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:LH(n,t)),MH=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:RV(n,t)),kH=(e,t)=>o({},e.PointInTimeRecoveryEnabled!==void 0&&e.PointInTimeRecoveryEnabled!==null&&{PointInTimeRecoveryEnabled:e.PointInTimeRecoveryEnabled}),ch=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:tr(n,t)),dh=(e,t)=>o(o({},e.NonKeyAttributes!==void 0&&e.NonKeyAttributes!==null&&{NonKeyAttributes:DH(e.NonKeyAttributes,t)}),e.ProjectionType!==void 0&&e.ProjectionType!==null&&{ProjectionType:e.ProjectionType}),pi=(e,t)=>o(o({},e.ReadCapacityUnits!==void 0&&e.ReadCapacityUnits!==null&&{ReadCapacityUnits:e.ReadCapacityUnits}),e.WriteCapacityUnits!==void 0&&e.WriteCapacityUnits!==null&&{WriteCapacityUnits:e.WriteCapacityUnits}),uh=(e,t)=>o({},e.ReadCapacityUnits!==void 0&&e.ReadCapacityUnits!==null&&{ReadCapacityUnits:e.ReadCapacityUnits}),jH=(e,t)=>o(o(o(o(o(o({},e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Yt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:nr(e.ExpressionAttributeValues,t)}),e.Item!==void 0&&e.Item!==null&&{Item:mh(e.Item,t)}),e.ReturnValuesOnConditionCheckFailure!==void 0&&e.ReturnValuesOnConditionCheckFailure!==null&&{ReturnValuesOnConditionCheckFailure:e.ReturnValuesOnConditionCheckFailure}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),zH=(e,t)=>o(o(o(o(o(o(o(o(o(o({},e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression}),e.ConditionalOperator!==void 0&&e.ConditionalOperator!==null&&{ConditionalOperator:e.ConditionalOperator}),e.Expected!==void 0&&e.Expected!==null&&{Expected:ah(e.Expected,t)}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Yt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:nr(e.ExpressionAttributeValues,t)}),e.Item!==void 0&&e.Item!==null&&{Item:mh(e.Item,t)}),e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.ReturnItemCollectionMetrics!==void 0&&e.ReturnItemCollectionMetrics!==null&&{ReturnItemCollectionMetrics:e.ReturnItemCollectionMetrics}),e.ReturnValues!==void 0&&e.ReturnValues!==null&&{ReturnValues:e.ReturnValues}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),mh=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:f(o({},n),{[r]:tr(i,t)}),{}),UH=(e,t)=>o({},e.Item!==void 0&&e.Item!==null&&{Item:mh(e.Item,t)}),FH=(e,t)=>o(o(o(o(o(o(o(o(o(o(o(o(o(o(o(o(o({},e.AttributesToGet!==void 0&&e.AttributesToGet!==null&&{AttributesToGet:zl(e.AttributesToGet,t)}),e.ConditionalOperator!==void 0&&e.ConditionalOperator!==null&&{ConditionalOperator:e.ConditionalOperator}),e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead}),e.ExclusiveStartKey!==void 0&&e.ExclusiveStartKey!==null&&{ExclusiveStartKey:dn(e.ExclusiveStartKey,t)}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Yt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:nr(e.ExpressionAttributeValues,t)}),e.FilterExpression!==void 0&&e.FilterExpression!==null&&{FilterExpression:e.FilterExpression}),e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.KeyConditionExpression!==void 0&&e.KeyConditionExpression!==null&&{KeyConditionExpression:e.KeyConditionExpression}),e.KeyConditions!==void 0&&e.KeyConditions!==null&&{KeyConditions:vH(e.KeyConditions,t)}),e.Limit!==void 0&&e.Limit!==null&&{Limit:e.Limit}),e.ProjectionExpression!==void 0&&e.ProjectionExpression!==null&&{ProjectionExpression:e.ProjectionExpression}),e.QueryFilter!==void 0&&e.QueryFilter!==null&&{QueryFilter:yE(e.QueryFilter,t)}),e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.ScanIndexForward!==void 0&&e.ScanIndexForward!==null&&{ScanIndexForward:e.ScanIndexForward}),e.Select!==void 0&&e.Select!==null&&{Select:e.Select}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),BH=(e,t)=>o({},e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),GH=(e,t)=>o(o(o({},e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),e.ReplicaGlobalSecondaryIndexUpdates!==void 0&&e.ReplicaGlobalSecondaryIndexUpdates!==null&&{ReplicaGlobalSecondaryIndexUpdates:HH(e.ReplicaGlobalSecondaryIndexUpdates,t)}),e.ReplicaProvisionedReadCapacityAutoScalingUpdate!==void 0&&e.ReplicaProvisionedReadCapacityAutoScalingUpdate!==null&&{ReplicaProvisionedReadCapacityAutoScalingUpdate:Pr(e.ReplicaProvisionedReadCapacityAutoScalingUpdate,t)}),$H=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:GH(n,t)),KH=(e,t)=>o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:uh(e.ProvisionedThroughputOverride,t)}),VH=(e,t)=>o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.ProvisionedReadCapacityAutoScalingUpdate!==void 0&&e.ProvisionedReadCapacityAutoScalingUpdate!==null&&{ProvisionedReadCapacityAutoScalingUpdate:Pr(e.ProvisionedReadCapacityAutoScalingUpdate,t)}),HH=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:VH(n,t)),bE=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:KH(n,t)),WH=(e,t)=>o(o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.ProvisionedReadCapacityAutoScalingSettingsUpdate!==void 0&&e.ProvisionedReadCapacityAutoScalingSettingsUpdate!==null&&{ProvisionedReadCapacityAutoScalingSettingsUpdate:Pr(e.ProvisionedReadCapacityAutoScalingSettingsUpdate,t)}),e.ProvisionedReadCapacityUnits!==void 0&&e.ProvisionedReadCapacityUnits!==null&&{ProvisionedReadCapacityUnits:e.ProvisionedReadCapacityUnits}),YH=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:WH(n,t)),JH=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:BH(n,t)),QH=(e,t)=>o(o(o(o(o({},e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),e.ReplicaGlobalSecondaryIndexSettingsUpdate!==void 0&&e.ReplicaGlobalSecondaryIndexSettingsUpdate!==null&&{ReplicaGlobalSecondaryIndexSettingsUpdate:YH(e.ReplicaGlobalSecondaryIndexSettingsUpdate,t)}),e.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate!==void 0&&e.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate!==null&&{ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate:Pr(e.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate,t)}),e.ReplicaProvisionedReadCapacityUnits!==void 0&&e.ReplicaProvisionedReadCapacityUnits!==null&&{ReplicaProvisionedReadCapacityUnits:e.ReplicaProvisionedReadCapacityUnits}),e.ReplicaTableClass!==void 0&&e.ReplicaTableClass!==null&&{ReplicaTableClass:e.ReplicaTableClass}),XH=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:QH(n,t)),ZH=(e,t)=>o(o(o({},e.Create!==void 0&&e.Create!==null&&{Create:jV(e.Create,t)}),e.Delete!==void 0&&e.Delete!==null&&{Delete:KV(e.Delete,t)}),e.Update!==void 0&&e.Update!==null&&{Update:C3(e.Update,t)}),e3=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:ZH(n,t)),t3=(e,t)=>o(o({},e.Create!==void 0&&e.Create!==null&&{Create:kV(e.Create,t)}),e.Delete!==void 0&&e.Delete!==null&&{Delete:$V(e.Delete,t)}),n3=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:t3(n,t)),r3=(e,t)=>o(o(o(o(o(o(o({},e.BackupArn!==void 0&&e.BackupArn!==null&&{BackupArn:e.BackupArn}),e.BillingModeOverride!==void 0&&e.BillingModeOverride!==null&&{BillingModeOverride:e.BillingModeOverride}),e.GlobalSecondaryIndexOverride!==void 0&&e.GlobalSecondaryIndexOverride!==null&&{GlobalSecondaryIndexOverride:oh(e.GlobalSecondaryIndexOverride,t)}),e.LocalSecondaryIndexOverride!==void 0&&e.LocalSecondaryIndexOverride!==null&&{LocalSecondaryIndexOverride:lh(e.LocalSecondaryIndexOverride,t)}),e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:pi(e.ProvisionedThroughputOverride,t)}),e.SSESpecificationOverride!==void 0&&e.SSESpecificationOverride!==null&&{SSESpecificationOverride:Fl(e.SSESpecificationOverride,t)}),e.TargetTableName!==void 0&&e.TargetTableName!==null&&{TargetTableName:e.TargetTableName}),i3=(e,t)=>o(o(o(o(o(o(o(o(o(o({},e.BillingModeOverride!==void 0&&e.BillingModeOverride!==null&&{BillingModeOverride:e.BillingModeOverride}),e.GlobalSecondaryIndexOverride!==void 0&&e.GlobalSecondaryIndexOverride!==null&&{GlobalSecondaryIndexOverride:oh(e.GlobalSecondaryIndexOverride,t)}),e.LocalSecondaryIndexOverride!==void 0&&e.LocalSecondaryIndexOverride!==null&&{LocalSecondaryIndexOverride:lh(e.LocalSecondaryIndexOverride,t)}),e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:pi(e.ProvisionedThroughputOverride,t)}),e.RestoreDateTime!==void 0&&e.RestoreDateTime!==null&&{RestoreDateTime:Math.round(e.RestoreDateTime.getTime()/1e3)}),e.SSESpecificationOverride!==void 0&&e.SSESpecificationOverride!==null&&{SSESpecificationOverride:Fl(e.SSESpecificationOverride,t)}),e.SourceTableArn!==void 0&&e.SourceTableArn!==null&&{SourceTableArn:e.SourceTableArn}),e.SourceTableName!==void 0&&e.SourceTableName!==null&&{SourceTableName:e.SourceTableName}),e.TargetTableName!==void 0&&e.TargetTableName!==null&&{TargetTableName:e.TargetTableName}),e.UseLatestRestorableTime!==void 0&&e.UseLatestRestorableTime!==null&&{UseLatestRestorableTime:e.UseLatestRestorableTime}),s3=(e,t)=>o(o(o(o(o(o(o(o(o(o(o(o(o(o(o(o({},e.AttributesToGet!==void 0&&e.AttributesToGet!==null&&{AttributesToGet:zl(e.AttributesToGet,t)}),e.ConditionalOperator!==void 0&&e.ConditionalOperator!==null&&{ConditionalOperator:e.ConditionalOperator}),e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead}),e.ExclusiveStartKey!==void 0&&e.ExclusiveStartKey!==null&&{ExclusiveStartKey:dn(e.ExclusiveStartKey,t)}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Yt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:nr(e.ExpressionAttributeValues,t)}),e.FilterExpression!==void 0&&e.FilterExpression!==null&&{FilterExpression:e.FilterExpression}),e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.Limit!==void 0&&e.Limit!==null&&{Limit:e.Limit}),e.ProjectionExpression!==void 0&&e.ProjectionExpression!==null&&{ProjectionExpression:e.ProjectionExpression}),e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.ScanFilter!==void 0&&e.ScanFilter!==null&&{ScanFilter:yE(e.ScanFilter,t)}),e.Segment!==void 0&&e.Segment!==null&&{Segment:e.Segment}),e.Select!==void 0&&e.Select!==null&&{Select:e.Select}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),e.TotalSegments!==void 0&&e.TotalSegments!==null&&{TotalSegments:e.TotalSegments}),Fl=(e,t)=>o(o(o({},e.Enabled!==void 0&&e.Enabled!==null&&{Enabled:e.Enabled}),e.KMSMasterKeyId!==void 0&&e.KMSMasterKeyId!==null&&{KMSMasterKeyId:e.KMSMasterKeyId}),e.SSEType!==void 0&&e.SSEType!==null&&{SSEType:e.SSEType}),SE=(e,t)=>o(o({},e.StreamEnabled!==void 0&&e.StreamEnabled!==null&&{StreamEnabled:e.StreamEnabled}),e.StreamViewType!==void 0&&e.StreamViewType!==null&&{StreamViewType:e.StreamViewType}),a3=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),o3=(e,t)=>o(o({},e.Key!==void 0&&e.Key!==null&&{Key:e.Key}),e.Value!==void 0&&e.Value!==null&&{Value:e.Value}),l3=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),wE=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:o3(n,t)),c3=(e,t)=>o(o({},e.ResourceArn!==void 0&&e.ResourceArn!==null&&{ResourceArn:e.ResourceArn}),e.Tags!==void 0&&e.Tags!==null&&{Tags:wE(e.Tags,t)}),d3=(e,t)=>o(o({},e.AttributeName!==void 0&&e.AttributeName!==null&&{AttributeName:e.AttributeName}),e.Enabled!==void 0&&e.Enabled!==null&&{Enabled:e.Enabled}),u3=(e,t)=>o({},e.Get!==void 0&&e.Get!==null&&{Get:dH(e.Get,t)}),m3=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:u3(n,t)),f3=(e,t)=>o(o({},e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.TransactItems!==void 0&&e.TransactItems!==null&&{TransactItems:m3(e.TransactItems,t)}),p3=(e,t)=>o(o(o(o({},e.ConditionCheck!==void 0&&e.ConditionCheck!==null&&{ConditionCheck:OV(e.ConditionCheck,t)}),e.Delete!==void 0&&e.Delete!==null&&{Delete:UV(e.Delete,t)}),e.Put!==void 0&&e.Put!==null&&{Put:jH(e.Put,t)}),e.Update!==void 0&&e.Update!==null&&{Update:y3(e.Update,t)}),_3=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:p3(n,t)),h3=(e,t)=>{var n;return o(o(o({ClientRequestToken:(n=e.ClientRequestToken)!==null&&n!==void 0?n:th.v4()},e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.ReturnItemCollectionMetrics!==void 0&&e.ReturnItemCollectionMetrics!==null&&{ReturnItemCollectionMetrics:e.ReturnItemCollectionMetrics}),e.TransactItems!==void 0&&e.TransactItems!==null&&{TransactItems:_3(e.TransactItems,t)})},g3=(e,t)=>o(o({},e.ResourceArn!==void 0&&e.ResourceArn!==null&&{ResourceArn:e.ResourceArn}),e.TagKeys!==void 0&&e.TagKeys!==null&&{TagKeys:l3(e.TagKeys,t)}),y3=(e,t)=>o(o(o(o(o(o(o({},e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Yt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:nr(e.ExpressionAttributeValues,t)}),e.Key!==void 0&&e.Key!==null&&{Key:dn(e.Key,t)}),e.ReturnValuesOnConditionCheckFailure!==void 0&&e.ReturnValuesOnConditionCheckFailure!==null&&{ReturnValuesOnConditionCheckFailure:e.ReturnValuesOnConditionCheckFailure}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),e.UpdateExpression!==void 0&&e.UpdateExpression!==null&&{UpdateExpression:e.UpdateExpression}),v3=(e,t)=>o(o({},e.PointInTimeRecoverySpecification!==void 0&&e.PointInTimeRecoverySpecification!==null&&{PointInTimeRecoverySpecification:kH(e.PointInTimeRecoverySpecification,t)}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),b3=(e,t)=>o(o(o({},e.ContributorInsightsAction!==void 0&&e.ContributorInsightsAction!==null&&{ContributorInsightsAction:e.ContributorInsightsAction}),e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),S3=(e,t)=>o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:pi(e.ProvisionedThroughput,t)}),w3=(e,t)=>o(o({},e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName}),e.ReplicaUpdates!==void 0&&e.ReplicaUpdates!==null&&{ReplicaUpdates:n3(e.ReplicaUpdates,t)}),E3=(e,t)=>o(o(o(o(o(o({},e.GlobalTableBillingMode!==void 0&&e.GlobalTableBillingMode!==null&&{GlobalTableBillingMode:e.GlobalTableBillingMode}),e.GlobalTableGlobalSecondaryIndexSettingsUpdate!==void 0&&e.GlobalTableGlobalSecondaryIndexSettingsUpdate!==null&&{GlobalTableGlobalSecondaryIndexSettingsUpdate:yH(e.GlobalTableGlobalSecondaryIndexSettingsUpdate,t)}),e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName}),e.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate!==void 0&&e.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate!==null&&{GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate:Pr(e.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate,t)}),e.GlobalTableProvisionedWriteCapacityUnits!==void 0&&e.GlobalTableProvisionedWriteCapacityUnits!==null&&{GlobalTableProvisionedWriteCapacityUnits:e.GlobalTableProvisionedWriteCapacityUnits}),e.ReplicaSettingsUpdate!==void 0&&e.ReplicaSettingsUpdate!==null&&{ReplicaSettingsUpdate:XH(e.ReplicaSettingsUpdate,t)}),A3=(e,t)=>o(o(o(o(o(o(o(o(o(o(o(o({},e.AttributeUpdates!==void 0&&e.AttributeUpdates!==null&&{AttributeUpdates:wV(e.AttributeUpdates,t)}),e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression}),e.ConditionalOperator!==void 0&&e.ConditionalOperator!==null&&{ConditionalOperator:e.ConditionalOperator}),e.Expected!==void 0&&e.Expected!==null&&{Expected:ah(e.Expected,t)}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Yt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:nr(e.ExpressionAttributeValues,t)}),e.Key!==void 0&&e.Key!==null&&{Key:dn(e.Key,t)}),e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.ReturnItemCollectionMetrics!==void 0&&e.ReturnItemCollectionMetrics!==null&&{ReturnItemCollectionMetrics:e.ReturnItemCollectionMetrics}),e.ReturnValues!==void 0&&e.ReturnValues!==null&&{ReturnValues:e.ReturnValues}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),e.UpdateExpression!==void 0&&e.UpdateExpression!==null&&{UpdateExpression:e.UpdateExpression}),C3=(e,t)=>o(o(o(o(o({},e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null&&{GlobalSecondaryIndexes:bE(e.GlobalSecondaryIndexes,t)}),e.KMSMasterKeyId!==void 0&&e.KMSMasterKeyId!==null&&{KMSMasterKeyId:e.KMSMasterKeyId}),e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:uh(e.ProvisionedThroughputOverride,t)}),e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),e.TableClassOverride!==void 0&&e.TableClassOverride!==null&&{TableClassOverride:e.TableClassOverride}),T3=(e,t)=>o(o(o(o(o(o(o(o(o({},e.AttributeDefinitions!==void 0&&e.AttributeDefinitions!==null&&{AttributeDefinitions:_E(e.AttributeDefinitions,t)}),e.BillingMode!==void 0&&e.BillingMode!==null&&{BillingMode:e.BillingMode}),e.GlobalSecondaryIndexUpdates!==void 0&&e.GlobalSecondaryIndexUpdates!==null&&{GlobalSecondaryIndexUpdates:hH(e.GlobalSecondaryIndexUpdates,t)}),e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:pi(e.ProvisionedThroughput,t)}),e.ReplicaUpdates!==void 0&&e.ReplicaUpdates!==null&&{ReplicaUpdates:e3(e.ReplicaUpdates,t)}),e.SSESpecification!==void 0&&e.SSESpecification!==null&&{SSESpecification:Fl(e.SSESpecification,t)}),e.StreamSpecification!==void 0&&e.StreamSpecification!==null&&{StreamSpecification:SE(e.StreamSpecification,t)}),e.TableClass!==void 0&&e.TableClass!==null&&{TableClass:e.TableClass}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),x3=(e,t)=>o(o(o(o({},e.GlobalSecondaryIndexUpdates!==void 0&&e.GlobalSecondaryIndexUpdates!==null&&{GlobalSecondaryIndexUpdates:pH(e.GlobalSecondaryIndexUpdates,t)}),e.ProvisionedWriteCapacityAutoScalingUpdate!==void 0&&e.ProvisionedWriteCapacityAutoScalingUpdate!==null&&{ProvisionedWriteCapacityAutoScalingUpdate:Pr(e.ProvisionedWriteCapacityAutoScalingUpdate,t)}),e.ReplicaUpdates!==void 0&&e.ReplicaUpdates!==null&&{ReplicaUpdates:$H(e.ReplicaUpdates,t)}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),I3=(e,t)=>o(o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),e.TimeToLiveSpecification!==void 0&&e.TimeToLiveSpecification!==null&&{TimeToLiveSpecification:d3(e.TimeToLiveSpecification,t)}),R3=(e,t)=>o(o({},e.DeleteRequest!==void 0&&e.DeleteRequest!==null&&{DeleteRequest:VV(e.DeleteRequest,t)}),e.PutRequest!==void 0&&e.PutRequest!==null&&{PutRequest:UH(e.PutRequest,t)}),N3=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:R3(n,t)),P3=(e,t)=>({ArchivalBackupArn:y.expectString(e.ArchivalBackupArn),ArchivalDateTime:e.ArchivalDateTime!==void 0&&e.ArchivalDateTime!==null?y.expectNonNull(y.parseEpochTimestamp(y.expectNumber(e.ArchivalDateTime))):void 0,ArchivalReason:y.expectString(e.ArchivalReason)}),D3=(e,t)=>({AttributeName:y.expectString(e.AttributeName),AttributeType:y.expectString(e.AttributeType)}),O3=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:D3(n,t)),Dr=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:f(o({},n),{[r]:ls(y.expectUnion(i),t)}),{}),L3=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:y.expectString(n)),ls=(e,t)=>e.B!==void 0&&e.B!==null?{B:t.base64Decoder(e.B)}:y.expectBoolean(e.BOOL)!==void 0?{BOOL:y.expectBoolean(e.BOOL)}:e.BS!==void 0&&e.BS!==null?{BS:J3(e.BS,t)}:e.L!==void 0&&e.L!==null?{L:o4(e.L,t)}:e.M!==void 0&&e.M!==null?{M:y4(e.M,t)}:y.expectString(e.N)!==void 0?{N:y.expectString(e.N)}:e.NS!==void 0&&e.NS!==null?{NS:b4(e.NS,t)}:y.expectBoolean(e.NULL)!==void 0?{NULL:y.expectBoolean(e.NULL)}:y.expectString(e.S)!==void 0?{S:y.expectString(e.S)}:e.SS!==void 0&&e.SS!==null?{SS:X4(e.SS,t)}:{$unknown:Object.entries(e)[0]},q3=(e,t)=>({PolicyName:y.expectString(e.PolicyName),TargetTrackingScalingPolicyConfiguration:e.TargetTrackingScalingPolicyConfiguration!==void 0&&e.TargetTrackingScalingPolicyConfiguration!==null?k3(e.TargetTrackingScalingPolicyConfiguration,t):void 0}),M3=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:q3(n,t)),Or=(e,t)=>({AutoScalingDisabled:y.expectBoolean(e.AutoScalingDisabled),AutoScalingRoleArn:y.expectString(e.AutoScalingRoleArn),MaximumUnits:y.expectLong(e.MaximumUnits),MinimumUnits:y.expectLong(e.MinimumUnits),ScalingPolicies:e.ScalingPolicies!==void 0&&e.ScalingPolicies!==null?M3(e.ScalingPolicies,t):void 0}),k3=(e,t)=>({DisableScaleIn:y.expectBoolean(e.DisableScaleIn),ScaleInCooldown:y.expectInt32(e.ScaleInCooldown),ScaleOutCooldown:y.expectInt32(e.ScaleOutCooldown),TargetValue:y.limitedParseDouble(e.TargetValue)}),EE=(e,t)=>({BackupDetails:e.BackupDetails!==void 0&&e.BackupDetails!==null?AE(e.BackupDetails,t):void 0,SourceTableDetails:e.SourceTableDetails!==void 0&&e.SourceTableDetails!==null?J4(e.SourceTableDetails,t):void 0,SourceTableFeatureDetails:e.SourceTableFeatureDetails!==void 0&&e.SourceTableFeatureDetails!==null?Q4(e.SourceTableFeatureDetails,t):void 0}),AE=(e,t)=>({BackupArn:y.expectString(e.BackupArn),BackupCreationDateTime:e.BackupCreationDateTime!==void 0&&e.BackupCreationDateTime!==null?y.expectNonNull(y.parseEpochTimestamp(y.expectNumber(e.BackupCreationDateTime))):void 0,BackupExpiryDateTime:e.BackupExpiryDateTime!==void 0&&e.BackupExpiryDateTime!==null?y.expectNonNull(y.parseEpochTimestamp(y.expectNumber(e.BackupExpiryDateTime))):void 0,BackupName:y.expectString(e.BackupName),BackupSizeBytes:y.expectLong(e.BackupSizeBytes),BackupStatus:y.expectString(e.BackupStatus),BackupType:y.expectString(e.BackupType)}),j3=(e,t)=>({message:y.expectString(e.message)}),z3=(e,t)=>({message:y.expectString(e.message)}),U3=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:F3(n,t)),F3=(e,t)=>({BackupArn:y.expectString(e.BackupArn),BackupCreationDateTime:e.BackupCreationDateTime!==void 0&&e.BackupCreationDateTime!==null?y.expectNonNull(y.parseEpochTimestamp(y.expectNumber(e.BackupCreationDateTime))):void 0,BackupExpiryDateTime:e.BackupExpiryDateTime!==void 0&&e.BackupExpiryDateTime!==null?y.expectNonNull(y.parseEpochTimestamp(y.expectNumber(e.BackupExpiryDateTime))):void 0,BackupName:y.expectString(e.BackupName),BackupSizeBytes:y.expectLong(e.BackupSizeBytes),BackupStatus:y.expectString(e.BackupStatus),BackupType:y.expectString(e.BackupType),TableArn:y.expectString(e.TableArn),TableId:y.expectString(e.TableId),TableName:y.expectString(e.TableName)}),B3=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?cs(e.ConsumedCapacity,t):void 0,Responses:e.Responses!==void 0&&e.Responses!==null?S4(e.Responses,t):void 0}),G3=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?cs(e.ConsumedCapacity,t):void 0,Responses:e.Responses!==void 0&&e.Responses!==null?K3(e.Responses,t):void 0,UnprocessedKeys:e.UnprocessedKeys!==void 0&&e.UnprocessedKeys!==null?$3(e.UnprocessedKeys,t):void 0}),$3=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:f(o({},n),{[r]:n4(i,t)}),{}),K3=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:f(o({},n),{[r]:Gl(i,t)}),{}),V3=(e,t)=>({Code:y.expectString(e.Code),Message:y.expectString(e.Message)}),H3=(e,t)=>({Error:e.Error!==void 0&&e.Error!==null?V3(e.Error,t):void 0,Item:e.Item!==void 0&&e.Item!==null?Dr(e.Item,t):void 0,TableName:y.expectString(e.TableName)}),W3=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?cs(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?RE(e.ItemCollectionMetrics,t):void 0,UnprocessedItems:e.UnprocessedItems!==void 0&&e.UnprocessedItems!==null?Y3(e.UnprocessedItems,t):void 0}),Y3=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:f(o({},n),{[r]:b6(i,t)}),{}),CE=(e,t)=>({BillingMode:y.expectString(e.BillingMode),LastUpdateToPayPerRequestDateTime:e.LastUpdateToPayPerRequestDateTime!==void 0&&e.LastUpdateToPayPerRequestDateTime!==null?y.expectNonNull(y.parseEpochTimestamp(y.expectNumber(e.LastUpdateToPayPerRequestDateTime))):void 0}),J3=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:t.base64Decoder(n)),Q3=(e,t)=>({Code:y.expectString(e.Code),Item:e.Item!==void 0&&e.Item!==null?Dr(e.Item,t):void 0,Message:y.expectString(e.Message)}),X3=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:Q3(n,t)),TE=(e,t)=>({CapacityUnits:y.limitedParseDouble(e.CapacityUnits),ReadCapacityUnits:y.limitedParseDouble(e.ReadCapacityUnits),WriteCapacityUnits:y.limitedParseDouble(e.WriteCapacityUnits)}),Z3=(e,t)=>({message:y.expectString(e.message)}),Lr=(e,t)=>({CapacityUnits:y.limitedParseDouble(e.CapacityUnits),GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?kE(e.GlobalSecondaryIndexes,t):void 0,LocalSecondaryIndexes:e.LocalSecondaryIndexes!==void 0&&e.LocalSecondaryIndexes!==null?kE(e.LocalSecondaryIndexes,t):void 0,ReadCapacityUnits:y.limitedParseDouble(e.ReadCapacityUnits),Table:e.Table!==void 0&&e.Table!==null?TE(e.Table,t):void 0,TableName:y.expectString(e.TableName),WriteCapacityUnits:y.limitedParseDouble(e.WriteCapacityUnits)}),cs=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:Lr(n,t)),xE=(e,t)=>({ContinuousBackupsStatus:y.expectString(e.ContinuousBackupsStatus),PointInTimeRecoveryDescription:e.PointInTimeRecoveryDescription!==void 0&&e.PointInTimeRecoveryDescription!==null?w4(e.PointInTimeRecoveryDescription,t):void 0}),eW=(e,t)=>({message:y.expectString(e.message)}),tW=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:y.expectString(n)),nW=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:rW(n,t)),rW=(e,t)=>({ContributorInsightsStatus:y.expectString(e.ContributorInsightsStatus),IndexName:y.expectString(e.IndexName),TableName:y.expectString(e.TableName)}),iW=(e,t)=>({BackupDetails:e.BackupDetails!==void 0&&e.BackupDetails!==null?AE(e.BackupDetails,t):void 0}),sW=(e,t)=>({GlobalTableDescription:e.GlobalTableDescription!==void 0&&e.GlobalTableDescription!==null?fh(e.GlobalTableDescription,t):void 0}),aW=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?us(e.TableDescription,t):void 0}),oW=(e,t)=>({BackupDescription:e.BackupDescription!==void 0&&e.BackupDescription!==null?EE(e.BackupDescription,t):void 0}),lW=(e,t)=>({Attributes:e.Attributes!==void 0&&e.Attributes!==null?Dr(e.Attributes,t):void 0,ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Lr(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?Bl(e.ItemCollectionMetrics,t):void 0}),cW=(e,t)=>({Key:e.Key!==void 0&&e.Key!==null?$l(e.Key,t):void 0}),dW=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?us(e.TableDescription,t):void 0}),uW=(e,t)=>({BackupDescription:e.BackupDescription!==void 0&&e.BackupDescription!==null?EE(e.BackupDescription,t):void 0}),mW=(e,t)=>({ContinuousBackupsDescription:e.ContinuousBackupsDescription!==void 0&&e.ContinuousBackupsDescription!==null?xE(e.ContinuousBackupsDescription,t):void 0}),fW=(e,t)=>({ContributorInsightsRuleList:e.ContributorInsightsRuleList!==void 0&&e.ContributorInsightsRuleList!==null?tW(e.ContributorInsightsRuleList,t):void 0,ContributorInsightsStatus:y.expectString(e.ContributorInsightsStatus),FailureException:e.FailureException!==void 0&&e.FailureException!==null?LW(e.FailureException,t):void 0,IndexName:y.expectString(e.IndexName),LastUpdateDateTime:e.LastUpdateDateTime!==void 0&&e.LastUpdateDateTime!==null?y.expectNonNull(y.parseEpochTimestamp(y.expectNumber(e.LastUpdateDateTime))):void 0,TableName:y.expectString(e.TableName)}),pW=(e,t)=>({Endpoints:e.Endpoints!==void 0&&e.Endpoints!==null?CW(e.Endpoints,t):void 0}),_W=(e,t)=>({ExportDescription:e.ExportDescription!==void 0&&e.ExportDescription!==null?IE(e.ExportDescription,t):void 0}),hW=(e,t)=>({GlobalTableDescription:e.GlobalTableDescription!==void 0&&e.GlobalTableDescription!==null?fh(e.GlobalTableDescription,t):void 0}),gW=(e,t)=>({GlobalTableName:y.expectString(e.GlobalTableName),ReplicaSettings:e.ReplicaSettings!==void 0&&e.ReplicaSettings!==null?ME(e.ReplicaSettings,t):void 0}),yW=(e,t)=>({KinesisDataStreamDestinations:e.KinesisDataStreamDestinations!==void 0&&e.KinesisDataStreamDestinations!==null?s4(e.KinesisDataStreamDestinations,t):void 0,TableName:y.expectString(e.TableName)}),vW=(e,t)=>({AccountMaxReadCapacityUnits:y.expectLong(e.AccountMaxReadCapacityUnits),AccountMaxWriteCapacityUnits:y.expectLong(e.AccountMaxWriteCapacityUnits),TableMaxReadCapacityUnits:y.expectLong(e.TableMaxReadCapacityUnits),TableMaxWriteCapacityUnits:y.expectLong(e.TableMaxWriteCapacityUnits)}),bW=(e,t)=>({Table:e.Table!==void 0&&e.Table!==null?us(e.Table,t):void 0}),SW=(e,t)=>({TableAutoScalingDescription:e.TableAutoScalingDescription!==void 0&&e.TableAutoScalingDescription!==null?UE(e.TableAutoScalingDescription,t):void 0}),wW=(e,t)=>({TimeToLiveDescription:e.TimeToLiveDescription!==void 0&&e.TimeToLiveDescription!==null?FE(e.TimeToLiveDescription,t):void 0}),EW=(e,t)=>({message:y.expectString(e.message)}),AW=(e,t)=>({Address:y.expectString(e.Address),CachePeriodInMinutes:y.expectLong(e.CachePeriodInMinutes)}),CW=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:AW(n,t)),TW=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Lr(e.ConsumedCapacity,t):void 0,Items:e.Items!==void 0&&e.Items!==null?Gl(e.Items,t):void 0,NextToken:y.expectString(e.NextToken)}),xW=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?cs(e.ConsumedCapacity,t):void 0,Responses:e.Responses!==void 0&&e.Responses!==null?NE(e.Responses,t):void 0}),IW=(e,t)=>({message:y.expectString(e.message)}),IE=(e,t)=>({BilledSizeBytes:y.expectLong(e.BilledSizeBytes),ClientToken:y.expectString(e.ClientToken),EndTime:e.EndTime!==void 0&&e.EndTime!==null?y.expectNonNull(y.parseEpochTimestamp(y.expectNumber(e.EndTime))):void 0,ExportArn:y.expectString(e.ExportArn),ExportFormat:y.expectString(e.ExportFormat),ExportManifest:y.expectString(e.ExportManifest),ExportStatus:y.expectString(e.ExportStatus),ExportTime:e.ExportTime!==void 0&&e.ExportTime!==null?y.expectNonNull(y.parseEpochTimestamp(y.expectNumber(e.ExportTime))):void 0,FailureCode:y.expectString(e.FailureCode),FailureMessage:y.expectString(e.FailureMessage),ItemCount:y.expectLong(e.ItemCount),S3Bucket:y.expectString(e.S3Bucket),S3BucketOwner:y.expectString(e.S3BucketOwner),S3Prefix:y.expectString(e.S3Prefix),S3SseAlgorithm:y.expectString(e.S3SseAlgorithm),S3SseKmsKeyId:y.expectString(e.S3SseKmsKeyId),StartTime:e.StartTime!==void 0&&e.StartTime!==null?y.expectNonNull(y.parseEpochTimestamp(y.expectNumber(e.StartTime))):void 0,TableArn:y.expectString(e.TableArn),TableId:y.expectString(e.TableId)}),RW=(e,t)=>({message:y.expectString(e.message)}),NW=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:PW(n,t)),PW=(e,t)=>({ExportArn:y.expectString(e.ExportArn),ExportStatus:y.expectString(e.ExportStatus)}),DW=(e,t)=>({ExportDescription:e.ExportDescription!==void 0&&e.ExportDescription!==null?IE(e.ExportDescription,t):void 0}),OW=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:f(o({},n),{[r]:y.expectString(i)}),{}),LW=(e,t)=>({ExceptionDescription:y.expectString(e.ExceptionDescription),ExceptionName:y.expectString(e.ExceptionName)}),qW=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Lr(e.ConsumedCapacity,t):void 0,Item:e.Item!==void 0&&e.Item!==null?Dr(e.Item,t):void 0}),MW=(e,t)=>({Backfilling:y.expectBoolean(e.Backfilling),IndexArn:y.expectString(e.IndexArn),IndexName:y.expectString(e.IndexName),IndexSizeBytes:y.expectLong(e.IndexSizeBytes),IndexStatus:y.expectString(e.IndexStatus),ItemCount:y.expectLong(e.ItemCount),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?ds(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?Kl(e.Projection,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?OE(e.ProvisionedThroughput,t):void 0}),kW=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:MW(n,t)),jW=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:zW(n,t)),zW=(e,t)=>({IndexName:y.expectString(e.IndexName),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?ds(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?Kl(e.Projection,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?DE(e.ProvisionedThroughput,t):void 0}),UW=(e,t)=>({GlobalTableName:y.expectString(e.GlobalTableName),ReplicationGroup:e.ReplicationGroup!==void 0&&e.ReplicationGroup!==null?U4(e.ReplicationGroup,t):void 0}),FW=(e,t)=>({message:y.expectString(e.message)}),fh=(e,t)=>({CreationDateTime:e.CreationDateTime!==void 0&&e.CreationDateTime!==null?y.expectNonNull(y.parseEpochTimestamp(y.expectNumber(e.CreationDateTime))):void 0,GlobalTableArn:y.expectString(e.GlobalTableArn),GlobalTableName:y.expectString(e.GlobalTableName),GlobalTableStatus:y.expectString(e.GlobalTableStatus),ReplicationGroup:e.ReplicationGroup!==void 0&&e.ReplicationGroup!==null?qE(e.ReplicationGroup,t):void 0}),BW=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:UW(n,t)),GW=(e,t)=>({message:y.expectString(e.message)}),$W=(e,t)=>({Message:y.expectString(e.Message)}),KW=(e,t)=>({message:y.expectString(e.message)}),VW=(e,t)=>({message:y.expectString(e.message)}),HW=(e,t)=>({Message:y.expectString(e.Message)}),WW=(e,t)=>({message:y.expectString(e.message)}),YW=(e,t)=>({message:y.expectString(e.message)}),JW=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:f(o({},n),{[r]:ls(y.expectUnion(i),t)}),{}),Bl=(e,t)=>({ItemCollectionKey:e.ItemCollectionKey!==void 0&&e.ItemCollectionKey!==null?JW(e.ItemCollectionKey,t):void 0,SizeEstimateRangeGB:e.SizeEstimateRangeGB!==void 0&&e.SizeEstimateRangeGB!==null?XW(e.SizeEstimateRangeGB,t):void 0}),QW=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:Bl(n,t)),RE=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:f(o({},n),{[r]:QW(i,t)}),{}),XW=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:y.limitedParseDouble(n)),ZW=(e,t)=>({message:y.expectString(e.message)}),Gl=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:Dr(n,t)),e4=(e,t)=>({Item:e.Item!==void 0&&e.Item!==null?Dr(e.Item,t):void 0}),NE=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:e4(n,t)),$l=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:f(o({},n),{[r]:ls(y.expectUnion(i),t)}),{}),t4=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:$l(n,t)),n4=(e,t)=>({AttributesToGet:e.AttributesToGet!==void 0&&e.AttributesToGet!==null?L3(e.AttributesToGet,t):void 0,ConsistentRead:y.expectBoolean(e.ConsistentRead),ExpressionAttributeNames:e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null?OW(e.ExpressionAttributeNames,t):void 0,Keys:e.Keys!==void 0&&e.Keys!==null?t4(e.Keys,t):void 0,ProjectionExpression:y.expectString(e.ProjectionExpression)}),ds=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:r4(n,t)),r4=(e,t)=>({AttributeName:y.expectString(e.AttributeName),KeyType:y.expectString(e.KeyType)}),i4=(e,t)=>({DestinationStatus:y.expectString(e.DestinationStatus),DestinationStatusDescription:y.expectString(e.DestinationStatusDescription),StreamArn:y.expectString(e.StreamArn)}),s4=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:i4(n,t)),PE=(e,t)=>({DestinationStatus:y.expectString(e.DestinationStatus),StreamArn:y.expectString(e.StreamArn),TableName:y.expectString(e.TableName)}),a4=(e,t)=>({message:y.expectString(e.message)}),o4=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:ls(y.expectUnion(n),t)),l4=(e,t)=>({BackupSummaries:e.BackupSummaries!==void 0&&e.BackupSummaries!==null?U3(e.BackupSummaries,t):void 0,LastEvaluatedBackupArn:y.expectString(e.LastEvaluatedBackupArn)}),c4=(e,t)=>({ContributorInsightsSummaries:e.ContributorInsightsSummaries!==void 0&&e.ContributorInsightsSummaries!==null?nW(e.ContributorInsightsSummaries,t):void 0,NextToken:y.expectString(e.NextToken)}),d4=(e,t)=>({ExportSummaries:e.ExportSummaries!==void 0&&e.ExportSummaries!==null?NW(e.ExportSummaries,t):void 0,NextToken:y.expectString(e.NextToken)}),u4=(e,t)=>({GlobalTables:e.GlobalTables!==void 0&&e.GlobalTables!==null?BW(e.GlobalTables,t):void 0,LastEvaluatedGlobalTableName:y.expectString(e.LastEvaluatedGlobalTableName)}),m4=(e,t)=>({LastEvaluatedTableName:y.expectString(e.LastEvaluatedTableName),TableNames:e.TableNames!==void 0&&e.TableNames!==null?t6(e.TableNames,t):void 0}),f4=(e,t)=>({NextToken:y.expectString(e.NextToken),Tags:e.Tags!==void 0&&e.Tags!==null?i6(e.Tags,t):void 0}),p4=(e,t)=>({IndexArn:y.expectString(e.IndexArn),IndexName:y.expectString(e.IndexName),IndexSizeBytes:y.expectLong(e.IndexSizeBytes),ItemCount:y.expectLong(e.ItemCount),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?ds(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?Kl(e.Projection,t):void 0}),_4=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:p4(n,t)),h4=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:g4(n,t)),g4=(e,t)=>({IndexName:y.expectString(e.IndexName),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?ds(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?Kl(e.Projection,t):void 0}),y4=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:f(o({},n),{[r]:ls(y.expectUnion(i),t)}),{}),v4=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:y.expectString(n)),b4=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:y.expectString(n)),S4=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:H3(n,t)),w4=(e,t)=>({EarliestRestorableDateTime:e.EarliestRestorableDateTime!==void 0&&e.EarliestRestorableDateTime!==null?y.expectNonNull(y.parseEpochTimestamp(y.expectNumber(e.EarliestRestorableDateTime))):void 0,LatestRestorableDateTime:e.LatestRestorableDateTime!==void 0&&e.LatestRestorableDateTime!==null?y.expectNonNull(y.parseEpochTimestamp(y.expectNumber(e.LatestRestorableDateTime))):void 0,PointInTimeRecoveryStatus:y.expectString(e.PointInTimeRecoveryStatus)}),E4=(e,t)=>({message:y.expectString(e.message)}),Kl=(e,t)=>({NonKeyAttributes:e.NonKeyAttributes!==void 0&&e.NonKeyAttributes!==null?v4(e.NonKeyAttributes,t):void 0,ProjectionType:y.expectString(e.ProjectionType)}),DE=(e,t)=>({ReadCapacityUnits:y.expectLong(e.ReadCapacityUnits),WriteCapacityUnits:y.expectLong(e.WriteCapacityUnits)}),OE=(e,t)=>({LastDecreaseDateTime:e.LastDecreaseDateTime!==void 0&&e.LastDecreaseDateTime!==null?y.expectNonNull(y.parseEpochTimestamp(y.expectNumber(e.LastDecreaseDateTime))):void 0,LastIncreaseDateTime:e.LastIncreaseDateTime!==void 0&&e.LastIncreaseDateTime!==null?y.expectNonNull(y.parseEpochTimestamp(y.expectNumber(e.LastIncreaseDateTime))):void 0,NumberOfDecreasesToday:y.expectLong(e.NumberOfDecreasesToday),ReadCapacityUnits:y.expectLong(e.ReadCapacityUnits),WriteCapacityUnits:y.expectLong(e.WriteCapacityUnits)}),A4=(e,t)=>({message:y.expectString(e.message)}),LE=(e,t)=>({ReadCapacityUnits:y.expectLong(e.ReadCapacityUnits)}),C4=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:f(o({},n),{[r]:ls(y.expectUnion(i),t)}),{}),T4=(e,t)=>({Attributes:e.Attributes!==void 0&&e.Attributes!==null?Dr(e.Attributes,t):void 0,ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Lr(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?Bl(e.ItemCollectionMetrics,t):void 0}),x4=(e,t)=>({Item:e.Item!==void 0&&e.Item!==null?C4(e.Item,t):void 0}),I4=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Lr(e.ConsumedCapacity,t):void 0,Count:y.expectInt32(e.Count),Items:e.Items!==void 0&&e.Items!==null?Gl(e.Items,t):void 0,LastEvaluatedKey:e.LastEvaluatedKey!==void 0&&e.LastEvaluatedKey!==null?$l(e.LastEvaluatedKey,t):void 0,ScannedCount:y.expectInt32(e.ScannedCount)}),R4=(e,t)=>({RegionName:y.expectString(e.RegionName)}),N4=(e,t)=>({message:y.expectString(e.message)}),P4=(e,t)=>({GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?q4(e.GlobalSecondaryIndexes,t):void 0,RegionName:y.expectString(e.RegionName),ReplicaProvisionedReadCapacityAutoScalingSettings:e.ReplicaProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedReadCapacityAutoScalingSettings!==null?Or(e.ReplicaProvisionedReadCapacityAutoScalingSettings,t):void 0,ReplicaProvisionedWriteCapacityAutoScalingSettings:e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==null?Or(e.ReplicaProvisionedWriteCapacityAutoScalingSettings,t):void 0,ReplicaStatus:y.expectString(e.ReplicaStatus)}),D4=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:P4(n,t)),O4=(e,t)=>({GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?k4(e.GlobalSecondaryIndexes,t):void 0,KMSMasterKeyId:y.expectString(e.KMSMasterKeyId),ProvisionedThroughputOverride:e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null?LE(e.ProvisionedThroughputOverride,t):void 0,RegionName:y.expectString(e.RegionName),ReplicaInaccessibleDateTime:e.ReplicaInaccessibleDateTime!==void 0&&e.ReplicaInaccessibleDateTime!==null?y.expectNonNull(y.parseEpochTimestamp(y.expectNumber(e.ReplicaInaccessibleDateTime))):void 0,ReplicaStatus:y.expectString(e.ReplicaStatus),ReplicaStatusDescription:y.expectString(e.ReplicaStatusDescription),ReplicaStatusPercentProgress:y.expectString(e.ReplicaStatusPercentProgress),ReplicaTableClassSummary:e.ReplicaTableClassSummary!==void 0&&e.ReplicaTableClassSummary!==null?ph(e.ReplicaTableClassSummary,t):void 0}),qE=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:O4(n,t)),L4=(e,t)=>({IndexName:y.expectString(e.IndexName),IndexStatus:y.expectString(e.IndexStatus),ProvisionedReadCapacityAutoScalingSettings:e.ProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ProvisionedReadCapacityAutoScalingSettings!==null?Or(e.ProvisionedReadCapacityAutoScalingSettings,t):void 0,ProvisionedWriteCapacityAutoScalingSettings:e.ProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ProvisionedWriteCapacityAutoScalingSettings!==null?Or(e.ProvisionedWriteCapacityAutoScalingSettings,t):void 0}),q4=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:L4(n,t)),M4=(e,t)=>({IndexName:y.expectString(e.IndexName),ProvisionedThroughputOverride:e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null?LE(e.ProvisionedThroughputOverride,t):void 0}),k4=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:M4(n,t)),j4=(e,t)=>({IndexName:y.expectString(e.IndexName),IndexStatus:y.expectString(e.IndexStatus),ProvisionedReadCapacityAutoScalingSettings:e.ProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ProvisionedReadCapacityAutoScalingSettings!==null?Or(e.ProvisionedReadCapacityAutoScalingSettings,t):void 0,ProvisionedReadCapacityUnits:y.expectLong(e.ProvisionedReadCapacityUnits),ProvisionedWriteCapacityAutoScalingSettings:e.ProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ProvisionedWriteCapacityAutoScalingSettings!==null?Or(e.ProvisionedWriteCapacityAutoScalingSettings,t):void 0,ProvisionedWriteCapacityUnits:y.expectLong(e.ProvisionedWriteCapacityUnits)}),z4=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:j4(n,t)),U4=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:R4(n,t)),F4=(e,t)=>({message:y.expectString(e.message)}),B4=(e,t)=>({RegionName:y.expectString(e.RegionName),ReplicaBillingModeSummary:e.ReplicaBillingModeSummary!==void 0&&e.ReplicaBillingModeSummary!==null?CE(e.ReplicaBillingModeSummary,t):void 0,ReplicaGlobalSecondaryIndexSettings:e.ReplicaGlobalSecondaryIndexSettings!==void 0&&e.ReplicaGlobalSecondaryIndexSettings!==null?z4(e.ReplicaGlobalSecondaryIndexSettings,t):void 0,ReplicaProvisionedReadCapacityAutoScalingSettings:e.ReplicaProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedReadCapacityAutoScalingSettings!==null?Or(e.ReplicaProvisionedReadCapacityAutoScalingSettings,t):void 0,ReplicaProvisionedReadCapacityUnits:y.expectLong(e.ReplicaProvisionedReadCapacityUnits),ReplicaProvisionedWriteCapacityAutoScalingSettings:e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==null?Or(e.ReplicaProvisionedWriteCapacityAutoScalingSettings,t):void 0,ReplicaProvisionedWriteCapacityUnits:y.expectLong(e.ReplicaProvisionedWriteCapacityUnits),ReplicaStatus:y.expectString(e.ReplicaStatus),ReplicaTableClassSummary:e.ReplicaTableClassSummary!==void 0&&e.ReplicaTableClassSummary!==null?ph(e.ReplicaTableClassSummary,t):void 0}),ME=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:B4(n,t)),G4=(e,t)=>({message:y.expectString(e.message)}),$4=(e,t)=>({message:y.expectString(e.message)}),K4=(e,t)=>({message:y.expectString(e.message)}),V4=(e,t)=>({RestoreDateTime:e.RestoreDateTime!==void 0&&e.RestoreDateTime!==null?y.expectNonNull(y.parseEpochTimestamp(y.expectNumber(e.RestoreDateTime))):void 0,RestoreInProgress:y.expectBoolean(e.RestoreInProgress),SourceBackupArn:y.expectString(e.SourceBackupArn),SourceTableArn:y.expectString(e.SourceTableArn)}),H4=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?us(e.TableDescription,t):void 0}),W4=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?us(e.TableDescription,t):void 0}),Y4=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Lr(e.ConsumedCapacity,t):void 0,Count:y.expectInt32(e.Count),Items:e.Items!==void 0&&e.Items!==null?Gl(e.Items,t):void 0,LastEvaluatedKey:e.LastEvaluatedKey!==void 0&&e.LastEvaluatedKey!==null?$l(e.LastEvaluatedKey,t):void 0,ScannedCount:y.expectInt32(e.ScannedCount)}),kE=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:f(o({},n),{[r]:TE(i,t)}),{}),J4=(e,t)=>({BillingMode:y.expectString(e.BillingMode),ItemCount:y.expectLong(e.ItemCount),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?ds(e.KeySchema,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?DE(e.ProvisionedThroughput,t):void 0,TableArn:y.expectString(e.TableArn),TableCreationDateTime:e.TableCreationDateTime!==void 0&&e.TableCreationDateTime!==null?y.expectNonNull(y.parseEpochTimestamp(y.expectNumber(e.TableCreationDateTime))):void 0,TableId:y.expectString(e.TableId),TableName:y.expectString(e.TableName),TableSizeBytes:y.expectLong(e.TableSizeBytes)}),Q4=(e,t)=>({GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?jW(e.GlobalSecondaryIndexes,t):void 0,LocalSecondaryIndexes:e.LocalSecondaryIndexes!==void 0&&e.LocalSecondaryIndexes!==null?h4(e.LocalSecondaryIndexes,t):void 0,SSEDescription:e.SSEDescription!==void 0&&e.SSEDescription!==null?jE(e.SSEDescription,t):void 0,StreamDescription:e.StreamDescription!==void 0&&e.StreamDescription!==null?zE(e.StreamDescription,t):void 0,TimeToLiveDescription:e.TimeToLiveDescription!==void 0&&e.TimeToLiveDescription!==null?FE(e.TimeToLiveDescription,t):void 0}),jE=(e,t)=>({InaccessibleEncryptionDateTime:e.InaccessibleEncryptionDateTime!==void 0&&e.InaccessibleEncryptionDateTime!==null?y.expectNonNull(y.parseEpochTimestamp(y.expectNumber(e.InaccessibleEncryptionDateTime))):void 0,KMSMasterKeyArn:y.expectString(e.KMSMasterKeyArn),SSEType:y.expectString(e.SSEType),Status:y.expectString(e.Status)}),zE=(e,t)=>({StreamEnabled:y.expectBoolean(e.StreamEnabled),StreamViewType:y.expectString(e.StreamViewType)}),X4=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:y.expectString(n)),Z4=(e,t)=>({message:y.expectString(e.message)}),UE=(e,t)=>({Replicas:e.Replicas!==void 0&&e.Replicas!==null?D4(e.Replicas,t):void 0,TableName:y.expectString(e.TableName),TableStatus:y.expectString(e.TableStatus)}),ph=(e,t)=>({LastUpdateDateTime:e.LastUpdateDateTime!==void 0&&e.LastUpdateDateTime!==null?y.expectNonNull(y.parseEpochTimestamp(y.expectNumber(e.LastUpdateDateTime))):void 0,TableClass:y.expectString(e.TableClass)}),us=(e,t)=>({ArchivalSummary:e.ArchivalSummary!==void 0&&e.ArchivalSummary!==null?P3(e.ArchivalSummary,t):void 0,AttributeDefinitions:e.AttributeDefinitions!==void 0&&e.AttributeDefinitions!==null?O3(e.AttributeDefinitions,t):void 0,BillingModeSummary:e.BillingModeSummary!==void 0&&e.BillingModeSummary!==null?CE(e.BillingModeSummary,t):void 0,CreationDateTime:e.CreationDateTime!==void 0&&e.CreationDateTime!==null?y.expectNonNull(y.parseEpochTimestamp(y.expectNumber(e.CreationDateTime))):void 0,GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?kW(e.GlobalSecondaryIndexes,t):void 0,GlobalTableVersion:y.expectString(e.GlobalTableVersion),ItemCount:y.expectLong(e.ItemCount),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?ds(e.KeySchema,t):void 0,LatestStreamArn:y.expectString(e.LatestStreamArn),LatestStreamLabel:y.expectString(e.LatestStreamLabel),LocalSecondaryIndexes:e.LocalSecondaryIndexes!==void 0&&e.LocalSecondaryIndexes!==null?_4(e.LocalSecondaryIndexes,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?OE(e.ProvisionedThroughput,t):void 0,Replicas:e.Replicas!==void 0&&e.Replicas!==null?qE(e.Replicas,t):void 0,RestoreSummary:e.RestoreSummary!==void 0&&e.RestoreSummary!==null?V4(e.RestoreSummary,t):void 0,SSEDescription:e.SSEDescription!==void 0&&e.SSEDescription!==null?jE(e.SSEDescription,t):void 0,StreamSpecification:e.StreamSpecification!==void 0&&e.StreamSpecification!==null?zE(e.StreamSpecification,t):void 0,TableArn:y.expectString(e.TableArn),TableClassSummary:e.TableClassSummary!==void 0&&e.TableClassSummary!==null?ph(e.TableClassSummary,t):void 0,TableId:y.expectString(e.TableId),TableName:y.expectString(e.TableName),TableSizeBytes:y.expectLong(e.TableSizeBytes),TableStatus:y.expectString(e.TableStatus)}),e6=(e,t)=>({message:y.expectString(e.message)}),t6=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:y.expectString(n)),n6=(e,t)=>({message:y.expectString(e.message)}),r6=(e,t)=>({Key:y.expectString(e.Key),Value:y.expectString(e.Value)}),i6=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:r6(n,t)),FE=(e,t)=>({AttributeName:y.expectString(e.AttributeName),TimeToLiveStatus:y.expectString(e.TimeToLiveStatus)}),s6=(e,t)=>({AttributeName:y.expectString(e.AttributeName),Enabled:y.expectBoolean(e.Enabled)}),a6=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?cs(e.ConsumedCapacity,t):void 0,Responses:e.Responses!==void 0&&e.Responses!==null?NE(e.Responses,t):void 0}),o6=(e,t)=>({CancellationReasons:e.CancellationReasons!==void 0&&e.CancellationReasons!==null?X3(e.CancellationReasons,t):void 0,Message:y.expectString(e.Message)}),l6=(e,t)=>({message:y.expectString(e.message)}),c6=(e,t)=>({Message:y.expectString(e.Message)}),d6=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?cs(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?RE(e.ItemCollectionMetrics,t):void 0}),u6=(e,t)=>({ContinuousBackupsDescription:e.ContinuousBackupsDescription!==void 0&&e.ContinuousBackupsDescription!==null?xE(e.ContinuousBackupsDescription,t):void 0}),m6=(e,t)=>({ContributorInsightsStatus:y.expectString(e.ContributorInsightsStatus),IndexName:y.expectString(e.IndexName),TableName:y.expectString(e.TableName)}),f6=(e,t)=>({GlobalTableDescription:e.GlobalTableDescription!==void 0&&e.GlobalTableDescription!==null?fh(e.GlobalTableDescription,t):void 0}),p6=(e,t)=>({GlobalTableName:y.expectString(e.GlobalTableName),ReplicaSettings:e.ReplicaSettings!==void 0&&e.ReplicaSettings!==null?ME(e.ReplicaSettings,t):void 0}),_6=(e,t)=>({Attributes:e.Attributes!==void 0&&e.Attributes!==null?Dr(e.Attributes,t):void 0,ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Lr(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?Bl(e.ItemCollectionMetrics,t):void 0}),h6=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?us(e.TableDescription,t):void 0}),g6=(e,t)=>({TableAutoScalingDescription:e.TableAutoScalingDescription!==void 0&&e.TableAutoScalingDescription!==null?UE(e.TableAutoScalingDescription,t):void 0}),y6=(e,t)=>({TimeToLiveSpecification:e.TimeToLiveSpecification!==void 0&&e.TimeToLiveSpecification!==null?s6(e.TimeToLiveSpecification,t):void 0}),v6=(e,t)=>({DeleteRequest:e.DeleteRequest!==void 0&&e.DeleteRequest!==null?cW(e.DeleteRequest,t):void 0,PutRequest:e.PutRequest!==void 0&&e.PutRequest!==null?x4(e.PutRequest,t):void 0}),b6=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:v6(n,t)),h=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"]}},_h=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),S6=(e,t)=>_h(e,t).then(n=>t.utf8Encoder(n)),Z=async(e,t,n,r,i)=>{let{hostname:s,protocol:a="https",port:l,path:c}=await e.endpoint(),d={protocol:a,hostname:s,port:l,method:"POST",path:c.endsWith("/")?c.slice(0,-1)+n:c+n,headers:t};return r!==void 0&&(d.hostname=r),i!==void 0&&(d.body=i),new E$.HttpRequest(d)},P=(e,t)=>S6(e,t).then(n=>n.length?JSON.parse(n):{}),ee=(e,t)=>{let n=(s,a)=>Object.keys(s).find(l=>l.toLowerCase()===a.toLowerCase()),r=s=>{let a=s;return a.indexOf(":")>=0&&(a=a.split(":")[0]),a.indexOf("#")>=0&&(a=a.split("#")[1]),a},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 hh=p(Vl=>{"use strict";Object.defineProperty(Vl,"__esModule",{value:!0});Vl.BatchExecuteStatementCommand=void 0;var w6=B(),E6=q(),BE=H(),GE=J(),$E=class extends E6.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(w6.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"BatchExecuteStatementCommand",inputFilterSensitiveLog:BE.BatchExecuteStatementInput.filterSensitiveLog,outputFilterSensitiveLog:BE.BatchExecuteStatementOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return GE.serializeAws_json1_0BatchExecuteStatementCommand(t,n)}deserialize(t,n){return GE.deserializeAws_json1_0BatchExecuteStatementCommand(t,n)}};Vl.BatchExecuteStatementCommand=$E});var gh=p(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});Hl.BatchGetItemCommand=void 0;var A6=B(),C6=q(),KE=H(),VE=J(),HE=class extends C6.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(A6.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"BatchGetItemCommand",inputFilterSensitiveLog:KE.BatchGetItemInput.filterSensitiveLog,outputFilterSensitiveLog:KE.BatchGetItemOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return VE.serializeAws_json1_0BatchGetItemCommand(t,n)}deserialize(t,n){return VE.deserializeAws_json1_0BatchGetItemCommand(t,n)}};Hl.BatchGetItemCommand=HE});var yh=p(Wl=>{"use strict";Object.defineProperty(Wl,"__esModule",{value:!0});Wl.BatchWriteItemCommand=void 0;var T6=B(),x6=q(),WE=H(),YE=J(),JE=class extends x6.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(T6.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"BatchWriteItemCommand",inputFilterSensitiveLog:WE.BatchWriteItemInput.filterSensitiveLog,outputFilterSensitiveLog:WE.BatchWriteItemOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return YE.serializeAws_json1_0BatchWriteItemCommand(t,n)}deserialize(t,n){return YE.deserializeAws_json1_0BatchWriteItemCommand(t,n)}};Wl.BatchWriteItemCommand=JE});var vh=p(Yl=>{"use strict";Object.defineProperty(Yl,"__esModule",{value:!0});Yl.CreateBackupCommand=void 0;var I6=B(),R6=q(),QE=H(),XE=J(),ZE=class extends R6.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(I6.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"CreateBackupCommand",inputFilterSensitiveLog:QE.CreateBackupInput.filterSensitiveLog,outputFilterSensitiveLog:QE.CreateBackupOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return XE.serializeAws_json1_0CreateBackupCommand(t,n)}deserialize(t,n){return XE.deserializeAws_json1_0CreateBackupCommand(t,n)}};Yl.CreateBackupCommand=ZE});var bh=p(Jl=>{"use strict";Object.defineProperty(Jl,"__esModule",{value:!0});Jl.CreateGlobalTableCommand=void 0;var N6=B(),P6=q(),eA=H(),tA=J(),nA=class extends P6.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(N6.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"CreateGlobalTableCommand",inputFilterSensitiveLog:eA.CreateGlobalTableInput.filterSensitiveLog,outputFilterSensitiveLog:eA.CreateGlobalTableOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return tA.serializeAws_json1_0CreateGlobalTableCommand(t,n)}deserialize(t,n){return tA.deserializeAws_json1_0CreateGlobalTableCommand(t,n)}};Jl.CreateGlobalTableCommand=nA});var Sh=p(Ql=>{"use strict";Object.defineProperty(Ql,"__esModule",{value:!0});Ql.CreateTableCommand=void 0;var D6=B(),O6=q(),rA=H(),iA=J(),sA=class extends O6.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(D6.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"CreateTableCommand",inputFilterSensitiveLog:rA.CreateTableInput.filterSensitiveLog,outputFilterSensitiveLog:rA.CreateTableOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return iA.serializeAws_json1_0CreateTableCommand(t,n)}deserialize(t,n){return iA.deserializeAws_json1_0CreateTableCommand(t,n)}};Ql.CreateTableCommand=sA});var wh=p(Xl=>{"use strict";Object.defineProperty(Xl,"__esModule",{value:!0});Xl.DeleteBackupCommand=void 0;var L6=B(),q6=q(),aA=H(),oA=J(),lA=class extends q6.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(L6.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DeleteBackupCommand",inputFilterSensitiveLog:aA.DeleteBackupInput.filterSensitiveLog,outputFilterSensitiveLog:aA.DeleteBackupOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return oA.serializeAws_json1_0DeleteBackupCommand(t,n)}deserialize(t,n){return oA.deserializeAws_json1_0DeleteBackupCommand(t,n)}};Xl.DeleteBackupCommand=lA});var Eh=p(Zl=>{"use strict";Object.defineProperty(Zl,"__esModule",{value:!0});Zl.DeleteItemCommand=void 0;var M6=B(),k6=q(),cA=H(),dA=J(),uA=class extends k6.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(M6.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DeleteItemCommand",inputFilterSensitiveLog:cA.DeleteItemInput.filterSensitiveLog,outputFilterSensitiveLog:cA.DeleteItemOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return dA.serializeAws_json1_0DeleteItemCommand(t,n)}deserialize(t,n){return dA.deserializeAws_json1_0DeleteItemCommand(t,n)}};Zl.DeleteItemCommand=uA});var Ah=p(ec=>{"use strict";Object.defineProperty(ec,"__esModule",{value:!0});ec.DeleteTableCommand=void 0;var j6=B(),z6=q(),mA=H(),fA=J(),pA=class extends z6.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(j6.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DeleteTableCommand",inputFilterSensitiveLog:mA.DeleteTableInput.filterSensitiveLog,outputFilterSensitiveLog:mA.DeleteTableOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return fA.serializeAws_json1_0DeleteTableCommand(t,n)}deserialize(t,n){return fA.deserializeAws_json1_0DeleteTableCommand(t,n)}};ec.DeleteTableCommand=pA});var Ch=p(tc=>{"use strict";Object.defineProperty(tc,"__esModule",{value:!0});tc.DescribeBackupCommand=void 0;var U6=B(),F6=q(),_A=H(),hA=J(),gA=class extends F6.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(U6.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeBackupCommand",inputFilterSensitiveLog:_A.DescribeBackupInput.filterSensitiveLog,outputFilterSensitiveLog:_A.DescribeBackupOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return hA.serializeAws_json1_0DescribeBackupCommand(t,n)}deserialize(t,n){return hA.deserializeAws_json1_0DescribeBackupCommand(t,n)}};tc.DescribeBackupCommand=gA});var Th=p(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});nc.DescribeContinuousBackupsCommand=void 0;var B6=B(),G6=q(),yA=H(),vA=J(),bA=class extends G6.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(B6.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeContinuousBackupsCommand",inputFilterSensitiveLog:yA.DescribeContinuousBackupsInput.filterSensitiveLog,outputFilterSensitiveLog:yA.DescribeContinuousBackupsOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return vA.serializeAws_json1_0DescribeContinuousBackupsCommand(t,n)}deserialize(t,n){return vA.deserializeAws_json1_0DescribeContinuousBackupsCommand(t,n)}};nc.DescribeContinuousBackupsCommand=bA});var xh=p(rc=>{"use strict";Object.defineProperty(rc,"__esModule",{value:!0});rc.DescribeContributorInsightsCommand=void 0;var $6=B(),K6=q(),SA=H(),wA=J(),EA=class extends K6.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use($6.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeContributorInsightsCommand",inputFilterSensitiveLog:SA.DescribeContributorInsightsInput.filterSensitiveLog,outputFilterSensitiveLog:SA.DescribeContributorInsightsOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return wA.serializeAws_json1_0DescribeContributorInsightsCommand(t,n)}deserialize(t,n){return wA.deserializeAws_json1_0DescribeContributorInsightsCommand(t,n)}};rc.DescribeContributorInsightsCommand=EA});var sc=p(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});ic.DescribeEndpointsCommand=void 0;var V6=B(),H6=q(),AA=H(),CA=J(),TA=class extends H6.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(V6.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeEndpointsCommand",inputFilterSensitiveLog:AA.DescribeEndpointsRequest.filterSensitiveLog,outputFilterSensitiveLog:AA.DescribeEndpointsResponse.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return CA.serializeAws_json1_0DescribeEndpointsCommand(t,n)}deserialize(t,n){return CA.deserializeAws_json1_0DescribeEndpointsCommand(t,n)}};ic.DescribeEndpointsCommand=TA});var Ih=p(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});ac.DescribeExportCommand=void 0;var W6=B(),Y6=q(),xA=H(),IA=J(),RA=class extends Y6.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(W6.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeExportCommand",inputFilterSensitiveLog:xA.DescribeExportInput.filterSensitiveLog,outputFilterSensitiveLog:xA.DescribeExportOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return IA.serializeAws_json1_0DescribeExportCommand(t,n)}deserialize(t,n){return IA.deserializeAws_json1_0DescribeExportCommand(t,n)}};ac.DescribeExportCommand=RA});var Rh=p(oc=>{"use strict";Object.defineProperty(oc,"__esModule",{value:!0});oc.DescribeGlobalTableCommand=void 0;var J6=B(),Q6=q(),NA=H(),PA=J(),DA=class extends Q6.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(J6.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeGlobalTableCommand",inputFilterSensitiveLog:NA.DescribeGlobalTableInput.filterSensitiveLog,outputFilterSensitiveLog:NA.DescribeGlobalTableOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return PA.serializeAws_json1_0DescribeGlobalTableCommand(t,n)}deserialize(t,n){return PA.deserializeAws_json1_0DescribeGlobalTableCommand(t,n)}};oc.DescribeGlobalTableCommand=DA});var Nh=p(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});lc.DescribeGlobalTableSettingsCommand=void 0;var X6=B(),Z6=q(),OA=H(),LA=J(),qA=class extends Z6.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(X6.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeGlobalTableSettingsCommand",inputFilterSensitiveLog:OA.DescribeGlobalTableSettingsInput.filterSensitiveLog,outputFilterSensitiveLog:OA.DescribeGlobalTableSettingsOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return LA.serializeAws_json1_0DescribeGlobalTableSettingsCommand(t,n)}deserialize(t,n){return LA.deserializeAws_json1_0DescribeGlobalTableSettingsCommand(t,n)}};lc.DescribeGlobalTableSettingsCommand=qA});var Ph=p(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});cc.DescribeKinesisStreamingDestinationCommand=void 0;var e8=B(),t8=q(),MA=H(),kA=J(),jA=class extends t8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(e8.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeKinesisStreamingDestinationCommand",inputFilterSensitiveLog:MA.DescribeKinesisStreamingDestinationInput.filterSensitiveLog,outputFilterSensitiveLog:MA.DescribeKinesisStreamingDestinationOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return kA.serializeAws_json1_0DescribeKinesisStreamingDestinationCommand(t,n)}deserialize(t,n){return kA.deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand(t,n)}};cc.DescribeKinesisStreamingDestinationCommand=jA});var Dh=p(dc=>{"use strict";Object.defineProperty(dc,"__esModule",{value:!0});dc.DescribeLimitsCommand=void 0;var n8=B(),r8=q(),zA=H(),UA=J(),FA=class extends r8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(n8.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeLimitsCommand",inputFilterSensitiveLog:zA.DescribeLimitsInput.filterSensitiveLog,outputFilterSensitiveLog:zA.DescribeLimitsOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return UA.serializeAws_json1_0DescribeLimitsCommand(t,n)}deserialize(t,n){return UA.deserializeAws_json1_0DescribeLimitsCommand(t,n)}};dc.DescribeLimitsCommand=FA});var Aa=p(uc=>{"use strict";Object.defineProperty(uc,"__esModule",{value:!0});uc.DescribeTableCommand=void 0;var i8=B(),s8=q(),BA=H(),GA=J(),$A=class extends s8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(i8.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeTableCommand",inputFilterSensitiveLog:BA.DescribeTableInput.filterSensitiveLog,outputFilterSensitiveLog:BA.DescribeTableOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return GA.serializeAws_json1_0DescribeTableCommand(t,n)}deserialize(t,n){return GA.deserializeAws_json1_0DescribeTableCommand(t,n)}};uc.DescribeTableCommand=$A});var Oh=p(mc=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});mc.DescribeTableReplicaAutoScalingCommand=void 0;var a8=B(),o8=q(),KA=H(),VA=J(),HA=class extends o8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(a8.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeTableReplicaAutoScalingCommand",inputFilterSensitiveLog:KA.DescribeTableReplicaAutoScalingInput.filterSensitiveLog,outputFilterSensitiveLog:KA.DescribeTableReplicaAutoScalingOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return VA.serializeAws_json1_0DescribeTableReplicaAutoScalingCommand(t,n)}deserialize(t,n){return VA.deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand(t,n)}};mc.DescribeTableReplicaAutoScalingCommand=HA});var Lh=p(fc=>{"use strict";Object.defineProperty(fc,"__esModule",{value:!0});fc.DescribeTimeToLiveCommand=void 0;var l8=B(),c8=q(),WA=H(),YA=J(),JA=class extends c8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(l8.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeTimeToLiveCommand",inputFilterSensitiveLog:WA.DescribeTimeToLiveInput.filterSensitiveLog,outputFilterSensitiveLog:WA.DescribeTimeToLiveOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return YA.serializeAws_json1_0DescribeTimeToLiveCommand(t,n)}deserialize(t,n){return YA.deserializeAws_json1_0DescribeTimeToLiveCommand(t,n)}};fc.DescribeTimeToLiveCommand=JA});var qh=p(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});pc.DisableKinesisStreamingDestinationCommand=void 0;var d8=B(),u8=q(),QA=H(),XA=J(),ZA=class extends u8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(d8.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DisableKinesisStreamingDestinationCommand",inputFilterSensitiveLog:QA.KinesisStreamingDestinationInput.filterSensitiveLog,outputFilterSensitiveLog:QA.KinesisStreamingDestinationOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return XA.serializeAws_json1_0DisableKinesisStreamingDestinationCommand(t,n)}deserialize(t,n){return XA.deserializeAws_json1_0DisableKinesisStreamingDestinationCommand(t,n)}};pc.DisableKinesisStreamingDestinationCommand=ZA});var Mh=p(_c=>{"use strict";Object.defineProperty(_c,"__esModule",{value:!0});_c.EnableKinesisStreamingDestinationCommand=void 0;var m8=B(),f8=q(),e0=H(),t0=J(),n0=class extends f8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(m8.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"EnableKinesisStreamingDestinationCommand",inputFilterSensitiveLog:e0.KinesisStreamingDestinationInput.filterSensitiveLog,outputFilterSensitiveLog:e0.KinesisStreamingDestinationOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return t0.serializeAws_json1_0EnableKinesisStreamingDestinationCommand(t,n)}deserialize(t,n){return t0.deserializeAws_json1_0EnableKinesisStreamingDestinationCommand(t,n)}};_c.EnableKinesisStreamingDestinationCommand=n0});var kh=p(hc=>{"use strict";Object.defineProperty(hc,"__esModule",{value:!0});hc.ExecuteStatementCommand=void 0;var p8=B(),_8=q(),r0=H(),i0=J(),s0=class extends _8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(p8.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"ExecuteStatementCommand",inputFilterSensitiveLog:r0.ExecuteStatementInput.filterSensitiveLog,outputFilterSensitiveLog:r0.ExecuteStatementOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return i0.serializeAws_json1_0ExecuteStatementCommand(t,n)}deserialize(t,n){return i0.deserializeAws_json1_0ExecuteStatementCommand(t,n)}};hc.ExecuteStatementCommand=s0});var jh=p(gc=>{"use strict";Object.defineProperty(gc,"__esModule",{value:!0});gc.ExecuteTransactionCommand=void 0;var h8=B(),g8=q(),a0=H(),o0=J(),l0=class extends g8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(h8.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"ExecuteTransactionCommand",inputFilterSensitiveLog:a0.ExecuteTransactionInput.filterSensitiveLog,outputFilterSensitiveLog:a0.ExecuteTransactionOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return o0.serializeAws_json1_0ExecuteTransactionCommand(t,n)}deserialize(t,n){return o0.deserializeAws_json1_0ExecuteTransactionCommand(t,n)}};gc.ExecuteTransactionCommand=l0});var zh=p(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});yc.ExportTableToPointInTimeCommand=void 0;var y8=B(),v8=q(),c0=H(),d0=J(),u0=class extends v8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(y8.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"ExportTableToPointInTimeCommand",inputFilterSensitiveLog:c0.ExportTableToPointInTimeInput.filterSensitiveLog,outputFilterSensitiveLog:c0.ExportTableToPointInTimeOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return d0.serializeAws_json1_0ExportTableToPointInTimeCommand(t,n)}deserialize(t,n){return d0.deserializeAws_json1_0ExportTableToPointInTimeCommand(t,n)}};yc.ExportTableToPointInTimeCommand=u0});var Uh=p(vc=>{"use strict";Object.defineProperty(vc,"__esModule",{value:!0});vc.GetItemCommand=void 0;var b8=B(),S8=q(),m0=H(),f0=J(),p0=class extends S8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(b8.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"GetItemCommand",inputFilterSensitiveLog:m0.GetItemInput.filterSensitiveLog,outputFilterSensitiveLog:m0.GetItemOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return f0.serializeAws_json1_0GetItemCommand(t,n)}deserialize(t,n){return f0.deserializeAws_json1_0GetItemCommand(t,n)}};vc.GetItemCommand=p0});var Fh=p(bc=>{"use strict";Object.defineProperty(bc,"__esModule",{value:!0});bc.ListBackupsCommand=void 0;var w8=B(),E8=q(),_0=H(),h0=J(),g0=class extends E8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(w8.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"ListBackupsCommand",inputFilterSensitiveLog:_0.ListBackupsInput.filterSensitiveLog,outputFilterSensitiveLog:_0.ListBackupsOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return h0.serializeAws_json1_0ListBackupsCommand(t,n)}deserialize(t,n){return h0.deserializeAws_json1_0ListBackupsCommand(t,n)}};bc.ListBackupsCommand=g0});var wc=p(Sc=>{"use strict";Object.defineProperty(Sc,"__esModule",{value:!0});Sc.ListContributorInsightsCommand=void 0;var A8=B(),C8=q(),y0=H(),v0=J(),b0=class extends C8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(A8.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"ListContributorInsightsCommand",inputFilterSensitiveLog:y0.ListContributorInsightsInput.filterSensitiveLog,outputFilterSensitiveLog:y0.ListContributorInsightsOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return v0.serializeAws_json1_0ListContributorInsightsCommand(t,n)}deserialize(t,n){return v0.deserializeAws_json1_0ListContributorInsightsCommand(t,n)}};Sc.ListContributorInsightsCommand=b0});var Ac=p(Ec=>{"use strict";Object.defineProperty(Ec,"__esModule",{value:!0});Ec.ListExportsCommand=void 0;var T8=B(),x8=q(),S0=H(),w0=J(),E0=class extends x8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(T8.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"ListExportsCommand",inputFilterSensitiveLog:S0.ListExportsInput.filterSensitiveLog,outputFilterSensitiveLog:S0.ListExportsOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return w0.serializeAws_json1_0ListExportsCommand(t,n)}deserialize(t,n){return w0.deserializeAws_json1_0ListExportsCommand(t,n)}};Ec.ListExportsCommand=E0});var Bh=p(Cc=>{"use strict";Object.defineProperty(Cc,"__esModule",{value:!0});Cc.ListGlobalTablesCommand=void 0;var I8=B(),R8=q(),A0=H(),C0=J(),T0=class extends R8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(I8.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"ListGlobalTablesCommand",inputFilterSensitiveLog:A0.ListGlobalTablesInput.filterSensitiveLog,outputFilterSensitiveLog:A0.ListGlobalTablesOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return C0.serializeAws_json1_0ListGlobalTablesCommand(t,n)}deserialize(t,n){return C0.deserializeAws_json1_0ListGlobalTablesCommand(t,n)}};Cc.ListGlobalTablesCommand=T0});var xc=p(Tc=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0});Tc.ListTablesCommand=void 0;var N8=B(),P8=q(),x0=H(),I0=J(),R0=class extends P8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(N8.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"ListTablesCommand",inputFilterSensitiveLog:x0.ListTablesInput.filterSensitiveLog,outputFilterSensitiveLog:x0.ListTablesOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return I0.serializeAws_json1_0ListTablesCommand(t,n)}deserialize(t,n){return I0.deserializeAws_json1_0ListTablesCommand(t,n)}};Tc.ListTablesCommand=R0});var Gh=p(Ic=>{"use strict";Object.defineProperty(Ic,"__esModule",{value:!0});Ic.ListTagsOfResourceCommand=void 0;var D8=B(),O8=q(),N0=H(),P0=J(),D0=class extends O8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(D8.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"ListTagsOfResourceCommand",inputFilterSensitiveLog:N0.ListTagsOfResourceInput.filterSensitiveLog,outputFilterSensitiveLog:N0.ListTagsOfResourceOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return P0.serializeAws_json1_0ListTagsOfResourceCommand(t,n)}deserialize(t,n){return P0.deserializeAws_json1_0ListTagsOfResourceCommand(t,n)}};Ic.ListTagsOfResourceCommand=D0});var $h=p(Rc=>{"use strict";Object.defineProperty(Rc,"__esModule",{value:!0});Rc.PutItemCommand=void 0;var L8=B(),q8=q(),O0=H(),L0=J(),q0=class extends q8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(L8.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"PutItemCommand",inputFilterSensitiveLog:O0.PutItemInput.filterSensitiveLog,outputFilterSensitiveLog:O0.PutItemOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return L0.serializeAws_json1_0PutItemCommand(t,n)}deserialize(t,n){return L0.deserializeAws_json1_0PutItemCommand(t,n)}};Rc.PutItemCommand=q0});var Pc=p(Nc=>{"use strict";Object.defineProperty(Nc,"__esModule",{value:!0});Nc.QueryCommand=void 0;var M8=B(),k8=q(),M0=H(),k0=J(),j0=class extends k8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(M8.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"QueryCommand",inputFilterSensitiveLog:M0.QueryInput.filterSensitiveLog,outputFilterSensitiveLog:M0.QueryOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return k0.serializeAws_json1_0QueryCommand(t,n)}deserialize(t,n){return k0.deserializeAws_json1_0QueryCommand(t,n)}};Nc.QueryCommand=j0});var Kh=p(Dc=>{"use strict";Object.defineProperty(Dc,"__esModule",{value:!0});Dc.RestoreTableFromBackupCommand=void 0;var j8=B(),z8=q(),z0=H(),U0=J(),F0=class extends z8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(j8.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"RestoreTableFromBackupCommand",inputFilterSensitiveLog:z0.RestoreTableFromBackupInput.filterSensitiveLog,outputFilterSensitiveLog:z0.RestoreTableFromBackupOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return U0.serializeAws_json1_0RestoreTableFromBackupCommand(t,n)}deserialize(t,n){return U0.deserializeAws_json1_0RestoreTableFromBackupCommand(t,n)}};Dc.RestoreTableFromBackupCommand=F0});var Vh=p(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});Oc.RestoreTableToPointInTimeCommand=void 0;var U8=B(),F8=q(),B0=H(),G0=J(),$0=class extends F8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(U8.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"RestoreTableToPointInTimeCommand",inputFilterSensitiveLog:B0.RestoreTableToPointInTimeInput.filterSensitiveLog,outputFilterSensitiveLog:B0.RestoreTableToPointInTimeOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return G0.serializeAws_json1_0RestoreTableToPointInTimeCommand(t,n)}deserialize(t,n){return G0.deserializeAws_json1_0RestoreTableToPointInTimeCommand(t,n)}};Oc.RestoreTableToPointInTimeCommand=$0});var qc=p(Lc=>{"use strict";Object.defineProperty(Lc,"__esModule",{value:!0});Lc.ScanCommand=void 0;var B8=B(),G8=q(),K0=H(),V0=J(),H0=class extends G8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(B8.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"ScanCommand",inputFilterSensitiveLog:K0.ScanInput.filterSensitiveLog,outputFilterSensitiveLog:K0.ScanOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return V0.serializeAws_json1_0ScanCommand(t,n)}deserialize(t,n){return V0.deserializeAws_json1_0ScanCommand(t,n)}};Lc.ScanCommand=H0});var Hh=p(Mc=>{"use strict";Object.defineProperty(Mc,"__esModule",{value:!0});Mc.TagResourceCommand=void 0;var $8=B(),K8=q(),V8=H(),W0=J(),Y0=class extends K8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use($8.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"TagResourceCommand",inputFilterSensitiveLog:V8.TagResourceInput.filterSensitiveLog,outputFilterSensitiveLog:u=>u},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return W0.serializeAws_json1_0TagResourceCommand(t,n)}deserialize(t,n){return W0.deserializeAws_json1_0TagResourceCommand(t,n)}};Mc.TagResourceCommand=Y0});var Wh=p(kc=>{"use strict";Object.defineProperty(kc,"__esModule",{value:!0});kc.TransactGetItemsCommand=void 0;var H8=B(),W8=q(),J0=H(),Q0=J(),X0=class extends W8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(H8.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"TransactGetItemsCommand",inputFilterSensitiveLog:J0.TransactGetItemsInput.filterSensitiveLog,outputFilterSensitiveLog:J0.TransactGetItemsOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return Q0.serializeAws_json1_0TransactGetItemsCommand(t,n)}deserialize(t,n){return Q0.deserializeAws_json1_0TransactGetItemsCommand(t,n)}};kc.TransactGetItemsCommand=X0});var Yh=p(jc=>{"use strict";Object.defineProperty(jc,"__esModule",{value:!0});jc.TransactWriteItemsCommand=void 0;var Y8=B(),J8=q(),Z0=H(),eC=J(),tC=class extends J8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(Y8.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"TransactWriteItemsCommand",inputFilterSensitiveLog:Z0.TransactWriteItemsInput.filterSensitiveLog,outputFilterSensitiveLog:Z0.TransactWriteItemsOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return eC.serializeAws_json1_0TransactWriteItemsCommand(t,n)}deserialize(t,n){return eC.deserializeAws_json1_0TransactWriteItemsCommand(t,n)}};jc.TransactWriteItemsCommand=tC});var Jh=p(zc=>{"use strict";Object.defineProperty(zc,"__esModule",{value:!0});zc.UntagResourceCommand=void 0;var Q8=B(),X8=q(),Z8=H(),nC=J(),rC=class extends X8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(Q8.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"UntagResourceCommand",inputFilterSensitiveLog:Z8.UntagResourceInput.filterSensitiveLog,outputFilterSensitiveLog:u=>u},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return nC.serializeAws_json1_0UntagResourceCommand(t,n)}deserialize(t,n){return nC.deserializeAws_json1_0UntagResourceCommand(t,n)}};zc.UntagResourceCommand=rC});var Qh=p(Uc=>{"use strict";Object.defineProperty(Uc,"__esModule",{value:!0});Uc.UpdateContinuousBackupsCommand=void 0;var e5=B(),t5=q(),iC=H(),sC=J(),aC=class extends t5.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(e5.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateContinuousBackupsCommand",inputFilterSensitiveLog:iC.UpdateContinuousBackupsInput.filterSensitiveLog,outputFilterSensitiveLog:iC.UpdateContinuousBackupsOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return sC.serializeAws_json1_0UpdateContinuousBackupsCommand(t,n)}deserialize(t,n){return sC.deserializeAws_json1_0UpdateContinuousBackupsCommand(t,n)}};Uc.UpdateContinuousBackupsCommand=aC});var Xh=p(Fc=>{"use strict";Object.defineProperty(Fc,"__esModule",{value:!0});Fc.UpdateContributorInsightsCommand=void 0;var n5=B(),r5=q(),oC=H(),lC=J(),cC=class extends r5.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(n5.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateContributorInsightsCommand",inputFilterSensitiveLog:oC.UpdateContributorInsightsInput.filterSensitiveLog,outputFilterSensitiveLog:oC.UpdateContributorInsightsOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return lC.serializeAws_json1_0UpdateContributorInsightsCommand(t,n)}deserialize(t,n){return lC.deserializeAws_json1_0UpdateContributorInsightsCommand(t,n)}};Fc.UpdateContributorInsightsCommand=cC});var Zh=p(Bc=>{"use strict";Object.defineProperty(Bc,"__esModule",{value:!0});Bc.UpdateGlobalTableCommand=void 0;var i5=B(),s5=q(),dC=H(),uC=J(),mC=class extends s5.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(i5.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateGlobalTableCommand",inputFilterSensitiveLog:dC.UpdateGlobalTableInput.filterSensitiveLog,outputFilterSensitiveLog:dC.UpdateGlobalTableOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return uC.serializeAws_json1_0UpdateGlobalTableCommand(t,n)}deserialize(t,n){return uC.deserializeAws_json1_0UpdateGlobalTableCommand(t,n)}};Bc.UpdateGlobalTableCommand=mC});var eg=p(Gc=>{"use strict";Object.defineProperty(Gc,"__esModule",{value:!0});Gc.UpdateGlobalTableSettingsCommand=void 0;var a5=B(),o5=q(),fC=H(),pC=J(),_C=class extends o5.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(a5.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateGlobalTableSettingsCommand",inputFilterSensitiveLog:fC.UpdateGlobalTableSettingsInput.filterSensitiveLog,outputFilterSensitiveLog:fC.UpdateGlobalTableSettingsOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return pC.serializeAws_json1_0UpdateGlobalTableSettingsCommand(t,n)}deserialize(t,n){return pC.deserializeAws_json1_0UpdateGlobalTableSettingsCommand(t,n)}};Gc.UpdateGlobalTableSettingsCommand=_C});var tg=p($c=>{"use strict";Object.defineProperty($c,"__esModule",{value:!0});$c.UpdateItemCommand=void 0;var l5=B(),c5=q(),hC=H(),gC=J(),yC=class extends c5.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(l5.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateItemCommand",inputFilterSensitiveLog:hC.UpdateItemInput.filterSensitiveLog,outputFilterSensitiveLog:hC.UpdateItemOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return gC.serializeAws_json1_0UpdateItemCommand(t,n)}deserialize(t,n){return gC.deserializeAws_json1_0UpdateItemCommand(t,n)}};$c.UpdateItemCommand=yC});var ng=p(Kc=>{"use strict";Object.defineProperty(Kc,"__esModule",{value:!0});Kc.UpdateTableCommand=void 0;var d5=B(),u5=q(),vC=H(),bC=J(),SC=class extends u5.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(d5.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateTableCommand",inputFilterSensitiveLog:vC.UpdateTableInput.filterSensitiveLog,outputFilterSensitiveLog:vC.UpdateTableOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return bC.serializeAws_json1_0UpdateTableCommand(t,n)}deserialize(t,n){return bC.deserializeAws_json1_0UpdateTableCommand(t,n)}};Kc.UpdateTableCommand=SC});var rg=p(Vc=>{"use strict";Object.defineProperty(Vc,"__esModule",{value:!0});Vc.UpdateTableReplicaAutoScalingCommand=void 0;var m5=B(),f5=q(),wC=H(),EC=J(),AC=class extends f5.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(m5.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateTableReplicaAutoScalingCommand",inputFilterSensitiveLog:wC.UpdateTableReplicaAutoScalingInput.filterSensitiveLog,outputFilterSensitiveLog:wC.UpdateTableReplicaAutoScalingOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return EC.serializeAws_json1_0UpdateTableReplicaAutoScalingCommand(t,n)}deserialize(t,n){return EC.deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand(t,n)}};Vc.UpdateTableReplicaAutoScalingCommand=AC});var ig=p(Hc=>{"use strict";Object.defineProperty(Hc,"__esModule",{value:!0});Hc.UpdateTimeToLiveCommand=void 0;var p5=B(),_5=q(),CC=H(),TC=J(),xC=class extends _5.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(p5.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateTimeToLiveCommand",inputFilterSensitiveLog:CC.UpdateTimeToLiveInput.filterSensitiveLog,outputFilterSensitiveLog:CC.UpdateTimeToLiveOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return TC.serializeAws_json1_0UpdateTimeToLiveCommand(t,n)}deserialize(t,n){return TC.deserializeAws_json1_0UpdateTimeToLiveCommand(t,n)}};Hc.UpdateTimeToLiveCommand=xC});var IC=p(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});_i.booleanSelector=_i.SelectorType=void 0;var h5;(function(e){e.ENV="env",e.CONFIG="shared config entry"})(h5=_i.SelectorType||(_i.SelectorType={}));var g5=(e,t,n)=>{if(t in e){if(e[t]==="true")return!0;if(e[t]==="false")return!1;throw new Error(`Cannot load ${n} "${t}". Expected "true" or "false", got ${e[t]}.`)}};_i.booleanSelector=g5});var ag=p(sg=>{"use strict";Object.defineProperty(sg,"__esModule",{value:!0});var y5=se();y5.__exportStar(IC(),sg)});var RC=p(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS=Jt.DEFAULT_USE_DUALSTACK_ENDPOINT=Jt.CONFIG_USE_DUALSTACK_ENDPOINT=Jt.ENV_USE_DUALSTACK_ENDPOINT=void 0;var Wc=ag();Jt.ENV_USE_DUALSTACK_ENDPOINT="AWS_USE_DUALSTACK_ENDPOINT";Jt.CONFIG_USE_DUALSTACK_ENDPOINT="use_dualstack_endpoint";Jt.DEFAULT_USE_DUALSTACK_ENDPOINT=!1;Jt.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>Wc.booleanSelector(e,Jt.ENV_USE_DUALSTACK_ENDPOINT,Wc.SelectorType.ENV),configFileSelector:e=>Wc.booleanSelector(e,Jt.CONFIG_USE_DUALSTACK_ENDPOINT,Wc.SelectorType.CONFIG),default:!1}});var NC=p(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS=Qt.DEFAULT_USE_FIPS_ENDPOINT=Qt.CONFIG_USE_FIPS_ENDPOINT=Qt.ENV_USE_FIPS_ENDPOINT=void 0;var Yc=ag();Qt.ENV_USE_FIPS_ENDPOINT="AWS_USE_FIPS_ENDPOINT";Qt.CONFIG_USE_FIPS_ENDPOINT="use_fips_endpoint";Qt.DEFAULT_USE_FIPS_ENDPOINT=!1;Qt.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>Yc.booleanSelector(e,Qt.ENV_USE_FIPS_ENDPOINT,Yc.SelectorType.ENV),configFileSelector:e=>Yc.booleanSelector(e,Qt.CONFIG_USE_FIPS_ENDPOINT,Yc.SelectorType.CONFIG),default:!1}});var og=p(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});Jc.normalizeBoolean=void 0;var v5=e=>{if(typeof e=="boolean"){let t=Promise.resolve(e);return()=>t}return e};Jc.normalizeBoolean=v5});var lg=p(Qc=>{"use strict";Object.defineProperty(Qc,"__esModule",{value:!0});Qc.normalizeEndpoint=void 0;var b5=({endpoint:e,urlParser:t})=>{if(typeof e=="string"){let n=Promise.resolve(t(e));return()=>n}else if(typeof e=="object"){let n=Promise.resolve(e);return()=>n}return e};Qc.normalizeEndpoint=b5});var PC=p(Xc=>{"use strict";Object.defineProperty(Xc,"__esModule",{value:!0});Xc.resolveCustomEndpointsConfig=void 0;var S5=og(),w5=lg(),E5=e=>{var t;return f(o({},e),{tls:(t=e.tls)!==null&&t!==void 0?t:!0,endpoint:w5.normalizeEndpoint(e),isCustomEndpoint:!0,useDualstackEndpoint:S5.normalizeBoolean(e.useDualstackEndpoint)})};Xc.resolveCustomEndpointsConfig=E5});var DC=p(Zc=>{"use strict";Object.defineProperty(Zc,"__esModule",{value:!0});Zc.getEndpointFromRegion=void 0;var A5=async e=>{var t;let{tls:n=!0}=e,r=await e.region();if(!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(r))throw new Error("Invalid region in client config");let s=await e.useDualstackEndpoint(),a=await e.useFipsEndpoint(),{hostname:l}=(t=await e.regionInfoProvider(r,{useDualstackEndpoint:s,useFipsEndpoint:a}))!==null&&t!==void 0?t:{};if(!l)throw new Error("Cannot resolve hostname from client config");return e.urlParser(`${n?"https:":"http:"}//${l}`)};Zc.getEndpointFromRegion=A5});var OC=p(ed=>{"use strict";Object.defineProperty(ed,"__esModule",{value:!0});ed.resolveEndpointsConfig=void 0;var C5=DC(),T5=og(),x5=lg(),I5=e=>{var t;let n=T5.normalizeBoolean(e.useDualstackEndpoint),{endpoint:r,useFipsEndpoint:i}=e;return f(o({},e),{tls:(t=e.tls)!==null&&t!==void 0?t:!0,endpoint:r?x5.normalizeEndpoint(f(o({},e),{endpoint:r})):()=>C5.getEndpointFromRegion(f(o({},e),{useDualstackEndpoint:n,useFipsEndpoint:i})),isCustomEndpoint:!!r,useDualstackEndpoint:n})};ed.resolveEndpointsConfig=I5});var LC=p(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});var td=se();td.__exportStar(RC(),ms);td.__exportStar(NC(),ms);td.__exportStar(PC(),ms);td.__exportStar(OC(),ms)});var qC=p(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.NODE_REGION_CONFIG_FILE_OPTIONS=Xt.NODE_REGION_CONFIG_OPTIONS=Xt.REGION_INI_NAME=Xt.REGION_ENV_NAME=void 0;Xt.REGION_ENV_NAME="AWS_REGION";Xt.REGION_INI_NAME="region";Xt.NODE_REGION_CONFIG_OPTIONS={environmentVariableSelector:e=>e[Xt.REGION_ENV_NAME],configFileSelector:e=>e[Xt.REGION_INI_NAME],default:()=>{throw new Error("Region is missing")}};Xt.NODE_REGION_CONFIG_FILE_OPTIONS={preferredFile:"credentials"}});var cg=p(nd=>{"use strict";Object.defineProperty(nd,"__esModule",{value:!0});nd.isFipsRegion=void 0;var R5=e=>typeof e=="string"&&(e.startsWith("fips-")||e.endsWith("-fips"));nd.isFipsRegion=R5});var MC=p(rd=>{"use strict";Object.defineProperty(rd,"__esModule",{value:!0});rd.getRealRegion=void 0;var N5=cg(),P5=e=>N5.isFipsRegion(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e;rd.getRealRegion=P5});var jC=p(id=>{"use strict";Object.defineProperty(id,"__esModule",{value:!0});id.resolveRegionConfig=void 0;var kC=MC(),D5=cg(),O5=e=>{let{region:t,useFipsEndpoint:n}=e;if(!t)throw new Error("Region is missing");return f(o({},e),{region:async()=>{if(typeof t=="string")return kC.getRealRegion(t);let r=await t();return kC.getRealRegion(r)},useFipsEndpoint:async()=>{let r=typeof t=="string"?t:await t();return D5.isFipsRegion(r)?!0:typeof n=="boolean"?Promise.resolve(n):n()}})};id.resolveRegionConfig=O5});var UC=p(sd=>{"use strict";Object.defineProperty(sd,"__esModule",{value:!0});var zC=se();zC.__exportStar(qC(),sd);zC.__exportStar(jC(),sd)});var BC=p(FC=>{"use strict";Object.defineProperty(FC,"__esModule",{value:!0})});var $C=p(GC=>{"use strict";Object.defineProperty(GC,"__esModule",{value:!0})});var KC=p(ad=>{"use strict";Object.defineProperty(ad,"__esModule",{value:!0});ad.getHostnameFromVariants=void 0;var L5=(e=[],{useFipsEndpoint:t,useDualstackEndpoint:n})=>{var r;return(r=e.find(({tags:i})=>t===i.includes("fips")&&n===i.includes("dualstack")))===null||r===void 0?void 0:r.hostname};ad.getHostnameFromVariants=L5});var VC=p(od=>{"use strict";Object.defineProperty(od,"__esModule",{value:!0});od.getResolvedHostname=void 0;var q5=(e,{regionHostname:t,partitionHostname:n})=>t||(n?n.replace("{region}",e):void 0);od.getResolvedHostname=q5});var HC=p(ld=>{"use strict";Object.defineProperty(ld,"__esModule",{value:!0});ld.getResolvedPartition=void 0;var M5=(e,{partitionHash:t})=>{var n;return(n=Object.keys(t||{}).find(r=>t[r].regions.includes(e)))!==null&&n!==void 0?n:"aws"};ld.getResolvedPartition=M5});var WC=p(cd=>{"use strict";Object.defineProperty(cd,"__esModule",{value:!0});cd.getResolvedSigningRegion=void 0;var k5=(e,{signingRegion:t,regionRegex:n,useFipsEndpoint:r})=>{if(t)return t;if(r){let i=n.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\."),s=e.match(i);if(s)return s[0].slice(1,-1)}};cd.getResolvedSigningRegion=k5});var JC=p(dd=>{"use strict";Object.defineProperty(dd,"__esModule",{value:!0});dd.getRegionInfo=void 0;var YC=KC(),j5=VC(),z5=HC(),U5=WC(),F5=(e,{useFipsEndpoint:t=!1,useDualstackEndpoint:n=!1,signingService:r,regionHash:i,partitionHash:s})=>{var a,l,c,d,u,_;let g=z5.getResolvedPartition(e,{partitionHash:s}),b=e in i?e:(l=(a=s[g])===null||a===void 0?void 0:a.endpoint)!==null&&l!==void 0?l:e,S={useFipsEndpoint:t,useDualstackEndpoint:n},v=YC.getHostnameFromVariants((c=i[b])===null||c===void 0?void 0:c.variants,S),I=YC.getHostnameFromVariants((d=s[g])===null||d===void 0?void 0:d.variants,S),L=j5.getResolvedHostname(b,{regionHostname:v,partitionHostname:I});if(L===void 0)throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:b,useFipsEndpoint:t,useDualstackEndpoint:n}}`);let x=U5.getResolvedSigningRegion(L,{signingRegion:(u=i[b])===null||u===void 0?void 0:u.signingRegion,regionRegex:s[g].regionRegex,useFipsEndpoint:t});return o(o({partition:g,signingService:r,hostname:L},x&&{signingRegion:x}),((_=i[b])===null||_===void 0?void 0:_.signingService)&&{signingService:i[b].signingService})};dd.getRegionInfo=F5});var QC=p(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});var dg=se();dg.__exportStar(BC(),Ca);dg.__exportStar($C(),Ca);dg.__exportStar(JC(),Ca)});var un=p(Ta=>{"use strict";Object.defineProperty(Ta,"__esModule",{value:!0});var ug=se();ug.__exportStar(LC(),Ta);ug.__exportStar(UC(),Ta);ug.__exportStar(QC(),Ta)});var ud=p(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.getContentLengthPlugin=rr.contentLengthMiddlewareOptions=rr.contentLengthMiddleware=void 0;var B5=jt(),XC="content-length";function ZC(e){return t=>async n=>{let r=n.request;if(B5.HttpRequest.isInstance(r)){let{body:i,headers:s}=r;if(i&&Object.keys(s).map(a=>a.toLowerCase()).indexOf(XC)===-1){let a=e(i);a!==void 0&&(r.headers=f(o({},r.headers),{[XC]:String(a)}))}}return t(f(o({},n),{request:r}))}}rr.contentLengthMiddleware=ZC;rr.contentLengthMiddlewareOptions={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0};var G5=e=>({applyToStack:t=>{t.add(ZC(e.bodyLengthChecker),rr.contentLengthMiddlewareOptions)}});rr.getContentLengthPlugin=G5});var nT=p(md=>{"use strict";Object.defineProperty(md,"__esModule",{value:!0});md.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS=void 0;var eT=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"],mg="endpoint_discovery_enabled",tT=e=>["false","0"].indexOf(e)>=0;md.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS={environmentVariableSelector:e=>{for(let t=0;t<eT.length;t++){let n=eT[t];if(n in e){let r=e[n];if(r==="")throw Error(`Environment variable ${n} can't be empty of undefined, got "${r}"`);return!tT(r)}}},configFileSelector:e=>{if(mg in e){let t=e[mg];if(t===void 0)throw Error(`Shared config entry ${mg} can't be undefined, got "${t}"`);return!tT(t)}},default:void 0}});var rT=p(fd=>{"use strict";Object.defineProperty(fd,"__esModule",{value:!0});fd.getCacheKey=void 0;var $5=async(e,t,n)=>{let{accessKeyId:r}=await t.credentials(),{identifiers:i}=n;return JSON.stringify(o(o({},r&&{accessKeyId:r}),i&&{commandName:e,identifiers:Object.entries(i).sort().reduce((s,[a,l])=>f(o({},s),{[a]:l}),{})}))};fd.getCacheKey=$5});var iT=p(pd=>{"use strict";Object.defineProperty(pd,"__esModule",{value:!0});pd.updateDiscoveredEndpointInCache=void 0;var ir={},K5=async(e,t)=>new Promise((n,r)=>{let{endpointCache:i}=e,{cacheKey:s,commandName:a,identifiers:l}=t,c=i.get(s);if(c&&c.length===1&&c[0].Address==="")t.isDiscoveredEndpointRequired?(ir[s]||(ir[s]=[]),ir[s].push({resolve:n,reject:r})):n();else if(c&&c.length>0)n();else{let d=[{Address:"",CachePeriodInMinutes:1}];i.set(s,d);let u=new t.endpointDiscoveryCommandCtor({Operation:a.substr(0,a.length-7),Identifiers:l});u.resolveMiddleware(t.clientStack,e,t.options)(u).then(g=>{i.set(s,g.output.Endpoints),ir[s]&&(ir[s].forEach(({resolve:b})=>{b()}),delete ir[s]),n()}).catch(g=>{var b;(g.name==="InvalidEndpointException"||((b=g.$metadata)===null||b===void 0?void 0:b.httpStatusCode)===421)&&i.delete(s);let S=Object.assign(new Error("The operation to discover endpoint failed. Please retry, or provide a custom endpoint and disable endpoint discovery to proceed."),{reason:g});ir[s]&&(ir[s].forEach(({reject:v})=>{v(S)}),delete ir[s]),t.isDiscoveredEndpointRequired?r(S):(i.set(s,d),n())})}});pd.updateDiscoveredEndpointInCache=K5});var aT=p(_d=>{"use strict";Object.defineProperty(_d,"__esModule",{value:!0});_d.endpointDiscoveryMiddleware=void 0;var V5=jt(),H5=rT(),sT=iT(),W5=(e,t)=>(n,r)=>async i=>{if(e.isCustomEndpoint){if(e.isClientEndpointDiscoveryEnabled)throw new Error("Custom endpoint is supplied; endpointDiscoveryEnabled must not be true.");return n(i)}let{endpointDiscoveryCommandCtor:s}=e,{isDiscoveredEndpointRequired:a,identifiers:l}=t,{clientName:c,commandName:d}=r,u=await e.endpointDiscoveryEnabled(),_=await H5.getCacheKey(d,e,{identifiers:l});if(a){if(u===!1)throw new Error(`Endpoint Discovery is disabled but ${d} on ${c} requires it. Please check your configurations.`);await sT.updateDiscoveredEndpointInCache(e,f(o({},t),{commandName:d,cacheKey:_,endpointDiscoveryCommandCtor:s}))}else u&&sT.updateDiscoveredEndpointInCache(e,f(o({},t),{commandName:d,cacheKey:_,endpointDiscoveryCommandCtor:s}));let{request:g}=i;if(_&&V5.HttpRequest.isInstance(g)){let b=e.endpointCache.getEndpoint(_);b&&(g.hostname=b)}return n(i)};_d.endpointDiscoveryMiddleware=W5});var oT=p(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.getEndpointDiscoveryOptionalPlugin=Ut.getEndpointDiscoveryRequiredPlugin=Ut.getEndpointDiscoveryPlugin=Ut.endpointDiscoveryMiddlewareOptions=void 0;var fg=aT();Ut.endpointDiscoveryMiddlewareOptions={name:"endpointDiscoveryMiddleware",step:"build",tags:["ENDPOINT_DISCOVERY"],override:!0};var Y5=(e,t)=>({applyToStack:n=>{n.add(fg.endpointDiscoveryMiddleware(e,t),Ut.endpointDiscoveryMiddlewareOptions)}});Ut.getEndpointDiscoveryPlugin=Y5;var J5=(e,t)=>({applyToStack:n=>{n.add(fg.endpointDiscoveryMiddleware(e,f(o({},t),{isDiscoveredEndpointRequired:!0})),Ut.endpointDiscoveryMiddlewareOptions)}});Ut.getEndpointDiscoveryRequiredPlugin=J5;var Q5=(e,t)=>({applyToStack:n=>{n.add(fg.endpointDiscoveryMiddleware(e,f(o({},t),{isDiscoveredEndpointRequired:!1})),Ut.endpointDiscoveryMiddlewareOptions)}});Ut.getEndpointDiscoveryOptionalPlugin=Q5});var cT=p(lT=>{"use strict";Object.defineProperty(lT,"__esModule",{value:!0})});var uT=p((Rye,dT)=>{function sr(e){Object.defineProperty(this,"_next",{writable:!1,enumerable:!1,value:e}),this.done=!1}sr.prototype.next=function(){if(this.done)return{done:!0};var e=this._next();return e.done&&(this.done=!0),e};typeof Symbol!="undefined"&&(sr.prototype[Symbol.iterator]=function(){return this});sr.of=function(){var e=arguments,t=e.length,n=0;return new sr(function(){return n>=t?{done:!0}:{done:!1,value:e[n++]}})};sr.empty=function(){var e=new sr(null);return e.done=!0,e};sr.is=function(e){return e instanceof sr?!0:typeof e=="object"&&e!==null&&typeof e.next=="function"};dT.exports=sr});var pg=p((Nye,_T)=>{var mT=typeof ArrayBuffer!="undefined",fT=typeof Symbol!="undefined";function pT(e,t){var n,r,i,s,a;if(!e)throw new Error("obliterator/forEach: invalid iterable.");if(typeof t!="function")throw new Error("obliterator/forEach: expecting a callback.");if(Array.isArray(e)||mT&&ArrayBuffer.isView(e)||typeof e=="string"||e.toString()==="[object Arguments]"){for(i=0,s=e.length;i<s;i++)t(e[i],i);return}if(typeof e.forEach=="function"){e.forEach(t);return}if(fT&&Symbol.iterator in e&&typeof e.next!="function"&&(e=e[Symbol.iterator]()),typeof e.next=="function"){for(n=e,i=0;a=n.next(),a.done!==!0;)t(a.value,i),i++;return}for(r in e)e.hasOwnProperty(r)&&t(e[r],r)}pT.forEachWithNullKeys=function(e,t){var n,r,i,s,a;if(!e)throw new Error("obliterator/forEachWithNullKeys: invalid iterable.");if(typeof t!="function")throw new Error("obliterator/forEachWithNullKeys: expecting a callback.");if(Array.isArray(e)||mT&&ArrayBuffer.isView(e)||typeof e=="string"||e.toString()==="[object Arguments]"){for(i=0,s=e.length;i<s;i++)t(e[i],null);return}if(e instanceof Set){e.forEach(function(l){t(l,null)});return}if(typeof e.forEach=="function"){e.forEach(t);return}if(fT&&Symbol.iterator in e&&typeof e.next!="function"&&(e=e[Symbol.iterator]()),typeof e.next=="function"){for(n=e,i=0;a=n.next(),a.done!==!0;)t(a.value,null),i++;return}for(r in e)e.hasOwnProperty(r)&&t(e[r],r)};_T.exports=pT});var _g=p(Tn=>{var X5=Math.pow(2,8)-1,Z5=Math.pow(2,16)-1,eY=Math.pow(2,32)-1,tY=Math.pow(2,7)-1,nY=Math.pow(2,15)-1,rY=Math.pow(2,31)-1;Tn.getPointerArray=function(e){var t=e-1;return t<=X5?Uint8Array:t<=Z5?Uint16Array:t<=eY?Uint32Array:Float64Array};Tn.getSignedPointerArray=function(e){var t=e-1;return t<=tY?Int8Array:t<=nY?Int16Array:t<=rY?Int32Array:Float64Array};Tn.getNumberType=function(e){return e===(e|0)?Math.sign(e)===-1?e<=127&&e>=-128?Int8Array:e<=32767&&e>=-32768?Int16Array:Int32Array:e<=255?Uint8Array:e<=65535?Uint16Array:Uint32Array:Float64Array};var iY={Uint8Array:1,Int8Array:2,Uint16Array:3,Int16Array:4,Uint32Array:5,Int32Array:6,Float32Array:7,Float64Array:8};Tn.getMinimalRepresentation=function(e,t){var n=null,r=0,i,s,a,l,c;for(l=0,c=e.length;l<c;l++)a=t?t(e[l]):e[l],s=Tn.getNumberType(a),i=iY[s.name],i>r&&(r=i,n=s);return n};Tn.isTypedArray=function(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView(e)};Tn.concat=function(){var e=0,t,n,r;for(t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var i=new arguments[0].constructor(e);for(t=0,n=0;t<r;t++)i.set(arguments[t],n),n+=arguments[t].length;return i};Tn.indices=function(e){for(var t=Tn.getPointerArray(e),n=new t(e),r=0;r<e;r++)n[r]=r;return n}});var yT=p(xa=>{var hT=pg(),gT=_g();function sY(e){return Array.isArray(e)||gT.isTypedArray(e)}function hg(e){if(typeof e.length=="number")return e.length;if(typeof e.size=="number")return e.size}function aY(e){var t=hg(e),n=typeof t=="number"?new Array(t):[],r=0;return hT(e,function(i){n[r++]=i}),n}function oY(e){var t=hg(e),n=typeof t=="number"?gT.getPointerArray(t):Array,r=typeof t=="number"?new Array(t):[],i=typeof t=="number"?new n(t):[],s=0;return hT(e,function(a){r[s]=a,i[s]=s++}),[r,i]}xa.isArrayLike=sY;xa.guessLength=hg;xa.toArray=aY;xa.toArrayWithIndices=oY});var bT=p((Oye,vT)=>{var gg=uT(),lY=pg(),cY=_g(),dY=yT();function Ge(e,t,n){if(arguments.length<2&&(n=e,e=null,t=null),this.capacity=n,typeof this.capacity!="number"||this.capacity<=0)throw new Error("mnemonist/lru-cache: capacity should be positive number.");var r=cY.getPointerArray(n);this.forward=new r(n),this.backward=new r(n),this.K=typeof e=="function"?new e(n):new Array(n),this.V=typeof t=="function"?new t(n):new Array(n),this.size=0,this.head=0,this.tail=0,this.items={}}Ge.prototype.clear=function(){this.size=0,this.head=0,this.tail=0,this.items={}};Ge.prototype.splayOnTop=function(e){var t=this.head;if(this.head===e)return this;var n=this.backward[e],r=this.forward[e];return this.tail===e?this.tail=n:this.backward[r]=n,this.forward[n]=r,this.backward[t]=e,this.head=e,this.forward[e]=t,this};Ge.prototype.set=function(e,t){var n=this.items[e];if(typeof n!="undefined"){this.splayOnTop(n),this.V[n]=t;return}this.size<this.capacity?n=this.size++:(n=this.tail,this.tail=this.backward[n],delete this.items[this.K[n]]),this.items[e]=n,this.K[n]=e,this.V[n]=t,this.forward[n]=this.head,this.backward[this.head]=n,this.head=n};Ge.prototype.setpop=function(e,t){var n=null,r=null,i=this.items[e];return typeof i!="undefined"?(this.splayOnTop(i),n=this.V[i],this.V[i]=t,{evicted:!1,key:e,value:n}):(this.size<this.capacity?i=this.size++:(i=this.tail,this.tail=this.backward[i],n=this.V[i],r=this.K[i],delete this.items[this.K[i]]),this.items[e]=i,this.K[i]=e,this.V[i]=t,this.forward[i]=this.head,this.backward[this.head]=i,this.head=i,r?{evicted:!0,key:r,value:n}:null)};Ge.prototype.has=function(e){return e in this.items};Ge.prototype.get=function(e){var t=this.items[e];if(typeof t!="undefined")return this.splayOnTop(t),this.V[t]};Ge.prototype.peek=function(e){var t=this.items[e];if(typeof t!="undefined")return this.V[t]};Ge.prototype.forEach=function(e,t){t=arguments.length>1?t:this;for(var n=0,r=this.size,i=this.head,s=this.K,a=this.V,l=this.forward;n<r;)e.call(t,a[i],s[i],this),i=l[i],n++};Ge.prototype.keys=function(){var e=0,t=this.size,n=this.head,r=this.K,i=this.forward;return new gg(function(){if(e>=t)return{done:!0};var s=r[n];return e++,e<t&&(n=i[n]),{done:!1,value:s}})};Ge.prototype.values=function(){var e=0,t=this.size,n=this.head,r=this.V,i=this.forward;return new gg(function(){if(e>=t)return{done:!0};var s=r[n];return e++,e<t&&(n=i[n]),{done:!1,value:s}})};Ge.prototype.entries=function(){var e=0,t=this.size,n=this.head,r=this.K,i=this.V,s=this.forward;return new gg(function(){if(e>=t)return{done:!0};var a=r[n],l=i[n];return e++,e<t&&(n=s[n]),{done:!1,value:[a,l]}})};typeof Symbol!="undefined"&&(Ge.prototype[Symbol.iterator]=Ge.prototype.entries);Ge.prototype.inspect=function(){for(var e=new Map,t=this.entries(),n;n=t.next(),!n.done;)e.set(n.value[0],n.value[1]);return Object.defineProperty(e,"constructor",{value:Ge,enumerable:!1}),e};typeof Symbol!="undefined"&&(Ge.prototype[Symbol.for("nodejs.util.inspect.custom")]=Ge.prototype.inspect);Ge.from=function(e,t,n,r){if(arguments.length<2){if(r=dY.guessLength(e),typeof r!="number")throw new Error("mnemonist/lru-cache.from: could not guess iterable length. Please provide desired capacity as last argument.")}else arguments.length===2&&(r=t,t=null,n=null);var i=new Ge(t,n,r);return lY(e,function(s,a){i.set(a,s)}),i};vT.exports=Ge});var wT=p(hd=>{"use strict";Object.defineProperty(hd,"__esModule",{value:!0});hd.EndpointCache=void 0;var uY=se(),mY=uY.__importDefault(bT()),ST=class{constructor(t){this.cache=new mY.default(t)}getEndpoint(t){let n=this.get(t);if(!n||n.length===0)return;let r=n.map(i=>i.Address);return r[Math.floor(Math.random()*r.length)]}get(t){if(!this.has(t))return;let n=this.cache.get(t);if(!n)return;let r=Date.now(),i=n.filter(s=>r<s.Expires);if(i.length===0){this.delete(t);return}return i}set(t,n){let r=Date.now();this.cache.set(t,n.map(({Address:i,CachePeriodInMinutes:s})=>({Address:i,Expires:r+s*60*1e3})))}delete(t){this.cache.set(t,[])}has(t){if(!this.cache.has(t))return!1;let n=this.cache.peek(t);return n?n.length>0:!1}clear(){this.cache.clear()}};hd.EndpointCache=ST});var AT=p(gd=>{"use strict";Object.defineProperty(gd,"__esModule",{value:!0});var ET=se();ET.__exportStar(cT(),gd);ET.__exportStar(wT(),gd)});var CT=p(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0});yd.resolveEndpointDiscoveryConfig=void 0;var fY=AT(),pY=(e,{endpointDiscoveryCommandCtor:t})=>{var n;return f(o({},e),{endpointDiscoveryCommandCtor:t,endpointCache:new fY.EndpointCache((n=e.endpointCacheSize)!==null&&n!==void 0?n:1e3),endpointDiscoveryEnabled:e.endpointDiscoveryEnabled!==void 0?()=>Promise.resolve(e.endpointDiscoveryEnabled):e.endpointDiscoveryEnabledProvider,isClientEndpointDiscoveryEnabled:e.endpointDiscoveryEnabled!==void 0})};yd.resolveEndpointDiscoveryConfig=pY});var vg=p(Ia=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});var yg=se();yg.__exportStar(nT(),Ia);yg.__exportStar(oT(),Ia);yg.__exportStar(CT(),Ia)});var vd=p(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.getHostHeaderPlugin=Zt.hostHeaderMiddlewareOptions=Zt.hostHeaderMiddleware=Zt.resolveHostHeaderConfig=void 0;var _Y=jt();function hY(e){return e}Zt.resolveHostHeaderConfig=hY;var gY=e=>t=>async n=>{if(!_Y.HttpRequest.isInstance(n.request))return t(n);let{request:r}=n,{handlerProtocol:i=""}=e.requestHandler.metadata||{};return i.indexOf("h2")>=0&&!r.headers[":authority"]?(delete r.headers.host,r.headers[":authority"]=""):r.headers.host||(r.headers.host=r.hostname),t(n)};Zt.hostHeaderMiddleware=gY;Zt.hostHeaderMiddlewareOptions={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0};var yY=e=>({applyToStack:t=>{t.add(Zt.hostHeaderMiddleware(e),Zt.hostHeaderMiddlewareOptions)}});Zt.getHostHeaderPlugin=yY});var TT=p(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.getLoggerPlugin=xn.loggerMiddlewareOptions=xn.loggerMiddleware=void 0;var vY=()=>(e,t)=>async n=>{let{clientName:r,commandName:i,inputFilterSensitiveLog:s,logger:a,outputFilterSensitiveLog:l}=t,c=await e(n);if(!a)return c;if(typeof a.info=="function"){let d=c.output,{$metadata:u}=d,_=xr(d,["$metadata"]);a.info({clientName:r,commandName:i,input:s(n.input),output:l(_),metadata:u})}return c};xn.loggerMiddleware=vY;xn.loggerMiddlewareOptions={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0};var bY=e=>({applyToStack:t=>{t.add(xn.loggerMiddleware(),xn.loggerMiddlewareOptions)}});xn.getLoggerPlugin=bY});var bd=p(bg=>{"use strict";Object.defineProperty(bg,"__esModule",{value:!0});var SY=se();SY.__exportStar(TT(),bg)});var Ra=p(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.DEFAULT_RETRY_MODE=ar.DEFAULT_MAX_ATTEMPTS=ar.RETRY_MODES=void 0;var xT;(function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"})(xT=ar.RETRY_MODES||(ar.RETRY_MODES={}));ar.DEFAULT_MAX_ATTEMPTS=3;ar.DEFAULT_RETRY_MODE=xT.STANDARD});var IT=p(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.TRANSIENT_ERROR_STATUS_CODES=In.TRANSIENT_ERROR_CODES=In.THROTTLING_ERROR_CODES=In.CLOCK_SKEW_ERROR_CODES=void 0;In.CLOCK_SKEW_ERROR_CODES=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"];In.THROTTLING_ERROR_CODES=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"];In.TRANSIENT_ERROR_CODES=["AbortError","TimeoutError","RequestTimeout","RequestTimeoutException"];In.TRANSIENT_ERROR_STATUS_CODES=[500,502,503,504]});var wd=p(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.isTransientError=Rn.isThrottlingError=Rn.isClockSkewError=Rn.isRetryableByTrait=void 0;var Sd=IT(),wY=e=>e.$retryable!==void 0;Rn.isRetryableByTrait=wY;var EY=e=>Sd.CLOCK_SKEW_ERROR_CODES.includes(e.name);Rn.isClockSkewError=EY;var AY=e=>{var t,n;return((t=e.$metadata)===null||t===void 0?void 0:t.httpStatusCode)===429||Sd.THROTTLING_ERROR_CODES.includes(e.name)||((n=e.$retryable)===null||n===void 0?void 0:n.throttling)==!0};Rn.isThrottlingError=AY;var CY=e=>{var t;return Sd.TRANSIENT_ERROR_CODES.includes(e.name)||Sd.TRANSIENT_ERROR_STATUS_CODES.includes(((t=e.$metadata)===null||t===void 0?void 0:t.httpStatusCode)||0)};Rn.isTransientError=CY});var Sg=p(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0});Ed.DefaultRateLimiter=void 0;var TY=wd(),RT=class{constructor(t){var n,r,i,s,a;this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=(n=t==null?void 0:t.beta)!==null&&n!==void 0?n:.7,this.minCapacity=(r=t==null?void 0:t.minCapacity)!==null&&r!==void 0?r:1,this.minFillRate=(i=t==null?void 0:t.minFillRate)!==null&&i!==void 0?i:.5,this.scaleConstant=(s=t==null?void 0:t.scaleConstant)!==null&&s!==void 0?s:.4,this.smooth=(a=t==null?void 0:t.smooth)!==null&&a!==void 0?a:.8;let l=this.getCurrentTimeInSeconds();this.lastThrottleTime=l,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(t){if(!!this.enabled){if(this.refillTokenBucket(),t>this.currentCapacity){let n=(t-this.currentCapacity)/this.fillRate*1e3;await new Promise(r=>setTimeout(r,n))}this.currentCapacity=this.currentCapacity-t}}refillTokenBucket(){let t=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=t;return}let n=(t-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+n),this.lastTimestamp=t}updateClientSendingRate(t){let n;if(this.updateMeasuredRate(),TY.isThrottlingError(t)){let i=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=i,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),n=this.cubicThrottle(i),this.enableTokenBucket()}else this.calculateTimeWindow(),n=this.cubicSuccess(this.getCurrentTimeInSeconds());let r=Math.min(n,2*this.measuredTxRate);this.updateTokenBucketRate(r)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(t){return this.getPrecise(t*this.beta)}cubicSuccess(t){return this.getPrecise(this.scaleConstant*Math.pow(t-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(t){this.refillTokenBucket(),this.fillRate=Math.max(t,this.minFillRate),this.maxCapacity=Math.max(t,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){let t=this.getCurrentTimeInSeconds(),n=Math.floor(t*2)/2;if(this.requestCount++,n>this.lastTxRateBucket){let r=this.requestCount/(n-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(r*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=n}}getPrecise(t){return parseFloat(t.toFixed(8))}};Ed.DefaultRateLimiter=RT});var Na=p($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.REQUEST_HEADER=$e.INVOCATION_ID_HEADER=$e.NO_RETRY_INCREMENT=$e.TIMEOUT_RETRY_COST=$e.RETRY_COST=$e.INITIAL_RETRY_TOKENS=$e.THROTTLING_RETRY_DELAY_BASE=$e.MAXIMUM_RETRY_DELAY=$e.DEFAULT_RETRY_DELAY_BASE=void 0;$e.DEFAULT_RETRY_DELAY_BASE=100;$e.MAXIMUM_RETRY_DELAY=20*1e3;$e.THROTTLING_RETRY_DELAY_BASE=500;$e.INITIAL_RETRY_TOKENS=500;$e.RETRY_COST=5;$e.TIMEOUT_RETRY_COST=10;$e.NO_RETRY_INCREMENT=1;$e.INVOCATION_ID_HEADER="amz-sdk-invocation-id";$e.REQUEST_HEADER="amz-sdk-request"});var NT=p(Ad=>{"use strict";Object.defineProperty(Ad,"__esModule",{value:!0});Ad.getDefaultRetryQuota=void 0;var wg=Na(),xY=(e,t)=>{var n,r,i;let s=e,a=(n=t==null?void 0:t.noRetryIncrement)!==null&&n!==void 0?n:wg.NO_RETRY_INCREMENT,l=(r=t==null?void 0:t.retryCost)!==null&&r!==void 0?r:wg.RETRY_COST,c=(i=t==null?void 0:t.timeoutRetryCost)!==null&&i!==void 0?i:wg.TIMEOUT_RETRY_COST,d=e,u=S=>S.name==="TimeoutError"?c:l,_=S=>u(S)<=d;return Object.freeze({hasRetryTokens:_,retrieveRetryTokens:S=>{if(!_(S))throw new Error("No retry token available");let v=u(S);return d-=v,v},releaseRetryTokens:S=>{d+=S??a,d=Math.min(d,s)}})};Ad.getDefaultRetryQuota=xY});var Eg=p(Cd=>{"use strict";Object.defineProperty(Cd,"__esModule",{value:!0});Cd.defaultDelayDecider=void 0;var IY=Na(),RY=(e,t)=>Math.floor(Math.min(IY.MAXIMUM_RETRY_DELAY,Math.random()*2**t*e));Cd.defaultDelayDecider=RY});var Ag=p(xd=>{"use strict";Object.defineProperty(xd,"__esModule",{value:!0});xd.defaultRetryDecider=void 0;var Td=wd(),NY=e=>e?Td.isRetryableByTrait(e)||Td.isClockSkewError(e)||Td.isThrottlingError(e)||Td.isTransientError(e):!1;xd.defaultRetryDecider=NY});var Rd=p(Id=>{"use strict";Object.defineProperty(Id,"__esModule",{value:!0});Id.StandardRetryStrategy=void 0;var PT=jt(),PY=wd(),DY=eh(),DT=Ra(),Pa=Na(),OY=NT(),LY=Eg(),qY=Ag(),OT=class{constructor(t,n){var r,i,s;this.maxAttemptsProvider=t,this.mode=DT.RETRY_MODES.STANDARD,this.retryDecider=(r=n==null?void 0:n.retryDecider)!==null&&r!==void 0?r:qY.defaultRetryDecider,this.delayDecider=(i=n==null?void 0:n.delayDecider)!==null&&i!==void 0?i:LY.defaultDelayDecider,this.retryQuota=(s=n==null?void 0:n.retryQuota)!==null&&s!==void 0?s:OY.getDefaultRetryQuota(Pa.INITIAL_RETRY_TOKENS)}shouldRetry(t,n,r){return n<r&&this.retryDecider(t)&&this.retryQuota.hasRetryTokens(t)}async getMaxAttempts(){let t;try{t=await this.maxAttemptsProvider()}catch{t=DT.DEFAULT_MAX_ATTEMPTS}return t}async retry(t,n,r){let i,s=0,a=0,l=await this.getMaxAttempts(),{request:c}=n;for(PT.HttpRequest.isInstance(c)&&(c.headers[Pa.INVOCATION_ID_HEADER]=DY.v4());;)try{PT.HttpRequest.isInstance(c)&&(c.headers[Pa.REQUEST_HEADER]=`attempt=${s+1}; max=${l}`),(r==null?void 0:r.beforeRequest)&&await r.beforeRequest();let{response:d,output:u}=await t(n);return(r==null?void 0:r.afterRequest)&&r.afterRequest(d),this.retryQuota.releaseRetryTokens(i),u.$metadata.attempts=s+1,u.$metadata.totalRetryDelay=a,{response:d,output:u}}catch(d){let u=MY(d);if(s++,this.shouldRetry(u,s,l)){i=this.retryQuota.retrieveRetryTokens(u);let _=this.delayDecider(PY.isThrottlingError(u)?Pa.THROTTLING_RETRY_DELAY_BASE:Pa.DEFAULT_RETRY_DELAY_BASE,s);a+=_,await new Promise(g=>setTimeout(g,_));continue}throw u.$metadata||(u.$metadata={}),u.$metadata.attempts=s,u.$metadata.totalRetryDelay=a,u}}};Id.StandardRetryStrategy=OT;var MY=e=>e instanceof Error?e:e instanceof Object?Object.assign(new Error,e):typeof e=="string"?new Error(e):new Error(`AWS SDK error wrapper for ${e}`)});var Cg=p(Nd=>{"use strict";Object.defineProperty(Nd,"__esModule",{value:!0});Nd.AdaptiveRetryStrategy=void 0;var kY=Ra(),jY=Sg(),zY=Rd(),LT=class extends zY.StandardRetryStrategy{constructor(t,n){let s=n??{},{rateLimiter:r}=s,i=xr(s,["rateLimiter"]);super(t,i);this.rateLimiter=r??new jY.DefaultRateLimiter,this.mode=kY.RETRY_MODES.ADAPTIVE}async retry(t,n){return super.retry(t,n,{beforeRequest:async()=>this.rateLimiter.getSendToken(),afterRequest:r=>{this.rateLimiter.updateClientSendingRate(r)}})}};Nd.AdaptiveRetryStrategy=LT});var qT=p(ke=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});ke.NODE_RETRY_MODE_CONFIG_OPTIONS=ke.CONFIG_RETRY_MODE=ke.ENV_RETRY_MODE=ke.resolveRetryConfig=ke.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=ke.CONFIG_MAX_ATTEMPTS=ke.ENV_MAX_ATTEMPTS=void 0;var UY=Cg(),Pd=Ra(),FY=Rd();ke.ENV_MAX_ATTEMPTS="AWS_MAX_ATTEMPTS";ke.CONFIG_MAX_ATTEMPTS="max_attempts";ke.NODE_MAX_ATTEMPT_CONFIG_OPTIONS={environmentVariableSelector:e=>{let t=e[ke.ENV_MAX_ATTEMPTS];if(!t)return;let n=parseInt(t);if(Number.isNaN(n))throw new Error(`Environment variable ${ke.ENV_MAX_ATTEMPTS} mast be a number, got "${t}"`);return n},configFileSelector:e=>{let t=e[ke.CONFIG_MAX_ATTEMPTS];if(!t)return;let n=parseInt(t);if(Number.isNaN(n))throw new Error(`Shared config file entry ${ke.CONFIG_MAX_ATTEMPTS} mast be a number, got "${t}"`);return n},default:Pd.DEFAULT_MAX_ATTEMPTS};var BY=e=>{let t=$Y(e.maxAttempts);return f(o({},e),{maxAttempts:t,retryStrategy:async()=>e.retryStrategy?e.retryStrategy:await GY(e.retryMode)===Pd.RETRY_MODES.ADAPTIVE?new UY.AdaptiveRetryStrategy(t):new FY.StandardRetryStrategy(t)})};ke.resolveRetryConfig=BY;var GY=async e=>typeof e=="string"?e:await e(),$Y=(e=Pd.DEFAULT_MAX_ATTEMPTS)=>{if(typeof e=="number"){let t=Promise.resolve(e);return()=>t}return e};ke.ENV_RETRY_MODE="AWS_RETRY_MODE";ke.CONFIG_RETRY_MODE="retry_mode";ke.NODE_RETRY_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[ke.ENV_RETRY_MODE],configFileSelector:e=>e[ke.CONFIG_RETRY_MODE],default:Pd.DEFAULT_RETRY_MODE}});var kT=p(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.getOmitRetryHeadersPlugin=Nn.omitRetryHeadersMiddlewareOptions=Nn.omitRetryHeadersMiddleware=void 0;var KY=jt(),MT=Na(),VY=()=>e=>async t=>{let{request:n}=t;return KY.HttpRequest.isInstance(n)&&(delete n.headers[MT.INVOCATION_ID_HEADER],delete n.headers[MT.REQUEST_HEADER]),e(t)};Nn.omitRetryHeadersMiddleware=VY;Nn.omitRetryHeadersMiddlewareOptions={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0};var HY=e=>({applyToStack:t=>{t.addRelativeTo(Nn.omitRetryHeadersMiddleware(),Nn.omitRetryHeadersMiddlewareOptions)}});Nn.getOmitRetryHeadersPlugin=HY});var jT=p(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.getRetryPlugin=Pn.retryMiddlewareOptions=Pn.retryMiddleware=void 0;var WY=e=>(t,n)=>async r=>{let i=await e.retryStrategy();return(i==null?void 0:i.mode)&&(n.userAgent=[...n.userAgent||[],["cfg/retry-mode",i.mode]]),i.retry(t,r)};Pn.retryMiddleware=WY;Pn.retryMiddlewareOptions={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0};var YY=e=>({applyToStack:t=>{t.add(Pn.retryMiddleware(e),Pn.retryMiddlewareOptions)}});Pn.getRetryPlugin=YY});var UT=p(zT=>{"use strict";Object.defineProperty(zT,"__esModule",{value:!0})});var hi=p(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});var Dn=se();Dn.__exportStar(Cg(),en);Dn.__exportStar(Sg(),en);Dn.__exportStar(Rd(),en);Dn.__exportStar(Ra(),en);Dn.__exportStar(qT(),en);Dn.__exportStar(Eg(),en);Dn.__exportStar(kT(),en);Dn.__exportStar(Ag(),en);Dn.__exportStar(jT(),en);Dn.__exportStar(UT(),en)});var Tg=p(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});fs.CredentialsProviderError=fs.ProviderError=void 0;var FT=class extends Error{constructor(t,n=!0){super(t);this.tryNextLink=n}static from(t,n=!0){return Object.defineProperty(t,"tryNextLink",{value:n,configurable:!1,enumerable:!1,writable:!1}),t}};fs.ProviderError=FT;var BT=class extends Error{constructor(t,n=!0){super(t);this.tryNextLink=n,this.name="CredentialsProviderError"}static from(t,n=!0){return Object.defineProperty(t,"tryNextLink",{value:n,configurable:!1,enumerable:!1,writable:!1}),t}};fs.CredentialsProviderError=BT});var GT=p(Dd=>{"use strict";Object.defineProperty(Dd,"__esModule",{value:!0});Dd.chain=void 0;var JY=Tg();function QY(...e){return()=>{let t=Promise.reject(new JY.ProviderError("No providers in chain"));for(let n of e)t=t.catch(r=>{if(r==null?void 0:r.tryNextLink)return n();throw r});return t}}Dd.chain=QY});var $T=p(Od=>{"use strict";Object.defineProperty(Od,"__esModule",{value:!0});Od.fromStatic=void 0;var XY=e=>()=>Promise.resolve(e);Od.fromStatic=XY});var KT=p(Ld=>{"use strict";Object.defineProperty(Ld,"__esModule",{value:!0});Ld.memoize=void 0;var ZY=(e,t,n)=>{let r,i,s,a=async()=>{i||(i=e());try{r=await i,s=!0}finally{i=void 0}return r};if(t===void 0)return async()=>(s||(r=await a()),r);let l=!1;return async()=>(s||(r=await a()),l?r:n&&!n(r)?(l=!0,r):(t(r)&&await a(),r))};Ld.memoize=ZY});var lt=p(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});var qd=se();qd.__exportStar(Tg(),ps);qd.__exportStar(GT(),ps);qd.__exportStar($T(),ps);qd.__exportStar(KT(),ps)});var Md=p(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});_s.toHex=_s.fromHex=void 0;var VT={},xg={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),VT[e]=t,xg[t]=e}function eJ(e){if(e.length%2!==0)throw new Error("Hex encoded strings must have an even number length");let t=new Uint8Array(e.length/2);for(let n=0;n<e.length;n+=2){let r=e.substr(n,2).toLowerCase();if(r in xg)t[n/2]=xg[r];else throw new Error(`Cannot decode unrecognized sequence ${r} as hexadecimal`)}return t}_s.fromHex=eJ;function tJ(e){let t="";for(let n=0;n<e.byteLength;n++)t+=VT[e[n]];return t}_s.toHex=tJ});var gi=p(G=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0});G.MAX_PRESIGNED_TTL=G.KEY_TYPE_IDENTIFIER=G.MAX_CACHE_SIZE=G.UNSIGNED_PAYLOAD=G.EVENT_ALGORITHM_IDENTIFIER=G.ALGORITHM_IDENTIFIER_V4A=G.ALGORITHM_IDENTIFIER=G.UNSIGNABLE_PATTERNS=G.SEC_HEADER_PATTERN=G.PROXY_HEADER_PATTERN=G.ALWAYS_UNSIGNABLE_HEADERS=G.HOST_HEADER=G.TOKEN_HEADER=G.SHA256_HEADER=G.SIGNATURE_HEADER=G.GENERATED_HEADERS=G.DATE_HEADER=G.AMZ_DATE_HEADER=G.AUTH_HEADER=G.REGION_SET_PARAM=G.TOKEN_QUERY_PARAM=G.SIGNATURE_QUERY_PARAM=G.EXPIRES_QUERY_PARAM=G.SIGNED_HEADERS_QUERY_PARAM=G.AMZ_DATE_QUERY_PARAM=G.CREDENTIAL_QUERY_PARAM=G.ALGORITHM_QUERY_PARAM=void 0;G.ALGORITHM_QUERY_PARAM="X-Amz-Algorithm";G.CREDENTIAL_QUERY_PARAM="X-Amz-Credential";G.AMZ_DATE_QUERY_PARAM="X-Amz-Date";G.SIGNED_HEADERS_QUERY_PARAM="X-Amz-SignedHeaders";G.EXPIRES_QUERY_PARAM="X-Amz-Expires";G.SIGNATURE_QUERY_PARAM="X-Amz-Signature";G.TOKEN_QUERY_PARAM="X-Amz-Security-Token";G.REGION_SET_PARAM="X-Amz-Region-Set";G.AUTH_HEADER="authorization";G.AMZ_DATE_HEADER=G.AMZ_DATE_QUERY_PARAM.toLowerCase();G.DATE_HEADER="date";G.GENERATED_HEADERS=[G.AUTH_HEADER,G.AMZ_DATE_HEADER,G.DATE_HEADER];G.SIGNATURE_HEADER=G.SIGNATURE_QUERY_PARAM.toLowerCase();G.SHA256_HEADER="x-amz-content-sha256";G.TOKEN_HEADER=G.TOKEN_QUERY_PARAM.toLowerCase();G.HOST_HEADER="host";G.ALWAYS_UNSIGNABLE_HEADERS={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0};G.PROXY_HEADER_PATTERN=/^proxy-/;G.SEC_HEADER_PATTERN=/^sec-/;G.UNSIGNABLE_PATTERNS=[/^proxy-/i,/^sec-/i];G.ALGORITHM_IDENTIFIER="AWS4-HMAC-SHA256";G.ALGORITHM_IDENTIFIER_V4A="AWS4-ECDSA-P256-SHA256";G.EVENT_ALGORITHM_IDENTIFIER="AWS4-HMAC-SHA256-PAYLOAD";G.UNSIGNED_PAYLOAD="UNSIGNED-PAYLOAD";G.MAX_CACHE_SIZE=50;G.KEY_TYPE_IDENTIFIER="aws4_request";G.MAX_PRESIGNED_TTL=60*60*24*7});var Rg=p(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.clearCredentialCache=qr.getSigningKey=qr.createScope=void 0;var nJ=Md(),Ig=gi(),hs={},kd=[],rJ=(e,t,n)=>`${e}/${t}/${n}/${Ig.KEY_TYPE_IDENTIFIER}`;qr.createScope=rJ;var iJ=async(e,t,n,r,i)=>{let s=await HT(e,t.secretAccessKey,t.accessKeyId),a=`${n}:${r}:${i}:${nJ.toHex(s)}:${t.sessionToken}`;if(a in hs)return hs[a];for(kd.push(a);kd.length>Ig.MAX_CACHE_SIZE;)delete hs[kd.shift()];let l=`AWS4${t.secretAccessKey}`;for(let c of[n,r,i,Ig.KEY_TYPE_IDENTIFIER])l=await HT(e,l,c);return hs[a]=l};qr.getSigningKey=iJ;var sJ=()=>{kd.length=0,Object.keys(hs).forEach(e=>{delete hs[e]})};qr.clearCredentialCache=sJ;var HT=(e,t,n)=>{let r=new e(t);return r.update(n),r.digest()}});var Pg=p(jd=>{"use strict";Object.defineProperty(jd,"__esModule",{value:!0});jd.getCanonicalHeaders=void 0;var Ng=gi(),aJ=({headers:e},t,n)=>{let r={};for(let i of Object.keys(e).sort()){let s=i.toLowerCase();(s in Ng.ALWAYS_UNSIGNABLE_HEADERS||(t==null?void 0:t.has(s))||Ng.PROXY_HEADER_PATTERN.test(s)||Ng.SEC_HEADER_PATTERN.test(s))&&(!n||n&&!n.has(s))||(r[s]=e[i].trim().replace(/\s+/g," "))}return r};jd.getCanonicalHeaders=aJ});var Dg=p(zd=>{"use strict";Object.defineProperty(zd,"__esModule",{value:!0});zd.escapeUri=void 0;var oJ=e=>encodeURIComponent(e).replace(/[!'()*]/g,lJ);zd.escapeUri=oJ;var lJ=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`});var WT=p(Ud=>{"use strict";Object.defineProperty(Ud,"__esModule",{value:!0});Ud.escapeUriPath=void 0;var cJ=Dg(),dJ=e=>e.split("/").map(cJ.escapeUri).join("/");Ud.escapeUriPath=dJ});var Og=p(Fd=>{"use strict";Object.defineProperty(Fd,"__esModule",{value:!0});var YT=se();YT.__exportStar(Dg(),Fd);YT.__exportStar(WT(),Fd)});var Lg=p(Gd=>{"use strict";Object.defineProperty(Gd,"__esModule",{value:!0});Gd.getCanonicalQuery=void 0;var Bd=Og(),uJ=gi(),mJ=({query:e={}})=>{let t=[],n={};for(let r of Object.keys(e).sort()){if(r.toLowerCase()===uJ.SIGNATURE_HEADER)continue;t.push(r);let i=e[r];typeof i=="string"?n[r]=`${Bd.escapeUri(r)}=${Bd.escapeUri(i)}`:Array.isArray(i)&&(n[r]=i.slice(0).sort().reduce((s,a)=>s.concat([`${Bd.escapeUri(r)}=${Bd.escapeUri(a)}`]),[]).join("&"))}return t.map(r=>n[r]).filter(r=>r).join("&")};Gd.getCanonicalQuery=mJ});var qg=p($d=>{"use strict";Object.defineProperty($d,"__esModule",{value:!0});$d.isArrayBuffer=void 0;var fJ=e=>typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]";$d.isArrayBuffer=fJ});var Mg=p(Kd=>{"use strict";Object.defineProperty(Kd,"__esModule",{value:!0});Kd.getPayloadHash=void 0;var pJ=qg(),_J=Md(),JT=gi(),hJ=async({headers:e,body:t},n)=>{for(let r of Object.keys(e))if(r.toLowerCase()===JT.SHA256_HEADER)return e[r];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof t=="string"||ArrayBuffer.isView(t)||pJ.isArrayBuffer(t)){let r=new n;return r.update(t),_J.toHex(await r.digest())}return JT.UNSIGNED_PAYLOAD};Kd.getPayloadHash=hJ});var QT=p(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.deleteHeader=Mr.getHeaderValue=Mr.hasHeader=void 0;var gJ=(e,t)=>{e=e.toLowerCase();for(let n of Object.keys(t))if(e===n.toLowerCase())return!0;return!1};Mr.hasHeader=gJ;var yJ=(e,t)=>{e=e.toLowerCase();for(let n of Object.keys(t))if(e===n.toLowerCase())return t[n]};Mr.getHeaderValue=yJ;var vJ=(e,t)=>{e=e.toLowerCase();for(let n of Object.keys(t))e===n.toLowerCase()&&delete t[n]};Mr.deleteHeader=vJ});var kg=p(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.cloneQuery=yi.cloneRequest=void 0;var bJ=r=>{var i=r,{headers:e,query:t}=i,n=xr(i,["headers","query"]);return f(o({},n),{headers:o({},e),query:t?yi.cloneQuery(t):void 0})};yi.cloneRequest=bJ;var SJ=e=>Object.keys(e).reduce((t,n)=>{let r=e[n];return f(o({},t),{[n]:Array.isArray(r)?[...r]:r})},{});yi.cloneQuery=SJ});var jg=p(Vd=>{"use strict";Object.defineProperty(Vd,"__esModule",{value:!0});Vd.moveHeadersToQuery=void 0;var wJ=kg(),EJ=(e,t={})=>{var n;let{headers:r,query:i={}}=typeof e.clone=="function"?e.clone():wJ.cloneRequest(e);for(let s of Object.keys(r)){let a=s.toLowerCase();a.substr(0,6)==="x-amz-"&&!((n=t.unhoistableHeaders)===null||n===void 0?void 0:n.has(a))&&(i[s]=r[s],delete r[s])}return f(o({},e),{headers:r,query:i})};Vd.moveHeadersToQuery=EJ});var zg=p(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.normalizeCredentialsProvider=gs.normalizeRegionProvider=void 0;var AJ=e=>{if(typeof e=="string"){let t=Promise.resolve(e);return()=>t}else return e};gs.normalizeRegionProvider=AJ;var CJ=e=>{if(typeof e=="object"){let t=Promise.resolve(e);return()=>t}else return e};gs.normalizeCredentialsProvider=CJ});var Ug=p(Hd=>{"use strict";Object.defineProperty(Hd,"__esModule",{value:!0});Hd.prepareRequest=void 0;var TJ=kg(),xJ=gi(),IJ=e=>{e=typeof e.clone=="function"?e.clone():TJ.cloneRequest(e);for(let t of Object.keys(e.headers))xJ.GENERATED_HEADERS.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e};Hd.prepareRequest=IJ});var XT=p(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});vi.toDate=vi.iso8601=void 0;var RJ=e=>vi.toDate(e).toISOString().replace(/\.\d{3}Z$/,"Z");vi.iso8601=RJ;var NJ=e=>typeof e=="number"?new Date(e*1e3):typeof e=="string"?Number(e)?new Date(Number(e)*1e3):new Date(e):e;vi.toDate=NJ});var ix=p(Qd=>{"use strict";Object.defineProperty(Qd,"__esModule",{value:!0});Qd.SignatureV4=void 0;var Wd=Md(),ct=gi(),Yd=Rg(),ZT=Pg(),PJ=Lg(),Fg=Mg(),DJ=QT(),OJ=jg(),ex=zg(),tx=Ug(),LJ=XT(),nx=class{constructor({applyChecksum:t,credentials:n,region:r,service:i,sha256:s,uriEscapePath:a=!0}){this.service=i,this.sha256=s,this.uriEscapePath=a,this.applyChecksum=typeof t=="boolean"?t:!0,this.regionProvider=ex.normalizeRegionProvider(r),this.credentialProvider=ex.normalizeCredentialsProvider(n)}async presign(t,n={}){let{signingDate:r=new Date,expiresIn:i=3600,unsignableHeaders:s,unhoistableHeaders:a,signableHeaders:l,signingRegion:c,signingService:d}=n,u=await this.credentialProvider(),_=c??await this.regionProvider(),{longDate:g,shortDate:b}=Jd(r);if(i>ct.MAX_PRESIGNED_TTL)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let S=Yd.createScope(b,_,d??this.service),v=OJ.moveHeadersToQuery(tx.prepareRequest(t),{unhoistableHeaders:a});u.sessionToken&&(v.query[ct.TOKEN_QUERY_PARAM]=u.sessionToken),v.query[ct.ALGORITHM_QUERY_PARAM]=ct.ALGORITHM_IDENTIFIER,v.query[ct.CREDENTIAL_QUERY_PARAM]=`${u.accessKeyId}/${S}`,v.query[ct.AMZ_DATE_QUERY_PARAM]=g,v.query[ct.EXPIRES_QUERY_PARAM]=i.toString(10);let I=ZT.getCanonicalHeaders(v,s,l);return v.query[ct.SIGNED_HEADERS_QUERY_PARAM]=rx(I),v.query[ct.SIGNATURE_QUERY_PARAM]=await this.getSignature(g,S,this.getSigningKey(u,_,b,d),this.createCanonicalRequest(v,I,await Fg.getPayloadHash(t,this.sha256))),v}async sign(t,n){return typeof t=="string"?this.signString(t,n):t.headers&&t.payload?this.signEvent(t,n):this.signRequest(t,n)}async signEvent({headers:t,payload:n},{signingDate:r=new Date,priorSignature:i,signingRegion:s,signingService:a}){let l=s??await this.regionProvider(),{shortDate:c,longDate:d}=Jd(r),u=Yd.createScope(c,l,a??this.service),_=await Fg.getPayloadHash({headers:{},body:n},this.sha256),g=new this.sha256;g.update(t);let b=Wd.toHex(await g.digest()),S=[ct.EVENT_ALGORITHM_IDENTIFIER,d,u,i,b,_].join(`
10
- `);return this.signString(S,{signingDate:r,signingRegion:l,signingService:a})}async signString(t,{signingDate:n=new Date,signingRegion:r,signingService:i}={}){let s=await this.credentialProvider(),a=r??await this.regionProvider(),{shortDate:l}=Jd(n),c=new this.sha256(await this.getSigningKey(s,a,l,i));return c.update(t),Wd.toHex(await c.digest())}async signRequest(t,{signingDate:n=new Date,signableHeaders:r,unsignableHeaders:i,signingRegion:s,signingService:a}={}){let l=await this.credentialProvider(),c=s??await this.regionProvider(),d=tx.prepareRequest(t),{longDate:u,shortDate:_}=Jd(n),g=Yd.createScope(_,c,a??this.service);d.headers[ct.AMZ_DATE_HEADER]=u,l.sessionToken&&(d.headers[ct.TOKEN_HEADER]=l.sessionToken);let b=await Fg.getPayloadHash(d,this.sha256);!DJ.hasHeader(ct.SHA256_HEADER,d.headers)&&this.applyChecksum&&(d.headers[ct.SHA256_HEADER]=b);let S=ZT.getCanonicalHeaders(d,i,r),v=await this.getSignature(u,g,this.getSigningKey(l,c,_,a),this.createCanonicalRequest(d,S,b));return d.headers[ct.AUTH_HEADER]=`${ct.ALGORITHM_IDENTIFIER} Credential=${l.accessKeyId}/${g}, SignedHeaders=${rx(S)}, Signature=${v}`,d}createCanonicalRequest(t,n,r){let i=Object.keys(n).sort();return`${t.method}
9
+ More information can be found at: https://a.co/1l6FLnu`,"NodeDeprecationWarning"))};od.emitWarningIfUnsupportedVersion=$2});var ax=m(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});Rs.decorateServiceException=Rs.ServiceException=void 0;var Yo=class extends Error{constructor(t){super(t.message),Object.setPrototypeOf(this,Yo.prototype),this.name=t.name,this.$fault=t.$fault,this.$metadata=t.$metadata}};Rs.ServiceException=Yo;var V2=(e,t={})=>{Object.entries(t).filter(([,n])=>n!==void 0).forEach(([n,i])=>{(e[n]==null||e[n]==="")&&(e[n]=i)});let r=e.message||e.Message||"UnknownError";return e.message=r,delete e.Message,e};Rs.decorateServiceException=V2});var cx=m(ad=>{"use strict";Object.defineProperty(ad,"__esModule",{value:!0});ad.extendedEncodeURIComponent=void 0;function K2(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}ad.extendedEncodeURIComponent=K2});var lx=m(cd=>{"use strict";Object.defineProperty(cd,"__esModule",{value:!0});cd.getArrayIfSingleItem=void 0;var H2=e=>Array.isArray(e)?e:[e];cd.getArrayIfSingleItem=H2});var dx=m(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.getValueFromTextNode=void 0;var W2=e=>{let t="#text";for(let r in e)e.hasOwnProperty(r)&&e[r][t]!==void 0?e[r]=e[r][t]:typeof e[r]=="object"&&e[r]!==null&&(e[r]=(0,Qo.getValueFromTextNode)(e[r]));return e};Qo.getValueFromTextNode=W2});var ux=m(wr=>{"use strict";Object.defineProperty(wr,"__esModule",{value:!0});wr.LazyJsonString=wr.StringWrapper=void 0;var J2=function(){let e=Object.getPrototypeOf(this).constructor,t=Function.bind.apply(String,[null,...arguments]),r=new t;return Object.setPrototypeOf(r,e.prototype),r};wr.StringWrapper=J2;wr.StringWrapper.prototype=Object.create(String.prototype,{constructor:{value:wr.StringWrapper,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(wr.StringWrapper,String);var Ii=class extends wr.StringWrapper{deserializeJSON(){return JSON.parse(super.toString())}toJSON(){return super.toString()}static fromObject(t){return t instanceof Ii?t:t instanceof String||typeof t=="string"?new Ii(t):new Ii(JSON.stringify(t))}};wr.LazyJsonString=Ii});var fx=m(ld=>{"use strict";Object.defineProperty(ld,"__esModule",{value:!0});ld.serializeFloat=void 0;var Y2=e=>{if(e!==e)return"NaN";switch(e){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return e}};ld.serializeFloat=Y2});var mx=m(dd=>{"use strict";Object.defineProperty(dd,"__esModule",{value:!0});dd.splitEvery=void 0;function Q2(e,t,r){if(r<=0||!Number.isInteger(r))throw new Error("Invalid number of delimiters ("+r+") for splitEvery.");let n=e.split(t);if(r===1)return n;let i=[],s="";for(let a=0;a<n.length;a++)s===""?s=n[a]:s+=t+n[a],(a+1)%r===0&&(i.push(s),s="");return s!==""&&i.push(s),i}dd.splitEvery=Q2});var P=m(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});var xt=$();xt.__exportStar(ZC(),ht);xt.__exportStar(ex(),ht);xt.__exportStar(tx(),ht);xt.__exportStar(nx(),ht);xt.__exportStar(ix(),ht);xt.__exportStar(ox(),ht);xt.__exportStar(ax(),ht);xt.__exportStar(cx(),ht);xt.__exportStar(lx(),ht);xt.__exportStar(dx(),ht);xt.__exportStar(ux(),ht);xt.__exportStar(yv(),ht);xt.__exportStar(fx(),ht);xt.__exportStar(mx(),ht)});var fd=m(ud=>{"use strict";Object.defineProperty(ud,"__esModule",{value:!0});ud.DynamoDBServiceException=void 0;var X2=P(),Xo=class extends X2.ServiceException{constructor(t){super(t),Object.setPrototypeOf(this,Xo.prototype)}};ud.DynamoDBServiceException=Xo});var Y=m(d=>{"use strict";Object.defineProperty(d,"__esModule",{value:!0});d.ProvisionedThroughputOverride=d.CreateGlobalTableInput=d.Replica=d.CreateGlobalSecondaryIndexAction=d.TableNotFoundException=d.TableInUseException=d.LimitExceededException=d.CreateBackupOutput=d.CreateBackupInput=d.ContributorInsightsSummary=d.ContinuousBackupsUnavailableException=d.ContinuousBackupsDescription=d.PointInTimeRecoveryDescription=d.ConditionalCheckFailedException=d.BillingModeSummary=d.ItemCollectionSizeLimitExceededException=d.ResourceNotFoundException=d.ProvisionedThroughputExceededException=d.InvalidEndpointException=d.RequestLimitExceeded=d.InternalServerError=d.BatchStatementError=d.BatchStatementErrorCodeEnum=d.ConsumedCapacity=d.Capacity=d.BackupTypeFilter=d.BackupSummary=d.BackupNotFoundException=d.BackupInUseException=d.BackupDescription=d.SourceTableFeatureDetails=d.TimeToLiveDescription=d.StreamSpecification=d.SSEDescription=d.LocalSecondaryIndexInfo=d.GlobalSecondaryIndexInfo=d.Projection=d.SourceTableDetails=d.ProvisionedThroughput=d.KeySchemaElement=d.BackupDetails=d.BackupType=d.AutoScalingSettingsUpdate=d.AutoScalingSettingsDescription=d.AutoScalingPolicyUpdate=d.AutoScalingTargetTrackingScalingPolicyConfigurationUpdate=d.AutoScalingPolicyDescription=d.AutoScalingTargetTrackingScalingPolicyConfigurationDescription=d.AttributeDefinition=d.ArchivalSummary=void 0;d.DescribeGlobalTableSettingsInput=d.GlobalTableNotFoundException=d.DescribeGlobalTableOutput=d.DescribeGlobalTableInput=d.ExportNotFoundException=d.DescribeExportOutput=d.ExportDescription=d.ExportStatus=d.ExportFormat=d.DescribeExportInput=d.DescribeEndpointsResponse=d.Endpoint=d.DescribeEndpointsRequest=d.DescribeContributorInsightsOutput=d.FailureException=d.DescribeContributorInsightsInput=d.DescribeContinuousBackupsOutput=d.DescribeContinuousBackupsInput=d.DescribeBackupOutput=d.DescribeBackupInput=d.DeleteTableOutput=d.DeleteTableInput=d.DeleteReplicationGroupMemberAction=d.DeleteReplicaAction=d.TransactionConflictException=d.DeleteGlobalSecondaryIndexAction=d.DeleteBackupOutput=d.DeleteBackupInput=d.ResourceInUseException=d.CreateTableOutput=d.TableDescription=d.RestoreSummary=d.LocalSecondaryIndexDescription=d.GlobalSecondaryIndexDescription=d.ProvisionedThroughputDescription=d.CreateTableInput=d.Tag=d.SSESpecification=d.LocalSecondaryIndex=d.GlobalSecondaryIndex=d.CreateReplicationGroupMemberAction=d.ReplicaGlobalSecondaryIndex=d.CreateReplicaAction=d.GlobalTableAlreadyExistsException=d.CreateGlobalTableOutput=d.GlobalTableDescription=d.ReplicaDescription=d.TableClassSummary=d.TableClass=d.ReplicaGlobalSecondaryIndexDescription=void 0;d.PointInTimeRecoverySpecification=d.UntagResourceInput=d.TagResourceInput=d.RestoreTableToPointInTimeOutput=d.RestoreTableToPointInTimeInput=d.InvalidRestoreTimeException=d.TableAlreadyExistsException=d.RestoreTableFromBackupOutput=d.RestoreTableFromBackupInput=d.ListTagsOfResourceOutput=d.ListTagsOfResourceInput=d.ListTablesOutput=d.ListTablesInput=d.ListGlobalTablesOutput=d.GlobalTable=d.ListGlobalTablesInput=d.ListExportsOutput=d.ExportSummary=d.ListExportsInput=d.ListContributorInsightsOutput=d.ListContributorInsightsInput=d.ListBackupsOutput=d.ListBackupsInput=d.PointInTimeRecoveryUnavailableException=d.InvalidExportTimeException=d.ExportTableToPointInTimeOutput=d.ExportTableToPointInTimeInput=d.ExportConflictException=d.TransactionInProgressException=d.IdempotentParameterMismatchException=d.DuplicateItemException=d.KinesisStreamingDestinationOutput=d.KinesisStreamingDestinationInput=d.DescribeTimeToLiveOutput=d.DescribeTimeToLiveInput=d.DescribeTableReplicaAutoScalingOutput=d.TableAutoScalingDescription=d.ReplicaAutoScalingDescription=d.ReplicaGlobalSecondaryIndexAutoScalingDescription=d.DescribeTableReplicaAutoScalingInput=d.DescribeTableOutput=d.DescribeTableInput=d.DescribeLimitsOutput=d.DescribeLimitsInput=d.DescribeKinesisStreamingDestinationOutput=d.KinesisDataStreamDestination=d.DescribeKinesisStreamingDestinationInput=d.DescribeGlobalTableSettingsOutput=d.ReplicaSettingsDescription=d.ReplicaGlobalSecondaryIndexSettingsDescription=void 0;d.ExecuteTransactionOutput=d.ExecuteTransactionInput=d.BatchExecuteStatementOutput=d.BatchExecuteStatementInput=d.TransactGetItem=d.KeysAndAttributes=d.PutRequest=d.ParameterizedStatement=d.ItemResponse=d.ItemCollectionMetrics=d.GetItemOutput=d.GetItemInput=d.Get=d.ExecuteStatementInput=d.DeleteRequest=d.Condition=d.CancellationReason=d.BatchStatementResponse=d.BatchStatementRequest=d.AttributeValueUpdate=d.AttributeValue=d.UpdateTimeToLiveOutput=d.UpdateTimeToLiveInput=d.TimeToLiveSpecification=d.UpdateTableReplicaAutoScalingOutput=d.UpdateTableReplicaAutoScalingInput=d.ReplicaAutoScalingUpdate=d.ReplicaGlobalSecondaryIndexAutoScalingUpdate=d.GlobalSecondaryIndexAutoScalingUpdate=d.UpdateTableOutput=d.UpdateTableInput=d.ReplicationGroupUpdate=d.UpdateReplicationGroupMemberAction=d.GlobalSecondaryIndexUpdate=d.UpdateGlobalSecondaryIndexAction=d.UpdateGlobalTableSettingsOutput=d.UpdateGlobalTableSettingsInput=d.ReplicaSettingsUpdate=d.ReplicaGlobalSecondaryIndexSettingsUpdate=d.GlobalTableGlobalSecondaryIndexSettingsUpdate=d.IndexNotFoundException=d.UpdateGlobalTableOutput=d.UpdateGlobalTableInput=d.ReplicaUpdate=d.ReplicaNotFoundException=d.ReplicaAlreadyExistsException=d.UpdateContributorInsightsOutput=d.UpdateContributorInsightsInput=d.UpdateContinuousBackupsOutput=d.UpdateContinuousBackupsInput=void 0;d.TransactWriteItemsInput=d.TransactWriteItem=d.UpdateItemInput=d.BatchWriteItemOutput=d.QueryInput=d.PutItemInput=d.DeleteItemInput=d.BatchWriteItemInput=d.ScanInput=d.BatchGetItemOutput=d.WriteRequest=d.UpdateItemOutput=d.ScanOutput=d.QueryOutput=d.PutItemOutput=d.ExecuteStatementOutput=d.DeleteItemOutput=d.Update=d.Put=d.Delete=d.ConditionCheck=d.TransactWriteItemsOutput=d.TransactGetItemsInput=d.ExpectedAttributeValue=d.BatchGetItemInput=d.TransactionCanceledException=d.TransactGetItemsOutput=void 0;var Ae=fd(),Z2;(function(e){e.filterSensitiveLog=t=>o({},t)})(Z2=d.ArchivalSummary||(d.ArchivalSummary={}));var eV;(function(e){e.filterSensitiveLog=t=>o({},t)})(eV=d.AttributeDefinition||(d.AttributeDefinition={}));var tV;(function(e){e.filterSensitiveLog=t=>o({},t)})(tV=d.AutoScalingTargetTrackingScalingPolicyConfigurationDescription||(d.AutoScalingTargetTrackingScalingPolicyConfigurationDescription={}));var rV;(function(e){e.filterSensitiveLog=t=>o({},t)})(rV=d.AutoScalingPolicyDescription||(d.AutoScalingPolicyDescription={}));var nV;(function(e){e.filterSensitiveLog=t=>o({},t)})(nV=d.AutoScalingTargetTrackingScalingPolicyConfigurationUpdate||(d.AutoScalingTargetTrackingScalingPolicyConfigurationUpdate={}));var iV;(function(e){e.filterSensitiveLog=t=>o({},t)})(iV=d.AutoScalingPolicyUpdate||(d.AutoScalingPolicyUpdate={}));var sV;(function(e){e.filterSensitiveLog=t=>o({},t)})(sV=d.AutoScalingSettingsDescription||(d.AutoScalingSettingsDescription={}));var oV;(function(e){e.filterSensitiveLog=t=>o({},t)})(oV=d.AutoScalingSettingsUpdate||(d.AutoScalingSettingsUpdate={}));var aV;(function(e){e.AWS_BACKUP="AWS_BACKUP",e.SYSTEM="SYSTEM",e.USER="USER"})(aV=d.BackupType||(d.BackupType={}));var cV;(function(e){e.filterSensitiveLog=t=>o({},t)})(cV=d.BackupDetails||(d.BackupDetails={}));var lV;(function(e){e.filterSensitiveLog=t=>o({},t)})(lV=d.KeySchemaElement||(d.KeySchemaElement={}));var dV;(function(e){e.filterSensitiveLog=t=>o({},t)})(dV=d.ProvisionedThroughput||(d.ProvisionedThroughput={}));var uV;(function(e){e.filterSensitiveLog=t=>o({},t)})(uV=d.SourceTableDetails||(d.SourceTableDetails={}));var fV;(function(e){e.filterSensitiveLog=t=>o({},t)})(fV=d.Projection||(d.Projection={}));var mV;(function(e){e.filterSensitiveLog=t=>o({},t)})(mV=d.GlobalSecondaryIndexInfo||(d.GlobalSecondaryIndexInfo={}));var pV;(function(e){e.filterSensitiveLog=t=>o({},t)})(pV=d.LocalSecondaryIndexInfo||(d.LocalSecondaryIndexInfo={}));var _V;(function(e){e.filterSensitiveLog=t=>o({},t)})(_V=d.SSEDescription||(d.SSEDescription={}));var hV;(function(e){e.filterSensitiveLog=t=>o({},t)})(hV=d.StreamSpecification||(d.StreamSpecification={}));var yV;(function(e){e.filterSensitiveLog=t=>o({},t)})(yV=d.TimeToLiveDescription||(d.TimeToLiveDescription={}));var gV;(function(e){e.filterSensitiveLog=t=>o({},t)})(gV=d.SourceTableFeatureDetails||(d.SourceTableFeatureDetails={}));var vV;(function(e){e.filterSensitiveLog=t=>o({},t)})(vV=d.BackupDescription||(d.BackupDescription={}));var Zo=class extends Ae.DynamoDBServiceException{constructor(t){super(o({name:"BackupInUseException",$fault:"client"},t)),this.name="BackupInUseException",this.$fault="client",Object.setPrototypeOf(this,Zo.prototype)}};d.BackupInUseException=Zo;var ea=class extends Ae.DynamoDBServiceException{constructor(t){super(o({name:"BackupNotFoundException",$fault:"client"},t)),this.name="BackupNotFoundException",this.$fault="client",Object.setPrototypeOf(this,ea.prototype)}};d.BackupNotFoundException=ea;var SV;(function(e){e.filterSensitiveLog=t=>o({},t)})(SV=d.BackupSummary||(d.BackupSummary={}));var wV;(function(e){e.ALL="ALL",e.AWS_BACKUP="AWS_BACKUP",e.SYSTEM="SYSTEM",e.USER="USER"})(wV=d.BackupTypeFilter||(d.BackupTypeFilter={}));var EV;(function(e){e.filterSensitiveLog=t=>o({},t)})(EV=d.Capacity||(d.Capacity={}));var bV;(function(e){e.filterSensitiveLog=t=>o({},t)})(bV=d.ConsumedCapacity||(d.ConsumedCapacity={}));var AV;(function(e){e.AccessDenied="AccessDenied",e.ConditionalCheckFailed="ConditionalCheckFailed",e.DuplicateItem="DuplicateItem",e.InternalServerError="InternalServerError",e.ItemCollectionSizeLimitExceeded="ItemCollectionSizeLimitExceeded",e.ProvisionedThroughputExceeded="ProvisionedThroughputExceeded",e.RequestLimitExceeded="RequestLimitExceeded",e.ResourceNotFound="ResourceNotFound",e.ThrottlingError="ThrottlingError",e.TransactionConflict="TransactionConflict",e.ValidationError="ValidationError"})(AV=d.BatchStatementErrorCodeEnum||(d.BatchStatementErrorCodeEnum={}));var TV;(function(e){e.filterSensitiveLog=t=>o({},t)})(TV=d.BatchStatementError||(d.BatchStatementError={}));var ta=class extends Ae.DynamoDBServiceException{constructor(t){super(o({name:"InternalServerError",$fault:"server"},t)),this.name="InternalServerError",this.$fault="server",Object.setPrototypeOf(this,ta.prototype)}};d.InternalServerError=ta;var ra=class extends Ae.DynamoDBServiceException{constructor(t){super(o({name:"RequestLimitExceeded",$fault:"client"},t)),this.name="RequestLimitExceeded",this.$fault="client",Object.setPrototypeOf(this,ra.prototype)}};d.RequestLimitExceeded=ra;var na=class extends Ae.DynamoDBServiceException{constructor(t){super(o({name:"InvalidEndpointException",$fault:"client"},t)),this.name="InvalidEndpointException",this.$fault="client",Object.setPrototypeOf(this,na.prototype),this.Message=t.Message}};d.InvalidEndpointException=na;var ia=class extends Ae.DynamoDBServiceException{constructor(t){super(o({name:"ProvisionedThroughputExceededException",$fault:"client"},t)),this.name="ProvisionedThroughputExceededException",this.$fault="client",Object.setPrototypeOf(this,ia.prototype)}};d.ProvisionedThroughputExceededException=ia;var sa=class extends Ae.DynamoDBServiceException{constructor(t){super(o({name:"ResourceNotFoundException",$fault:"client"},t)),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,sa.prototype)}};d.ResourceNotFoundException=sa;var oa=class extends Ae.DynamoDBServiceException{constructor(t){super(o({name:"ItemCollectionSizeLimitExceededException",$fault:"client"},t)),this.name="ItemCollectionSizeLimitExceededException",this.$fault="client",Object.setPrototypeOf(this,oa.prototype)}};d.ItemCollectionSizeLimitExceededException=oa;var CV;(function(e){e.filterSensitiveLog=t=>o({},t)})(CV=d.BillingModeSummary||(d.BillingModeSummary={}));var aa=class extends Ae.DynamoDBServiceException{constructor(t){super(o({name:"ConditionalCheckFailedException",$fault:"client"},t)),this.name="ConditionalCheckFailedException",this.$fault="client",Object.setPrototypeOf(this,aa.prototype)}};d.ConditionalCheckFailedException=aa;var xV;(function(e){e.filterSensitiveLog=t=>o({},t)})(xV=d.PointInTimeRecoveryDescription||(d.PointInTimeRecoveryDescription={}));var IV;(function(e){e.filterSensitiveLog=t=>o({},t)})(IV=d.ContinuousBackupsDescription||(d.ContinuousBackupsDescription={}));var ca=class extends Ae.DynamoDBServiceException{constructor(t){super(o({name:"ContinuousBackupsUnavailableException",$fault:"client"},t)),this.name="ContinuousBackupsUnavailableException",this.$fault="client",Object.setPrototypeOf(this,ca.prototype)}};d.ContinuousBackupsUnavailableException=ca;var RV;(function(e){e.filterSensitiveLog=t=>o({},t)})(RV=d.ContributorInsightsSummary||(d.ContributorInsightsSummary={}));var NV;(function(e){e.filterSensitiveLog=t=>o({},t)})(NV=d.CreateBackupInput||(d.CreateBackupInput={}));var PV;(function(e){e.filterSensitiveLog=t=>o({},t)})(PV=d.CreateBackupOutput||(d.CreateBackupOutput={}));var la=class extends Ae.DynamoDBServiceException{constructor(t){super(o({name:"LimitExceededException",$fault:"client"},t)),this.name="LimitExceededException",this.$fault="client",Object.setPrototypeOf(this,la.prototype)}};d.LimitExceededException=la;var da=class extends Ae.DynamoDBServiceException{constructor(t){super(o({name:"TableInUseException",$fault:"client"},t)),this.name="TableInUseException",this.$fault="client",Object.setPrototypeOf(this,da.prototype)}};d.TableInUseException=da;var ua=class extends Ae.DynamoDBServiceException{constructor(t){super(o({name:"TableNotFoundException",$fault:"client"},t)),this.name="TableNotFoundException",this.$fault="client",Object.setPrototypeOf(this,ua.prototype)}};d.TableNotFoundException=ua;var DV;(function(e){e.filterSensitiveLog=t=>o({},t)})(DV=d.CreateGlobalSecondaryIndexAction||(d.CreateGlobalSecondaryIndexAction={}));var OV;(function(e){e.filterSensitiveLog=t=>o({},t)})(OV=d.Replica||(d.Replica={}));var LV;(function(e){e.filterSensitiveLog=t=>o({},t)})(LV=d.CreateGlobalTableInput||(d.CreateGlobalTableInput={}));var qV;(function(e){e.filterSensitiveLog=t=>o({},t)})(qV=d.ProvisionedThroughputOverride||(d.ProvisionedThroughputOverride={}));var MV;(function(e){e.filterSensitiveLog=t=>o({},t)})(MV=d.ReplicaGlobalSecondaryIndexDescription||(d.ReplicaGlobalSecondaryIndexDescription={}));var zV;(function(e){e.STANDARD="STANDARD",e.STANDARD_INFREQUENT_ACCESS="STANDARD_INFREQUENT_ACCESS"})(zV=d.TableClass||(d.TableClass={}));var jV;(function(e){e.filterSensitiveLog=t=>o({},t)})(jV=d.TableClassSummary||(d.TableClassSummary={}));var kV;(function(e){e.filterSensitiveLog=t=>o({},t)})(kV=d.ReplicaDescription||(d.ReplicaDescription={}));var FV;(function(e){e.filterSensitiveLog=t=>o({},t)})(FV=d.GlobalTableDescription||(d.GlobalTableDescription={}));var UV;(function(e){e.filterSensitiveLog=t=>o({},t)})(UV=d.CreateGlobalTableOutput||(d.CreateGlobalTableOutput={}));var fa=class extends Ae.DynamoDBServiceException{constructor(t){super(o({name:"GlobalTableAlreadyExistsException",$fault:"client"},t)),this.name="GlobalTableAlreadyExistsException",this.$fault="client",Object.setPrototypeOf(this,fa.prototype)}};d.GlobalTableAlreadyExistsException=fa;var BV;(function(e){e.filterSensitiveLog=t=>o({},t)})(BV=d.CreateReplicaAction||(d.CreateReplicaAction={}));var GV;(function(e){e.filterSensitiveLog=t=>o({},t)})(GV=d.ReplicaGlobalSecondaryIndex||(d.ReplicaGlobalSecondaryIndex={}));var $V;(function(e){e.filterSensitiveLog=t=>o({},t)})($V=d.CreateReplicationGroupMemberAction||(d.CreateReplicationGroupMemberAction={}));var VV;(function(e){e.filterSensitiveLog=t=>o({},t)})(VV=d.GlobalSecondaryIndex||(d.GlobalSecondaryIndex={}));var KV;(function(e){e.filterSensitiveLog=t=>o({},t)})(KV=d.LocalSecondaryIndex||(d.LocalSecondaryIndex={}));var HV;(function(e){e.filterSensitiveLog=t=>o({},t)})(HV=d.SSESpecification||(d.SSESpecification={}));var WV;(function(e){e.filterSensitiveLog=t=>o({},t)})(WV=d.Tag||(d.Tag={}));var JV;(function(e){e.filterSensitiveLog=t=>o({},t)})(JV=d.CreateTableInput||(d.CreateTableInput={}));var YV;(function(e){e.filterSensitiveLog=t=>o({},t)})(YV=d.ProvisionedThroughputDescription||(d.ProvisionedThroughputDescription={}));var QV;(function(e){e.filterSensitiveLog=t=>o({},t)})(QV=d.GlobalSecondaryIndexDescription||(d.GlobalSecondaryIndexDescription={}));var XV;(function(e){e.filterSensitiveLog=t=>o({},t)})(XV=d.LocalSecondaryIndexDescription||(d.LocalSecondaryIndexDescription={}));var ZV;(function(e){e.filterSensitiveLog=t=>o({},t)})(ZV=d.RestoreSummary||(d.RestoreSummary={}));var eK;(function(e){e.filterSensitiveLog=t=>o({},t)})(eK=d.TableDescription||(d.TableDescription={}));var tK;(function(e){e.filterSensitiveLog=t=>o({},t)})(tK=d.CreateTableOutput||(d.CreateTableOutput={}));var ma=class extends Ae.DynamoDBServiceException{constructor(t){super(o({name:"ResourceInUseException",$fault:"client"},t)),this.name="ResourceInUseException",this.$fault="client",Object.setPrototypeOf(this,ma.prototype)}};d.ResourceInUseException=ma;var rK;(function(e){e.filterSensitiveLog=t=>o({},t)})(rK=d.DeleteBackupInput||(d.DeleteBackupInput={}));var nK;(function(e){e.filterSensitiveLog=t=>o({},t)})(nK=d.DeleteBackupOutput||(d.DeleteBackupOutput={}));var iK;(function(e){e.filterSensitiveLog=t=>o({},t)})(iK=d.DeleteGlobalSecondaryIndexAction||(d.DeleteGlobalSecondaryIndexAction={}));var pa=class extends Ae.DynamoDBServiceException{constructor(t){super(o({name:"TransactionConflictException",$fault:"client"},t)),this.name="TransactionConflictException",this.$fault="client",Object.setPrototypeOf(this,pa.prototype)}};d.TransactionConflictException=pa;var sK;(function(e){e.filterSensitiveLog=t=>o({},t)})(sK=d.DeleteReplicaAction||(d.DeleteReplicaAction={}));var oK;(function(e){e.filterSensitiveLog=t=>o({},t)})(oK=d.DeleteReplicationGroupMemberAction||(d.DeleteReplicationGroupMemberAction={}));var aK;(function(e){e.filterSensitiveLog=t=>o({},t)})(aK=d.DeleteTableInput||(d.DeleteTableInput={}));var cK;(function(e){e.filterSensitiveLog=t=>o({},t)})(cK=d.DeleteTableOutput||(d.DeleteTableOutput={}));var lK;(function(e){e.filterSensitiveLog=t=>o({},t)})(lK=d.DescribeBackupInput||(d.DescribeBackupInput={}));var dK;(function(e){e.filterSensitiveLog=t=>o({},t)})(dK=d.DescribeBackupOutput||(d.DescribeBackupOutput={}));var uK;(function(e){e.filterSensitiveLog=t=>o({},t)})(uK=d.DescribeContinuousBackupsInput||(d.DescribeContinuousBackupsInput={}));var fK;(function(e){e.filterSensitiveLog=t=>o({},t)})(fK=d.DescribeContinuousBackupsOutput||(d.DescribeContinuousBackupsOutput={}));var mK;(function(e){e.filterSensitiveLog=t=>o({},t)})(mK=d.DescribeContributorInsightsInput||(d.DescribeContributorInsightsInput={}));var pK;(function(e){e.filterSensitiveLog=t=>o({},t)})(pK=d.FailureException||(d.FailureException={}));var _K;(function(e){e.filterSensitiveLog=t=>o({},t)})(_K=d.DescribeContributorInsightsOutput||(d.DescribeContributorInsightsOutput={}));var hK;(function(e){e.filterSensitiveLog=t=>o({},t)})(hK=d.DescribeEndpointsRequest||(d.DescribeEndpointsRequest={}));var yK;(function(e){e.filterSensitiveLog=t=>o({},t)})(yK=d.Endpoint||(d.Endpoint={}));var gK;(function(e){e.filterSensitiveLog=t=>o({},t)})(gK=d.DescribeEndpointsResponse||(d.DescribeEndpointsResponse={}));var vK;(function(e){e.filterSensitiveLog=t=>o({},t)})(vK=d.DescribeExportInput||(d.DescribeExportInput={}));var SK;(function(e){e.DYNAMODB_JSON="DYNAMODB_JSON",e.ION="ION"})(SK=d.ExportFormat||(d.ExportFormat={}));var wK;(function(e){e.COMPLETED="COMPLETED",e.FAILED="FAILED",e.IN_PROGRESS="IN_PROGRESS"})(wK=d.ExportStatus||(d.ExportStatus={}));var EK;(function(e){e.filterSensitiveLog=t=>o({},t)})(EK=d.ExportDescription||(d.ExportDescription={}));var bK;(function(e){e.filterSensitiveLog=t=>o({},t)})(bK=d.DescribeExportOutput||(d.DescribeExportOutput={}));var _a=class extends Ae.DynamoDBServiceException{constructor(t){super(o({name:"ExportNotFoundException",$fault:"client"},t)),this.name="ExportNotFoundException",this.$fault="client",Object.setPrototypeOf(this,_a.prototype)}};d.ExportNotFoundException=_a;var AK;(function(e){e.filterSensitiveLog=t=>o({},t)})(AK=d.DescribeGlobalTableInput||(d.DescribeGlobalTableInput={}));var TK;(function(e){e.filterSensitiveLog=t=>o({},t)})(TK=d.DescribeGlobalTableOutput||(d.DescribeGlobalTableOutput={}));var ha=class extends Ae.DynamoDBServiceException{constructor(t){super(o({name:"GlobalTableNotFoundException",$fault:"client"},t)),this.name="GlobalTableNotFoundException",this.$fault="client",Object.setPrototypeOf(this,ha.prototype)}};d.GlobalTableNotFoundException=ha;var CK;(function(e){e.filterSensitiveLog=t=>o({},t)})(CK=d.DescribeGlobalTableSettingsInput||(d.DescribeGlobalTableSettingsInput={}));var xK;(function(e){e.filterSensitiveLog=t=>o({},t)})(xK=d.ReplicaGlobalSecondaryIndexSettingsDescription||(d.ReplicaGlobalSecondaryIndexSettingsDescription={}));var IK;(function(e){e.filterSensitiveLog=t=>o({},t)})(IK=d.ReplicaSettingsDescription||(d.ReplicaSettingsDescription={}));var RK;(function(e){e.filterSensitiveLog=t=>o({},t)})(RK=d.DescribeGlobalTableSettingsOutput||(d.DescribeGlobalTableSettingsOutput={}));var NK;(function(e){e.filterSensitiveLog=t=>o({},t)})(NK=d.DescribeKinesisStreamingDestinationInput||(d.DescribeKinesisStreamingDestinationInput={}));var PK;(function(e){e.filterSensitiveLog=t=>o({},t)})(PK=d.KinesisDataStreamDestination||(d.KinesisDataStreamDestination={}));var DK;(function(e){e.filterSensitiveLog=t=>o({},t)})(DK=d.DescribeKinesisStreamingDestinationOutput||(d.DescribeKinesisStreamingDestinationOutput={}));var OK;(function(e){e.filterSensitiveLog=t=>o({},t)})(OK=d.DescribeLimitsInput||(d.DescribeLimitsInput={}));var LK;(function(e){e.filterSensitiveLog=t=>o({},t)})(LK=d.DescribeLimitsOutput||(d.DescribeLimitsOutput={}));var qK;(function(e){e.filterSensitiveLog=t=>o({},t)})(qK=d.DescribeTableInput||(d.DescribeTableInput={}));var MK;(function(e){e.filterSensitiveLog=t=>o({},t)})(MK=d.DescribeTableOutput||(d.DescribeTableOutput={}));var zK;(function(e){e.filterSensitiveLog=t=>o({},t)})(zK=d.DescribeTableReplicaAutoScalingInput||(d.DescribeTableReplicaAutoScalingInput={}));var jK;(function(e){e.filterSensitiveLog=t=>o({},t)})(jK=d.ReplicaGlobalSecondaryIndexAutoScalingDescription||(d.ReplicaGlobalSecondaryIndexAutoScalingDescription={}));var kK;(function(e){e.filterSensitiveLog=t=>o({},t)})(kK=d.ReplicaAutoScalingDescription||(d.ReplicaAutoScalingDescription={}));var FK;(function(e){e.filterSensitiveLog=t=>o({},t)})(FK=d.TableAutoScalingDescription||(d.TableAutoScalingDescription={}));var UK;(function(e){e.filterSensitiveLog=t=>o({},t)})(UK=d.DescribeTableReplicaAutoScalingOutput||(d.DescribeTableReplicaAutoScalingOutput={}));var BK;(function(e){e.filterSensitiveLog=t=>o({},t)})(BK=d.DescribeTimeToLiveInput||(d.DescribeTimeToLiveInput={}));var GK;(function(e){e.filterSensitiveLog=t=>o({},t)})(GK=d.DescribeTimeToLiveOutput||(d.DescribeTimeToLiveOutput={}));var $K;(function(e){e.filterSensitiveLog=t=>o({},t)})($K=d.KinesisStreamingDestinationInput||(d.KinesisStreamingDestinationInput={}));var VK;(function(e){e.filterSensitiveLog=t=>o({},t)})(VK=d.KinesisStreamingDestinationOutput||(d.KinesisStreamingDestinationOutput={}));var ya=class extends Ae.DynamoDBServiceException{constructor(t){super(o({name:"DuplicateItemException",$fault:"client"},t)),this.name="DuplicateItemException",this.$fault="client",Object.setPrototypeOf(this,ya.prototype)}};d.DuplicateItemException=ya;var ga=class extends Ae.DynamoDBServiceException{constructor(t){super(o({name:"IdempotentParameterMismatchException",$fault:"client"},t)),this.name="IdempotentParameterMismatchException",this.$fault="client",Object.setPrototypeOf(this,ga.prototype),this.Message=t.Message}};d.IdempotentParameterMismatchException=ga;var va=class extends Ae.DynamoDBServiceException{constructor(t){super(o({name:"TransactionInProgressException",$fault:"client"},t)),this.name="TransactionInProgressException",this.$fault="client",Object.setPrototypeOf(this,va.prototype),this.Message=t.Message}};d.TransactionInProgressException=va;var Sa=class extends Ae.DynamoDBServiceException{constructor(t){super(o({name:"ExportConflictException",$fault:"client"},t)),this.name="ExportConflictException",this.$fault="client",Object.setPrototypeOf(this,Sa.prototype)}};d.ExportConflictException=Sa;var KK;(function(e){e.filterSensitiveLog=t=>o({},t)})(KK=d.ExportTableToPointInTimeInput||(d.ExportTableToPointInTimeInput={}));var HK;(function(e){e.filterSensitiveLog=t=>o({},t)})(HK=d.ExportTableToPointInTimeOutput||(d.ExportTableToPointInTimeOutput={}));var wa=class extends Ae.DynamoDBServiceException{constructor(t){super(o({name:"InvalidExportTimeException",$fault:"client"},t)),this.name="InvalidExportTimeException",this.$fault="client",Object.setPrototypeOf(this,wa.prototype)}};d.InvalidExportTimeException=wa;var Ea=class extends Ae.DynamoDBServiceException{constructor(t){super(o({name:"PointInTimeRecoveryUnavailableException",$fault:"client"},t)),this.name="PointInTimeRecoveryUnavailableException",this.$fault="client",Object.setPrototypeOf(this,Ea.prototype)}};d.PointInTimeRecoveryUnavailableException=Ea;var WK;(function(e){e.filterSensitiveLog=t=>o({},t)})(WK=d.ListBackupsInput||(d.ListBackupsInput={}));var JK;(function(e){e.filterSensitiveLog=t=>o({},t)})(JK=d.ListBackupsOutput||(d.ListBackupsOutput={}));var YK;(function(e){e.filterSensitiveLog=t=>o({},t)})(YK=d.ListContributorInsightsInput||(d.ListContributorInsightsInput={}));var QK;(function(e){e.filterSensitiveLog=t=>o({},t)})(QK=d.ListContributorInsightsOutput||(d.ListContributorInsightsOutput={}));var XK;(function(e){e.filterSensitiveLog=t=>o({},t)})(XK=d.ListExportsInput||(d.ListExportsInput={}));var ZK;(function(e){e.filterSensitiveLog=t=>o({},t)})(ZK=d.ExportSummary||(d.ExportSummary={}));var eH;(function(e){e.filterSensitiveLog=t=>o({},t)})(eH=d.ListExportsOutput||(d.ListExportsOutput={}));var tH;(function(e){e.filterSensitiveLog=t=>o({},t)})(tH=d.ListGlobalTablesInput||(d.ListGlobalTablesInput={}));var rH;(function(e){e.filterSensitiveLog=t=>o({},t)})(rH=d.GlobalTable||(d.GlobalTable={}));var nH;(function(e){e.filterSensitiveLog=t=>o({},t)})(nH=d.ListGlobalTablesOutput||(d.ListGlobalTablesOutput={}));var iH;(function(e){e.filterSensitiveLog=t=>o({},t)})(iH=d.ListTablesInput||(d.ListTablesInput={}));var sH;(function(e){e.filterSensitiveLog=t=>o({},t)})(sH=d.ListTablesOutput||(d.ListTablesOutput={}));var oH;(function(e){e.filterSensitiveLog=t=>o({},t)})(oH=d.ListTagsOfResourceInput||(d.ListTagsOfResourceInput={}));var aH;(function(e){e.filterSensitiveLog=t=>o({},t)})(aH=d.ListTagsOfResourceOutput||(d.ListTagsOfResourceOutput={}));var cH;(function(e){e.filterSensitiveLog=t=>o({},t)})(cH=d.RestoreTableFromBackupInput||(d.RestoreTableFromBackupInput={}));var lH;(function(e){e.filterSensitiveLog=t=>o({},t)})(lH=d.RestoreTableFromBackupOutput||(d.RestoreTableFromBackupOutput={}));var ba=class extends Ae.DynamoDBServiceException{constructor(t){super(o({name:"TableAlreadyExistsException",$fault:"client"},t)),this.name="TableAlreadyExistsException",this.$fault="client",Object.setPrototypeOf(this,ba.prototype)}};d.TableAlreadyExistsException=ba;var Aa=class extends Ae.DynamoDBServiceException{constructor(t){super(o({name:"InvalidRestoreTimeException",$fault:"client"},t)),this.name="InvalidRestoreTimeException",this.$fault="client",Object.setPrototypeOf(this,Aa.prototype)}};d.InvalidRestoreTimeException=Aa;var dH;(function(e){e.filterSensitiveLog=t=>o({},t)})(dH=d.RestoreTableToPointInTimeInput||(d.RestoreTableToPointInTimeInput={}));var uH;(function(e){e.filterSensitiveLog=t=>o({},t)})(uH=d.RestoreTableToPointInTimeOutput||(d.RestoreTableToPointInTimeOutput={}));var fH;(function(e){e.filterSensitiveLog=t=>o({},t)})(fH=d.TagResourceInput||(d.TagResourceInput={}));var mH;(function(e){e.filterSensitiveLog=t=>o({},t)})(mH=d.UntagResourceInput||(d.UntagResourceInput={}));var pH;(function(e){e.filterSensitiveLog=t=>o({},t)})(pH=d.PointInTimeRecoverySpecification||(d.PointInTimeRecoverySpecification={}));var _H;(function(e){e.filterSensitiveLog=t=>o({},t)})(_H=d.UpdateContinuousBackupsInput||(d.UpdateContinuousBackupsInput={}));var hH;(function(e){e.filterSensitiveLog=t=>o({},t)})(hH=d.UpdateContinuousBackupsOutput||(d.UpdateContinuousBackupsOutput={}));var yH;(function(e){e.filterSensitiveLog=t=>o({},t)})(yH=d.UpdateContributorInsightsInput||(d.UpdateContributorInsightsInput={}));var gH;(function(e){e.filterSensitiveLog=t=>o({},t)})(gH=d.UpdateContributorInsightsOutput||(d.UpdateContributorInsightsOutput={}));var Ta=class extends Ae.DynamoDBServiceException{constructor(t){super(o({name:"ReplicaAlreadyExistsException",$fault:"client"},t)),this.name="ReplicaAlreadyExistsException",this.$fault="client",Object.setPrototypeOf(this,Ta.prototype)}};d.ReplicaAlreadyExistsException=Ta;var Ca=class extends Ae.DynamoDBServiceException{constructor(t){super(o({name:"ReplicaNotFoundException",$fault:"client"},t)),this.name="ReplicaNotFoundException",this.$fault="client",Object.setPrototypeOf(this,Ca.prototype)}};d.ReplicaNotFoundException=Ca;var vH;(function(e){e.filterSensitiveLog=t=>o({},t)})(vH=d.ReplicaUpdate||(d.ReplicaUpdate={}));var SH;(function(e){e.filterSensitiveLog=t=>o({},t)})(SH=d.UpdateGlobalTableInput||(d.UpdateGlobalTableInput={}));var wH;(function(e){e.filterSensitiveLog=t=>o({},t)})(wH=d.UpdateGlobalTableOutput||(d.UpdateGlobalTableOutput={}));var xa=class extends Ae.DynamoDBServiceException{constructor(t){super(o({name:"IndexNotFoundException",$fault:"client"},t)),this.name="IndexNotFoundException",this.$fault="client",Object.setPrototypeOf(this,xa.prototype)}};d.IndexNotFoundException=xa;var EH;(function(e){e.filterSensitiveLog=t=>o({},t)})(EH=d.GlobalTableGlobalSecondaryIndexSettingsUpdate||(d.GlobalTableGlobalSecondaryIndexSettingsUpdate={}));var bH;(function(e){e.filterSensitiveLog=t=>o({},t)})(bH=d.ReplicaGlobalSecondaryIndexSettingsUpdate||(d.ReplicaGlobalSecondaryIndexSettingsUpdate={}));var AH;(function(e){e.filterSensitiveLog=t=>o({},t)})(AH=d.ReplicaSettingsUpdate||(d.ReplicaSettingsUpdate={}));var TH;(function(e){e.filterSensitiveLog=t=>o({},t)})(TH=d.UpdateGlobalTableSettingsInput||(d.UpdateGlobalTableSettingsInput={}));var CH;(function(e){e.filterSensitiveLog=t=>o({},t)})(CH=d.UpdateGlobalTableSettingsOutput||(d.UpdateGlobalTableSettingsOutput={}));var xH;(function(e){e.filterSensitiveLog=t=>o({},t)})(xH=d.UpdateGlobalSecondaryIndexAction||(d.UpdateGlobalSecondaryIndexAction={}));var IH;(function(e){e.filterSensitiveLog=t=>o({},t)})(IH=d.GlobalSecondaryIndexUpdate||(d.GlobalSecondaryIndexUpdate={}));var RH;(function(e){e.filterSensitiveLog=t=>o({},t)})(RH=d.UpdateReplicationGroupMemberAction||(d.UpdateReplicationGroupMemberAction={}));var NH;(function(e){e.filterSensitiveLog=t=>o({},t)})(NH=d.ReplicationGroupUpdate||(d.ReplicationGroupUpdate={}));var PH;(function(e){e.filterSensitiveLog=t=>o({},t)})(PH=d.UpdateTableInput||(d.UpdateTableInput={}));var DH;(function(e){e.filterSensitiveLog=t=>o({},t)})(DH=d.UpdateTableOutput||(d.UpdateTableOutput={}));var OH;(function(e){e.filterSensitiveLog=t=>o({},t)})(OH=d.GlobalSecondaryIndexAutoScalingUpdate||(d.GlobalSecondaryIndexAutoScalingUpdate={}));var LH;(function(e){e.filterSensitiveLog=t=>o({},t)})(LH=d.ReplicaGlobalSecondaryIndexAutoScalingUpdate||(d.ReplicaGlobalSecondaryIndexAutoScalingUpdate={}));var qH;(function(e){e.filterSensitiveLog=t=>o({},t)})(qH=d.ReplicaAutoScalingUpdate||(d.ReplicaAutoScalingUpdate={}));var MH;(function(e){e.filterSensitiveLog=t=>o({},t)})(MH=d.UpdateTableReplicaAutoScalingInput||(d.UpdateTableReplicaAutoScalingInput={}));var zH;(function(e){e.filterSensitiveLog=t=>o({},t)})(zH=d.UpdateTableReplicaAutoScalingOutput||(d.UpdateTableReplicaAutoScalingOutput={}));var jH;(function(e){e.filterSensitiveLog=t=>o({},t)})(jH=d.TimeToLiveSpecification||(d.TimeToLiveSpecification={}));var kH;(function(e){e.filterSensitiveLog=t=>o({},t)})(kH=d.UpdateTimeToLiveInput||(d.UpdateTimeToLiveInput={}));var FH;(function(e){e.filterSensitiveLog=t=>o({},t)})(FH=d.UpdateTimeToLiveOutput||(d.UpdateTimeToLiveOutput={}));var ae;(function(e){e.visit=(t,r)=>t.S!==void 0?r.S(t.S):t.N!==void 0?r.N(t.N):t.B!==void 0?r.B(t.B):t.SS!==void 0?r.SS(t.SS):t.NS!==void 0?r.NS(t.NS):t.BS!==void 0?r.BS(t.BS):t.M!==void 0?r.M(t.M):t.L!==void 0?r.L(t.L):t.NULL!==void 0?r.NULL(t.NULL):t.BOOL!==void 0?r.BOOL(t.BOOL):r._(t.$unknown[0],t.$unknown[1]),e.filterSensitiveLog=t=>{if(t.S!==void 0)return{S:t.S};if(t.N!==void 0)return{N:t.N};if(t.B!==void 0)return{B:t.B};if(t.SS!==void 0)return{SS:t.SS};if(t.NS!==void 0)return{NS:t.NS};if(t.BS!==void 0)return{BS:t.BS};if(t.M!==void 0)return{M:Object.entries(t.M).reduce((r,[n,i])=>y(o({},r),{[n]:e.filterSensitiveLog(i)}),{})};if(t.L!==void 0)return{L:t.L.map(r=>e.filterSensitiveLog(r))};if(t.NULL!==void 0)return{NULL:t.NULL};if(t.BOOL!==void 0)return{BOOL:t.BOOL};if(t.$unknown!==void 0)return{[t.$unknown[0]]:"UNKNOWN"}}})(ae=d.AttributeValue||(d.AttributeValue={}));var px;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Value&&{Value:ae.filterSensitiveLog(t.Value)})})(px=d.AttributeValueUpdate||(d.AttributeValueUpdate={}));var _x;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Parameters&&{Parameters:t.Parameters.map(r=>ae.filterSensitiveLog(r))})})(_x=d.BatchStatementRequest||(d.BatchStatementRequest={}));var hx;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})})})(hx=d.BatchStatementResponse||(d.BatchStatementResponse={}));var UH;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})})})(UH=d.CancellationReason||(d.CancellationReason={}));var md;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.AttributeValueList&&{AttributeValueList:t.AttributeValueList.map(r=>ae.filterSensitiveLog(r))})})(md=d.Condition||(d.Condition={}));var yx;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})})})(yx=d.DeleteRequest||(d.DeleteRequest={}));var BH;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Parameters&&{Parameters:t.Parameters.map(r=>ae.filterSensitiveLog(r))})})(BH=d.ExecuteStatementInput||(d.ExecuteStatementInput={}));var gx;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})})})(gx=d.Get||(d.Get={}));var GH;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})})})(GH=d.GetItemInput||(d.GetItemInput={}));var $H;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})})})($H=d.GetItemOutput||(d.GetItemOutput={}));var Ns;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.ItemCollectionKey&&{ItemCollectionKey:Object.entries(t.ItemCollectionKey).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})})})(Ns=d.ItemCollectionMetrics||(d.ItemCollectionMetrics={}));var Sv;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})})})(Sv=d.ItemResponse||(d.ItemResponse={}));var vx;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Parameters&&{Parameters:t.Parameters.map(r=>ae.filterSensitiveLog(r))})})(vx=d.ParameterizedStatement||(d.ParameterizedStatement={}));var Sx;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})})})(Sx=d.PutRequest||(d.PutRequest={}));var wv;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Keys&&{Keys:t.Keys.map(r=>Object.entries(r).reduce((n,[i,s])=>y(o({},n),{[i]:ae.filterSensitiveLog(s)}),{}))})})(wv=d.KeysAndAttributes||(d.KeysAndAttributes={}));var wx;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Get&&{Get:gx.filterSensitiveLog(t.Get)})})(wx=d.TransactGetItem||(d.TransactGetItem={}));var VH;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Statements&&{Statements:t.Statements.map(r=>_x.filterSensitiveLog(r))})})(VH=d.BatchExecuteStatementInput||(d.BatchExecuteStatementInput={}));var KH;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Responses&&{Responses:t.Responses.map(r=>hx.filterSensitiveLog(r))})})(KH=d.BatchExecuteStatementOutput||(d.BatchExecuteStatementOutput={}));var HH;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.TransactStatements&&{TransactStatements:t.TransactStatements.map(r=>vx.filterSensitiveLog(r))})})(HH=d.ExecuteTransactionInput||(d.ExecuteTransactionInput={}));var WH;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Responses&&{Responses:t.Responses.map(r=>Sv.filterSensitiveLog(r))})})(WH=d.ExecuteTransactionOutput||(d.ExecuteTransactionOutput={}));var JH;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Responses&&{Responses:t.Responses.map(r=>Sv.filterSensitiveLog(r))})})(JH=d.TransactGetItemsOutput||(d.TransactGetItemsOutput={}));var Ia=class extends Ae.DynamoDBServiceException{constructor(t){super(o({name:"TransactionCanceledException",$fault:"client"},t)),this.name="TransactionCanceledException",this.$fault="client",Object.setPrototypeOf(this,Ia.prototype),this.Message=t.Message,this.CancellationReasons=t.CancellationReasons}};d.TransactionCanceledException=Ia;var YH;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.RequestItems&&{RequestItems:Object.entries(t.RequestItems).reduce((r,[n,i])=>y(o({},r),{[n]:wv.filterSensitiveLog(i)}),{})})})(YH=d.BatchGetItemInput||(d.BatchGetItemInput={}));var pd;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Value&&{Value:ae.filterSensitiveLog(t.Value)}),t.AttributeValueList&&{AttributeValueList:t.AttributeValueList.map(r=>ae.filterSensitiveLog(r))})})(pd=d.ExpectedAttributeValue||(d.ExpectedAttributeValue={}));var QH;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.TransactItems&&{TransactItems:t.TransactItems.map(r=>wx.filterSensitiveLog(r))})})(QH=d.TransactGetItemsInput||(d.TransactGetItemsInput={}));var XH;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.ItemCollectionMetrics&&{ItemCollectionMetrics:Object.entries(t.ItemCollectionMetrics).reduce((r,[n,i])=>y(o({},r),{[n]:i.map(s=>Ns.filterSensitiveLog(s))}),{})})})(XH=d.TransactWriteItemsOutput||(d.TransactWriteItemsOutput={}));var Ex;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})})})(Ex=d.ConditionCheck||(d.ConditionCheck={}));var bx;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})})})(bx=d.Delete||(d.Delete={}));var Ax;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})})})(Ax=d.Put||(d.Put={}));var Tx;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})})})(Tx=d.Update||(d.Update={}));var ZH;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Attributes&&{Attributes:Object.entries(t.Attributes).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})}),t.ItemCollectionMetrics&&{ItemCollectionMetrics:Ns.filterSensitiveLog(t.ItemCollectionMetrics)})})(ZH=d.DeleteItemOutput||(d.DeleteItemOutput={}));var e3;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Items&&{Items:t.Items.map(r=>Object.entries(r).reduce((n,[i,s])=>y(o({},n),{[i]:ae.filterSensitiveLog(s)}),{}))}),t.LastEvaluatedKey&&{LastEvaluatedKey:Object.entries(t.LastEvaluatedKey).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})})})(e3=d.ExecuteStatementOutput||(d.ExecuteStatementOutput={}));var t3;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Attributes&&{Attributes:Object.entries(t.Attributes).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})}),t.ItemCollectionMetrics&&{ItemCollectionMetrics:Ns.filterSensitiveLog(t.ItemCollectionMetrics)})})(t3=d.PutItemOutput||(d.PutItemOutput={}));var r3;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Items&&{Items:t.Items.map(r=>Object.entries(r).reduce((n,[i,s])=>y(o({},n),{[i]:ae.filterSensitiveLog(s)}),{}))}),t.LastEvaluatedKey&&{LastEvaluatedKey:Object.entries(t.LastEvaluatedKey).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})})})(r3=d.QueryOutput||(d.QueryOutput={}));var n3;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Items&&{Items:t.Items.map(r=>Object.entries(r).reduce((n,[i,s])=>y(o({},n),{[i]:ae.filterSensitiveLog(s)}),{}))}),t.LastEvaluatedKey&&{LastEvaluatedKey:Object.entries(t.LastEvaluatedKey).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})})})(n3=d.ScanOutput||(d.ScanOutput={}));var i3;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Attributes&&{Attributes:Object.entries(t.Attributes).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})}),t.ItemCollectionMetrics&&{ItemCollectionMetrics:Ns.filterSensitiveLog(t.ItemCollectionMetrics)})})(i3=d.UpdateItemOutput||(d.UpdateItemOutput={}));var Ev;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.PutRequest&&{PutRequest:Sx.filterSensitiveLog(t.PutRequest)}),t.DeleteRequest&&{DeleteRequest:yx.filterSensitiveLog(t.DeleteRequest)})})(Ev=d.WriteRequest||(d.WriteRequest={}));var s3;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Responses&&{Responses:Object.entries(t.Responses).reduce((r,[n,i])=>y(o({},r),{[n]:i.map(s=>Object.entries(s).reduce((a,[c,l])=>y(o({},a),{[c]:ae.filterSensitiveLog(l)}),{}))}),{})}),t.UnprocessedKeys&&{UnprocessedKeys:Object.entries(t.UnprocessedKeys).reduce((r,[n,i])=>y(o({},r),{[n]:wv.filterSensitiveLog(i)}),{})})})(s3=d.BatchGetItemOutput||(d.BatchGetItemOutput={}));var o3;(function(e){e.filterSensitiveLog=t=>o(o(o(o({},t),t.ScanFilter&&{ScanFilter:Object.entries(t.ScanFilter).reduce((r,[n,i])=>y(o({},r),{[n]:md.filterSensitiveLog(i)}),{})}),t.ExclusiveStartKey&&{ExclusiveStartKey:Object.entries(t.ExclusiveStartKey).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})})})(o3=d.ScanInput||(d.ScanInput={}));var a3;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.RequestItems&&{RequestItems:Object.entries(t.RequestItems).reduce((r,[n,i])=>y(o({},r),{[n]:i.map(s=>Ev.filterSensitiveLog(s))}),{})})})(a3=d.BatchWriteItemInput||(d.BatchWriteItemInput={}));var c3;(function(e){e.filterSensitiveLog=t=>o(o(o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})}),t.Expected&&{Expected:Object.entries(t.Expected).reduce((r,[n,i])=>y(o({},r),{[n]:pd.filterSensitiveLog(i)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})})})(c3=d.DeleteItemInput||(d.DeleteItemInput={}));var l3;(function(e){e.filterSensitiveLog=t=>o(o(o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})}),t.Expected&&{Expected:Object.entries(t.Expected).reduce((r,[n,i])=>y(o({},r),{[n]:pd.filterSensitiveLog(i)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})})})(l3=d.PutItemInput||(d.PutItemInput={}));var d3;(function(e){e.filterSensitiveLog=t=>o(o(o(o(o({},t),t.KeyConditions&&{KeyConditions:Object.entries(t.KeyConditions).reduce((r,[n,i])=>y(o({},r),{[n]:md.filterSensitiveLog(i)}),{})}),t.QueryFilter&&{QueryFilter:Object.entries(t.QueryFilter).reduce((r,[n,i])=>y(o({},r),{[n]:md.filterSensitiveLog(i)}),{})}),t.ExclusiveStartKey&&{ExclusiveStartKey:Object.entries(t.ExclusiveStartKey).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})})})(d3=d.QueryInput||(d.QueryInput={}));var u3;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.UnprocessedItems&&{UnprocessedItems:Object.entries(t.UnprocessedItems).reduce((r,[n,i])=>y(o({},r),{[n]:i.map(s=>Ev.filterSensitiveLog(s))}),{})}),t.ItemCollectionMetrics&&{ItemCollectionMetrics:Object.entries(t.ItemCollectionMetrics).reduce((r,[n,i])=>y(o({},r),{[n]:i.map(s=>Ns.filterSensitiveLog(s))}),{})})})(u3=d.BatchWriteItemOutput||(d.BatchWriteItemOutput={}));var f3;(function(e){e.filterSensitiveLog=t=>o(o(o(o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})}),t.AttributeUpdates&&{AttributeUpdates:Object.entries(t.AttributeUpdates).reduce((r,[n,i])=>y(o({},r),{[n]:px.filterSensitiveLog(i)}),{})}),t.Expected&&{Expected:Object.entries(t.Expected).reduce((r,[n,i])=>y(o({},r),{[n]:pd.filterSensitiveLog(i)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})})})(f3=d.UpdateItemInput||(d.UpdateItemInput={}));var Cx;(function(e){e.filterSensitiveLog=t=>o(o(o(o(o({},t),t.ConditionCheck&&{ConditionCheck:Ex.filterSensitiveLog(t.ConditionCheck)}),t.Put&&{Put:Ax.filterSensitiveLog(t.Put)}),t.Delete&&{Delete:bx.filterSensitiveLog(t.Delete)}),t.Update&&{Update:Tx.filterSensitiveLog(t.Update)})})(Cx=d.TransactWriteItem||(d.TransactWriteItem={}));var m3;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.TransactItems&&{TransactItems:t.TransactItems.map(r=>Cx.filterSensitiveLog(r))})})(m3=d.TransactWriteItemsInput||(d.TransactWriteItemsInput={}))});var Ix=m(xx=>{"use strict";Object.defineProperty(xx,"__esModule",{value:!0})});var Rx=m(_d=>{"use strict";Object.defineProperty(_d,"__esModule",{value:!0});_d.HttpRequest=void 0;var Ra=class{constructor(t){this.method=t.method||"GET",this.hostname=t.hostname||"localhost",this.port=t.port,this.query=t.query||{},this.headers=t.headers||{},this.body=t.body,this.protocol=t.protocol?t.protocol.slice(-1)!==":"?`${t.protocol}:`:t.protocol:"https:",this.path=t.path?t.path.charAt(0)!=="/"?`/${t.path}`:t.path:"/"}static isInstance(t){if(!t)return!1;let r=t;return"method"in r&&"protocol"in r&&"hostname"in r&&"path"in r&&typeof r.query=="object"&&typeof r.headers=="object"}clone(){let t=new Ra(y(o({},this),{headers:o({},this.headers)}));return t.query&&(t.query=p3(t.query)),t}};_d.HttpRequest=Ra;function p3(e){return Object.keys(e).reduce((t,r)=>{let n=e[r];return y(o({},t),{[r]:Array.isArray(n)?[...n]:n})},{})}});var Nx=m(hd=>{"use strict";Object.defineProperty(hd,"__esModule",{value:!0});hd.HttpResponse=void 0;var bv=class{constructor(t){this.statusCode=t.statusCode,this.headers=t.headers||{},this.body=t.body}static isInstance(t){if(!t)return!1;let r=t;return typeof r.statusCode=="number"&&typeof r.headers=="object"}};hd.HttpResponse=bv});var Px=m(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0});yd.isValidHostname=void 0;function _3(e){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(e)}yd.isValidHostname=_3});var It=m(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});var gd=$();gd.__exportStar(Ix(),Ps);gd.__exportStar(Rx(),Ps);gd.__exportStar(Nx(),Ps);gd.__exportStar(Px(),Ps)});var Tv=m(Av=>{"use strict";Object.defineProperty(Av,"__esModule",{value:!0});Av.default=g3;var h3=y3(require("crypto"));function y3(e){return e&&e.__esModule?e:{default:e}}var Sd=new Uint8Array(256),vd=Sd.length;function g3(){return vd>Sd.length-16&&(h3.default.randomFillSync(Sd),vd=0),Sd.slice(vd,vd+=16)}});var Dx=m(wd=>{"use strict";Object.defineProperty(wd,"__esModule",{value:!0});wd.default=void 0;var v3=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;wd.default=v3});var Na=m(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0});Ed.default=void 0;var S3=w3(Dx());function w3(e){return e&&e.__esModule?e:{default:e}}function E3(e){return typeof e=="string"&&S3.default.test(e)}var b3=E3;Ed.default=b3});var Pa=m(bd=>{"use strict";Object.defineProperty(bd,"__esModule",{value:!0});bd.default=void 0;var A3=T3(Na());function T3(e){return e&&e.__esModule?e:{default:e}}var dt=[];for(let e=0;e<256;++e)dt.push((e+256).toString(16).substr(1));function C3(e,t=0){let r=(dt[e[t+0]]+dt[e[t+1]]+dt[e[t+2]]+dt[e[t+3]]+"-"+dt[e[t+4]]+dt[e[t+5]]+"-"+dt[e[t+6]]+dt[e[t+7]]+"-"+dt[e[t+8]]+dt[e[t+9]]+"-"+dt[e[t+10]]+dt[e[t+11]]+dt[e[t+12]]+dt[e[t+13]]+dt[e[t+14]]+dt[e[t+15]]).toLowerCase();if(!(0,A3.default)(r))throw TypeError("Stringified UUID is invalid");return r}var x3=C3;bd.default=x3});var qx=m(Ad=>{"use strict";Object.defineProperty(Ad,"__esModule",{value:!0});Ad.default=void 0;var I3=Lx(Tv()),R3=Lx(Pa());function Lx(e){return e&&e.__esModule?e:{default:e}}var Ox,Cv,xv=0,Iv=0;function N3(e,t,r){let n=t&&r||0,i=t||new Array(16);e=e||{};let s=e.node||Ox,a=e.clockseq!==void 0?e.clockseq:Cv;if(s==null||a==null){let h=e.random||(e.rng||I3.default)();s==null&&(s=Ox=[h[0]|1,h[1],h[2],h[3],h[4],h[5]]),a==null&&(a=Cv=(h[6]<<8|h[7])&16383)}let c=e.msecs!==void 0?e.msecs:Date.now(),l=e.nsecs!==void 0?e.nsecs:Iv+1,u=c-xv+(l-Iv)/1e4;if(u<0&&e.clockseq===void 0&&(a=a+1&16383),(u<0||c>xv)&&e.nsecs===void 0&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");xv=c,Iv=l,Cv=a,c+=122192928e5;let f=((c&268435455)*1e4+l)%4294967296;i[n++]=f>>>24&255,i[n++]=f>>>16&255,i[n++]=f>>>8&255,i[n++]=f&255;let _=c/4294967296*1e4&268435455;i[n++]=_>>>8&255,i[n++]=_&255,i[n++]=_>>>24&15|16,i[n++]=_>>>16&255,i[n++]=a>>>8|128,i[n++]=a&255;for(let h=0;h<6;++h)i[n+h]=s[h];return t||(0,R3.default)(i)}var P3=N3;Ad.default=P3});var Rv=m(Td=>{"use strict";Object.defineProperty(Td,"__esModule",{value:!0});Td.default=void 0;var D3=O3(Na());function O3(e){return e&&e.__esModule?e:{default:e}}function L3(e){if(!(0,D3.default)(e))throw TypeError("Invalid UUID");let t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=t&255,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=t&255,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=t&255,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=t&255,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=t&255,r}var q3=L3;Td.default=q3});var Nv=m(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});Ri.default=k3;Ri.URL=Ri.DNS=void 0;var M3=Mx(Pa()),z3=Mx(Rv());function Mx(e){return e&&e.__esModule?e:{default:e}}function j3(e){e=unescape(encodeURIComponent(e));let t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}var zx="6ba7b810-9dad-11d1-80b4-00c04fd430c8";Ri.DNS=zx;var jx="6ba7b811-9dad-11d1-80b4-00c04fd430c8";Ri.URL=jx;function k3(e,t,r){function n(i,s,a,c){if(typeof i=="string"&&(i=j3(i)),typeof s=="string"&&(s=(0,z3.default)(s)),s.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let l=new Uint8Array(16+i.length);if(l.set(s),l.set(i,s.length),l=r(l),l[6]=l[6]&15|t,l[8]=l[8]&63|128,a){c=c||0;for(let u=0;u<16;++u)a[c+u]=l[u];return a}return(0,M3.default)(l)}try{n.name=e}catch{}return n.DNS=zx,n.URL=jx,n}});var kx=m(Cd=>{"use strict";Object.defineProperty(Cd,"__esModule",{value:!0});Cd.default=void 0;var F3=U3(require("crypto"));function U3(e){return e&&e.__esModule?e:{default:e}}function B3(e){return Array.isArray(e)?e=Buffer.from(e):typeof e=="string"&&(e=Buffer.from(e,"utf8")),F3.default.createHash("md5").update(e).digest()}var G3=B3;Cd.default=G3});var Ux=m(xd=>{"use strict";Object.defineProperty(xd,"__esModule",{value:!0});xd.default=void 0;var $3=Fx(Nv()),V3=Fx(kx());function Fx(e){return e&&e.__esModule?e:{default:e}}var K3=(0,$3.default)("v3",48,V3.default),H3=K3;xd.default=H3});var Gx=m(Id=>{"use strict";Object.defineProperty(Id,"__esModule",{value:!0});Id.default=void 0;var W3=Bx(Tv()),J3=Bx(Pa());function Bx(e){return e&&e.__esModule?e:{default:e}}function Y3(e,t,r){e=e||{};let n=e.random||(e.rng||W3.default)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,t){r=r||0;for(let i=0;i<16;++i)t[r+i]=n[i];return t}return(0,J3.default)(n)}var Q3=Y3;Id.default=Q3});var $x=m(Rd=>{"use strict";Object.defineProperty(Rd,"__esModule",{value:!0});Rd.default=void 0;var X3=Z3(require("crypto"));function Z3(e){return e&&e.__esModule?e:{default:e}}function eW(e){return Array.isArray(e)?e=Buffer.from(e):typeof e=="string"&&(e=Buffer.from(e,"utf8")),X3.default.createHash("sha1").update(e).digest()}var tW=eW;Rd.default=tW});var Kx=m(Nd=>{"use strict";Object.defineProperty(Nd,"__esModule",{value:!0});Nd.default=void 0;var rW=Vx(Nv()),nW=Vx($x());function Vx(e){return e&&e.__esModule?e:{default:e}}var iW=(0,rW.default)("v5",80,nW.default),sW=iW;Nd.default=sW});var Hx=m(Pd=>{"use strict";Object.defineProperty(Pd,"__esModule",{value:!0});Pd.default=void 0;var oW="00000000-0000-0000-0000-000000000000";Pd.default=oW});var Wx=m(Dd=>{"use strict";Object.defineProperty(Dd,"__esModule",{value:!0});Dd.default=void 0;var aW=cW(Na());function cW(e){return e&&e.__esModule?e:{default:e}}function lW(e){if(!(0,aW.default)(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}var dW=lW;Dd.default=dW});var Pv=m(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});Object.defineProperty(ar,"v1",{enumerable:!0,get:function(){return uW.default}});Object.defineProperty(ar,"v3",{enumerable:!0,get:function(){return fW.default}});Object.defineProperty(ar,"v4",{enumerable:!0,get:function(){return mW.default}});Object.defineProperty(ar,"v5",{enumerable:!0,get:function(){return pW.default}});Object.defineProperty(ar,"NIL",{enumerable:!0,get:function(){return _W.default}});Object.defineProperty(ar,"version",{enumerable:!0,get:function(){return hW.default}});Object.defineProperty(ar,"validate",{enumerable:!0,get:function(){return yW.default}});Object.defineProperty(ar,"stringify",{enumerable:!0,get:function(){return gW.default}});Object.defineProperty(ar,"parse",{enumerable:!0,get:function(){return vW.default}});var uW=ln(qx()),fW=ln(Ux()),mW=ln(Gx()),pW=ln(Kx()),_W=ln(Hx()),hW=ln(Wx()),yW=ln(Na()),gW=ln(Pa()),vW=ln(Rv());function ln(e){return e&&e.__esModule?e:{default:e}}});var Z=m(w=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});w.serializeAws_json1_0UpdateTimeToLiveCommand=w.serializeAws_json1_0UpdateTableReplicaAutoScalingCommand=w.serializeAws_json1_0UpdateTableCommand=w.serializeAws_json1_0UpdateItemCommand=w.serializeAws_json1_0UpdateGlobalTableSettingsCommand=w.serializeAws_json1_0UpdateGlobalTableCommand=w.serializeAws_json1_0UpdateContributorInsightsCommand=w.serializeAws_json1_0UpdateContinuousBackupsCommand=w.serializeAws_json1_0UntagResourceCommand=w.serializeAws_json1_0TransactWriteItemsCommand=w.serializeAws_json1_0TransactGetItemsCommand=w.serializeAws_json1_0TagResourceCommand=w.serializeAws_json1_0ScanCommand=w.serializeAws_json1_0RestoreTableToPointInTimeCommand=w.serializeAws_json1_0RestoreTableFromBackupCommand=w.serializeAws_json1_0QueryCommand=w.serializeAws_json1_0PutItemCommand=w.serializeAws_json1_0ListTagsOfResourceCommand=w.serializeAws_json1_0ListTablesCommand=w.serializeAws_json1_0ListGlobalTablesCommand=w.serializeAws_json1_0ListExportsCommand=w.serializeAws_json1_0ListContributorInsightsCommand=w.serializeAws_json1_0ListBackupsCommand=w.serializeAws_json1_0GetItemCommand=w.serializeAws_json1_0ExportTableToPointInTimeCommand=w.serializeAws_json1_0ExecuteTransactionCommand=w.serializeAws_json1_0ExecuteStatementCommand=w.serializeAws_json1_0EnableKinesisStreamingDestinationCommand=w.serializeAws_json1_0DisableKinesisStreamingDestinationCommand=w.serializeAws_json1_0DescribeTimeToLiveCommand=w.serializeAws_json1_0DescribeTableReplicaAutoScalingCommand=w.serializeAws_json1_0DescribeTableCommand=w.serializeAws_json1_0DescribeLimitsCommand=w.serializeAws_json1_0DescribeKinesisStreamingDestinationCommand=w.serializeAws_json1_0DescribeGlobalTableSettingsCommand=w.serializeAws_json1_0DescribeGlobalTableCommand=w.serializeAws_json1_0DescribeExportCommand=w.serializeAws_json1_0DescribeEndpointsCommand=w.serializeAws_json1_0DescribeContributorInsightsCommand=w.serializeAws_json1_0DescribeContinuousBackupsCommand=w.serializeAws_json1_0DescribeBackupCommand=w.serializeAws_json1_0DeleteTableCommand=w.serializeAws_json1_0DeleteItemCommand=w.serializeAws_json1_0DeleteBackupCommand=w.serializeAws_json1_0CreateTableCommand=w.serializeAws_json1_0CreateGlobalTableCommand=w.serializeAws_json1_0CreateBackupCommand=w.serializeAws_json1_0BatchWriteItemCommand=w.serializeAws_json1_0BatchGetItemCommand=w.serializeAws_json1_0BatchExecuteStatementCommand=void 0;w.deserializeAws_json1_0UpdateTimeToLiveCommand=w.deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand=w.deserializeAws_json1_0UpdateTableCommand=w.deserializeAws_json1_0UpdateItemCommand=w.deserializeAws_json1_0UpdateGlobalTableSettingsCommand=w.deserializeAws_json1_0UpdateGlobalTableCommand=w.deserializeAws_json1_0UpdateContributorInsightsCommand=w.deserializeAws_json1_0UpdateContinuousBackupsCommand=w.deserializeAws_json1_0UntagResourceCommand=w.deserializeAws_json1_0TransactWriteItemsCommand=w.deserializeAws_json1_0TransactGetItemsCommand=w.deserializeAws_json1_0TagResourceCommand=w.deserializeAws_json1_0ScanCommand=w.deserializeAws_json1_0RestoreTableToPointInTimeCommand=w.deserializeAws_json1_0RestoreTableFromBackupCommand=w.deserializeAws_json1_0QueryCommand=w.deserializeAws_json1_0PutItemCommand=w.deserializeAws_json1_0ListTagsOfResourceCommand=w.deserializeAws_json1_0ListTablesCommand=w.deserializeAws_json1_0ListGlobalTablesCommand=w.deserializeAws_json1_0ListExportsCommand=w.deserializeAws_json1_0ListContributorInsightsCommand=w.deserializeAws_json1_0ListBackupsCommand=w.deserializeAws_json1_0GetItemCommand=w.deserializeAws_json1_0ExportTableToPointInTimeCommand=w.deserializeAws_json1_0ExecuteTransactionCommand=w.deserializeAws_json1_0ExecuteStatementCommand=w.deserializeAws_json1_0EnableKinesisStreamingDestinationCommand=w.deserializeAws_json1_0DisableKinesisStreamingDestinationCommand=w.deserializeAws_json1_0DescribeTimeToLiveCommand=w.deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand=w.deserializeAws_json1_0DescribeTableCommand=w.deserializeAws_json1_0DescribeLimitsCommand=w.deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand=w.deserializeAws_json1_0DescribeGlobalTableSettingsCommand=w.deserializeAws_json1_0DescribeGlobalTableCommand=w.deserializeAws_json1_0DescribeExportCommand=w.deserializeAws_json1_0DescribeEndpointsCommand=w.deserializeAws_json1_0DescribeContributorInsightsCommand=w.deserializeAws_json1_0DescribeContinuousBackupsCommand=w.deserializeAws_json1_0DescribeBackupCommand=w.deserializeAws_json1_0DeleteTableCommand=w.deserializeAws_json1_0DeleteItemCommand=w.deserializeAws_json1_0DeleteBackupCommand=w.deserializeAws_json1_0CreateTableCommand=w.deserializeAws_json1_0CreateGlobalTableCommand=w.deserializeAws_json1_0CreateBackupCommand=w.deserializeAws_json1_0BatchWriteItemCommand=w.deserializeAws_json1_0BatchGetItemCommand=w.deserializeAws_json1_0BatchExecuteStatementCommand=void 0;var SW=It(),p=P(),Dv=Pv(),te=fd(),we=Y(),wW=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.BatchExecuteStatement"},n;return n=JSON.stringify(E6(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0BatchExecuteStatementCommand=wW;var EW=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.BatchGetItem"},n;return n=JSON.stringify(b6(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0BatchGetItemCommand=EW;var bW=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.BatchWriteItem"},n;return n=JSON.stringify(C6(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0BatchWriteItemCommand=bW;var AW=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.CreateBackup"},n;return n=JSON.stringify(N6(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0CreateBackupCommand=AW;var TW=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.CreateGlobalTable"},n;return n=JSON.stringify(D6(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0CreateGlobalTableCommand=TW;var CW=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.CreateTable"},n;return n=JSON.stringify(q6(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0CreateTableCommand=CW;var xW=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DeleteBackup"},n;return n=JSON.stringify(z6(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0DeleteBackupCommand=xW;var IW=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DeleteItem"},n;return n=JSON.stringify(k6(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0DeleteItemCommand=IW;var RW=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DeleteTable"},n;return n=JSON.stringify(G6(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0DeleteTableCommand=RW;var NW=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeBackup"},n;return n=JSON.stringify($6(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0DescribeBackupCommand=NW;var PW=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeContinuousBackups"},n;return n=JSON.stringify(V6(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0DescribeContinuousBackupsCommand=PW;var DW=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeContributorInsights"},n;return n=JSON.stringify(K6(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0DescribeContributorInsightsCommand=DW;var OW=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeEndpoints"},n;return n=JSON.stringify(H6(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0DescribeEndpointsCommand=OW;var LW=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeExport"},n;return n=JSON.stringify(W6(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0DescribeExportCommand=LW;var qW=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeGlobalTable"},n;return n=JSON.stringify(J6(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0DescribeGlobalTableCommand=qW;var MW=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeGlobalTableSettings"},n;return n=JSON.stringify(Y6(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0DescribeGlobalTableSettingsCommand=MW;var zW=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeKinesisStreamingDestination"},n;return n=JSON.stringify(Q6(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0DescribeKinesisStreamingDestinationCommand=zW;var jW=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeLimits"},n;return n=JSON.stringify(X6(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0DescribeLimitsCommand=jW;var kW=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeTable"},n;return n=JSON.stringify(Z6(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0DescribeTableCommand=kW;var FW=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeTableReplicaAutoScaling"},n;return n=JSON.stringify(e5(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0DescribeTableReplicaAutoScalingCommand=FW;var UW=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeTimeToLive"},n;return n=JSON.stringify(t5(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0DescribeTimeToLiveCommand=UW;var BW=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DisableKinesisStreamingDestination"},n;return n=JSON.stringify(oI(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0DisableKinesisStreamingDestinationCommand=BW;var GW=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.EnableKinesisStreamingDestination"},n;return n=JSON.stringify(oI(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0EnableKinesisStreamingDestinationCommand=GW;var $W=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ExecuteStatement"},n;return n=JSON.stringify(r5(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0ExecuteStatementCommand=$W;var VW=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ExecuteTransaction"},n;return n=JSON.stringify(n5(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0ExecuteTransactionCommand=VW;var KW=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ExportTableToPointInTime"},n;return n=JSON.stringify(s5(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0ExportTableToPointInTimeCommand=KW;var HW=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.GetItem"},n;return n=JSON.stringify(a5(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0GetItemCommand=HW;var WW=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListBackups"},n;return n=JSON.stringify(S5(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0ListBackupsCommand=WW;var JW=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListContributorInsights"},n;return n=JSON.stringify(w5(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0ListContributorInsightsCommand=JW;var YW=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListExports"},n;return n=JSON.stringify(E5(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0ListExportsCommand=YW;var QW=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListGlobalTables"},n;return n=JSON.stringify(b5(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0ListGlobalTablesCommand=QW;var XW=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListTables"},n;return n=JSON.stringify(A5(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0ListTablesCommand=XW;var ZW=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListTagsOfResource"},n;return n=JSON.stringify(T5(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0ListTagsOfResourceCommand=ZW;var e8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.PutItem"},n;return n=JSON.stringify(q5(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0PutItemCommand=e8;var t8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.Query"},n;return n=JSON.stringify(z5(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0QueryCommand=t8;var r8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.RestoreTableFromBackup"},n;return n=JSON.stringify(Z5(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0RestoreTableFromBackupCommand=r8;var n8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.RestoreTableToPointInTime"},n;return n=JSON.stringify(eJ(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0RestoreTableToPointInTimeCommand=n8;var i8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.Scan"},n;return n=JSON.stringify(tJ(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0ScanCommand=i8;var s8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.TagResource"},n;return n=JSON.stringify(sJ(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0TagResourceCommand=s8;var o8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.TransactGetItems"},n;return n=JSON.stringify(lJ(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0TransactGetItemsCommand=o8;var a8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.TransactWriteItems"},n;return n=JSON.stringify(fJ(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0TransactWriteItemsCommand=a8;var c8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UntagResource"},n;return n=JSON.stringify(mJ(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0UntagResourceCommand=c8;var l8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateContinuousBackups"},n;return n=JSON.stringify(_J(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0UpdateContinuousBackupsCommand=l8;var d8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateContributorInsights"},n;return n=JSON.stringify(hJ(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0UpdateContributorInsightsCommand=d8;var u8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateGlobalTable"},n;return n=JSON.stringify(gJ(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0UpdateGlobalTableCommand=u8;var f8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateGlobalTableSettings"},n;return n=JSON.stringify(vJ(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0UpdateGlobalTableSettingsCommand=f8;var m8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateItem"},n;return n=JSON.stringify(SJ(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0UpdateItemCommand=m8;var p8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateTable"},n;return n=JSON.stringify(EJ(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0UpdateTableCommand=p8;var _8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateTableReplicaAutoScaling"},n;return n=JSON.stringify(bJ(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0UpdateTableReplicaAutoScalingCommand=_8;var h8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateTimeToLive"},n;return n=JSON.stringify(AJ(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0UpdateTimeToLiveCommand=h8;var y8=async(e,t)=>{if(e.statusCode>=300)return g8(e,t);let r=await D(e.body,t),n={};n=jJ(r,t);let i=o({$metadata:x(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0BatchExecuteStatementCommand=y8;var g8=async(e,t)=>{let r=y(o({},e),{body:await D(e.body,t)}),n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Gt(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(n,s)}},v8=async(e,t)=>{if(e.statusCode>=300)return S8(e,t);let r=await D(e.body,t),n={};n=kJ(r,t);let i=o({$metadata:x(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0BatchGetItemCommand=v8;var S8=async(e,t)=>{let r=y(o({},e),{body:await D(e.body,t)}),n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await fe(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Qt(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Gt(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Pe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(n,s)}},w8=async(e,t)=>{if(e.statusCode>=300)return E8(e,t);let r=await D(e.body,t),n={};n=$J(r,t);let i=o({$metadata:x(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0BatchWriteItemCommand=w8;var E8=async(e,t)=>{let r=y(o({},e),{body:await D(e.body,t)}),n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await fe(r,t);case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":throw await Da(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Qt(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Gt(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Pe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(n,s)}},b8=async(e,t)=>{if(e.statusCode>=300)return A8(e,t);let r=await D(e.body,t),n={};n=eY(r,t);let i=o({$metadata:x(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0CreateBackupCommand=b8;var A8=async(e,t)=>{let r=y(o({},e),{body:await D(e.body,t)}),n,i="UnknownError";switch(i=ne(e,r.body),i){case"BackupInUseException":case"com.amazonaws.dynamodb#BackupInUseException":throw await Ov(r,t);case"ContinuousBackupsUnavailableException":case"com.amazonaws.dynamodb#ContinuousBackupsUnavailableException":throw await Yx(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await fe(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await tt(r,t);case"TableInUseException":case"com.amazonaws.dynamodb#TableInUseException":throw await qv(r,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await Ni(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(n,s)}},T8=async(e,t)=>{if(e.statusCode>=300)return C8(e,t);let r=await D(e.body,t),n={};n=tY(r,t);let i=o({$metadata:x(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0CreateGlobalTableCommand=T8;var C8=async(e,t)=>{let r=y(o({},e),{body:await D(e.body,t)}),n,i="UnknownError";switch(i=ne(e,r.body),i){case"GlobalTableAlreadyExistsException":case"com.amazonaws.dynamodb#GlobalTableAlreadyExistsException":throw await f6(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await fe(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await tt(r,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await Ni(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(n,s)}},x8=async(e,t)=>{if(e.statusCode>=300)return I8(e,t);let r=await D(e.body,t),n={};n=rY(r,t);let i=o({$metadata:x(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0CreateTableCommand=x8;var I8=async(e,t)=>{let r=y(o({},e),{body:await D(e.body,t)}),n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await fe(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await tt(r,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await Er(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(n,s)}},R8=async(e,t)=>{if(e.statusCode>=300)return N8(e,t);let r=await D(e.body,t),n={};n=nY(r,t);let i=o({$metadata:x(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0DeleteBackupCommand=R8;var N8=async(e,t)=>{let r=y(o({},e),{body:await D(e.body,t)}),n,i="UnknownError";switch(i=ne(e,r.body),i){case"BackupInUseException":case"com.amazonaws.dynamodb#BackupInUseException":throw await Ov(r,t);case"BackupNotFoundException":case"com.amazonaws.dynamodb#BackupNotFoundException":throw await Lv(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await fe(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await tt(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(n,s)}},P8=async(e,t)=>{if(e.statusCode>=300)return D8(e,t);let r=await D(e.body,t),n={};n=iY(r,t);let i=o({$metadata:x(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0DeleteItemCommand=P8;var D8=async(e,t)=>{let r=y(o({},e),{body:await D(e.body,t)}),n,i="UnknownError";switch(i=ne(e,r.body),i){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":throw await Od(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await fe(r,t);case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":throw await Da(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Qt(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Gt(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Pe(r,t);case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":throw await qd(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(n,s)}},O8=async(e,t)=>{if(e.statusCode>=300)return L8(e,t);let r=await D(e.body,t),n={};n=oY(r,t);let i=o({$metadata:x(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0DeleteTableCommand=O8;var L8=async(e,t)=>{let r=y(o({},e),{body:await D(e.body,t)}),n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await fe(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await tt(r,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await Er(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Pe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(n,s)}},q8=async(e,t)=>{if(e.statusCode>=300)return M8(e,t);let r=await D(e.body,t),n={};n=aY(r,t);let i=o({$metadata:x(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeBackupCommand=q8;var M8=async(e,t)=>{let r=y(o({},e),{body:await D(e.body,t)}),n,i="UnknownError";switch(i=ne(e,r.body),i){case"BackupNotFoundException":case"com.amazonaws.dynamodb#BackupNotFoundException":throw await Lv(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await fe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(n,s)}},z8=async(e,t)=>{if(e.statusCode>=300)return j8(e,t);let r=await D(e.body,t),n={};n=cY(r,t);let i=o({$metadata:x(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeContinuousBackupsCommand=z8;var j8=async(e,t)=>{let r=y(o({},e),{body:await D(e.body,t)}),n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await fe(r,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await Ni(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(n,s)}},k8=async(e,t)=>{if(e.statusCode>=300)return F8(e,t);let r=await D(e.body,t),n={};n=lY(r,t);let i=o({$metadata:x(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeContributorInsightsCommand=k8;var F8=async(e,t)=>{let r=y(o({},e),{body:await D(e.body,t)}),n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Pe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(n,s)}},U8=async(e,t)=>{if(e.statusCode>=300)return B8(e,t);let r=await D(e.body,t),n={};n=dY(r,t);let i=o({$metadata:x(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeEndpointsCommand=U8;var B8=async(e,t)=>{let r=y(o({},e),{body:await D(e.body,t)}),n,i="UnknownError";switch(i=ne(e,r.body),i){default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(n,s)}},G8=async(e,t)=>{if(e.statusCode>=300)return $8(e,t);let r=await D(e.body,t),n={};n=uY(r,t);let i=o({$metadata:x(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeExportCommand=G8;var $8=async(e,t)=>{let r=y(o({},e),{body:await D(e.body,t)}),n,i="UnknownError";switch(i=ne(e,r.body),i){case"ExportNotFoundException":case"com.amazonaws.dynamodb#ExportNotFoundException":throw await u6(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await tt(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(n,s)}},V8=async(e,t)=>{if(e.statusCode>=300)return K8(e,t);let r=await D(e.body,t),n={};n=fY(r,t);let i=o({$metadata:x(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeGlobalTableCommand=V8;var K8=async(e,t)=>{let r=y(o({},e),{body:await D(e.body,t)}),n,i="UnknownError";switch(i=ne(e,r.body),i){case"GlobalTableNotFoundException":case"com.amazonaws.dynamodb#GlobalTableNotFoundException":throw await Ld(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await fe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(n,s)}},H8=async(e,t)=>{if(e.statusCode>=300)return W8(e,t);let r=await D(e.body,t),n={};n=mY(r,t);let i=o({$metadata:x(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeGlobalTableSettingsCommand=H8;var W8=async(e,t)=>{let r=y(o({},e),{body:await D(e.body,t)}),n,i="UnknownError";switch(i=ne(e,r.body),i){case"GlobalTableNotFoundException":case"com.amazonaws.dynamodb#GlobalTableNotFoundException":throw await Ld(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await fe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(n,s)}},J8=async(e,t)=>{if(e.statusCode>=300)return Y8(e,t);let r=await D(e.body,t),n={};n=pY(r,t);let i=o({$metadata:x(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand=J8;var Y8=async(e,t)=>{let r=y(o({},e),{body:await D(e.body,t)}),n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await fe(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Pe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(n,s)}},Q8=async(e,t)=>{if(e.statusCode>=300)return X8(e,t);let r=await D(e.body,t),n={};n=_Y(r,t);let i=o({$metadata:x(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeLimitsCommand=Q8;var X8=async(e,t)=>{let r=y(o({},e),{body:await D(e.body,t)}),n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await fe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(n,s)}},Z8=async(e,t)=>{if(e.statusCode>=300)return e4(e,t);let r=await D(e.body,t),n={};n=hY(r,t);let i=o({$metadata:x(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeTableCommand=Z8;var e4=async(e,t)=>{let r=y(o({},e),{body:await D(e.body,t)}),n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await fe(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Pe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(n,s)}},t4=async(e,t)=>{if(e.statusCode>=300)return r4(e,t);let r=await D(e.body,t),n={};n=yY(r,t);let i=o({$metadata:x(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand=t4;var r4=async(e,t)=>{let r=y(o({},e),{body:await D(e.body,t)}),n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Pe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(n,s)}},n4=async(e,t)=>{if(e.statusCode>=300)return i4(e,t);let r=await D(e.body,t),n={};n=gY(r,t);let i=o({$metadata:x(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeTimeToLiveCommand=n4;var i4=async(e,t)=>{let r=y(o({},e),{body:await D(e.body,t)}),n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await fe(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Pe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(n,s)}},s4=async(e,t)=>{if(e.statusCode>=300)return o4(e,t);let r=await D(e.body,t),n={};n=gI(r,t);let i=o({$metadata:x(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0DisableKinesisStreamingDestinationCommand=s4;var o4=async(e,t)=>{let r=y(o({},e),{body:await D(e.body,t)}),n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await fe(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await tt(r,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await Er(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Pe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(n,s)}},a4=async(e,t)=>{if(e.statusCode>=300)return c4(e,t);let r=await D(e.body,t),n={};n=gI(r,t);let i=o({$metadata:x(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0EnableKinesisStreamingDestinationCommand=a4;var c4=async(e,t)=>{let r=y(o({},e),{body:await D(e.body,t)}),n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await fe(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await tt(r,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await Er(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Pe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(n,s)}},l4=async(e,t)=>{if(e.statusCode>=300)return d4(e,t);let r=await D(e.body,t),n={};n=EY(r,t);let i=o({$metadata:x(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0ExecuteStatementCommand=l4;var d4=async(e,t)=>{let r=y(o({},e),{body:await D(e.body,t)}),n,i="UnknownError";switch(i=ne(e,r.body),i){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":throw await Od(r,t);case"DuplicateItemException":case"com.amazonaws.dynamodb#DuplicateItemException":throw await l6(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":throw await Da(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Qt(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Gt(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Pe(r,t);case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":throw await qd(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(n,s)}},u4=async(e,t)=>{if(e.statusCode>=300)return f4(e,t);let r=await D(e.body,t),n={};n=bY(r,t);let i=o({$metadata:x(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0ExecuteTransactionCommand=u4;var f4=async(e,t)=>{let r=y(o({},e),{body:await D(e.body,t)}),n,i="UnknownError";switch(i=ne(e,r.body),i){case"IdempotentParameterMismatchException":case"com.amazonaws.dynamodb#IdempotentParameterMismatchException":throw await Qx(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Qt(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Gt(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Pe(r,t);case"TransactionCanceledException":case"com.amazonaws.dynamodb#TransactionCanceledException":throw await Mv(r,t);case"TransactionInProgressException":case"com.amazonaws.dynamodb#TransactionInProgressException":throw await tI(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(n,s)}},m4=async(e,t)=>{if(e.statusCode>=300)return p4(e,t);let r=await D(e.body,t),n={};n=IY(r,t);let i=o({$metadata:x(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0ExportTableToPointInTimeCommand=m4;var p4=async(e,t)=>{let r=y(o({},e),{body:await D(e.body,t)}),n,i="UnknownError";switch(i=ne(e,r.body),i){case"ExportConflictException":case"com.amazonaws.dynamodb#ExportConflictException":throw await d6(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidExportTimeException":case"com.amazonaws.dynamodb#InvalidExportTimeException":throw await p6(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await tt(r,t);case"PointInTimeRecoveryUnavailableException":case"com.amazonaws.dynamodb#PointInTimeRecoveryUnavailableException":throw await Xx(r,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await Ni(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(n,s)}},_4=async(e,t)=>{if(e.statusCode>=300)return h4(e,t);let r=await D(e.body,t),n={};n=PY(r,t);let i=o({$metadata:x(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0GetItemCommand=_4;var h4=async(e,t)=>{let r=y(o({},e),{body:await D(e.body,t)}),n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await fe(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Qt(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Gt(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Pe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(n,s)}},y4=async(e,t)=>{if(e.statusCode>=300)return g4(e,t);let r=await D(e.body,t),n={};n=i9(r,t);let i=o({$metadata:x(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0ListBackupsCommand=y4;var g4=async(e,t)=>{let r=y(o({},e),{body:await D(e.body,t)}),n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await fe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(n,s)}},v4=async(e,t)=>{if(e.statusCode>=300)return S4(e,t);let r=await D(e.body,t),n={};n=s9(r,t);let i=o({$metadata:x(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0ListContributorInsightsCommand=v4;var S4=async(e,t)=>{let r=y(o({},e),{body:await D(e.body,t)}),n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Pe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(n,s)}},w4=async(e,t)=>{if(e.statusCode>=300)return E4(e,t);let r=await D(e.body,t),n={};n=o9(r,t);let i=o({$metadata:x(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0ListExportsCommand=w4;var E4=async(e,t)=>{let r=y(o({},e),{body:await D(e.body,t)}),n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await tt(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(n,s)}},b4=async(e,t)=>{if(e.statusCode>=300)return A4(e,t);let r=await D(e.body,t),n={};n=a9(r,t);let i=o({$metadata:x(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0ListGlobalTablesCommand=b4;var A4=async(e,t)=>{let r=y(o({},e),{body:await D(e.body,t)}),n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await fe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(n,s)}},T4=async(e,t)=>{if(e.statusCode>=300)return C4(e,t);let r=await D(e.body,t),n={};n=c9(r,t);let i=o({$metadata:x(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0ListTablesCommand=T4;var C4=async(e,t)=>{let r=y(o({},e),{body:await D(e.body,t)}),n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await fe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(n,s)}},x4=async(e,t)=>{if(e.statusCode>=300)return I4(e,t);let r=await D(e.body,t),n={};n=l9(r,t);let i=o({$metadata:x(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0ListTagsOfResourceCommand=x4;var I4=async(e,t)=>{let r=y(o({},e),{body:await D(e.body,t)}),n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await fe(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Pe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(n,s)}},R4=async(e,t)=>{if(e.statusCode>=300)return N4(e,t);let r=await D(e.body,t),n={};n=E9(r,t);let i=o({$metadata:x(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0PutItemCommand=R4;var N4=async(e,t)=>{let r=y(o({},e),{body:await D(e.body,t)}),n,i="UnknownError";switch(i=ne(e,r.body),i){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":throw await Od(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await fe(r,t);case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":throw await Da(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Qt(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Gt(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Pe(r,t);case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":throw await qd(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(n,s)}},P4=async(e,t)=>{if(e.statusCode>=300)return D4(e,t);let r=await D(e.body,t),n={};n=A9(r,t);let i=o({$metadata:x(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0QueryCommand=P4;var D4=async(e,t)=>{let r=y(o({},e),{body:await D(e.body,t)}),n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await fe(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Qt(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Gt(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Pe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(n,s)}},O4=async(e,t)=>{if(e.statusCode>=300)return L4(e,t);let r=await D(e.body,t),n={};n=G9(r,t);let i=o({$metadata:x(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0RestoreTableFromBackupCommand=O4;var L4=async(e,t)=>{let r=y(o({},e),{body:await D(e.body,t)}),n,i="UnknownError";switch(i=ne(e,r.body),i){case"BackupInUseException":case"com.amazonaws.dynamodb#BackupInUseException":throw await Ov(r,t);case"BackupNotFoundException":case"com.amazonaws.dynamodb#BackupNotFoundException":throw await Lv(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await fe(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await tt(r,t);case"TableAlreadyExistsException":case"com.amazonaws.dynamodb#TableAlreadyExistsException":throw await eI(r,t);case"TableInUseException":case"com.amazonaws.dynamodb#TableInUseException":throw await qv(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(n,s)}},q4=async(e,t)=>{if(e.statusCode>=300)return M4(e,t);let r=await D(e.body,t),n={};n=$9(r,t);let i=o({$metadata:x(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0RestoreTableToPointInTimeCommand=q4;var M4=async(e,t)=>{let r=y(o({},e),{body:await D(e.body,t)}),n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await fe(r,t);case"InvalidRestoreTimeException":case"com.amazonaws.dynamodb#InvalidRestoreTimeException":throw await _6(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await tt(r,t);case"PointInTimeRecoveryUnavailableException":case"com.amazonaws.dynamodb#PointInTimeRecoveryUnavailableException":throw await Xx(r,t);case"TableAlreadyExistsException":case"com.amazonaws.dynamodb#TableAlreadyExistsException":throw await eI(r,t);case"TableInUseException":case"com.amazonaws.dynamodb#TableInUseException":throw await qv(r,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await Ni(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(n,s)}},z4=async(e,t)=>{if(e.statusCode>=300)return j4(e,t);let r=await D(e.body,t),n={};n=V9(r,t);let i=o({$metadata:x(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0ScanCommand=z4;var j4=async(e,t)=>{let r=y(o({},e),{body:await D(e.body,t)}),n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await fe(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Qt(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Gt(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Pe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(n,s)}},k4=async(e,t)=>{if(e.statusCode>=300)return F4(e,t);await Kv(e.body,t);let r={$metadata:x(e)};return Promise.resolve(r)};w.deserializeAws_json1_0TagResourceCommand=k4;var F4=async(e,t)=>{let r=y(o({},e),{body:await D(e.body,t)}),n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await fe(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await tt(r,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await Er(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Pe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(n,s)}},U4=async(e,t)=>{if(e.statusCode>=300)return B4(e,t);let r=await D(e.body,t),n={};n=rQ(r,t);let i=o({$metadata:x(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0TransactGetItemsCommand=U4;var B4=async(e,t)=>{let r=y(o({},e),{body:await D(e.body,t)}),n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await fe(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Qt(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Gt(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Pe(r,t);case"TransactionCanceledException":case"com.amazonaws.dynamodb#TransactionCanceledException":throw await Mv(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(n,s)}},G4=async(e,t)=>{if(e.statusCode>=300)return $4(e,t);let r=await D(e.body,t),n={};n=oQ(r,t);let i=o({$metadata:x(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0TransactWriteItemsCommand=G4;var $4=async(e,t)=>{let r=y(o({},e),{body:await D(e.body,t)}),n,i="UnknownError";switch(i=ne(e,r.body),i){case"IdempotentParameterMismatchException":case"com.amazonaws.dynamodb#IdempotentParameterMismatchException":throw await Qx(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await fe(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Qt(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Gt(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Pe(r,t);case"TransactionCanceledException":case"com.amazonaws.dynamodb#TransactionCanceledException":throw await Mv(r,t);case"TransactionInProgressException":case"com.amazonaws.dynamodb#TransactionInProgressException":throw await tI(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(n,s)}},V4=async(e,t)=>{if(e.statusCode>=300)return K4(e,t);await Kv(e.body,t);let r={$metadata:x(e)};return Promise.resolve(r)};w.deserializeAws_json1_0UntagResourceCommand=V4;var K4=async(e,t)=>{let r=y(o({},e),{body:await D(e.body,t)}),n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await fe(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await tt(r,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await Er(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Pe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(n,s)}},H4=async(e,t)=>{if(e.statusCode>=300)return W4(e,t);let r=await D(e.body,t),n={};n=aQ(r,t);let i=o({$metadata:x(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0UpdateContinuousBackupsCommand=H4;var W4=async(e,t)=>{let r=y(o({},e),{body:await D(e.body,t)}),n,i="UnknownError";switch(i=ne(e,r.body),i){case"ContinuousBackupsUnavailableException":case"com.amazonaws.dynamodb#ContinuousBackupsUnavailableException":throw await Yx(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await fe(r,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await Ni(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(n,s)}},J4=async(e,t)=>{if(e.statusCode>=300)return Y4(e,t);let r=await D(e.body,t),n={};n=cQ(r,t);let i=o({$metadata:x(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0UpdateContributorInsightsCommand=J4;var Y4=async(e,t)=>{let r=y(o({},e),{body:await D(e.body,t)}),n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Pe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(n,s)}},Q4=async(e,t)=>{if(e.statusCode>=300)return X4(e,t);let r=await D(e.body,t),n={};n=lQ(r,t);let i=o({$metadata:x(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0UpdateGlobalTableCommand=Q4;var X4=async(e,t)=>{let r=y(o({},e),{body:await D(e.body,t)}),n,i="UnknownError";switch(i=ne(e,r.body),i){case"GlobalTableNotFoundException":case"com.amazonaws.dynamodb#GlobalTableNotFoundException":throw await Ld(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await fe(r,t);case"ReplicaAlreadyExistsException":case"com.amazonaws.dynamodb#ReplicaAlreadyExistsException":throw await h6(r,t);case"ReplicaNotFoundException":case"com.amazonaws.dynamodb#ReplicaNotFoundException":throw await Zx(r,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await Ni(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(n,s)}},Z4=async(e,t)=>{if(e.statusCode>=300)return e6(e,t);let r=await D(e.body,t),n={};n=dQ(r,t);let i=o({$metadata:x(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0UpdateGlobalTableSettingsCommand=Z4;var e6=async(e,t)=>{let r=y(o({},e),{body:await D(e.body,t)}),n,i="UnknownError";switch(i=ne(e,r.body),i){case"GlobalTableNotFoundException":case"com.amazonaws.dynamodb#GlobalTableNotFoundException":throw await Ld(r,t);case"IndexNotFoundException":case"com.amazonaws.dynamodb#IndexNotFoundException":throw await m6(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await fe(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await tt(r,t);case"ReplicaNotFoundException":case"com.amazonaws.dynamodb#ReplicaNotFoundException":throw await Zx(r,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await Er(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(n,s)}},t6=async(e,t)=>{if(e.statusCode>=300)return r6(e,t);let r=await D(e.body,t),n={};n=uQ(r,t);let i=o({$metadata:x(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0UpdateItemCommand=t6;var r6=async(e,t)=>{let r=y(o({},e),{body:await D(e.body,t)}),n,i="UnknownError";switch(i=ne(e,r.body),i){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":throw await Od(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await fe(r,t);case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":throw await Da(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Qt(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Gt(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Pe(r,t);case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":throw await qd(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(n,s)}},n6=async(e,t)=>{if(e.statusCode>=300)return i6(e,t);let r=await D(e.body,t),n={};n=fQ(r,t);let i=o({$metadata:x(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0UpdateTableCommand=n6;var i6=async(e,t)=>{let r=y(o({},e),{body:await D(e.body,t)}),n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await fe(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await tt(r,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await Er(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Pe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(n,s)}},s6=async(e,t)=>{if(e.statusCode>=300)return o6(e,t);let r=await D(e.body,t),n={};n=mQ(r,t);let i=o({$metadata:x(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand=s6;var o6=async(e,t)=>{let r=y(o({},e),{body:await D(e.body,t)}),n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await tt(r,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await Er(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Pe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(n,s)}},a6=async(e,t)=>{if(e.statusCode>=300)return c6(e,t);let r=await D(e.body,t),n={};n=pQ(r,t);let i=o({$metadata:x(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0UpdateTimeToLiveCommand=a6;var c6=async(e,t)=>{let r=y(o({},e),{body:await D(e.body,t)}),n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await fe(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await tt(r,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await Er(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Pe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(n,s)}},Ov=async(e,t)=>{let r=e.body,n=LJ(r,t),i=new we.BackupInUseException(o({$metadata:x(e)},n));return(0,p.decorateServiceException)(i,r)},Lv=async(e,t)=>{let r=e.body,n=qJ(r,t),i=new we.BackupNotFoundException(o({$metadata:x(e)},n));return(0,p.decorateServiceException)(i,r)},Od=async(e,t)=>{let r=e.body,n=JJ(r,t),i=new we.ConditionalCheckFailedException(o({$metadata:x(e)},n));return(0,p.decorateServiceException)(i,r)},Yx=async(e,t)=>{let r=e.body,n=YJ(r,t),i=new we.ContinuousBackupsUnavailableException(o({$metadata:x(e)},n));return(0,p.decorateServiceException)(i,r)},l6=async(e,t)=>{let r=e.body,n=vY(r,t),i=new we.DuplicateItemException(o({$metadata:x(e)},n));return(0,p.decorateServiceException)(i,r)},d6=async(e,t)=>{let r=e.body,n=AY(r,t),i=new we.ExportConflictException(o({$metadata:x(e)},n));return(0,p.decorateServiceException)(i,r)},u6=async(e,t)=>{let r=e.body,n=TY(r,t),i=new we.ExportNotFoundException(o({$metadata:x(e)},n));return(0,p.decorateServiceException)(i,r)},f6=async(e,t)=>{let r=e.body,n=zY(r,t),i=new we.GlobalTableAlreadyExistsException(o({$metadata:x(e)},n));return(0,p.decorateServiceException)(i,r)},Ld=async(e,t)=>{let r=e.body,n=kY(r,t),i=new we.GlobalTableNotFoundException(o({$metadata:x(e)},n));return(0,p.decorateServiceException)(i,r)},Qx=async(e,t)=>{let r=e.body,n=FY(r,t),i=new we.IdempotentParameterMismatchException(o({$metadata:x(e)},n));return(0,p.decorateServiceException)(i,r)},m6=async(e,t)=>{let r=e.body,n=UY(r,t),i=new we.IndexNotFoundException(o({$metadata:x(e)},n));return(0,p.decorateServiceException)(i,r)},se=async(e,t)=>{let r=e.body,n=BY(r,t),i=new we.InternalServerError(o({$metadata:x(e)},n));return(0,p.decorateServiceException)(i,r)},fe=async(e,t)=>{let r=e.body,n=GY(r,t),i=new we.InvalidEndpointException(o({$metadata:x(e)},n));return(0,p.decorateServiceException)(i,r)},p6=async(e,t)=>{let r=e.body,n=$Y(r,t),i=new we.InvalidExportTimeException(o({$metadata:x(e)},n));return(0,p.decorateServiceException)(i,r)},_6=async(e,t)=>{let r=e.body,n=VY(r,t),i=new we.InvalidRestoreTimeException(o({$metadata:x(e)},n));return(0,p.decorateServiceException)(i,r)},Da=async(e,t)=>{let r=e.body,n=JY(r,t),i=new we.ItemCollectionSizeLimitExceededException(o({$metadata:x(e)},n));return(0,p.decorateServiceException)(i,r)},tt=async(e,t)=>{let r=e.body,n=r9(r,t),i=new we.LimitExceededException(o({$metadata:x(e)},n));return(0,p.decorateServiceException)(i,r)},Xx=async(e,t)=>{let r=e.body,n=v9(r,t),i=new we.PointInTimeRecoveryUnavailableException(o({$metadata:x(e)},n));return(0,p.decorateServiceException)(i,r)},Qt=async(e,t)=>{let r=e.body,n=S9(r,t),i=new we.ProvisionedThroughputExceededException(o({$metadata:x(e)},n));return(0,p.decorateServiceException)(i,r)},h6=async(e,t)=>{let r=e.body,n=C9(r,t),i=new we.ReplicaAlreadyExistsException(o({$metadata:x(e)},n));return(0,p.decorateServiceException)(i,r)},Zx=async(e,t)=>{let r=e.body,n=z9(r,t),i=new we.ReplicaNotFoundException(o({$metadata:x(e)},n));return(0,p.decorateServiceException)(i,r)},Gt=async(e,t)=>{let r=e.body,n=k9(r,t),i=new we.RequestLimitExceeded(o({$metadata:x(e)},n));return(0,p.decorateServiceException)(i,r)},Er=async(e,t)=>{let r=e.body,n=F9(r,t),i=new we.ResourceInUseException(o({$metadata:x(e)},n));return(0,p.decorateServiceException)(i,r)},Pe=async(e,t)=>{let r=e.body,n=U9(r,t),i=new we.ResourceNotFoundException(o({$metadata:x(e)},n));return(0,p.decorateServiceException)(i,r)},eI=async(e,t)=>{let r=e.body,n=J9(r,t),i=new we.TableAlreadyExistsException(o({$metadata:x(e)},n));return(0,p.decorateServiceException)(i,r)},qv=async(e,t)=>{let r=e.body,n=Y9(r,t),i=new we.TableInUseException(o({$metadata:x(e)},n));return(0,p.decorateServiceException)(i,r)},Ni=async(e,t)=>{let r=e.body,n=X9(r,t),i=new we.TableNotFoundException(o({$metadata:x(e)},n));return(0,p.decorateServiceException)(i,r)},Mv=async(e,t)=>{let r=e.body,n=nQ(r,t),i=new we.TransactionCanceledException(o({$metadata:x(e)},n));return(0,p.decorateServiceException)(i,r)},qd=async(e,t)=>{let r=e.body,n=iQ(r,t),i=new we.TransactionConflictException(o({$metadata:x(e)},n));return(0,p.decorateServiceException)(i,r)},tI=async(e,t)=>{let r=e.body,n=sQ(r,t),i=new we.TransactionInProgressException(o({$metadata:x(e)},n));return(0,p.decorateServiceException)(i,r)},y6=(e,t)=>o(o({},e.AttributeName!==void 0&&e.AttributeName!==null&&{AttributeName:e.AttributeName}),e.AttributeType!==void 0&&e.AttributeType!==null&&{AttributeType:e.AttributeType}),rI=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:y6(r,t)),Md=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:r),g6=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:y(o({},r),{[n]:v6(i,t)}),{}),dn=(e,t)=>we.AttributeValue.visit(e,{B:r=>({B:t.base64Encoder(r)}),BOOL:r=>({BOOL:r}),BS:r=>({BS:I6(r,t)}),L:r=>({L:v5(r,t)}),M:r=>({M:x5(r,t)}),N:r=>({N:r}),NS:r=>({NS:R5(r,t)}),NULL:r=>({NULL:r}),S:r=>({S:r}),SS:r=>({SS:rJ(r,t)}),_:(r,n)=>({name:n})}),nI=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:dn(r,t)),v6=(e,t)=>o(o({},e.Action!==void 0&&e.Action!==null&&{Action:e.Action}),e.Value!==void 0&&e.Value!==null&&{Value:dn(e.Value,t)}),S6=(e,t)=>o(o({},e.PolicyName!==void 0&&e.PolicyName!==null&&{PolicyName:e.PolicyName}),e.TargetTrackingScalingPolicyConfiguration!==void 0&&e.TargetTrackingScalingPolicyConfiguration!==null&&{TargetTrackingScalingPolicyConfiguration:w6(e.TargetTrackingScalingPolicyConfiguration,t)}),Kn=(e,t)=>o(o(o(o(o({},e.AutoScalingDisabled!==void 0&&e.AutoScalingDisabled!==null&&{AutoScalingDisabled:e.AutoScalingDisabled}),e.AutoScalingRoleArn!==void 0&&e.AutoScalingRoleArn!==null&&{AutoScalingRoleArn:e.AutoScalingRoleArn}),e.MaximumUnits!==void 0&&e.MaximumUnits!==null&&{MaximumUnits:e.MaximumUnits}),e.MinimumUnits!==void 0&&e.MinimumUnits!==null&&{MinimumUnits:e.MinimumUnits}),e.ScalingPolicyUpdate!==void 0&&e.ScalingPolicyUpdate!==null&&{ScalingPolicyUpdate:S6(e.ScalingPolicyUpdate,t)}),w6=(e,t)=>o(o(o(o({},e.DisableScaleIn!==void 0&&e.DisableScaleIn!==null&&{DisableScaleIn:e.DisableScaleIn}),e.ScaleInCooldown!==void 0&&e.ScaleInCooldown!==null&&{ScaleInCooldown:e.ScaleInCooldown}),e.ScaleOutCooldown!==void 0&&e.ScaleOutCooldown!==null&&{ScaleOutCooldown:e.ScaleOutCooldown}),e.TargetValue!==void 0&&e.TargetValue!==null&&{TargetValue:(0,p.serializeFloat)(e.TargetValue)}),E6=(e,t)=>o(o({},e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.Statements!==void 0&&e.Statements!==null&&{Statements:D5(e.Statements,t)}),b6=(e,t)=>o(o({},e.RequestItems!==void 0&&e.RequestItems!==null&&{RequestItems:A6(e.RequestItems,t)}),e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),A6=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:y(o({},r),{[n]:y5(i,t)}),{}),T6=(e,t)=>o(o(o({},e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead}),e.Parameters!==void 0&&e.Parameters!==null&&{Parameters:Fv(e.Parameters,t)}),e.Statement!==void 0&&e.Statement!==null&&{Statement:e.Statement}),C6=(e,t)=>o(o(o({},e.RequestItems!==void 0&&e.RequestItems!==null&&{RequestItems:x6(e.RequestItems,t)}),e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.ReturnItemCollectionMetrics!==void 0&&e.ReturnItemCollectionMetrics!==null&&{ReturnItemCollectionMetrics:e.ReturnItemCollectionMetrics}),x6=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:y(o({},r),{[n]:CJ(i,t)}),{}),I6=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:t.base64Encoder(r)),iI=(e,t)=>o(o({},e.AttributeValueList!==void 0&&e.AttributeValueList!==null&&{AttributeValueList:nI(e.AttributeValueList,t)}),e.ComparisonOperator!==void 0&&e.ComparisonOperator!==null&&{ComparisonOperator:e.ComparisonOperator}),R6=(e,t)=>o(o(o(o(o(o({},e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Xt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:un(e.ExpressionAttributeValues,t)}),e.Key!==void 0&&e.Key!==null&&{Key:cr(e.Key,t)}),e.ReturnValuesOnConditionCheckFailure!==void 0&&e.ReturnValuesOnConditionCheckFailure!==null&&{ReturnValuesOnConditionCheckFailure:e.ReturnValuesOnConditionCheckFailure}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),N6=(e,t)=>o(o({},e.BackupName!==void 0&&e.BackupName!==null&&{BackupName:e.BackupName}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),P6=(e,t)=>o(o(o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:zd(e.KeySchema,t)}),e.Projection!==void 0&&e.Projection!==null&&{Projection:Uv(e.Projection,t)}),e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:Pi(e.ProvisionedThroughput,t)}),D6=(e,t)=>o(o({},e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName}),e.ReplicationGroup!==void 0&&e.ReplicationGroup!==null&&{ReplicationGroup:K5(e.ReplicationGroup,t)}),O6=(e,t)=>o({},e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),L6=(e,t)=>o(o(o(o(o({},e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null&&{GlobalSecondaryIndexes:aI(e.GlobalSecondaryIndexes,t)}),e.KMSMasterKeyId!==void 0&&e.KMSMasterKeyId!==null&&{KMSMasterKeyId:e.KMSMasterKeyId}),e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:Bv(e.ProvisionedThroughputOverride,t)}),e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),e.TableClassOverride!==void 0&&e.TableClassOverride!==null&&{TableClassOverride:e.TableClassOverride}),q6=(e,t)=>o(o(o(o(o(o(o(o(o(o(o({},e.AttributeDefinitions!==void 0&&e.AttributeDefinitions!==null&&{AttributeDefinitions:rI(e.AttributeDefinitions,t)}),e.BillingMode!==void 0&&e.BillingMode!==null&&{BillingMode:e.BillingMode}),e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null&&{GlobalSecondaryIndexes:jv(e.GlobalSecondaryIndexes,t)}),e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:zd(e.KeySchema,t)}),e.LocalSecondaryIndexes!==void 0&&e.LocalSecondaryIndexes!==null&&{LocalSecondaryIndexes:kv(e.LocalSecondaryIndexes,t)}),e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:Pi(e.ProvisionedThroughput,t)}),e.SSESpecification!==void 0&&e.SSESpecification!==null&&{SSESpecification:jd(e.SSESpecification,t)}),e.StreamSpecification!==void 0&&e.StreamSpecification!==null&&{StreamSpecification:cI(e.StreamSpecification,t)}),e.TableClass!==void 0&&e.TableClass!==null&&{TableClass:e.TableClass}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),e.Tags!==void 0&&e.Tags!==null&&{Tags:lI(e.Tags,t)}),M6=(e,t)=>o(o(o(o(o(o({},e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Xt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:un(e.ExpressionAttributeValues,t)}),e.Key!==void 0&&e.Key!==null&&{Key:cr(e.Key,t)}),e.ReturnValuesOnConditionCheckFailure!==void 0&&e.ReturnValuesOnConditionCheckFailure!==null&&{ReturnValuesOnConditionCheckFailure:e.ReturnValuesOnConditionCheckFailure}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),z6=(e,t)=>o({},e.BackupArn!==void 0&&e.BackupArn!==null&&{BackupArn:e.BackupArn}),j6=(e,t)=>o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),k6=(e,t)=>o(o(o(o(o(o(o(o(o(o({},e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression}),e.ConditionalOperator!==void 0&&e.ConditionalOperator!==null&&{ConditionalOperator:e.ConditionalOperator}),e.Expected!==void 0&&e.Expected!==null&&{Expected:zv(e.Expected,t)}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Xt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:un(e.ExpressionAttributeValues,t)}),e.Key!==void 0&&e.Key!==null&&{Key:cr(e.Key,t)}),e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.ReturnItemCollectionMetrics!==void 0&&e.ReturnItemCollectionMetrics!==null&&{ReturnItemCollectionMetrics:e.ReturnItemCollectionMetrics}),e.ReturnValues!==void 0&&e.ReturnValues!==null&&{ReturnValues:e.ReturnValues}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),F6=(e,t)=>o({},e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),U6=(e,t)=>o({},e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),B6=(e,t)=>o({},e.Key!==void 0&&e.Key!==null&&{Key:cr(e.Key,t)}),G6=(e,t)=>o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),$6=(e,t)=>o({},e.BackupArn!==void 0&&e.BackupArn!==null&&{BackupArn:e.BackupArn}),V6=(e,t)=>o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),K6=(e,t)=>o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),H6=(e,t)=>({}),W6=(e,t)=>o({},e.ExportArn!==void 0&&e.ExportArn!==null&&{ExportArn:e.ExportArn}),J6=(e,t)=>o({},e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName}),Y6=(e,t)=>o({},e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName}),Q6=(e,t)=>o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),X6=(e,t)=>({}),Z6=(e,t)=>o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),e5=(e,t)=>o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),t5=(e,t)=>o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),r5=(e,t)=>o(o(o(o(o(o({},e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead}),e.Limit!==void 0&&e.Limit!==null&&{Limit:e.Limit}),e.NextToken!==void 0&&e.NextToken!==null&&{NextToken:e.NextToken}),e.Parameters!==void 0&&e.Parameters!==null&&{Parameters:Fv(e.Parameters,t)}),e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.Statement!==void 0&&e.Statement!==null&&{Statement:e.Statement}),n5=(e,t)=>{var r;return o(o({ClientRequestToken:(r=e.ClientRequestToken)!==null&&r!==void 0?r:(0,Dv.v4)()},e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.TransactStatements!==void 0&&e.TransactStatements!==null&&{TransactStatements:P5(e.TransactStatements,t)})},zv=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:y(o({},r),{[n]:i5(i,t)}),{}),i5=(e,t)=>o(o(o(o({},e.AttributeValueList!==void 0&&e.AttributeValueList!==null&&{AttributeValueList:nI(e.AttributeValueList,t)}),e.ComparisonOperator!==void 0&&e.ComparisonOperator!==null&&{ComparisonOperator:e.ComparisonOperator}),e.Exists!==void 0&&e.Exists!==null&&{Exists:e.Exists}),e.Value!==void 0&&e.Value!==null&&{Value:dn(e.Value,t)}),s5=(e,t)=>{var r;return o(o(o(o(o(o(o(o({ClientToken:(r=e.ClientToken)!==null&&r!==void 0?r:(0,Dv.v4)()},e.ExportFormat!==void 0&&e.ExportFormat!==null&&{ExportFormat:e.ExportFormat}),e.ExportTime!==void 0&&e.ExportTime!==null&&{ExportTime:Math.round(e.ExportTime.getTime()/1e3)}),e.S3Bucket!==void 0&&e.S3Bucket!==null&&{S3Bucket:e.S3Bucket}),e.S3BucketOwner!==void 0&&e.S3BucketOwner!==null&&{S3BucketOwner:e.S3BucketOwner}),e.S3Prefix!==void 0&&e.S3Prefix!==null&&{S3Prefix:e.S3Prefix}),e.S3SseAlgorithm!==void 0&&e.S3SseAlgorithm!==null&&{S3SseAlgorithm:e.S3SseAlgorithm}),e.S3SseKmsKeyId!==void 0&&e.S3SseKmsKeyId!==null&&{S3SseKmsKeyId:e.S3SseKmsKeyId}),e.TableArn!==void 0&&e.TableArn!==null&&{TableArn:e.TableArn})},Xt=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:y(o({},r),{[n]:i}),{}),un=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:y(o({},r),{[n]:dn(i,t)}),{}),sI=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:y(o({},r),{[n]:iI(i,t)}),{}),o5=(e,t)=>o(o(o(o({},e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Xt(e.ExpressionAttributeNames,t)}),e.Key!==void 0&&e.Key!==null&&{Key:cr(e.Key,t)}),e.ProjectionExpression!==void 0&&e.ProjectionExpression!==null&&{ProjectionExpression:e.ProjectionExpression}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),a5=(e,t)=>o(o(o(o(o(o(o({},e.AttributesToGet!==void 0&&e.AttributesToGet!==null&&{AttributesToGet:Md(e.AttributesToGet,t)}),e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Xt(e.ExpressionAttributeNames,t)}),e.Key!==void 0&&e.Key!==null&&{Key:cr(e.Key,t)}),e.ProjectionExpression!==void 0&&e.ProjectionExpression!==null&&{ProjectionExpression:e.ProjectionExpression}),e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),c5=(e,t)=>o(o(o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:zd(e.KeySchema,t)}),e.Projection!==void 0&&e.Projection!==null&&{Projection:Uv(e.Projection,t)}),e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:Pi(e.ProvisionedThroughput,t)}),l5=(e,t)=>o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.ProvisionedWriteCapacityAutoScalingUpdate!==void 0&&e.ProvisionedWriteCapacityAutoScalingUpdate!==null&&{ProvisionedWriteCapacityAutoScalingUpdate:Kn(e.ProvisionedWriteCapacityAutoScalingUpdate,t)}),d5=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:l5(r,t)),jv=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:c5(r,t)),u5=(e,t)=>o(o(o({},e.Create!==void 0&&e.Create!==null&&{Create:P6(e.Create,t)}),e.Delete!==void 0&&e.Delete!==null&&{Delete:j6(e.Delete,t)}),e.Update!==void 0&&e.Update!==null&&{Update:yJ(e.Update,t)}),f5=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:u5(r,t)),m5=(e,t)=>o(o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.ProvisionedWriteCapacityAutoScalingSettingsUpdate!==void 0&&e.ProvisionedWriteCapacityAutoScalingSettingsUpdate!==null&&{ProvisionedWriteCapacityAutoScalingSettingsUpdate:Kn(e.ProvisionedWriteCapacityAutoScalingSettingsUpdate,t)}),e.ProvisionedWriteCapacityUnits!==void 0&&e.ProvisionedWriteCapacityUnits!==null&&{ProvisionedWriteCapacityUnits:e.ProvisionedWriteCapacityUnits}),p5=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:m5(r,t)),cr=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:y(o({},r),{[n]:dn(i,t)}),{}),_5=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:y(o({},r),{[n]:iI(i,t)}),{}),h5=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:cr(r,t)),y5=(e,t)=>o(o(o(o(o({},e.AttributesToGet!==void 0&&e.AttributesToGet!==null&&{AttributesToGet:Md(e.AttributesToGet,t)}),e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Xt(e.ExpressionAttributeNames,t)}),e.Keys!==void 0&&e.Keys!==null&&{Keys:h5(e.Keys,t)}),e.ProjectionExpression!==void 0&&e.ProjectionExpression!==null&&{ProjectionExpression:e.ProjectionExpression}),zd=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:g5(r,t)),g5=(e,t)=>o(o({},e.AttributeName!==void 0&&e.AttributeName!==null&&{AttributeName:e.AttributeName}),e.KeyType!==void 0&&e.KeyType!==null&&{KeyType:e.KeyType}),oI=(e,t)=>o(o({},e.StreamArn!==void 0&&e.StreamArn!==null&&{StreamArn:e.StreamArn}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),v5=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:dn(r,t)),S5=(e,t)=>o(o(o(o(o(o({},e.BackupType!==void 0&&e.BackupType!==null&&{BackupType:e.BackupType}),e.ExclusiveStartBackupArn!==void 0&&e.ExclusiveStartBackupArn!==null&&{ExclusiveStartBackupArn:e.ExclusiveStartBackupArn}),e.Limit!==void 0&&e.Limit!==null&&{Limit:e.Limit}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),e.TimeRangeLowerBound!==void 0&&e.TimeRangeLowerBound!==null&&{TimeRangeLowerBound:Math.round(e.TimeRangeLowerBound.getTime()/1e3)}),e.TimeRangeUpperBound!==void 0&&e.TimeRangeUpperBound!==null&&{TimeRangeUpperBound:Math.round(e.TimeRangeUpperBound.getTime()/1e3)}),w5=(e,t)=>o(o(o({},e.MaxResults!==void 0&&e.MaxResults!==null&&{MaxResults:e.MaxResults}),e.NextToken!==void 0&&e.NextToken!==null&&{NextToken:e.NextToken}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),E5=(e,t)=>o(o(o({},e.MaxResults!==void 0&&e.MaxResults!==null&&{MaxResults:e.MaxResults}),e.NextToken!==void 0&&e.NextToken!==null&&{NextToken:e.NextToken}),e.TableArn!==void 0&&e.TableArn!==null&&{TableArn:e.TableArn}),b5=(e,t)=>o(o(o({},e.ExclusiveStartGlobalTableName!==void 0&&e.ExclusiveStartGlobalTableName!==null&&{ExclusiveStartGlobalTableName:e.ExclusiveStartGlobalTableName}),e.Limit!==void 0&&e.Limit!==null&&{Limit:e.Limit}),e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),A5=(e,t)=>o(o({},e.ExclusiveStartTableName!==void 0&&e.ExclusiveStartTableName!==null&&{ExclusiveStartTableName:e.ExclusiveStartTableName}),e.Limit!==void 0&&e.Limit!==null&&{Limit:e.Limit}),T5=(e,t)=>o(o({},e.NextToken!==void 0&&e.NextToken!==null&&{NextToken:e.NextToken}),e.ResourceArn!==void 0&&e.ResourceArn!==null&&{ResourceArn:e.ResourceArn}),C5=(e,t)=>o(o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:zd(e.KeySchema,t)}),e.Projection!==void 0&&e.Projection!==null&&{Projection:Uv(e.Projection,t)}),kv=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:C5(r,t)),x5=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:y(o({},r),{[n]:dn(i,t)}),{}),I5=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:r),R5=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:r),N5=(e,t)=>o(o({},e.Parameters!==void 0&&e.Parameters!==null&&{Parameters:Fv(e.Parameters,t)}),e.Statement!==void 0&&e.Statement!==null&&{Statement:e.Statement}),P5=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:N5(r,t)),D5=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:T6(r,t)),O5=(e,t)=>o({},e.PointInTimeRecoveryEnabled!==void 0&&e.PointInTimeRecoveryEnabled!==null&&{PointInTimeRecoveryEnabled:e.PointInTimeRecoveryEnabled}),Fv=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:dn(r,t)),Uv=(e,t)=>o(o({},e.NonKeyAttributes!==void 0&&e.NonKeyAttributes!==null&&{NonKeyAttributes:I5(e.NonKeyAttributes,t)}),e.ProjectionType!==void 0&&e.ProjectionType!==null&&{ProjectionType:e.ProjectionType}),Pi=(e,t)=>o(o({},e.ReadCapacityUnits!==void 0&&e.ReadCapacityUnits!==null&&{ReadCapacityUnits:e.ReadCapacityUnits}),e.WriteCapacityUnits!==void 0&&e.WriteCapacityUnits!==null&&{WriteCapacityUnits:e.WriteCapacityUnits}),Bv=(e,t)=>o({},e.ReadCapacityUnits!==void 0&&e.ReadCapacityUnits!==null&&{ReadCapacityUnits:e.ReadCapacityUnits}),L5=(e,t)=>o(o(o(o(o(o({},e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Xt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:un(e.ExpressionAttributeValues,t)}),e.Item!==void 0&&e.Item!==null&&{Item:Gv(e.Item,t)}),e.ReturnValuesOnConditionCheckFailure!==void 0&&e.ReturnValuesOnConditionCheckFailure!==null&&{ReturnValuesOnConditionCheckFailure:e.ReturnValuesOnConditionCheckFailure}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),q5=(e,t)=>o(o(o(o(o(o(o(o(o(o({},e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression}),e.ConditionalOperator!==void 0&&e.ConditionalOperator!==null&&{ConditionalOperator:e.ConditionalOperator}),e.Expected!==void 0&&e.Expected!==null&&{Expected:zv(e.Expected,t)}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Xt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:un(e.ExpressionAttributeValues,t)}),e.Item!==void 0&&e.Item!==null&&{Item:Gv(e.Item,t)}),e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.ReturnItemCollectionMetrics!==void 0&&e.ReturnItemCollectionMetrics!==null&&{ReturnItemCollectionMetrics:e.ReturnItemCollectionMetrics}),e.ReturnValues!==void 0&&e.ReturnValues!==null&&{ReturnValues:e.ReturnValues}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),Gv=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:y(o({},r),{[n]:dn(i,t)}),{}),M5=(e,t)=>o({},e.Item!==void 0&&e.Item!==null&&{Item:Gv(e.Item,t)}),z5=(e,t)=>o(o(o(o(o(o(o(o(o(o(o(o(o(o(o(o(o({},e.AttributesToGet!==void 0&&e.AttributesToGet!==null&&{AttributesToGet:Md(e.AttributesToGet,t)}),e.ConditionalOperator!==void 0&&e.ConditionalOperator!==null&&{ConditionalOperator:e.ConditionalOperator}),e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead}),e.ExclusiveStartKey!==void 0&&e.ExclusiveStartKey!==null&&{ExclusiveStartKey:cr(e.ExclusiveStartKey,t)}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Xt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:un(e.ExpressionAttributeValues,t)}),e.FilterExpression!==void 0&&e.FilterExpression!==null&&{FilterExpression:e.FilterExpression}),e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.KeyConditionExpression!==void 0&&e.KeyConditionExpression!==null&&{KeyConditionExpression:e.KeyConditionExpression}),e.KeyConditions!==void 0&&e.KeyConditions!==null&&{KeyConditions:_5(e.KeyConditions,t)}),e.Limit!==void 0&&e.Limit!==null&&{Limit:e.Limit}),e.ProjectionExpression!==void 0&&e.ProjectionExpression!==null&&{ProjectionExpression:e.ProjectionExpression}),e.QueryFilter!==void 0&&e.QueryFilter!==null&&{QueryFilter:sI(e.QueryFilter,t)}),e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.ScanIndexForward!==void 0&&e.ScanIndexForward!==null&&{ScanIndexForward:e.ScanIndexForward}),e.Select!==void 0&&e.Select!==null&&{Select:e.Select}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),j5=(e,t)=>o({},e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),k5=(e,t)=>o(o(o({},e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),e.ReplicaGlobalSecondaryIndexUpdates!==void 0&&e.ReplicaGlobalSecondaryIndexUpdates!==null&&{ReplicaGlobalSecondaryIndexUpdates:G5(e.ReplicaGlobalSecondaryIndexUpdates,t)}),e.ReplicaProvisionedReadCapacityAutoScalingUpdate!==void 0&&e.ReplicaProvisionedReadCapacityAutoScalingUpdate!==null&&{ReplicaProvisionedReadCapacityAutoScalingUpdate:Kn(e.ReplicaProvisionedReadCapacityAutoScalingUpdate,t)}),F5=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:k5(r,t)),U5=(e,t)=>o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:Bv(e.ProvisionedThroughputOverride,t)}),B5=(e,t)=>o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.ProvisionedReadCapacityAutoScalingUpdate!==void 0&&e.ProvisionedReadCapacityAutoScalingUpdate!==null&&{ProvisionedReadCapacityAutoScalingUpdate:Kn(e.ProvisionedReadCapacityAutoScalingUpdate,t)}),G5=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:B5(r,t)),aI=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:U5(r,t)),$5=(e,t)=>o(o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.ProvisionedReadCapacityAutoScalingSettingsUpdate!==void 0&&e.ProvisionedReadCapacityAutoScalingSettingsUpdate!==null&&{ProvisionedReadCapacityAutoScalingSettingsUpdate:Kn(e.ProvisionedReadCapacityAutoScalingSettingsUpdate,t)}),e.ProvisionedReadCapacityUnits!==void 0&&e.ProvisionedReadCapacityUnits!==null&&{ProvisionedReadCapacityUnits:e.ProvisionedReadCapacityUnits}),V5=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:$5(r,t)),K5=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:j5(r,t)),H5=(e,t)=>o(o(o(o(o({},e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),e.ReplicaGlobalSecondaryIndexSettingsUpdate!==void 0&&e.ReplicaGlobalSecondaryIndexSettingsUpdate!==null&&{ReplicaGlobalSecondaryIndexSettingsUpdate:V5(e.ReplicaGlobalSecondaryIndexSettingsUpdate,t)}),e.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate!==void 0&&e.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate!==null&&{ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate:Kn(e.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate,t)}),e.ReplicaProvisionedReadCapacityUnits!==void 0&&e.ReplicaProvisionedReadCapacityUnits!==null&&{ReplicaProvisionedReadCapacityUnits:e.ReplicaProvisionedReadCapacityUnits}),e.ReplicaTableClass!==void 0&&e.ReplicaTableClass!==null&&{ReplicaTableClass:e.ReplicaTableClass}),W5=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:H5(r,t)),J5=(e,t)=>o(o(o({},e.Create!==void 0&&e.Create!==null&&{Create:L6(e.Create,t)}),e.Delete!==void 0&&e.Delete!==null&&{Delete:U6(e.Delete,t)}),e.Update!==void 0&&e.Update!==null&&{Update:wJ(e.Update,t)}),Y5=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:J5(r,t)),Q5=(e,t)=>o(o({},e.Create!==void 0&&e.Create!==null&&{Create:O6(e.Create,t)}),e.Delete!==void 0&&e.Delete!==null&&{Delete:F6(e.Delete,t)}),X5=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:Q5(r,t)),Z5=(e,t)=>o(o(o(o(o(o(o({},e.BackupArn!==void 0&&e.BackupArn!==null&&{BackupArn:e.BackupArn}),e.BillingModeOverride!==void 0&&e.BillingModeOverride!==null&&{BillingModeOverride:e.BillingModeOverride}),e.GlobalSecondaryIndexOverride!==void 0&&e.GlobalSecondaryIndexOverride!==null&&{GlobalSecondaryIndexOverride:jv(e.GlobalSecondaryIndexOverride,t)}),e.LocalSecondaryIndexOverride!==void 0&&e.LocalSecondaryIndexOverride!==null&&{LocalSecondaryIndexOverride:kv(e.LocalSecondaryIndexOverride,t)}),e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:Pi(e.ProvisionedThroughputOverride,t)}),e.SSESpecificationOverride!==void 0&&e.SSESpecificationOverride!==null&&{SSESpecificationOverride:jd(e.SSESpecificationOverride,t)}),e.TargetTableName!==void 0&&e.TargetTableName!==null&&{TargetTableName:e.TargetTableName}),eJ=(e,t)=>o(o(o(o(o(o(o(o(o(o({},e.BillingModeOverride!==void 0&&e.BillingModeOverride!==null&&{BillingModeOverride:e.BillingModeOverride}),e.GlobalSecondaryIndexOverride!==void 0&&e.GlobalSecondaryIndexOverride!==null&&{GlobalSecondaryIndexOverride:jv(e.GlobalSecondaryIndexOverride,t)}),e.LocalSecondaryIndexOverride!==void 0&&e.LocalSecondaryIndexOverride!==null&&{LocalSecondaryIndexOverride:kv(e.LocalSecondaryIndexOverride,t)}),e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:Pi(e.ProvisionedThroughputOverride,t)}),e.RestoreDateTime!==void 0&&e.RestoreDateTime!==null&&{RestoreDateTime:Math.round(e.RestoreDateTime.getTime()/1e3)}),e.SSESpecificationOverride!==void 0&&e.SSESpecificationOverride!==null&&{SSESpecificationOverride:jd(e.SSESpecificationOverride,t)}),e.SourceTableArn!==void 0&&e.SourceTableArn!==null&&{SourceTableArn:e.SourceTableArn}),e.SourceTableName!==void 0&&e.SourceTableName!==null&&{SourceTableName:e.SourceTableName}),e.TargetTableName!==void 0&&e.TargetTableName!==null&&{TargetTableName:e.TargetTableName}),e.UseLatestRestorableTime!==void 0&&e.UseLatestRestorableTime!==null&&{UseLatestRestorableTime:e.UseLatestRestorableTime}),tJ=(e,t)=>o(o(o(o(o(o(o(o(o(o(o(o(o(o(o(o({},e.AttributesToGet!==void 0&&e.AttributesToGet!==null&&{AttributesToGet:Md(e.AttributesToGet,t)}),e.ConditionalOperator!==void 0&&e.ConditionalOperator!==null&&{ConditionalOperator:e.ConditionalOperator}),e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead}),e.ExclusiveStartKey!==void 0&&e.ExclusiveStartKey!==null&&{ExclusiveStartKey:cr(e.ExclusiveStartKey,t)}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Xt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:un(e.ExpressionAttributeValues,t)}),e.FilterExpression!==void 0&&e.FilterExpression!==null&&{FilterExpression:e.FilterExpression}),e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.Limit!==void 0&&e.Limit!==null&&{Limit:e.Limit}),e.ProjectionExpression!==void 0&&e.ProjectionExpression!==null&&{ProjectionExpression:e.ProjectionExpression}),e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.ScanFilter!==void 0&&e.ScanFilter!==null&&{ScanFilter:sI(e.ScanFilter,t)}),e.Segment!==void 0&&e.Segment!==null&&{Segment:e.Segment}),e.Select!==void 0&&e.Select!==null&&{Select:e.Select}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),e.TotalSegments!==void 0&&e.TotalSegments!==null&&{TotalSegments:e.TotalSegments}),jd=(e,t)=>o(o(o({},e.Enabled!==void 0&&e.Enabled!==null&&{Enabled:e.Enabled}),e.KMSMasterKeyId!==void 0&&e.KMSMasterKeyId!==null&&{KMSMasterKeyId:e.KMSMasterKeyId}),e.SSEType!==void 0&&e.SSEType!==null&&{SSEType:e.SSEType}),cI=(e,t)=>o(o({},e.StreamEnabled!==void 0&&e.StreamEnabled!==null&&{StreamEnabled:e.StreamEnabled}),e.StreamViewType!==void 0&&e.StreamViewType!==null&&{StreamViewType:e.StreamViewType}),rJ=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:r),nJ=(e,t)=>o(o({},e.Key!==void 0&&e.Key!==null&&{Key:e.Key}),e.Value!==void 0&&e.Value!==null&&{Value:e.Value}),iJ=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:r),lI=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:nJ(r,t)),sJ=(e,t)=>o(o({},e.ResourceArn!==void 0&&e.ResourceArn!==null&&{ResourceArn:e.ResourceArn}),e.Tags!==void 0&&e.Tags!==null&&{Tags:lI(e.Tags,t)}),oJ=(e,t)=>o(o({},e.AttributeName!==void 0&&e.AttributeName!==null&&{AttributeName:e.AttributeName}),e.Enabled!==void 0&&e.Enabled!==null&&{Enabled:e.Enabled}),aJ=(e,t)=>o({},e.Get!==void 0&&e.Get!==null&&{Get:o5(e.Get,t)}),cJ=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:aJ(r,t)),lJ=(e,t)=>o(o({},e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.TransactItems!==void 0&&e.TransactItems!==null&&{TransactItems:cJ(e.TransactItems,t)}),dJ=(e,t)=>o(o(o(o({},e.ConditionCheck!==void 0&&e.ConditionCheck!==null&&{ConditionCheck:R6(e.ConditionCheck,t)}),e.Delete!==void 0&&e.Delete!==null&&{Delete:M6(e.Delete,t)}),e.Put!==void 0&&e.Put!==null&&{Put:L5(e.Put,t)}),e.Update!==void 0&&e.Update!==null&&{Update:pJ(e.Update,t)}),uJ=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:dJ(r,t)),fJ=(e,t)=>{var r;return o(o(o({ClientRequestToken:(r=e.ClientRequestToken)!==null&&r!==void 0?r:(0,Dv.v4)()},e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.ReturnItemCollectionMetrics!==void 0&&e.ReturnItemCollectionMetrics!==null&&{ReturnItemCollectionMetrics:e.ReturnItemCollectionMetrics}),e.TransactItems!==void 0&&e.TransactItems!==null&&{TransactItems:uJ(e.TransactItems,t)})},mJ=(e,t)=>o(o({},e.ResourceArn!==void 0&&e.ResourceArn!==null&&{ResourceArn:e.ResourceArn}),e.TagKeys!==void 0&&e.TagKeys!==null&&{TagKeys:iJ(e.TagKeys,t)}),pJ=(e,t)=>o(o(o(o(o(o(o({},e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Xt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:un(e.ExpressionAttributeValues,t)}),e.Key!==void 0&&e.Key!==null&&{Key:cr(e.Key,t)}),e.ReturnValuesOnConditionCheckFailure!==void 0&&e.ReturnValuesOnConditionCheckFailure!==null&&{ReturnValuesOnConditionCheckFailure:e.ReturnValuesOnConditionCheckFailure}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),e.UpdateExpression!==void 0&&e.UpdateExpression!==null&&{UpdateExpression:e.UpdateExpression}),_J=(e,t)=>o(o({},e.PointInTimeRecoverySpecification!==void 0&&e.PointInTimeRecoverySpecification!==null&&{PointInTimeRecoverySpecification:O5(e.PointInTimeRecoverySpecification,t)}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),hJ=(e,t)=>o(o(o({},e.ContributorInsightsAction!==void 0&&e.ContributorInsightsAction!==null&&{ContributorInsightsAction:e.ContributorInsightsAction}),e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),yJ=(e,t)=>o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:Pi(e.ProvisionedThroughput,t)}),gJ=(e,t)=>o(o({},e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName}),e.ReplicaUpdates!==void 0&&e.ReplicaUpdates!==null&&{ReplicaUpdates:X5(e.ReplicaUpdates,t)}),vJ=(e,t)=>o(o(o(o(o(o({},e.GlobalTableBillingMode!==void 0&&e.GlobalTableBillingMode!==null&&{GlobalTableBillingMode:e.GlobalTableBillingMode}),e.GlobalTableGlobalSecondaryIndexSettingsUpdate!==void 0&&e.GlobalTableGlobalSecondaryIndexSettingsUpdate!==null&&{GlobalTableGlobalSecondaryIndexSettingsUpdate:p5(e.GlobalTableGlobalSecondaryIndexSettingsUpdate,t)}),e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName}),e.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate!==void 0&&e.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate!==null&&{GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate:Kn(e.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate,t)}),e.GlobalTableProvisionedWriteCapacityUnits!==void 0&&e.GlobalTableProvisionedWriteCapacityUnits!==null&&{GlobalTableProvisionedWriteCapacityUnits:e.GlobalTableProvisionedWriteCapacityUnits}),e.ReplicaSettingsUpdate!==void 0&&e.ReplicaSettingsUpdate!==null&&{ReplicaSettingsUpdate:W5(e.ReplicaSettingsUpdate,t)}),SJ=(e,t)=>o(o(o(o(o(o(o(o(o(o(o(o({},e.AttributeUpdates!==void 0&&e.AttributeUpdates!==null&&{AttributeUpdates:g6(e.AttributeUpdates,t)}),e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression}),e.ConditionalOperator!==void 0&&e.ConditionalOperator!==null&&{ConditionalOperator:e.ConditionalOperator}),e.Expected!==void 0&&e.Expected!==null&&{Expected:zv(e.Expected,t)}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Xt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:un(e.ExpressionAttributeValues,t)}),e.Key!==void 0&&e.Key!==null&&{Key:cr(e.Key,t)}),e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.ReturnItemCollectionMetrics!==void 0&&e.ReturnItemCollectionMetrics!==null&&{ReturnItemCollectionMetrics:e.ReturnItemCollectionMetrics}),e.ReturnValues!==void 0&&e.ReturnValues!==null&&{ReturnValues:e.ReturnValues}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),e.UpdateExpression!==void 0&&e.UpdateExpression!==null&&{UpdateExpression:e.UpdateExpression}),wJ=(e,t)=>o(o(o(o(o({},e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null&&{GlobalSecondaryIndexes:aI(e.GlobalSecondaryIndexes,t)}),e.KMSMasterKeyId!==void 0&&e.KMSMasterKeyId!==null&&{KMSMasterKeyId:e.KMSMasterKeyId}),e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:Bv(e.ProvisionedThroughputOverride,t)}),e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),e.TableClassOverride!==void 0&&e.TableClassOverride!==null&&{TableClassOverride:e.TableClassOverride}),EJ=(e,t)=>o(o(o(o(o(o(o(o(o({},e.AttributeDefinitions!==void 0&&e.AttributeDefinitions!==null&&{AttributeDefinitions:rI(e.AttributeDefinitions,t)}),e.BillingMode!==void 0&&e.BillingMode!==null&&{BillingMode:e.BillingMode}),e.GlobalSecondaryIndexUpdates!==void 0&&e.GlobalSecondaryIndexUpdates!==null&&{GlobalSecondaryIndexUpdates:f5(e.GlobalSecondaryIndexUpdates,t)}),e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:Pi(e.ProvisionedThroughput,t)}),e.ReplicaUpdates!==void 0&&e.ReplicaUpdates!==null&&{ReplicaUpdates:Y5(e.ReplicaUpdates,t)}),e.SSESpecification!==void 0&&e.SSESpecification!==null&&{SSESpecification:jd(e.SSESpecification,t)}),e.StreamSpecification!==void 0&&e.StreamSpecification!==null&&{StreamSpecification:cI(e.StreamSpecification,t)}),e.TableClass!==void 0&&e.TableClass!==null&&{TableClass:e.TableClass}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),bJ=(e,t)=>o(o(o(o({},e.GlobalSecondaryIndexUpdates!==void 0&&e.GlobalSecondaryIndexUpdates!==null&&{GlobalSecondaryIndexUpdates:d5(e.GlobalSecondaryIndexUpdates,t)}),e.ProvisionedWriteCapacityAutoScalingUpdate!==void 0&&e.ProvisionedWriteCapacityAutoScalingUpdate!==null&&{ProvisionedWriteCapacityAutoScalingUpdate:Kn(e.ProvisionedWriteCapacityAutoScalingUpdate,t)}),e.ReplicaUpdates!==void 0&&e.ReplicaUpdates!==null&&{ReplicaUpdates:F5(e.ReplicaUpdates,t)}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),AJ=(e,t)=>o(o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),e.TimeToLiveSpecification!==void 0&&e.TimeToLiveSpecification!==null&&{TimeToLiveSpecification:oJ(e.TimeToLiveSpecification,t)}),TJ=(e,t)=>o(o({},e.DeleteRequest!==void 0&&e.DeleteRequest!==null&&{DeleteRequest:B6(e.DeleteRequest,t)}),e.PutRequest!==void 0&&e.PutRequest!==null&&{PutRequest:M5(e.PutRequest,t)}),CJ=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:TJ(r,t)),xJ=(e,t)=>({ArchivalBackupArn:(0,p.expectString)(e.ArchivalBackupArn),ArchivalDateTime:e.ArchivalDateTime!==void 0&&e.ArchivalDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.ArchivalDateTime))):void 0,ArchivalReason:(0,p.expectString)(e.ArchivalReason)}),IJ=(e,t)=>({AttributeName:(0,p.expectString)(e.AttributeName),AttributeType:(0,p.expectString)(e.AttributeType)}),RJ=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:IJ(n,t)),Hn=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:y(o({},r),{[n]:Ds((0,p.expectUnion)(i),t)}),{}),NJ=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:(0,p.expectString)(n)),Ds=(e,t)=>e.B!==void 0&&e.B!==null?{B:t.base64Decoder(e.B)}:(0,p.expectBoolean)(e.BOOL)!==void 0?{BOOL:(0,p.expectBoolean)(e.BOOL)}:e.BS!==void 0&&e.BS!==null?{BS:KJ(e.BS,t)}:e.L!==void 0&&e.L!==null?{L:n9(e.L,t)}:e.M!==void 0&&e.M!==null?{M:p9(e.M,t)}:(0,p.expectString)(e.N)!==void 0?{N:(0,p.expectString)(e.N)}:e.NS!==void 0&&e.NS!==null?{NS:h9(e.NS,t)}:(0,p.expectBoolean)(e.NULL)!==void 0?{NULL:(0,p.expectBoolean)(e.NULL)}:(0,p.expectString)(e.S)!==void 0?{S:(0,p.expectString)(e.S)}:e.SS!==void 0&&e.SS!==null?{SS:W9(e.SS,t)}:{$unknown:Object.entries(e)[0]},PJ=(e,t)=>({PolicyName:(0,p.expectString)(e.PolicyName),TargetTrackingScalingPolicyConfiguration:e.TargetTrackingScalingPolicyConfiguration!==void 0&&e.TargetTrackingScalingPolicyConfiguration!==null?OJ(e.TargetTrackingScalingPolicyConfiguration,t):void 0}),DJ=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:PJ(n,t)),Vn=(e,t)=>({AutoScalingDisabled:(0,p.expectBoolean)(e.AutoScalingDisabled),AutoScalingRoleArn:(0,p.expectString)(e.AutoScalingRoleArn),MaximumUnits:(0,p.expectLong)(e.MaximumUnits),MinimumUnits:(0,p.expectLong)(e.MinimumUnits),ScalingPolicies:e.ScalingPolicies!==void 0&&e.ScalingPolicies!==null?DJ(e.ScalingPolicies,t):void 0}),OJ=(e,t)=>({DisableScaleIn:(0,p.expectBoolean)(e.DisableScaleIn),ScaleInCooldown:(0,p.expectInt32)(e.ScaleInCooldown),ScaleOutCooldown:(0,p.expectInt32)(e.ScaleOutCooldown),TargetValue:(0,p.limitedParseDouble)(e.TargetValue)}),dI=(e,t)=>({BackupDetails:e.BackupDetails!==void 0&&e.BackupDetails!==null?uI(e.BackupDetails,t):void 0,SourceTableDetails:e.SourceTableDetails!==void 0&&e.SourceTableDetails!==null?K9(e.SourceTableDetails,t):void 0,SourceTableFeatureDetails:e.SourceTableFeatureDetails!==void 0&&e.SourceTableFeatureDetails!==null?H9(e.SourceTableFeatureDetails,t):void 0}),uI=(e,t)=>({BackupArn:(0,p.expectString)(e.BackupArn),BackupCreationDateTime:e.BackupCreationDateTime!==void 0&&e.BackupCreationDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.BackupCreationDateTime))):void 0,BackupExpiryDateTime:e.BackupExpiryDateTime!==void 0&&e.BackupExpiryDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.BackupExpiryDateTime))):void 0,BackupName:(0,p.expectString)(e.BackupName),BackupSizeBytes:(0,p.expectLong)(e.BackupSizeBytes),BackupStatus:(0,p.expectString)(e.BackupStatus),BackupType:(0,p.expectString)(e.BackupType)}),LJ=(e,t)=>({message:(0,p.expectString)(e.message)}),qJ=(e,t)=>({message:(0,p.expectString)(e.message)}),MJ=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:zJ(n,t)),zJ=(e,t)=>({BackupArn:(0,p.expectString)(e.BackupArn),BackupCreationDateTime:e.BackupCreationDateTime!==void 0&&e.BackupCreationDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.BackupCreationDateTime))):void 0,BackupExpiryDateTime:e.BackupExpiryDateTime!==void 0&&e.BackupExpiryDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.BackupExpiryDateTime))):void 0,BackupName:(0,p.expectString)(e.BackupName),BackupSizeBytes:(0,p.expectLong)(e.BackupSizeBytes),BackupStatus:(0,p.expectString)(e.BackupStatus),BackupType:(0,p.expectString)(e.BackupType),TableArn:(0,p.expectString)(e.TableArn),TableId:(0,p.expectString)(e.TableId),TableName:(0,p.expectString)(e.TableName)}),jJ=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Os(e.ConsumedCapacity,t):void 0,Responses:e.Responses!==void 0&&e.Responses!==null?y9(e.Responses,t):void 0}),kJ=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Os(e.ConsumedCapacity,t):void 0,Responses:e.Responses!==void 0&&e.Responses!==null?UJ(e.Responses,t):void 0,UnprocessedKeys:e.UnprocessedKeys!==void 0&&e.UnprocessedKeys!==null?FJ(e.UnprocessedKeys,t):void 0}),FJ=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:y(o({},r),{[n]:XY(i,t)}),{}),UJ=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:y(o({},r),{[n]:Fd(i,t)}),{}),BJ=(e,t)=>({Code:(0,p.expectString)(e.Code),Message:(0,p.expectString)(e.Message)}),GJ=(e,t)=>({Error:e.Error!==void 0&&e.Error!==null?BJ(e.Error,t):void 0,Item:e.Item!==void 0&&e.Item!==null?Hn(e.Item,t):void 0,TableName:(0,p.expectString)(e.TableName)}),$J=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Os(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?hI(e.ItemCollectionMetrics,t):void 0,UnprocessedItems:e.UnprocessedItems!==void 0&&e.UnprocessedItems!==null?VJ(e.UnprocessedItems,t):void 0}),VJ=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:y(o({},r),{[n]:hQ(i,t)}),{}),fI=(e,t)=>({BillingMode:(0,p.expectString)(e.BillingMode),LastUpdateToPayPerRequestDateTime:e.LastUpdateToPayPerRequestDateTime!==void 0&&e.LastUpdateToPayPerRequestDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.LastUpdateToPayPerRequestDateTime))):void 0}),KJ=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:t.base64Decoder(n)),HJ=(e,t)=>({Code:(0,p.expectString)(e.Code),Item:e.Item!==void 0&&e.Item!==null?Hn(e.Item,t):void 0,Message:(0,p.expectString)(e.Message)}),WJ=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:HJ(n,t)),mI=(e,t)=>({CapacityUnits:(0,p.limitedParseDouble)(e.CapacityUnits),ReadCapacityUnits:(0,p.limitedParseDouble)(e.ReadCapacityUnits),WriteCapacityUnits:(0,p.limitedParseDouble)(e.WriteCapacityUnits)}),JJ=(e,t)=>({message:(0,p.expectString)(e.message)}),Wn=(e,t)=>({CapacityUnits:(0,p.limitedParseDouble)(e.CapacityUnits),GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?Jx(e.GlobalSecondaryIndexes,t):void 0,LocalSecondaryIndexes:e.LocalSecondaryIndexes!==void 0&&e.LocalSecondaryIndexes!==null?Jx(e.LocalSecondaryIndexes,t):void 0,ReadCapacityUnits:(0,p.limitedParseDouble)(e.ReadCapacityUnits),Table:e.Table!==void 0&&e.Table!==null?mI(e.Table,t):void 0,TableName:(0,p.expectString)(e.TableName),WriteCapacityUnits:(0,p.limitedParseDouble)(e.WriteCapacityUnits)}),Os=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:Wn(n,t)),pI=(e,t)=>({ContinuousBackupsStatus:(0,p.expectString)(e.ContinuousBackupsStatus),PointInTimeRecoveryDescription:e.PointInTimeRecoveryDescription!==void 0&&e.PointInTimeRecoveryDescription!==null?g9(e.PointInTimeRecoveryDescription,t):void 0}),YJ=(e,t)=>({message:(0,p.expectString)(e.message)}),QJ=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:(0,p.expectString)(n)),XJ=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:ZJ(n,t)),ZJ=(e,t)=>({ContributorInsightsStatus:(0,p.expectString)(e.ContributorInsightsStatus),IndexName:(0,p.expectString)(e.IndexName),TableName:(0,p.expectString)(e.TableName)}),eY=(e,t)=>({BackupDetails:e.BackupDetails!==void 0&&e.BackupDetails!==null?uI(e.BackupDetails,t):void 0}),tY=(e,t)=>({GlobalTableDescription:e.GlobalTableDescription!==void 0&&e.GlobalTableDescription!==null?$v(e.GlobalTableDescription,t):void 0}),rY=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?qs(e.TableDescription,t):void 0}),nY=(e,t)=>({BackupDescription:e.BackupDescription!==void 0&&e.BackupDescription!==null?dI(e.BackupDescription,t):void 0}),iY=(e,t)=>({Attributes:e.Attributes!==void 0&&e.Attributes!==null?Hn(e.Attributes,t):void 0,ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Wn(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?kd(e.ItemCollectionMetrics,t):void 0}),sY=(e,t)=>({Key:e.Key!==void 0&&e.Key!==null?Oa(e.Key,t):void 0}),oY=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?qs(e.TableDescription,t):void 0}),aY=(e,t)=>({BackupDescription:e.BackupDescription!==void 0&&e.BackupDescription!==null?dI(e.BackupDescription,t):void 0}),cY=(e,t)=>({ContinuousBackupsDescription:e.ContinuousBackupsDescription!==void 0&&e.ContinuousBackupsDescription!==null?pI(e.ContinuousBackupsDescription,t):void 0}),lY=(e,t)=>({ContributorInsightsRuleList:e.ContributorInsightsRuleList!==void 0&&e.ContributorInsightsRuleList!==null?QJ(e.ContributorInsightsRuleList,t):void 0,ContributorInsightsStatus:(0,p.expectString)(e.ContributorInsightsStatus),FailureException:e.FailureException!==void 0&&e.FailureException!==null?NY(e.FailureException,t):void 0,IndexName:(0,p.expectString)(e.IndexName),LastUpdateDateTime:e.LastUpdateDateTime!==void 0&&e.LastUpdateDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.LastUpdateDateTime))):void 0,TableName:(0,p.expectString)(e.TableName)}),dY=(e,t)=>({Endpoints:e.Endpoints!==void 0&&e.Endpoints!==null?wY(e.Endpoints,t):void 0}),uY=(e,t)=>({ExportDescription:e.ExportDescription!==void 0&&e.ExportDescription!==null?_I(e.ExportDescription,t):void 0}),fY=(e,t)=>({GlobalTableDescription:e.GlobalTableDescription!==void 0&&e.GlobalTableDescription!==null?$v(e.GlobalTableDescription,t):void 0}),mY=(e,t)=>({GlobalTableName:(0,p.expectString)(e.GlobalTableName),ReplicaSettings:e.ReplicaSettings!==void 0&&e.ReplicaSettings!==null?bI(e.ReplicaSettings,t):void 0}),pY=(e,t)=>({KinesisDataStreamDestinations:e.KinesisDataStreamDestinations!==void 0&&e.KinesisDataStreamDestinations!==null?t9(e.KinesisDataStreamDestinations,t):void 0,TableName:(0,p.expectString)(e.TableName)}),_Y=(e,t)=>({AccountMaxReadCapacityUnits:(0,p.expectLong)(e.AccountMaxReadCapacityUnits),AccountMaxWriteCapacityUnits:(0,p.expectLong)(e.AccountMaxWriteCapacityUnits),TableMaxReadCapacityUnits:(0,p.expectLong)(e.TableMaxReadCapacityUnits),TableMaxWriteCapacityUnits:(0,p.expectLong)(e.TableMaxWriteCapacityUnits)}),hY=(e,t)=>({Table:e.Table!==void 0&&e.Table!==null?qs(e.Table,t):void 0}),yY=(e,t)=>({TableAutoScalingDescription:e.TableAutoScalingDescription!==void 0&&e.TableAutoScalingDescription!==null?CI(e.TableAutoScalingDescription,t):void 0}),gY=(e,t)=>({TimeToLiveDescription:e.TimeToLiveDescription!==void 0&&e.TimeToLiveDescription!==null?xI(e.TimeToLiveDescription,t):void 0}),vY=(e,t)=>({message:(0,p.expectString)(e.message)}),SY=(e,t)=>({Address:(0,p.expectString)(e.Address),CachePeriodInMinutes:(0,p.expectLong)(e.CachePeriodInMinutes)}),wY=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:SY(n,t)),EY=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Wn(e.ConsumedCapacity,t):void 0,Items:e.Items!==void 0&&e.Items!==null?Fd(e.Items,t):void 0,LastEvaluatedKey:e.LastEvaluatedKey!==void 0&&e.LastEvaluatedKey!==null?Oa(e.LastEvaluatedKey,t):void 0,NextToken:(0,p.expectString)(e.NextToken)}),bY=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Os(e.ConsumedCapacity,t):void 0,Responses:e.Responses!==void 0&&e.Responses!==null?yI(e.Responses,t):void 0}),AY=(e,t)=>({message:(0,p.expectString)(e.message)}),_I=(e,t)=>({BilledSizeBytes:(0,p.expectLong)(e.BilledSizeBytes),ClientToken:(0,p.expectString)(e.ClientToken),EndTime:e.EndTime!==void 0&&e.EndTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.EndTime))):void 0,ExportArn:(0,p.expectString)(e.ExportArn),ExportFormat:(0,p.expectString)(e.ExportFormat),ExportManifest:(0,p.expectString)(e.ExportManifest),ExportStatus:(0,p.expectString)(e.ExportStatus),ExportTime:e.ExportTime!==void 0&&e.ExportTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.ExportTime))):void 0,FailureCode:(0,p.expectString)(e.FailureCode),FailureMessage:(0,p.expectString)(e.FailureMessage),ItemCount:(0,p.expectLong)(e.ItemCount),S3Bucket:(0,p.expectString)(e.S3Bucket),S3BucketOwner:(0,p.expectString)(e.S3BucketOwner),S3Prefix:(0,p.expectString)(e.S3Prefix),S3SseAlgorithm:(0,p.expectString)(e.S3SseAlgorithm),S3SseKmsKeyId:(0,p.expectString)(e.S3SseKmsKeyId),StartTime:e.StartTime!==void 0&&e.StartTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.StartTime))):void 0,TableArn:(0,p.expectString)(e.TableArn),TableId:(0,p.expectString)(e.TableId)}),TY=(e,t)=>({message:(0,p.expectString)(e.message)}),CY=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:xY(n,t)),xY=(e,t)=>({ExportArn:(0,p.expectString)(e.ExportArn),ExportStatus:(0,p.expectString)(e.ExportStatus)}),IY=(e,t)=>({ExportDescription:e.ExportDescription!==void 0&&e.ExportDescription!==null?_I(e.ExportDescription,t):void 0}),RY=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:y(o({},r),{[n]:(0,p.expectString)(i)}),{}),NY=(e,t)=>({ExceptionDescription:(0,p.expectString)(e.ExceptionDescription),ExceptionName:(0,p.expectString)(e.ExceptionName)}),PY=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Wn(e.ConsumedCapacity,t):void 0,Item:e.Item!==void 0&&e.Item!==null?Hn(e.Item,t):void 0}),DY=(e,t)=>({Backfilling:(0,p.expectBoolean)(e.Backfilling),IndexArn:(0,p.expectString)(e.IndexArn),IndexName:(0,p.expectString)(e.IndexName),IndexSizeBytes:(0,p.expectLong)(e.IndexSizeBytes),IndexStatus:(0,p.expectString)(e.IndexStatus),ItemCount:(0,p.expectLong)(e.ItemCount),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?Ls(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?Ud(e.Projection,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?SI(e.ProvisionedThroughput,t):void 0}),OY=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:DY(n,t)),LY=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:qY(n,t)),qY=(e,t)=>({IndexName:(0,p.expectString)(e.IndexName),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?Ls(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?Ud(e.Projection,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?vI(e.ProvisionedThroughput,t):void 0}),MY=(e,t)=>({GlobalTableName:(0,p.expectString)(e.GlobalTableName),ReplicationGroup:e.ReplicationGroup!==void 0&&e.ReplicationGroup!==null?M9(e.ReplicationGroup,t):void 0}),zY=(e,t)=>({message:(0,p.expectString)(e.message)}),$v=(e,t)=>({CreationDateTime:e.CreationDateTime!==void 0&&e.CreationDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.CreationDateTime))):void 0,GlobalTableArn:(0,p.expectString)(e.GlobalTableArn),GlobalTableName:(0,p.expectString)(e.GlobalTableName),GlobalTableStatus:(0,p.expectString)(e.GlobalTableStatus),ReplicationGroup:e.ReplicationGroup!==void 0&&e.ReplicationGroup!==null?EI(e.ReplicationGroup,t):void 0}),jY=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:MY(n,t)),kY=(e,t)=>({message:(0,p.expectString)(e.message)}),FY=(e,t)=>({Message:(0,p.expectString)(e.Message)}),UY=(e,t)=>({message:(0,p.expectString)(e.message)}),BY=(e,t)=>({message:(0,p.expectString)(e.message)}),GY=(e,t)=>({Message:(0,p.expectString)(e.Message)}),$Y=(e,t)=>({message:(0,p.expectString)(e.message)}),VY=(e,t)=>({message:(0,p.expectString)(e.message)}),KY=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:y(o({},r),{[n]:Ds((0,p.expectUnion)(i),t)}),{}),kd=(e,t)=>({ItemCollectionKey:e.ItemCollectionKey!==void 0&&e.ItemCollectionKey!==null?KY(e.ItemCollectionKey,t):void 0,SizeEstimateRangeGB:e.SizeEstimateRangeGB!==void 0&&e.SizeEstimateRangeGB!==null?WY(e.SizeEstimateRangeGB,t):void 0}),HY=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:kd(n,t)),hI=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:y(o({},r),{[n]:HY(i,t)}),{}),WY=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:(0,p.limitedParseDouble)(n)),JY=(e,t)=>({message:(0,p.expectString)(e.message)}),Fd=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:Hn(n,t)),YY=(e,t)=>({Item:e.Item!==void 0&&e.Item!==null?Hn(e.Item,t):void 0}),yI=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:YY(n,t)),Oa=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:y(o({},r),{[n]:Ds((0,p.expectUnion)(i),t)}),{}),QY=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:Oa(n,t)),XY=(e,t)=>({AttributesToGet:e.AttributesToGet!==void 0&&e.AttributesToGet!==null?NJ(e.AttributesToGet,t):void 0,ConsistentRead:(0,p.expectBoolean)(e.ConsistentRead),ExpressionAttributeNames:e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null?RY(e.ExpressionAttributeNames,t):void 0,Keys:e.Keys!==void 0&&e.Keys!==null?QY(e.Keys,t):void 0,ProjectionExpression:(0,p.expectString)(e.ProjectionExpression)}),Ls=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:ZY(n,t)),ZY=(e,t)=>({AttributeName:(0,p.expectString)(e.AttributeName),KeyType:(0,p.expectString)(e.KeyType)}),e9=(e,t)=>({DestinationStatus:(0,p.expectString)(e.DestinationStatus),DestinationStatusDescription:(0,p.expectString)(e.DestinationStatusDescription),StreamArn:(0,p.expectString)(e.StreamArn)}),t9=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:e9(n,t)),gI=(e,t)=>({DestinationStatus:(0,p.expectString)(e.DestinationStatus),StreamArn:(0,p.expectString)(e.StreamArn),TableName:(0,p.expectString)(e.TableName)}),r9=(e,t)=>({message:(0,p.expectString)(e.message)}),n9=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:Ds((0,p.expectUnion)(n),t)),i9=(e,t)=>({BackupSummaries:e.BackupSummaries!==void 0&&e.BackupSummaries!==null?MJ(e.BackupSummaries,t):void 0,LastEvaluatedBackupArn:(0,p.expectString)(e.LastEvaluatedBackupArn)}),s9=(e,t)=>({ContributorInsightsSummaries:e.ContributorInsightsSummaries!==void 0&&e.ContributorInsightsSummaries!==null?XJ(e.ContributorInsightsSummaries,t):void 0,NextToken:(0,p.expectString)(e.NextToken)}),o9=(e,t)=>({ExportSummaries:e.ExportSummaries!==void 0&&e.ExportSummaries!==null?CY(e.ExportSummaries,t):void 0,NextToken:(0,p.expectString)(e.NextToken)}),a9=(e,t)=>({GlobalTables:e.GlobalTables!==void 0&&e.GlobalTables!==null?jY(e.GlobalTables,t):void 0,LastEvaluatedGlobalTableName:(0,p.expectString)(e.LastEvaluatedGlobalTableName)}),c9=(e,t)=>({LastEvaluatedTableName:(0,p.expectString)(e.LastEvaluatedTableName),TableNames:e.TableNames!==void 0&&e.TableNames!==null?Q9(e.TableNames,t):void 0}),l9=(e,t)=>({NextToken:(0,p.expectString)(e.NextToken),Tags:e.Tags!==void 0&&e.Tags!==null?eQ(e.Tags,t):void 0}),d9=(e,t)=>({IndexArn:(0,p.expectString)(e.IndexArn),IndexName:(0,p.expectString)(e.IndexName),IndexSizeBytes:(0,p.expectLong)(e.IndexSizeBytes),ItemCount:(0,p.expectLong)(e.ItemCount),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?Ls(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?Ud(e.Projection,t):void 0}),u9=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:d9(n,t)),f9=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:m9(n,t)),m9=(e,t)=>({IndexName:(0,p.expectString)(e.IndexName),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?Ls(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?Ud(e.Projection,t):void 0}),p9=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:y(o({},r),{[n]:Ds((0,p.expectUnion)(i),t)}),{}),_9=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:(0,p.expectString)(n)),h9=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:(0,p.expectString)(n)),y9=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:GJ(n,t)),g9=(e,t)=>({EarliestRestorableDateTime:e.EarliestRestorableDateTime!==void 0&&e.EarliestRestorableDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.EarliestRestorableDateTime))):void 0,LatestRestorableDateTime:e.LatestRestorableDateTime!==void 0&&e.LatestRestorableDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.LatestRestorableDateTime))):void 0,PointInTimeRecoveryStatus:(0,p.expectString)(e.PointInTimeRecoveryStatus)}),v9=(e,t)=>({message:(0,p.expectString)(e.message)}),Ud=(e,t)=>({NonKeyAttributes:e.NonKeyAttributes!==void 0&&e.NonKeyAttributes!==null?_9(e.NonKeyAttributes,t):void 0,ProjectionType:(0,p.expectString)(e.ProjectionType)}),vI=(e,t)=>({ReadCapacityUnits:(0,p.expectLong)(e.ReadCapacityUnits),WriteCapacityUnits:(0,p.expectLong)(e.WriteCapacityUnits)}),SI=(e,t)=>({LastDecreaseDateTime:e.LastDecreaseDateTime!==void 0&&e.LastDecreaseDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.LastDecreaseDateTime))):void 0,LastIncreaseDateTime:e.LastIncreaseDateTime!==void 0&&e.LastIncreaseDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.LastIncreaseDateTime))):void 0,NumberOfDecreasesToday:(0,p.expectLong)(e.NumberOfDecreasesToday),ReadCapacityUnits:(0,p.expectLong)(e.ReadCapacityUnits),WriteCapacityUnits:(0,p.expectLong)(e.WriteCapacityUnits)}),S9=(e,t)=>({message:(0,p.expectString)(e.message)}),wI=(e,t)=>({ReadCapacityUnits:(0,p.expectLong)(e.ReadCapacityUnits)}),w9=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:y(o({},r),{[n]:Ds((0,p.expectUnion)(i),t)}),{}),E9=(e,t)=>({Attributes:e.Attributes!==void 0&&e.Attributes!==null?Hn(e.Attributes,t):void 0,ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Wn(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?kd(e.ItemCollectionMetrics,t):void 0}),b9=(e,t)=>({Item:e.Item!==void 0&&e.Item!==null?w9(e.Item,t):void 0}),A9=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Wn(e.ConsumedCapacity,t):void 0,Count:(0,p.expectInt32)(e.Count),Items:e.Items!==void 0&&e.Items!==null?Fd(e.Items,t):void 0,LastEvaluatedKey:e.LastEvaluatedKey!==void 0&&e.LastEvaluatedKey!==null?Oa(e.LastEvaluatedKey,t):void 0,ScannedCount:(0,p.expectInt32)(e.ScannedCount)}),T9=(e,t)=>({RegionName:(0,p.expectString)(e.RegionName)}),C9=(e,t)=>({message:(0,p.expectString)(e.message)}),x9=(e,t)=>({GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?P9(e.GlobalSecondaryIndexes,t):void 0,RegionName:(0,p.expectString)(e.RegionName),ReplicaProvisionedReadCapacityAutoScalingSettings:e.ReplicaProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedReadCapacityAutoScalingSettings!==null?Vn(e.ReplicaProvisionedReadCapacityAutoScalingSettings,t):void 0,ReplicaProvisionedWriteCapacityAutoScalingSettings:e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==null?Vn(e.ReplicaProvisionedWriteCapacityAutoScalingSettings,t):void 0,ReplicaStatus:(0,p.expectString)(e.ReplicaStatus)}),I9=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:x9(n,t)),R9=(e,t)=>({GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?O9(e.GlobalSecondaryIndexes,t):void 0,KMSMasterKeyId:(0,p.expectString)(e.KMSMasterKeyId),ProvisionedThroughputOverride:e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null?wI(e.ProvisionedThroughputOverride,t):void 0,RegionName:(0,p.expectString)(e.RegionName),ReplicaInaccessibleDateTime:e.ReplicaInaccessibleDateTime!==void 0&&e.ReplicaInaccessibleDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.ReplicaInaccessibleDateTime))):void 0,ReplicaStatus:(0,p.expectString)(e.ReplicaStatus),ReplicaStatusDescription:(0,p.expectString)(e.ReplicaStatusDescription),ReplicaStatusPercentProgress:(0,p.expectString)(e.ReplicaStatusPercentProgress),ReplicaTableClassSummary:e.ReplicaTableClassSummary!==void 0&&e.ReplicaTableClassSummary!==null?Vv(e.ReplicaTableClassSummary,t):void 0}),EI=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:R9(n,t)),N9=(e,t)=>({IndexName:(0,p.expectString)(e.IndexName),IndexStatus:(0,p.expectString)(e.IndexStatus),ProvisionedReadCapacityAutoScalingSettings:e.ProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ProvisionedReadCapacityAutoScalingSettings!==null?Vn(e.ProvisionedReadCapacityAutoScalingSettings,t):void 0,ProvisionedWriteCapacityAutoScalingSettings:e.ProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ProvisionedWriteCapacityAutoScalingSettings!==null?Vn(e.ProvisionedWriteCapacityAutoScalingSettings,t):void 0}),P9=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:N9(n,t)),D9=(e,t)=>({IndexName:(0,p.expectString)(e.IndexName),ProvisionedThroughputOverride:e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null?wI(e.ProvisionedThroughputOverride,t):void 0}),O9=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:D9(n,t)),L9=(e,t)=>({IndexName:(0,p.expectString)(e.IndexName),IndexStatus:(0,p.expectString)(e.IndexStatus),ProvisionedReadCapacityAutoScalingSettings:e.ProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ProvisionedReadCapacityAutoScalingSettings!==null?Vn(e.ProvisionedReadCapacityAutoScalingSettings,t):void 0,ProvisionedReadCapacityUnits:(0,p.expectLong)(e.ProvisionedReadCapacityUnits),ProvisionedWriteCapacityAutoScalingSettings:e.ProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ProvisionedWriteCapacityAutoScalingSettings!==null?Vn(e.ProvisionedWriteCapacityAutoScalingSettings,t):void 0,ProvisionedWriteCapacityUnits:(0,p.expectLong)(e.ProvisionedWriteCapacityUnits)}),q9=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:L9(n,t)),M9=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:T9(n,t)),z9=(e,t)=>({message:(0,p.expectString)(e.message)}),j9=(e,t)=>({RegionName:(0,p.expectString)(e.RegionName),ReplicaBillingModeSummary:e.ReplicaBillingModeSummary!==void 0&&e.ReplicaBillingModeSummary!==null?fI(e.ReplicaBillingModeSummary,t):void 0,ReplicaGlobalSecondaryIndexSettings:e.ReplicaGlobalSecondaryIndexSettings!==void 0&&e.ReplicaGlobalSecondaryIndexSettings!==null?q9(e.ReplicaGlobalSecondaryIndexSettings,t):void 0,ReplicaProvisionedReadCapacityAutoScalingSettings:e.ReplicaProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedReadCapacityAutoScalingSettings!==null?Vn(e.ReplicaProvisionedReadCapacityAutoScalingSettings,t):void 0,ReplicaProvisionedReadCapacityUnits:(0,p.expectLong)(e.ReplicaProvisionedReadCapacityUnits),ReplicaProvisionedWriteCapacityAutoScalingSettings:e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==null?Vn(e.ReplicaProvisionedWriteCapacityAutoScalingSettings,t):void 0,ReplicaProvisionedWriteCapacityUnits:(0,p.expectLong)(e.ReplicaProvisionedWriteCapacityUnits),ReplicaStatus:(0,p.expectString)(e.ReplicaStatus),ReplicaTableClassSummary:e.ReplicaTableClassSummary!==void 0&&e.ReplicaTableClassSummary!==null?Vv(e.ReplicaTableClassSummary,t):void 0}),bI=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:j9(n,t)),k9=(e,t)=>({message:(0,p.expectString)(e.message)}),F9=(e,t)=>({message:(0,p.expectString)(e.message)}),U9=(e,t)=>({message:(0,p.expectString)(e.message)}),B9=(e,t)=>({RestoreDateTime:e.RestoreDateTime!==void 0&&e.RestoreDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.RestoreDateTime))):void 0,RestoreInProgress:(0,p.expectBoolean)(e.RestoreInProgress),SourceBackupArn:(0,p.expectString)(e.SourceBackupArn),SourceTableArn:(0,p.expectString)(e.SourceTableArn)}),G9=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?qs(e.TableDescription,t):void 0}),$9=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?qs(e.TableDescription,t):void 0}),V9=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Wn(e.ConsumedCapacity,t):void 0,Count:(0,p.expectInt32)(e.Count),Items:e.Items!==void 0&&e.Items!==null?Fd(e.Items,t):void 0,LastEvaluatedKey:e.LastEvaluatedKey!==void 0&&e.LastEvaluatedKey!==null?Oa(e.LastEvaluatedKey,t):void 0,ScannedCount:(0,p.expectInt32)(e.ScannedCount)}),Jx=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:y(o({},r),{[n]:mI(i,t)}),{}),K9=(e,t)=>({BillingMode:(0,p.expectString)(e.BillingMode),ItemCount:(0,p.expectLong)(e.ItemCount),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?Ls(e.KeySchema,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?vI(e.ProvisionedThroughput,t):void 0,TableArn:(0,p.expectString)(e.TableArn),TableCreationDateTime:e.TableCreationDateTime!==void 0&&e.TableCreationDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.TableCreationDateTime))):void 0,TableId:(0,p.expectString)(e.TableId),TableName:(0,p.expectString)(e.TableName),TableSizeBytes:(0,p.expectLong)(e.TableSizeBytes)}),H9=(e,t)=>({GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?LY(e.GlobalSecondaryIndexes,t):void 0,LocalSecondaryIndexes:e.LocalSecondaryIndexes!==void 0&&e.LocalSecondaryIndexes!==null?f9(e.LocalSecondaryIndexes,t):void 0,SSEDescription:e.SSEDescription!==void 0&&e.SSEDescription!==null?AI(e.SSEDescription,t):void 0,StreamDescription:e.StreamDescription!==void 0&&e.StreamDescription!==null?TI(e.StreamDescription,t):void 0,TimeToLiveDescription:e.TimeToLiveDescription!==void 0&&e.TimeToLiveDescription!==null?xI(e.TimeToLiveDescription,t):void 0}),AI=(e,t)=>({InaccessibleEncryptionDateTime:e.InaccessibleEncryptionDateTime!==void 0&&e.InaccessibleEncryptionDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.InaccessibleEncryptionDateTime))):void 0,KMSMasterKeyArn:(0,p.expectString)(e.KMSMasterKeyArn),SSEType:(0,p.expectString)(e.SSEType),Status:(0,p.expectString)(e.Status)}),TI=(e,t)=>({StreamEnabled:(0,p.expectBoolean)(e.StreamEnabled),StreamViewType:(0,p.expectString)(e.StreamViewType)}),W9=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:(0,p.expectString)(n)),J9=(e,t)=>({message:(0,p.expectString)(e.message)}),CI=(e,t)=>({Replicas:e.Replicas!==void 0&&e.Replicas!==null?I9(e.Replicas,t):void 0,TableName:(0,p.expectString)(e.TableName),TableStatus:(0,p.expectString)(e.TableStatus)}),Vv=(e,t)=>({LastUpdateDateTime:e.LastUpdateDateTime!==void 0&&e.LastUpdateDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.LastUpdateDateTime))):void 0,TableClass:(0,p.expectString)(e.TableClass)}),qs=(e,t)=>({ArchivalSummary:e.ArchivalSummary!==void 0&&e.ArchivalSummary!==null?xJ(e.ArchivalSummary,t):void 0,AttributeDefinitions:e.AttributeDefinitions!==void 0&&e.AttributeDefinitions!==null?RJ(e.AttributeDefinitions,t):void 0,BillingModeSummary:e.BillingModeSummary!==void 0&&e.BillingModeSummary!==null?fI(e.BillingModeSummary,t):void 0,CreationDateTime:e.CreationDateTime!==void 0&&e.CreationDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.CreationDateTime))):void 0,GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?OY(e.GlobalSecondaryIndexes,t):void 0,GlobalTableVersion:(0,p.expectString)(e.GlobalTableVersion),ItemCount:(0,p.expectLong)(e.ItemCount),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?Ls(e.KeySchema,t):void 0,LatestStreamArn:(0,p.expectString)(e.LatestStreamArn),LatestStreamLabel:(0,p.expectString)(e.LatestStreamLabel),LocalSecondaryIndexes:e.LocalSecondaryIndexes!==void 0&&e.LocalSecondaryIndexes!==null?u9(e.LocalSecondaryIndexes,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?SI(e.ProvisionedThroughput,t):void 0,Replicas:e.Replicas!==void 0&&e.Replicas!==null?EI(e.Replicas,t):void 0,RestoreSummary:e.RestoreSummary!==void 0&&e.RestoreSummary!==null?B9(e.RestoreSummary,t):void 0,SSEDescription:e.SSEDescription!==void 0&&e.SSEDescription!==null?AI(e.SSEDescription,t):void 0,StreamSpecification:e.StreamSpecification!==void 0&&e.StreamSpecification!==null?TI(e.StreamSpecification,t):void 0,TableArn:(0,p.expectString)(e.TableArn),TableClassSummary:e.TableClassSummary!==void 0&&e.TableClassSummary!==null?Vv(e.TableClassSummary,t):void 0,TableId:(0,p.expectString)(e.TableId),TableName:(0,p.expectString)(e.TableName),TableSizeBytes:(0,p.expectLong)(e.TableSizeBytes),TableStatus:(0,p.expectString)(e.TableStatus)}),Y9=(e,t)=>({message:(0,p.expectString)(e.message)}),Q9=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:(0,p.expectString)(n)),X9=(e,t)=>({message:(0,p.expectString)(e.message)}),Z9=(e,t)=>({Key:(0,p.expectString)(e.Key),Value:(0,p.expectString)(e.Value)}),eQ=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:Z9(n,t)),xI=(e,t)=>({AttributeName:(0,p.expectString)(e.AttributeName),TimeToLiveStatus:(0,p.expectString)(e.TimeToLiveStatus)}),tQ=(e,t)=>({AttributeName:(0,p.expectString)(e.AttributeName),Enabled:(0,p.expectBoolean)(e.Enabled)}),rQ=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Os(e.ConsumedCapacity,t):void 0,Responses:e.Responses!==void 0&&e.Responses!==null?yI(e.Responses,t):void 0}),nQ=(e,t)=>({CancellationReasons:e.CancellationReasons!==void 0&&e.CancellationReasons!==null?WJ(e.CancellationReasons,t):void 0,Message:(0,p.expectString)(e.Message)}),iQ=(e,t)=>({message:(0,p.expectString)(e.message)}),sQ=(e,t)=>({Message:(0,p.expectString)(e.Message)}),oQ=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Os(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?hI(e.ItemCollectionMetrics,t):void 0}),aQ=(e,t)=>({ContinuousBackupsDescription:e.ContinuousBackupsDescription!==void 0&&e.ContinuousBackupsDescription!==null?pI(e.ContinuousBackupsDescription,t):void 0}),cQ=(e,t)=>({ContributorInsightsStatus:(0,p.expectString)(e.ContributorInsightsStatus),IndexName:(0,p.expectString)(e.IndexName),TableName:(0,p.expectString)(e.TableName)}),lQ=(e,t)=>({GlobalTableDescription:e.GlobalTableDescription!==void 0&&e.GlobalTableDescription!==null?$v(e.GlobalTableDescription,t):void 0}),dQ=(e,t)=>({GlobalTableName:(0,p.expectString)(e.GlobalTableName),ReplicaSettings:e.ReplicaSettings!==void 0&&e.ReplicaSettings!==null?bI(e.ReplicaSettings,t):void 0}),uQ=(e,t)=>({Attributes:e.Attributes!==void 0&&e.Attributes!==null?Hn(e.Attributes,t):void 0,ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Wn(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?kd(e.ItemCollectionMetrics,t):void 0}),fQ=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?qs(e.TableDescription,t):void 0}),mQ=(e,t)=>({TableAutoScalingDescription:e.TableAutoScalingDescription!==void 0&&e.TableAutoScalingDescription!==null?CI(e.TableAutoScalingDescription,t):void 0}),pQ=(e,t)=>({TimeToLiveSpecification:e.TimeToLiveSpecification!==void 0&&e.TimeToLiveSpecification!==null?tQ(e.TimeToLiveSpecification,t):void 0}),_Q=(e,t)=>({DeleteRequest:e.DeleteRequest!==void 0&&e.DeleteRequest!==null?sY(e.DeleteRequest,t):void 0,PutRequest:e.PutRequest!==void 0&&e.PutRequest!==null?b9(e.PutRequest,t):void 0}),hQ=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:_Q(n,t)),x=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"]}},Kv=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),yQ=(e,t)=>Kv(e,t).then(r=>t.utf8Encoder(r)),re=async(e,t,r,n,i)=>{let{hostname:s,protocol:a="https",port:c,path:l}=await e.endpoint(),u={protocol:a,hostname:s,port:c,method:"POST",path:l.endsWith("/")?l.slice(0,-1)+r:l+r,headers:t};return n!==void 0&&(u.hostname=n),i!==void 0&&(u.body=i),new SW.HttpRequest(u)},D=(e,t)=>yQ(e,t).then(r=>r.length?JSON.parse(r):{}),ne=(e,t)=>{let r=(s,a)=>Object.keys(s).find(c=>c.toLowerCase()===a.toLowerCase()),n=s=>{let a=s;return a.indexOf(":")>=0&&(a=a.split(":")[0]),a.indexOf("#")>=0&&(a=a.split("#")[1]),a},i=r(e.headers,"x-amzn-errortype");return i!==void 0?n(e.headers[i]):t.code!==void 0?n(t.code):t.__type!==void 0?n(t.__type):""}});var Wv=m(Bd=>{"use strict";Object.defineProperty(Bd,"__esModule",{value:!0});Bd.BatchExecuteStatementCommand=void 0;var gQ=G(),vQ=P(),II=Y(),RI=Z(),Hv=class extends vQ.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,gQ.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"BatchExecuteStatementCommand",inputFilterSensitiveLog:II.BatchExecuteStatementInput.filterSensitiveLog,outputFilterSensitiveLog:II.BatchExecuteStatementOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,RI.serializeAws_json1_0BatchExecuteStatementCommand)(t,r)}deserialize(t,r){return(0,RI.deserializeAws_json1_0BatchExecuteStatementCommand)(t,r)}};Bd.BatchExecuteStatementCommand=Hv});var Yv=m(Gd=>{"use strict";Object.defineProperty(Gd,"__esModule",{value:!0});Gd.BatchGetItemCommand=void 0;var SQ=G(),wQ=P(),NI=Y(),PI=Z(),Jv=class extends wQ.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,SQ.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"BatchGetItemCommand",inputFilterSensitiveLog:NI.BatchGetItemInput.filterSensitiveLog,outputFilterSensitiveLog:NI.BatchGetItemOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,PI.serializeAws_json1_0BatchGetItemCommand)(t,r)}deserialize(t,r){return(0,PI.deserializeAws_json1_0BatchGetItemCommand)(t,r)}};Gd.BatchGetItemCommand=Jv});var Xv=m($d=>{"use strict";Object.defineProperty($d,"__esModule",{value:!0});$d.BatchWriteItemCommand=void 0;var EQ=G(),bQ=P(),DI=Y(),OI=Z(),Qv=class extends bQ.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,EQ.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"BatchWriteItemCommand",inputFilterSensitiveLog:DI.BatchWriteItemInput.filterSensitiveLog,outputFilterSensitiveLog:DI.BatchWriteItemOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,OI.serializeAws_json1_0BatchWriteItemCommand)(t,r)}deserialize(t,r){return(0,OI.deserializeAws_json1_0BatchWriteItemCommand)(t,r)}};$d.BatchWriteItemCommand=Qv});var eS=m(Vd=>{"use strict";Object.defineProperty(Vd,"__esModule",{value:!0});Vd.CreateBackupCommand=void 0;var AQ=G(),TQ=P(),LI=Y(),qI=Z(),Zv=class extends TQ.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,AQ.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"CreateBackupCommand",inputFilterSensitiveLog:LI.CreateBackupInput.filterSensitiveLog,outputFilterSensitiveLog:LI.CreateBackupOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,qI.serializeAws_json1_0CreateBackupCommand)(t,r)}deserialize(t,r){return(0,qI.deserializeAws_json1_0CreateBackupCommand)(t,r)}};Vd.CreateBackupCommand=Zv});var rS=m(Kd=>{"use strict";Object.defineProperty(Kd,"__esModule",{value:!0});Kd.CreateGlobalTableCommand=void 0;var CQ=G(),xQ=P(),MI=Y(),zI=Z(),tS=class extends xQ.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,CQ.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"CreateGlobalTableCommand",inputFilterSensitiveLog:MI.CreateGlobalTableInput.filterSensitiveLog,outputFilterSensitiveLog:MI.CreateGlobalTableOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,zI.serializeAws_json1_0CreateGlobalTableCommand)(t,r)}deserialize(t,r){return(0,zI.deserializeAws_json1_0CreateGlobalTableCommand)(t,r)}};Kd.CreateGlobalTableCommand=tS});var iS=m(Hd=>{"use strict";Object.defineProperty(Hd,"__esModule",{value:!0});Hd.CreateTableCommand=void 0;var IQ=G(),RQ=P(),jI=Y(),kI=Z(),nS=class extends RQ.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,IQ.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"CreateTableCommand",inputFilterSensitiveLog:jI.CreateTableInput.filterSensitiveLog,outputFilterSensitiveLog:jI.CreateTableOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,kI.serializeAws_json1_0CreateTableCommand)(t,r)}deserialize(t,r){return(0,kI.deserializeAws_json1_0CreateTableCommand)(t,r)}};Hd.CreateTableCommand=nS});var oS=m(Wd=>{"use strict";Object.defineProperty(Wd,"__esModule",{value:!0});Wd.DeleteBackupCommand=void 0;var NQ=G(),PQ=P(),FI=Y(),UI=Z(),sS=class extends PQ.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,NQ.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"DeleteBackupCommand",inputFilterSensitiveLog:FI.DeleteBackupInput.filterSensitiveLog,outputFilterSensitiveLog:FI.DeleteBackupOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,UI.serializeAws_json1_0DeleteBackupCommand)(t,r)}deserialize(t,r){return(0,UI.deserializeAws_json1_0DeleteBackupCommand)(t,r)}};Wd.DeleteBackupCommand=sS});var cS=m(Jd=>{"use strict";Object.defineProperty(Jd,"__esModule",{value:!0});Jd.DeleteItemCommand=void 0;var DQ=G(),OQ=P(),BI=Y(),GI=Z(),aS=class extends OQ.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,DQ.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"DeleteItemCommand",inputFilterSensitiveLog:BI.DeleteItemInput.filterSensitiveLog,outputFilterSensitiveLog:BI.DeleteItemOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,GI.serializeAws_json1_0DeleteItemCommand)(t,r)}deserialize(t,r){return(0,GI.deserializeAws_json1_0DeleteItemCommand)(t,r)}};Jd.DeleteItemCommand=aS});var dS=m(Yd=>{"use strict";Object.defineProperty(Yd,"__esModule",{value:!0});Yd.DeleteTableCommand=void 0;var LQ=G(),qQ=P(),$I=Y(),VI=Z(),lS=class extends qQ.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,LQ.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"DeleteTableCommand",inputFilterSensitiveLog:$I.DeleteTableInput.filterSensitiveLog,outputFilterSensitiveLog:$I.DeleteTableOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,VI.serializeAws_json1_0DeleteTableCommand)(t,r)}deserialize(t,r){return(0,VI.deserializeAws_json1_0DeleteTableCommand)(t,r)}};Yd.DeleteTableCommand=lS});var fS=m(Qd=>{"use strict";Object.defineProperty(Qd,"__esModule",{value:!0});Qd.DescribeBackupCommand=void 0;var MQ=G(),zQ=P(),KI=Y(),HI=Z(),uS=class extends zQ.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,MQ.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"DescribeBackupCommand",inputFilterSensitiveLog:KI.DescribeBackupInput.filterSensitiveLog,outputFilterSensitiveLog:KI.DescribeBackupOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,HI.serializeAws_json1_0DescribeBackupCommand)(t,r)}deserialize(t,r){return(0,HI.deserializeAws_json1_0DescribeBackupCommand)(t,r)}};Qd.DescribeBackupCommand=uS});var pS=m(Xd=>{"use strict";Object.defineProperty(Xd,"__esModule",{value:!0});Xd.DescribeContinuousBackupsCommand=void 0;var jQ=G(),kQ=P(),WI=Y(),JI=Z(),mS=class extends kQ.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,jQ.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"DescribeContinuousBackupsCommand",inputFilterSensitiveLog:WI.DescribeContinuousBackupsInput.filterSensitiveLog,outputFilterSensitiveLog:WI.DescribeContinuousBackupsOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,JI.serializeAws_json1_0DescribeContinuousBackupsCommand)(t,r)}deserialize(t,r){return(0,JI.deserializeAws_json1_0DescribeContinuousBackupsCommand)(t,r)}};Xd.DescribeContinuousBackupsCommand=mS});var hS=m(Zd=>{"use strict";Object.defineProperty(Zd,"__esModule",{value:!0});Zd.DescribeContributorInsightsCommand=void 0;var FQ=G(),UQ=P(),YI=Y(),QI=Z(),_S=class extends UQ.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,FQ.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"DescribeContributorInsightsCommand",inputFilterSensitiveLog:YI.DescribeContributorInsightsInput.filterSensitiveLog,outputFilterSensitiveLog:YI.DescribeContributorInsightsOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,QI.serializeAws_json1_0DescribeContributorInsightsCommand)(t,r)}deserialize(t,r){return(0,QI.deserializeAws_json1_0DescribeContributorInsightsCommand)(t,r)}};Zd.DescribeContributorInsightsCommand=_S});var tu=m(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});eu.DescribeEndpointsCommand=void 0;var BQ=G(),GQ=P(),XI=Y(),ZI=Z(),yS=class extends GQ.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,BQ.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"DescribeEndpointsCommand",inputFilterSensitiveLog:XI.DescribeEndpointsRequest.filterSensitiveLog,outputFilterSensitiveLog:XI.DescribeEndpointsResponse.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,ZI.serializeAws_json1_0DescribeEndpointsCommand)(t,r)}deserialize(t,r){return(0,ZI.deserializeAws_json1_0DescribeEndpointsCommand)(t,r)}};eu.DescribeEndpointsCommand=yS});var vS=m(ru=>{"use strict";Object.defineProperty(ru,"__esModule",{value:!0});ru.DescribeExportCommand=void 0;var $Q=G(),VQ=P(),e1=Y(),t1=Z(),gS=class extends VQ.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,$Q.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"DescribeExportCommand",inputFilterSensitiveLog:e1.DescribeExportInput.filterSensitiveLog,outputFilterSensitiveLog:e1.DescribeExportOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,t1.serializeAws_json1_0DescribeExportCommand)(t,r)}deserialize(t,r){return(0,t1.deserializeAws_json1_0DescribeExportCommand)(t,r)}};ru.DescribeExportCommand=gS});var wS=m(nu=>{"use strict";Object.defineProperty(nu,"__esModule",{value:!0});nu.DescribeGlobalTableCommand=void 0;var KQ=G(),HQ=P(),r1=Y(),n1=Z(),SS=class extends HQ.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,KQ.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"DescribeGlobalTableCommand",inputFilterSensitiveLog:r1.DescribeGlobalTableInput.filterSensitiveLog,outputFilterSensitiveLog:r1.DescribeGlobalTableOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,n1.serializeAws_json1_0DescribeGlobalTableCommand)(t,r)}deserialize(t,r){return(0,n1.deserializeAws_json1_0DescribeGlobalTableCommand)(t,r)}};nu.DescribeGlobalTableCommand=SS});var bS=m(iu=>{"use strict";Object.defineProperty(iu,"__esModule",{value:!0});iu.DescribeGlobalTableSettingsCommand=void 0;var WQ=G(),JQ=P(),i1=Y(),s1=Z(),ES=class extends JQ.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,WQ.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"DescribeGlobalTableSettingsCommand",inputFilterSensitiveLog:i1.DescribeGlobalTableSettingsInput.filterSensitiveLog,outputFilterSensitiveLog:i1.DescribeGlobalTableSettingsOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,s1.serializeAws_json1_0DescribeGlobalTableSettingsCommand)(t,r)}deserialize(t,r){return(0,s1.deserializeAws_json1_0DescribeGlobalTableSettingsCommand)(t,r)}};iu.DescribeGlobalTableSettingsCommand=ES});var TS=m(su=>{"use strict";Object.defineProperty(su,"__esModule",{value:!0});su.DescribeKinesisStreamingDestinationCommand=void 0;var YQ=G(),QQ=P(),o1=Y(),a1=Z(),AS=class extends QQ.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,YQ.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"DescribeKinesisStreamingDestinationCommand",inputFilterSensitiveLog:o1.DescribeKinesisStreamingDestinationInput.filterSensitiveLog,outputFilterSensitiveLog:o1.DescribeKinesisStreamingDestinationOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,a1.serializeAws_json1_0DescribeKinesisStreamingDestinationCommand)(t,r)}deserialize(t,r){return(0,a1.deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand)(t,r)}};su.DescribeKinesisStreamingDestinationCommand=AS});var xS=m(ou=>{"use strict";Object.defineProperty(ou,"__esModule",{value:!0});ou.DescribeLimitsCommand=void 0;var XQ=G(),ZQ=P(),c1=Y(),l1=Z(),CS=class extends ZQ.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,XQ.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"DescribeLimitsCommand",inputFilterSensitiveLog:c1.DescribeLimitsInput.filterSensitiveLog,outputFilterSensitiveLog:c1.DescribeLimitsOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,l1.serializeAws_json1_0DescribeLimitsCommand)(t,r)}deserialize(t,r){return(0,l1.deserializeAws_json1_0DescribeLimitsCommand)(t,r)}};ou.DescribeLimitsCommand=CS});var La=m(au=>{"use strict";Object.defineProperty(au,"__esModule",{value:!0});au.DescribeTableCommand=void 0;var e7=G(),t7=P(),d1=Y(),u1=Z(),IS=class extends t7.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,e7.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"DescribeTableCommand",inputFilterSensitiveLog:d1.DescribeTableInput.filterSensitiveLog,outputFilterSensitiveLog:d1.DescribeTableOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,u1.serializeAws_json1_0DescribeTableCommand)(t,r)}deserialize(t,r){return(0,u1.deserializeAws_json1_0DescribeTableCommand)(t,r)}};au.DescribeTableCommand=IS});var NS=m(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});cu.DescribeTableReplicaAutoScalingCommand=void 0;var r7=G(),n7=P(),f1=Y(),m1=Z(),RS=class extends n7.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,r7.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"DescribeTableReplicaAutoScalingCommand",inputFilterSensitiveLog:f1.DescribeTableReplicaAutoScalingInput.filterSensitiveLog,outputFilterSensitiveLog:f1.DescribeTableReplicaAutoScalingOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,m1.serializeAws_json1_0DescribeTableReplicaAutoScalingCommand)(t,r)}deserialize(t,r){return(0,m1.deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand)(t,r)}};cu.DescribeTableReplicaAutoScalingCommand=RS});var DS=m(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});lu.DescribeTimeToLiveCommand=void 0;var i7=G(),s7=P(),p1=Y(),_1=Z(),PS=class extends s7.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,i7.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"DescribeTimeToLiveCommand",inputFilterSensitiveLog:p1.DescribeTimeToLiveInput.filterSensitiveLog,outputFilterSensitiveLog:p1.DescribeTimeToLiveOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,_1.serializeAws_json1_0DescribeTimeToLiveCommand)(t,r)}deserialize(t,r){return(0,_1.deserializeAws_json1_0DescribeTimeToLiveCommand)(t,r)}};lu.DescribeTimeToLiveCommand=PS});var LS=m(du=>{"use strict";Object.defineProperty(du,"__esModule",{value:!0});du.DisableKinesisStreamingDestinationCommand=void 0;var o7=G(),a7=P(),h1=Y(),y1=Z(),OS=class extends a7.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,o7.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"DisableKinesisStreamingDestinationCommand",inputFilterSensitiveLog:h1.KinesisStreamingDestinationInput.filterSensitiveLog,outputFilterSensitiveLog:h1.KinesisStreamingDestinationOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,y1.serializeAws_json1_0DisableKinesisStreamingDestinationCommand)(t,r)}deserialize(t,r){return(0,y1.deserializeAws_json1_0DisableKinesisStreamingDestinationCommand)(t,r)}};du.DisableKinesisStreamingDestinationCommand=OS});var MS=m(uu=>{"use strict";Object.defineProperty(uu,"__esModule",{value:!0});uu.EnableKinesisStreamingDestinationCommand=void 0;var c7=G(),l7=P(),g1=Y(),v1=Z(),qS=class extends l7.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,c7.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"EnableKinesisStreamingDestinationCommand",inputFilterSensitiveLog:g1.KinesisStreamingDestinationInput.filterSensitiveLog,outputFilterSensitiveLog:g1.KinesisStreamingDestinationOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,v1.serializeAws_json1_0EnableKinesisStreamingDestinationCommand)(t,r)}deserialize(t,r){return(0,v1.deserializeAws_json1_0EnableKinesisStreamingDestinationCommand)(t,r)}};uu.EnableKinesisStreamingDestinationCommand=qS});var jS=m(fu=>{"use strict";Object.defineProperty(fu,"__esModule",{value:!0});fu.ExecuteStatementCommand=void 0;var d7=G(),u7=P(),S1=Y(),w1=Z(),zS=class extends u7.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,d7.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"ExecuteStatementCommand",inputFilterSensitiveLog:S1.ExecuteStatementInput.filterSensitiveLog,outputFilterSensitiveLog:S1.ExecuteStatementOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,w1.serializeAws_json1_0ExecuteStatementCommand)(t,r)}deserialize(t,r){return(0,w1.deserializeAws_json1_0ExecuteStatementCommand)(t,r)}};fu.ExecuteStatementCommand=zS});var FS=m(mu=>{"use strict";Object.defineProperty(mu,"__esModule",{value:!0});mu.ExecuteTransactionCommand=void 0;var f7=G(),m7=P(),E1=Y(),b1=Z(),kS=class extends m7.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,f7.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"ExecuteTransactionCommand",inputFilterSensitiveLog:E1.ExecuteTransactionInput.filterSensitiveLog,outputFilterSensitiveLog:E1.ExecuteTransactionOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,b1.serializeAws_json1_0ExecuteTransactionCommand)(t,r)}deserialize(t,r){return(0,b1.deserializeAws_json1_0ExecuteTransactionCommand)(t,r)}};mu.ExecuteTransactionCommand=kS});var BS=m(pu=>{"use strict";Object.defineProperty(pu,"__esModule",{value:!0});pu.ExportTableToPointInTimeCommand=void 0;var p7=G(),_7=P(),A1=Y(),T1=Z(),US=class extends _7.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,p7.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"ExportTableToPointInTimeCommand",inputFilterSensitiveLog:A1.ExportTableToPointInTimeInput.filterSensitiveLog,outputFilterSensitiveLog:A1.ExportTableToPointInTimeOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,T1.serializeAws_json1_0ExportTableToPointInTimeCommand)(t,r)}deserialize(t,r){return(0,T1.deserializeAws_json1_0ExportTableToPointInTimeCommand)(t,r)}};pu.ExportTableToPointInTimeCommand=US});var $S=m(_u=>{"use strict";Object.defineProperty(_u,"__esModule",{value:!0});_u.GetItemCommand=void 0;var h7=G(),y7=P(),C1=Y(),x1=Z(),GS=class extends y7.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,h7.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"GetItemCommand",inputFilterSensitiveLog:C1.GetItemInput.filterSensitiveLog,outputFilterSensitiveLog:C1.GetItemOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,x1.serializeAws_json1_0GetItemCommand)(t,r)}deserialize(t,r){return(0,x1.deserializeAws_json1_0GetItemCommand)(t,r)}};_u.GetItemCommand=GS});var KS=m(hu=>{"use strict";Object.defineProperty(hu,"__esModule",{value:!0});hu.ListBackupsCommand=void 0;var g7=G(),v7=P(),I1=Y(),R1=Z(),VS=class extends v7.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,g7.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"ListBackupsCommand",inputFilterSensitiveLog:I1.ListBackupsInput.filterSensitiveLog,outputFilterSensitiveLog:I1.ListBackupsOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,R1.serializeAws_json1_0ListBackupsCommand)(t,r)}deserialize(t,r){return(0,R1.deserializeAws_json1_0ListBackupsCommand)(t,r)}};hu.ListBackupsCommand=VS});var gu=m(yu=>{"use strict";Object.defineProperty(yu,"__esModule",{value:!0});yu.ListContributorInsightsCommand=void 0;var S7=G(),w7=P(),N1=Y(),P1=Z(),HS=class extends w7.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,S7.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"ListContributorInsightsCommand",inputFilterSensitiveLog:N1.ListContributorInsightsInput.filterSensitiveLog,outputFilterSensitiveLog:N1.ListContributorInsightsOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,P1.serializeAws_json1_0ListContributorInsightsCommand)(t,r)}deserialize(t,r){return(0,P1.deserializeAws_json1_0ListContributorInsightsCommand)(t,r)}};yu.ListContributorInsightsCommand=HS});var Su=m(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});vu.ListExportsCommand=void 0;var E7=G(),b7=P(),D1=Y(),O1=Z(),WS=class extends b7.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,E7.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"ListExportsCommand",inputFilterSensitiveLog:D1.ListExportsInput.filterSensitiveLog,outputFilterSensitiveLog:D1.ListExportsOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,O1.serializeAws_json1_0ListExportsCommand)(t,r)}deserialize(t,r){return(0,O1.deserializeAws_json1_0ListExportsCommand)(t,r)}};vu.ListExportsCommand=WS});var YS=m(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});wu.ListGlobalTablesCommand=void 0;var A7=G(),T7=P(),L1=Y(),q1=Z(),JS=class extends T7.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,A7.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"ListGlobalTablesCommand",inputFilterSensitiveLog:L1.ListGlobalTablesInput.filterSensitiveLog,outputFilterSensitiveLog:L1.ListGlobalTablesOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,q1.serializeAws_json1_0ListGlobalTablesCommand)(t,r)}deserialize(t,r){return(0,q1.deserializeAws_json1_0ListGlobalTablesCommand)(t,r)}};wu.ListGlobalTablesCommand=JS});var bu=m(Eu=>{"use strict";Object.defineProperty(Eu,"__esModule",{value:!0});Eu.ListTablesCommand=void 0;var C7=G(),x7=P(),M1=Y(),z1=Z(),QS=class extends x7.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,C7.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"ListTablesCommand",inputFilterSensitiveLog:M1.ListTablesInput.filterSensitiveLog,outputFilterSensitiveLog:M1.ListTablesOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,z1.serializeAws_json1_0ListTablesCommand)(t,r)}deserialize(t,r){return(0,z1.deserializeAws_json1_0ListTablesCommand)(t,r)}};Eu.ListTablesCommand=QS});var ZS=m(Au=>{"use strict";Object.defineProperty(Au,"__esModule",{value:!0});Au.ListTagsOfResourceCommand=void 0;var I7=G(),R7=P(),j1=Y(),k1=Z(),XS=class extends R7.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,I7.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"ListTagsOfResourceCommand",inputFilterSensitiveLog:j1.ListTagsOfResourceInput.filterSensitiveLog,outputFilterSensitiveLog:j1.ListTagsOfResourceOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,k1.serializeAws_json1_0ListTagsOfResourceCommand)(t,r)}deserialize(t,r){return(0,k1.deserializeAws_json1_0ListTagsOfResourceCommand)(t,r)}};Au.ListTagsOfResourceCommand=XS});var tw=m(Tu=>{"use strict";Object.defineProperty(Tu,"__esModule",{value:!0});Tu.PutItemCommand=void 0;var N7=G(),P7=P(),F1=Y(),U1=Z(),ew=class extends P7.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,N7.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"PutItemCommand",inputFilterSensitiveLog:F1.PutItemInput.filterSensitiveLog,outputFilterSensitiveLog:F1.PutItemOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,U1.serializeAws_json1_0PutItemCommand)(t,r)}deserialize(t,r){return(0,U1.deserializeAws_json1_0PutItemCommand)(t,r)}};Tu.PutItemCommand=ew});var xu=m(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});Cu.QueryCommand=void 0;var D7=G(),O7=P(),B1=Y(),G1=Z(),rw=class extends O7.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,D7.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"QueryCommand",inputFilterSensitiveLog:B1.QueryInput.filterSensitiveLog,outputFilterSensitiveLog:B1.QueryOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,G1.serializeAws_json1_0QueryCommand)(t,r)}deserialize(t,r){return(0,G1.deserializeAws_json1_0QueryCommand)(t,r)}};Cu.QueryCommand=rw});var iw=m(Iu=>{"use strict";Object.defineProperty(Iu,"__esModule",{value:!0});Iu.RestoreTableFromBackupCommand=void 0;var L7=G(),q7=P(),$1=Y(),V1=Z(),nw=class extends q7.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,L7.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"RestoreTableFromBackupCommand",inputFilterSensitiveLog:$1.RestoreTableFromBackupInput.filterSensitiveLog,outputFilterSensitiveLog:$1.RestoreTableFromBackupOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,V1.serializeAws_json1_0RestoreTableFromBackupCommand)(t,r)}deserialize(t,r){return(0,V1.deserializeAws_json1_0RestoreTableFromBackupCommand)(t,r)}};Iu.RestoreTableFromBackupCommand=nw});var ow=m(Ru=>{"use strict";Object.defineProperty(Ru,"__esModule",{value:!0});Ru.RestoreTableToPointInTimeCommand=void 0;var M7=G(),z7=P(),K1=Y(),H1=Z(),sw=class extends z7.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,M7.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"RestoreTableToPointInTimeCommand",inputFilterSensitiveLog:K1.RestoreTableToPointInTimeInput.filterSensitiveLog,outputFilterSensitiveLog:K1.RestoreTableToPointInTimeOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,H1.serializeAws_json1_0RestoreTableToPointInTimeCommand)(t,r)}deserialize(t,r){return(0,H1.deserializeAws_json1_0RestoreTableToPointInTimeCommand)(t,r)}};Ru.RestoreTableToPointInTimeCommand=sw});var Pu=m(Nu=>{"use strict";Object.defineProperty(Nu,"__esModule",{value:!0});Nu.ScanCommand=void 0;var j7=G(),k7=P(),W1=Y(),J1=Z(),aw=class extends k7.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,j7.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"ScanCommand",inputFilterSensitiveLog:W1.ScanInput.filterSensitiveLog,outputFilterSensitiveLog:W1.ScanOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,J1.serializeAws_json1_0ScanCommand)(t,r)}deserialize(t,r){return(0,J1.deserializeAws_json1_0ScanCommand)(t,r)}};Nu.ScanCommand=aw});var lw=m(Du=>{"use strict";Object.defineProperty(Du,"__esModule",{value:!0});Du.TagResourceCommand=void 0;var F7=G(),U7=P(),B7=Y(),Y1=Z(),cw=class extends U7.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,F7.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"TagResourceCommand",inputFilterSensitiveLog:B7.TagResourceInput.filterSensitiveLog,outputFilterSensitiveLog:f=>f},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,Y1.serializeAws_json1_0TagResourceCommand)(t,r)}deserialize(t,r){return(0,Y1.deserializeAws_json1_0TagResourceCommand)(t,r)}};Du.TagResourceCommand=cw});var uw=m(Ou=>{"use strict";Object.defineProperty(Ou,"__esModule",{value:!0});Ou.TransactGetItemsCommand=void 0;var G7=G(),$7=P(),Q1=Y(),X1=Z(),dw=class extends $7.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,G7.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"TransactGetItemsCommand",inputFilterSensitiveLog:Q1.TransactGetItemsInput.filterSensitiveLog,outputFilterSensitiveLog:Q1.TransactGetItemsOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,X1.serializeAws_json1_0TransactGetItemsCommand)(t,r)}deserialize(t,r){return(0,X1.deserializeAws_json1_0TransactGetItemsCommand)(t,r)}};Ou.TransactGetItemsCommand=dw});var mw=m(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});Lu.TransactWriteItemsCommand=void 0;var V7=G(),K7=P(),Z1=Y(),eR=Z(),fw=class extends K7.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,V7.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"TransactWriteItemsCommand",inputFilterSensitiveLog:Z1.TransactWriteItemsInput.filterSensitiveLog,outputFilterSensitiveLog:Z1.TransactWriteItemsOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,eR.serializeAws_json1_0TransactWriteItemsCommand)(t,r)}deserialize(t,r){return(0,eR.deserializeAws_json1_0TransactWriteItemsCommand)(t,r)}};Lu.TransactWriteItemsCommand=fw});var _w=m(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});qu.UntagResourceCommand=void 0;var H7=G(),W7=P(),J7=Y(),tR=Z(),pw=class extends W7.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,H7.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"UntagResourceCommand",inputFilterSensitiveLog:J7.UntagResourceInput.filterSensitiveLog,outputFilterSensitiveLog:f=>f},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,tR.serializeAws_json1_0UntagResourceCommand)(t,r)}deserialize(t,r){return(0,tR.deserializeAws_json1_0UntagResourceCommand)(t,r)}};qu.UntagResourceCommand=pw});var yw=m(Mu=>{"use strict";Object.defineProperty(Mu,"__esModule",{value:!0});Mu.UpdateContinuousBackupsCommand=void 0;var Y7=G(),Q7=P(),rR=Y(),nR=Z(),hw=class extends Q7.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Y7.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"UpdateContinuousBackupsCommand",inputFilterSensitiveLog:rR.UpdateContinuousBackupsInput.filterSensitiveLog,outputFilterSensitiveLog:rR.UpdateContinuousBackupsOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,nR.serializeAws_json1_0UpdateContinuousBackupsCommand)(t,r)}deserialize(t,r){return(0,nR.deserializeAws_json1_0UpdateContinuousBackupsCommand)(t,r)}};Mu.UpdateContinuousBackupsCommand=hw});var vw=m(zu=>{"use strict";Object.defineProperty(zu,"__esModule",{value:!0});zu.UpdateContributorInsightsCommand=void 0;var X7=G(),Z7=P(),iR=Y(),sR=Z(),gw=class extends Z7.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,X7.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"UpdateContributorInsightsCommand",inputFilterSensitiveLog:iR.UpdateContributorInsightsInput.filterSensitiveLog,outputFilterSensitiveLog:iR.UpdateContributorInsightsOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,sR.serializeAws_json1_0UpdateContributorInsightsCommand)(t,r)}deserialize(t,r){return(0,sR.deserializeAws_json1_0UpdateContributorInsightsCommand)(t,r)}};zu.UpdateContributorInsightsCommand=gw});var ww=m(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});ju.UpdateGlobalTableCommand=void 0;var eX=G(),tX=P(),oR=Y(),aR=Z(),Sw=class extends tX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,eX.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"UpdateGlobalTableCommand",inputFilterSensitiveLog:oR.UpdateGlobalTableInput.filterSensitiveLog,outputFilterSensitiveLog:oR.UpdateGlobalTableOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,aR.serializeAws_json1_0UpdateGlobalTableCommand)(t,r)}deserialize(t,r){return(0,aR.deserializeAws_json1_0UpdateGlobalTableCommand)(t,r)}};ju.UpdateGlobalTableCommand=Sw});var bw=m(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});ku.UpdateGlobalTableSettingsCommand=void 0;var rX=G(),nX=P(),cR=Y(),lR=Z(),Ew=class extends nX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,rX.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"UpdateGlobalTableSettingsCommand",inputFilterSensitiveLog:cR.UpdateGlobalTableSettingsInput.filterSensitiveLog,outputFilterSensitiveLog:cR.UpdateGlobalTableSettingsOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,lR.serializeAws_json1_0UpdateGlobalTableSettingsCommand)(t,r)}deserialize(t,r){return(0,lR.deserializeAws_json1_0UpdateGlobalTableSettingsCommand)(t,r)}};ku.UpdateGlobalTableSettingsCommand=Ew});var Tw=m(Fu=>{"use strict";Object.defineProperty(Fu,"__esModule",{value:!0});Fu.UpdateItemCommand=void 0;var iX=G(),sX=P(),dR=Y(),uR=Z(),Aw=class extends sX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,iX.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"UpdateItemCommand",inputFilterSensitiveLog:dR.UpdateItemInput.filterSensitiveLog,outputFilterSensitiveLog:dR.UpdateItemOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,uR.serializeAws_json1_0UpdateItemCommand)(t,r)}deserialize(t,r){return(0,uR.deserializeAws_json1_0UpdateItemCommand)(t,r)}};Fu.UpdateItemCommand=Aw});var xw=m(Uu=>{"use strict";Object.defineProperty(Uu,"__esModule",{value:!0});Uu.UpdateTableCommand=void 0;var oX=G(),aX=P(),fR=Y(),mR=Z(),Cw=class extends aX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,oX.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"UpdateTableCommand",inputFilterSensitiveLog:fR.UpdateTableInput.filterSensitiveLog,outputFilterSensitiveLog:fR.UpdateTableOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,mR.serializeAws_json1_0UpdateTableCommand)(t,r)}deserialize(t,r){return(0,mR.deserializeAws_json1_0UpdateTableCommand)(t,r)}};Uu.UpdateTableCommand=Cw});var Rw=m(Bu=>{"use strict";Object.defineProperty(Bu,"__esModule",{value:!0});Bu.UpdateTableReplicaAutoScalingCommand=void 0;var cX=G(),lX=P(),pR=Y(),_R=Z(),Iw=class extends lX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,cX.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"UpdateTableReplicaAutoScalingCommand",inputFilterSensitiveLog:pR.UpdateTableReplicaAutoScalingInput.filterSensitiveLog,outputFilterSensitiveLog:pR.UpdateTableReplicaAutoScalingOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,_R.serializeAws_json1_0UpdateTableReplicaAutoScalingCommand)(t,r)}deserialize(t,r){return(0,_R.deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand)(t,r)}};Bu.UpdateTableReplicaAutoScalingCommand=Iw});var Pw=m(Gu=>{"use strict";Object.defineProperty(Gu,"__esModule",{value:!0});Gu.UpdateTimeToLiveCommand=void 0;var dX=G(),uX=P(),hR=Y(),yR=Z(),Nw=class extends uX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,dX.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"UpdateTimeToLiveCommand",inputFilterSensitiveLog:hR.UpdateTimeToLiveInput.filterSensitiveLog,outputFilterSensitiveLog:hR.UpdateTimeToLiveOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,yR.serializeAws_json1_0UpdateTimeToLiveCommand)(t,r)}deserialize(t,r){return(0,yR.deserializeAws_json1_0UpdateTimeToLiveCommand)(t,r)}};Gu.UpdateTimeToLiveCommand=Nw});var gR=m(Di=>{"use strict";Object.defineProperty(Di,"__esModule",{value:!0});Di.booleanSelector=Di.SelectorType=void 0;var fX;(function(e){e.ENV="env",e.CONFIG="shared config entry"})(fX=Di.SelectorType||(Di.SelectorType={}));var mX=(e,t,r)=>{if(t in e){if(e[t]==="true")return!0;if(e[t]==="false")return!1;throw new Error(`Cannot load ${r} "${t}". Expected "true" or "false", got ${e[t]}.`)}};Di.booleanSelector=mX});var Ow=m(Dw=>{"use strict";Object.defineProperty(Dw,"__esModule",{value:!0});var pX=$();pX.__exportStar(gR(),Dw)});var vR=m(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS=Zt.DEFAULT_USE_DUALSTACK_ENDPOINT=Zt.CONFIG_USE_DUALSTACK_ENDPOINT=Zt.ENV_USE_DUALSTACK_ENDPOINT=void 0;var $u=Ow();Zt.ENV_USE_DUALSTACK_ENDPOINT="AWS_USE_DUALSTACK_ENDPOINT";Zt.CONFIG_USE_DUALSTACK_ENDPOINT="use_dualstack_endpoint";Zt.DEFAULT_USE_DUALSTACK_ENDPOINT=!1;Zt.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>(0,$u.booleanSelector)(e,Zt.ENV_USE_DUALSTACK_ENDPOINT,$u.SelectorType.ENV),configFileSelector:e=>(0,$u.booleanSelector)(e,Zt.CONFIG_USE_DUALSTACK_ENDPOINT,$u.SelectorType.CONFIG),default:!1}});var SR=m(er=>{"use strict";Object.defineProperty(er,"__esModule",{value:!0});er.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS=er.DEFAULT_USE_FIPS_ENDPOINT=er.CONFIG_USE_FIPS_ENDPOINT=er.ENV_USE_FIPS_ENDPOINT=void 0;var Vu=Ow();er.ENV_USE_FIPS_ENDPOINT="AWS_USE_FIPS_ENDPOINT";er.CONFIG_USE_FIPS_ENDPOINT="use_fips_endpoint";er.DEFAULT_USE_FIPS_ENDPOINT=!1;er.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>(0,Vu.booleanSelector)(e,er.ENV_USE_FIPS_ENDPOINT,Vu.SelectorType.ENV),configFileSelector:e=>(0,Vu.booleanSelector)(e,er.CONFIG_USE_FIPS_ENDPOINT,Vu.SelectorType.CONFIG),default:!1}});var wR=m(Ku=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});Ku.normalizeProvider=void 0;var _X=e=>{if(typeof e=="function")return e;let t=Promise.resolve(e);return()=>t};Ku.normalizeProvider=_X});var qa=m(Lw=>{"use strict";Object.defineProperty(Lw,"__esModule",{value:!0});var hX=$();hX.__exportStar(wR(),Lw)});var bR=m(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{value:!0});Hu.resolveCustomEndpointsConfig=void 0;var ER=qa(),yX=e=>{var t;let{endpoint:r,urlParser:n}=e;return y(o({},e),{tls:(t=e.tls)!==null&&t!==void 0?t:!0,endpoint:(0,ER.normalizeProvider)(typeof r=="string"?n(r):r),isCustomEndpoint:!0,useDualstackEndpoint:(0,ER.normalizeProvider)(e.useDualstackEndpoint)})};Hu.resolveCustomEndpointsConfig=yX});var AR=m(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});Wu.getEndpointFromRegion=void 0;var gX=async e=>{var t;let{tls:r=!0}=e,n=await e.region();if(!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(n))throw new Error("Invalid region in client config");let s=await e.useDualstackEndpoint(),a=await e.useFipsEndpoint(),{hostname:c}=(t=await e.regionInfoProvider(n,{useDualstackEndpoint:s,useFipsEndpoint:a}))!==null&&t!==void 0?t:{};if(!c)throw new Error("Cannot resolve hostname from client config");return e.urlParser(`${r?"https:":"http:"}//${c}`)};Wu.getEndpointFromRegion=gX});var CR=m(Ju=>{"use strict";Object.defineProperty(Ju,"__esModule",{value:!0});Ju.resolveEndpointsConfig=void 0;var TR=qa(),vX=AR(),SX=e=>{var t;let r=(0,TR.normalizeProvider)(e.useDualstackEndpoint),{endpoint:n,useFipsEndpoint:i,urlParser:s}=e;return y(o({},e),{tls:(t=e.tls)!==null&&t!==void 0?t:!0,endpoint:n?(0,TR.normalizeProvider)(typeof n=="string"?s(n):n):()=>(0,vX.getEndpointFromRegion)(y(o({},e),{useDualstackEndpoint:r,useFipsEndpoint:i})),isCustomEndpoint:!!n,useDualstackEndpoint:r})};Ju.resolveEndpointsConfig=SX});var xR=m(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});var Yu=$();Yu.__exportStar(vR(),Ms);Yu.__exportStar(SR(),Ms);Yu.__exportStar(bR(),Ms);Yu.__exportStar(CR(),Ms)});var IR=m(tr=>{"use strict";Object.defineProperty(tr,"__esModule",{value:!0});tr.NODE_REGION_CONFIG_FILE_OPTIONS=tr.NODE_REGION_CONFIG_OPTIONS=tr.REGION_INI_NAME=tr.REGION_ENV_NAME=void 0;tr.REGION_ENV_NAME="AWS_REGION";tr.REGION_INI_NAME="region";tr.NODE_REGION_CONFIG_OPTIONS={environmentVariableSelector:e=>e[tr.REGION_ENV_NAME],configFileSelector:e=>e[tr.REGION_INI_NAME],default:()=>{throw new Error("Region is missing")}};tr.NODE_REGION_CONFIG_FILE_OPTIONS={preferredFile:"credentials"}});var qw=m(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});Qu.isFipsRegion=void 0;var wX=e=>typeof e=="string"&&(e.startsWith("fips-")||e.endsWith("-fips"));Qu.isFipsRegion=wX});var RR=m(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});Xu.getRealRegion=void 0;var EX=qw(),bX=e=>(0,EX.isFipsRegion)(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e;Xu.getRealRegion=bX});var PR=m(Zu=>{"use strict";Object.defineProperty(Zu,"__esModule",{value:!0});Zu.resolveRegionConfig=void 0;var NR=RR(),AX=qw(),TX=e=>{let{region:t,useFipsEndpoint:r}=e;if(!t)throw new Error("Region is missing");return y(o({},e),{region:async()=>{if(typeof t=="string")return(0,NR.getRealRegion)(t);let n=await t();return(0,NR.getRealRegion)(n)},useFipsEndpoint:async()=>{let n=typeof t=="string"?t:await t();return(0,AX.isFipsRegion)(n)?!0:typeof r=="boolean"?Promise.resolve(r):r()}})};Zu.resolveRegionConfig=TX});var OR=m(ef=>{"use strict";Object.defineProperty(ef,"__esModule",{value:!0});var DR=$();DR.__exportStar(IR(),ef);DR.__exportStar(PR(),ef)});var qR=m(LR=>{"use strict";Object.defineProperty(LR,"__esModule",{value:!0})});var zR=m(MR=>{"use strict";Object.defineProperty(MR,"__esModule",{value:!0})});var jR=m(tf=>{"use strict";Object.defineProperty(tf,"__esModule",{value:!0});tf.getHostnameFromVariants=void 0;var CX=(e=[],{useFipsEndpoint:t,useDualstackEndpoint:r})=>{var n;return(n=e.find(({tags:i})=>t===i.includes("fips")&&r===i.includes("dualstack")))===null||n===void 0?void 0:n.hostname};tf.getHostnameFromVariants=CX});var kR=m(rf=>{"use strict";Object.defineProperty(rf,"__esModule",{value:!0});rf.getResolvedHostname=void 0;var xX=(e,{regionHostname:t,partitionHostname:r})=>t||(r?r.replace("{region}",e):void 0);rf.getResolvedHostname=xX});var FR=m(nf=>{"use strict";Object.defineProperty(nf,"__esModule",{value:!0});nf.getResolvedPartition=void 0;var IX=(e,{partitionHash:t})=>{var r;return(r=Object.keys(t||{}).find(n=>t[n].regions.includes(e)))!==null&&r!==void 0?r:"aws"};nf.getResolvedPartition=IX});var UR=m(sf=>{"use strict";Object.defineProperty(sf,"__esModule",{value:!0});sf.getResolvedSigningRegion=void 0;var RX=(e,{signingRegion:t,regionRegex:r,useFipsEndpoint:n})=>{if(t)return t;if(n){let i=r.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\."),s=e.match(i);if(s)return s[0].slice(1,-1)}};sf.getResolvedSigningRegion=RX});var GR=m(of=>{"use strict";Object.defineProperty(of,"__esModule",{value:!0});of.getRegionInfo=void 0;var BR=jR(),NX=kR(),PX=FR(),DX=UR(),OX=(e,{useFipsEndpoint:t=!1,useDualstackEndpoint:r=!1,signingService:n,regionHash:i,partitionHash:s})=>{var a,c,l,u,f,_;let h=(0,PX.getResolvedPartition)(e,{partitionHash:s}),v=e in i?e:(c=(a=s[h])===null||a===void 0?void 0:a.endpoint)!==null&&c!==void 0?c:e,S={useFipsEndpoint:t,useDualstackEndpoint:r},g=(0,BR.getHostnameFromVariants)((l=i[v])===null||l===void 0?void 0:l.variants,S),I=(0,BR.getHostnameFromVariants)((u=s[h])===null||u===void 0?void 0:u.variants,S),O=(0,NX.getResolvedHostname)(v,{regionHostname:g,partitionHostname:I});if(O===void 0)throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:v,useFipsEndpoint:t,useDualstackEndpoint:r}}`);let C=(0,DX.getResolvedSigningRegion)(O,{signingRegion:(f=i[v])===null||f===void 0?void 0:f.signingRegion,regionRegex:s[h].regionRegex,useFipsEndpoint:t});return o(o({partition:h,signingService:n,hostname:O},C&&{signingRegion:C}),((_=i[v])===null||_===void 0?void 0:_.signingService)&&{signingService:i[v].signingService})};of.getRegionInfo=OX});var $R=m(Ma=>{"use strict";Object.defineProperty(Ma,"__esModule",{value:!0});var Mw=$();Mw.__exportStar(qR(),Ma);Mw.__exportStar(zR(),Ma);Mw.__exportStar(GR(),Ma)});var Rt=m(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});var zw=$();zw.__exportStar(xR(),za);zw.__exportStar(OR(),za);zw.__exportStar($R(),za)});var ja=m(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});fn.getContentLengthPlugin=fn.contentLengthMiddlewareOptions=fn.contentLengthMiddleware=void 0;var LX=It(),VR="content-length";function KR(e){return t=>async r=>{let n=r.request;if(LX.HttpRequest.isInstance(n)){let{body:i,headers:s}=n;if(i&&Object.keys(s).map(a=>a.toLowerCase()).indexOf(VR)===-1)try{let a=e(i);n.headers=y(o({},n.headers),{[VR]:String(a)})}catch{}}return t(y(o({},r),{request:n}))}}fn.contentLengthMiddleware=KR;fn.contentLengthMiddlewareOptions={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0};var qX=e=>({applyToStack:t=>{t.add(KR(e.bodyLengthChecker),fn.contentLengthMiddlewareOptions)}});fn.getContentLengthPlugin=qX});var JR=m(af=>{"use strict";Object.defineProperty(af,"__esModule",{value:!0});af.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS=void 0;var HR=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"],jw="endpoint_discovery_enabled",WR=e=>["false","0"].indexOf(e)>=0;af.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS={environmentVariableSelector:e=>{for(let t=0;t<HR.length;t++){let r=HR[t];if(r in e){let n=e[r];if(n==="")throw Error(`Environment variable ${r} can't be empty of undefined, got "${n}"`);return!WR(n)}}},configFileSelector:e=>{if(jw in e){let t=e[jw];if(t===void 0)throw Error(`Shared config entry ${jw} can't be undefined, got "${t}"`);return!WR(t)}},default:void 0}});var YR=m(cf=>{"use strict";Object.defineProperty(cf,"__esModule",{value:!0});cf.getCacheKey=void 0;var MX=async(e,t,r)=>{let{accessKeyId:n}=await t.credentials(),{identifiers:i}=r;return JSON.stringify(o(o({},n&&{accessKeyId:n}),i&&{commandName:e,identifiers:Object.entries(i).sort().reduce((s,[a,c])=>y(o({},s),{[a]:c}),{})}))};cf.getCacheKey=MX});var QR=m(lf=>{"use strict";Object.defineProperty(lf,"__esModule",{value:!0});lf.updateDiscoveredEndpointInCache=void 0;var mn={},zX=async(e,t)=>new Promise((r,n)=>{let{endpointCache:i}=e,{cacheKey:s,commandName:a,identifiers:c}=t,l=i.get(s);if(l&&l.length===1&&l[0].Address==="")t.isDiscoveredEndpointRequired?(mn[s]||(mn[s]=[]),mn[s].push({resolve:r,reject:n})):r();else if(l&&l.length>0)r();else{let u=[{Address:"",CachePeriodInMinutes:1}];i.set(s,u);let f=new t.endpointDiscoveryCommandCtor({Operation:a.slice(0,-7),Identifiers:c});f.resolveMiddleware(t.clientStack,e,t.options)(f).then(h=>{i.set(s,h.output.Endpoints),mn[s]&&(mn[s].forEach(({resolve:v})=>{v()}),delete mn[s]),r()}).catch(h=>{var v;(h.name==="InvalidEndpointException"||((v=h.$metadata)===null||v===void 0?void 0:v.httpStatusCode)===421)&&i.delete(s);let S=Object.assign(new Error("The operation to discover endpoint failed. Please retry, or provide a custom endpoint and disable endpoint discovery to proceed."),{reason:h});mn[s]&&(mn[s].forEach(({reject:g})=>{g(S)}),delete mn[s]),t.isDiscoveredEndpointRequired?n(S):(i.set(s,u),r())})}});lf.updateDiscoveredEndpointInCache=zX});var ZR=m(df=>{"use strict";Object.defineProperty(df,"__esModule",{value:!0});df.endpointDiscoveryMiddleware=void 0;var jX=It(),kX=YR(),XR=QR(),FX=(e,t)=>(r,n)=>async i=>{if(e.isCustomEndpoint){if(e.isClientEndpointDiscoveryEnabled)throw new Error("Custom endpoint is supplied; endpointDiscoveryEnabled must not be true.");return r(i)}let{endpointDiscoveryCommandCtor:s}=e,{isDiscoveredEndpointRequired:a,identifiers:c}=t,{clientName:l,commandName:u}=n,f=await e.endpointDiscoveryEnabled(),_=await(0,kX.getCacheKey)(u,e,{identifiers:c});if(a){if(f===!1)throw new Error(`Endpoint Discovery is disabled but ${u} on ${l} requires it. Please check your configurations.`);await(0,XR.updateDiscoveredEndpointInCache)(e,y(o({},t),{commandName:u,cacheKey:_,endpointDiscoveryCommandCtor:s}))}else f&&(0,XR.updateDiscoveredEndpointInCache)(e,y(o({},t),{commandName:u,cacheKey:_,endpointDiscoveryCommandCtor:s}));let{request:h}=i;if(_&&jX.HttpRequest.isInstance(h)){let v=e.endpointCache.getEndpoint(_);v&&(h.hostname=v)}return r(i)};df.endpointDiscoveryMiddleware=FX});var eN=m($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});$t.getEndpointDiscoveryOptionalPlugin=$t.getEndpointDiscoveryRequiredPlugin=$t.getEndpointDiscoveryPlugin=$t.endpointDiscoveryMiddlewareOptions=void 0;var kw=ZR();$t.endpointDiscoveryMiddlewareOptions={name:"endpointDiscoveryMiddleware",step:"build",tags:["ENDPOINT_DISCOVERY"],override:!0};var UX=(e,t)=>({applyToStack:r=>{r.add((0,kw.endpointDiscoveryMiddleware)(e,t),$t.endpointDiscoveryMiddlewareOptions)}});$t.getEndpointDiscoveryPlugin=UX;var BX=(e,t)=>({applyToStack:r=>{r.add((0,kw.endpointDiscoveryMiddleware)(e,y(o({},t),{isDiscoveredEndpointRequired:!0})),$t.endpointDiscoveryMiddlewareOptions)}});$t.getEndpointDiscoveryRequiredPlugin=BX;var GX=(e,t)=>({applyToStack:r=>{r.add((0,kw.endpointDiscoveryMiddleware)(e,y(o({},t),{isDiscoveredEndpointRequired:!1})),$t.endpointDiscoveryMiddlewareOptions)}});$t.getEndpointDiscoveryOptionalPlugin=GX});var rN=m(tN=>{"use strict";Object.defineProperty(tN,"__esModule",{value:!0})});var iN=m((Qxe,nN)=>{function pn(e){Object.defineProperty(this,"_next",{writable:!1,enumerable:!1,value:e}),this.done=!1}pn.prototype.next=function(){if(this.done)return{done:!0};var e=this._next();return e.done&&(this.done=!0),e};typeof Symbol<"u"&&(pn.prototype[Symbol.iterator]=function(){return this});pn.of=function(){var e=arguments,t=e.length,r=0;return new pn(function(){return r>=t?{done:!0}:{done:!1,value:e[r++]}})};pn.empty=function(){var e=new pn(null);return e.done=!0,e};pn.is=function(e){return e instanceof pn?!0:typeof e=="object"&&e!==null&&typeof e.next=="function"};nN.exports=pn});var Fw=m((Xxe,cN)=>{var sN=typeof ArrayBuffer<"u",oN=typeof Symbol<"u";function aN(e,t){var r,n,i,s,a;if(!e)throw new Error("obliterator/forEach: invalid iterable.");if(typeof t!="function")throw new Error("obliterator/forEach: expecting a callback.");if(Array.isArray(e)||sN&&ArrayBuffer.isView(e)||typeof e=="string"||e.toString()==="[object Arguments]"){for(i=0,s=e.length;i<s;i++)t(e[i],i);return}if(typeof e.forEach=="function"){e.forEach(t);return}if(oN&&Symbol.iterator in e&&typeof e.next!="function"&&(e=e[Symbol.iterator]()),typeof e.next=="function"){for(r=e,i=0;a=r.next(),a.done!==!0;)t(a.value,i),i++;return}for(n in e)e.hasOwnProperty(n)&&t(e[n],n)}aN.forEachWithNullKeys=function(e,t){var r,n,i,s,a;if(!e)throw new Error("obliterator/forEachWithNullKeys: invalid iterable.");if(typeof t!="function")throw new Error("obliterator/forEachWithNullKeys: expecting a callback.");if(Array.isArray(e)||sN&&ArrayBuffer.isView(e)||typeof e=="string"||e.toString()==="[object Arguments]"){for(i=0,s=e.length;i<s;i++)t(e[i],null);return}if(e instanceof Set){e.forEach(function(c){t(c,null)});return}if(typeof e.forEach=="function"){e.forEach(t);return}if(oN&&Symbol.iterator in e&&typeof e.next!="function"&&(e=e[Symbol.iterator]()),typeof e.next=="function"){for(r=e,i=0;a=r.next(),a.done!==!0;)t(a.value,null),i++;return}for(n in e)e.hasOwnProperty(n)&&t(e[n],n)};cN.exports=aN});var Uw=m(br=>{var $X=Math.pow(2,8)-1,VX=Math.pow(2,16)-1,KX=Math.pow(2,32)-1,HX=Math.pow(2,7)-1,WX=Math.pow(2,15)-1,JX=Math.pow(2,31)-1;br.getPointerArray=function(e){var t=e-1;return t<=$X?Uint8Array:t<=VX?Uint16Array:t<=KX?Uint32Array:Float64Array};br.getSignedPointerArray=function(e){var t=e-1;return t<=HX?Int8Array:t<=WX?Int16Array:t<=JX?Int32Array:Float64Array};br.getNumberType=function(e){return e===(e|0)?Math.sign(e)===-1?e<=127&&e>=-128?Int8Array:e<=32767&&e>=-32768?Int16Array:Int32Array:e<=255?Uint8Array:e<=65535?Uint16Array:Uint32Array:Float64Array};var YX={Uint8Array:1,Int8Array:2,Uint16Array:3,Int16Array:4,Uint32Array:5,Int32Array:6,Float32Array:7,Float64Array:8};br.getMinimalRepresentation=function(e,t){var r=null,n=0,i,s,a,c,l;for(c=0,l=e.length;c<l;c++)a=t?t(e[c]):e[c],s=br.getNumberType(a),i=YX[s.name],i>n&&(n=i,r=s);return r};br.isTypedArray=function(e){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView(e)};br.concat=function(){var e=0,t,r,n;for(t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=new arguments[0].constructor(e);for(t=0,r=0;t<n;t++)i.set(arguments[t],r),r+=arguments[t].length;return i};br.indices=function(e){for(var t=br.getPointerArray(e),r=new t(e),n=0;n<e;n++)r[n]=n;return r}});var uN=m(ka=>{var lN=Fw(),dN=Uw();function QX(e){return Array.isArray(e)||dN.isTypedArray(e)}function Bw(e){if(typeof e.length=="number")return e.length;if(typeof e.size=="number")return e.size}function XX(e){var t=Bw(e),r=typeof t=="number"?new Array(t):[],n=0;return lN(e,function(i){r[n++]=i}),r}function ZX(e){var t=Bw(e),r=typeof t=="number"?dN.getPointerArray(t):Array,n=typeof t=="number"?new Array(t):[],i=typeof t=="number"?new r(t):[],s=0;return lN(e,function(a){n[s]=a,i[s]=s++}),[n,i]}ka.isArrayLike=QX;ka.guessLength=Bw;ka.toArray=XX;ka.toArrayWithIndices=ZX});var mN=m((tIe,fN)=>{var Gw=iN(),eZ=Fw(),tZ=Uw(),rZ=uN();function He(e,t,r){if(arguments.length<2&&(r=e,e=null,t=null),this.capacity=r,typeof this.capacity!="number"||this.capacity<=0)throw new Error("mnemonist/lru-cache: capacity should be positive number.");var n=tZ.getPointerArray(r);this.forward=new n(r),this.backward=new n(r),this.K=typeof e=="function"?new e(r):new Array(r),this.V=typeof t=="function"?new t(r):new Array(r),this.size=0,this.head=0,this.tail=0,this.items={}}He.prototype.clear=function(){this.size=0,this.head=0,this.tail=0,this.items={}};He.prototype.splayOnTop=function(e){var t=this.head;if(this.head===e)return this;var r=this.backward[e],n=this.forward[e];return this.tail===e?this.tail=r:this.backward[n]=r,this.forward[r]=n,this.backward[t]=e,this.head=e,this.forward[e]=t,this};He.prototype.set=function(e,t){var r=this.items[e];if(typeof r<"u"){this.splayOnTop(r),this.V[r]=t;return}this.size<this.capacity?r=this.size++:(r=this.tail,this.tail=this.backward[r],delete this.items[this.K[r]]),this.items[e]=r,this.K[r]=e,this.V[r]=t,this.forward[r]=this.head,this.backward[this.head]=r,this.head=r};He.prototype.setpop=function(e,t){var r=null,n=null,i=this.items[e];return typeof i<"u"?(this.splayOnTop(i),r=this.V[i],this.V[i]=t,{evicted:!1,key:e,value:r}):(this.size<this.capacity?i=this.size++:(i=this.tail,this.tail=this.backward[i],r=this.V[i],n=this.K[i],delete this.items[this.K[i]]),this.items[e]=i,this.K[i]=e,this.V[i]=t,this.forward[i]=this.head,this.backward[this.head]=i,this.head=i,n?{evicted:!0,key:n,value:r}:null)};He.prototype.has=function(e){return e in this.items};He.prototype.get=function(e){var t=this.items[e];if(!(typeof t>"u"))return this.splayOnTop(t),this.V[t]};He.prototype.peek=function(e){var t=this.items[e];if(!(typeof t>"u"))return this.V[t]};He.prototype.forEach=function(e,t){t=arguments.length>1?t:this;for(var r=0,n=this.size,i=this.head,s=this.K,a=this.V,c=this.forward;r<n;)e.call(t,a[i],s[i],this),i=c[i],r++};He.prototype.keys=function(){var e=0,t=this.size,r=this.head,n=this.K,i=this.forward;return new Gw(function(){if(e>=t)return{done:!0};var s=n[r];return e++,e<t&&(r=i[r]),{done:!1,value:s}})};He.prototype.values=function(){var e=0,t=this.size,r=this.head,n=this.V,i=this.forward;return new Gw(function(){if(e>=t)return{done:!0};var s=n[r];return e++,e<t&&(r=i[r]),{done:!1,value:s}})};He.prototype.entries=function(){var e=0,t=this.size,r=this.head,n=this.K,i=this.V,s=this.forward;return new Gw(function(){if(e>=t)return{done:!0};var a=n[r],c=i[r];return e++,e<t&&(r=s[r]),{done:!1,value:[a,c]}})};typeof Symbol<"u"&&(He.prototype[Symbol.iterator]=He.prototype.entries);He.prototype.inspect=function(){for(var e=new Map,t=this.entries(),r;r=t.next(),!r.done;)e.set(r.value[0],r.value[1]);return Object.defineProperty(e,"constructor",{value:He,enumerable:!1}),e};typeof Symbol<"u"&&(He.prototype[Symbol.for("nodejs.util.inspect.custom")]=He.prototype.inspect);He.from=function(e,t,r,n){if(arguments.length<2){if(n=rZ.guessLength(e),typeof n!="number")throw new Error("mnemonist/lru-cache.from: could not guess iterable length. Please provide desired capacity as last argument.")}else arguments.length===2&&(n=t,t=null,r=null);var i=new He(t,r,n);return eZ(e,function(s,a){i.set(a,s)}),i};fN.exports=He});var pN=m(uf=>{"use strict";Object.defineProperty(uf,"__esModule",{value:!0});uf.EndpointCache=void 0;var nZ=$(),iZ=nZ.__importDefault(mN()),$w=class{constructor(t){this.cache=new iZ.default(t)}getEndpoint(t){let r=this.get(t);if(!r||r.length===0)return;let n=r.map(i=>i.Address);return n[Math.floor(Math.random()*n.length)]}get(t){if(!this.has(t))return;let r=this.cache.get(t);if(!r)return;let n=Date.now(),i=r.filter(s=>n<s.Expires);if(i.length===0){this.delete(t);return}return i}set(t,r){let n=Date.now();this.cache.set(t,r.map(({Address:i,CachePeriodInMinutes:s})=>({Address:i,Expires:n+s*60*1e3})))}delete(t){this.cache.set(t,[])}has(t){if(!this.cache.has(t))return!1;let r=this.cache.peek(t);return r?r.length>0:!1}clear(){this.cache.clear()}};uf.EndpointCache=$w});var hN=m(ff=>{"use strict";Object.defineProperty(ff,"__esModule",{value:!0});var _N=$();_N.__exportStar(rN(),ff);_N.__exportStar(pN(),ff)});var yN=m(mf=>{"use strict";Object.defineProperty(mf,"__esModule",{value:!0});mf.resolveEndpointDiscoveryConfig=void 0;var sZ=hN(),oZ=(e,{endpointDiscoveryCommandCtor:t})=>{var r;return y(o({},e),{endpointDiscoveryCommandCtor:t,endpointCache:new sZ.EndpointCache((r=e.endpointCacheSize)!==null&&r!==void 0?r:1e3),endpointDiscoveryEnabled:e.endpointDiscoveryEnabled!==void 0?()=>Promise.resolve(e.endpointDiscoveryEnabled):e.endpointDiscoveryEnabledProvider,isClientEndpointDiscoveryEnabled:e.endpointDiscoveryEnabled!==void 0})};mf.resolveEndpointDiscoveryConfig=oZ});var Kw=m(Fa=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});var Vw=$();Vw.__exportStar(JR(),Fa);Vw.__exportStar(eN(),Fa);Vw.__exportStar(yN(),Fa)});var Ua=m(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.getHostHeaderPlugin=rr.hostHeaderMiddlewareOptions=rr.hostHeaderMiddleware=rr.resolveHostHeaderConfig=void 0;var aZ=It();function cZ(e){return e}rr.resolveHostHeaderConfig=cZ;var lZ=e=>t=>async r=>{if(!aZ.HttpRequest.isInstance(r.request))return t(r);let{request:n}=r,{handlerProtocol:i=""}=e.requestHandler.metadata||{};return i.indexOf("h2")>=0&&!n.headers[":authority"]?(delete n.headers.host,n.headers[":authority"]=""):n.headers.host||(n.headers.host=n.hostname),t(r)};rr.hostHeaderMiddleware=lZ;rr.hostHeaderMiddlewareOptions={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0};var dZ=e=>({applyToStack:t=>{t.add((0,rr.hostHeaderMiddleware)(e),rr.hostHeaderMiddlewareOptions)}});rr.getHostHeaderPlugin=dZ});var gN=m(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});Ar.getLoggerPlugin=Ar.loggerMiddlewareOptions=Ar.loggerMiddleware=void 0;var uZ=()=>(e,t)=>async r=>{let{clientName:n,commandName:i,inputFilterSensitiveLog:s,logger:a,outputFilterSensitiveLog:c}=t,l=await e(r);if(!a)return l;if(typeof a.info=="function"){let u=l.output,{$metadata:f}=u,_=Un(u,["$metadata"]);a.info({clientName:n,commandName:i,input:s(r.input),output:c(_),metadata:f})}return l};Ar.loggerMiddleware=uZ;Ar.loggerMiddlewareOptions={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0};var fZ=e=>({applyToStack:t=>{t.add((0,Ar.loggerMiddleware)(),Ar.loggerMiddlewareOptions)}});Ar.getLoggerPlugin=fZ});var Ba=m(Hw=>{"use strict";Object.defineProperty(Hw,"__esModule",{value:!0});var mZ=$();mZ.__exportStar(gN(),Hw)});var Ga=m(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.DEFAULT_RETRY_MODE=_n.DEFAULT_MAX_ATTEMPTS=_n.RETRY_MODES=void 0;var vN;(function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"})(vN=_n.RETRY_MODES||(_n.RETRY_MODES={}));_n.DEFAULT_MAX_ATTEMPTS=3;_n.DEFAULT_RETRY_MODE=vN.STANDARD});var SN=m(Tr=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.TRANSIENT_ERROR_STATUS_CODES=Tr.TRANSIENT_ERROR_CODES=Tr.THROTTLING_ERROR_CODES=Tr.CLOCK_SKEW_ERROR_CODES=void 0;Tr.CLOCK_SKEW_ERROR_CODES=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"];Tr.THROTTLING_ERROR_CODES=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"];Tr.TRANSIENT_ERROR_CODES=["AbortError","TimeoutError","RequestTimeout","RequestTimeoutException"];Tr.TRANSIENT_ERROR_STATUS_CODES=[500,502,503,504]});var _f=m(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});Cr.isTransientError=Cr.isThrottlingError=Cr.isClockSkewError=Cr.isRetryableByTrait=void 0;var pf=SN(),pZ=e=>e.$retryable!==void 0;Cr.isRetryableByTrait=pZ;var _Z=e=>pf.CLOCK_SKEW_ERROR_CODES.includes(e.name);Cr.isClockSkewError=_Z;var hZ=e=>{var t,r;return((t=e.$metadata)===null||t===void 0?void 0:t.httpStatusCode)===429||pf.THROTTLING_ERROR_CODES.includes(e.name)||((r=e.$retryable)===null||r===void 0?void 0:r.throttling)==!0};Cr.isThrottlingError=hZ;var yZ=e=>{var t;return pf.TRANSIENT_ERROR_CODES.includes(e.name)||pf.TRANSIENT_ERROR_STATUS_CODES.includes(((t=e.$metadata)===null||t===void 0?void 0:t.httpStatusCode)||0)};Cr.isTransientError=yZ});var Jw=m(hf=>{"use strict";Object.defineProperty(hf,"__esModule",{value:!0});hf.DefaultRateLimiter=void 0;var gZ=_f(),Ww=class{constructor(t){var r,n,i,s,a;this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=(r=t==null?void 0:t.beta)!==null&&r!==void 0?r:.7,this.minCapacity=(n=t==null?void 0:t.minCapacity)!==null&&n!==void 0?n:1,this.minFillRate=(i=t==null?void 0:t.minFillRate)!==null&&i!==void 0?i:.5,this.scaleConstant=(s=t==null?void 0:t.scaleConstant)!==null&&s!==void 0?s:.4,this.smooth=(a=t==null?void 0:t.smooth)!==null&&a!==void 0?a:.8;let c=this.getCurrentTimeInSeconds();this.lastThrottleTime=c,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(t){if(!!this.enabled){if(this.refillTokenBucket(),t>this.currentCapacity){let r=(t-this.currentCapacity)/this.fillRate*1e3;await new Promise(n=>setTimeout(n,r))}this.currentCapacity=this.currentCapacity-t}}refillTokenBucket(){let t=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=t;return}let r=(t-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+r),this.lastTimestamp=t}updateClientSendingRate(t){let r;if(this.updateMeasuredRate(),(0,gZ.isThrottlingError)(t)){let i=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=i,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),r=this.cubicThrottle(i),this.enableTokenBucket()}else this.calculateTimeWindow(),r=this.cubicSuccess(this.getCurrentTimeInSeconds());let n=Math.min(r,2*this.measuredTxRate);this.updateTokenBucketRate(n)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(t){return this.getPrecise(t*this.beta)}cubicSuccess(t){return this.getPrecise(this.scaleConstant*Math.pow(t-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(t){this.refillTokenBucket(),this.fillRate=Math.max(t,this.minFillRate),this.maxCapacity=Math.max(t,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){let t=this.getCurrentTimeInSeconds(),r=Math.floor(t*2)/2;if(this.requestCount++,r>this.lastTxRateBucket){let n=this.requestCount/(r-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(n*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=r}}getPrecise(t){return parseFloat(t.toFixed(8))}};hf.DefaultRateLimiter=Ww});var $a=m(We=>{"use strict";Object.defineProperty(We,"__esModule",{value:!0});We.REQUEST_HEADER=We.INVOCATION_ID_HEADER=We.NO_RETRY_INCREMENT=We.TIMEOUT_RETRY_COST=We.RETRY_COST=We.INITIAL_RETRY_TOKENS=We.THROTTLING_RETRY_DELAY_BASE=We.MAXIMUM_RETRY_DELAY=We.DEFAULT_RETRY_DELAY_BASE=void 0;We.DEFAULT_RETRY_DELAY_BASE=100;We.MAXIMUM_RETRY_DELAY=20*1e3;We.THROTTLING_RETRY_DELAY_BASE=500;We.INITIAL_RETRY_TOKENS=500;We.RETRY_COST=5;We.TIMEOUT_RETRY_COST=10;We.NO_RETRY_INCREMENT=1;We.INVOCATION_ID_HEADER="amz-sdk-invocation-id";We.REQUEST_HEADER="amz-sdk-request"});var wN=m(yf=>{"use strict";Object.defineProperty(yf,"__esModule",{value:!0});yf.getDefaultRetryQuota=void 0;var Yw=$a(),vZ=(e,t)=>{var r,n,i;let s=e,a=(r=t==null?void 0:t.noRetryIncrement)!==null&&r!==void 0?r:Yw.NO_RETRY_INCREMENT,c=(n=t==null?void 0:t.retryCost)!==null&&n!==void 0?n:Yw.RETRY_COST,l=(i=t==null?void 0:t.timeoutRetryCost)!==null&&i!==void 0?i:Yw.TIMEOUT_RETRY_COST,u=e,f=S=>S.name==="TimeoutError"?l:c,_=S=>f(S)<=u;return Object.freeze({hasRetryTokens:_,retrieveRetryTokens:S=>{if(!_(S))throw new Error("No retry token available");let g=f(S);return u-=g,g},releaseRetryTokens:S=>{u+=S??a,u=Math.min(u,s)}})};yf.getDefaultRetryQuota=vZ});var Qw=m(gf=>{"use strict";Object.defineProperty(gf,"__esModule",{value:!0});gf.defaultDelayDecider=void 0;var SZ=$a(),wZ=(e,t)=>Math.floor(Math.min(SZ.MAXIMUM_RETRY_DELAY,Math.random()*2**t*e));gf.defaultDelayDecider=wZ});var Xw=m(Sf=>{"use strict";Object.defineProperty(Sf,"__esModule",{value:!0});Sf.defaultRetryDecider=void 0;var vf=_f(),EZ=e=>e?(0,vf.isRetryableByTrait)(e)||(0,vf.isClockSkewError)(e)||(0,vf.isThrottlingError)(e)||(0,vf.isTransientError)(e):!1;Sf.defaultRetryDecider=EZ});var Ef=m(wf=>{"use strict";Object.defineProperty(wf,"__esModule",{value:!0});wf.StandardRetryStrategy=void 0;var EN=It(),bZ=_f(),AZ=Pv(),bN=Ga(),Va=$a(),TZ=wN(),CZ=Qw(),xZ=Xw(),Zw=class{constructor(t,r){var n,i,s;this.maxAttemptsProvider=t,this.mode=bN.RETRY_MODES.STANDARD,this.retryDecider=(n=r==null?void 0:r.retryDecider)!==null&&n!==void 0?n:xZ.defaultRetryDecider,this.delayDecider=(i=r==null?void 0:r.delayDecider)!==null&&i!==void 0?i:CZ.defaultDelayDecider,this.retryQuota=(s=r==null?void 0:r.retryQuota)!==null&&s!==void 0?s:(0,TZ.getDefaultRetryQuota)(Va.INITIAL_RETRY_TOKENS)}shouldRetry(t,r,n){return r<n&&this.retryDecider(t)&&this.retryQuota.hasRetryTokens(t)}async getMaxAttempts(){let t;try{t=await this.maxAttemptsProvider()}catch{t=bN.DEFAULT_MAX_ATTEMPTS}return t}async retry(t,r,n){let i,s=0,a=0,c=await this.getMaxAttempts(),{request:l}=r;for(EN.HttpRequest.isInstance(l)&&(l.headers[Va.INVOCATION_ID_HEADER]=(0,AZ.v4)());;)try{EN.HttpRequest.isInstance(l)&&(l.headers[Va.REQUEST_HEADER]=`attempt=${s+1}; max=${c}`),n!=null&&n.beforeRequest&&await n.beforeRequest();let{response:u,output:f}=await t(r);return n!=null&&n.afterRequest&&n.afterRequest(u),this.retryQuota.releaseRetryTokens(i),f.$metadata.attempts=s+1,f.$metadata.totalRetryDelay=a,{response:u,output:f}}catch(u){let f=IZ(u);if(s++,this.shouldRetry(f,s,c)){i=this.retryQuota.retrieveRetryTokens(f);let _=this.delayDecider((0,bZ.isThrottlingError)(f)?Va.THROTTLING_RETRY_DELAY_BASE:Va.DEFAULT_RETRY_DELAY_BASE,s);a+=_,await new Promise(h=>setTimeout(h,_));continue}throw f.$metadata||(f.$metadata={}),f.$metadata.attempts=s,f.$metadata.totalRetryDelay=a,f}}};wf.StandardRetryStrategy=Zw;var IZ=e=>e instanceof Error?e:e instanceof Object?Object.assign(new Error,e):typeof e=="string"?new Error(e):new Error(`AWS SDK error wrapper for ${e}`)});var tE=m(bf=>{"use strict";Object.defineProperty(bf,"__esModule",{value:!0});bf.AdaptiveRetryStrategy=void 0;var RZ=Ga(),NZ=Jw(),PZ=Ef(),eE=class extends PZ.StandardRetryStrategy{constructor(t,r){let s=r??{},{rateLimiter:n}=s,i=Un(s,["rateLimiter"]);super(t,i),this.rateLimiter=n??new NZ.DefaultRateLimiter,this.mode=RZ.RETRY_MODES.ADAPTIVE}async retry(t,r){return super.retry(t,r,{beforeRequest:async()=>this.rateLimiter.getSendToken(),afterRequest:n=>{this.rateLimiter.updateClientSendingRate(n)}})}};bf.AdaptiveRetryStrategy=eE});var TN=m(Be=>{"use strict";Object.defineProperty(Be,"__esModule",{value:!0});Be.NODE_RETRY_MODE_CONFIG_OPTIONS=Be.CONFIG_RETRY_MODE=Be.ENV_RETRY_MODE=Be.resolveRetryConfig=Be.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=Be.CONFIG_MAX_ATTEMPTS=Be.ENV_MAX_ATTEMPTS=void 0;var AN=qa(),DZ=tE(),Af=Ga(),OZ=Ef();Be.ENV_MAX_ATTEMPTS="AWS_MAX_ATTEMPTS";Be.CONFIG_MAX_ATTEMPTS="max_attempts";Be.NODE_MAX_ATTEMPT_CONFIG_OPTIONS={environmentVariableSelector:e=>{let t=e[Be.ENV_MAX_ATTEMPTS];if(!t)return;let r=parseInt(t);if(Number.isNaN(r))throw new Error(`Environment variable ${Be.ENV_MAX_ATTEMPTS} mast be a number, got "${t}"`);return r},configFileSelector:e=>{let t=e[Be.CONFIG_MAX_ATTEMPTS];if(!t)return;let r=parseInt(t);if(Number.isNaN(r))throw new Error(`Shared config file entry ${Be.CONFIG_MAX_ATTEMPTS} mast be a number, got "${t}"`);return r},default:Af.DEFAULT_MAX_ATTEMPTS};var LZ=e=>{var t;let r=(0,AN.normalizeProvider)((t=e.maxAttempts)!==null&&t!==void 0?t:Af.DEFAULT_MAX_ATTEMPTS);return y(o({},e),{maxAttempts:r,retryStrategy:async()=>e.retryStrategy?e.retryStrategy:await(0,AN.normalizeProvider)(e.retryMode)()===Af.RETRY_MODES.ADAPTIVE?new DZ.AdaptiveRetryStrategy(r):new OZ.StandardRetryStrategy(r)})};Be.resolveRetryConfig=LZ;Be.ENV_RETRY_MODE="AWS_RETRY_MODE";Be.CONFIG_RETRY_MODE="retry_mode";Be.NODE_RETRY_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[Be.ENV_RETRY_MODE],configFileSelector:e=>e[Be.CONFIG_RETRY_MODE],default:Af.DEFAULT_RETRY_MODE}});var xN=m(xr=>{"use strict";Object.defineProperty(xr,"__esModule",{value:!0});xr.getOmitRetryHeadersPlugin=xr.omitRetryHeadersMiddlewareOptions=xr.omitRetryHeadersMiddleware=void 0;var qZ=It(),CN=$a(),MZ=()=>e=>async t=>{let{request:r}=t;return qZ.HttpRequest.isInstance(r)&&(delete r.headers[CN.INVOCATION_ID_HEADER],delete r.headers[CN.REQUEST_HEADER]),e(t)};xr.omitRetryHeadersMiddleware=MZ;xr.omitRetryHeadersMiddlewareOptions={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0};var zZ=e=>({applyToStack:t=>{t.addRelativeTo((0,xr.omitRetryHeadersMiddleware)(),xr.omitRetryHeadersMiddlewareOptions)}});xr.getOmitRetryHeadersPlugin=zZ});var IN=m(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.getRetryPlugin=Ir.retryMiddlewareOptions=Ir.retryMiddleware=void 0;var jZ=e=>(t,r)=>async n=>{let i=await e.retryStrategy();return i!=null&&i.mode&&(r.userAgent=[...r.userAgent||[],["cfg/retry-mode",i.mode]]),i.retry(t,n)};Ir.retryMiddleware=jZ;Ir.retryMiddlewareOptions={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0};var kZ=e=>({applyToStack:t=>{t.add((0,Ir.retryMiddleware)(e),Ir.retryMiddlewareOptions)}});Ir.getRetryPlugin=kZ});var NN=m(RN=>{"use strict";Object.defineProperty(RN,"__esModule",{value:!0})});var hn=m(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});var Rr=$();Rr.__exportStar(tE(),nr);Rr.__exportStar(Jw(),nr);Rr.__exportStar(Ef(),nr);Rr.__exportStar(Ga(),nr);Rr.__exportStar(TN(),nr);Rr.__exportStar(Qw(),nr);Rr.__exportStar(xN(),nr);Rr.__exportStar(Xw(),nr);Rr.__exportStar(IN(),nr);Rr.__exportStar(NN(),nr)});var Cf=m(Tf=>{"use strict";Object.defineProperty(Tf,"__esModule",{value:!0});Tf.ProviderError=void 0;var Ka=class extends Error{constructor(t,r=!0){super(t),this.tryNextLink=r,this.name="ProviderError",Object.setPrototypeOf(this,Ka.prototype)}static from(t,r=!0){return Object.assign(new this(t.message,r),t)}};Tf.ProviderError=Ka});var PN=m(xf=>{"use strict";Object.defineProperty(xf,"__esModule",{value:!0});xf.CredentialsProviderError=void 0;var FZ=Cf(),Ha=class extends FZ.ProviderError{constructor(t,r=!0){super(t,r),this.tryNextLink=r,this.name="CredentialsProviderError",Object.setPrototypeOf(this,Ha.prototype)}};xf.CredentialsProviderError=Ha});var DN=m(If=>{"use strict";Object.defineProperty(If,"__esModule",{value:!0});If.chain=void 0;var UZ=Cf();function BZ(...e){return()=>{let t=Promise.reject(new UZ.ProviderError("No providers in chain"));for(let r of e)t=t.catch(n=>{if(n!=null&&n.tryNextLink)return r();throw n});return t}}If.chain=BZ});var ON=m(Rf=>{"use strict";Object.defineProperty(Rf,"__esModule",{value:!0});Rf.fromStatic=void 0;var GZ=e=>()=>Promise.resolve(e);Rf.fromStatic=GZ});var LN=m(Nf=>{"use strict";Object.defineProperty(Nf,"__esModule",{value:!0});Nf.memoize=void 0;var $Z=(e,t,r)=>{let n,i,s,a=!1,c=async()=>{i||(i=e());try{n=await i,s=!0,a=!1}finally{i=void 0}return n};return t===void 0?async l=>((!s||(l==null?void 0:l.forceRefresh))&&(n=await c()),n):async l=>((!s||(l==null?void 0:l.forceRefresh))&&(n=await c()),a?n:r&&!r(n)?(a=!0,n):(t(n)&&await c(),n))};Nf.memoize=$Z});var Ee=m(Oi=>{"use strict";Object.defineProperty(Oi,"__esModule",{value:!0});var Wa=$();Wa.__exportStar(PN(),Oi);Wa.__exportStar(Cf(),Oi);Wa.__exportStar(DN(),Oi);Wa.__exportStar(ON(),Oi);Wa.__exportStar(LN(),Oi)});var Pf=m(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});zs.toHex=zs.fromHex=void 0;var qN={},rE={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),qN[e]=t,rE[t]=e}function VZ(e){if(e.length%2!==0)throw new Error("Hex encoded strings must have an even number length");let t=new Uint8Array(e.length/2);for(let r=0;r<e.length;r+=2){let n=e.slice(r,r+2).toLowerCase();if(n in rE)t[r/2]=rE[n];else throw new Error(`Cannot decode unrecognized sequence ${n} as hexadecimal`)}return t}zs.fromHex=VZ;function KZ(e){let t="";for(let r=0;r<e.byteLength;r++)t+=qN[e[r]];return t}zs.toHex=KZ});var Li=m(K=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});K.MAX_PRESIGNED_TTL=K.KEY_TYPE_IDENTIFIER=K.MAX_CACHE_SIZE=K.UNSIGNED_PAYLOAD=K.EVENT_ALGORITHM_IDENTIFIER=K.ALGORITHM_IDENTIFIER_V4A=K.ALGORITHM_IDENTIFIER=K.UNSIGNABLE_PATTERNS=K.SEC_HEADER_PATTERN=K.PROXY_HEADER_PATTERN=K.ALWAYS_UNSIGNABLE_HEADERS=K.HOST_HEADER=K.TOKEN_HEADER=K.SHA256_HEADER=K.SIGNATURE_HEADER=K.GENERATED_HEADERS=K.DATE_HEADER=K.AMZ_DATE_HEADER=K.AUTH_HEADER=K.REGION_SET_PARAM=K.TOKEN_QUERY_PARAM=K.SIGNATURE_QUERY_PARAM=K.EXPIRES_QUERY_PARAM=K.SIGNED_HEADERS_QUERY_PARAM=K.AMZ_DATE_QUERY_PARAM=K.CREDENTIAL_QUERY_PARAM=K.ALGORITHM_QUERY_PARAM=void 0;K.ALGORITHM_QUERY_PARAM="X-Amz-Algorithm";K.CREDENTIAL_QUERY_PARAM="X-Amz-Credential";K.AMZ_DATE_QUERY_PARAM="X-Amz-Date";K.SIGNED_HEADERS_QUERY_PARAM="X-Amz-SignedHeaders";K.EXPIRES_QUERY_PARAM="X-Amz-Expires";K.SIGNATURE_QUERY_PARAM="X-Amz-Signature";K.TOKEN_QUERY_PARAM="X-Amz-Security-Token";K.REGION_SET_PARAM="X-Amz-Region-Set";K.AUTH_HEADER="authorization";K.AMZ_DATE_HEADER=K.AMZ_DATE_QUERY_PARAM.toLowerCase();K.DATE_HEADER="date";K.GENERATED_HEADERS=[K.AUTH_HEADER,K.AMZ_DATE_HEADER,K.DATE_HEADER];K.SIGNATURE_HEADER=K.SIGNATURE_QUERY_PARAM.toLowerCase();K.SHA256_HEADER="x-amz-content-sha256";K.TOKEN_HEADER=K.TOKEN_QUERY_PARAM.toLowerCase();K.HOST_HEADER="host";K.ALWAYS_UNSIGNABLE_HEADERS={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0};K.PROXY_HEADER_PATTERN=/^proxy-/;K.SEC_HEADER_PATTERN=/^sec-/;K.UNSIGNABLE_PATTERNS=[/^proxy-/i,/^sec-/i];K.ALGORITHM_IDENTIFIER="AWS4-HMAC-SHA256";K.ALGORITHM_IDENTIFIER_V4A="AWS4-ECDSA-P256-SHA256";K.EVENT_ALGORITHM_IDENTIFIER="AWS4-HMAC-SHA256-PAYLOAD";K.UNSIGNED_PAYLOAD="UNSIGNED-PAYLOAD";K.MAX_CACHE_SIZE=50;K.KEY_TYPE_IDENTIFIER="aws4_request";K.MAX_PRESIGNED_TTL=60*60*24*7});var iE=m(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.clearCredentialCache=Jn.getSigningKey=Jn.createScope=void 0;var HZ=Pf(),nE=Li(),js={},Df=[],WZ=(e,t,r)=>`${e}/${t}/${r}/${nE.KEY_TYPE_IDENTIFIER}`;Jn.createScope=WZ;var JZ=async(e,t,r,n,i)=>{let s=await MN(e,t.secretAccessKey,t.accessKeyId),a=`${r}:${n}:${i}:${(0,HZ.toHex)(s)}:${t.sessionToken}`;if(a in js)return js[a];for(Df.push(a);Df.length>nE.MAX_CACHE_SIZE;)delete js[Df.shift()];let c=`AWS4${t.secretAccessKey}`;for(let l of[r,n,i,nE.KEY_TYPE_IDENTIFIER])c=await MN(e,c,l);return js[a]=c};Jn.getSigningKey=JZ;var YZ=()=>{Df.length=0,Object.keys(js).forEach(e=>{delete js[e]})};Jn.clearCredentialCache=YZ;var MN=(e,t,r)=>{let n=new e(t);return n.update(r),n.digest()}});var oE=m(Of=>{"use strict";Object.defineProperty(Of,"__esModule",{value:!0});Of.getCanonicalHeaders=void 0;var sE=Li(),QZ=({headers:e},t,r)=>{let n={};for(let i of Object.keys(e).sort()){let s=i.toLowerCase();(s in sE.ALWAYS_UNSIGNABLE_HEADERS||(t==null?void 0:t.has(s))||sE.PROXY_HEADER_PATTERN.test(s)||sE.SEC_HEADER_PATTERN.test(s))&&(!r||r&&!r.has(s))||(n[s]=e[i].trim().replace(/\s+/g," "))}return n};Of.getCanonicalHeaders=QZ});var aE=m(Lf=>{"use strict";Object.defineProperty(Lf,"__esModule",{value:!0});Lf.escapeUri=void 0;var XZ=e=>encodeURIComponent(e).replace(/[!'()*]/g,ZZ);Lf.escapeUri=XZ;var ZZ=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`});var zN=m(qf=>{"use strict";Object.defineProperty(qf,"__esModule",{value:!0});qf.escapeUriPath=void 0;var eee=aE(),tee=e=>e.split("/").map(eee.escapeUri).join("/");qf.escapeUriPath=tee});var cE=m(Mf=>{"use strict";Object.defineProperty(Mf,"__esModule",{value:!0});var jN=$();jN.__exportStar(aE(),Mf);jN.__exportStar(zN(),Mf)});var lE=m(jf=>{"use strict";Object.defineProperty(jf,"__esModule",{value:!0});jf.getCanonicalQuery=void 0;var zf=cE(),ree=Li(),nee=({query:e={}})=>{let t=[],r={};for(let n of Object.keys(e).sort()){if(n.toLowerCase()===ree.SIGNATURE_HEADER)continue;t.push(n);let i=e[n];typeof i=="string"?r[n]=`${(0,zf.escapeUri)(n)}=${(0,zf.escapeUri)(i)}`:Array.isArray(i)&&(r[n]=i.slice(0).sort().reduce((s,a)=>s.concat([`${(0,zf.escapeUri)(n)}=${(0,zf.escapeUri)(a)}`]),[]).join("&"))}return t.map(n=>r[n]).filter(n=>n).join("&")};jf.getCanonicalQuery=nee});var dE=m(kf=>{"use strict";Object.defineProperty(kf,"__esModule",{value:!0});kf.isArrayBuffer=void 0;var iee=e=>typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]";kf.isArrayBuffer=iee});var uE=m(Ff=>{"use strict";Object.defineProperty(Ff,"__esModule",{value:!0});Ff.getPayloadHash=void 0;var see=dE(),oee=Pf(),kN=Li(),aee=async({headers:e,body:t},r)=>{for(let n of Object.keys(e))if(n.toLowerCase()===kN.SHA256_HEADER)return e[n];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof t=="string"||ArrayBuffer.isView(t)||(0,see.isArrayBuffer)(t)){let n=new r;return n.update(t),(0,oee.toHex)(await n.digest())}return kN.UNSIGNED_PAYLOAD};Ff.getPayloadHash=aee});var FN=m(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.deleteHeader=Yn.getHeaderValue=Yn.hasHeader=void 0;var cee=(e,t)=>{e=e.toLowerCase();for(let r of Object.keys(t))if(e===r.toLowerCase())return!0;return!1};Yn.hasHeader=cee;var lee=(e,t)=>{e=e.toLowerCase();for(let r of Object.keys(t))if(e===r.toLowerCase())return t[r]};Yn.getHeaderValue=lee;var dee=(e,t)=>{e=e.toLowerCase();for(let r of Object.keys(t))e===r.toLowerCase()&&delete t[r]};Yn.deleteHeader=dee});var fE=m(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.cloneQuery=qi.cloneRequest=void 0;var uee=n=>{var i=n,{headers:e,query:t}=i,r=Un(i,["headers","query"]);return y(o({},r),{headers:o({},e),query:t?(0,qi.cloneQuery)(t):void 0})};qi.cloneRequest=uee;var fee=e=>Object.keys(e).reduce((t,r)=>{let n=e[r];return y(o({},t),{[r]:Array.isArray(n)?[...n]:n})},{});qi.cloneQuery=fee});var mE=m(Uf=>{"use strict";Object.defineProperty(Uf,"__esModule",{value:!0});Uf.moveHeadersToQuery=void 0;var mee=fE(),pee=(e,t={})=>{var r;let{headers:n,query:i={}}=typeof e.clone=="function"?e.clone():(0,mee.cloneRequest)(e);for(let s of Object.keys(n)){let a=s.toLowerCase();a.slice(0,6)==="x-amz-"&&!(!((r=t.unhoistableHeaders)===null||r===void 0)&&r.has(a))&&(i[s]=n[s],delete n[s])}return y(o({},e),{headers:n,query:i})};Uf.moveHeadersToQuery=pee});var pE=m(Bf=>{"use strict";Object.defineProperty(Bf,"__esModule",{value:!0});Bf.prepareRequest=void 0;var _ee=fE(),hee=Li(),yee=e=>{e=typeof e.clone=="function"?e.clone():(0,_ee.cloneRequest)(e);for(let t of Object.keys(e.headers))hee.GENERATED_HEADERS.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e};Bf.prepareRequest=yee});var UN=m(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});Mi.toDate=Mi.iso8601=void 0;var gee=e=>(0,Mi.toDate)(e).toISOString().replace(/\.\d{3}Z$/,"Z");Mi.iso8601=gee;var vee=e=>typeof e=="number"?new Date(e*1e3):typeof e=="string"?Number(e)?new Date(Number(e)*1e3):new Date(e):e;Mi.toDate=vee});var KN=m(Kf=>{"use strict";Object.defineProperty(Kf,"__esModule",{value:!0});Kf.SignatureV4=void 0;var Gf=Pf(),BN=qa(),ut=Li(),$f=iE(),GN=oE(),See=lE(),_E=uE(),wee=FN(),Eee=mE(),$N=pE(),bee=UN(),hE=class{constructor({applyChecksum:t,credentials:r,region:n,service:i,sha256:s,uriEscapePath:a=!0}){this.service=i,this.sha256=s,this.uriEscapePath=a,this.applyChecksum=typeof t=="boolean"?t:!0,this.regionProvider=(0,BN.normalizeProvider)(n),this.credentialProvider=(0,BN.normalizeProvider)(r)}async presign(t,r={}){let{signingDate:n=new Date,expiresIn:i=3600,unsignableHeaders:s,unhoistableHeaders:a,signableHeaders:c,signingRegion:l,signingService:u}=r,f=await this.credentialProvider(),_=l??await this.regionProvider(),{longDate:h,shortDate:v}=Vf(n);if(i>ut.MAX_PRESIGNED_TTL)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let S=(0,$f.createScope)(v,_,u??this.service),g=(0,Eee.moveHeadersToQuery)((0,$N.prepareRequest)(t),{unhoistableHeaders:a});f.sessionToken&&(g.query[ut.TOKEN_QUERY_PARAM]=f.sessionToken),g.query[ut.ALGORITHM_QUERY_PARAM]=ut.ALGORITHM_IDENTIFIER,g.query[ut.CREDENTIAL_QUERY_PARAM]=`${f.accessKeyId}/${S}`,g.query[ut.AMZ_DATE_QUERY_PARAM]=h,g.query[ut.EXPIRES_QUERY_PARAM]=i.toString(10);let I=(0,GN.getCanonicalHeaders)(g,s,c);return g.query[ut.SIGNED_HEADERS_QUERY_PARAM]=VN(I),g.query[ut.SIGNATURE_QUERY_PARAM]=await this.getSignature(h,S,this.getSigningKey(f,_,v,u),this.createCanonicalRequest(g,I,await(0,_E.getPayloadHash)(t,this.sha256))),g}async sign(t,r){return typeof t=="string"?this.signString(t,r):t.headers&&t.payload?this.signEvent(t,r):this.signRequest(t,r)}async signEvent({headers:t,payload:r},{signingDate:n=new Date,priorSignature:i,signingRegion:s,signingService:a}){let c=s??await this.regionProvider(),{shortDate:l,longDate:u}=Vf(n),f=(0,$f.createScope)(l,c,a??this.service),_=await(0,_E.getPayloadHash)({headers:{},body:r},this.sha256),h=new this.sha256;h.update(t);let v=(0,Gf.toHex)(await h.digest()),S=[ut.EVENT_ALGORITHM_IDENTIFIER,u,f,i,v,_].join(`
10
+ `);return this.signString(S,{signingDate:n,signingRegion:c,signingService:a})}async signString(t,{signingDate:r=new Date,signingRegion:n,signingService:i}={}){let s=await this.credentialProvider(),a=n??await this.regionProvider(),{shortDate:c}=Vf(r),l=new this.sha256(await this.getSigningKey(s,a,c,i));return l.update(t),(0,Gf.toHex)(await l.digest())}async signRequest(t,{signingDate:r=new Date,signableHeaders:n,unsignableHeaders:i,signingRegion:s,signingService:a}={}){let c=await this.credentialProvider(),l=s??await this.regionProvider(),u=(0,$N.prepareRequest)(t),{longDate:f,shortDate:_}=Vf(r),h=(0,$f.createScope)(_,l,a??this.service);u.headers[ut.AMZ_DATE_HEADER]=f,c.sessionToken&&(u.headers[ut.TOKEN_HEADER]=c.sessionToken);let v=await(0,_E.getPayloadHash)(u,this.sha256);!(0,wee.hasHeader)(ut.SHA256_HEADER,u.headers)&&this.applyChecksum&&(u.headers[ut.SHA256_HEADER]=v);let S=(0,GN.getCanonicalHeaders)(u,i,n),g=await this.getSignature(f,h,this.getSigningKey(c,l,_,a),this.createCanonicalRequest(u,S,v));return u.headers[ut.AUTH_HEADER]=`${ut.ALGORITHM_IDENTIFIER} Credential=${c.accessKeyId}/${h}, SignedHeaders=${VN(S)}, Signature=${g}`,u}createCanonicalRequest(t,r,n){let i=Object.keys(r).sort();return`${t.method}
11
11
  ${this.getCanonicalPath(t)}
12
- ${PJ.getCanonicalQuery(t)}
13
- ${i.map(s=>`${s}:${n[s]}`).join(`
12
+ ${(0,See.getCanonicalQuery)(t)}
13
+ ${i.map(s=>`${s}:${r[s]}`).join(`
14
14
  `)}
15
15
 
16
16
  ${i.join(";")}
17
- ${r}`}async createStringToSign(t,n,r){let i=new this.sha256;i.update(r);let s=await i.digest();return`${ct.ALGORITHM_IDENTIFIER}
17
+ ${n}`}async createStringToSign(t,r,n){let i=new this.sha256;i.update(n);let s=await i.digest();return`${ut.ALGORITHM_IDENTIFIER}
18
18
  ${t}
19
- ${n}
20
- ${Wd.toHex(s)}`}getCanonicalPath({path:t}){return this.uriEscapePath?`/${encodeURIComponent(t.replace(/^\//,"")).replace(/%2F/g,"/")}`:t}async getSignature(t,n,r,i){let s=await this.createStringToSign(t,n,i),a=new this.sha256(await r);return a.update(s),Wd.toHex(await a.digest())}getSigningKey(t,n,r,i){return Yd.getSigningKey(this.sha256,t,r,n,i||this.service)}};Qd.SignatureV4=nx;var Jd=e=>{let t=LJ.iso8601(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.substr(0,8)}},rx=e=>Object.keys(e).sort().join(";")});var ox=p(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.normalizeRegionProvider=tt.normalizeCredentialsProvider=tt.prepareRequest=tt.moveHeadersToQuery=tt.getPayloadHash=tt.getCanonicalQuery=tt.getCanonicalHeaders=void 0;var sx=se();sx.__exportStar(ix(),tt);var qJ=Pg();Object.defineProperty(tt,"getCanonicalHeaders",{enumerable:!0,get:function(){return qJ.getCanonicalHeaders}});var MJ=Lg();Object.defineProperty(tt,"getCanonicalQuery",{enumerable:!0,get:function(){return MJ.getCanonicalQuery}});var kJ=Mg();Object.defineProperty(tt,"getPayloadHash",{enumerable:!0,get:function(){return kJ.getPayloadHash}});var jJ=jg();Object.defineProperty(tt,"moveHeadersToQuery",{enumerable:!0,get:function(){return jJ.moveHeadersToQuery}});var zJ=Ug();Object.defineProperty(tt,"prepareRequest",{enumerable:!0,get:function(){return zJ.prepareRequest}});var ax=zg();Object.defineProperty(tt,"normalizeCredentialsProvider",{enumerable:!0,get:function(){return ax.normalizeCredentialsProvider}});Object.defineProperty(tt,"normalizeRegionProvider",{enumerable:!0,get:function(){return ax.normalizeRegionProvider}});sx.__exportStar(Rg(),tt)});var dx=p(ys=>{"use strict";Object.defineProperty(ys,"__esModule",{value:!0});ys.resolveSigV4AuthConfig=ys.resolveAwsAuthConfig=void 0;var UJ=lt(),lx=ox(),FJ=3e5,BJ=e=>{let t=e.credentials?cx(e.credentials):e.credentialDefaultProvider(e),{signingEscapePath:n=!0,systemClockOffset:r=e.systemClockOffset||0,sha256:i}=e,s;return e.signer?s=Da(e.signer):s=()=>Da(e.region)().then(async a=>[await e.regionInfoProvider(a,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},a]).then(([a,l])=>{let{signingRegion:c,signingService:d}=a;e.signingRegion=e.signingRegion||c||l,e.signingName=e.signingName||d||e.serviceId;let u=f(o({},e),{credentials:t,region:e.signingRegion,service:e.signingName,sha256:i,uriEscapePath:n}),_=e.signerConstructor||lx.SignatureV4;return new _(u)}),f(o({},e),{systemClockOffset:r,signingEscapePath:n,credentials:t,signer:s})};ys.resolveAwsAuthConfig=BJ;var GJ=e=>{let t=e.credentials?cx(e.credentials):e.credentialDefaultProvider(e),{signingEscapePath:n=!0,systemClockOffset:r=e.systemClockOffset||0,sha256:i}=e,s;return e.signer?s=Da(e.signer):s=Da(new lx.SignatureV4({credentials:t,region:e.region,service:e.signingName,sha256:i,uriEscapePath:n})),f(o({},e),{systemClockOffset:r,signingEscapePath:n,credentials:t,signer:s})};ys.resolveSigV4AuthConfig=GJ;var Da=e=>{if(typeof e=="object"){let t=Promise.resolve(e);return()=>t}return e},cx=e=>typeof e=="function"?UJ.memoize(e,t=>t.expiration!==void 0&&t.expiration.getTime()-Date.now()<FJ,t=>t.expiration!==void 0):Da(e)});var Bg=p(Xd=>{"use strict";Object.defineProperty(Xd,"__esModule",{value:!0});Xd.getSkewCorrectedDate=void 0;var $J=e=>new Date(Date.now()+e);Xd.getSkewCorrectedDate=$J});var ux=p(Zd=>{"use strict";Object.defineProperty(Zd,"__esModule",{value:!0});Zd.isClockSkewed=void 0;var KJ=Bg(),VJ=(e,t)=>Math.abs(KJ.getSkewCorrectedDate(t).getTime()-e)>=3e5;Zd.isClockSkewed=VJ});var mx=p(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});eu.getUpdatedSystemClockOffset=void 0;var HJ=ux(),WJ=(e,t)=>{let n=Date.parse(e);return HJ.isClockSkewed(n,t)?n-Date.now():t};eu.getUpdatedSystemClockOffset=WJ});var hx=p(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.getSigV4AuthPlugin=Ft.getAwsAuthPlugin=Ft.awsAuthMiddlewareOptions=Ft.awsAuthMiddleware=void 0;var fx=jt(),YJ=Bg(),px=mx(),JJ=e=>(t,n)=>async function(r){if(!fx.HttpRequest.isInstance(r.request))return t(r);let i=await e.signer(),s=await t(f(o({},r),{request:await i.sign(r.request,{signingDate:YJ.getSkewCorrectedDate(e.systemClockOffset),signingRegion:n.signing_region,signingService:n.signing_service})})).catch(l=>{var c;let d=(c=l.ServerTime)!==null&&c!==void 0?c:_x(l.$response);throw d&&(e.systemClockOffset=px.getUpdatedSystemClockOffset(d,e.systemClockOffset)),l}),a=_x(s.response);return a&&(e.systemClockOffset=px.getUpdatedSystemClockOffset(a,e.systemClockOffset)),s};Ft.awsAuthMiddleware=JJ;var _x=e=>{var t,n,r;return fx.HttpResponse.isInstance(e)?(n=(t=e.headers)===null||t===void 0?void 0:t.date)!==null&&n!==void 0?n:(r=e.headers)===null||r===void 0?void 0:r.Date:void 0};Ft.awsAuthMiddlewareOptions={name:"awsAuthMiddleware",tags:["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware",override:!0};var QJ=e=>({applyToStack:t=>{t.addRelativeTo(Ft.awsAuthMiddleware(e),Ft.awsAuthMiddlewareOptions)}});Ft.getAwsAuthPlugin=QJ;Ft.getSigV4AuthPlugin=Ft.getAwsAuthPlugin});var or=p(tu=>{"use strict";Object.defineProperty(tu,"__esModule",{value:!0});var gx=se();gx.__exportStar(dx(),tu);gx.__exportStar(hx(),tu)});var yx=p(nu=>{"use strict";Object.defineProperty(nu,"__esModule",{value:!0});nu.resolveUserAgentConfig=void 0;function XJ(e){return f(o({},e),{customUserAgent:typeof e.customUserAgent=="string"?[[e.customUserAgent]]:e.customUserAgent})}nu.resolveUserAgentConfig=XJ});var vx=p(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.UA_ESCAPE_REGEX=On.SPACE=On.X_AMZ_USER_AGENT=On.USER_AGENT=void 0;On.USER_AGENT="user-agent";On.X_AMZ_USER_AGENT="x-amz-user-agent";On.SPACE=" ";On.UA_ESCAPE_REGEX=/[^\!\#\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g});var bx=p(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.getUserAgentPlugin=Ln.getUserAgentMiddlewareOptions=Ln.userAgentMiddleware=void 0;var ZJ=jt(),kr=vx(),e7=e=>(t,n)=>async r=>{var i,s;let{request:a}=r;if(!ZJ.HttpRequest.isInstance(a))return t(r);let{headers:l}=a,c=((i=n==null?void 0:n.userAgent)===null||i===void 0?void 0:i.map(Gg))||[],d=(await e.defaultUserAgentProvider()).map(Gg),u=((s=e==null?void 0:e.customUserAgent)===null||s===void 0?void 0:s.map(Gg))||[],_=[...d,...c,...u].join(kr.SPACE),g=[...d.filter(b=>b.startsWith("aws-sdk-")),...u].join(kr.SPACE);return e.runtime!=="browser"?(g&&(l[kr.X_AMZ_USER_AGENT]=l[kr.X_AMZ_USER_AGENT]?`${l[kr.USER_AGENT]} ${g}`:g),l[kr.USER_AGENT]=_):l[kr.X_AMZ_USER_AGENT]=_,t(f(o({},r),{request:a}))};Ln.userAgentMiddleware=e7;var Gg=([e,t])=>{let n=e.indexOf("/"),r=e.substring(0,n),i=e.substring(n+1);return r==="api"&&(i=i.toLowerCase()),[r,i,t].filter(s=>s&&s.length>0).map(s=>s==null?void 0:s.replace(kr.UA_ESCAPE_REGEX,"_")).join("/")};Ln.getUserAgentMiddlewareOptions={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0};var t7=e=>({applyToStack:t=>{t.add(Ln.userAgentMiddleware(e),Ln.getUserAgentMiddlewareOptions)}});Ln.getUserAgentPlugin=t7});var iu=p(ru=>{"use strict";Object.defineProperty(ru,"__esModule",{value:!0});var Sx=se();Sx.__exportStar(yx(),ru);Sx.__exportStar(bx(),ru)});var wx=p((qve,n7)=>{n7.exports={name:"@aws-sdk/client-dynamodb",description:"AWS SDK for JavaScript Dynamodb Client for Node.js, Browser and React Native",version:"3.47.0",scripts:{build:"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-*"},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.47.0","@aws-sdk/config-resolver":"3.47.0","@aws-sdk/credential-provider-node":"3.47.0","@aws-sdk/fetch-http-handler":"3.47.0","@aws-sdk/hash-node":"3.47.0","@aws-sdk/invalid-dependency":"3.47.0","@aws-sdk/middleware-content-length":"3.47.0","@aws-sdk/middleware-endpoint-discovery":"3.47.0","@aws-sdk/middleware-host-header":"3.47.0","@aws-sdk/middleware-logger":"3.47.0","@aws-sdk/middleware-retry":"3.47.0","@aws-sdk/middleware-serde":"3.47.0","@aws-sdk/middleware-signing":"3.47.0","@aws-sdk/middleware-stack":"3.47.0","@aws-sdk/middleware-user-agent":"3.47.0","@aws-sdk/node-config-provider":"3.47.0","@aws-sdk/node-http-handler":"3.47.0","@aws-sdk/protocol-http":"3.47.0","@aws-sdk/smithy-client":"3.47.0","@aws-sdk/types":"3.47.0","@aws-sdk/url-parser":"3.47.0","@aws-sdk/util-base64-browser":"3.47.0","@aws-sdk/util-base64-node":"3.47.0","@aws-sdk/util-body-length-browser":"3.47.0","@aws-sdk/util-body-length-node":"3.47.0","@aws-sdk/util-defaults-mode-browser":"3.47.0","@aws-sdk/util-defaults-mode-node":"3.47.0","@aws-sdk/util-user-agent-browser":"3.47.0","@aws-sdk/util-user-agent-node":"3.47.0","@aws-sdk/util-utf8-browser":"3.47.0","@aws-sdk/util-utf8-node":"3.47.0","@aws-sdk/util-waiter":"3.47.0",tslib:"^2.3.0",uuid:"^8.3.2"},devDependencies:{"@aws-sdk/service-client-documentation-generator":"3.47.0","@types/node":"^12.7.5","@types/uuid":"^8.3.0"},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-dynamodb",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-dynamodb"}}});var qn=p(U=>{"use strict";Object.defineProperty(U,"__esModule",{value:!0});U.GetSessionTokenResponse=U.GetSessionTokenRequest=U.GetFederationTokenResponse=U.FederatedUser=U.GetFederationTokenRequest=U.GetCallerIdentityResponse=U.GetCallerIdentityRequest=U.GetAccessKeyInfoResponse=U.GetAccessKeyInfoRequest=U.DecodeAuthorizationMessageResponse=U.DecodeAuthorizationMessageRequest=U.AssumeRoleWithWebIdentityResponse=U.AssumeRoleWithWebIdentityRequest=U.AssumeRoleWithSAMLResponse=U.AssumeRoleWithSAMLRequest=U.AssumeRoleResponse=U.Credentials=U.AssumeRoleRequest=U.Tag=U.PolicyDescriptorType=U.AssumedRoleUser=void 0;var r7;(function(e){e.filterSensitiveLog=t=>o({},t)})(r7=U.AssumedRoleUser||(U.AssumedRoleUser={}));var i7;(function(e){e.filterSensitiveLog=t=>o({},t)})(i7=U.PolicyDescriptorType||(U.PolicyDescriptorType={}));var s7;(function(e){e.filterSensitiveLog=t=>o({},t)})(s7=U.Tag||(U.Tag={}));var a7;(function(e){e.filterSensitiveLog=t=>o({},t)})(a7=U.AssumeRoleRequest||(U.AssumeRoleRequest={}));var o7;(function(e){e.filterSensitiveLog=t=>o({},t)})(o7=U.Credentials||(U.Credentials={}));var l7;(function(e){e.filterSensitiveLog=t=>o({},t)})(l7=U.AssumeRoleResponse||(U.AssumeRoleResponse={}));var c7;(function(e){e.filterSensitiveLog=t=>o({},t)})(c7=U.AssumeRoleWithSAMLRequest||(U.AssumeRoleWithSAMLRequest={}));var d7;(function(e){e.filterSensitiveLog=t=>o({},t)})(d7=U.AssumeRoleWithSAMLResponse||(U.AssumeRoleWithSAMLResponse={}));var u7;(function(e){e.filterSensitiveLog=t=>o({},t)})(u7=U.AssumeRoleWithWebIdentityRequest||(U.AssumeRoleWithWebIdentityRequest={}));var m7;(function(e){e.filterSensitiveLog=t=>o({},t)})(m7=U.AssumeRoleWithWebIdentityResponse||(U.AssumeRoleWithWebIdentityResponse={}));var f7;(function(e){e.filterSensitiveLog=t=>o({},t)})(f7=U.DecodeAuthorizationMessageRequest||(U.DecodeAuthorizationMessageRequest={}));var p7;(function(e){e.filterSensitiveLog=t=>o({},t)})(p7=U.DecodeAuthorizationMessageResponse||(U.DecodeAuthorizationMessageResponse={}));var _7;(function(e){e.filterSensitiveLog=t=>o({},t)})(_7=U.GetAccessKeyInfoRequest||(U.GetAccessKeyInfoRequest={}));var h7;(function(e){e.filterSensitiveLog=t=>o({},t)})(h7=U.GetAccessKeyInfoResponse||(U.GetAccessKeyInfoResponse={}));var g7;(function(e){e.filterSensitiveLog=t=>o({},t)})(g7=U.GetCallerIdentityRequest||(U.GetCallerIdentityRequest={}));var y7;(function(e){e.filterSensitiveLog=t=>o({},t)})(y7=U.GetCallerIdentityResponse||(U.GetCallerIdentityResponse={}));var v7;(function(e){e.filterSensitiveLog=t=>o({},t)})(v7=U.GetFederationTokenRequest||(U.GetFederationTokenRequest={}));var b7;(function(e){e.filterSensitiveLog=t=>o({},t)})(b7=U.FederatedUser||(U.FederatedUser={}));var S7;(function(e){e.filterSensitiveLog=t=>o({},t)})(S7=U.GetFederationTokenResponse||(U.GetFederationTokenResponse={}));var w7;(function(e){e.filterSensitiveLog=t=>o({},t)})(w7=U.GetSessionTokenRequest||(U.GetSessionTokenRequest={}));var E7;(function(e){e.filterSensitiveLog=t=>o({},t)})(E7=U.GetSessionTokenResponse||(U.GetSessionTokenResponse={}))});var $g=p((kve,A7)=>{A7.exports={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25CB",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cup:"\u222A",Cup:"\u22D3",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21A1",dArr:"\u21D3",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21CA",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21D3",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21BD",DownRightTeeVector:"\u295F",DownRightVectorBar:"\u2957",DownRightVector:"\u21C1",DownTeeArrow:"\u21A7",DownTee:"\u22A4",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",Ecirc:"\xCA",ecirc:"\xEA",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",Fscr:"\u2131",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",gescc:"\u2AA9",ges:"\u2A7E",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2AA5",gl:"\u2277",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gt:">",GT:">",Gt:"\u226B",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",harrcir:"\u2948",harr:"\u2194",hArr:"\u21D4",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1D4BD}",Hscr:"\u210B",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",Ifr:"\u2111",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",incare:"\u2105",in:"\u2208",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",intcal:"\u22BA",int:"\u222B",Int:"\u222C",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larrb:"\u21E4",larrbfs:"\u291F",larr:"\u2190",Larr:"\u219E",lArr:"\u21D0",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",latail:"\u2919",lAtail:"\u291B",lat:"\u2AAB",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",LeftArrowBar:"\u21E4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21D0",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21C3",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTeeArrow:"\u21A4",LeftTee:"\u22A3",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangleBar:"\u29CF",LeftTriangle:"\u22B2",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21BF",LeftVectorBar:"\u2952",LeftVector:"\u21BC",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",lescc:"\u2AA8",les:"\u2A7D",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21C7",ll:"\u226A",Ll:"\u22D8",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoustache:"\u23B0",lmoust:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftrightarrow:"\u27F7",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longmapsto:"\u27FC",longrightarrow:"\u27F6",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",lt:"<",LT:"<",Lt:"\u226A",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midast:"*",midcir:"\u2AF0",mid:"\u2223",middot:"\xB7",minusb:"\u229F",minus:"\u2212",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",Mscr:"\u2133",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266E",naturals:"\u2115",natur:"\u266E",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
21
- `,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",orarr:"\u21BB",Or:"\u2A54",or:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",otimesas:"\u2A36",Otimes:"\u2A37",otimes:"\u2297",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",para:"\xB6",parallel:"\u2225",par:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plus:"+",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",popf:"\u{1D561}",Popf:"\u2119",pound:"\xA3",prap:"\u2AB7",Pr:"\u2ABB",pr:"\u227A",prcue:"\u227C",precapprox:"\u2AB7",prec:"\u227A",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",pre:"\u2AAF",prE:"\u2AB3",precsim:"\u227E",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportional:"\u221D",Proportion:"\u2237",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",Qopf:"\u211A",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',QUOT:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",Rang:"\u27EB",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21A0",rArr:"\u21D2",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",rAtail:"\u291C",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rBarr:"\u290F",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",Re:"\u211C",rect:"\u25AD",reg:"\xAE",REG:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",Rfr:"\u211C",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrowBar:"\u21E5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21D2",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVectorBar:"\u2955",RightDownVector:"\u21C2",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTeeArrow:"\u21A6",RightTee:"\u22A2",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangleBar:"\u29D0",RightTriangle:"\u22B3",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVectorBar:"\u2954",RightUpVector:"\u21BE",RightVectorBar:"\u2953",RightVector:"\u21C0",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoustache:"\u23B1",rmoust:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",Ropf:"\u211D",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",rscr:"\u{1D4C7}",Rscr:"\u211B",rsh:"\u21B1",Rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",Sc:"\u2ABC",sc:"\u227B",sccue:"\u227D",sce:"\u2AB0",scE:"\u2AB4",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdotb:"\u22A1",sdot:"\u22C5",sdote:"\u2A66",searhk:"\u2925",searr:"\u2198",seArr:"\u21D8",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",solbar:"\u233F",solb:"\u29C4",sol:"/",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25A1",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squ:"\u25A1",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",Sub:"\u22D0",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",Subset:"\u22D0",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succapprox:"\u2AB8",succ:"\u227B",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",sum:"\u2211",Sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",Sup:"\u22D1",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",Supset:"\u22D1",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21D9",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",tilde:"\u02DC",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2A31",timesb:"\u22A0",times:"\xD7",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",topbot:"\u2336",topcir:"\u2AF1",top:"\u22A4",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",uarr:"\u2191",Uarr:"\u219F",uArr:"\u21D1",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21D1",UpArrowDownArrow:"\u21C5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21D5",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTeeArrow:"\u21A5",UpTee:"\u22A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",vArr:"\u21D5",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vBar:"\u2AE8",Vbar:"\u2AEB",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22A2",vDash:"\u22A8",Vdash:"\u22A9",VDash:"\u22AB",Vdashl:"\u2AE6",veebar:"\u22BB",vee:"\u2228",Vee:"\u22C1",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",Wedge:"\u22C0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xharr:"\u27F7",xhArr:"\u27FA",Xi:"\u039E",xi:"\u03BE",xlarr:"\u27F5",xlArr:"\u27F8",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrarr:"\u27F6",xrArr:"\u27F9",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",yuml:"\xFF",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",zfr:"\u{1D537}",Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",Zopf:"\u2124",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}});var Ex=p((jve,C7)=>{C7.exports={Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",AElig:"\xC6",aelig:"\xE6",Agrave:"\xC0",agrave:"\xE0",amp:"&",AMP:"&",Aring:"\xC5",aring:"\xE5",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",brvbar:"\xA6",Ccedil:"\xC7",ccedil:"\xE7",cedil:"\xB8",cent:"\xA2",copy:"\xA9",COPY:"\xA9",curren:"\xA4",deg:"\xB0",divide:"\xF7",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Egrave:"\xC8",egrave:"\xE8",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE",gt:">",GT:">",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",iexcl:"\xA1",Igrave:"\xCC",igrave:"\xEC",iquest:"\xBF",Iuml:"\xCF",iuml:"\xEF",laquo:"\xAB",lt:"<",LT:"<",macr:"\xAF",micro:"\xB5",middot:"\xB7",nbsp:"\xA0",not:"\xAC",Ntilde:"\xD1",ntilde:"\xF1",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Ograve:"\xD2",ograve:"\xF2",ordf:"\xAA",ordm:"\xBA",Oslash:"\xD8",oslash:"\xF8",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",para:"\xB6",plusmn:"\xB1",pound:"\xA3",quot:'"',QUOT:'"',raquo:"\xBB",reg:"\xAE",REG:"\xAE",sect:"\xA7",shy:"\xAD",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",szlig:"\xDF",THORN:"\xDE",thorn:"\xFE",times:"\xD7",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Ugrave:"\xD9",ugrave:"\xF9",uml:"\xA8",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",yen:"\xA5",yuml:"\xFF"}});var Kg=p((zve,T7)=>{T7.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}});var Ax=p((Uve,x7)=>{x7.exports={"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}});var Tx=p(Oa=>{"use strict";var I7=Oa&&Oa.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Oa,"__esModule",{value:!0});var Cx=I7(Ax()),R7=String.fromCodePoint||function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function N7(e){return e>=55296&&e<=57343||e>1114111?"\uFFFD":(e in Cx.default&&(e=Cx.default[e]),R7(e))}Oa.default=N7});var Hg=p(Mn=>{"use strict";var su=Mn&&Mn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Mn,"__esModule",{value:!0});Mn.decodeHTML=Mn.decodeHTMLStrict=Mn.decodeXML=void 0;var Vg=su($g()),P7=su(Ex()),D7=su(Kg()),xx=su(Tx()),O7=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;Mn.decodeXML=Ix(D7.default);Mn.decodeHTMLStrict=Ix(Vg.default);function Ix(e){var t=Nx(e);return function(n){return String(n).replace(O7,t)}}var Rx=function(e,t){return e<t?1:-1};Mn.decodeHTML=function(){for(var e=Object.keys(P7.default).sort(Rx),t=Object.keys(Vg.default).sort(Rx),n=0,r=0;n<t.length;n++)e[r]===t[n]?(t[n]+=";?",r++):t[n]+=";";var i=new RegExp("&(?:"+t.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),s=Nx(Vg.default);function a(l){return l.substr(-1)!==";"&&(l+=";"),s(l)}return function(l){return String(l).replace(i,a)}}();function Nx(e){return function(n){if(n.charAt(1)==="#"){var r=n.charAt(2);return r==="X"||r==="x"?xx.default(parseInt(n.substr(3),16)):xx.default(parseInt(n.substr(2),10))}return e[n.slice(1,-1)]||n}}});var Yg=p(Tt=>{"use strict";var Px=Tt&&Tt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Tt,"__esModule",{value:!0});Tt.escapeUTF8=Tt.escape=Tt.encodeNonAsciiHTML=Tt.encodeHTML=Tt.encodeXML=void 0;var L7=Px(Kg()),Dx=Lx(L7.default),Ox=qx(Dx);Tt.encodeXML=jx(Dx);var q7=Px($g()),Wg=Lx(q7.default),M7=qx(Wg);Tt.encodeHTML=j7(Wg,M7);Tt.encodeNonAsciiHTML=jx(Wg);function Lx(e){return Object.keys(e).sort().reduce(function(t,n){return t[e[n]]="&"+n+";",t},{})}function qx(e){for(var t=[],n=[],r=0,i=Object.keys(e);r<i.length;r++){var s=i[r];s.length===1?t.push("\\"+s):n.push(s)}t.sort();for(var a=0;a<t.length-1;a++){for(var l=a;l<t.length-1&&t[l].charCodeAt(1)+1===t[l+1].charCodeAt(1);)l+=1;var c=1+l-a;c<3||t.splice(a,c,t[a]+"-"+t[l])}return n.unshift("["+t.join("")+"]"),new RegExp(n.join("|"),"g")}var Mx=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,k7=String.prototype.codePointAt!=null?function(e){return e.codePointAt(0)}:function(e){return(e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536};function au(e){return"&#x"+(e.length>1?k7(e):e.charCodeAt(0)).toString(16).toUpperCase()+";"}function j7(e,t){return function(n){return n.replace(t,function(r){return e[r]}).replace(Mx,au)}}var kx=new RegExp(Ox.source+"|"+Mx.source,"g");function z7(e){return e.replace(kx,au)}Tt.escape=z7;function U7(e){return e.replace(Ox,au)}Tt.escapeUTF8=U7;function jx(e){return function(t){return t.replace(kx,function(n){return e[n]||au(n)})}}});var Ux=p(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});me.decodeXMLStrict=me.decodeHTML5Strict=me.decodeHTML4Strict=me.decodeHTML5=me.decodeHTML4=me.decodeHTMLStrict=me.decodeHTML=me.decodeXML=me.encodeHTML5=me.encodeHTML4=me.escapeUTF8=me.escape=me.encodeNonAsciiHTML=me.encodeHTML=me.encodeXML=me.encode=me.decodeStrict=me.decode=void 0;var ou=Hg(),zx=Yg();function F7(e,t){return(!t||t<=0?ou.decodeXML:ou.decodeHTML)(e)}me.decode=F7;function B7(e,t){return(!t||t<=0?ou.decodeXML:ou.decodeHTMLStrict)(e)}me.decodeStrict=B7;function G7(e,t){return(!t||t<=0?zx.encodeXML:zx.encodeHTML)(e)}me.encode=G7;var bi=Yg();Object.defineProperty(me,"encodeXML",{enumerable:!0,get:function(){return bi.encodeXML}});Object.defineProperty(me,"encodeHTML",{enumerable:!0,get:function(){return bi.encodeHTML}});Object.defineProperty(me,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return bi.encodeNonAsciiHTML}});Object.defineProperty(me,"escape",{enumerable:!0,get:function(){return bi.escape}});Object.defineProperty(me,"escapeUTF8",{enumerable:!0,get:function(){return bi.escapeUTF8}});Object.defineProperty(me,"encodeHTML4",{enumerable:!0,get:function(){return bi.encodeHTML}});Object.defineProperty(me,"encodeHTML5",{enumerable:!0,get:function(){return bi.encodeHTML}});var jr=Hg();Object.defineProperty(me,"decodeXML",{enumerable:!0,get:function(){return jr.decodeXML}});Object.defineProperty(me,"decodeHTML",{enumerable:!0,get:function(){return jr.decodeHTML}});Object.defineProperty(me,"decodeHTMLStrict",{enumerable:!0,get:function(){return jr.decodeHTMLStrict}});Object.defineProperty(me,"decodeHTML4",{enumerable:!0,get:function(){return jr.decodeHTML}});Object.defineProperty(me,"decodeHTML5",{enumerable:!0,get:function(){return jr.decodeHTML}});Object.defineProperty(me,"decodeHTML4Strict",{enumerable:!0,get:function(){return jr.decodeHTMLStrict}});Object.defineProperty(me,"decodeHTML5Strict",{enumerable:!0,get:function(){return jr.decodeHTMLStrict}});Object.defineProperty(me,"decodeXMLStrict",{enumerable:!0,get:function(){return jr.decodeXML}})});var kn=p(mn=>{"use strict";var Fx=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",$7=Fx+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Bx="["+Fx+"]["+$7+"]*",K7=new RegExp("^"+Bx+"$"),V7=function(e,t){let n=[],r=t.exec(e);for(;r;){let i=[],s=r.length;for(let a=0;a<s;a++)i.push(r[a]);n.push(i),r=t.exec(e)}return n},H7=function(e){let t=K7.exec(e);return!(t===null||typeof t=="undefined")};mn.isExist=function(e){return typeof e!="undefined"};mn.isEmptyObject=function(e){return Object.keys(e).length===0};mn.merge=function(e,t,n){if(t){let r=Object.keys(t),i=r.length;for(let s=0;s<i;s++)n==="strict"?e[r[s]]=[t[r[s]]]:e[r[s]]=t[r[s]]}};mn.getValue=function(e){return mn.isExist(e)?e:""};mn.buildOptions=function(e,t,n){var r={};if(!e)return t;for(let i=0;i<n.length;i++)e[n[i]]!==void 0?r[n[i]]=e[n[i]]:r[n[i]]=t[n[i]];return r};mn.isTagNameInArrayMode=function(e,t,n){return t===!1?!1:t instanceof RegExp?t.test(e):typeof t=="function"?!!t(e,n):t==="strict"};mn.isName=H7;mn.getAllMatches=V7;mn.nameRegexp=Bx});var $x=p(Gx=>{"use strict";var Si=kn(),Jg=function(e,t,n){let r={};if((!e.child||Si.isEmptyObject(e.child))&&(!e.attrsMap||Si.isEmptyObject(e.attrsMap)))return Si.isExist(e.val)?e.val:"";if(Si.isExist(e.val)&&!(typeof e.val=="string"&&(e.val===""||e.val===t.cdataPositionChar))){let s=Si.isTagNameInArrayMode(e.tagname,t.arrayMode,n);r[t.textNodeName]=s?[e.val]:e.val}Si.merge(r,e.attrsMap,t.arrayMode);let i=Object.keys(e.child);for(let s=0;s<i.length;s++){let a=i[s];if(e.child[a]&&e.child[a].length>1){r[a]=[];for(let l in e.child[a])e.child[a].hasOwnProperty(l)&&r[a].push(Jg(e.child[a][l],t,a))}else{let l=Jg(e.child[a][0],t,a),c=t.arrayMode===!0&&typeof l=="object"||Si.isTagNameInArrayMode(a,t.arrayMode,n);r[a]=c?[l]:l}}return r};Gx.convertToJson=Jg});var Vx=p((Hve,Kx)=>{"use strict";Kx.exports=function(e,t,n){this.tagname=e,this.parent=t,this.child={},this.attrsMap={},this.val=n,this.addChild=function(r){Array.isArray(this.child[r.tagname])?this.child[r.tagname].push(r):this.child[r.tagname]=[r]}}});var qa=p(du=>{"use strict";var wi=kn(),W7=kn().buildOptions,lu=Vx(),Wve="<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,wi.nameRegexp);!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt);!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);var Hx={attributeNamePrefix:"@_",attrNodeName:!1,textNodeName:"#text",ignoreAttributes:!0,ignoreNameSpace:!1,allowBooleanAttributes:!1,parseNodeValue:!0,parseAttributeValue:!1,arrayMode:!1,trimValues:!0,cdataTagName:!1,cdataPositionChar:"\\c",tagValueProcessor:function(e,t){return e},attrValueProcessor:function(e,t){return e},stopNodes:[]};du.defaultOptions=Hx;var Wx=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","ignoreNameSpace","allowBooleanAttributes","parseNodeValue","parseAttributeValue","arrayMode","trimValues","cdataTagName","cdataPositionChar","tagValueProcessor","attrValueProcessor","parseTrueNumberOnly","stopNodes"];du.props=Wx;function cu(e,t,n){return t&&(n.trimValues&&(t=t.trim()),t=n.tagValueProcessor(t,e),t=Yx(t,n.parseNodeValue,n.parseTrueNumberOnly)),t}function Y7(e,t){if(t.ignoreNameSpace){let n=e.split(":"),r=e.charAt(0)==="/"?"/":"";if(n[0]==="xmlns")return"";n.length===2&&(e=r+n[1])}return e}function Yx(e,t,n){if(t&&typeof e=="string"){let r;return e.trim()===""||isNaN(e)?r=e==="true"?!0:e==="false"?!1:e:(e.indexOf("0x")!==-1?r=Number.parseInt(e,16):e.indexOf(".")!==-1?(r=Number.parseFloat(e),e=e.replace(/\.?0+$/,"")):r=Number.parseInt(e,10),n&&(r=String(r)===e?r:e)),r}else return wi.isExist(e)?e:""}var J7=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])(.*?)\\3)?`,"g");function Jx(e,t){if(!t.ignoreAttributes&&typeof e=="string"){e=e.replace(/\r?\n/g," ");let n=wi.getAllMatches(e,J7),r=n.length,i={};for(let s=0;s<r;s++){let a=Y7(n[s][1],t);a.length&&(n[s][4]!==void 0?(t.trimValues&&(n[s][4]=n[s][4].trim()),n[s][4]=t.attrValueProcessor(n[s][4],a),i[t.attributeNamePrefix+a]=Yx(n[s][4],t.parseAttributeValue,t.parseTrueNumberOnly)):t.allowBooleanAttributes&&(i[t.attributeNamePrefix+a]=!0))}if(!Object.keys(i).length)return;if(t.attrNodeName){let s={};return s[t.attrNodeName]=i,s}return i}}var Q7=function(e,t){e=e.replace(/\r\n?/g,`
22
- `),t=W7(t,Hx,Wx);let n=new lu("!xml"),r=n,i="";for(let s=0;s<e.length;s++)if(e[s]==="<")if(e[s+1]==="/"){let l=La(e,">",s,"Closing Tag is not closed."),c=e.substring(s+2,l).trim();if(t.ignoreNameSpace){let d=c.indexOf(":");d!==-1&&(c=c.substr(d+1))}r&&(r.val?r.val=wi.getValue(r.val)+""+cu(c,i,t):r.val=cu(c,i,t)),t.stopNodes.length&&t.stopNodes.includes(r.tagname)&&(r.child=[],r.attrsMap==null&&(r.attrsMap={}),r.val=e.substr(r.startIndex+1,s-r.startIndex-1)),r=r.parent,i="",s=l}else if(e[s+1]==="?")s=La(e,"?>",s,"Pi Tag is not closed.");else if(e.substr(s+1,3)==="!--")s=La(e,"-->",s,"Comment is not closed.");else if(e.substr(s+1,2)==="!D"){let l=La(e,">",s,"DOCTYPE is not closed.");e.substring(s,l).indexOf("[")>=0?s=e.indexOf("]>",s)+1:s=l}else if(e.substr(s+1,2)==="!["){let l=La(e,"]]>",s,"CDATA is not closed.")-2,c=e.substring(s+9,l);if(i&&(r.val=wi.getValue(r.val)+""+cu(r.tagname,i,t),i=""),t.cdataTagName){let d=new lu(t.cdataTagName,r,c);r.addChild(d),r.val=wi.getValue(r.val)+t.cdataPositionChar,c&&(d.val=c)}else r.val=(r.val||"")+(c||"");s=l+2}else{let l=X7(e,s+1),c=l.data,d=l.index,u=c.indexOf(" "),_=c,g=!0;if(u!==-1&&(_=c.substr(0,u).replace(/\s\s*$/,""),c=c.substr(u+1)),t.ignoreNameSpace){let b=_.indexOf(":");b!==-1&&(_=_.substr(b+1),g=_!==l.data.substr(b+1))}if(r&&i&&r.tagname!=="!xml"&&(r.val=wi.getValue(r.val)+""+cu(r.tagname,i,t)),c.length>0&&c.lastIndexOf("/")===c.length-1){_[_.length-1]==="/"?(_=_.substr(0,_.length-1),c=_):c=c.substr(0,c.length-1);let b=new lu(_,r,"");_!==c&&(b.attrsMap=Jx(c,t)),r.addChild(b)}else{let b=new lu(_,r);t.stopNodes.length&&t.stopNodes.includes(b.tagname)&&(b.startIndex=d),_!==c&&g&&(b.attrsMap=Jx(c,t)),r.addChild(b),r=b}i="",s=d}else i+=e[s];return n};function X7(e,t){let n,r="";for(let i=t;i<e.length;i++){let s=e[i];if(n)s===n&&(n="");else if(s==='"'||s==="'")n=s;else{if(s===">")return{data:r,index:i};s===" "&&(s=" ")}r+=s}}function La(e,t,n,r){let i=e.indexOf(t,n);if(i===-1)throw new Error(r);return i+t.length-1}du.getTraversalObj=Q7});var tI=p(eI=>{"use strict";var uu=kn(),Z7={allowBooleanAttributes:!1},e9=["allowBooleanAttributes"];eI.validate=function(e,t){t=uu.buildOptions(t,Z7,e9);let n=[],r=!1,i=!1;e[0]==="\uFEFF"&&(e=e.substr(1));for(let s=0;s<e.length;s++)if(e[s]==="<"&&e[s+1]==="?"){if(s+=2,s=Qx(e,s),s.err)return s}else if(e[s]==="<")if(s++,e[s]==="!"){s=Xx(e,s);continue}else{let a=!1;e[s]==="/"&&(a=!0,s++);let l="";for(;s<e.length&&e[s]!==">"&&e[s]!==" "&&e[s]!==" "&&e[s]!==`
23
- `&&e[s]!=="\r";s++)l+=e[s];if(l=l.trim(),l[l.length-1]==="/"&&(l=l.substring(0,l.length-1),s--),!l9(l)){let u;return l.trim().length===0?u="There is an unnecessary space between tag name and backward slash '</ ..'.":u="Tag '"+l+"' is an invalid name.",dt("InvalidTag",u,fn(e,s))}let c=r9(e,s);if(c===!1)return dt("InvalidAttr","Attributes for '"+l+"' have open quote.",fn(e,s));let d=c.value;if(s=c.index,d[d.length-1]==="/"){d=d.substring(0,d.length-1);let u=Zx(d,t);if(u===!0)r=!0;else return dt(u.err.code,u.err.msg,fn(e,s-d.length+u.err.line))}else if(a)if(c.tagClosed){if(d.trim().length>0)return dt("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",fn(e,s));{let u=n.pop();if(l!==u)return dt("InvalidTag","Closing tag '"+u+"' is expected inplace of '"+l+"'.",fn(e,s));n.length==0&&(i=!0)}}else return dt("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",fn(e,s));else{let u=Zx(d,t);if(u!==!0)return dt(u.err.code,u.err.msg,fn(e,s-d.length+u.err.line));if(i===!0)return dt("InvalidXml","Multiple possible root nodes found.",fn(e,s));n.push(l),r=!0}for(s++;s<e.length;s++)if(e[s]==="<")if(e[s+1]==="!"){s++,s=Xx(e,s);continue}else if(e[s+1]==="?"){if(s=Qx(e,++s),s.err)return s}else break;else if(e[s]==="&"){let u=a9(e,s);if(u==-1)return dt("InvalidChar","char '&' is not expected.",fn(e,s));s=u}e[s]==="<"&&s--}else{if(e[s]===" "||e[s]===" "||e[s]===`
24
- `||e[s]==="\r")continue;return dt("InvalidChar","char '"+e[s]+"' is not expected.",fn(e,s))}if(r){if(n.length>0)return dt("InvalidXml","Invalid '"+JSON.stringify(n,null,4).replace(/\r?\n/g,"")+"' found.",1)}else return dt("InvalidXml","Start tag expected.",1);return!0};function Qx(e,t){for(var n=t;t<e.length;t++)if(e[t]=="?"||e[t]==" "){var r=e.substr(n,t-n);if(t>5&&r==="xml")return dt("InvalidXml","XML declaration allowed only at the start of the document.",fn(e,t));if(e[t]=="?"&&e[t+1]==">"){t++;break}else continue}return t}function Xx(e,t){if(e.length>t+5&&e[t+1]==="-"&&e[t+2]==="-"){for(t+=3;t<e.length;t++)if(e[t]==="-"&&e[t+1]==="-"&&e[t+2]===">"){t+=2;break}}else if(e.length>t+8&&e[t+1]==="D"&&e[t+2]==="O"&&e[t+3]==="C"&&e[t+4]==="T"&&e[t+5]==="Y"&&e[t+6]==="P"&&e[t+7]==="E"){let n=1;for(t+=8;t<e.length;t++)if(e[t]==="<")n++;else if(e[t]===">"&&(n--,n===0))break}else if(e.length>t+9&&e[t+1]==="["&&e[t+2]==="C"&&e[t+3]==="D"&&e[t+4]==="A"&&e[t+5]==="T"&&e[t+6]==="A"&&e[t+7]==="["){for(t+=8;t<e.length;t++)if(e[t]==="]"&&e[t+1]==="]"&&e[t+2]===">"){t+=2;break}}return t}var t9='"',n9="'";function r9(e,t){let n="",r="",i=!1;for(;t<e.length;t++){if(e[t]===t9||e[t]===n9)if(r==="")r=e[t];else{if(r!==e[t])continue;r=""}else if(e[t]===">"&&r===""){i=!0;break}n+=e[t]}return r!==""?!1:{value:n,index:t,tagClosed:i}}var i9=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Zx(e,t){let n=uu.getAllMatches(e,i9),r={};for(let i=0;i<n.length;i++){if(n[i][1].length===0)return dt("InvalidAttr","Attribute '"+n[i][2]+"' has no space in starting.",mu(e,n[i][0]));if(n[i][3]===void 0&&!t.allowBooleanAttributes)return dt("InvalidAttr","boolean attribute '"+n[i][2]+"' is not allowed.",mu(e,n[i][0]));let s=n[i][2];if(!o9(s))return dt("InvalidAttr","Attribute '"+s+"' is an invalid name.",mu(e,n[i][0]));if(!r.hasOwnProperty(s))r[s]=1;else return dt("InvalidAttr","Attribute '"+s+"' is repeated.",mu(e,n[i][0]))}return!0}function s9(e,t){let n=/\d/;for(e[t]==="x"&&(t++,n=/[\da-fA-F]/);t<e.length;t++){if(e[t]===";")return t;if(!e[t].match(n))break}return-1}function a9(e,t){if(t++,e[t]===";")return-1;if(e[t]==="#")return t++,s9(e,t);let n=0;for(;t<e.length;t++,n++)if(!(e[t].match(/\w/)&&n<20)){if(e[t]===";")break;return-1}return t}function dt(e,t,n){return{err:{code:e,msg:t,line:n}}}function o9(e){return uu.isName(e)}function l9(e){return uu.isName(e)}function fn(e,t){var n=e.substring(0,t).split(/\r?\n/);return n.length}function mu(e,t){return e.indexOf(t)+t.length}});var sI=p(iI=>{"use strict";var jn=function(e){return String.fromCharCode(e)},Ke={nilChar:jn(176),missingChar:jn(201),nilPremitive:jn(175),missingPremitive:jn(200),emptyChar:jn(178),emptyValue:jn(177),boundryChar:jn(179),objStart:jn(198),arrStart:jn(204),arrayEnd:jn(185)},c9=[Ke.nilChar,Ke.nilPremitive,Ke.missingChar,Ke.missingPremitive,Ke.boundryChar,Ke.emptyChar,Ke.emptyValue,Ke.arrayEnd,Ke.objStart,Ke.arrStart],Ma=function(e,t,n){if(typeof t=="string")return e&&e[0]&&e[0].val!==void 0?Qg(e[0].val,t):Qg(e,t);{let r=d9(e);if(r===!0){let i="";if(Array.isArray(t)){i+=Ke.arrStart;let s=t[0],a=e.length;if(typeof s=="string")for(let l=0;l<a;l++){let c=Qg(e[l].val,s);i=Xg(i,c)}else for(let l=0;l<a;l++){let c=Ma(e[l],s,n);i=Xg(i,c)}i+=Ke.arrayEnd}else{i+=Ke.objStart;let s=Object.keys(t);Array.isArray(e)&&(e=e[0]);for(let a in s){let l=s[a],c;!n.ignoreAttributes&&e.attrsMap&&e.attrsMap[l]?c=Ma(e.attrsMap[l],t[l],n):l===n.textNodeName?c=Ma(e.val,t[l],n):c=Ma(e.child[l],t[l],n),i=Xg(i,c)}}return i}else return r}},Qg=function(e){switch(e){case void 0:return Ke.missingPremitive;case null:return Ke.nilPremitive;case"":return Ke.emptyValue;default:return e}},Xg=function(e,t){return!nI(t[0])&&!nI(e[e.length-1])&&(e+=Ke.boundryChar),e+t},nI=function(e){return c9.indexOf(e)!==-1};function d9(e){return e===void 0?Ke.missingChar:e===null?Ke.nilChar:e.child&&Object.keys(e.child).length===0&&(!e.attrsMap||Object.keys(e.attrsMap).length===0)?Ke.emptyChar:!0}var rI=qa(),u9=kn().buildOptions,m9=function(e,t,n){return n=u9(n,rI.defaultOptions,rI.props),Ma(e,t,n)};iI.convert2nimn=m9});var lI=p(oI=>{"use strict";var fu=kn(),f9=kn().buildOptions,aI=qa(),p9=function(e,t){return t=f9(t,aI.defaultOptions,aI.props),t.indentBy=t.indentBy||"",Zg(e,t,0)},Zg=function(e,t,n){let r="{",i=Object.keys(e.child);for(let l=0;l<i.length;l++){var s=i[l];if(e.child[s]&&e.child[s].length>1){r+='"'+s+'" : [ ';for(var a in e.child[s])r+=Zg(e.child[s][a],t)+" , ";r=r.substr(0,r.length-1)+" ] "}else r+='"'+s+'" : '+Zg(e.child[s][0],t)+" ,"}return fu.merge(r,e.attrsMap),fu.isEmptyObject(r)?fu.isExist(e.val)?e.val:"":(fu.isExist(e.val)&&(typeof e.val=="string"&&(e.val===""||e.val===t.cdataPositionChar)||(r+='"'+t.textNodeName+'" : '+_9(e.val))),r[r.length-1]===","&&(r=r.substr(0,r.length-2)),r+"}")};function _9(e){return e===!0||e===!1||!isNaN(e)?e:'"'+e+'"'}oI.convertToJsonString=p9});var mI=p((Zve,uI)=>{"use strict";var h9=kn().buildOptions,g9={attributeNamePrefix:"@_",attrNodeName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataTagName:!1,cdataPositionChar:"\\c",format:!1,indentBy:" ",supressEmptyNode:!1,tagValueProcessor:function(e){return e},attrValueProcessor:function(e){return e}},y9=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","cdataTagName","cdataPositionChar","format","indentBy","supressEmptyNode","tagValueProcessor","attrValueProcessor"];function ey(e){this.options=h9(e,g9,y9),this.options.ignoreAttributes||this.options.attrNodeName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=A9),this.options.cdataTagName?this.isCDATA=C9:this.isCDATA=function(){return!1},this.replaceCDATAstr=v9,this.replaceCDATAarr=b9,this.options.format?(this.indentate=E9,this.tagEndChar=`>
19
+ ${r}
20
+ ${(0,Gf.toHex)(s)}`}getCanonicalPath({path:t}){if(this.uriEscapePath){let r=[];for(let s of t.split("/"))(s==null?void 0:s.length)!==0&&s!=="."&&(s===".."?r.pop():r.push(s));let n=`${t!=null&&t.startsWith("/")?"/":""}${r.join("/")}${r.length>0&&(t==null?void 0:t.endsWith("/"))?"/":""}`;return encodeURIComponent(n).replace(/%2F/g,"/")}return t}async getSignature(t,r,n,i){let s=await this.createStringToSign(t,r,i),a=new this.sha256(await n);return a.update(s),(0,Gf.toHex)(await a.digest())}getSigningKey(t,r,n,i){return(0,$f.getSigningKey)(this.sha256,t,n,r,i||this.service)}};Kf.SignatureV4=hE;var Vf=e=>{let t=(0,bee.iso8601)(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.slice(0,8)}},VN=e=>Object.keys(e).sort().join(";")});var WN=m(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.prepareRequest=Nt.moveHeadersToQuery=Nt.getPayloadHash=Nt.getCanonicalQuery=Nt.getCanonicalHeaders=void 0;var HN=$();HN.__exportStar(KN(),Nt);var Aee=oE();Object.defineProperty(Nt,"getCanonicalHeaders",{enumerable:!0,get:function(){return Aee.getCanonicalHeaders}});var Tee=lE();Object.defineProperty(Nt,"getCanonicalQuery",{enumerable:!0,get:function(){return Tee.getCanonicalQuery}});var Cee=uE();Object.defineProperty(Nt,"getPayloadHash",{enumerable:!0,get:function(){return Cee.getPayloadHash}});var xee=mE();Object.defineProperty(Nt,"moveHeadersToQuery",{enumerable:!0,get:function(){return xee.moveHeadersToQuery}});var Iee=pE();Object.defineProperty(Nt,"prepareRequest",{enumerable:!0,get:function(){return Iee.prepareRequest}});HN.__exportStar(iE(),Nt)});var QN=m(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});ks.resolveSigV4AuthConfig=ks.resolveAwsAuthConfig=void 0;var Ree=Ee(),JN=WN(),Nee=3e5,Pee=e=>{let t=e.credentials?YN(e.credentials):e.credentialDefaultProvider(e),{signingEscapePath:r=!0,systemClockOffset:n=e.systemClockOffset||0,sha256:i}=e,s;return e.signer?s=Ja(e.signer):s=()=>Ja(e.region)().then(async a=>[await e.regionInfoProvider(a,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},a]).then(([a,c])=>{let{signingRegion:l,signingService:u}=a;e.signingRegion=e.signingRegion||l||c,e.signingName=e.signingName||u||e.serviceId;let f=y(o({},e),{credentials:t,region:e.signingRegion,service:e.signingName,sha256:i,uriEscapePath:r}),_=e.signerConstructor||JN.SignatureV4;return new _(f)}),y(o({},e),{systemClockOffset:n,signingEscapePath:r,credentials:t,signer:s})};ks.resolveAwsAuthConfig=Pee;var Dee=e=>{let t=e.credentials?YN(e.credentials):e.credentialDefaultProvider(e),{signingEscapePath:r=!0,systemClockOffset:n=e.systemClockOffset||0,sha256:i}=e,s;return e.signer?s=Ja(e.signer):s=Ja(new JN.SignatureV4({credentials:t,region:e.region,service:e.signingName,sha256:i,uriEscapePath:r})),y(o({},e),{systemClockOffset:n,signingEscapePath:r,credentials:t,signer:s})};ks.resolveSigV4AuthConfig=Dee;var Ja=e=>{if(typeof e=="object"){let t=Promise.resolve(e);return()=>t}return e},YN=e=>typeof e=="function"?(0,Ree.memoize)(e,t=>t.expiration!==void 0&&t.expiration.getTime()-Date.now()<Nee,t=>t.expiration!==void 0):Ja(e)});var yE=m(Hf=>{"use strict";Object.defineProperty(Hf,"__esModule",{value:!0});Hf.getSkewCorrectedDate=void 0;var Oee=e=>new Date(Date.now()+e);Hf.getSkewCorrectedDate=Oee});var XN=m(Wf=>{"use strict";Object.defineProperty(Wf,"__esModule",{value:!0});Wf.isClockSkewed=void 0;var Lee=yE(),qee=(e,t)=>Math.abs((0,Lee.getSkewCorrectedDate)(t).getTime()-e)>=3e5;Wf.isClockSkewed=qee});var ZN=m(Jf=>{"use strict";Object.defineProperty(Jf,"__esModule",{value:!0});Jf.getUpdatedSystemClockOffset=void 0;var Mee=XN(),zee=(e,t)=>{let r=Date.parse(e);return(0,Mee.isClockSkewed)(r,t)?r-Date.now():t};Jf.getUpdatedSystemClockOffset=zee});var nP=m(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.getSigV4AuthPlugin=Vt.getAwsAuthPlugin=Vt.awsAuthMiddlewareOptions=Vt.awsAuthMiddleware=void 0;var rP=It(),jee=yE(),eP=ZN(),kee=e=>(t,r)=>async function(n){if(!rP.HttpRequest.isInstance(n.request))return t(n);let i=await e.signer(),s=await t(y(o({},n),{request:await i.sign(n.request,{signingDate:(0,jee.getSkewCorrectedDate)(e.systemClockOffset),signingRegion:r.signing_region,signingService:r.signing_service})})).catch(c=>{var l;let u=(l=c.ServerTime)!==null&&l!==void 0?l:tP(c.$response);throw u&&(e.systemClockOffset=(0,eP.getUpdatedSystemClockOffset)(u,e.systemClockOffset)),c}),a=tP(s.response);return a&&(e.systemClockOffset=(0,eP.getUpdatedSystemClockOffset)(a,e.systemClockOffset)),s};Vt.awsAuthMiddleware=kee;var tP=e=>{var t,r,n;return rP.HttpResponse.isInstance(e)?(r=(t=e.headers)===null||t===void 0?void 0:t.date)!==null&&r!==void 0?r:(n=e.headers)===null||n===void 0?void 0:n.Date:void 0};Vt.awsAuthMiddlewareOptions={name:"awsAuthMiddleware",tags:["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware",override:!0};var Fee=e=>({applyToStack:t=>{t.addRelativeTo((0,Vt.awsAuthMiddleware)(e),Vt.awsAuthMiddlewareOptions)}});Vt.getAwsAuthPlugin=Fee;Vt.getSigV4AuthPlugin=Vt.getAwsAuthPlugin});var yn=m(Yf=>{"use strict";Object.defineProperty(Yf,"__esModule",{value:!0});var iP=$();iP.__exportStar(QN(),Yf);iP.__exportStar(nP(),Yf)});var sP=m(Qf=>{"use strict";Object.defineProperty(Qf,"__esModule",{value:!0});Qf.resolveUserAgentConfig=void 0;function Uee(e){return y(o({},e),{customUserAgent:typeof e.customUserAgent=="string"?[[e.customUserAgent]]:e.customUserAgent})}Qf.resolveUserAgentConfig=Uee});var oP=m(Nr=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});Nr.UA_ESCAPE_REGEX=Nr.SPACE=Nr.X_AMZ_USER_AGENT=Nr.USER_AGENT=void 0;Nr.USER_AGENT="user-agent";Nr.X_AMZ_USER_AGENT="x-amz-user-agent";Nr.SPACE=" ";Nr.UA_ESCAPE_REGEX=/[^\!\#\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g});var aP=m(Pr=>{"use strict";Object.defineProperty(Pr,"__esModule",{value:!0});Pr.getUserAgentPlugin=Pr.getUserAgentMiddlewareOptions=Pr.userAgentMiddleware=void 0;var Bee=It(),Qn=oP(),Gee=e=>(t,r)=>async n=>{var i,s;let{request:a}=n;if(!Bee.HttpRequest.isInstance(a))return t(n);let{headers:c}=a,l=((i=r==null?void 0:r.userAgent)===null||i===void 0?void 0:i.map(gE))||[],u=(await e.defaultUserAgentProvider()).map(gE),f=((s=e==null?void 0:e.customUserAgent)===null||s===void 0?void 0:s.map(gE))||[],_=[...u,...l,...f].join(Qn.SPACE),h=[...u.filter(v=>v.startsWith("aws-sdk-")),...f].join(Qn.SPACE);return e.runtime!=="browser"?(h&&(c[Qn.X_AMZ_USER_AGENT]=c[Qn.X_AMZ_USER_AGENT]?`${c[Qn.USER_AGENT]} ${h}`:h),c[Qn.USER_AGENT]=_):c[Qn.X_AMZ_USER_AGENT]=_,t(y(o({},n),{request:a}))};Pr.userAgentMiddleware=Gee;var gE=([e,t])=>{let r=e.indexOf("/"),n=e.substring(0,r),i=e.substring(r+1);return n==="api"&&(i=i.toLowerCase()),[n,i,t].filter(s=>s&&s.length>0).map(s=>s==null?void 0:s.replace(Qn.UA_ESCAPE_REGEX,"_")).join("/")};Pr.getUserAgentMiddlewareOptions={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0};var $ee=e=>({applyToStack:t=>{t.add((0,Pr.userAgentMiddleware)(e),Pr.getUserAgentMiddlewareOptions)}});Pr.getUserAgentPlugin=$ee});var Ya=m(Xf=>{"use strict";Object.defineProperty(Xf,"__esModule",{value:!0});var cP=$();cP.__exportStar(sP(),Xf);cP.__exportStar(aP(),Xf)});var lP=m((n1e,Vee)=>{Vee.exports={name:"@aws-sdk/client-dynamodb",description:"AWS SDK for JavaScript Dynamodb 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-endpoint-discovery":"3.80.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",uuid:"^8.3.2"},devDependencies:{"@aws-sdk/service-client-documentation-generator":"3.58.0","@tsconfig/recommended":"1.0.1","@types/node":"^12.7.5","@types/uuid":"^8.3.0",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-dynamodb",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-dynamodb"}}});var em=m(Zf=>{"use strict";Object.defineProperty(Zf,"__esModule",{value:!0});Zf.STSServiceException=void 0;var Kee=P(),Qa=class extends Kee.ServiceException{constructor(t){super(t),Object.setPrototypeOf(this,Qa.prototype)}};Zf.STSServiceException=Qa});var lr=m(M=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0});M.GetSessionTokenResponse=M.GetSessionTokenRequest=M.GetFederationTokenResponse=M.FederatedUser=M.GetFederationTokenRequest=M.GetCallerIdentityResponse=M.GetCallerIdentityRequest=M.GetAccessKeyInfoResponse=M.GetAccessKeyInfoRequest=M.InvalidAuthorizationMessageException=M.DecodeAuthorizationMessageResponse=M.DecodeAuthorizationMessageRequest=M.IDPCommunicationErrorException=M.AssumeRoleWithWebIdentityResponse=M.AssumeRoleWithWebIdentityRequest=M.InvalidIdentityTokenException=M.IDPRejectedClaimException=M.AssumeRoleWithSAMLResponse=M.AssumeRoleWithSAMLRequest=M.RegionDisabledException=M.PackedPolicyTooLargeException=M.MalformedPolicyDocumentException=M.ExpiredTokenException=M.AssumeRoleResponse=M.Credentials=M.AssumeRoleRequest=M.Tag=M.PolicyDescriptorType=M.AssumedRoleUser=void 0;var Xn=em(),Hee;(function(e){e.filterSensitiveLog=t=>o({},t)})(Hee=M.AssumedRoleUser||(M.AssumedRoleUser={}));var Wee;(function(e){e.filterSensitiveLog=t=>o({},t)})(Wee=M.PolicyDescriptorType||(M.PolicyDescriptorType={}));var Jee;(function(e){e.filterSensitiveLog=t=>o({},t)})(Jee=M.Tag||(M.Tag={}));var Yee;(function(e){e.filterSensitiveLog=t=>o({},t)})(Yee=M.AssumeRoleRequest||(M.AssumeRoleRequest={}));var Qee;(function(e){e.filterSensitiveLog=t=>o({},t)})(Qee=M.Credentials||(M.Credentials={}));var Xee;(function(e){e.filterSensitiveLog=t=>o({},t)})(Xee=M.AssumeRoleResponse||(M.AssumeRoleResponse={}));var Xa=class extends Xn.STSServiceException{constructor(t){super(o({name:"ExpiredTokenException",$fault:"client"},t)),this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,Xa.prototype)}};M.ExpiredTokenException=Xa;var Za=class extends Xn.STSServiceException{constructor(t){super(o({name:"MalformedPolicyDocumentException",$fault:"client"},t)),this.name="MalformedPolicyDocumentException",this.$fault="client",Object.setPrototypeOf(this,Za.prototype)}};M.MalformedPolicyDocumentException=Za;var ec=class extends Xn.STSServiceException{constructor(t){super(o({name:"PackedPolicyTooLargeException",$fault:"client"},t)),this.name="PackedPolicyTooLargeException",this.$fault="client",Object.setPrototypeOf(this,ec.prototype)}};M.PackedPolicyTooLargeException=ec;var tc=class extends Xn.STSServiceException{constructor(t){super(o({name:"RegionDisabledException",$fault:"client"},t)),this.name="RegionDisabledException",this.$fault="client",Object.setPrototypeOf(this,tc.prototype)}};M.RegionDisabledException=tc;var Zee;(function(e){e.filterSensitiveLog=t=>o({},t)})(Zee=M.AssumeRoleWithSAMLRequest||(M.AssumeRoleWithSAMLRequest={}));var ete;(function(e){e.filterSensitiveLog=t=>o({},t)})(ete=M.AssumeRoleWithSAMLResponse||(M.AssumeRoleWithSAMLResponse={}));var rc=class extends Xn.STSServiceException{constructor(t){super(o({name:"IDPRejectedClaimException",$fault:"client"},t)),this.name="IDPRejectedClaimException",this.$fault="client",Object.setPrototypeOf(this,rc.prototype)}};M.IDPRejectedClaimException=rc;var nc=class extends Xn.STSServiceException{constructor(t){super(o({name:"InvalidIdentityTokenException",$fault:"client"},t)),this.name="InvalidIdentityTokenException",this.$fault="client",Object.setPrototypeOf(this,nc.prototype)}};M.InvalidIdentityTokenException=nc;var tte;(function(e){e.filterSensitiveLog=t=>o({},t)})(tte=M.AssumeRoleWithWebIdentityRequest||(M.AssumeRoleWithWebIdentityRequest={}));var rte;(function(e){e.filterSensitiveLog=t=>o({},t)})(rte=M.AssumeRoleWithWebIdentityResponse||(M.AssumeRoleWithWebIdentityResponse={}));var ic=class extends Xn.STSServiceException{constructor(t){super(o({name:"IDPCommunicationErrorException",$fault:"client"},t)),this.name="IDPCommunicationErrorException",this.$fault="client",Object.setPrototypeOf(this,ic.prototype)}};M.IDPCommunicationErrorException=ic;var nte;(function(e){e.filterSensitiveLog=t=>o({},t)})(nte=M.DecodeAuthorizationMessageRequest||(M.DecodeAuthorizationMessageRequest={}));var ite;(function(e){e.filterSensitiveLog=t=>o({},t)})(ite=M.DecodeAuthorizationMessageResponse||(M.DecodeAuthorizationMessageResponse={}));var sc=class extends Xn.STSServiceException{constructor(t){super(o({name:"InvalidAuthorizationMessageException",$fault:"client"},t)),this.name="InvalidAuthorizationMessageException",this.$fault="client",Object.setPrototypeOf(this,sc.prototype)}};M.InvalidAuthorizationMessageException=sc;var ste;(function(e){e.filterSensitiveLog=t=>o({},t)})(ste=M.GetAccessKeyInfoRequest||(M.GetAccessKeyInfoRequest={}));var ote;(function(e){e.filterSensitiveLog=t=>o({},t)})(ote=M.GetAccessKeyInfoResponse||(M.GetAccessKeyInfoResponse={}));var ate;(function(e){e.filterSensitiveLog=t=>o({},t)})(ate=M.GetCallerIdentityRequest||(M.GetCallerIdentityRequest={}));var cte;(function(e){e.filterSensitiveLog=t=>o({},t)})(cte=M.GetCallerIdentityResponse||(M.GetCallerIdentityResponse={}));var lte;(function(e){e.filterSensitiveLog=t=>o({},t)})(lte=M.GetFederationTokenRequest||(M.GetFederationTokenRequest={}));var dte;(function(e){e.filterSensitiveLog=t=>o({},t)})(dte=M.FederatedUser||(M.FederatedUser={}));var ute;(function(e){e.filterSensitiveLog=t=>o({},t)})(ute=M.GetFederationTokenResponse||(M.GetFederationTokenResponse={}));var fte;(function(e){e.filterSensitiveLog=t=>o({},t)})(fte=M.GetSessionTokenRequest||(M.GetSessionTokenRequest={}));var mte;(function(e){e.filterSensitiveLog=t=>o({},t)})(mte=M.GetSessionTokenResponse||(M.GetSessionTokenResponse={}))});var vE=m((o1e,pte)=>{pte.exports={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25CB",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cup:"\u222A",Cup:"\u22D3",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21A1",dArr:"\u21D3",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21CA",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21D3",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21BD",DownRightTeeVector:"\u295F",DownRightVectorBar:"\u2957",DownRightVector:"\u21C1",DownTeeArrow:"\u21A7",DownTee:"\u22A4",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",Ecirc:"\xCA",ecirc:"\xEA",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",Fscr:"\u2131",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",gescc:"\u2AA9",ges:"\u2A7E",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2AA5",gl:"\u2277",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gt:">",GT:">",Gt:"\u226B",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",harrcir:"\u2948",harr:"\u2194",hArr:"\u21D4",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1D4BD}",Hscr:"\u210B",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",Ifr:"\u2111",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",incare:"\u2105",in:"\u2208",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",intcal:"\u22BA",int:"\u222B",Int:"\u222C",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larrb:"\u21E4",larrbfs:"\u291F",larr:"\u2190",Larr:"\u219E",lArr:"\u21D0",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",latail:"\u2919",lAtail:"\u291B",lat:"\u2AAB",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",LeftArrowBar:"\u21E4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21D0",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21C3",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTeeArrow:"\u21A4",LeftTee:"\u22A3",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangleBar:"\u29CF",LeftTriangle:"\u22B2",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21BF",LeftVectorBar:"\u2952",LeftVector:"\u21BC",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",lescc:"\u2AA8",les:"\u2A7D",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21C7",ll:"\u226A",Ll:"\u22D8",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoustache:"\u23B0",lmoust:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftrightarrow:"\u27F7",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longmapsto:"\u27FC",longrightarrow:"\u27F6",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",lt:"<",LT:"<",Lt:"\u226A",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midast:"*",midcir:"\u2AF0",mid:"\u2223",middot:"\xB7",minusb:"\u229F",minus:"\u2212",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",Mscr:"\u2133",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266E",naturals:"\u2115",natur:"\u266E",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
21
+ `,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",orarr:"\u21BB",Or:"\u2A54",or:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",otimesas:"\u2A36",Otimes:"\u2A37",otimes:"\u2297",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",para:"\xB6",parallel:"\u2225",par:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plus:"+",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",popf:"\u{1D561}",Popf:"\u2119",pound:"\xA3",prap:"\u2AB7",Pr:"\u2ABB",pr:"\u227A",prcue:"\u227C",precapprox:"\u2AB7",prec:"\u227A",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",pre:"\u2AAF",prE:"\u2AB3",precsim:"\u227E",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportional:"\u221D",Proportion:"\u2237",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",Qopf:"\u211A",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',QUOT:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",Rang:"\u27EB",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21A0",rArr:"\u21D2",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",rAtail:"\u291C",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rBarr:"\u290F",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",Re:"\u211C",rect:"\u25AD",reg:"\xAE",REG:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",Rfr:"\u211C",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrowBar:"\u21E5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21D2",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVectorBar:"\u2955",RightDownVector:"\u21C2",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTeeArrow:"\u21A6",RightTee:"\u22A2",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangleBar:"\u29D0",RightTriangle:"\u22B3",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVectorBar:"\u2954",RightUpVector:"\u21BE",RightVectorBar:"\u2953",RightVector:"\u21C0",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoustache:"\u23B1",rmoust:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",Ropf:"\u211D",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",rscr:"\u{1D4C7}",Rscr:"\u211B",rsh:"\u21B1",Rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",Sc:"\u2ABC",sc:"\u227B",sccue:"\u227D",sce:"\u2AB0",scE:"\u2AB4",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdotb:"\u22A1",sdot:"\u22C5",sdote:"\u2A66",searhk:"\u2925",searr:"\u2198",seArr:"\u21D8",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",solbar:"\u233F",solb:"\u29C4",sol:"/",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25A1",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squ:"\u25A1",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",Sub:"\u22D0",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",Subset:"\u22D0",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succapprox:"\u2AB8",succ:"\u227B",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",sum:"\u2211",Sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",Sup:"\u22D1",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",Supset:"\u22D1",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21D9",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",tilde:"\u02DC",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2A31",timesb:"\u22A0",times:"\xD7",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",topbot:"\u2336",topcir:"\u2AF1",top:"\u22A4",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",uarr:"\u2191",Uarr:"\u219F",uArr:"\u21D1",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21D1",UpArrowDownArrow:"\u21C5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21D5",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTeeArrow:"\u21A5",UpTee:"\u22A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",vArr:"\u21D5",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vBar:"\u2AE8",Vbar:"\u2AEB",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22A2",vDash:"\u22A8",Vdash:"\u22A9",VDash:"\u22AB",Vdashl:"\u2AE6",veebar:"\u22BB",vee:"\u2228",Vee:"\u22C1",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",Wedge:"\u22C0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xharr:"\u27F7",xhArr:"\u27FA",Xi:"\u039E",xi:"\u03BE",xlarr:"\u27F5",xlArr:"\u27F8",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrarr:"\u27F6",xrArr:"\u27F9",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",yuml:"\xFF",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",zfr:"\u{1D537}",Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",Zopf:"\u2124",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}});var dP=m((a1e,_te)=>{_te.exports={Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",AElig:"\xC6",aelig:"\xE6",Agrave:"\xC0",agrave:"\xE0",amp:"&",AMP:"&",Aring:"\xC5",aring:"\xE5",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",brvbar:"\xA6",Ccedil:"\xC7",ccedil:"\xE7",cedil:"\xB8",cent:"\xA2",copy:"\xA9",COPY:"\xA9",curren:"\xA4",deg:"\xB0",divide:"\xF7",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Egrave:"\xC8",egrave:"\xE8",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE",gt:">",GT:">",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",iexcl:"\xA1",Igrave:"\xCC",igrave:"\xEC",iquest:"\xBF",Iuml:"\xCF",iuml:"\xEF",laquo:"\xAB",lt:"<",LT:"<",macr:"\xAF",micro:"\xB5",middot:"\xB7",nbsp:"\xA0",not:"\xAC",Ntilde:"\xD1",ntilde:"\xF1",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Ograve:"\xD2",ograve:"\xF2",ordf:"\xAA",ordm:"\xBA",Oslash:"\xD8",oslash:"\xF8",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",para:"\xB6",plusmn:"\xB1",pound:"\xA3",quot:'"',QUOT:'"',raquo:"\xBB",reg:"\xAE",REG:"\xAE",sect:"\xA7",shy:"\xAD",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",szlig:"\xDF",THORN:"\xDE",thorn:"\xFE",times:"\xD7",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Ugrave:"\xD9",ugrave:"\xF9",uml:"\xA8",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",yen:"\xA5",yuml:"\xFF"}});var SE=m((c1e,hte)=>{hte.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}});var uP=m((l1e,yte)=>{yte.exports={"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}});var mP=m(oc=>{"use strict";var gte=oc&&oc.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(oc,"__esModule",{value:!0});var fP=gte(uP()),vte=String.fromCodePoint||function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function Ste(e){return e>=55296&&e<=57343||e>1114111?"\uFFFD":(e in fP.default&&(e=fP.default[e]),vte(e))}oc.default=Ste});var EE=m(Dr=>{"use strict";var tm=Dr&&Dr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Dr,"__esModule",{value:!0});Dr.decodeHTML=Dr.decodeHTMLStrict=Dr.decodeXML=void 0;var wE=tm(vE()),wte=tm(dP()),Ete=tm(SE()),pP=tm(mP()),bte=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;Dr.decodeXML=hP(Ete.default);Dr.decodeHTMLStrict=hP(wE.default);function hP(e){var t=yP(e);return function(r){return String(r).replace(bte,t)}}var _P=function(e,t){return e<t?1:-1};Dr.decodeHTML=function(){for(var e=Object.keys(wte.default).sort(_P),t=Object.keys(wE.default).sort(_P),r=0,n=0;r<t.length;r++)e[n]===t[r]?(t[r]+=";?",n++):t[r]+=";";var i=new RegExp("&(?:"+t.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),s=yP(wE.default);function a(c){return c.substr(-1)!==";"&&(c+=";"),s(c)}return function(c){return String(c).replace(i,a)}}();function yP(e){return function(r){if(r.charAt(1)==="#"){var n=r.charAt(2);return n==="X"||n==="x"?pP.default(parseInt(r.substr(3),16)):pP.default(parseInt(r.substr(2),10))}return e[r.slice(1,-1)]||r}}});var AE=m(Pt=>{"use strict";var gP=Pt&&Pt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Pt,"__esModule",{value:!0});Pt.escapeUTF8=Pt.escape=Pt.encodeNonAsciiHTML=Pt.encodeHTML=Pt.encodeXML=void 0;var Ate=gP(SE()),vP=wP(Ate.default),SP=EP(vP);Pt.encodeXML=TP(vP);var Tte=gP(vE()),bE=wP(Tte.default),Cte=EP(bE);Pt.encodeHTML=Ite(bE,Cte);Pt.encodeNonAsciiHTML=TP(bE);function wP(e){return Object.keys(e).sort().reduce(function(t,r){return t[e[r]]="&"+r+";",t},{})}function EP(e){for(var t=[],r=[],n=0,i=Object.keys(e);n<i.length;n++){var s=i[n];s.length===1?t.push("\\"+s):r.push(s)}t.sort();for(var a=0;a<t.length-1;a++){for(var c=a;c<t.length-1&&t[c].charCodeAt(1)+1===t[c+1].charCodeAt(1);)c+=1;var l=1+c-a;l<3||t.splice(a,l,t[a]+"-"+t[c])}return r.unshift("["+t.join("")+"]"),new RegExp(r.join("|"),"g")}var bP=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,xte=String.prototype.codePointAt!=null?function(e){return e.codePointAt(0)}:function(e){return(e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536};function rm(e){return"&#x"+(e.length>1?xte(e):e.charCodeAt(0)).toString(16).toUpperCase()+";"}function Ite(e,t){return function(r){return r.replace(t,function(n){return e[n]}).replace(bP,rm)}}var AP=new RegExp(SP.source+"|"+bP.source,"g");function Rte(e){return e.replace(AP,rm)}Pt.escape=Rte;function Nte(e){return e.replace(SP,rm)}Pt.escapeUTF8=Nte;function TP(e){return function(t){return t.replace(AP,function(r){return e[r]||rm(r)})}}});var xP=m(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});me.decodeXMLStrict=me.decodeHTML5Strict=me.decodeHTML4Strict=me.decodeHTML5=me.decodeHTML4=me.decodeHTMLStrict=me.decodeHTML=me.decodeXML=me.encodeHTML5=me.encodeHTML4=me.escapeUTF8=me.escape=me.encodeNonAsciiHTML=me.encodeHTML=me.encodeXML=me.encode=me.decodeStrict=me.decode=void 0;var nm=EE(),CP=AE();function Pte(e,t){return(!t||t<=0?nm.decodeXML:nm.decodeHTML)(e)}me.decode=Pte;function Dte(e,t){return(!t||t<=0?nm.decodeXML:nm.decodeHTMLStrict)(e)}me.decodeStrict=Dte;function Ote(e,t){return(!t||t<=0?CP.encodeXML:CP.encodeHTML)(e)}me.encode=Ote;var zi=AE();Object.defineProperty(me,"encodeXML",{enumerable:!0,get:function(){return zi.encodeXML}});Object.defineProperty(me,"encodeHTML",{enumerable:!0,get:function(){return zi.encodeHTML}});Object.defineProperty(me,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return zi.encodeNonAsciiHTML}});Object.defineProperty(me,"escape",{enumerable:!0,get:function(){return zi.escape}});Object.defineProperty(me,"escapeUTF8",{enumerable:!0,get:function(){return zi.escapeUTF8}});Object.defineProperty(me,"encodeHTML4",{enumerable:!0,get:function(){return zi.encodeHTML}});Object.defineProperty(me,"encodeHTML5",{enumerable:!0,get:function(){return zi.encodeHTML}});var Zn=EE();Object.defineProperty(me,"decodeXML",{enumerable:!0,get:function(){return Zn.decodeXML}});Object.defineProperty(me,"decodeHTML",{enumerable:!0,get:function(){return Zn.decodeHTML}});Object.defineProperty(me,"decodeHTMLStrict",{enumerable:!0,get:function(){return Zn.decodeHTMLStrict}});Object.defineProperty(me,"decodeHTML4",{enumerable:!0,get:function(){return Zn.decodeHTML}});Object.defineProperty(me,"decodeHTML5",{enumerable:!0,get:function(){return Zn.decodeHTML}});Object.defineProperty(me,"decodeHTML4Strict",{enumerable:!0,get:function(){return Zn.decodeHTMLStrict}});Object.defineProperty(me,"decodeHTML5Strict",{enumerable:!0,get:function(){return Zn.decodeHTMLStrict}});Object.defineProperty(me,"decodeXMLStrict",{enumerable:!0,get:function(){return Zn.decodeXML}})});var Or=m(dr=>{"use strict";var IP=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",Lte=IP+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",RP="["+IP+"]["+Lte+"]*",qte=new RegExp("^"+RP+"$"),Mte=function(e,t){let r=[],n=t.exec(e);for(;n;){let i=[],s=n.length;for(let a=0;a<s;a++)i.push(n[a]);r.push(i),n=t.exec(e)}return r},zte=function(e){let t=qte.exec(e);return!(t===null||typeof t>"u")};dr.isExist=function(e){return typeof e<"u"};dr.isEmptyObject=function(e){return Object.keys(e).length===0};dr.merge=function(e,t,r){if(t){let n=Object.keys(t),i=n.length;for(let s=0;s<i;s++)r==="strict"?e[n[s]]=[t[n[s]]]:e[n[s]]=t[n[s]]}};dr.getValue=function(e){return dr.isExist(e)?e:""};dr.buildOptions=function(e,t,r){var n={};if(!e)return t;for(let i=0;i<r.length;i++)e[r[i]]!==void 0?n[r[i]]=e[r[i]]:n[r[i]]=t[r[i]];return n};dr.isTagNameInArrayMode=function(e,t,r){return t===!1?!1:t instanceof RegExp?t.test(e):typeof t=="function"?!!t(e,r):t==="strict"};dr.isName=zte;dr.getAllMatches=Mte;dr.nameRegexp=RP});var PP=m(NP=>{"use strict";var ji=Or(),TE=function(e,t,r){let n={};if((!e.child||ji.isEmptyObject(e.child))&&(!e.attrsMap||ji.isEmptyObject(e.attrsMap)))return ji.isExist(e.val)?e.val:"";if(ji.isExist(e.val)&&!(typeof e.val=="string"&&(e.val===""||e.val===t.cdataPositionChar))){let s=ji.isTagNameInArrayMode(e.tagname,t.arrayMode,r);n[t.textNodeName]=s?[e.val]:e.val}ji.merge(n,e.attrsMap,t.arrayMode);let i=Object.keys(e.child);for(let s=0;s<i.length;s++){let a=i[s];if(e.child[a]&&e.child[a].length>1){n[a]=[];for(let c in e.child[a])e.child[a].hasOwnProperty(c)&&n[a].push(TE(e.child[a][c],t,a))}else{let c=TE(e.child[a][0],t,a),l=t.arrayMode===!0&&typeof c=="object"||ji.isTagNameInArrayMode(a,t.arrayMode,r);n[a]=l?[c]:c}}return n};NP.convertToJson=TE});var OP=m((h1e,DP)=>{"use strict";DP.exports=function(e,t,r){this.tagname=e,this.parent=t,this.child={},this.attrsMap={},this.val=r,this.addChild=function(n){Array.isArray(this.child[n.tagname])?this.child[n.tagname].push(n):this.child[n.tagname]=[n]}}});var cc=m(om=>{"use strict";var ki=Or(),jte=Or().buildOptions,im=OP(),y1e="<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,ki.nameRegexp);!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt);!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);var qP={attributeNamePrefix:"@_",attrNodeName:!1,textNodeName:"#text",ignoreAttributes:!0,ignoreNameSpace:!1,allowBooleanAttributes:!1,parseNodeValue:!0,parseAttributeValue:!1,arrayMode:!1,trimValues:!0,cdataTagName:!1,cdataPositionChar:"\\c",tagValueProcessor:function(e,t){return e},attrValueProcessor:function(e,t){return e},stopNodes:[]};om.defaultOptions=qP;var MP=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","ignoreNameSpace","allowBooleanAttributes","parseNodeValue","parseAttributeValue","arrayMode","trimValues","cdataTagName","cdataPositionChar","tagValueProcessor","attrValueProcessor","parseTrueNumberOnly","stopNodes"];om.props=MP;function sm(e,t,r){return t&&(r.trimValues&&(t=t.trim()),t=r.tagValueProcessor(t,e),t=zP(t,r.parseNodeValue,r.parseTrueNumberOnly)),t}function kte(e,t){if(t.ignoreNameSpace){let r=e.split(":"),n=e.charAt(0)==="/"?"/":"";if(r[0]==="xmlns")return"";r.length===2&&(e=n+r[1])}return e}function zP(e,t,r){if(t&&typeof e=="string"){let n;return e.trim()===""||isNaN(e)?n=e==="true"?!0:e==="false"?!1:e:(e.indexOf("0x")!==-1?n=Number.parseInt(e,16):e.indexOf(".")!==-1?(n=Number.parseFloat(e),e=e.replace(/\.?0+$/,"")):n=Number.parseInt(e,10),r&&(n=String(n)===e?n:e)),n}else return ki.isExist(e)?e:""}var Fte=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])(.*?)\\3)?`,"g");function LP(e,t){if(!t.ignoreAttributes&&typeof e=="string"){e=e.replace(/\r?\n/g," ");let r=ki.getAllMatches(e,Fte),n=r.length,i={};for(let s=0;s<n;s++){let a=kte(r[s][1],t);a.length&&(r[s][4]!==void 0?(t.trimValues&&(r[s][4]=r[s][4].trim()),r[s][4]=t.attrValueProcessor(r[s][4],a),i[t.attributeNamePrefix+a]=zP(r[s][4],t.parseAttributeValue,t.parseTrueNumberOnly)):t.allowBooleanAttributes&&(i[t.attributeNamePrefix+a]=!0))}if(!Object.keys(i).length)return;if(t.attrNodeName){let s={};return s[t.attrNodeName]=i,s}return i}}var Ute=function(e,t){e=e.replace(/\r\n?/g,`
22
+ `),t=jte(t,qP,MP);let r=new im("!xml"),n=r,i="";for(let s=0;s<e.length;s++)if(e[s]==="<")if(e[s+1]==="/"){let c=ac(e,">",s,"Closing Tag is not closed."),l=e.substring(s+2,c).trim();if(t.ignoreNameSpace){let u=l.indexOf(":");u!==-1&&(l=l.substr(u+1))}n&&(n.val?n.val=ki.getValue(n.val)+""+sm(l,i,t):n.val=sm(l,i,t)),t.stopNodes.length&&t.stopNodes.includes(n.tagname)&&(n.child=[],n.attrsMap==null&&(n.attrsMap={}),n.val=e.substr(n.startIndex+1,s-n.startIndex-1)),n=n.parent,i="",s=c}else if(e[s+1]==="?")s=ac(e,"?>",s,"Pi Tag is not closed.");else if(e.substr(s+1,3)==="!--")s=ac(e,"-->",s,"Comment is not closed.");else if(e.substr(s+1,2)==="!D"){let c=ac(e,">",s,"DOCTYPE is not closed.");e.substring(s,c).indexOf("[")>=0?s=e.indexOf("]>",s)+1:s=c}else if(e.substr(s+1,2)==="!["){let c=ac(e,"]]>",s,"CDATA is not closed.")-2,l=e.substring(s+9,c);if(i&&(n.val=ki.getValue(n.val)+""+sm(n.tagname,i,t),i=""),t.cdataTagName){let u=new im(t.cdataTagName,n,l);n.addChild(u),n.val=ki.getValue(n.val)+t.cdataPositionChar,l&&(u.val=l)}else n.val=(n.val||"")+(l||"");s=c+2}else{let c=Bte(e,s+1),l=c.data,u=c.index,f=l.indexOf(" "),_=l,h=!0;if(f!==-1&&(_=l.substr(0,f).replace(/\s\s*$/,""),l=l.substr(f+1)),t.ignoreNameSpace){let v=_.indexOf(":");v!==-1&&(_=_.substr(v+1),h=_!==c.data.substr(v+1))}if(n&&i&&n.tagname!=="!xml"&&(n.val=ki.getValue(n.val)+""+sm(n.tagname,i,t)),l.length>0&&l.lastIndexOf("/")===l.length-1){_[_.length-1]==="/"?(_=_.substr(0,_.length-1),l=_):l=l.substr(0,l.length-1);let v=new im(_,n,"");_!==l&&(v.attrsMap=LP(l,t)),n.addChild(v)}else{let v=new im(_,n);t.stopNodes.length&&t.stopNodes.includes(v.tagname)&&(v.startIndex=u),_!==l&&h&&(v.attrsMap=LP(l,t)),n.addChild(v),n=v}i="",s=u}else i+=e[s];return r};function Bte(e,t){let r,n="";for(let i=t;i<e.length;i++){let s=e[i];if(r)s===r&&(r="");else if(s==='"'||s==="'")r=s;else{if(s===">")return{data:n,index:i};s===" "&&(s=" ")}n+=s}}function ac(e,t,r,n){let i=e.indexOf(t,r);if(i===-1)throw new Error(n);return i+t.length-1}om.getTraversalObj=Ute});var BP=m(UP=>{"use strict";var cm=Or(),Gte={allowBooleanAttributes:!1},$te=["allowBooleanAttributes"];UP.validate=function(e,t){t=cm.buildOptions(t,Gte,$te);let r=[],n=!1,i=!1;e[0]==="\uFEFF"&&(e=e.substr(1));for(let s=0;s<e.length;s++)if(e[s]==="<"&&e[s+1]==="?"){if(s+=2,s=jP(e,s),s.err)return s}else if(e[s]==="<")if(s++,e[s]==="!"){s=kP(e,s);continue}else{let a=!1;e[s]==="/"&&(a=!0,s++);let c="";for(;s<e.length&&e[s]!==">"&&e[s]!==" "&&e[s]!==" "&&e[s]!==`
23
+ `&&e[s]!=="\r";s++)c+=e[s];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),s--),!Xte(c)){let f;return c.trim().length===0?f="There is an unnecessary space between tag name and backward slash '</ ..'.":f="Tag '"+c+"' is an invalid name.",ft("InvalidTag",f,ur(e,s))}let l=Hte(e,s);if(l===!1)return ft("InvalidAttr","Attributes for '"+c+"' have open quote.",ur(e,s));let u=l.value;if(s=l.index,u[u.length-1]==="/"){u=u.substring(0,u.length-1);let f=FP(u,t);if(f===!0)n=!0;else return ft(f.err.code,f.err.msg,ur(e,s-u.length+f.err.line))}else if(a)if(l.tagClosed){if(u.trim().length>0)return ft("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",ur(e,s));{let f=r.pop();if(c!==f)return ft("InvalidTag","Closing tag '"+f+"' is expected inplace of '"+c+"'.",ur(e,s));r.length==0&&(i=!0)}}else return ft("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",ur(e,s));else{let f=FP(u,t);if(f!==!0)return ft(f.err.code,f.err.msg,ur(e,s-u.length+f.err.line));if(i===!0)return ft("InvalidXml","Multiple possible root nodes found.",ur(e,s));r.push(c),n=!0}for(s++;s<e.length;s++)if(e[s]==="<")if(e[s+1]==="!"){s++,s=kP(e,s);continue}else if(e[s+1]==="?"){if(s=jP(e,++s),s.err)return s}else break;else if(e[s]==="&"){let f=Yte(e,s);if(f==-1)return ft("InvalidChar","char '&' is not expected.",ur(e,s));s=f}e[s]==="<"&&s--}else{if(e[s]===" "||e[s]===" "||e[s]===`
24
+ `||e[s]==="\r")continue;return ft("InvalidChar","char '"+e[s]+"' is not expected.",ur(e,s))}if(n){if(r.length>0)return ft("InvalidXml","Invalid '"+JSON.stringify(r,null,4).replace(/\r?\n/g,"")+"' found.",1)}else return ft("InvalidXml","Start tag expected.",1);return!0};function jP(e,t){for(var r=t;t<e.length;t++)if(e[t]=="?"||e[t]==" "){var n=e.substr(r,t-r);if(t>5&&n==="xml")return ft("InvalidXml","XML declaration allowed only at the start of the document.",ur(e,t));if(e[t]=="?"&&e[t+1]==">"){t++;break}else continue}return t}function kP(e,t){if(e.length>t+5&&e[t+1]==="-"&&e[t+2]==="-"){for(t+=3;t<e.length;t++)if(e[t]==="-"&&e[t+1]==="-"&&e[t+2]===">"){t+=2;break}}else if(e.length>t+8&&e[t+1]==="D"&&e[t+2]==="O"&&e[t+3]==="C"&&e[t+4]==="T"&&e[t+5]==="Y"&&e[t+6]==="P"&&e[t+7]==="E"){let r=1;for(t+=8;t<e.length;t++)if(e[t]==="<")r++;else if(e[t]===">"&&(r--,r===0))break}else if(e.length>t+9&&e[t+1]==="["&&e[t+2]==="C"&&e[t+3]==="D"&&e[t+4]==="A"&&e[t+5]==="T"&&e[t+6]==="A"&&e[t+7]==="["){for(t+=8;t<e.length;t++)if(e[t]==="]"&&e[t+1]==="]"&&e[t+2]===">"){t+=2;break}}return t}var Vte='"',Kte="'";function Hte(e,t){let r="",n="",i=!1;for(;t<e.length;t++){if(e[t]===Vte||e[t]===Kte)if(n==="")n=e[t];else{if(n!==e[t])continue;n=""}else if(e[t]===">"&&n===""){i=!0;break}r+=e[t]}return n!==""?!1:{value:r,index:t,tagClosed:i}}var Wte=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function FP(e,t){let r=cm.getAllMatches(e,Wte),n={};for(let i=0;i<r.length;i++){if(r[i][1].length===0)return ft("InvalidAttr","Attribute '"+r[i][2]+"' has no space in starting.",am(e,r[i][0]));if(r[i][3]===void 0&&!t.allowBooleanAttributes)return ft("InvalidAttr","boolean attribute '"+r[i][2]+"' is not allowed.",am(e,r[i][0]));let s=r[i][2];if(!Qte(s))return ft("InvalidAttr","Attribute '"+s+"' is an invalid name.",am(e,r[i][0]));if(!n.hasOwnProperty(s))n[s]=1;else return ft("InvalidAttr","Attribute '"+s+"' is repeated.",am(e,r[i][0]))}return!0}function Jte(e,t){let r=/\d/;for(e[t]==="x"&&(t++,r=/[\da-fA-F]/);t<e.length;t++){if(e[t]===";")return t;if(!e[t].match(r))break}return-1}function Yte(e,t){if(t++,e[t]===";")return-1;if(e[t]==="#")return t++,Jte(e,t);let r=0;for(;t<e.length;t++,r++)if(!(e[t].match(/\w/)&&r<20)){if(e[t]===";")break;return-1}return t}function ft(e,t,r){return{err:{code:e,msg:t,line:r}}}function Qte(e){return cm.isName(e)}function Xte(e){return cm.isName(e)}function ur(e,t){var r=e.substring(0,t).split(/\r?\n/);return r.length}function am(e,t){return e.indexOf(t)+t.length}});var KP=m(VP=>{"use strict";var Lr=function(e){return String.fromCharCode(e)},Je={nilChar:Lr(176),missingChar:Lr(201),nilPremitive:Lr(175),missingPremitive:Lr(200),emptyChar:Lr(178),emptyValue:Lr(177),boundryChar:Lr(179),objStart:Lr(198),arrStart:Lr(204),arrayEnd:Lr(185)},Zte=[Je.nilChar,Je.nilPremitive,Je.missingChar,Je.missingPremitive,Je.boundryChar,Je.emptyChar,Je.emptyValue,Je.arrayEnd,Je.objStart,Je.arrStart],lc=function(e,t,r){if(typeof t=="string")return e&&e[0]&&e[0].val!==void 0?CE(e[0].val,t):CE(e,t);{let n=ere(e);if(n===!0){let i="";if(Array.isArray(t)){i+=Je.arrStart;let s=t[0],a=e.length;if(typeof s=="string")for(let c=0;c<a;c++){let l=CE(e[c].val,s);i=xE(i,l)}else for(let c=0;c<a;c++){let l=lc(e[c],s,r);i=xE(i,l)}i+=Je.arrayEnd}else{i+=Je.objStart;let s=Object.keys(t);Array.isArray(e)&&(e=e[0]);for(let a in s){let c=s[a],l;!r.ignoreAttributes&&e.attrsMap&&e.attrsMap[c]?l=lc(e.attrsMap[c],t[c],r):c===r.textNodeName?l=lc(e.val,t[c],r):l=lc(e.child[c],t[c],r),i=xE(i,l)}}return i}else return n}},CE=function(e){switch(e){case void 0:return Je.missingPremitive;case null:return Je.nilPremitive;case"":return Je.emptyValue;default:return e}},xE=function(e,t){return!GP(t[0])&&!GP(e[e.length-1])&&(e+=Je.boundryChar),e+t},GP=function(e){return Zte.indexOf(e)!==-1};function ere(e){return e===void 0?Je.missingChar:e===null?Je.nilChar:e.child&&Object.keys(e.child).length===0&&(!e.attrsMap||Object.keys(e.attrsMap).length===0)?Je.emptyChar:!0}var $P=cc(),tre=Or().buildOptions,rre=function(e,t,r){return r=tre(r,$P.defaultOptions,$P.props),lc(e,t,r)};VP.convert2nimn=rre});var JP=m(WP=>{"use strict";var lm=Or(),nre=Or().buildOptions,HP=cc(),ire=function(e,t){return t=nre(t,HP.defaultOptions,HP.props),t.indentBy=t.indentBy||"",IE(e,t,0)},IE=function(e,t,r){let n="{",i=Object.keys(e.child);for(let c=0;c<i.length;c++){var s=i[c];if(e.child[s]&&e.child[s].length>1){n+='"'+s+'" : [ ';for(var a in e.child[s])n+=IE(e.child[s][a],t)+" , ";n=n.substr(0,n.length-1)+" ] "}else n+='"'+s+'" : '+IE(e.child[s][0],t)+" ,"}return lm.merge(n,e.attrsMap),lm.isEmptyObject(n)?lm.isExist(e.val)?e.val:"":(lm.isExist(e.val)&&(typeof e.val=="string"&&(e.val===""||e.val===t.cdataPositionChar)||(n+='"'+t.textNodeName+'" : '+sre(e.val))),n[n.length-1]===","&&(n=n.substr(0,n.length-2)),n+"}")};function sre(e){return e===!0||e===!1||!isNaN(e)?e:'"'+e+'"'}WP.convertToJsonString=ire});var ZP=m((E1e,XP)=>{"use strict";var ore=Or().buildOptions,are={attributeNamePrefix:"@_",attrNodeName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataTagName:!1,cdataPositionChar:"\\c",format:!1,indentBy:" ",supressEmptyNode:!1,tagValueProcessor:function(e){return e},attrValueProcessor:function(e){return e}},cre=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","cdataTagName","cdataPositionChar","format","indentBy","supressEmptyNode","tagValueProcessor","attrValueProcessor"];function RE(e){this.options=ore(e,are,cre),this.options.ignoreAttributes||this.options.attrNodeName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=pre),this.options.cdataTagName?this.isCDATA=_re:this.isCDATA=function(){return!1},this.replaceCDATAstr=lre,this.replaceCDATAarr=dre,this.options.format?(this.indentate=mre,this.tagEndChar=`>
25
25
  `,this.newLine=`
26
- `):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""),this.options.supressEmptyNode?(this.buildTextNode=w9,this.buildObjNode=S9):(this.buildTextNode=dI,this.buildObjNode=cI),this.buildTextValNode=dI,this.buildObjectNode=cI}ey.prototype.parse=function(e){return this.j2x(e,0).val};ey.prototype.j2x=function(e,t){let n="",r="",i=Object.keys(e),s=i.length;for(let a=0;a<s;a++){let l=i[a];if(typeof e[l]!="undefined")if(e[l]===null)r+=this.indentate(t)+"<"+l+"/"+this.tagEndChar;else if(e[l]instanceof Date)r+=this.buildTextNode(e[l],l,"",t);else if(typeof e[l]!="object"){let c=this.isAttribute(l);c?n+=" "+c+'="'+this.options.attrValueProcessor(""+e[l])+'"':this.isCDATA(l)?e[this.options.textNodeName]?r+=this.replaceCDATAstr(e[this.options.textNodeName],e[l]):r+=this.replaceCDATAstr("",e[l]):l===this.options.textNodeName?e[this.options.cdataTagName]||(r+=this.options.tagValueProcessor(""+e[l])):r+=this.buildTextNode(e[l],l,"",t)}else if(Array.isArray(e[l]))if(this.isCDATA(l))r+=this.indentate(t),e[this.options.textNodeName]?r+=this.replaceCDATAarr(e[this.options.textNodeName],e[l]):r+=this.replaceCDATAarr("",e[l]);else{let c=e[l].length;for(let d=0;d<c;d++){let u=e[l][d];if(typeof u!="undefined")if(u===null)r+=this.indentate(t)+"<"+l+"/"+this.tagEndChar;else if(typeof u=="object"){let _=this.j2x(u,t+1);r+=this.buildObjNode(_.val,l,_.attrStr,t)}else r+=this.buildTextNode(u,l,"",t)}}else if(this.options.attrNodeName&&l===this.options.attrNodeName){let c=Object.keys(e[l]),d=c.length;for(let u=0;u<d;u++)n+=" "+c[u]+'="'+this.options.attrValueProcessor(""+e[l][c[u]])+'"'}else{let c=this.j2x(e[l],t+1);r+=this.buildObjNode(c.val,l,c.attrStr,t)}}return{attrStr:n,val:r}};function v9(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 b9(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 cI(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 S9(e,t,n,r){return e!==""?this.buildObjectNode(e,t,n,r):this.indentate(r)+"<"+t+n+"/"+this.tagEndChar}function dI(e,t,n,r){return this.indentate(r)+"<"+t+n+">"+this.options.tagValueProcessor(e)+"</"+t+this.tagEndChar}function w9(e,t,n,r){return e!==""?this.buildTextValNode(e,t,n,r):this.indentate(r)+"<"+t+n+"/"+this.tagEndChar}function E9(e){return this.options.indentBy.repeat(e)}function A9(e){return e.startsWith(this.options.attributeNamePrefix)?e.substr(this.attrPrefixLen):!1}function C9(e){return e===this.options.cdataTagName}uI.exports=ey});var gI=p(pn=>{"use strict";var fI=$x(),pI=qa(),_I=qa(),T9=kn().buildOptions,hI=tI();pn.parse=function(e,t,n){if(n){n===!0&&(n={});let i=hI.validate(e,n);if(i!==!0)throw Error(i.err.msg)}t=T9(t,_I.defaultOptions,_I.props);let r=pI.getTraversalObj(e,t);return fI.convertToJson(r,t)};pn.convertTonimn=sI().convert2nimn;pn.getTraversalObj=pI.getTraversalObj;pn.convertToJson=fI.convertToJson;pn.convertToJsonString=lI().convertToJsonString;pn.validate=hI.validate;pn.j2xParser=mI();pn.parseToNimn=function(e,t,n){return pn.convertTonimn(pn.getTraversalObj(e,n),t,n)}});var lr=p(pe=>{"use strict";Object.defineProperty(pe,"__esModule",{value:!0});pe.deserializeAws_queryGetSessionTokenCommand=pe.deserializeAws_queryGetFederationTokenCommand=pe.deserializeAws_queryGetCallerIdentityCommand=pe.deserializeAws_queryGetAccessKeyInfoCommand=pe.deserializeAws_queryDecodeAuthorizationMessageCommand=pe.deserializeAws_queryAssumeRoleWithWebIdentityCommand=pe.deserializeAws_queryAssumeRoleWithSAMLCommand=pe.deserializeAws_queryAssumeRoleCommand=pe.serializeAws_queryGetSessionTokenCommand=pe.serializeAws_queryGetFederationTokenCommand=pe.serializeAws_queryGetCallerIdentityCommand=pe.serializeAws_queryGetAccessKeyInfoCommand=pe.serializeAws_queryDecodeAuthorizationMessageCommand=pe.serializeAws_queryAssumeRoleWithWebIdentityCommand=pe.serializeAws_queryAssumeRoleWithSAMLCommand=pe.serializeAws_queryAssumeRoleCommand=void 0;var x9=jt(),ce=q(),I9=Ux(),R9=gI(),N9=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=Ur(f(o({},nQ(e,t)),{Action:"AssumeRole",Version:"2011-06-15"})),zr(t,n,"/",void 0,r)};pe.serializeAws_queryAssumeRoleCommand=N9;var P9=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=Ur(f(o({},rQ(e,t)),{Action:"AssumeRoleWithSAML",Version:"2011-06-15"})),zr(t,n,"/",void 0,r)};pe.serializeAws_queryAssumeRoleWithSAMLCommand=P9;var D9=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=Ur(f(o({},iQ(e,t)),{Action:"AssumeRoleWithWebIdentity",Version:"2011-06-15"})),zr(t,n,"/",void 0,r)};pe.serializeAws_queryAssumeRoleWithWebIdentityCommand=D9;var O9=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=Ur(f(o({},sQ(e,t)),{Action:"DecodeAuthorizationMessage",Version:"2011-06-15"})),zr(t,n,"/",void 0,r)};pe.serializeAws_queryDecodeAuthorizationMessageCommand=O9;var L9=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=Ur(f(o({},aQ(e,t)),{Action:"GetAccessKeyInfo",Version:"2011-06-15"})),zr(t,n,"/",void 0,r)};pe.serializeAws_queryGetAccessKeyInfoCommand=L9;var q9=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=Ur(f(o({},oQ(e,t)),{Action:"GetCallerIdentity",Version:"2011-06-15"})),zr(t,n,"/",void 0,r)};pe.serializeAws_queryGetCallerIdentityCommand=q9;var M9=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=Ur(f(o({},lQ(e,t)),{Action:"GetFederationToken",Version:"2011-06-15"})),zr(t,n,"/",void 0,r)};pe.serializeAws_queryGetFederationTokenCommand=M9;var k9=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=Ur(f(o({},cQ(e,t)),{Action:"GetSessionToken",Version:"2011-06-15"})),zr(t,n,"/",void 0,r)};pe.serializeAws_queryGetSessionTokenCommand=k9;var j9=async(e,t)=>{if(e.statusCode>=300)return z9(e,t);let n=await _t(e.body,t),r={};r=fQ(n.AssumeRoleResult,t);let i=o({$metadata:ae(e)},r);return Promise.resolve(i)};pe.deserializeAws_queryAssumeRoleCommand=j9;var z9=async(e,t)=>{let n=f(o({},e),{body:await _t(e.body,t)}),r,i="UnknownError";switch(i=Fr(e,n.body),i){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":r=f(o({},await ty(n,t)),{name:i,$metadata:ae(e)});break;case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":r=f(o({},await pu(n,t)),{name:i,$metadata:ae(e)});break;case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":r=f(o({},await _u(n,t)),{name:i,$metadata:ae(e)});break;case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":r=f(o({},await ka(n,t)),{name:i,$metadata:ae(e)});break;default:let a=n.body;i=a.Error.code||a.Error.Code||i,r=f(o({},a.Error),{name:`${i}`,message:a.Error.message||a.Error.Message||i,$fault:"client",$metadata:ae(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},U9=async(e,t)=>{if(e.statusCode>=300)return F9(e,t);let n=await _t(e.body,t),r={};r=pQ(n.AssumeRoleWithSAMLResult,t);let i=o({$metadata:ae(e)},r);return Promise.resolve(i)};pe.deserializeAws_queryAssumeRoleWithSAMLCommand=U9;var F9=async(e,t)=>{let n=f(o({},e),{body:await _t(e.body,t)}),r,i="UnknownError";switch(i=Fr(e,n.body),i){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":r=f(o({},await ty(n,t)),{name:i,$metadata:ae(e)});break;case"IDPRejectedClaimException":case"com.amazonaws.sts#IDPRejectedClaimException":r=f(o({},await yI(n,t)),{name:i,$metadata:ae(e)});break;case"InvalidIdentityTokenException":case"com.amazonaws.sts#InvalidIdentityTokenException":r=f(o({},await vI(n,t)),{name:i,$metadata:ae(e)});break;case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":r=f(o({},await pu(n,t)),{name:i,$metadata:ae(e)});break;case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":r=f(o({},await _u(n,t)),{name:i,$metadata:ae(e)});break;case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":r=f(o({},await ka(n,t)),{name:i,$metadata:ae(e)});break;default:let a=n.body;i=a.Error.code||a.Error.Code||i,r=f(o({},a.Error),{name:`${i}`,message:a.Error.message||a.Error.Message||i,$fault:"client",$metadata:ae(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},B9=async(e,t)=>{if(e.statusCode>=300)return G9(e,t);let n=await _t(e.body,t),r={};r=_Q(n.AssumeRoleWithWebIdentityResult,t);let i=o({$metadata:ae(e)},r);return Promise.resolve(i)};pe.deserializeAws_queryAssumeRoleWithWebIdentityCommand=B9;var G9=async(e,t)=>{let n=f(o({},e),{body:await _t(e.body,t)}),r,i="UnknownError";switch(i=Fr(e,n.body),i){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":r=f(o({},await ty(n,t)),{name:i,$metadata:ae(e)});break;case"IDPCommunicationErrorException":case"com.amazonaws.sts#IDPCommunicationErrorException":r=f(o({},await eQ(n,t)),{name:i,$metadata:ae(e)});break;case"IDPRejectedClaimException":case"com.amazonaws.sts#IDPRejectedClaimException":r=f(o({},await yI(n,t)),{name:i,$metadata:ae(e)});break;case"InvalidIdentityTokenException":case"com.amazonaws.sts#InvalidIdentityTokenException":r=f(o({},await vI(n,t)),{name:i,$metadata:ae(e)});break;case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":r=f(o({},await pu(n,t)),{name:i,$metadata:ae(e)});break;case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":r=f(o({},await _u(n,t)),{name:i,$metadata:ae(e)});break;case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":r=f(o({},await ka(n,t)),{name:i,$metadata:ae(e)});break;default:let a=n.body;i=a.Error.code||a.Error.Code||i,r=f(o({},a.Error),{name:`${i}`,message:a.Error.message||a.Error.Message||i,$fault:"client",$metadata:ae(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},$9=async(e,t)=>{if(e.statusCode>=300)return K9(e,t);let n=await _t(e.body,t),r={};r=hQ(n.DecodeAuthorizationMessageResult,t);let i=o({$metadata:ae(e)},r);return Promise.resolve(i)};pe.deserializeAws_queryDecodeAuthorizationMessageCommand=$9;var K9=async(e,t)=>{let n=f(o({},e),{body:await _t(e.body,t)}),r,i="UnknownError";switch(i=Fr(e,n.body),i){case"InvalidAuthorizationMessageException":case"com.amazonaws.sts#InvalidAuthorizationMessageException":r=f(o({},await tQ(n,t)),{name:i,$metadata:ae(e)});break;default:let a=n.body;i=a.Error.code||a.Error.Code||i,r=f(o({},a.Error),{name:`${i}`,message:a.Error.message||a.Error.Message||i,$fault:"client",$metadata:ae(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},V9=async(e,t)=>{if(e.statusCode>=300)return H9(e,t);let n=await _t(e.body,t),r={};r=vQ(n.GetAccessKeyInfoResult,t);let i=o({$metadata:ae(e)},r);return Promise.resolve(i)};pe.deserializeAws_queryGetAccessKeyInfoCommand=V9;var H9=async(e,t)=>{let n=f(o({},e),{body:await _t(e.body,t)}),r,i="UnknownError";switch(i=Fr(e,n.body),i){default:let a=n.body;i=a.Error.code||a.Error.Code||i,r=f(o({},a.Error),{name:`${i}`,message:a.Error.message||a.Error.Message||i,$fault:"client",$metadata:ae(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},W9=async(e,t)=>{if(e.statusCode>=300)return Y9(e,t);let n=await _t(e.body,t),r={};r=bQ(n.GetCallerIdentityResult,t);let i=o({$metadata:ae(e)},r);return Promise.resolve(i)};pe.deserializeAws_queryGetCallerIdentityCommand=W9;var Y9=async(e,t)=>{let n=f(o({},e),{body:await _t(e.body,t)}),r,i="UnknownError";switch(i=Fr(e,n.body),i){default:let a=n.body;i=a.Error.code||a.Error.Code||i,r=f(o({},a.Error),{name:`${i}`,message:a.Error.message||a.Error.Message||i,$fault:"client",$metadata:ae(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},J9=async(e,t)=>{if(e.statusCode>=300)return Q9(e,t);let n=await _t(e.body,t),r={};r=SQ(n.GetFederationTokenResult,t);let i=o({$metadata:ae(e)},r);return Promise.resolve(i)};pe.deserializeAws_queryGetFederationTokenCommand=J9;var Q9=async(e,t)=>{let n=f(o({},e),{body:await _t(e.body,t)}),r,i="UnknownError";switch(i=Fr(e,n.body),i){case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":r=f(o({},await pu(n,t)),{name:i,$metadata:ae(e)});break;case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":r=f(o({},await _u(n,t)),{name:i,$metadata:ae(e)});break;case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":r=f(o({},await ka(n,t)),{name:i,$metadata:ae(e)});break;default:let a=n.body;i=a.Error.code||a.Error.Code||i,r=f(o({},a.Error),{name:`${i}`,message:a.Error.message||a.Error.Message||i,$fault:"client",$metadata:ae(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},X9=async(e,t)=>{if(e.statusCode>=300)return Z9(e,t);let n=await _t(e.body,t),r={};r=wQ(n.GetSessionTokenResult,t);let i=o({$metadata:ae(e)},r);return Promise.resolve(i)};pe.deserializeAws_queryGetSessionTokenCommand=X9;var Z9=async(e,t)=>{let n=f(o({},e),{body:await _t(e.body,t)}),r,i="UnknownError";switch(i=Fr(e,n.body),i){case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":r=f(o({},await ka(n,t)),{name:i,$metadata:ae(e)});break;default:let a=n.body;i=a.Error.code||a.Error.Code||i,r=f(o({},a.Error),{name:`${i}`,message:a.Error.message||a.Error.Message||i,$fault:"client",$metadata:ae(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},ty=async(e,t)=>{let n=e.body,r=gQ(n.Error,t);return o({name:"ExpiredTokenException",$fault:"client",$metadata:ae(e)},r)},eQ=async(e,t)=>{let n=e.body,r=EQ(n.Error,t);return o({name:"IDPCommunicationErrorException",$fault:"client",$metadata:ae(e)},r)},yI=async(e,t)=>{let n=e.body,r=AQ(n.Error,t);return o({name:"IDPRejectedClaimException",$fault:"client",$metadata:ae(e)},r)},tQ=async(e,t)=>{let n=e.body,r=CQ(n.Error,t);return o({name:"InvalidAuthorizationMessageException",$fault:"client",$metadata:ae(e)},r)},vI=async(e,t)=>{let n=e.body,r=TQ(n.Error,t);return o({name:"InvalidIdentityTokenException",$fault:"client",$metadata:ae(e)},r)},pu=async(e,t)=>{let n=e.body,r=xQ(n.Error,t);return o({name:"MalformedPolicyDocumentException",$fault:"client",$metadata:ae(e)},r)},_u=async(e,t)=>{let n=e.body,r=IQ(n.Error,t);return o({name:"PackedPolicyTooLargeException",$fault:"client",$metadata:ae(e)},r)},ka=async(e,t)=>{let n=e.body,r=RQ(n.Error,t);return o({name:"RegionDisabledException",$fault:"client",$metadata:ae(e)},r)},nQ=(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=hu(e.PolicyArns,t);Object.entries(r).forEach(([i,s])=>{let a=`PolicyArns.${i}`;n[a]=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=bI(e.Tags,t);Object.entries(r).forEach(([i,s])=>{let a=`Tags.${i}`;n[a]=s})}if(e.TransitiveTagKeys!==void 0&&e.TransitiveTagKeys!==null){let r=mQ(e.TransitiveTagKeys,t);Object.entries(r).forEach(([i,s])=>{let a=`TransitiveTagKeys.${i}`;n[a]=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},rQ=(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=hu(e.PolicyArns,t);Object.entries(r).forEach(([i,s])=>{let a=`PolicyArns.${i}`;n[a]=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},iQ=(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=hu(e.PolicyArns,t);Object.entries(r).forEach(([i,s])=>{let a=`PolicyArns.${i}`;n[a]=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},sQ=(e,t)=>{let n={};return e.EncodedMessage!==void 0&&e.EncodedMessage!==null&&(n.EncodedMessage=e.EncodedMessage),n},aQ=(e,t)=>{let n={};return e.AccessKeyId!==void 0&&e.AccessKeyId!==null&&(n.AccessKeyId=e.AccessKeyId),n},oQ=(e,t)=>({}),lQ=(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=hu(e.PolicyArns,t);Object.entries(r).forEach(([i,s])=>{let a=`PolicyArns.${i}`;n[a]=s})}if(e.DurationSeconds!==void 0&&e.DurationSeconds!==null&&(n.DurationSeconds=e.DurationSeconds),e.Tags!==void 0&&e.Tags!==null){let r=bI(e.Tags,t);Object.entries(r).forEach(([i,s])=>{let a=`Tags.${i}`;n[a]=s})}return n},cQ=(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},hu=(e,t)=>{let n={},r=1;for(let i of e){if(i===null)continue;let s=dQ(i,t);Object.entries(s).forEach(([a,l])=>{n[`member.${r}.${a}`]=l}),r++}return n},dQ=(e,t)=>{let n={};return e.arn!==void 0&&e.arn!==null&&(n.arn=e.arn),n},uQ=(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},mQ=(e,t)=>{let n={},r=1;for(let i of e)i!==null&&(n[`member.${r}`]=i,r++);return n},bI=(e,t)=>{let n={},r=1;for(let i of e){if(i===null)continue;let s=uQ(i,t);Object.entries(s).forEach(([a,l])=>{n[`member.${r}.${a}`]=l}),r++}return n},ny=(e,t)=>{let n={AssumedRoleId:void 0,Arn:void 0};return e.AssumedRoleId!==void 0&&(n.AssumedRoleId=ce.expectString(e.AssumedRoleId)),e.Arn!==void 0&&(n.Arn=ce.expectString(e.Arn)),n},fQ=(e,t)=>{let n={Credentials:void 0,AssumedRoleUser:void 0,PackedPolicySize:void 0,SourceIdentity:void 0};return e.Credentials!==void 0&&(n.Credentials=ja(e.Credentials,t)),e.AssumedRoleUser!==void 0&&(n.AssumedRoleUser=ny(e.AssumedRoleUser,t)),e.PackedPolicySize!==void 0&&(n.PackedPolicySize=ce.strictParseInt32(e.PackedPolicySize)),e.SourceIdentity!==void 0&&(n.SourceIdentity=ce.expectString(e.SourceIdentity)),n},pQ=(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=ja(e.Credentials,t)),e.AssumedRoleUser!==void 0&&(n.AssumedRoleUser=ny(e.AssumedRoleUser,t)),e.PackedPolicySize!==void 0&&(n.PackedPolicySize=ce.strictParseInt32(e.PackedPolicySize)),e.Subject!==void 0&&(n.Subject=ce.expectString(e.Subject)),e.SubjectType!==void 0&&(n.SubjectType=ce.expectString(e.SubjectType)),e.Issuer!==void 0&&(n.Issuer=ce.expectString(e.Issuer)),e.Audience!==void 0&&(n.Audience=ce.expectString(e.Audience)),e.NameQualifier!==void 0&&(n.NameQualifier=ce.expectString(e.NameQualifier)),e.SourceIdentity!==void 0&&(n.SourceIdentity=ce.expectString(e.SourceIdentity)),n},_Q=(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=ja(e.Credentials,t)),e.SubjectFromWebIdentityToken!==void 0&&(n.SubjectFromWebIdentityToken=ce.expectString(e.SubjectFromWebIdentityToken)),e.AssumedRoleUser!==void 0&&(n.AssumedRoleUser=ny(e.AssumedRoleUser,t)),e.PackedPolicySize!==void 0&&(n.PackedPolicySize=ce.strictParseInt32(e.PackedPolicySize)),e.Provider!==void 0&&(n.Provider=ce.expectString(e.Provider)),e.Audience!==void 0&&(n.Audience=ce.expectString(e.Audience)),e.SourceIdentity!==void 0&&(n.SourceIdentity=ce.expectString(e.SourceIdentity)),n},ja=(e,t)=>{let n={AccessKeyId:void 0,SecretAccessKey:void 0,SessionToken:void 0,Expiration:void 0};return e.AccessKeyId!==void 0&&(n.AccessKeyId=ce.expectString(e.AccessKeyId)),e.SecretAccessKey!==void 0&&(n.SecretAccessKey=ce.expectString(e.SecretAccessKey)),e.SessionToken!==void 0&&(n.SessionToken=ce.expectString(e.SessionToken)),e.Expiration!==void 0&&(n.Expiration=ce.expectNonNull(ce.parseRfc3339DateTime(e.Expiration))),n},hQ=(e,t)=>{let n={DecodedMessage:void 0};return e.DecodedMessage!==void 0&&(n.DecodedMessage=ce.expectString(e.DecodedMessage)),n},gQ=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=ce.expectString(e.message)),n},yQ=(e,t)=>{let n={FederatedUserId:void 0,Arn:void 0};return e.FederatedUserId!==void 0&&(n.FederatedUserId=ce.expectString(e.FederatedUserId)),e.Arn!==void 0&&(n.Arn=ce.expectString(e.Arn)),n},vQ=(e,t)=>{let n={Account:void 0};return e.Account!==void 0&&(n.Account=ce.expectString(e.Account)),n},bQ=(e,t)=>{let n={UserId:void 0,Account:void 0,Arn:void 0};return e.UserId!==void 0&&(n.UserId=ce.expectString(e.UserId)),e.Account!==void 0&&(n.Account=ce.expectString(e.Account)),e.Arn!==void 0&&(n.Arn=ce.expectString(e.Arn)),n},SQ=(e,t)=>{let n={Credentials:void 0,FederatedUser:void 0,PackedPolicySize:void 0};return e.Credentials!==void 0&&(n.Credentials=ja(e.Credentials,t)),e.FederatedUser!==void 0&&(n.FederatedUser=yQ(e.FederatedUser,t)),e.PackedPolicySize!==void 0&&(n.PackedPolicySize=ce.strictParseInt32(e.PackedPolicySize)),n},wQ=(e,t)=>{let n={Credentials:void 0};return e.Credentials!==void 0&&(n.Credentials=ja(e.Credentials,t)),n},EQ=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=ce.expectString(e.message)),n},AQ=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=ce.expectString(e.message)),n},CQ=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=ce.expectString(e.message)),n},TQ=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=ce.expectString(e.message)),n},xQ=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=ce.expectString(e.message)),n},IQ=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=ce.expectString(e.message)),n},RQ=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=ce.expectString(e.message)),n},ae=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"]}},NQ=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),PQ=(e,t)=>NQ(e,t).then(n=>t.utf8Encoder(n)),zr=async(e,t,n,r,i)=>{let{hostname:s,protocol:a="https",port:l,path:c}=await e.endpoint(),d={protocol:a,hostname:s,port:l,method:"POST",path:c.endsWith("/")?c.slice(0,-1)+n:c+n,headers:t};return r!==void 0&&(d.hostname=r),i!==void 0&&(d.body=i),new x9.HttpRequest(d)},_t=(e,t)=>PQ(e,t).then(n=>{if(n.length){let r=R9.parse(n,{attributeNamePrefix:"",ignoreAttributes:!1,parseNodeValue:!1,trimValues:!1,tagValueProcessor:l=>l.trim()===""&&l.includes(`
27
- `)?"":I9.decodeHTML(l)}),i="#text",s=Object.keys(r)[0],a=r[s];return a[i]&&(a[s]=a[i],delete a[i]),ce.getValueFromTextNode(a)}return{}}),Ur=e=>Object.entries(e).map(([t,n])=>ce.extendedEncodeURIComponent(t)+"="+ce.extendedEncodeURIComponent(n)).join("&"),Fr=(e,t)=>t.Error.Code!==void 0?t.Error.Code:e.statusCode==404?"NotFound":""});var yu=p(gu=>{"use strict";Object.defineProperty(gu,"__esModule",{value:!0});gu.AssumeRoleCommand=void 0;var DQ=B(),OQ=or(),LQ=q(),SI=qn(),wI=lr(),EI=class extends LQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(DQ.getSerdePlugin(n,this.serialize,this.deserialize)),this.middlewareStack.use(OQ.getAwsAuthPlugin(n));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"STSClient",commandName:"AssumeRoleCommand",inputFilterSensitiveLog:SI.AssumeRoleRequest.filterSensitiveLog,outputFilterSensitiveLog:SI.AssumeRoleResponse.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return wI.serializeAws_queryAssumeRoleCommand(t,n)}deserialize(t,n){return wI.deserializeAws_queryAssumeRoleCommand(t,n)}};gu.AssumeRoleCommand=EI});var ry=p(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});vu.AssumeRoleWithSAMLCommand=void 0;var qQ=B(),MQ=q(),AI=qn(),CI=lr(),TI=class extends MQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(qQ.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"STSClient",commandName:"AssumeRoleWithSAMLCommand",inputFilterSensitiveLog:AI.AssumeRoleWithSAMLRequest.filterSensitiveLog,outputFilterSensitiveLog:AI.AssumeRoleWithSAMLResponse.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return CI.serializeAws_queryAssumeRoleWithSAMLCommand(t,n)}deserialize(t,n){return CI.deserializeAws_queryAssumeRoleWithSAMLCommand(t,n)}};vu.AssumeRoleWithSAMLCommand=TI});var Su=p(bu=>{"use strict";Object.defineProperty(bu,"__esModule",{value:!0});bu.AssumeRoleWithWebIdentityCommand=void 0;var kQ=B(),jQ=q(),xI=qn(),II=lr(),RI=class extends jQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(kQ.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"STSClient",commandName:"AssumeRoleWithWebIdentityCommand",inputFilterSensitiveLog:xI.AssumeRoleWithWebIdentityRequest.filterSensitiveLog,outputFilterSensitiveLog:xI.AssumeRoleWithWebIdentityResponse.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return II.serializeAws_queryAssumeRoleWithWebIdentityCommand(t,n)}deserialize(t,n){return II.deserializeAws_queryAssumeRoleWithWebIdentityCommand(t,n)}};bu.AssumeRoleWithWebIdentityCommand=RI});var iy=p(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});wu.DecodeAuthorizationMessageCommand=void 0;var zQ=B(),UQ=or(),FQ=q(),NI=qn(),PI=lr(),DI=class extends FQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(zQ.getSerdePlugin(n,this.serialize,this.deserialize)),this.middlewareStack.use(UQ.getAwsAuthPlugin(n));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"STSClient",commandName:"DecodeAuthorizationMessageCommand",inputFilterSensitiveLog:NI.DecodeAuthorizationMessageRequest.filterSensitiveLog,outputFilterSensitiveLog:NI.DecodeAuthorizationMessageResponse.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return PI.serializeAws_queryDecodeAuthorizationMessageCommand(t,n)}deserialize(t,n){return PI.deserializeAws_queryDecodeAuthorizationMessageCommand(t,n)}};wu.DecodeAuthorizationMessageCommand=DI});var sy=p(Eu=>{"use strict";Object.defineProperty(Eu,"__esModule",{value:!0});Eu.GetAccessKeyInfoCommand=void 0;var BQ=B(),GQ=or(),$Q=q(),OI=qn(),LI=lr(),qI=class extends $Q.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(BQ.getSerdePlugin(n,this.serialize,this.deserialize)),this.middlewareStack.use(GQ.getAwsAuthPlugin(n));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"STSClient",commandName:"GetAccessKeyInfoCommand",inputFilterSensitiveLog:OI.GetAccessKeyInfoRequest.filterSensitiveLog,outputFilterSensitiveLog:OI.GetAccessKeyInfoResponse.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return LI.serializeAws_queryGetAccessKeyInfoCommand(t,n)}deserialize(t,n){return LI.deserializeAws_queryGetAccessKeyInfoCommand(t,n)}};Eu.GetAccessKeyInfoCommand=qI});var ay=p(Au=>{"use strict";Object.defineProperty(Au,"__esModule",{value:!0});Au.GetCallerIdentityCommand=void 0;var KQ=B(),VQ=or(),HQ=q(),MI=qn(),kI=lr(),jI=class extends HQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(KQ.getSerdePlugin(n,this.serialize,this.deserialize)),this.middlewareStack.use(VQ.getAwsAuthPlugin(n));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"STSClient",commandName:"GetCallerIdentityCommand",inputFilterSensitiveLog:MI.GetCallerIdentityRequest.filterSensitiveLog,outputFilterSensitiveLog:MI.GetCallerIdentityResponse.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return kI.serializeAws_queryGetCallerIdentityCommand(t,n)}deserialize(t,n){return kI.deserializeAws_queryGetCallerIdentityCommand(t,n)}};Au.GetCallerIdentityCommand=jI});var oy=p(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});Cu.GetFederationTokenCommand=void 0;var WQ=B(),YQ=or(),JQ=q(),zI=qn(),UI=lr(),FI=class extends JQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(WQ.getSerdePlugin(n,this.serialize,this.deserialize)),this.middlewareStack.use(YQ.getAwsAuthPlugin(n));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"STSClient",commandName:"GetFederationTokenCommand",inputFilterSensitiveLog:zI.GetFederationTokenRequest.filterSensitiveLog,outputFilterSensitiveLog:zI.GetFederationTokenResponse.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return UI.serializeAws_queryGetFederationTokenCommand(t,n)}deserialize(t,n){return UI.deserializeAws_queryGetFederationTokenCommand(t,n)}};Cu.GetFederationTokenCommand=FI});var ly=p(Tu=>{"use strict";Object.defineProperty(Tu,"__esModule",{value:!0});Tu.GetSessionTokenCommand=void 0;var QQ=B(),XQ=or(),ZQ=q(),BI=qn(),GI=lr(),$I=class extends ZQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(QQ.getSerdePlugin(n,this.serialize,this.deserialize)),this.middlewareStack.use(XQ.getAwsAuthPlugin(n));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"STSClient",commandName:"GetSessionTokenCommand",inputFilterSensitiveLog:BI.GetSessionTokenRequest.filterSensitiveLog,outputFilterSensitiveLog:BI.GetSessionTokenResponse.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return GI.serializeAws_queryGetSessionTokenCommand(t,n)}deserialize(t,n){return GI.deserializeAws_queryGetSessionTokenCommand(t,n)}};Tu.GetSessionTokenCommand=$I});var KI=p(xu=>{"use strict";Object.defineProperty(xu,"__esModule",{value:!0});xu.resolveStsAuthConfig=void 0;var eX=or(),tX=(e,{stsClientCtor:t})=>eX.resolveAwsAuthConfig(f(o({},e),{stsClientCtor:t}));xu.resolveStsAuthConfig=tX});var VI=p((ube,nX)=>{nX.exports={name:"@aws-sdk/client-sts",description:"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",version:"3.47.0",scripts:{build:"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-*"},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.47.0","@aws-sdk/credential-provider-node":"3.47.0","@aws-sdk/fetch-http-handler":"3.47.0","@aws-sdk/hash-node":"3.47.0","@aws-sdk/invalid-dependency":"3.47.0","@aws-sdk/middleware-content-length":"3.47.0","@aws-sdk/middleware-host-header":"3.47.0","@aws-sdk/middleware-logger":"3.47.0","@aws-sdk/middleware-retry":"3.47.0","@aws-sdk/middleware-sdk-sts":"3.47.0","@aws-sdk/middleware-serde":"3.47.0","@aws-sdk/middleware-signing":"3.47.0","@aws-sdk/middleware-stack":"3.47.0","@aws-sdk/middleware-user-agent":"3.47.0","@aws-sdk/node-config-provider":"3.47.0","@aws-sdk/node-http-handler":"3.47.0","@aws-sdk/protocol-http":"3.47.0","@aws-sdk/smithy-client":"3.47.0","@aws-sdk/types":"3.47.0","@aws-sdk/url-parser":"3.47.0","@aws-sdk/util-base64-browser":"3.47.0","@aws-sdk/util-base64-node":"3.47.0","@aws-sdk/util-body-length-browser":"3.47.0","@aws-sdk/util-body-length-node":"3.47.0","@aws-sdk/util-defaults-mode-browser":"3.47.0","@aws-sdk/util-defaults-mode-node":"3.47.0","@aws-sdk/util-user-agent-browser":"3.47.0","@aws-sdk/util-user-agent-node":"3.47.0","@aws-sdk/util-utf8-browser":"3.47.0","@aws-sdk/util-utf8-node":"3.47.0",entities:"2.2.0","fast-xml-parser":"3.19.0",tslib:"^2.3.0"},devDependencies:{"@aws-sdk/service-client-documentation-generator":"3.47.0","@types/node":"^12.7.5"},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 cy=p(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});zn.decorateDefaultCredentialProvider=zn.getDefaultRoleAssumerWithWebIdentity=zn.getDefaultRoleAssumer=void 0;var rX=yu(),iX=Su(),HI="us-east-1",WI=e=>typeof e!="function"?e===void 0?HI:e:async()=>{try{return await e()}catch{return HI}},sX=(e,t)=>{let n,r;return async(i,s)=>{if(r=i,!n){let{logger:l,region:c,requestHandler:d}=e;n=new t(o({logger:l,credentialDefaultProvider:()=>async()=>r,region:WI(c||e.region)},d?{requestHandler:d}:{}))}let{Credentials:a}=await n.send(new rX.AssumeRoleCommand(s));if(!a||!a.AccessKeyId||!a.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${s.RoleArn}`);return{accessKeyId:a.AccessKeyId,secretAccessKey:a.SecretAccessKey,sessionToken:a.SessionToken,expiration:a.Expiration}}};zn.getDefaultRoleAssumer=sX;var aX=(e,t)=>{let n;return async r=>{if(!n){let{logger:s,region:a,requestHandler:l}=e;n=new t(o({logger:s,region:WI(a||e.region)},l?{requestHandler:l}:{}))}let{Credentials:i}=await n.send(new iX.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}}};zn.getDefaultRoleAssumerWithWebIdentity=aX;var oX=e=>t=>e(o({roleAssumer:zn.getDefaultRoleAssumer(t,t.stsClientCtor),roleAssumerWithWebIdentity:zn.getDefaultRoleAssumerWithWebIdentity(t,t.stsClientCtor)},t));zn.decorateDefaultCredentialProvider=oX});var dy=p(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});ht.fromEnv=ht.ENV_EXPIRATION=ht.ENV_SESSION=ht.ENV_SECRET=ht.ENV_KEY=void 0;var lX=lt();ht.ENV_KEY="AWS_ACCESS_KEY_ID";ht.ENV_SECRET="AWS_SECRET_ACCESS_KEY";ht.ENV_SESSION="AWS_SESSION_TOKEN";ht.ENV_EXPIRATION="AWS_CREDENTIAL_EXPIRATION";function cX(){return()=>{let e=process.env[ht.ENV_KEY],t=process.env[ht.ENV_SECRET],n=process.env[ht.ENV_EXPIRATION];return e&&t?Promise.resolve({accessKeyId:e,secretAccessKey:t,sessionToken:process.env[ht.ENV_SESSION],expiration:n?new Date(n):void 0}):Promise.reject(new lX.CredentialsProviderError("Unable to find environment variable credentials."))}}ht.fromEnv=cX});var Ru=p(Iu=>{"use strict";Object.defineProperty(Iu,"__esModule",{value:!0});Iu.httpRequest=void 0;var uy=lt(),dX=require("buffer"),uX=require("http");function mX(e){return new Promise((t,n)=>{var r;let i=uX.request(f(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 uy.ProviderError("Unable to connect to instance metadata service"),s)),i.destroy()}),i.on("timeout",()=>{n(new uy.ProviderError("TimeoutError from instance metadata service")),i.destroy()}),i.on("response",s=>{let{statusCode:a=400}=s;(a<200||300<=a)&&(n(Object.assign(new uy.ProviderError("Error response received from instance metadata service"),{statusCode:a})),i.destroy());let l=[];s.on("data",c=>{l.push(c)}),s.on("end",()=>{t(dX.Buffer.concat(l)),i.destroy()})}),i.end()})}Iu.httpRequest=mX});var my=p(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});vs.fromImdsCredentials=vs.isImdsCredentials=void 0;var fX=e=>Boolean(e)&&typeof e=="object"&&typeof e.AccessKeyId=="string"&&typeof e.SecretAccessKey=="string"&&typeof e.Token=="string"&&typeof e.Expiration=="string";vs.isImdsCredentials=fX;var pX=e=>({accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:new Date(e.Expiration)});vs.fromImdsCredentials=pX});var Nu=p(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.providerConfigFromInit=Un.DEFAULT_MAX_RETRIES=Un.DEFAULT_TIMEOUT=void 0;Un.DEFAULT_TIMEOUT=1e3;Un.DEFAULT_MAX_RETRIES=0;var _X=({maxRetries:e=Un.DEFAULT_MAX_RETRIES,timeout:t=Un.DEFAULT_TIMEOUT})=>({maxRetries:e,timeout:t});Un.providerConfigFromInit=_X});var fy=p(Pu=>{"use strict";Object.defineProperty(Pu,"__esModule",{value:!0});Pu.retry=void 0;var hX=(e,t)=>{let n=e();for(let r=0;r<t;r++)n=n.catch(e);return n};Pu.retry=hX});var JI=p(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.fromContainerMetadata=nt.ENV_CMDS_AUTH_TOKEN=nt.ENV_CMDS_RELATIVE_URI=nt.ENV_CMDS_FULL_URI=void 0;var Du=lt(),gX=require("url"),yX=Ru(),YI=my(),vX=Nu(),bX=fy();nt.ENV_CMDS_FULL_URI="AWS_CONTAINER_CREDENTIALS_FULL_URI";nt.ENV_CMDS_RELATIVE_URI="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";nt.ENV_CMDS_AUTH_TOKEN="AWS_CONTAINER_AUTHORIZATION_TOKEN";var SX=(e={})=>{let{timeout:t,maxRetries:n}=vX.providerConfigFromInit(e);return()=>bX.retry(async()=>{let r=await TX(),i=JSON.parse(await wX(t,r));if(!YI.isImdsCredentials(i))throw new Du.CredentialsProviderError("Invalid response received from instance metadata service.");return YI.fromImdsCredentials(i)},n)};nt.fromContainerMetadata=SX;var wX=async(e,t)=>(process.env[nt.ENV_CMDS_AUTH_TOKEN]&&(t.headers=f(o({},t.headers),{Authorization:process.env[nt.ENV_CMDS_AUTH_TOKEN]})),(await yX.httpRequest(f(o({},t),{timeout:e}))).toString()),EX="169.254.170.2",AX={localhost:!0,"127.0.0.1":!0},CX={"http:":!0,"https:":!0},TX=async()=>{if(process.env[nt.ENV_CMDS_RELATIVE_URI])return{hostname:EX,path:process.env[nt.ENV_CMDS_RELATIVE_URI]};if(process.env[nt.ENV_CMDS_FULL_URI]){let e=gX.parse(process.env[nt.ENV_CMDS_FULL_URI]);if(!e.hostname||!(e.hostname in AX))throw new Du.CredentialsProviderError(`${e.hostname} is not a valid container metadata service hostname`,!1);if(!e.protocol||!(e.protocol in CX))throw new Du.CredentialsProviderError(`${e.protocol} is not a valid container metadata service protocol`,!1);return f(o({},e),{port:e.port?parseInt(e.port,10):void 0})}throw new Du.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${nt.ENV_CMDS_RELATIVE_URI} or ${nt.ENV_CMDS_FULL_URI} environment variable is set`,!1)}});var QI=p(Ou=>{"use strict";Object.defineProperty(Ou,"__esModule",{value:!0});Ou.fromEnv=void 0;var xX=lt(),IX=e=>async()=>{try{let t=e(process.env);if(t===void 0)throw new Error;return t}catch(t){throw new xX.CredentialsProviderError(t.message||`Cannot load config from environment variables with getter: ${e}`)}};Ou.fromEnv=IX});var za=p(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.getHomeDir=xt.loadSharedConfigFiles=xt.ENV_CONFIG_PATH=xt.ENV_CREDENTIALS_PATH=void 0;var RX=require("fs"),NX=require("os"),py=require("path");xt.ENV_CREDENTIALS_PATH="AWS_SHARED_CREDENTIALS_FILE";xt.ENV_CONFIG_PATH="AWS_CONFIG_FILE";var XI=()=>({}),PX=(e={})=>{let{filepath:t=process.env[xt.ENV_CREDENTIALS_PATH]||py.join(xt.getHomeDir(),".aws","credentials"),configFilepath:n=process.env[xt.ENV_CONFIG_PATH]||py.join(xt.getHomeDir(),".aws","config")}=e;return Promise.all([e1(n).then(ZI).then(OX).catch(XI),e1(t).then(ZI).catch(XI)]).then(r=>{let[i,s]=r;return{configFile:i,credentialsFile:s}})};xt.loadSharedConfigFiles=PX;var DX=/^profile\s(["'])?([^\1]+)\1$/,OX=e=>{let t={};for(let n of Object.keys(e)){let r;if(n==="default")t.default=e.default;else if(r=DX.exec(n)){let[i,s,a]=r;a&&(t[a]=e[n])}}return t},LX=["__proto__","profile __proto__"],ZI=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],LX.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},e1=e=>new Promise((t,n)=>{RX.readFile(e,"utf8",(r,i)=>{r?n(r):t(i)})}),qX=()=>{let{HOME:e,USERPROFILE:t,HOMEPATH:n,HOMEDRIVE:r=`C:${py.sep}`}=process.env;return e||t||(n?`${r}${n}`:NX.homedir())};xt.getHomeDir=qX});var t1=p(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});Ei.fromSharedConfigFiles=Ei.ENV_PROFILE=void 0;var MX=lt(),kX=za(),jX="default";Ei.ENV_PROFILE="AWS_PROFILE";var zX=(e,r={})=>{var i=r,{preferredFile:t="config"}=i,n=xr(i,["preferredFile"]);return async()=>{let{loadedConfig:s=kX.loadSharedConfigFiles(n),profile:a=process.env[Ei.ENV_PROFILE]||jX}=n,{configFile:l,credentialsFile:c}=await s,d=c[a]||{},u=l[a]||{},_=t==="config"?o(o({},d),u):o(o({},u),d);try{let g=e(_);if(g===void 0)throw new Error;return g}catch(g){throw new MX.CredentialsProviderError(g.message||`Cannot load config for profile ${a} in SDK configuration files with getter: ${e}`)}}};Ei.fromSharedConfigFiles=zX});var n1=p(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});Lu.fromStatic=void 0;var UX=lt(),FX=e=>typeof e=="function",BX=e=>FX(e)?async()=>await e():UX.fromStatic(e);Lu.fromStatic=BX});var i1=p(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});qu.loadConfig=void 0;var r1=lt(),GX=QI(),$X=t1(),KX=n1(),VX=({environmentVariableSelector:e,configFileSelector:t,default:n},r={})=>r1.memoize(r1.chain(GX.fromEnv(e),$X.fromSharedConfigFiles(t,r),KX.fromStatic(n)));qu.loadConfig=VX});var Ai=p(_y=>{"use strict";Object.defineProperty(_y,"__esModule",{value:!0});var HX=se();HX.__exportStar(i1(),_y)});var s1=p(Mu=>{"use strict";Object.defineProperty(Mu,"__esModule",{value:!0});Mu.parseQueryString=void 0;function WX(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}Mu.parseQueryString=WX});var Ua=p(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});ku.parseUrl=void 0;var YX=s1(),JX=e=>{let{hostname:t,pathname:n,port:r,protocol:i,search:s}=new URL(e),a;return s&&(a=YX.parseQueryString(s)),{hostname:t,port:r?parseInt(r):void 0,protocol:i,path:n,query:a}};ku.parseUrl=JX});var a1=p(Fa=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});Fa.Endpoint=void 0;var QX;(function(e){e.IPv4="http://169.254.169.254",e.IPv6="http://[fd00:ec2::254]"})(QX=Fa.Endpoint||(Fa.Endpoint={}))});var o1=p(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.ENDPOINT_CONFIG_OPTIONS=Fn.CONFIG_ENDPOINT_NAME=Fn.ENV_ENDPOINT_NAME=void 0;Fn.ENV_ENDPOINT_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT";Fn.CONFIG_ENDPOINT_NAME="ec2_metadata_service_endpoint";Fn.ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>e[Fn.ENV_ENDPOINT_NAME],configFileSelector:e=>e[Fn.CONFIG_ENDPOINT_NAME],default:void 0}});var hy=p(Ba=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});Ba.EndpointMode=void 0;var XX;(function(e){e.IPv4="IPv4",e.IPv6="IPv6"})(XX=Ba.EndpointMode||(Ba.EndpointMode={}))});var l1=p(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.ENDPOINT_MODE_CONFIG_OPTIONS=Bn.CONFIG_ENDPOINT_MODE_NAME=Bn.ENV_ENDPOINT_MODE_NAME=void 0;var ZX=hy();Bn.ENV_ENDPOINT_MODE_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";Bn.CONFIG_ENDPOINT_MODE_NAME="ec2_metadata_service_endpoint_mode";Bn.ENDPOINT_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[Bn.ENV_ENDPOINT_MODE_NAME],configFileSelector:e=>e[Bn.CONFIG_ENDPOINT_MODE_NAME],default:ZX.EndpointMode.IPv4}});var yy=p(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});ju.getInstanceMetadataEndpoint=void 0;var c1=Ai(),eZ=Ua(),d1=a1(),tZ=o1(),gy=hy(),nZ=l1(),rZ=async()=>eZ.parseUrl(await iZ()||await sZ());ju.getInstanceMetadataEndpoint=rZ;var iZ=async()=>c1.loadConfig(tZ.ENDPOINT_CONFIG_OPTIONS)(),sZ=async()=>{let e=await c1.loadConfig(nZ.ENDPOINT_MODE_CONFIG_OPTIONS)();switch(e){case gy.EndpointMode.IPv4:return d1.Endpoint.IPv4;case gy.EndpointMode.IPv6:return d1.Endpoint.IPv6;default:throw new Error(`Unsupported endpoint mode: ${e}. Select from ${Object.values(gy.EndpointMode)}`)}}});var p1=p(zu=>{"use strict";Object.defineProperty(zu,"__esModule",{value:!0});zu.fromInstanceMetadata=void 0;var aZ=lt(),vy=Ru(),u1=my(),oZ=Nu(),m1=fy(),lZ=yy(),f1="/latest/meta-data/iam/security-credentials/",cZ="/latest/api/token",dZ=(e={})=>{let t=!1,{timeout:n,maxRetries:r}=oZ.providerConfigFromInit(e),i=async(s,a)=>{let l=(await m1.retry(async()=>{let c;try{c=await mZ(a)}catch(d){throw d.statusCode===401&&(t=!1),d}return c},s)).trim();return m1.retry(async()=>{let c;try{c=await fZ(l,a)}catch(d){throw d.statusCode===401&&(t=!1),d}return c},s)};return async()=>{let s=await lZ.getInstanceMetadataEndpoint();if(t)return i(r,f(o({},s),{timeout:n}));{let a;try{a=(await uZ(f(o({},s),{timeout:n}))).toString()}catch(l){if((l==null?void 0:l.statusCode)===400)throw Object.assign(l,{message:"EC2 Metadata token request returned error"});return(l.message==="TimeoutError"||[403,404,405].includes(l.statusCode))&&(t=!0),i(r,f(o({},s),{timeout:n}))}return i(r,f(o({},s),{headers:{"x-aws-ec2-metadata-token":a},timeout:n}))}}};zu.fromInstanceMetadata=dZ;var uZ=async e=>vy.httpRequest(f(o({},e),{path:cZ,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}})),mZ=async e=>(await vy.httpRequest(f(o({},e),{path:f1}))).toString(),fZ=async(e,t)=>{let n=JSON.parse((await vy.httpRequest(f(o({},t),{path:f1+e}))).toString());if(!u1.isImdsCredentials(n))throw new aZ.CredentialsProviderError("Invalid response received from instance metadata service.");return u1.fromImdsCredentials(n)}});var Uu=p(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.getInstanceMetadataEndpoint=cr.httpRequest=void 0;var by=se();by.__exportStar(JI(),cr);by.__exportStar(p1(),cr);by.__exportStar(Nu(),cr);var pZ=Ru();Object.defineProperty(cr,"httpRequest",{enumerable:!0,get:function(){return pZ.httpRequest}});var _Z=yy();Object.defineProperty(cr,"getInstanceMetadataEndpoint",{enumerable:!0,get:function(){return _Z.getInstanceMetadataEndpoint}})});var Ss=p(ve=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0});ve.LogoutRequest=ve.ListAccountsResponse=ve.ListAccountsRequest=ve.ListAccountRolesResponse=ve.RoleInfo=ve.ListAccountRolesRequest=ve.GetRoleCredentialsResponse=ve.RoleCredentials=ve.GetRoleCredentialsRequest=ve.AccountInfo=void 0;var bs=q(),hZ;(function(e){e.filterSensitiveLog=t=>o({},t)})(hZ=ve.AccountInfo||(ve.AccountInfo={}));var gZ;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.accessToken&&{accessToken:bs.SENSITIVE_STRING})})(gZ=ve.GetRoleCredentialsRequest||(ve.GetRoleCredentialsRequest={}));var _1;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.secretAccessKey&&{secretAccessKey:bs.SENSITIVE_STRING}),t.sessionToken&&{sessionToken:bs.SENSITIVE_STRING})})(_1=ve.RoleCredentials||(ve.RoleCredentials={}));var yZ;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.roleCredentials&&{roleCredentials:_1.filterSensitiveLog(t.roleCredentials)})})(yZ=ve.GetRoleCredentialsResponse||(ve.GetRoleCredentialsResponse={}));var vZ;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.accessToken&&{accessToken:bs.SENSITIVE_STRING})})(vZ=ve.ListAccountRolesRequest||(ve.ListAccountRolesRequest={}));var bZ;(function(e){e.filterSensitiveLog=t=>o({},t)})(bZ=ve.RoleInfo||(ve.RoleInfo={}));var SZ;(function(e){e.filterSensitiveLog=t=>o({},t)})(SZ=ve.ListAccountRolesResponse||(ve.ListAccountRolesResponse={}));var wZ;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.accessToken&&{accessToken:bs.SENSITIVE_STRING})})(wZ=ve.ListAccountsRequest||(ve.ListAccountsRequest={}));var EZ;(function(e){e.filterSensitiveLog=t=>o({},t)})(EZ=ve.ListAccountsResponse||(ve.ListAccountsResponse={}));var AZ;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.accessToken&&{accessToken:bs.SENSITIVE_STRING})})(AZ=ve.LogoutRequest||(ve.LogoutRequest={}))});var Ga=p(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.deserializeAws_restJson1LogoutCommand=rt.deserializeAws_restJson1ListAccountsCommand=rt.deserializeAws_restJson1ListAccountRolesCommand=rt.deserializeAws_restJson1GetRoleCredentialsCommand=rt.serializeAws_restJson1LogoutCommand=rt.serializeAws_restJson1ListAccountsCommand=rt.serializeAws_restJson1ListAccountRolesCommand=rt.serializeAws_restJson1GetRoleCredentialsCommand=void 0;var Fu=jt(),ze=q(),CZ=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),a=o({},Ku(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}),l=`${(s==null?void 0: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}),d;return new Fu.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:a,path:l,query:c,body:d})};rt.serializeAws_restJson1GetRoleCredentialsCommand=CZ;var TZ=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),a=o({},Ku(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}),l=`${(s==null?void 0: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}),d;return new Fu.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:a,path:l,query:c,body:d})};rt.serializeAws_restJson1ListAccountRolesCommand=TZ;var xZ=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),a=o({},Ku(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}),l=`${(s==null?void 0: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()}),d;return new Fu.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:a,path:l,query:c,body:d})};rt.serializeAws_restJson1ListAccountsCommand=xZ;var IZ=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),a=o({},Ku(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}),l=`${(s==null?void 0:s.endsWith("/"))?s.slice(0,-1):s||""}/logout`,c;return new Fu.HttpRequest({protocol:r,hostname:n,port:i,method:"POST",headers:a,path:l,body:c})};rt.serializeAws_restJson1LogoutCommand=IZ;var RZ=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return NZ(e,t);let n={$metadata:Te(e),roleCredentials:void 0},r=ze.expectNonNull(ze.expectObject(await Ci(e.body,t)),"body");return r.roleCredentials!==void 0&&r.roleCredentials!==null&&(n.roleCredentials=zZ(r.roleCredentials,t)),Promise.resolve(n)};rt.deserializeAws_restJson1GetRoleCredentialsCommand=RZ;var NZ=async(e,t)=>{let n=f(o({},e),{body:await Ci(e.body,t)}),r,i="UnknownError";switch(i=Vu(e,n.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":r=f(o({},await Bu(n,t)),{name:i,$metadata:Te(e)});break;case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":r=f(o({},await Sy(n,t)),{name:i,$metadata:Te(e)});break;case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":r=f(o({},await Gu(n,t)),{name:i,$metadata:Te(e)});break;case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":r=f(o({},await $u(n,t)),{name:i,$metadata:Te(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:Te(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},PZ=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return DZ(e,t);let n={$metadata:Te(e),nextToken:void 0,roleList:void 0},r=ze.expectNonNull(ze.expectObject(await Ci(e.body,t)),"body");return r.nextToken!==void 0&&r.nextToken!==null&&(n.nextToken=ze.expectString(r.nextToken)),r.roleList!==void 0&&r.roleList!==null&&(n.roleList=FZ(r.roleList,t)),Promise.resolve(n)};rt.deserializeAws_restJson1ListAccountRolesCommand=PZ;var DZ=async(e,t)=>{let n=f(o({},e),{body:await Ci(e.body,t)}),r,i="UnknownError";switch(i=Vu(e,n.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":r=f(o({},await Bu(n,t)),{name:i,$metadata:Te(e)});break;case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":r=f(o({},await Sy(n,t)),{name:i,$metadata:Te(e)});break;case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":r=f(o({},await Gu(n,t)),{name:i,$metadata:Te(e)});break;case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":r=f(o({},await $u(n,t)),{name:i,$metadata:Te(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:Te(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},OZ=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return LZ(e,t);let n={$metadata:Te(e),accountList:void 0,nextToken:void 0},r=ze.expectNonNull(ze.expectObject(await Ci(e.body,t)),"body");return r.accountList!==void 0&&r.accountList!==null&&(n.accountList=jZ(r.accountList,t)),r.nextToken!==void 0&&r.nextToken!==null&&(n.nextToken=ze.expectString(r.nextToken)),Promise.resolve(n)};rt.deserializeAws_restJson1ListAccountsCommand=OZ;var LZ=async(e,t)=>{let n=f(o({},e),{body:await Ci(e.body,t)}),r,i="UnknownError";switch(i=Vu(e,n.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":r=f(o({},await Bu(n,t)),{name:i,$metadata:Te(e)});break;case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":r=f(o({},await Sy(n,t)),{name:i,$metadata:Te(e)});break;case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":r=f(o({},await Gu(n,t)),{name:i,$metadata:Te(e)});break;case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":r=f(o({},await $u(n,t)),{name:i,$metadata:Te(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:Te(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},qZ=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return MZ(e,t);let n={$metadata:Te(e)};return await h1(e.body,t),Promise.resolve(n)};rt.deserializeAws_restJson1LogoutCommand=qZ;var MZ=async(e,t)=>{let n=f(o({},e),{body:await Ci(e.body,t)}),r,i="UnknownError";switch(i=Vu(e,n.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":r=f(o({},await Bu(n,t)),{name:i,$metadata:Te(e)});break;case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":r=f(o({},await Gu(n,t)),{name:i,$metadata:Te(e)});break;case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":r=f(o({},await $u(n,t)),{name:i,$metadata:Te(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:Te(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},Bu=async(e,t)=>{let n={name:"InvalidRequestException",$fault:"client",$metadata:Te(e),message:void 0},r=e.body;return r.message!==void 0&&r.message!==null&&(n.message=ze.expectString(r.message)),n},Sy=async(e,t)=>{let n={name:"ResourceNotFoundException",$fault:"client",$metadata:Te(e),message:void 0},r=e.body;return r.message!==void 0&&r.message!==null&&(n.message=ze.expectString(r.message)),n},Gu=async(e,t)=>{let n={name:"TooManyRequestsException",$fault:"client",$metadata:Te(e),message:void 0},r=e.body;return r.message!==void 0&&r.message!==null&&(n.message=ze.expectString(r.message)),n},$u=async(e,t)=>{let n={name:"UnauthorizedException",$fault:"client",$metadata:Te(e),message:void 0},r=e.body;return r.message!==void 0&&r.message!==null&&(n.message=ze.expectString(r.message)),n},kZ=(e,t)=>({accountId:ze.expectString(e.accountId),accountName:ze.expectString(e.accountName),emailAddress:ze.expectString(e.emailAddress)}),jZ=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:kZ(n,t)),zZ=(e,t)=>({accessKeyId:ze.expectString(e.accessKeyId),expiration:ze.expectLong(e.expiration),secretAccessKey:ze.expectString(e.secretAccessKey),sessionToken:ze.expectString(e.sessionToken)}),UZ=(e,t)=>({accountId:ze.expectString(e.accountId),roleName:ze.expectString(e.roleName)}),FZ=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:UZ(n,t)),Te=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"]}},h1=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),BZ=(e,t)=>h1(e,t).then(n=>t.utf8Encoder(n)),Ku=e=>e!=null&&e!==""&&(!Object.getOwnPropertyNames(e).includes("length")||e.length!=0)&&(!Object.getOwnPropertyNames(e).includes("size")||e.size!=0),Ci=(e,t)=>BZ(e,t).then(n=>n.length?JSON.parse(n):{}),Vu=(e,t)=>{let n=(s,a)=>Object.keys(s).find(l=>l.toLowerCase()===a.toLowerCase()),r=s=>{let a=s;return a.indexOf(":")>=0&&(a=a.split(":")[0]),a.indexOf("#")>=0&&(a=a.split("#")[1]),a},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 wy=p(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{value:!0});Hu.GetRoleCredentialsCommand=void 0;var GZ=B(),$Z=q(),g1=Ss(),y1=Ga(),v1=class extends $Z.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(GZ.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"SSOClient",commandName:"GetRoleCredentialsCommand",inputFilterSensitiveLog:g1.GetRoleCredentialsRequest.filterSensitiveLog,outputFilterSensitiveLog:g1.GetRoleCredentialsResponse.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return y1.serializeAws_restJson1GetRoleCredentialsCommand(t,n)}deserialize(t,n){return y1.deserializeAws_restJson1GetRoleCredentialsCommand(t,n)}};Hu.GetRoleCredentialsCommand=v1});var Yu=p(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});Wu.ListAccountRolesCommand=void 0;var KZ=B(),VZ=q(),b1=Ss(),S1=Ga(),w1=class extends VZ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(KZ.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"SSOClient",commandName:"ListAccountRolesCommand",inputFilterSensitiveLog:b1.ListAccountRolesRequest.filterSensitiveLog,outputFilterSensitiveLog:b1.ListAccountRolesResponse.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return S1.serializeAws_restJson1ListAccountRolesCommand(t,n)}deserialize(t,n){return S1.deserializeAws_restJson1ListAccountRolesCommand(t,n)}};Wu.ListAccountRolesCommand=w1});var Qu=p(Ju=>{"use strict";Object.defineProperty(Ju,"__esModule",{value:!0});Ju.ListAccountsCommand=void 0;var HZ=B(),WZ=q(),E1=Ss(),A1=Ga(),C1=class extends WZ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(HZ.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"SSOClient",commandName:"ListAccountsCommand",inputFilterSensitiveLog:E1.ListAccountsRequest.filterSensitiveLog,outputFilterSensitiveLog:E1.ListAccountsResponse.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return A1.serializeAws_restJson1ListAccountsCommand(t,n)}deserialize(t,n){return A1.deserializeAws_restJson1ListAccountsCommand(t,n)}};Ju.ListAccountsCommand=C1});var Ey=p(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});Xu.LogoutCommand=void 0;var YZ=B(),JZ=q(),QZ=Ss(),T1=Ga(),x1=class extends JZ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(YZ.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"SSOClient",commandName:"LogoutCommand",inputFilterSensitiveLog:QZ.LogoutRequest.filterSensitiveLog,outputFilterSensitiveLog:u=>u},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return T1.serializeAws_restJson1LogoutCommand(t,n)}deserialize(t,n){return T1.deserializeAws_restJson1LogoutCommand(t,n)}};Xu.LogoutCommand=x1});var I1=p((Ube,XZ)=>{XZ.exports={name:"@aws-sdk/client-sso",description:"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",version:"3.47.0",scripts:{build:"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-*"},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.47.0","@aws-sdk/fetch-http-handler":"3.47.0","@aws-sdk/hash-node":"3.47.0","@aws-sdk/invalid-dependency":"3.47.0","@aws-sdk/middleware-content-length":"3.47.0","@aws-sdk/middleware-host-header":"3.47.0","@aws-sdk/middleware-logger":"3.47.0","@aws-sdk/middleware-retry":"3.47.0","@aws-sdk/middleware-serde":"3.47.0","@aws-sdk/middleware-stack":"3.47.0","@aws-sdk/middleware-user-agent":"3.47.0","@aws-sdk/node-config-provider":"3.47.0","@aws-sdk/node-http-handler":"3.47.0","@aws-sdk/protocol-http":"3.47.0","@aws-sdk/smithy-client":"3.47.0","@aws-sdk/types":"3.47.0","@aws-sdk/url-parser":"3.47.0","@aws-sdk/util-base64-browser":"3.47.0","@aws-sdk/util-base64-node":"3.47.0","@aws-sdk/util-body-length-browser":"3.47.0","@aws-sdk/util-body-length-node":"3.47.0","@aws-sdk/util-defaults-mode-browser":"3.47.0","@aws-sdk/util-defaults-mode-node":"3.47.0","@aws-sdk/util-user-agent-browser":"3.47.0","@aws-sdk/util-user-agent-node":"3.47.0","@aws-sdk/util-utf8-browser":"3.47.0","@aws-sdk/util-utf8-node":"3.47.0",tslib:"^2.3.0"},devDependencies:{"@aws-sdk/service-client-documentation-generator":"3.47.0","@types/node":"^12.7.5"},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 Zu=p(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});ws.fromString=ws.fromArrayBuffer=void 0;var ZZ=qg(),Ay=require("buffer"),eee=(e,t=0,n=e.byteLength-t)=>{if(!ZZ.isArrayBuffer(e))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`);return Ay.Buffer.from(e,t,n)};ws.fromArrayBuffer=eee;var tee=(e,t)=>{if(typeof e!="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`);return t?Ay.Buffer.from(e,t):Ay.Buffer.from(e)};ws.fromString=tee});var tm=p(em=>{"use strict";Object.defineProperty(em,"__esModule",{value:!0});em.Hash=void 0;var Cy=Zu(),nee=require("buffer"),R1=require("crypto"),N1=class{constructor(t,n){this.hash=n?R1.createHmac(t,P1(n)):R1.createHash(t)}update(t,n){this.hash.update(P1(t,n))}digest(){return Promise.resolve(this.hash.digest())}};em.Hash=N1;function P1(e,t){return nee.Buffer.isBuffer(e)?e:typeof e=="string"?Cy.fromString(e,t):ArrayBuffer.isView(e)?Cy.fromArrayBuffer(e.buffer,e.byteOffset,e.byteLength):Cy.fromArrayBuffer(e)}});var xy=p(nm=>{"use strict";Object.defineProperty(nm,"__esModule",{value:!0});nm.buildQueryString=void 0;var Ty=Og();function ree(e){let t=[];for(let n of Object.keys(e).sort()){let r=e[n];if(n=Ty.escapeUri(n),Array.isArray(r))for(let i=0,s=r.length;i<s;i++)t.push(`${n}=${Ty.escapeUri(r[i])}`);else{let i=n;(r||typeof r=="string")&&(i+=`=${Ty.escapeUri(r)}`),t.push(i)}}return t.join("&")}nm.buildQueryString=ree});var D1=p(rm=>{"use strict";Object.defineProperty(rm,"__esModule",{value:!0});rm.NODEJS_TIMEOUT_ERROR_CODES=void 0;rm.NODEJS_TIMEOUT_ERROR_CODES=["ECONNRESET","EPIPE","ETIMEDOUT"]});var Iy=p(im=>{"use strict";Object.defineProperty(im,"__esModule",{value:!0});im.getTransformedHeaders=void 0;var iee=e=>{let t={};for(let n of Object.keys(e)){let r=e[n];t[n]=Array.isArray(r)?r.join(","):r}return t};im.getTransformedHeaders=iee});var O1=p(sm=>{"use strict";Object.defineProperty(sm,"__esModule",{value:!0});sm.setConnectionTimeout=void 0;var see=(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)})}})};sm.setConnectionTimeout=see});var L1=p(am=>{"use strict";Object.defineProperty(am,"__esModule",{value:!0});am.setSocketTimeout=void 0;var aee=(e,t,n=0)=>{e.setTimeout(n,()=>{e.destroy(),t(Object.assign(new Error(`Connection timed out after ${n} ms`),{name:"TimeoutError"}))})};am.setSocketTimeout=aee});var Ry=p(om=>{"use strict";Object.defineProperty(om,"__esModule",{value:!0});om.writeRequestBody=void 0;var oee=require("stream");function lee(e,t){(t.headers.Expect||t.headers.expect)==="100-continue"?e.on("continue",()=>{q1(e,t.body)}):q1(e,t.body)}om.writeRequestBody=lee;function q1(e,t){t instanceof oee.Readable?t.pipe(e):t?e.end(Buffer.from(t)):e.end()}});var z1=p(lm=>{"use strict";Object.defineProperty(lm,"__esModule",{value:!0});lm.NodeHttpHandler=void 0;var cee=jt(),dee=xy(),M1=require("http"),k1=require("https"),uee=D1(),mee=Iy(),fee=O1(),pee=L1(),_ee=Ry(),j1=class{constructor(t){this.metadata={handlerProtocol:"http/1.1"},typeof t=="function"?this.configProvider=async()=>this.resolveDefaultConfig(await t()):this.config=this.resolveDefaultConfig(t)}resolveDefaultConfig(t){let{connectionTimeout:n,socketTimeout:r,httpAgent:i,httpsAgent:s}=t||{},a=!0,l=50;return{connectionTimeout:n,socketTimeout:r,httpAgent:i||new M1.Agent({keepAlive:a,maxSockets:l}),httpsAgent:s||new k1.Agent({keepAlive:a,maxSockets:l})}}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.configProvider&&(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?void 0:n.aborted){let u=new Error("Request aborted");u.name="AbortError",i(u);return}let s=t.protocol==="https:",a=dee.buildQueryString(t.query||{}),l={headers:t.headers,host:t.hostname,method:t.method,path:a?`${t.path}?${a}`:t.path,port:t.port,agent:s?this.config.httpsAgent:this.config.httpAgent},d=(s?k1.request:M1.request)(l,u=>{let _=new cee.HttpResponse({statusCode:u.statusCode||-1,headers:mee.getTransformedHeaders(u.headers),body:u});r({response:_})});d.on("error",u=>{uee.NODEJS_TIMEOUT_ERROR_CODES.includes(u.code)?i(Object.assign(u,{name:"TimeoutError"})):i(u)}),fee.setConnectionTimeout(d,i,this.config.connectionTimeout),pee.setSocketTimeout(d,i,this.config.socketTimeout),n&&(n.onabort=()=>{d.abort();let u=new Error("Request aborted");u.name="AbortError",i(u)}),_ee.writeRequestBody(d,t)})}};lm.NodeHttpHandler=j1});var F1=p(cm=>{"use strict";Object.defineProperty(cm,"__esModule",{value:!0});cm.NodeHttp2Handler=void 0;var hee=jt(),gee=xy(),Ny=require("http2"),yee=Iy(),vee=Ry(),U1=class{constructor({requestTimeout:t,sessionTimeout:n,disableConcurrentStreams:r}={}){this.metadata={handlerProtocol:"h2"},this.requestTimeout=t,this.sessionTimeout=n,this.disableConcurrentStreams=r,this.sessionCache=new Map}destroy(){for(let t of this.sessionCache.values())t.forEach(n=>this.destroySession(n));this.sessionCache.clear()}handle(t,{abortSignal:n}={}){return new Promise((r,i)=>{let s=!1;if(n==null?void 0:n.aborted){s=!0;let x=new Error("Request aborted");x.name="AbortError",i(x);return}let{hostname:a,method:l,port:c,protocol:d,path:u,query:_}=t,g=`${d}//${a}${c?`:${c}`:""}`,b=this.getSession(g,this.disableConcurrentStreams||!1),S=x=>{this.disableConcurrentStreams&&this.destroySession(b),s=!0,i(x)},v=gee.buildQueryString(_||{}),I=b.request(f(o({},t.headers),{[Ny.constants.HTTP2_HEADER_PATH]:v?`${u}?${v}`:u,[Ny.constants.HTTP2_HEADER_METHOD]:l}));I.on("response",x=>{let re=new hee.HttpResponse({statusCode:x[":status"]||-1,headers:yee.getTransformedHeaders(x),body:I});s=!0,r({response:re}),this.disableConcurrentStreams&&(b.close(),this.deleteSessionFromCache(g,b))});let L=this.requestTimeout;L&&I.setTimeout(L,()=>{I.close();let x=new Error(`Stream timed out because of no activity for ${L} ms`);x.name="TimeoutError",S(x)}),n&&(n.onabort=()=>{I.close();let x=new Error("Request aborted");x.name="AbortError",S(x)}),I.on("frameError",(x,re,be)=>{S(new Error(`Frame type id ${x} in stream id ${be} has failed with code ${re}.`))}),I.on("error",S),I.on("aborted",()=>{S(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${I.rstCode}.`))}),I.on("close",()=>{this.disableConcurrentStreams&&b.destroy(),s||S(new Error("Unexpected error: http2 request did not get a response"))}),vee.writeRequestBody(I,t)})}getSession(t,n){let r=this.sessionCache,i=r.get(t)||[];if(i.length>0&&!n)return i[0];let s=Ny.connect(t),a=()=>{this.destroySession(s),this.deleteSessionFromCache(t,s)};s.on("goaway",a),s.on("error",a),s.on("frameError",a);let l=this.sessionTimeout;return l&&s.setTimeout(l,a),i.push(s),r.set(t,i),s}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))}};cm.NodeHttp2Handler=U1});var G1=p(dm=>{"use strict";Object.defineProperty(dm,"__esModule",{value:!0});dm.Collector=void 0;var bee=require("stream"),B1=class extends bee.Writable{constructor(){super(...arguments);this.bufferedBytes=[]}_write(t,n,r){this.bufferedBytes.push(t),r()}};dm.Collector=B1});var $1=p(um=>{"use strict";Object.defineProperty(um,"__esModule",{value:!0});um.streamCollector=void 0;var See=G1(),wee=e=>new Promise((t,n)=>{let r=new See.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)})});um.streamCollector=wee});var mm=p($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});var Py=se();Py.__exportStar(z1(),$a);Py.__exportStar(F1(),$a);Py.__exportStar($1(),$a)});var fm=p(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.toBase64=Es.fromBase64=void 0;var K1=Zu(),Eee=/^[A-Za-z0-9+/]*={0,2}$/;function Aee(e){if(e.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!Eee.exec(e))throw new TypeError("Invalid base64 string.");let t=K1.fromString(e,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}Es.fromBase64=Aee;function Cee(e){return K1.fromArrayBuffer(e.buffer,e.byteOffset,e.byteLength).toString("base64")}Es.toBase64=Cee});var _m=p(pm=>{"use strict";Object.defineProperty(pm,"__esModule",{value:!0});pm.calculateBodyLength=void 0;var Tee=require("fs");function xee(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")return Tee.lstatSync(e.path).size}pm.calculateBodyLength=xee});var V1=p((nSe,Iee)=>{Iee.exports={name:"aws-crt",version:"1.10.5",description:"NodeJS/browser bindings to the aws-c-* libraries",homepage:"https://github.com/awslabs/aws-crt-nodejs",repository:"github:awslabs/aws-crt-nodejs",contributors:["AWS Common Runtime Team <aws-sdk-common-runtime@amazon.com>"],license:"Apache-2.0",main:"./dist/index.js",browser:"./dist.browser/browser.js",types:"./dist/index.d.ts",scripts:{tsc:"node ./scripts/tsc.js",test:"npm run test:native","test:node":"npm run test:native","test:native":"npx jest --runInBand --verbose --config test/native/jest.config.js --forceExit","test:browser":"npx jest --runInBand --verbose --config test/browser/jest.config.js --forceExit","test:browser:ci":"npm run install:puppeteer && npm run test:browser","install:puppeteer":"npm install --save-dev jest-puppeteer puppeteer @types/puppeteer",prepare:"node ./scripts/tsc.js && node ./scripts/build.js",install:"node ./scripts/install.js"},devDependencies:{"@types/crypto-js":"^3.1.43","@types/jest":"^27.0.1","@types/node":"^10.17.54","@types/puppeteer":"^5.4.4","@types/uuid":"^3.4.8","@types/ws":"^7.4.7","aws-sdk":"^2.848.0",jest:"^27.2.1","jest-puppeteer":"^5.0.4","jest-runtime":"^27.2.1",puppeteer:"^3.3.0","ts-jest":"^27.0.5",typedoc:"^0.17.8","typedoc-plugin-as-member-of":"^1.0.2","typedoc-plugin-external-module-name":"^4.0.6","typedoc-plugin-remove-references":"^0.0.5",typescript:"^3.9.9",uuid:"^8.3.2",yargs:"^17.2.1"},dependencies:{axios:"^0.21.4","cmake-js":"6.3.0","crypto-js":"^4.0.0",fastestsmallesttextencoderdecoder:"^1.0.22","@httptoolkit/websocket-stream":"^6.0.0",mqtt:"^4.2.8",tar:"^6.1.11",ws:"^7.5.5"}}});var Dy=p(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.crt_version=Gn.package_info=Gn.is_browser=Gn.is_nodejs=void 0;function H1(){return typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node!="undefined"}Gn.is_nodejs=H1;function Ree(){return!H1()}Gn.is_browser=Ree;function W1(){try{return V1()}catch{return{name:"aws-crt-nodejs",version:"UNKNOWN"}}}Gn.package_info=W1;function Nee(){return W1().version}Gn.crt_version=Nee});var Y1=p(As=>{"use strict";var Pee=As&&As.__awaiter||function(e,t,n,r){function i(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function l(u){try{d(r.next(u))}catch(_){a(_)}}function c(u){try{d(r.throw(u))}catch(_){a(_)}}function d(u){u.done?s(u.value):i(u.value).then(l,c)}d((r=r.apply(e,t||[])).next())})};Object.defineProperty(As,"__esModule",{value:!0});As.using=void 0;function Dee(e,t){return Pee(this,void 0,void 0,function*(){try{yield t(e)}finally{e.close()}})}As.using=Dee});var Br=p(dr=>{"use strict";var Oee=dr&&dr.__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]}),Lee=dr&&dr.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),qee=dr&&dr.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.hasOwnProperty.call(e,n)&&Oee(t,e,n);return Lee(t,e),t};Object.defineProperty(dr,"__esModule",{value:!0});var Ka=qee(require("path")),J1=require("os"),Q1=require("fs"),X1=require("process"),Z1="Please upgrade to node >=10.16.0, or use the provided browser implementation.";if("napi"in X1.versions){if(parseInt(X1.versions.napi)<4)throw new Error("The AWS CRT native implementation requires that NAPI version 4 be present. "+Z1)}else throw new Error("The current runtime is not reporting an NAPI version. "+Z1);var eR="aws-crt-nodejs",Mee=`${J1.platform}-${J1.arch}`,Oy=Ka.resolve(__dirname,"..",".."),tR=Ka.join(Oy,"dist");Q1.existsSync(tR)&&(Oy=tR);var nR=Ka.resolve(Oy,"bin"),rR=[Ka.join(nR,"native",eR),Ka.join(nR,Mee,eR)],Ly;for(let e of rR)if(Q1.existsSync(e+".node")){Ly=require(e);break}if(Ly==null)throw new Error(`AWS CRT binary not present in any of the following locations:
28
- `+rR.join(`
29
- `));dr.default=Ly});var sR=p(Gr=>{"use strict";var kee=Gr&&Gr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Gr,"__esModule",{value:!0});Gr.native_memory_dump=Gr.native_memory=void 0;var iR=kee(Br());function jee(){return iR.default.native_memory()}Gr.native_memory=jee;function zee(){return iR.default.native_memory_dump()}Gr.native_memory_dump=zee});var Va=p(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.NativeResourceMixin=Cs.NativeResource=void 0;var aR=class{constructor(t){this.handle=t}native_handle(){return this.handle}};Cs.NativeResource=aR;function Uee(e){return class extends e{constructor(...t){let n=t.shift();super(...t);this._handle=n}_super(t){this._handle=t}native_handle(){return this._handle}}}Cs.NativeResourceMixin=Uee});var qy=p(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.SocketDomain=_n.SocketType=_n.TlsVersion=void 0;var Fee;(function(e){e[e.SSLv3=0]="SSLv3",e[e.TLSv1=1]="TLSv1",e[e.TLSv1_1=2]="TLSv1_1",e[e.TLSv1_2=3]="TLSv1_2",e[e.TLSv1_3=4]="TLSv1_3",e[e.Default=128]="Default"})(Fee=_n.TlsVersion||(_n.TlsVersion={}));var Bee;(function(e){e[e.STREAM=0]="STREAM",e[e.DGRAM=1]="DGRAM"})(Bee=_n.SocketType||(_n.SocketType={}));var Gee;(function(e){e[e.IPV4=0]="IPV4",e[e.IPV6=1]="IPV6",e[e.LOCAL=2]="LOCAL"})(Gee=_n.SocketDomain||(_n.SocketDomain={}))});var gm=p(_e=>{"use strict";var $ee=_e&&_e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_e,"__esModule",{value:!0});_e.TlsConnectionOptions=_e.ServerTlsContext=_e.ClientTlsContext=_e.TlsContext=_e.TlsContextOptions=_e.SocketOptions=_e.ClientBootstrap=_e.InputStream=_e.is_alpn_available=_e.enable_logging=_e.LogLevel=_e.error_code_to_name=_e.error_code_to_string=void 0;var hn=$ee(Br()),Ha=Va(),My=qy(),ky=qy();Object.defineProperty(_e,"TlsVersion",{enumerable:!0,get:function(){return ky.TlsVersion}});Object.defineProperty(_e,"SocketType",{enumerable:!0,get:function(){return ky.SocketType}});Object.defineProperty(_e,"SocketDomain",{enumerable:!0,get:function(){return ky.SocketDomain}});function Kee(e){return hn.default.error_code_to_string(e)}_e.error_code_to_string=Kee;function Vee(e){return hn.default.error_code_to_name(e)}_e.error_code_to_name=Vee;var Hee;(function(e){e[e.NONE=0]="NONE",e[e.FATAL=1]="FATAL",e[e.ERROR=2]="ERROR",e[e.WARN=3]="WARN",e[e.INFO=4]="INFO",e[e.DEBUG=5]="DEBUG",e[e.TRACE=6]="TRACE"})(Hee=_e.LogLevel||(_e.LogLevel={}));function Wee(e){hn.default.io_logging_enable(e)}_e.enable_logging=Wee;function Yee(){return hn.default.is_alpn_available()}_e.is_alpn_available=Yee;var oR=class extends Ha.NativeResource{constructor(t){super(hn.default.io_input_stream_new(16*1024));this.source=t,this.source.on("data",n=>{n=Buffer.isBuffer(n)?n:new Buffer(n.toString(),"utf8"),hn.default.io_input_stream_append(this.native_handle(),n)}),this.source.on("end",()=>{hn.default.io_input_stream_append(this.native_handle(),void 0)})}};_e.InputStream=oR;var lR=class extends Ha.NativeResource{constructor(){super(hn.default.io_client_bootstrap_new())}};_e.ClientBootstrap=lR;var cR=class extends Ha.NativeResource{constructor(t=My.SocketType.STREAM,n=My.SocketDomain.IPV6,r=5e3,i=!1,s=0,a=0,l=0){super(hn.default.io_socket_options_new(t,n,r,s,a,l,i))}};_e.SocketOptions=cR;var $n=class{constructor(){this.min_tls_version=My.TlsVersion.Default,this.alpn_list=[],this.verify_peer=!0}override_default_trust_store_from_path(t,n){this.ca_dirpath=t,this.ca_filepath=n}override_default_trust_store(t){this.certificate_authority=t}static create_client_with_mtls(t,n){let r=new $n;return r.certificate=t,r.private_key=n,r.verify_peer=!0,r}static create_client_with_mtls_from_path(t,n){let r=new $n;return r.certificate_filepath=t,r.private_key_filepath=n,r.verify_peer=!0,r}static create_client_with_mtls_pkcs_from_path(t,n){let r=new $n;return r.pkcs12_filepath=t,r.pkcs12_password=n,r.verify_peer=!0,r}static create_server_with_mtls_from_path(t,n){let r=new $n;return r.certificate_filepath=t,r.private_key_filepath=n,r.verify_peer=!1,r}static create_server_with_mtls_pkcs_from_path(t,n){let r=new $n;return r.pkcs12_filepath=t,r.pkcs12_password=n,r.verify_peer=!1,r}};_e.TlsContextOptions=$n;var hm=class extends Ha.NativeResource{constructor(t){super(hn.default.io_tls_ctx_new(t.min_tls_version,t.ca_filepath,t.ca_dirpath,t.certificate_authority,t.alpn_list&&t.alpn_list.length>0?t.alpn_list.join(";"):void 0,t.certificate_filepath,t.certificate,t.private_key_filepath,t.private_key,t.pkcs12_filepath,t.pkcs12_password,t.verify_peer))}};_e.TlsContext=hm;var dR=class extends hm{constructor(t){t||(t=new $n,t.verify_peer=!0);super(t)}};_e.ClientTlsContext=dR;var uR=class extends hm{constructor(t){t||(t=new $n,t.verify_peer=!1);super(t)}};_e.ServerTlsContext=uR;var mR=class extends Ha.NativeResource{constructor(t,n,r=[]){super(hn.default.io_tls_connection_options_new(t.native_handle(),n,r&&r.length>0?r.join(";"):void 0));this.tls_ctx=t,this.server_name=n,this.alpn_list=r}};_e.TlsConnectionOptions=mR});var jy=p(ym=>{"use strict";Object.defineProperty(ym,"__esModule",{value:!0});ym.BufferedEventEmitter=void 0;var Jee=require("events"),fR=class{constructor(t,n){this.event=t,this.args=n}},pR=class extends Jee.EventEmitter{constructor(){super();this.corked=!1}cork(){this.corked=!0}uncork(){for(this.corked=!1;this.eventQueue;){let t=this.eventQueue;super.emit(t.event,...t.args),this.eventQueue=this.eventQueue.next}}emit(t,...n){if(this.corked){let r=this.lastQueuedEvent;return this.lastQueuedEvent=new fR(t,n),r?r.next=this.lastQueuedEvent:this.eventQueue=this.lastQueuedEvent,this.listeners(t).length>0}return super.emit(t,...n)}};ym.BufferedEventEmitter=pR});var Ya=p(Ts=>{"use strict";var Qee=Ts&&Ts.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ts,"__esModule",{value:!0});Ts.CrtError=void 0;var _R=Qee(Br()),zy=require("util"),Wa=class extends Error{constructor(t){super(Xee(t));this.error=t,this.error_code=Zee(t),this.error_name=ete(t)}};Ts.CrtError=Wa;function Xee(e){return zy.isNumber(e)?_R.default.error_code_to_string(e):e instanceof Wa?e.message:e.toString()}function Zee(e){if(zy.isNumber(e))return e;if(e instanceof Wa)return e.error_code}function ete(e){if(zy.isNumber(e))return _R.default.error_code_to_name(e);if(e instanceof Wa)return e.error_name}});var Uy=p(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.CommonHttpProxyOptions=Kn.HttpProxyAuthenticationType=Kn.HttpVersion=void 0;var tte;(function(e){e[e.Unknown=0]="Unknown",e[e.Http1_0=1]="Http1_0",e[e.Http1_1=2]="Http1_1",e[e.Http2=3]="Http2"})(tte=Kn.HttpVersion||(Kn.HttpVersion={}));var hR;(function(e){e[e.None=0]="None",e[e.Basic=1]="Basic"})(hR=Kn.HttpProxyAuthenticationType||(Kn.HttpProxyAuthenticationType={}));var gR=class{constructor(t,n,r=hR.None,i,s){this.host_name=t,this.port=n,this.auth_method=r,this.auth_username=i,this.auth_password=s}};Kn.CommonHttpProxyOptions=gR});var Vy=p(Pe=>{"use strict";var nte=Pe&&Pe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Pe,"__esModule",{value:!0});Pe.HttpClientConnectionManager=Pe.HttpClientStream=Pe.HttpStream=Pe.HttpClientConnection=Pe.HttpProxyOptions=Pe.HttpProxyConnectionType=Pe.HttpConnection=Pe.HttpRequest=Pe.HttpHeaders=void 0;var tn=nte(Br()),Fy=Va(),vm=Ya(),yR=Uy(),rte=Uy();Object.defineProperty(Pe,"HttpProxyAuthenticationType",{enumerable:!0,get:function(){return rte.HttpProxyAuthenticationType}});var vR=jy();Pe.HttpHeaders=tn.default.HttpHeaders;var ite=tn.default.HttpRequest,bR=class extends ite{constructor(t,n,r,i){super(t,n,r,i==null?void 0:i.native_handle())}};Pe.HttpRequest=bR;var By=class extends Fy.NativeResourceMixin(vR.BufferedEventEmitter){constructor(t){super();this._super(t)}close(){tn.default.http_connection_close(this.native_handle())}on(t,n){return super.on(t,n),t=="connect"&&process.nextTick(()=>{this.uncork()}),this}};Pe.HttpConnection=By;var SR;(function(e){e[e.Legacy=0]="Legacy",e[e.Forwarding=1]="Forwarding",e[e.Tunneling=2]="Tunneling"})(SR=Pe.HttpProxyConnectionType||(Pe.HttpProxyConnectionType={}));var wR=class extends yR.CommonHttpProxyOptions{constructor(t,n,r=yR.HttpProxyAuthenticationType.None,i,s,a,l){super(t,n,r,i,s);this.tls_opts=a,this.connection_type=l}create_native_handle(){return tn.default.http_proxy_options_new(this.host_name,this.port,this.auth_method,this.auth_username,this.auth_password,this.tls_opts?this.tls_opts.native_handle():void 0,this.connection_type?this.connection_type:SR.Legacy)}};Pe.HttpProxyOptions=wR;var Gy=class extends By{constructor(t,n,r,i,s,a,l){super(l||tn.default.http_connection_new(t!=null?t.native_handle():null,(c,d)=>{this._on_setup(c,d)},(c,d)=>{this._on_shutdown(c,d)},n,r,i.native_handle(),s?s.native_handle():void 0,a?a.create_native_handle():void 0));this.bootstrap=t,this.socket_options=i,this.tls_opts=s}_on_setup(t,n){if(n){this.emit("error",new vm.CrtError(n));return}this.emit("connect")}_on_shutdown(t,n){if(n){this.emit("error",new vm.CrtError(n));return}this.emit("close")}request(t){let n,r=(l,c)=>{n._on_response(l,c)},i=l=>{n._on_body(l)},s=l=>{n._on_complete(l)},a=tn.default.http_stream_new(this.native_handle(),t,s,r,i);return n=new Ky(a,this,t)}};Pe.HttpClientConnection=Gy;var $y=class extends Fy.NativeResourceMixin(vR.BufferedEventEmitter){constructor(t,n){super();this.connection=n,this._super(t),this.cork()}activate(){tn.default.http_stream_activate(this.native_handle())}close(){tn.default.http_stream_close(this.native_handle())}_on_body(t){this.emit("data",t)}_on_complete(t){if(t){this.emit("error",new vm.CrtError(t)),this.close();return}this.on("end",()=>{this.close()}),this.emit("end")}};Pe.HttpStream=$y;var Ky=class extends $y{constructor(t,n,r){super(t,n);this.request=r}status_code(){return this.response_status_code}on(t,n){return super.on(t,n),t=="response"&&process.nextTick(()=>{this.uncork()}),this}_on_response(t,n){this.response_status_code=t;let r=new Pe.HttpHeaders(n);this.emit("response",t,r)}};Pe.HttpClientStream=Ky;var ER=class extends Fy.NativeResource{constructor(t,n,r,i,s,a,l,c){super(tn.default.http_connection_manager_new(t!=null?t.native_handle():null,n,r,i,s,a.native_handle(),l?l.native_handle():void 0,c?c.create_native_handle():void 0,void 0));this.bootstrap=t,this.host=n,this.port=r,this.max_connections=i,this.initial_window_size=s,this.socket_options=a,this.tls_opts=l,this.proxy_options=c,this.connections=new Map}acquire(){return new Promise((t,n)=>{let r=(i,s)=>{if(s){n(new vm.CrtError(s));return}let a=this.connections.get(i);a||(a=new Gy(this.bootstrap,this.host,this.port,this.socket_options,this.tls_opts,this.proxy_options,i),this.connections.set(i,a),a.on("close",()=>{this.connections.delete(i)})),t(a)};tn.default.http_connection_manager_acquire(this.native_handle(),r)})}release(t){tn.default.http_connection_manager_release(this.native_handle(),t.native_handle())}close(){tn.default.http_connection_manager_close(this.native_handle())}};Pe.HttpClientConnectionManager=ER});var CR=p(Ti=>{"use strict";Object.defineProperty(Ti,"__esModule",{value:!0});Ti.MqttWill=Ti.QoS=void 0;var ste;(function(e){e[e.AtMostOnce=0]="AtMostOnce",e[e.AtLeastOnce=1]="AtLeastOnce",e[e.ExactlyOnce=2]="ExactlyOnce"})(ste=Ti.QoS||(Ti.QoS={}));var AR=class{constructor(t,n,r,i=!1){this.topic=t,this.qos=n,this.payload=r,this.retain=i}};Ti.MqttWill=AR});var PR=p(Xe=>{"use strict";var ate=Xe&&Xe.__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]}),ote=Xe&&Xe.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),lte=Xe&&Xe.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.hasOwnProperty.call(e,n)&&ate(t,e,n);return ote(t,e),t},xs=Xe&&Xe.__awaiter||function(e,t,n,r){function i(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function l(u){try{d(r.next(u))}catch(_){a(_)}}function c(u){try{d(r.throw(u))}catch(_){a(_)}}function d(u){u.done?s(u.value):i(u.value).then(l,c)}d((r=r.apply(e,t||[])).next())})},cte=Xe&&Xe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Xe,"__esModule",{value:!0});Xe.MqttClientConnection=Xe.MqttClient=void 0;var Vn=cte(Br()),TR=Va(),dte=jy(),xR=Ya(),bm=lte(gm()),ute=Vy();Object.defineProperty(Xe,"HttpProxyOptions",{enumerable:!0,get:function(){return ute.HttpProxyOptions}});var IR=CR();Object.defineProperty(Xe,"QoS",{enumerable:!0,get:function(){return IR.QoS}});Object.defineProperty(Xe,"MqttWill",{enumerable:!0,get:function(){return IR.MqttWill}});var RR=class extends TR.NativeResource{constructor(t=void 0){super(Vn.default.mqtt_client_new(t!=null?t.native_handle():null));this.bootstrap=t}new_connection(t){return new Hy(this,t)}};Xe.MqttClient=RR;function NR(e){if(ArrayBuffer.isView(e)||e instanceof ArrayBuffer||typeof e=="string")return e;if(typeof e=="object")return JSON.stringify(e);throw new TypeError("payload parameter must be a string, object, or DataView.")}var Hy=class extends TR.NativeResourceMixin(dte.BufferedEventEmitter){constructor(t,n){super();this.client=t,this.config=n;let r=n.will?{topic:n.will.topic,qos:n.will.qos,payload:NR(n.will.payload),retain:n.will.retain}:void 0;this._super(Vn.default.mqtt_client_connection_new(t.native_handle(),i=>{this._on_connection_interrupted(i)},(i,s)=>{this._on_connection_resumed(i,s)},n.tls_ctx?n.tls_ctx.native_handle():null,r,n.username,n.password,n.use_websocket,n.proxy_options?n.proxy_options.create_native_handle():void 0,n.websocket_handshake_transform)),this.tls_ctx=n.tls_ctx,Vn.default.mqtt_client_connection_on_message(this.native_handle(),this._on_any_publish.bind(this)),this.on("error",i=>{})}close(){Vn.default.mqtt_client_connection_close(this.native_handle())}on(t,n){return super.on(t,n),t=="connect"&&process.nextTick(()=>{this.uncork()}),this}connect(){return xs(this,void 0,void 0,function*(){return new Promise((t,n)=>{n=this._reject(n);try{Vn.default.mqtt_client_connection_connect(this.native_handle(),this.config.client_id,this.config.host_name,this.config.port,this.config.socket_options.native_handle(),this.config.keep_alive,this.config.ping_timeout,this.config.protocol_operation_timeout,this.config.clean_session,this._on_connect_callback.bind(this,t,n))}catch(r){n(r)}})})}reconnect(){return xs(this,void 0,void 0,function*(){return new Promise((t,n)=>{n=this._reject(n);try{Vn.default.mqtt_client_connection_reconnect(this.native_handle(),this._on_connect_callback.bind(this,t,n))}catch(r){n(r)}})})}publish(t,n,r,i=!1){return xs(this,void 0,void 0,function*(){return new Promise((s,a)=>{a=this._reject(a);try{Vn.default.mqtt_client_connection_publish(this.native_handle(),t,NR(n),r,i,this._on_puback_callback.bind(this,s,a))}catch(l){a(l)}})})}subscribe(t,n,r){return xs(this,void 0,void 0,function*(){return new Promise((i,s)=>{s=this._reject(s);try{Vn.default.mqtt_client_connection_subscribe(this.native_handle(),t,n,r,this._on_suback_callback.bind(this,i,s))}catch(a){s(a)}})})}unsubscribe(t){return xs(this,void 0,void 0,function*(){return new Promise((n,r)=>{r=this._reject(r);try{Vn.default.mqtt_client_connection_unsubscribe(this.native_handle(),t,this._on_unsuback_callback.bind(this,n,r))}catch(i){r(i)}})})}disconnect(){return xs(this,void 0,void 0,function*(){return new Promise((t,n)=>{n=this._reject(n);try{Vn.default.mqtt_client_connection_disconnect(this.native_handle(),this._on_disconnect_callback.bind(this,t))}catch(r){n(r)}})})}_reject(t){return n=>{t(n),process.nextTick(()=>{this.emit("error",new xR.CrtError(n))})}}_on_connection_interrupted(t){this.emit("interrupt",new xR.CrtError(t))}_on_connection_resumed(t,n){this.emit("resume",t,n)}_on_any_publish(t,n,r,i,s){this.emit("message",t,n,r,i,s)}_on_connect_callback(t,n,r,i,s){r==0&&i==0?(t(s),this.emit("connect",s)):r!=0?n("Failed to connect: "+bm.error_code_to_string(r)):n("Server rejected connection.")}_on_puback_callback(t,n,r,i){i==0?t({packet_id:r}):n("Failed to publish: "+bm.error_code_to_string(i))}_on_suback_callback(t,n,r,i,s,a){a==0?t({packet_id:r,topic:i,qos:s,error_code:a}):n("Failed to subscribe: "+bm.error_code_to_string(a))}_on_unsuback_callback(t,n,r,i){i==0?t({packet_id:r}):n("Failed to unsubscribe: "+bm.error_code_to_string(i))}_on_disconnect_callback(t){t(),this.emit("disconnect"),this.close()}};Xe.MqttClientConnection=Hy});var jR=p(Ve=>{"use strict";var mte=Ve&&Ve.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ve,"__esModule",{value:!0});Ve.hmac_sha256=Ve.Sha256Hmac=Ve.hash_sha1=Ve.Sha1Hash=Ve.hash_sha256=Ve.Sha256Hash=Ve.hash_md5=Ve.Md5Hash=void 0;var nn=mte(Br()),DR=Va(),Sm=class extends DR.NativeResource{update(t){nn.default.hash_update(this.native_handle(),t)}finalize(t){return nn.default.hash_digest(this.native_handle(),t)}constructor(t){super(t)}},OR=class extends Sm{constructor(){super(nn.default.hash_md5_new())}};Ve.Md5Hash=OR;function fte(e,t){return nn.default.hash_md5_compute(e,t)}Ve.hash_md5=fte;var LR=class extends Sm{constructor(){super(nn.default.hash_sha256_new())}};Ve.Sha256Hash=LR;function pte(e,t){return nn.default.hash_sha256_compute(e,t)}Ve.hash_sha256=pte;var qR=class extends Sm{constructor(){super(nn.default.hash_sha1_new())}};Ve.Sha1Hash=qR;function _te(e,t){return nn.default.hash_sha1_compute(e,t)}Ve.hash_sha1=_te;var MR=class extends DR.NativeResource{update(t){nn.default.hmac_update(this.native_handle(),t)}finalize(t){return nn.default.hmac_digest(this.native_handle(),t)}constructor(t){super(t)}},kR=class extends MR{constructor(t){super(nn.default.hmac_sha256_new(t))}};Ve.Sha256Hmac=kR;function hte(e,t,n){return nn.default.hmac_sha256_compute(e,t,n)}Ve.hmac_sha256=hte});var Yy=p(Oe=>{"use strict";var gte=Oe&&Oe.__awaiter||function(e,t,n,r){function i(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function l(u){try{d(r.next(u))}catch(_){a(_)}}function c(u){try{d(r.throw(u))}catch(_){a(_)}}function d(u){u.done?s(u.value):i(u.value).then(l,c)}d((r=r.apply(e,t||[])).next())})},yte=Oe&&Oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Oe,"__esModule",{value:!0});Oe.aws_verify_sigv4a_signing=Oe.aws_sign_request=Oe.AwsCredentialsProvider=Oe.AwsSignedBodyHeaderType=Oe.AwsSignedBodyValue=Oe.AwsSignatureType=Oe.AwsSigningAlgorithm=void 0;var Wy=yte(Br()),vte=Ya(),bte;(function(e){e[e.SigV4=0]="SigV4",e[e.SigV4Asymmetric=1]="SigV4Asymmetric"})(bte=Oe.AwsSigningAlgorithm||(Oe.AwsSigningAlgorithm={}));var Ste;(function(e){e[e.HttpRequestViaHeaders=0]="HttpRequestViaHeaders",e[e.HttpRequestViaQueryParams=1]="HttpRequestViaQueryParams",e[e.HttpRequestChunk=2]="HttpRequestChunk",e[e.HttpRequestEvent=3]="HttpRequestEvent"})(Ste=Oe.AwsSignatureType||(Oe.AwsSignatureType={}));var wte;(function(e){e.EmptySha256="e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",e.UnsignedPayload="UNSIGNED-PAYLOAD",e.StreamingAws4HmacSha256Payload="STREAMING-AWS4-HMAC-SHA256-PAYLOAD",e.StreamingAws4HmacSha256Events="STREAMING-AWS4-HMAC-SHA256-EVENTS"})(wte=Oe.AwsSignedBodyValue||(Oe.AwsSignedBodyValue={}));var Ete;(function(e){e[e.None=0]="None",e[e.XAmzContentSha256=1]="XAmzContentSha256"})(Ete=Oe.AwsSignedBodyHeaderType||(Oe.AwsSignedBodyHeaderType={}));var zR=class extends Wy.default.AwsCredentialsProvider{static newDefault(t=void 0){return super.newDefault(t!=null?t.native_handle():null)}};Oe.AwsCredentialsProvider=zR;function Ate(e,t){return gte(this,void 0,void 0,function*(){return new Promise((n,r)=>{try{Wy.default.aws_sign_request(e,t,i=>{i==0?n(e):r(new vte.CrtError(i))})}catch(i){r(i)}})})}Oe.aws_sign_request=Ate;function Cte(e,t,n,r,i,s){return Wy.default.aws_verify_sigv4a_signing(e,t,n,r,i,s)}Oe.aws_verify_sigv4a_signing=Cte});var FR=p(rn=>{"use strict";var Tte=rn&&rn.__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]}),xte=rn&&rn.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),UR=rn&&rn.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.hasOwnProperty.call(e,n)&&Tte(t,e,n);return xte(t,e),t},Ite=rn&&rn.__awaiter||function(e,t,n,r){function i(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function l(u){try{d(r.next(u))}catch(_){a(_)}}function c(u){try{d(r.throw(u))}catch(_){a(_)}}function d(u){u.done?s(u.value):i(u.value).then(l,c)}d((r=r.apply(e,t||[])).next())})};Object.defineProperty(rn,"__esModule",{value:!0});rn.AwsIotMqttConnectionConfigBuilder=void 0;var xi=UR(gm()),Rte=UR(Dy()),Ja=Yy(),Ii=class{constructor(t){this.tls_ctx_options=t,this.params={client_id:"",host_name:"",socket_options:new xi.SocketOptions,port:8883,use_websocket:!1,clean_session:!1,keep_alive:void 0,will:void 0,username:`?SDK=NodeJSv2&Version=${Rte.crt_version()}`,password:void 0,tls_ctx:void 0}}static new_mtls_builder_from_path(t,n){let r=new Ii(xi.TlsContextOptions.create_client_with_mtls_from_path(t,n));return r.params.port=8883,xi.is_alpn_available()&&r.tls_ctx_options.alpn_list.unshift("x-amzn-mqtt-ca"),r}static new_mtls_builder(t,n){let r=new Ii(xi.TlsContextOptions.create_client_with_mtls(t,n));return r.params.port=8883,xi.is_alpn_available()&&r.tls_ctx_options.alpn_list.unshift("x-amzn-mqtt-ca"),r}static new_websocket_builder(...t){return this.new_with_websockets(...t)}static configure_websocket_handshake(t,n){return n&&(t.params.websocket_handshake_transform=(r,i)=>Ite(this,void 0,void 0,function*(){var s,a,l;let c=(a=(s=n.create_signing_config)===null||s===void 0?void 0:s.call(n))!==null&&a!==void 0?a:{algorithm:Ja.AwsSigningAlgorithm.SigV4,signature_type:Ja.AwsSignatureType.HttpRequestViaQueryParams,provider:n.credentials_provider,region:n.region,service:(l=n.service)!==null&&l!==void 0?l:"iotdevicegateway",signed_body_value:Ja.AwsSignedBodyValue.EmptySha256,omit_session_token:!0};try{yield Ja.aws_sign_request(r,c),i()}catch(d){i(d)}})),t}static new_with_websockets(t){let n=t==null?void 0:t.tls_ctx_options;n||(n=new xi.TlsContextOptions,n.alpn_list=[]);let r=new Ii(n);return r.params.use_websocket=!0,r.params.proxy_options=t==null?void 0:t.proxy_options,r.tls_ctx_options&&(r.params.port=443),this.configure_websocket_handshake(r,t),r}with_certificate_authority_from_path(t,n){return this.tls_ctx_options.override_default_trust_store_from_path(t,n),this}with_certificate_authority(t){return this.tls_ctx_options.override_default_trust_store(t),this}with_endpoint(t){return this.params.host_name=t,this}with_port(t){return this.params.port=t,this}with_client_id(t){return this.params.client_id=t,this}with_clean_session(t){return this.params.clean_session=t,this}with_keep_alive_seconds(t){return this.params.keep_alive=t,this}with_timeout_ms(t){return this.with_ping_timeout_ms(t),this}with_ping_timeout_ms(t){return this.params.ping_timeout=t,this}with_protocol_operation_timeout_ms(t){return this.params.protocol_operation_timeout=t,this}with_will(t){return this.params.will=t,this}with_socket_options(t){return this.params.socket_options=t,this}with_credentials(t,n,r,i){return Ii.configure_websocket_handshake(this,{credentials_provider:Ja.AwsCredentialsProvider.newStatic(n,r,i),region:t,service:"iotdevicegateway"})}with_http_proxy_options(t){return this.params.proxy_options=t,this}build(){if(this.params.client_id===void 0||this.params.host_name===void 0)throw"client_id and endpoint are required";return this.params.tls_ctx===void 0&&(this.params.tls_ctx=new xi.ClientTlsContext(this.tls_ctx_options)),this.params}};rn.AwsIotMqttConnectionConfigBuilder=Ii});var BR=p(Ae=>{"use strict";var Nte=Ae&&Ae.__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]}),Pte=Ae&&Ae.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),ur=Ae&&Ae.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.hasOwnProperty.call(e,n)&&Nte(t,e,n);return Pte(t,e),t};Object.defineProperty(Ae,"__esModule",{value:!0});Ae.CrtError=Ae.resource_safety=Ae.platform=Ae.iot=Ae.auth=Ae.crypto=Ae.http=Ae.mqtt=Ae.io=Ae.crt=void 0;var Dte=ur(Dy());Ae.platform=Dte;var Ote=ur(Y1());Ae.resource_safety=Ote;var Lte=ur(sR());Ae.crt=Lte;var qte=ur(gm());Ae.io=qte;var Mte=ur(PR());Ae.mqtt=Mte;var kte=ur(Vy());Ae.http=kte;var jte=ur(jR());Ae.crypto=jte;var zte=ur(Yy());Ae.auth=zte;var Ute=ur(FR());Ae.iot=Ute;var Fte=Ya();Object.defineProperty(Ae,"CrtError",{enumerable:!0,get:function(){return Fte.CrtError}})});var GR=p((wm,Jy)=>{"use strict";Object.defineProperty(wm,"__esModule",{value:!0});wm.isCrtAvailable=void 0;var Bte=()=>{try{return typeof require=="function"&&typeof Jy!="undefined"&&Jy.require&&BR()?["md/crt-avail"]:null}catch{return null}};wm.isCrtAvailable=Bte});var Em=p(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});Hn.defaultUserAgent=Hn.UA_APP_ID_INI_NAME=Hn.UA_APP_ID_ENV_NAME=void 0;var Gte=Ai(),$R=require("os"),Qy=require("process"),$te=GR();Hn.UA_APP_ID_ENV_NAME="AWS_SDK_UA_APP_ID";Hn.UA_APP_ID_INI_NAME="sdk-ua-app-id";var Kte=({serviceId:e,clientVersion:t})=>{let n=[["aws-sdk-js",t],[`os/${$R.platform()}`,$R.release()],["lang/js"],["md/nodejs",`${Qy.versions.node}`]],r=$te.isCrtAvailable();r&&n.push(r),e&&n.push([`api/${e}`,t]),Qy.env.AWS_EXECUTION_ENV&&n.push([`exec-env/${Qy.env.AWS_EXECUTION_ENV}`]);let i=Gte.loadConfig({environmentVariableSelector:a=>a[Hn.UA_APP_ID_ENV_NAME],configFileSelector:a=>a[Hn.UA_APP_ID_INI_NAME],default:void 0})(),s;return async()=>{if(!s){let a=await i;s=a?[...n,[`app/${a}`]]:[...n]}return s}};Hn.defaultUserAgent=Kte});var Am=p(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});Is.toUtf8=Is.fromUtf8=void 0;var KR=Zu(),Vte=e=>{let t=KR.fromString(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)};Is.fromUtf8=Vte;var Hte=e=>KR.fromArrayBuffer(e.buffer,e.byteOffset,e.byteLength).toString("utf8");Is.toUtf8=Hte});var VR=p(Cm=>{"use strict";Object.defineProperty(Cm,"__esModule",{value:!0});Cm.defaultRegionInfoProvider=void 0;var Wte=un(),Yte={"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-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"}},Jte={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"]}]}},Qte=async(e,t)=>Wte.getRegionInfo(e,f(o({},t),{signingService:"awsssoportal",regionHash:Yte,partitionHash:Jte}));Cm.defaultRegionInfoProvider=Qte});var HR=p(Tm=>{"use strict";Object.defineProperty(Tm,"__esModule",{value:!0});Tm.getRuntimeConfig=void 0;var Xte=Ua(),Zte=VR(),ene=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:Zte.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:Xte.parseUrl}};Tm.getRuntimeConfig=ene});var WR=p(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.IMDS_REGION_PATH=It.DEFAULTS_MODE_OPTIONS=It.ENV_IMDS_DISABLED=It.AWS_DEFAULT_REGION_ENV=It.AWS_REGION_ENV=It.AWS_EXECUTION_ENV=void 0;It.AWS_EXECUTION_ENV="AWS_EXECUTION_ENV";It.AWS_REGION_ENV="AWS_REGION";It.AWS_DEFAULT_REGION_ENV="AWS_DEFAULT_REGION";It.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";It.DEFAULTS_MODE_OPTIONS=["in-region","cross-region","mobile","standard","legacy"];It.IMDS_REGION_PATH="/latest/meta-data/placement/region"});var YR=p(xm=>{"use strict";Object.defineProperty(xm,"__esModule",{value:!0});xm.NODE_DEFAULTS_MODE_CONFIG_OPTIONS=void 0;var tne="AWS_DEFAULTS_MODE",nne="defaults_mode";xm.NODE_DEFAULTS_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[tne],configFileSelector:e=>e[nne],default:"legacy"}});var XR=p(Im=>{"use strict";Object.defineProperty(Im,"__esModule",{value:!0});Im.resolveDefaultsModeConfig=void 0;var rne=un(),JR=Uu(),QR=Ai(),ine=lt(),$r=WR(),sne=YR(),ane=({region:e=QR.loadConfig(rne.NODE_REGION_CONFIG_OPTIONS),defaultsMode:t=QR.loadConfig(sne.NODE_DEFAULTS_MODE_CONFIG_OPTIONS)}={})=>ine.memoize(async()=>{let n=typeof t=="function"?await t():t;switch(n==null?void 0:n.toLowerCase()){case"auto":return one(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 ${$r.DEFAULTS_MODE_OPTIONS.join(", ")}, got ${n}`)}});Im.resolveDefaultsModeConfig=ane;var one=async e=>{if(e){let t=typeof e=="function"?await e():e,n=await lne();return n?t===n?"in-region":"cross-region":"standard"}return"standard"},lne=async()=>{var e;if(process.env[$r.AWS_EXECUTION_ENV]&&(process.env[$r.AWS_REGION_ENV]||process.env[$r.AWS_DEFAULT_REGION_ENV]))return(e=process.env[$r.AWS_REGION_ENV])!==null&&e!==void 0?e:process.env[$r.AWS_DEFAULT_REGION_ENV];if(!process.env[$r.ENV_IMDS_DISABLED])try{let t=await JR.getInstanceMetadataEndpoint();return(await JR.httpRequest(f(o({},t),{path:$r.IMDS_REGION_PATH}))).toString()}catch{}}});var Rm=p(Xy=>{"use strict";Object.defineProperty(Xy,"__esModule",{value:!0});var cne=se();cne.__exportStar(XR(),Xy)});var nN=p(Pm=>{"use strict";Object.defineProperty(Pm,"__esModule",{value:!0});Pm.getRuntimeConfig=void 0;var dne=se(),une=dne.__importDefault(I1()),Nm=un(),mne=tm(),Zy=hi(),Qa=Ai(),ZR=mm(),eN=fm(),fne=_m(),pne=Em(),tN=Am(),_ne=HR(),hne=q(),gne=Rm(),yne=e=>{var t,n,r,i,s,a,l,c,d,u,_,g,b,S;let v=gne.resolveDefaultsModeConfig(e),I=()=>v().then(hne.loadConfigsForDefaultMode),L=_ne.getRuntimeConfig(e);return f(o(o({},L),e),{runtime:"node",defaultsMode:v,base64Decoder:(t=e==null?void 0:e.base64Decoder)!==null&&t!==void 0?t:eN.fromBase64,base64Encoder:(n=e==null?void 0:e.base64Encoder)!==null&&n!==void 0?n:eN.toBase64,bodyLengthChecker:(r=e==null?void 0:e.bodyLengthChecker)!==null&&r!==void 0?r:fne.calculateBodyLength,defaultUserAgentProvider:(i=e==null?void 0:e.defaultUserAgentProvider)!==null&&i!==void 0?i:pne.defaultUserAgent({serviceId:L.serviceId,clientVersion:une.default.version}),maxAttempts:(s=e==null?void 0:e.maxAttempts)!==null&&s!==void 0?s:Qa.loadConfig(Zy.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(a=e==null?void 0:e.region)!==null&&a!==void 0?a:Qa.loadConfig(Nm.NODE_REGION_CONFIG_OPTIONS,Nm.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(l=e==null?void 0:e.requestHandler)!==null&&l!==void 0?l:new ZR.NodeHttpHandler(I),retryMode:(c=e==null?void 0:e.retryMode)!==null&&c!==void 0?c:Qa.loadConfig(f(o({},Zy.NODE_RETRY_MODE_CONFIG_OPTIONS),{default:async()=>(await I()).retryMode||Zy.DEFAULT_RETRY_MODE})),sha256:(d=e==null?void 0:e.sha256)!==null&&d!==void 0?d:mne.Hash.bind(null,"sha256"),streamCollector:(u=e==null?void 0:e.streamCollector)!==null&&u!==void 0?u:ZR.streamCollector,useDualstackEndpoint:(_=e==null?void 0:e.useDualstackEndpoint)!==null&&_!==void 0?_:Qa.loadConfig(Nm.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(g=e==null?void 0:e.useFipsEndpoint)!==null&&g!==void 0?g:Qa.loadConfig(Nm.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:(b=e==null?void 0:e.utf8Decoder)!==null&&b!==void 0?b:tN.fromUtf8,utf8Encoder:(S=e==null?void 0:e.utf8Encoder)!==null&&S!==void 0?S:tN.toUtf8})};Pm.getRuntimeConfig=yne});var Xa=p(Dm=>{"use strict";Object.defineProperty(Dm,"__esModule",{value:!0});Dm.SSOClient=void 0;var rN=un(),vne=ud(),iN=vd(),bne=bd(),sN=hi(),aN=iu(),Sne=q(),wne=nN(),oN=class extends Sne.Client{constructor(t){let n=wne.getRuntimeConfig(t),r=rN.resolveRegionConfig(n),i=rN.resolveEndpointsConfig(r),s=sN.resolveRetryConfig(i),a=iN.resolveHostHeaderConfig(s),l=aN.resolveUserAgentConfig(a);super(l);this.config=l,this.middlewareStack.use(sN.getRetryPlugin(this.config)),this.middlewareStack.use(vne.getContentLengthPlugin(this.config)),this.middlewareStack.use(iN.getHostHeaderPlugin(this.config)),this.middlewareStack.use(bne.getLoggerPlugin(this.config)),this.middlewareStack.use(aN.getUserAgentPlugin(this.config))}destroy(){super.destroy()}};Dm.SSOClient=oN});var Lm=p(Om=>{"use strict";Object.defineProperty(Om,"__esModule",{value:!0});Om.SSO=void 0;var Ene=wy(),Ane=Yu(),Cne=Qu(),Tne=Ey(),xne=Xa(),lN=class extends xne.SSOClient{getRoleCredentials(t,n,r){let i=new Ene.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 Ane.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 Cne.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 Tne.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)}};Om.SSO=lN});var cN=p(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});var qm=se();qm.__exportStar(wy(),Rs);qm.__exportStar(Yu(),Rs);qm.__exportStar(Qu(),Rs);qm.__exportStar(Ey(),Rs)});var dN=p(ev=>{"use strict";Object.defineProperty(ev,"__esModule",{value:!0});var Ine=se();Ine.__exportStar(Ss(),ev)});var mN=p(uN=>{"use strict";Object.defineProperty(uN,"__esModule",{value:!0})});var fN=p(Mm=>{"use strict";Object.defineProperty(Mm,"__esModule",{value:!0});Mm.paginateListAccountRoles=void 0;var Rne=Yu(),Nne=Lm(),Pne=Xa(),Dne=async(e,t,...n)=>await e.send(new Rne.ListAccountRolesCommand(t),...n),One=async(e,t,...n)=>await e.listAccountRoles(t,...n);async function*Lne(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 Nne.SSO)s=await One(e.client,t,...n);else if(e.client instanceof Pne.SSOClient)s=await Dne(e.client,t,...n);else throw new Error("Invalid client, expected SSO | SSOClient");yield s,r=s.nextToken,i=!!r}return void 0}Mm.paginateListAccountRoles=Lne});var pN=p(km=>{"use strict";Object.defineProperty(km,"__esModule",{value:!0});km.paginateListAccounts=void 0;var qne=Qu(),Mne=Lm(),kne=Xa(),jne=async(e,t,...n)=>await e.send(new qne.ListAccountsCommand(t),...n),zne=async(e,t,...n)=>await e.listAccounts(t,...n);async function*Une(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 Mne.SSO)s=await zne(e.client,t,...n);else if(e.client instanceof kne.SSOClient)s=await jne(e.client,t,...n);else throw new Error("Invalid client, expected SSO | SSOClient");yield s,r=s.nextToken,i=!!r}return void 0}km.paginateListAccounts=Une});var _N=p(Za=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});var tv=se();tv.__exportStar(mN(),Za);tv.__exportStar(fN(),Za);tv.__exportStar(pN(),Za)});var hN=p(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});var eo=se();eo.__exportStar(Lm(),Ri);eo.__exportStar(Xa(),Ri);eo.__exportStar(cN(),Ri);eo.__exportStar(dN(),Ri);eo.__exportStar(_N(),Ri)});var to=p(sn=>{"use strict";Object.defineProperty(sn,"__esModule",{value:!0});sn.getMasterProfileName=sn.parseKnownFiles=sn.DEFAULT_PROFILE=sn.ENV_PROFILE=void 0;var Fne=za();sn.ENV_PROFILE="AWS_PROFILE";sn.DEFAULT_PROFILE="default";var Bne=async e=>{let{loadedConfig:t=Fne.loadSharedConfigFiles(e)}=e,n=await t;return o(o({},n.configFile),n.credentialsFile)};sn.parseKnownFiles=Bne;var Gne=e=>e.profile||process.env[sn.ENV_PROFILE]||sn.DEFAULT_PROFILE;sn.getMasterProfileName=Gne});var nv=p(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.isSsoProfile=Bt.validateSsoProfile=Bt.fromSSO=Bt.EXPIRE_WINDOW_MS=void 0;var gN=hN(),Ns=lt(),$ne=za(),yN=to(),Kne=require("crypto"),Vne=require("fs"),Hne=require("path");Bt.EXPIRE_WINDOW_MS=15*60*1e3;var jm=!1,Wne=(e={})=>async()=>{let{ssoStartUrl:t,ssoAccountId:n,ssoRegion:r,ssoRoleName:i,ssoClient:s}=e;if(!t&&!n&&!r&&!i){let a=await yN.parseKnownFiles(e),l=yN.getMasterProfileName(e),c=a[l];if(!Bt.isSsoProfile(c))throw new Ns.CredentialsProviderError(`Profile ${l} is not configured with SSO credentials.`);let{sso_start_url:d,sso_account_id:u,sso_region:_,sso_role_name:g}=Bt.validateSsoProfile(c);return vN({ssoStartUrl:d,ssoAccountId:u,ssoRegion:_,ssoRoleName:g,ssoClient:s})}else{if(!t||!n||!r||!i)throw new Ns.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"');return vN({ssoStartUrl:t,ssoAccountId:n,ssoRegion:r,ssoRoleName:i,ssoClient:s})}};Bt.fromSSO=Wne;var vN=async({ssoStartUrl:e,ssoAccountId:t,ssoRegion:n,ssoRoleName:r,ssoClient:i})=>{let a=Kne.createHash("sha1").update(e).digest("hex"),l=Hne.join($ne.getHomeDir(),".aws","sso","cache",`${a}.json`),c;try{if(c=JSON.parse(Vne.readFileSync(l,{encoding:"utf-8"})),new Date(c.expiresAt).getTime()-Date.now()<=Bt.EXPIRE_WINDOW_MS)throw new Error("SSO token is expired.")}catch{throw new Ns.CredentialsProviderError("The SSO session associated with this profile has expired or is otherwise invalid. To refresh this SSO session run aws sso login with the corresponding profile.",jm)}let{accessToken:d}=c,u=i||new gN.SSOClient({region:n}),_;try{_=await u.send(new gN.GetRoleCredentialsCommand({accountId:t,roleName:r,accessToken:d}))}catch(I){throw Ns.CredentialsProviderError.from(I,jm)}let{roleCredentials:{accessKeyId:g,secretAccessKey:b,sessionToken:S,expiration:v}={}}=_;if(!g||!b||!S||!v)throw new Ns.CredentialsProviderError("SSO returns an invalid temporary credential.",jm);return{accessKeyId:g,secretAccessKey:b,sessionToken:S,expiration:new Date(v)}},Yne=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 Ns.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(", ")}
30
- Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,jm);return e};Bt.validateSsoProfile=Yne;var Jne=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");Bt.isSsoProfile=Jne});var rv=p(zm=>{"use strict";Object.defineProperty(zm,"__esModule",{value:!0});zm.fromWebToken=void 0;var Qne=lt(),Xne=e=>()=>{let{roleArn:t,roleSessionName:n,webIdentityToken:r,providerId:i,policyArns:s,policy:a,durationSeconds:l,roleAssumerWithWebIdentity:c}=e;if(!c)throw new Qne.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:a,DurationSeconds:l})};zm.fromWebToken=Xne});var bN=p(Um=>{"use strict";Object.defineProperty(Um,"__esModule",{value:!0});Um.fromTokenFile=void 0;var Zne=lt(),ere=require("fs"),tre=rv(),nre="AWS_WEB_IDENTITY_TOKEN_FILE",rre="AWS_ROLE_ARN",ire="AWS_ROLE_SESSION_NAME",sre=(e={})=>async()=>are(e);Um.fromTokenFile=sre;var are=e=>{var t,n,r;let i=(t=e==null?void 0:e.webIdentityTokenFile)!==null&&t!==void 0?t:process.env[nre],s=(n=e==null?void 0:e.roleArn)!==null&&n!==void 0?n:process.env[rre],a=(r=e==null?void 0:e.roleSessionName)!==null&&r!==void 0?r:process.env[ire];if(!i||!s)throw new Zne.CredentialsProviderError("Web identity configuration not specified");return tre.fromWebToken(f(o({},e),{webIdentityToken:ere.readFileSync(i,{encoding:"ascii"}),roleArn:s,roleSessionName:a}))()}});var iv=p(Fm=>{"use strict";Object.defineProperty(Fm,"__esModule",{value:!0});var SN=se();SN.__exportStar(bN(),Fm);SN.__exportStar(rv(),Fm)});var xN=p(Bm=>{"use strict";Object.defineProperty(Bm,"__esModule",{value:!0});Bm.fromIni=void 0;var ore=dy(),wN=Uu(),sv=nv(),lre=iv(),no=lt(),av=to(),EN=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,cre=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,AN=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,dre=e=>AN(e)&&typeof e.source_profile=="string"&&typeof e.credential_source=="undefined",ure=e=>AN(e)&&typeof e.credential_source=="string"&&typeof e.source_profile=="undefined",mre=(e={})=>async()=>{let t=await av.parseKnownFiles(e);return CN(av.getMasterProfileName(e),t,e)};Bm.fromIni=mre;var CN=async(e,t,n,r={})=>{let i=t[e];if(Object.keys(r).length>0&&EN(i))return TN(i);if(dre(i)||ure(i)){let{external_id:s,mfa_serial:a,role_arn:l,role_session_name:c="aws-sdk-js-"+Date.now(),source_profile:d,credential_source:u}=i;if(!n.roleAssumer)throw new no.CredentialsProviderError(`Profile ${e} requires a role to be assumed, but no role assumption callback was provided.`,!1);if(d&&d in r)throw new no.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${av.getMasterProfileName(n)}. Profiles visited: `+Object.keys(r).join(", "),!1);let _=d?CN(d,t,n,f(o({},r),{[d]:!0})):fre(u,e)(),g={RoleArn:l,RoleSessionName:c,ExternalId:s};if(a){if(!n.mfaCodeProvider)throw new no.CredentialsProviderError(`Profile ${e} requires multi-factor authentication, but no MFA code callback was provided.`,!1);g.SerialNumber=a,g.TokenCode=await n.mfaCodeProvider(a)}return n.roleAssumer(await _,g)}if(EN(i))return TN(i);if(cre(i))return pre(i,n);if(sv.isSsoProfile(i)){let{sso_start_url:s,sso_account_id:a,sso_region:l,sso_role_name:c}=sv.validateSsoProfile(i);return sv.fromSSO({ssoStartUrl:s,ssoAccountId:a,ssoRegion:l,ssoRoleName:c})()}throw new no.CredentialsProviderError(`Profile ${e} could not be found or parsed in shared credentials file.`)},fre=(e,t)=>{let n={EcsContainer:wN.fromContainerMetadata,Ec2InstanceMetadata:wN.fromInstanceMetadata,Environment:ore.fromEnv};if(e in n)return n[e]();throw new no.CredentialsProviderError(`Unsupported credential source in profile ${t}. Got ${e}, expected EcsContainer or Ec2InstanceMetadata or Environment.`)},TN=e=>Promise.resolve({accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token}),pre=async(e,t)=>lre.fromTokenFile({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:t.roleAssumerWithWebIdentity})()});var RN=p(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.fromProcess=Ps.ENV_PROFILE=void 0;var ov=lt(),IN=to(),_re=require("child_process");Ps.ENV_PROFILE="AWS_PROFILE";var hre=(e={})=>async()=>{let t=await IN.parseKnownFiles(e);return gre(IN.getMasterProfileName(e),t)};Ps.fromProcess=hre;var gre=async(e,t)=>{let n=t[e];if(t[e]){let r=n.credential_process;if(r!==void 0)return await yre(r).then(i=>{let s;try{s=JSON.parse(i)}catch{throw Error(`Profile ${e} credential_process returned invalid JSON.`)}let{Version:a,AccessKeyId:l,SecretAccessKey:c,SessionToken:d,Expiration:u}=s;if(a!==1)throw Error(`Profile ${e} credential_process did not return Version 1.`);if(l===void 0||c===void 0)throw Error(`Profile ${e} credential_process returned invalid credentials.`);let _;if(u){let g=new Date;if(new Date(u)<g)throw Error(`Profile ${e} credential_process returned expired credentials.`);_=Math.floor(new Date(u).valueOf()/1e3)}return{accessKeyId:l,secretAccessKey:c,sessionToken:d,expirationUnix:_}}).catch(i=>{throw new ov.CredentialsProviderError(i.message)});throw new ov.CredentialsProviderError(`Profile ${e} did not contain credential_process.`)}else throw new ov.CredentialsProviderError(`Profile ${e} could not be found in shared credentials file.`)},yre=e=>new Promise(function(t,n){_re.exec(e,(r,i)=>{if(r){n(r);return}t(i.trim())})})});var lv=p(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});Ni.defaultProvider=Ni.ENV_IMDS_DISABLED=void 0;var vre=dy(),Gm=Uu(),bre=xN(),Sre=RN(),wre=nv(),Ere=iv(),$m=lt(),Are=za(),Cre=to();Ni.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";var Tre=(e={})=>{let t=o({profile:process.env[Cre.ENV_PROFILE]},e);t.loadedConfig||(t.loadedConfig=Are.loadSharedConfigFiles(e));let n=[wre.fromSSO(t),bre.fromIni(t),Sre.fromProcess(t),Ere.fromTokenFile(t),xre(t),async()=>{throw new $m.CredentialsProviderError("Could not load credentials from any providers",!1)}];t.profile||n.unshift(vre.fromEnv());let r=$m.chain(...n);return $m.memoize(r,i=>i.expiration!==void 0&&i.expiration.getTime()-Date.now()<3e5,i=>i.expiration!==void 0)};Ni.defaultProvider=Tre;var xre=e=>process.env[Gm.ENV_CMDS_RELATIVE_URI]||process.env[Gm.ENV_CMDS_FULL_URI]?Gm.fromContainerMetadata(e):process.env[Ni.ENV_IMDS_DISABLED]?()=>Promise.reject(new $m.CredentialsProviderError("EC2 Instance Metadata Service access disabled")):Gm.fromInstanceMetadata(e)});var NN=p(Km=>{"use strict";Object.defineProperty(Km,"__esModule",{value:!0});Km.defaultRegionInfoProvider=void 0;var Ire=un(),Rre={"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"]}]}},Nre={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"]}]}},Pre=async(e,t)=>Ire.getRegionInfo(e,f(o({},t),{signingService:"sts",regionHash:Rre,partitionHash:Nre}));Km.defaultRegionInfoProvider=Pre});var PN=p(Vm=>{"use strict";Object.defineProperty(Vm,"__esModule",{value:!0});Vm.getRuntimeConfig=void 0;var Dre=Ua(),Ore=NN(),Lre=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:Ore.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:Dre.parseUrl}};Vm.getRuntimeConfig=Lre});var qN=p(Wm=>{"use strict";Object.defineProperty(Wm,"__esModule",{value:!0});Wm.getRuntimeConfig=void 0;var qre=se(),Mre=qre.__importDefault(VI()),kre=cy(),Hm=un(),jre=lv(),zre=tm(),cv=hi(),ro=Ai(),DN=mm(),ON=fm(),Ure=_m(),Fre=Em(),LN=Am(),Bre=PN(),Gre=q(),$re=Rm(),Kre=e=>{var t,n,r,i,s,a,l,c,d,u,_,g,b,S,v;let I=$re.resolveDefaultsModeConfig(e),L=()=>I().then(Gre.loadConfigsForDefaultMode),x=Bre.getRuntimeConfig(e);return f(o(o({},x),e),{runtime:"node",defaultsMode:I,base64Decoder:(t=e==null?void 0:e.base64Decoder)!==null&&t!==void 0?t:ON.fromBase64,base64Encoder:(n=e==null?void 0:e.base64Encoder)!==null&&n!==void 0?n:ON.toBase64,bodyLengthChecker:(r=e==null?void 0:e.bodyLengthChecker)!==null&&r!==void 0?r:Ure.calculateBodyLength,credentialDefaultProvider:(i=e==null?void 0:e.credentialDefaultProvider)!==null&&i!==void 0?i:kre.decorateDefaultCredentialProvider(jre.defaultProvider),defaultUserAgentProvider:(s=e==null?void 0:e.defaultUserAgentProvider)!==null&&s!==void 0?s:Fre.defaultUserAgent({serviceId:x.serviceId,clientVersion:Mre.default.version}),maxAttempts:(a=e==null?void 0:e.maxAttempts)!==null&&a!==void 0?a:ro.loadConfig(cv.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(l=e==null?void 0:e.region)!==null&&l!==void 0?l:ro.loadConfig(Hm.NODE_REGION_CONFIG_OPTIONS,Hm.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(c=e==null?void 0:e.requestHandler)!==null&&c!==void 0?c:new DN.NodeHttpHandler(L),retryMode:(d=e==null?void 0:e.retryMode)!==null&&d!==void 0?d:ro.loadConfig(f(o({},cv.NODE_RETRY_MODE_CONFIG_OPTIONS),{default:async()=>(await L()).retryMode||cv.DEFAULT_RETRY_MODE})),sha256:(u=e==null?void 0:e.sha256)!==null&&u!==void 0?u:zre.Hash.bind(null,"sha256"),streamCollector:(_=e==null?void 0:e.streamCollector)!==null&&_!==void 0?_:DN.streamCollector,useDualstackEndpoint:(g=e==null?void 0:e.useDualstackEndpoint)!==null&&g!==void 0?g:ro.loadConfig(Hm.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(b=e==null?void 0:e.useFipsEndpoint)!==null&&b!==void 0?b:ro.loadConfig(Hm.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:(S=e==null?void 0:e.utf8Decoder)!==null&&S!==void 0?S:LN.fromUtf8,utf8Encoder:(v=e==null?void 0:e.utf8Encoder)!==null&&v!==void 0?v:LN.toUtf8})};Wm.getRuntimeConfig=Kre});var Qm=p(Jm=>{"use strict";Object.defineProperty(Jm,"__esModule",{value:!0});Jm.STSClient=void 0;var MN=un(),Vre=ud(),kN=vd(),Hre=bd(),jN=hi(),Wre=KI(),zN=iu(),Yre=q(),Jre=qN(),Ym=class extends Yre.Client{constructor(t){let n=Jre.getRuntimeConfig(t),r=MN.resolveRegionConfig(n),i=MN.resolveEndpointsConfig(r),s=jN.resolveRetryConfig(i),a=kN.resolveHostHeaderConfig(s),l=Wre.resolveStsAuthConfig(a,{stsClientCtor:Ym}),c=zN.resolveUserAgentConfig(l);super(c);this.config=c,this.middlewareStack.use(jN.getRetryPlugin(this.config)),this.middlewareStack.use(Vre.getContentLengthPlugin(this.config)),this.middlewareStack.use(kN.getHostHeaderPlugin(this.config)),this.middlewareStack.use(Hre.getLoggerPlugin(this.config)),this.middlewareStack.use(zN.getUserAgentPlugin(this.config))}destroy(){super.destroy()}};Jm.STSClient=Ym});var FN=p(Xm=>{"use strict";Object.defineProperty(Xm,"__esModule",{value:!0});Xm.STS=void 0;var Qre=yu(),Xre=ry(),Zre=Su(),eie=iy(),tie=sy(),nie=ay(),rie=oy(),iie=ly(),sie=Qm(),UN=class extends sie.STSClient{assumeRole(t,n,r){let i=new Qre.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 Xre.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 Zre.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 eie.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 tie.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 nie.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 rie.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 iie.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)}};Xm.STS=UN});var BN=p(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});var Kr=se();Kr.__exportStar(yu(),Wn);Kr.__exportStar(ry(),Wn);Kr.__exportStar(Su(),Wn);Kr.__exportStar(iy(),Wn);Kr.__exportStar(sy(),Wn);Kr.__exportStar(ay(),Wn);Kr.__exportStar(oy(),Wn);Kr.__exportStar(ly(),Wn)});var KN=p(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.decorateDefaultCredentialProvider=Yn.getDefaultRoleAssumerWithWebIdentity=Yn.getDefaultRoleAssumer=void 0;var GN=cy(),$N=Qm(),aie=(e={})=>GN.getDefaultRoleAssumer(e,$N.STSClient);Yn.getDefaultRoleAssumer=aie;var oie=(e={})=>GN.getDefaultRoleAssumerWithWebIdentity(e,$N.STSClient);Yn.getDefaultRoleAssumerWithWebIdentity=oie;var lie=e=>t=>e(o({roleAssumer:Yn.getDefaultRoleAssumer(t),roleAssumerWithWebIdentity:Yn.getDefaultRoleAssumerWithWebIdentity(t)},t));Yn.decorateDefaultCredentialProvider=lie});var VN=p(dv=>{"use strict";Object.defineProperty(dv,"__esModule",{value:!0});var cie=se();cie.__exportStar(qn(),dv)});var HN=p(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});var io=se();io.__exportStar(FN(),Pi);io.__exportStar(Qm(),Pi);io.__exportStar(BN(),Pi);io.__exportStar(KN(),Pi);io.__exportStar(VN(),Pi)});var WN=p(Zm=>{"use strict";Object.defineProperty(Zm,"__esModule",{value:!0});Zm.defaultRegionInfoProvider=void 0;var die=un(),uie={"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"]}]}},mie={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"]}]}},fie=async(e,t)=>die.getRegionInfo(e,f(o({},t),{signingService:"dynamodb",regionHash:uie,partitionHash:mie}));Zm.defaultRegionInfoProvider=fie});var YN=p(ef=>{"use strict";Object.defineProperty(ef,"__esModule",{value:!0});ef.getRuntimeConfig=void 0;var pie=Ua(),_ie=WN(),hie=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:_ie.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:pie.parseUrl}};ef.getRuntimeConfig=hie});var ZN=p(nf=>{"use strict";Object.defineProperty(nf,"__esModule",{value:!0});nf.getRuntimeConfig=void 0;var gie=se(),yie=gie.__importDefault(wx()),vie=HN(),tf=un(),bie=lv(),Sie=tm(),wie=vg(),uv=hi(),Ds=Ai(),JN=mm(),QN=fm(),Eie=_m(),Aie=Em(),XN=Am(),Cie=YN(),Tie=q(),xie=Rm(),Iie=e=>{var t,n,r,i,s,a,l,c,d,u,_,g,b,S,v,I;let L=xie.resolveDefaultsModeConfig(e),x=()=>L().then(Tie.loadConfigsForDefaultMode),re=Cie.getRuntimeConfig(e);return f(o(o({},re),e),{runtime:"node",defaultsMode:L,base64Decoder:(t=e==null?void 0:e.base64Decoder)!==null&&t!==void 0?t:QN.fromBase64,base64Encoder:(n=e==null?void 0:e.base64Encoder)!==null&&n!==void 0?n:QN.toBase64,bodyLengthChecker:(r=e==null?void 0:e.bodyLengthChecker)!==null&&r!==void 0?r:Eie.calculateBodyLength,credentialDefaultProvider:(i=e==null?void 0:e.credentialDefaultProvider)!==null&&i!==void 0?i:vie.decorateDefaultCredentialProvider(bie.defaultProvider),defaultUserAgentProvider:(s=e==null?void 0:e.defaultUserAgentProvider)!==null&&s!==void 0?s:Aie.defaultUserAgent({serviceId:re.serviceId,clientVersion:yie.default.version}),endpointDiscoveryEnabledProvider:(a=e==null?void 0:e.endpointDiscoveryEnabledProvider)!==null&&a!==void 0?a:Ds.loadConfig(wie.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS),maxAttempts:(l=e==null?void 0:e.maxAttempts)!==null&&l!==void 0?l:Ds.loadConfig(uv.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(c=e==null?void 0:e.region)!==null&&c!==void 0?c:Ds.loadConfig(tf.NODE_REGION_CONFIG_OPTIONS,tf.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(d=e==null?void 0:e.requestHandler)!==null&&d!==void 0?d:new JN.NodeHttpHandler(x),retryMode:(u=e==null?void 0:e.retryMode)!==null&&u!==void 0?u:Ds.loadConfig(f(o({},uv.NODE_RETRY_MODE_CONFIG_OPTIONS),{default:async()=>(await x()).retryMode||uv.DEFAULT_RETRY_MODE})),sha256:(_=e==null?void 0:e.sha256)!==null&&_!==void 0?_:Sie.Hash.bind(null,"sha256"),streamCollector:(g=e==null?void 0:e.streamCollector)!==null&&g!==void 0?g:JN.streamCollector,useDualstackEndpoint:(b=e==null?void 0:e.useDualstackEndpoint)!==null&&b!==void 0?b:Ds.loadConfig(tf.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(S=e==null?void 0:e.useFipsEndpoint)!==null&&S!==void 0?S:Ds.loadConfig(tf.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:(v=e==null?void 0:e.utf8Decoder)!==null&&v!==void 0?v:XN.fromUtf8,utf8Encoder:(I=e==null?void 0:e.utf8Encoder)!==null&&I!==void 0?I:XN.toUtf8})};nf.getRuntimeConfig=Iie});var Vr=p(rf=>{"use strict";Object.defineProperty(rf,"__esModule",{value:!0});rf.DynamoDBClient=void 0;var eP=un(),Rie=ud(),Nie=vg(),tP=vd(),Pie=bd(),nP=hi(),rP=or(),iP=iu(),Die=q(),Oie=sc(),Lie=ZN(),sP=class extends Die.Client{constructor(t){let n=Lie.getRuntimeConfig(t),r=eP.resolveRegionConfig(n),i=eP.resolveEndpointsConfig(r),s=nP.resolveRetryConfig(i),a=tP.resolveHostHeaderConfig(s),l=rP.resolveAwsAuthConfig(a),c=iP.resolveUserAgentConfig(l),d=Nie.resolveEndpointDiscoveryConfig(c,{endpointDiscoveryCommandCtor:Oie.DescribeEndpointsCommand});super(d);this.config=d,this.middlewareStack.use(nP.getRetryPlugin(this.config)),this.middlewareStack.use(Rie.getContentLengthPlugin(this.config)),this.middlewareStack.use(tP.getHostHeaderPlugin(this.config)),this.middlewareStack.use(Pie.getLoggerPlugin(this.config)),this.middlewareStack.use(rP.getAwsAuthPlugin(this.config)),this.middlewareStack.use(iP.getUserAgentPlugin(this.config))}destroy(){super.destroy()}};rf.DynamoDBClient=sP});var Di=p(sf=>{"use strict";Object.defineProperty(sf,"__esModule",{value:!0});sf.DynamoDB=void 0;var qie=hh(),Mie=gh(),kie=yh(),jie=vh(),zie=bh(),Uie=Sh(),Fie=wh(),Bie=Eh(),Gie=Ah(),$ie=Ch(),Kie=Th(),Vie=xh(),Hie=sc(),Wie=Ih(),Yie=Rh(),Jie=Nh(),Qie=Ph(),Xie=Dh(),Zie=Aa(),ese=Oh(),tse=Lh(),nse=qh(),rse=Mh(),ise=kh(),sse=jh(),ase=zh(),ose=Uh(),lse=Fh(),cse=wc(),dse=Ac(),use=Bh(),mse=xc(),fse=Gh(),pse=$h(),_se=Pc(),hse=Kh(),gse=Vh(),yse=qc(),vse=Hh(),bse=Wh(),Sse=Yh(),wse=Jh(),Ese=Qh(),Ase=Xh(),Cse=Zh(),Tse=eg(),xse=tg(),Ise=ng(),Rse=rg(),Nse=ig(),Pse=Vr(),aP=class extends Pse.DynamoDBClient{batchExecuteStatement(t,n,r){let i=new qie.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 Mie.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 kie.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 jie.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 zie.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 Uie.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 Fie.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 Bie.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 Gie.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 $ie.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 Kie.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 Vie.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 Hie.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 Wie.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 Yie.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 Jie.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 Qie.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 Xie.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 Zie.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 ese.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 tse.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 nse.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 rse.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 ise.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 sse.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 ase.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 ose.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 lse.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 cse.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 dse.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 use.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 mse.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 fse.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 pse.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 _se.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 hse.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 gse.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 yse.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 vse.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 bse.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 Sse.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 wse.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 Ese.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 Ase.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 Cse.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 Tse.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 xse.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 Ise.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 Rse.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 Nse.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)}};sf.DynamoDB=aP});var oP=p(W=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});var te=se();te.__exportStar(hh(),W);te.__exportStar(gh(),W);te.__exportStar(yh(),W);te.__exportStar(vh(),W);te.__exportStar(bh(),W);te.__exportStar(Sh(),W);te.__exportStar(wh(),W);te.__exportStar(Eh(),W);te.__exportStar(Ah(),W);te.__exportStar(Ch(),W);te.__exportStar(Th(),W);te.__exportStar(xh(),W);te.__exportStar(sc(),W);te.__exportStar(Ih(),W);te.__exportStar(Rh(),W);te.__exportStar(Nh(),W);te.__exportStar(Ph(),W);te.__exportStar(Dh(),W);te.__exportStar(Aa(),W);te.__exportStar(Oh(),W);te.__exportStar(Lh(),W);te.__exportStar(qh(),W);te.__exportStar(Mh(),W);te.__exportStar(kh(),W);te.__exportStar(jh(),W);te.__exportStar(zh(),W);te.__exportStar(Uh(),W);te.__exportStar(Fh(),W);te.__exportStar(wc(),W);te.__exportStar(Ac(),W);te.__exportStar(Bh(),W);te.__exportStar(xc(),W);te.__exportStar(Gh(),W);te.__exportStar($h(),W);te.__exportStar(Pc(),W);te.__exportStar(Kh(),W);te.__exportStar(Vh(),W);te.__exportStar(qc(),W);te.__exportStar(Hh(),W);te.__exportStar(Wh(),W);te.__exportStar(Yh(),W);te.__exportStar(Jh(),W);te.__exportStar(Qh(),W);te.__exportStar(Xh(),W);te.__exportStar(Zh(),W);te.__exportStar(eg(),W);te.__exportStar(tg(),W);te.__exportStar(ng(),W);te.__exportStar(rg(),W);te.__exportStar(ig(),W)});var lP=p(mv=>{"use strict";Object.defineProperty(mv,"__esModule",{value:!0});var Dse=se();Dse.__exportStar(H(),mv)});var dP=p(cP=>{"use strict";Object.defineProperty(cP,"__esModule",{value:!0})});var uP=p(af=>{"use strict";Object.defineProperty(af,"__esModule",{value:!0});af.paginateListContributorInsights=void 0;var Ose=wc(),Lse=Di(),qse=Vr(),Mse=async(e,t,...n)=>await e.send(new Ose.ListContributorInsightsCommand(t),...n),kse=async(e,t,...n)=>await e.listContributorInsights(t,...n);async function*jse(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 Lse.DynamoDB)s=await kse(e.client,t,...n);else if(e.client instanceof qse.DynamoDBClient)s=await Mse(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s,r=s.NextToken,i=!!r}return void 0}af.paginateListContributorInsights=jse});var mP=p(of=>{"use strict";Object.defineProperty(of,"__esModule",{value:!0});of.paginateListExports=void 0;var zse=Ac(),Use=Di(),Fse=Vr(),Bse=async(e,t,...n)=>await e.send(new zse.ListExportsCommand(t),...n),Gse=async(e,t,...n)=>await e.listExports(t,...n);async function*$se(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 Use.DynamoDB)s=await Gse(e.client,t,...n);else if(e.client instanceof Fse.DynamoDBClient)s=await Bse(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s,r=s.NextToken,i=!!r}return void 0}of.paginateListExports=$se});var fP=p(lf=>{"use strict";Object.defineProperty(lf,"__esModule",{value:!0});lf.paginateListTables=void 0;var Kse=xc(),Vse=Di(),Hse=Vr(),Wse=async(e,t,...n)=>await e.send(new Kse.ListTablesCommand(t),...n),Yse=async(e,t,...n)=>await e.listTables(t,...n);async function*Jse(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 Vse.DynamoDB)s=await Yse(e.client,t,...n);else if(e.client instanceof Hse.DynamoDBClient)s=await Wse(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s,r=s.LastEvaluatedTableName,i=!!r}return void 0}lf.paginateListTables=Jse});var pP=p(cf=>{"use strict";Object.defineProperty(cf,"__esModule",{value:!0});cf.paginateQuery=void 0;var Qse=Pc(),Xse=Di(),Zse=Vr(),eae=async(e,t,...n)=>await e.send(new Qse.QueryCommand(t),...n),tae=async(e,t,...n)=>await e.query(t,...n);async function*nae(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 Xse.DynamoDB)s=await tae(e.client,t,...n);else if(e.client instanceof Zse.DynamoDBClient)s=await eae(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s,r=s.LastEvaluatedKey,i=!!r}return void 0}cf.paginateQuery=nae});var _P=p(df=>{"use strict";Object.defineProperty(df,"__esModule",{value:!0});df.paginateScan=void 0;var rae=qc(),iae=Di(),sae=Vr(),aae=async(e,t,...n)=>await e.send(new rae.ScanCommand(t),...n),oae=async(e,t,...n)=>await e.scan(t,...n);async function*lae(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 iae.DynamoDB)s=await oae(e.client,t,...n);else if(e.client instanceof sae.DynamoDBClient)s=await aae(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s,r=s.LastEvaluatedKey,i=!!r}return void 0}df.paginateScan=lae});var hP=p(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});var Os=se();Os.__exportStar(dP(),Hr);Os.__exportStar(uP(),Hr);Os.__exportStar(mP(),Hr);Os.__exportStar(fP(),Hr);Os.__exportStar(pP(),Hr);Os.__exportStar(_P(),Hr)});var fv=p(uf=>{"use strict";Object.defineProperty(uf,"__esModule",{value:!0});uf.sleep=void 0;var cae=e=>new Promise(t=>setTimeout(t,e*1e3));uf.sleep=cae});var ff=p(mr=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});mr.checkExceptions=mr.WaiterState=mr.waiterServiceDefaults=void 0;mr.waiterServiceDefaults={minDelay:2,maxDelay:120};var mf;(function(e){e.ABORTED="ABORTED",e.FAILURE="FAILURE",e.SUCCESS="SUCCESS",e.RETRY="RETRY",e.TIMEOUT="TIMEOUT"})(mf=mr.WaiterState||(mr.WaiterState={}));var dae=e=>{if(e.state===mf.ABORTED){let t=new Error(`${JSON.stringify(f(o({},e),{reason:"Request was aborted"}))}`);throw t.name="AbortError",t}else if(e.state===mf.TIMEOUT){let t=new Error(`${JSON.stringify(f(o({},e),{reason:"Waiter has timed out"}))}`);throw t.name="TimeoutError",t}else if(e.state!==mf.SUCCESS)throw new Error(`${JSON.stringify({result:e})}`);return e};mr.checkExceptions=dae});var gP=p(_f=>{"use strict";Object.defineProperty(_f,"__esModule",{value:!0});_f.runPolling=void 0;var uae=fv(),pf=ff(),mae=(e,t,n,r)=>{if(r>n)return t;let i=e*2**(r-1);return fae(e,i)},fae=(e,t)=>e+Math.random()*(t-e),pae=async({minDelay:e,maxDelay:t,maxWaitTime:n,abortController:r,client:i,abortSignal:s},a,l)=>{var c;let{state:d}=await l(i,a);if(d!==pf.WaiterState.RETRY)return{state:d};let u=1,_=Date.now()+n*1e3,g=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:pf.WaiterState.ABORTED};let b=mae(e,t,g,u);if(Date.now()+b*1e3>_)return{state:pf.WaiterState.TIMEOUT};await uae.sleep(b);let{state:S}=await l(i,a);if(S!==pf.WaiterState.RETRY)return{state:S};u+=1}};_f.runPolling=pae});var yP=p(hf=>{"use strict";Object.defineProperty(hf,"__esModule",{value:!0});hf.validateWaiterOptions=void 0;var _ae=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`)};hf.validateWaiterOptions=_ae});var bP=p(gf=>{"use strict";Object.defineProperty(gf,"__esModule",{value:!0});var vP=se();vP.__exportStar(fv(),gf);vP.__exportStar(yP(),gf)});var EP=p(yf=>{"use strict";Object.defineProperty(yf,"__esModule",{value:!0});yf.createWaiter=void 0;var hae=gP(),gae=bP(),SP=ff(),wP=async e=>new Promise(t=>{e.onabort=()=>t({state:SP.WaiterState.ABORTED})}),yae=async(e,t,n)=>{let r=o(o({},SP.waiterServiceDefaults),e);gae.validateWaiterOptions(r);let i=[hae.runPolling(r,t,n)];return e.abortController&&i.push(wP(e.abortController.signal)),e.abortSignal&&i.push(wP(e.abortSignal)),Promise.race(i)};yf.createWaiter=yae});var pv=p(vf=>{"use strict";Object.defineProperty(vf,"__esModule",{value:!0});var AP=se();AP.__exportStar(EP(),vf);AP.__exportStar(ff(),vf)});var TP=p(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});qs.waitUntilTableExists=qs.waitForTableExists=void 0;var Ls=pv(),vae=Aa(),CP=async(e,t)=>{let n;try{let r=await e.send(new vae.DescribeTableCommand(t));n=r;try{if((()=>r.Table.TableStatus)()==="ACTIVE")return{state:Ls.WaiterState.SUCCESS,reason:n}}catch{}}catch(r){if(n=r,r.name&&r.name=="ResourceNotFoundException")return{state:Ls.WaiterState.RETRY,reason:n}}return{state:Ls.WaiterState.RETRY,reason:n}},bae=async(e,t)=>{let n={minDelay:20,maxDelay:120};return Ls.createWaiter(o(o({},n),e),t,CP)};qs.waitForTableExists=bae;var Sae=async(e,t)=>{let n={minDelay:20,maxDelay:120},r=await Ls.createWaiter(o(o({},n),e),t,CP);return Ls.checkExceptions(r)};qs.waitUntilTableExists=Sae});var IP=p(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});Ms.waitUntilTableNotExists=Ms.waitForTableNotExists=void 0;var so=pv(),wae=Aa(),xP=async(e,t)=>{let n;try{n=await e.send(new wae.DescribeTableCommand(t))}catch(r){if(n=r,r.name&&r.name=="ResourceNotFoundException")return{state:so.WaiterState.SUCCESS,reason:n}}return{state:so.WaiterState.RETRY,reason:n}},Eae=async(e,t)=>{let n={minDelay:20,maxDelay:120};return so.createWaiter(o(o({},n),e),t,xP)};Ms.waitForTableNotExists=Eae;var Aae=async(e,t)=>{let n={minDelay:20,maxDelay:120},r=await so.createWaiter(o(o({},n),e),t,xP);return so.checkExceptions(r)};Ms.waitUntilTableNotExists=Aae});var NP=p(bf=>{"use strict";Object.defineProperty(bf,"__esModule",{value:!0});var RP=se();RP.__exportStar(TP(),bf);RP.__exportStar(IP(),bf)});var wt=p(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});var ks=se();ks.__exportStar(Di(),Wr);ks.__exportStar(Vr(),Wr);ks.__exportStar(oP(),Wr);ks.__exportStar(lP(),Wr);ks.__exportStar(hP(),Wr);ks.__exportStar(NP(),Wr)});var _v=p(Oi=>{"use strict";Object.defineProperty(Oi,"__esModule",{value:!0});Oi.convertToAttr=void 0;var Cae=(e,t)=>{var n,r,i,s,a,l;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 Sf();if(Array.isArray(e))return Tae(e,t);if(((n=e==null?void 0:e.constructor)===null||n===void 0?void 0:n.name)==="Set")return xae(e,t);if(((r=e==null?void 0:e.constructor)===null||r===void 0?void 0:r.name)==="Map")return Iae(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 PP(e,t);if(kP(e))return e.length===0&&(t==null?void 0:t.convertEmptyValues)?Sf():DP(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"||((a=e==null?void 0:e.constructor)===null||a===void 0?void 0:a.name)==="Number")return MP(e);if(typeof e=="bigint")return LP(e);if(typeof e=="string"||((l=e==null?void 0:e.constructor)===null||l===void 0?void 0:l.name)==="String")return e.length===0&&(t==null?void 0:t.convertEmptyValues)?Sf():OP(e);if((t==null?void 0:t.convertClassInstanceToMap)&&typeof e=="object")return PP(e,t);throw new Error(`Unsupported type passed: ${e}. Pass options.convertClassInstanceToMap=true to marshall typeof object as map attribute.`)};Oi.convertToAttr=Cae;var Tae=(e,t)=>({L:e.filter(n=>!(t==null?void 0:t.removeUndefinedValues)||(t==null?void 0:t.removeUndefinedValues)&&n!==void 0).map(n=>Oi.convertToAttr(n,t))}),xae=(e,t)=>{let n=(t==null?void 0:t.removeUndefinedValues)?new Set([...e].filter(i=>i!==void 0)):e;if(!(t==null?void 0: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?void 0:t.convertEmptyValues)return Sf();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(MP).map(i=>i.N)};if(typeof r=="bigint")return{NS:Array.from(n).map(LP).map(i=>i.N)};if(typeof r=="string")return{SS:Array.from(n).map(OP).map(i=>i.S)};if(kP(r))return{BS:Array.from(n).map(DP).map(i=>i.B)};throw new Error("Only Number Set (NS), Binary Set (BS) or String Set (SS) are allowed.")},Iae=(e,t)=>({M:(n=>{let r={};for(let[i,s]of n)typeof s!="function"&&(s!==void 0||!(t==null?void 0:t.removeUndefinedValues))&&(r[i]=Oi.convertToAttr(s,t));return r})(e)}),PP=(e,t)=>({M:(n=>{let r={};for(let i in n){let s=n[i];typeof s!="function"&&(s!==void 0||!(t==null?void 0:t.removeUndefinedValues))&&(r[i]=Oi.convertToAttr(s,t))}return r})(e)}),Sf=()=>({NULL:!0}),DP=e=>({B:e}),OP=e=>({S:e.toString()}),LP=e=>({N:e.toString()}),qP=e=>{throw new Error(`${e} ${typeof BigInt=="function"?"Use BigInt.":"Pass string value instead."} `)},MP=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?qP(`Number ${e.toString()} is greater than Number.MAX_SAFE_INTEGER.`):e<Number.MIN_SAFE_INTEGER&&qP(`Number ${e.toString()} is lesser than Number.MIN_SAFE_INTEGER.`),{N:e.toString()}},kP=e=>{let t=["ArrayBuffer","Blob","Buffer","DataView","File","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];return(e==null?void 0:e.constructor)?t.includes(e.constructor.name):!1}});var hv=p(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});js.convertToNative=void 0;var Rae=(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 jP(r,t);case"B":return UP(r);case"S":return zP(r);case"L":return Nae(r,t);case"M":return Pae(r,t);case"NS":return new Set(r.map(i=>jP(i,t)));case"BS":return new Set(r.map(UP));case"SS":return new Set(r.map(zP));default:throw new Error(`Unsupported type passed: ${n}`)}throw new Error(`No value defined: ${JSON.stringify(e)}`)};js.convertToNative=Rae;var jP=(e,t)=>{if(t==null?void 0: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},zP=e=>e,UP=e=>e,Nae=(e,t)=>e.map(n=>js.convertToNative(n,t)),Pae=(e,t)=>Object.entries(e).reduce((n,[r,i])=>f(o({},n),{[r]:js.convertToNative(i,t)}),{})});var FP=p(wf=>{"use strict";Object.defineProperty(wf,"__esModule",{value:!0});wf.marshall=void 0;var Dae=_v(),Oae=(e,t)=>Dae.convertToAttr(e,t).M;wf.marshall=Oae});var GP=p(BP=>{"use strict";Object.defineProperty(BP,"__esModule",{value:!0})});var $P=p(Ef=>{"use strict";Object.defineProperty(Ef,"__esModule",{value:!0});Ef.unmarshall=void 0;var Lae=hv(),qae=(e,t)=>Lae.convertToNative({M:e},t);Ef.unmarshall=qae});var KP=p(Li=>{"use strict";Object.defineProperty(Li,"__esModule",{value:!0});var ao=se();ao.__exportStar(_v(),Li);ao.__exportStar(hv(),Li);ao.__exportStar(FP(),Li);ao.__exportStar(GP(),Li);ao.__exportStar($P(),Li)});var Rt=p(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});zs.unmarshallOutput=zs.marshallInput=void 0;var VP=KP(),HP=(e,t,n)=>{if(e)return!n||Array.isArray(n)&&n.length===0?t(e):Array.isArray(n)?gv(e,t,n):Mae(e,t,n.children)},WP=(e,t,n)=>Array.isArray(e)?e.map(r=>HP(r,t,n)):HP(e,t,n),gv=(e,t,n)=>n.reduce((r,{key:i,children:s})=>f(o({},r),{[i]:WP(r[i],t,s)}),e),Mae=(e,t,n)=>Object.entries(e).reduce((r,[i,s])=>f(o({},r),{[i]:WP(s,t,n)}),{}),kae=(e,t,n)=>gv(e,i=>VP.marshall(i,n),t);zs.marshallInput=kae;var jae=(e,t,n)=>gv(e,i=>VP.unmarshall(i,n),t);zs.unmarshallOutput=jae});var yv=p(Af=>{"use strict";Object.defineProperty(Af,"__esModule",{value:!0});Af.BatchExecuteStatementCommand=void 0;var zae=wt(),Uae=q(),YP=Rt(),JP=class extends Uae.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||{},a=new zae.BatchExecuteStatementCommand(YP.marshallInput(this.input,this.inputKeyNodes,i)),l=a.resolveMiddleware(t,n,r);return async()=>{let c=await l(a);return f(o({},c),{output:YP.unmarshallOutput(c.output,this.outputKeyNodes,s)})}}};Af.BatchExecuteStatementCommand=JP});var vv=p(Cf=>{"use strict";Object.defineProperty(Cf,"__esModule",{value:!0});Cf.BatchGetCommand=void 0;var Fae=wt(),Bae=q(),QP=Rt(),XP=class extends Bae.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||{},a=new Fae.BatchGetItemCommand(QP.marshallInput(this.input,this.inputKeyNodes,i)),l=a.resolveMiddleware(t,n,r);return async()=>{let c=await l(a);return f(o({},c),{output:QP.unmarshallOutput(c.output,this.outputKeyNodes,s)})}}};Cf.BatchGetCommand=XP});var bv=p(Tf=>{"use strict";Object.defineProperty(Tf,"__esModule",{value:!0});Tf.BatchWriteCommand=void 0;var Gae=wt(),$ae=q(),ZP=Rt(),eD=class extends $ae.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||{},a=new Gae.BatchWriteItemCommand(ZP.marshallInput(this.input,this.inputKeyNodes,i)),l=a.resolveMiddleware(t,n,r);return async()=>{let c=await l(a);return f(o({},c),{output:ZP.unmarshallOutput(c.output,this.outputKeyNodes,s)})}}};Tf.BatchWriteCommand=eD});var Sv=p(xf=>{"use strict";Object.defineProperty(xf,"__esModule",{value:!0});xf.DeleteCommand=void 0;var Kae=wt(),Vae=q(),tD=Rt(),nD=class extends Vae.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||{},a=new Kae.DeleteItemCommand(tD.marshallInput(this.input,this.inputKeyNodes,i)),l=a.resolveMiddleware(t,n,r);return async()=>{let c=await l(a);return f(o({},c),{output:tD.unmarshallOutput(c.output,this.outputKeyNodes,s)})}}};xf.DeleteCommand=nD});var wv=p(If=>{"use strict";Object.defineProperty(If,"__esModule",{value:!0});If.ExecuteStatementCommand=void 0;var Hae=wt(),Wae=q(),rD=Rt(),iD=class extends Wae.Command{constructor(t){super();this.input=t,this.inputKeyNodes=[{key:"Parameters"}],this.outputKeyNodes=[{key:"Items"}]}resolveMiddleware(t,n,r){let{marshallOptions:i,unmarshallOptions:s}=n.translateConfig||{},a=new Hae.ExecuteStatementCommand(rD.marshallInput(this.input,this.inputKeyNodes,i)),l=a.resolveMiddleware(t,n,r);return async()=>{let c=await l(a);return f(o({},c),{output:rD.unmarshallOutput(c.output,this.outputKeyNodes,s)})}}};If.ExecuteStatementCommand=iD});var Ev=p(Rf=>{"use strict";Object.defineProperty(Rf,"__esModule",{value:!0});Rf.ExecuteTransactionCommand=void 0;var Yae=wt(),Jae=q(),sD=Rt(),aD=class extends Jae.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||{},a=new Yae.ExecuteTransactionCommand(sD.marshallInput(this.input,this.inputKeyNodes,i)),l=a.resolveMiddleware(t,n,r);return async()=>{let c=await l(a);return f(o({},c),{output:sD.unmarshallOutput(c.output,this.outputKeyNodes,s)})}}};Rf.ExecuteTransactionCommand=aD});var Av=p(Nf=>{"use strict";Object.defineProperty(Nf,"__esModule",{value:!0});Nf.GetCommand=void 0;var Qae=wt(),Xae=q(),oD=Rt(),lD=class extends Xae.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||{},a=new Qae.GetItemCommand(oD.marshallInput(this.input,this.inputKeyNodes,i)),l=a.resolveMiddleware(t,n,r);return async()=>{let c=await l(a);return f(o({},c),{output:oD.unmarshallOutput(c.output,this.outputKeyNodes,s)})}}};Nf.GetCommand=lD});var Cv=p(Pf=>{"use strict";Object.defineProperty(Pf,"__esModule",{value:!0});Pf.PutCommand=void 0;var Zae=wt(),eoe=q(),cD=Rt(),dD=class extends eoe.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||{},a=new Zae.PutItemCommand(cD.marshallInput(this.input,this.inputKeyNodes,i)),l=a.resolveMiddleware(t,n,r);return async()=>{let c=await l(a);return f(o({},c),{output:cD.unmarshallOutput(c.output,this.outputKeyNodes,s)})}}};Pf.PutCommand=dD});var Of=p(Df=>{"use strict";Object.defineProperty(Df,"__esModule",{value:!0});Df.QueryCommand=void 0;var toe=wt(),noe=q(),uD=Rt(),mD=class extends noe.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||{},a=new toe.QueryCommand(uD.marshallInput(this.input,this.inputKeyNodes,i)),l=a.resolveMiddleware(t,n,r);return async()=>{let c=await l(a);return f(o({},c),{output:uD.unmarshallOutput(c.output,this.outputKeyNodes,s)})}}};Df.QueryCommand=mD});var qf=p(Lf=>{"use strict";Object.defineProperty(Lf,"__esModule",{value:!0});Lf.ScanCommand=void 0;var roe=wt(),ioe=q(),fD=Rt(),pD=class extends ioe.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||{},a=new roe.ScanCommand(fD.marshallInput(this.input,this.inputKeyNodes,i)),l=a.resolveMiddleware(t,n,r);return async()=>{let c=await l(a);return f(o({},c),{output:fD.unmarshallOutput(c.output,this.outputKeyNodes,s)})}}};Lf.ScanCommand=pD});var Tv=p(Mf=>{"use strict";Object.defineProperty(Mf,"__esModule",{value:!0});Mf.TransactGetCommand=void 0;var soe=wt(),aoe=q(),_D=Rt(),hD=class extends aoe.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||{},a=new soe.TransactGetItemsCommand(_D.marshallInput(this.input,this.inputKeyNodes,i)),l=a.resolveMiddleware(t,n,r);return async()=>{let c=await l(a);return f(o({},c),{output:_D.unmarshallOutput(c.output,this.outputKeyNodes,s)})}}};Mf.TransactGetCommand=hD});var xv=p(kf=>{"use strict";Object.defineProperty(kf,"__esModule",{value:!0});kf.TransactWriteCommand=void 0;var ooe=wt(),loe=q(),gD=Rt(),yD=class extends loe.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||{},a=new ooe.TransactWriteItemsCommand(gD.marshallInput(this.input,this.inputKeyNodes,i)),l=a.resolveMiddleware(t,n,r);return async()=>{let c=await l(a);return f(o({},c),{output:gD.unmarshallOutput(c.output,this.outputKeyNodes,s)})}}};kf.TransactWriteCommand=yD});var Iv=p(jf=>{"use strict";Object.defineProperty(jf,"__esModule",{value:!0});jf.UpdateCommand=void 0;var coe=wt(),doe=q(),vD=Rt(),bD=class extends doe.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||{},a=new coe.UpdateItemCommand(vD.marshallInput(this.input,this.inputKeyNodes,i)),l=a.resolveMiddleware(t,n,r);return async()=>{let c=await l(a);return f(o({},c),{output:vD.unmarshallOutput(c.output,this.outputKeyNodes,s)})}}};jf.UpdateCommand=bD});var oo=p(Uf=>{"use strict";Object.defineProperty(Uf,"__esModule",{value:!0});Uf.DynamoDBDocumentClient=void 0;var uoe=q(),zf=class extends uoe.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 zf(t,n)}destroy(){}};Uf.DynamoDBDocumentClient=zf});var Gf=p(Bf=>{"use strict";Object.defineProperty(Bf,"__esModule",{value:!0});Bf.DynamoDBDocument=void 0;var moe=yv(),foe=vv(),poe=bv(),_oe=Sv(),hoe=wv(),goe=Ev(),yoe=Av(),voe=Cv(),boe=Of(),Soe=qf(),woe=Tv(),Eoe=xv(),Aoe=Iv(),Coe=oo(),Ff=class extends Coe.DynamoDBDocumentClient{static from(t,n){return new Ff(t,n)}batchExecuteStatement(t,n,r){let i=new moe.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 foe.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 poe.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 _oe.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 hoe.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 goe.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 yoe.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 voe.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 boe.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 Soe.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 woe.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 Eoe.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 Aoe.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)}};Bf.DynamoDBDocument=Ff});var SD=p(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});var Gt=se();Gt.__exportStar(yv(),Et);Gt.__exportStar(vv(),Et);Gt.__exportStar(bv(),Et);Gt.__exportStar(Sv(),Et);Gt.__exportStar(wv(),Et);Gt.__exportStar(Ev(),Et);Gt.__exportStar(Av(),Et);Gt.__exportStar(Cv(),Et);Gt.__exportStar(Of(),Et);Gt.__exportStar(qf(),Et);Gt.__exportStar(Tv(),Et);Gt.__exportStar(xv(),Et);Gt.__exportStar(Iv(),Et)});var ED=p(wD=>{"use strict";Object.defineProperty(wD,"__esModule",{value:!0})});var AD=p($f=>{"use strict";Object.defineProperty($f,"__esModule",{value:!0});$f.paginateQuery=void 0;var Toe=Of(),xoe=Gf(),Ioe=oo(),Roe=async(e,t,...n)=>await e.send(new Toe.QueryCommand(t),...n),Noe=async(e,t,...n)=>await e.query(t,...n);async function*Poe(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 xoe.DynamoDBDocument)s=await Noe(e.client,t,...n);else if(e.client instanceof Ioe.DynamoDBDocumentClient)s=await Roe(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDBDocument | DynamoDBDocumentClient");yield s,r=s.LastEvaluatedKey,i=!!r}return void 0}$f.paginateQuery=Poe});var CD=p(Kf=>{"use strict";Object.defineProperty(Kf,"__esModule",{value:!0});Kf.paginateScan=void 0;var Doe=qf(),Ooe=Gf(),Loe=oo(),qoe=async(e,t,...n)=>await e.send(new Doe.ScanCommand(t),...n),Moe=async(e,t,...n)=>await e.scan(t,...n);async function*koe(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 Ooe.DynamoDBDocument)s=await Moe(e.client,t,...n);else if(e.client instanceof Loe.DynamoDBDocumentClient)s=await qoe(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDBDocument | DynamoDBDocumentClient");yield s,r=s.LastEvaluatedKey,i=!!r}return void 0}Kf.paginateScan=koe});var TD=p(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});var Rv=se();Rv.__exportStar(ED(),lo);Rv.__exportStar(AD(),lo);Rv.__exportStar(CD(),lo)});var xD=p(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});var Vf=se();Vf.__exportStar(Gf(),Us);Vf.__exportStar(oo(),Us);Vf.__exportStar(SD(),Us);Vf.__exportStar(TD(),Us)});var RD=p(Hf=>{"use strict";Object.defineProperty(Hf,"__esModule",{value:!0});Hf.DBManager=void 0;var joe=xD(),ID=class{constructor(t){let{dynamoClient:n,tableName:r}=t;this._tableName=r,this._client=n,this._ddbDocClient=joe.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}};Hf.DBManager=ID});var ND=p(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});co.TransformationType=void 0;var zoe;(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"})(zoe=co.TransformationType||(co.TransformationType={}))});var uo=p(qi=>{"use strict";var Uoe=qi&&qi.__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]}),Foe=qi&&qi.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Uoe(t,e,n)};Object.defineProperty(qi,"__esModule",{value:!0});Foe(ND(),qi)});var DD=p(Wf=>{"use strict";Object.defineProperty(Wf,"__esModule",{value:!0});Wf.MetadataStorage=void 0;var fr=uo(),PD=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===fr.TransformationType.CLASS_TO_CLASS||r===fr.TransformationType.PLAIN_TO_CLASS:i.options.toPlainOnly===!0?r===fr.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===fr.TransformationType.CLASS_TO_CLASS||n===fr.TransformationType.PLAIN_TO_CLASS:r.options.toPlainOnly===!0?n===fr.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===fr.TransformationType.CLASS_TO_CLASS||n===fr.TransformationType.PLAIN_TO_CLASS:r.options.toPlainOnly===!0?n===fr.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(a=>a.propertyName!==void 0));let s=[];for(let a of this.getAncestors(n)){let l=t.get(a);if(l){let c=Array.from(l.values()).filter(d=>d.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 a=t.get(s);if(a){let l=a.get(r);if(l)return l}}}findMetadatas(t,n,r){let i=t.get(n),s;i&&(s=i.get(r));let a=[];for(let l of this.getAncestors(n)){let c=t.get(l);c&&c.has(r)&&a.push(...c.get(r))}return a.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!="undefined";r=Object.getPrototypeOf(r.prototype.constructor))n.push(r);this._ancestorsMap.set(t,n)}return this._ancestorsMap.get(t)}};Wf.MetadataStorage=PD});var Fs=p(Yf=>{"use strict";Object.defineProperty(Yf,"__esModule",{value:!0});Yf.defaultMetadataStorage=void 0;var Boe=DD();Yf.defaultMetadataStorage=new Boe.MetadataStorage});var OD=p(Jf=>{"use strict";Object.defineProperty(Jf,"__esModule",{value:!0});Jf.getGlobal=void 0;function Goe(){if(typeof globalThis!="undefined")return globalThis;if(typeof global!="undefined")return global;if(typeof window!="undefined")return window;if(typeof self!="undefined")return self}Jf.getGlobal=Goe});var LD=p(Qf=>{"use strict";Object.defineProperty(Qf,"__esModule",{value:!0});Qf.isPromise=void 0;function $oe(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}Qf.isPromise=$oe});var MD=p(Yr=>{"use strict";var Koe=Yr&&Yr.__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]}),qD=Yr&&Yr.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Koe(t,e,n)};Object.defineProperty(Yr,"__esModule",{value:!0});qD(OD(),Yr);qD(LD(),Yr)});var zD=p(Xf=>{"use strict";Object.defineProperty(Xf,"__esModule",{value:!0});Xf.TransformOperationExecutor=void 0;var an=Fs(),He=uo(),kD=MD();function Voe(e){let t=new e;return!(t instanceof Set)&&!("push"in t)?[]:t}var jD=class{constructor(t,n){this.transformationType=t,this.options=n,this.recursionStack=new Set}transform(t,n,r,i,s,a=0){if(Array.isArray(n)||n instanceof Set){let l=i&&this.transformationType===He.TransformationType.PLAIN_TO_CLASS?Voe(i):[];return n.forEach((c,d)=>{let u=t?t[d]:void 0;if(!this.options.enableCircularCheck||!this.isCircular(c)){let _;if(typeof r!="function"&&r&&r.options&&r.options.discriminator&&r.options.discriminator.property&&r.options.discriminator.subTypes){if(this.transformationType===He.TransformationType.PLAIN_TO_CLASS){_=r.options.discriminator.subTypes.find(v=>v.name===c[r.options.discriminator.property]);let b={newObject:l,object:c,property:void 0},S=r.typeFunction(b);_===void 0?_=S:_=_.value,r.options.keepDiscriminatorProperty||delete c[r.options.discriminator.property]}this.transformationType===He.TransformationType.CLASS_TO_CLASS&&(_=c.constructor),this.transformationType===He.TransformationType.CLASS_TO_PLAIN&&(c[r.options.discriminator.property]=r.options.discriminator.subTypes.find(b=>b.value===c.constructor).name)}else _=r;let g=this.transform(u,c,_,void 0,c instanceof Map,a+1);l instanceof Set?l.add(g):l.push(g)}else this.transformationType===He.TransformationType.CLASS_TO_CLASS&&(l instanceof Set?l.add(c):l.push(c))}),l}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(!!kD.getGlobal().Buffer&&(r===Buffer||n instanceof Buffer)&&!s)return n==null?n:Buffer.from(n);if(kD.isPromise(n)&&!s)return new Promise((l,c)=>{n.then(d=>l(this.transform(void 0,d,r,void 0,void 0,a+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&&(r=n.constructor),!r&&t&&(r=t.constructor),this.options.enableCircularCheck&&this.recursionStack.add(n);let l=this.getKeys(r,n,s),c=t||{};!t&&(this.transformationType===He.TransformationType.PLAIN_TO_CLASS||this.transformationType===He.TransformationType.CLASS_TO_CLASS)&&(s?c=new Map:r?c=new r:c={});for(let d of l){if(d==="__proto__"||d==="constructor")continue;let u=d,_=d,g=d;if(!this.options.ignoreDecorators&&r){if(this.transformationType===He.TransformationType.PLAIN_TO_CLASS){let x=an.defaultMetadataStorage.findExposeMetadataByCustomName(r,d);x&&(g=x.propertyName,_=x.propertyName)}else if(this.transformationType===He.TransformationType.CLASS_TO_PLAIN||this.transformationType===He.TransformationType.CLASS_TO_CLASS){let x=an.defaultMetadataStorage.findExposeMetadata(r,d);x&&x.options&&x.options.name&&(_=x.options.name)}}let b;n instanceof Map?b=n.get(u):n[u]instanceof Function?b=n[u]():b=n[u];let S,v=b instanceof Map;if(r&&s)S=r;else if(r){let x=an.defaultMetadataStorage.findTypeMetadata(r,g);if(x){let re={newObject:c,object:n,property:g},be=x.typeFunction?x.typeFunction(re):x.reflectedType;x.options&&x.options.discriminator&&x.options.discriminator.property&&x.options.discriminator.subTypes?n[u]instanceof Array?S=x:(this.transformationType===He.TransformationType.PLAIN_TO_CLASS&&(S=x.options.discriminator.subTypes.find(on=>{if(b&&b instanceof Object&&x.options.discriminator.property in b)return on.name===b[x.options.discriminator.property]}),S===void 0?S=be:S=S.value,x.options.keepDiscriminatorProperty||b&&b instanceof Object&&x.options.discriminator.property in b&&delete b[x.options.discriminator.property]),this.transformationType===He.TransformationType.CLASS_TO_CLASS&&(S=b.constructor),this.transformationType===He.TransformationType.CLASS_TO_PLAIN&&(b[x.options.discriminator.property]=x.options.discriminator.subTypes.find(on=>on.value===b.constructor).name)):S=be,v=v||x.reflectedType===Map}else if(this.options.targetMaps)this.options.targetMaps.filter(re=>re.target===r&&!!re.properties[g]).forEach(re=>S=re.properties[g]);else if(this.options.enableImplicitConversion&&this.transformationType===He.TransformationType.PLAIN_TO_CLASS){let re=Reflect.getMetadata("design:type",r.prototype,g);re&&(S=re)}}let I=Array.isArray(n[u])?this.getReflectedType(r,g):void 0,L=t?t[u]:void 0;if(c.constructor.prototype){let x=Object.getOwnPropertyDescriptor(c.constructor.prototype,_);if((this.transformationType===He.TransformationType.PLAIN_TO_CLASS||this.transformationType===He.TransformationType.CLASS_TO_CLASS)&&(x&&!x.set||c[_]instanceof Function))continue}if(!this.options.enableCircularCheck||!this.isCircular(b)){let x=this.transformationType===He.TransformationType.PLAIN_TO_CLASS?_:d,re;this.transformationType===He.TransformationType.CLASS_TO_PLAIN?(re=n[x],re=this.applyCustomTransformations(re,r,x,n,this.transformationType),re=n[x]===re?b:re,re=this.transform(L,re,S,I,v,a+1)):b===void 0&&this.options.exposeDefaultValues?re=c[_]:(re=this.transform(L,b,S,I,v,a+1),re=this.applyCustomTransformations(re,r,x,n,this.transformationType)),(re!==void 0||this.options.exposeUnsetFields)&&(c instanceof Map?c.set(_,re):c[_]=re)}else if(this.transformationType===He.TransformationType.CLASS_TO_CLASS){let x=b;x=this.applyCustomTransformations(x,r,d,n,this.transformationType),(x!==void 0||this.options.exposeUnsetFields)&&(c instanceof Map?c.set(_,x):c[_]=x)}}return this.options.enableCircularCheck&&this.recursionStack.delete(n),c}else return n}}applyCustomTransformations(t,n,r,i,s){let a=an.defaultMetadataStorage.findTransformMetadatas(n,r,this.transformationType);return this.options.version!==void 0&&(a=a.filter(l=>l.options?this.checkVersion(l.options.since,l.options.until):!0)),this.options.groups&&this.options.groups.length?a=a.filter(l=>l.options?this.checkGroups(l.options.groups):!0):a=a.filter(l=>!l.options||!l.options.groups||!l.options.groups.length),a.forEach(l=>{t=l.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=an.defaultMetadataStorage.findTypeMetadata(t,n);return r?r.reflectedType:void 0}getKeys(t,n,r){let i=an.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&&t){let a=an.defaultMetadataStorage.getExposedProperties(t,this.transformationType);this.transformationType===He.TransformationType.PLAIN_TO_CLASS&&(a=a.map(c=>{let d=an.defaultMetadataStorage.findExposeMetadata(t,c);return d&&d.options&&d.options.name?d.options.name:c})),this.options.excludeExtraneousValues?s=a:s=s.concat(a);let l=an.defaultMetadataStorage.getExcludedProperties(t,this.transformationType);l.length>0&&(s=s.filter(c=>!l.includes(c))),this.options.version!==void 0&&(s=s.filter(c=>{let d=an.defaultMetadataStorage.findExposeMetadata(t,c);return!d||!d.options?!0:this.checkVersion(d.options.since,d.options.until)})),this.options.groups&&this.options.groups.length?s=s.filter(c=>{let d=an.defaultMetadataStorage.findExposeMetadata(t,c);return!d||!d.options?!0:this.checkGroups(d.options.groups)}):s=s.filter(c=>{let d=an.defaultMetadataStorage.findExposeMetadata(t,c);return!d||!d.options||!d.options.groups||!d.options.groups.length})}return this.options.excludePrefixes&&this.options.excludePrefixes.length&&(s=s.filter(a=>this.options.excludePrefixes.every(l=>a.substr(0,l.length)!==l))),s=s.filter((a,l,c)=>c.indexOf(a)===l),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}};Xf.TransformOperationExecutor=jD});var UD=p(Zf=>{"use strict";Object.defineProperty(Zf,"__esModule",{value:!0});Zf.defaultOptions=void 0;Zf.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 Ks=p(ep=>{"use strict";Object.defineProperty(ep,"__esModule",{value:!0});ep.ClassTransformer=void 0;var Bs=zD(),Gs=uo(),$s=UD(),FD=class{classToPlain(t,n){return new Bs.TransformOperationExecutor(Gs.TransformationType.CLASS_TO_PLAIN,o(o({},$s.defaultOptions),n)).transform(void 0,t,void 0,void 0,void 0,void 0)}classToPlainFromExist(t,n,r){return new Bs.TransformOperationExecutor(Gs.TransformationType.CLASS_TO_PLAIN,o(o({},$s.defaultOptions),r)).transform(n,t,void 0,void 0,void 0,void 0)}plainToClass(t,n,r){return new Bs.TransformOperationExecutor(Gs.TransformationType.PLAIN_TO_CLASS,o(o({},$s.defaultOptions),r)).transform(void 0,n,t,void 0,void 0,void 0)}plainToClassFromExist(t,n,r){return new Bs.TransformOperationExecutor(Gs.TransformationType.PLAIN_TO_CLASS,o(o({},$s.defaultOptions),r)).transform(t,n,void 0,void 0,void 0,void 0)}classToClass(t,n){return new Bs.TransformOperationExecutor(Gs.TransformationType.CLASS_TO_CLASS,o(o({},$s.defaultOptions),n)).transform(void 0,t,void 0,void 0,void 0,void 0)}classToClassFromExist(t,n,r){return new Bs.TransformOperationExecutor(Gs.TransformationType.CLASS_TO_CLASS,o(o({},$s.defaultOptions),r)).transform(n,t,void 0,void 0,void 0,void 0)}serialize(t,n){return JSON.stringify(this.classToPlain(t,n))}deserialize(t,n,r){let i=JSON.parse(n);return this.plainToClass(t,i,r)}deserializeArray(t,n,r){let i=JSON.parse(n);return this.plainToClass(t,i,r)}};ep.ClassTransformer=FD});var BD=p(tp=>{"use strict";Object.defineProperty(tp,"__esModule",{value:!0});tp.Exclude=void 0;var Hoe=Fs();function Woe(e={}){return function(t,n){Hoe.defaultMetadataStorage.addExcludeMetadata({target:t instanceof Function?t:t.constructor,propertyName:n,options:e})}}tp.Exclude=Woe});var GD=p(np=>{"use strict";Object.defineProperty(np,"__esModule",{value:!0});np.Expose=void 0;var Yoe=Fs();function Joe(e={}){return function(t,n){Yoe.defaultMetadataStorage.addExposeMetadata({target:t instanceof Function?t:t.constructor,propertyName:n,options:e})}}np.Expose=Joe});var $D=p(rp=>{"use strict";Object.defineProperty(rp,"__esModule",{value:!0});rp.TransformClassToClass=void 0;var Qoe=Ks();function Xoe(e){return function(t,n,r){let i=new Qoe.ClassTransformer,s=r.value;r.value=function(...a){let l=s.apply(this,a);return!!l&&(typeof l=="object"||typeof l=="function")&&typeof l.then=="function"?l.then(d=>i.classToClass(d,e)):i.classToClass(l,e)}}}rp.TransformClassToClass=Xoe});var KD=p(ip=>{"use strict";Object.defineProperty(ip,"__esModule",{value:!0});ip.TransformClassToPlain=void 0;var Zoe=Ks();function ele(e){return function(t,n,r){let i=new Zoe.ClassTransformer,s=r.value;r.value=function(...a){let l=s.apply(this,a);return!!l&&(typeof l=="object"||typeof l=="function")&&typeof l.then=="function"?l.then(d=>i.classToPlain(d,e)):i.classToPlain(l,e)}}}ip.TransformClassToPlain=ele});var VD=p(sp=>{"use strict";Object.defineProperty(sp,"__esModule",{value:!0});sp.TransformPlainToClass=void 0;var tle=Ks();function nle(e,t){return function(n,r,i){let s=new tle.ClassTransformer,a=i.value;i.value=function(...l){let c=a.apply(this,l);return!!c&&(typeof c=="object"||typeof c=="function")&&typeof c.then=="function"?c.then(u=>s.plainToClass(e,u,t)):s.plainToClass(e,c,t)}}}sp.TransformPlainToClass=nle});var HD=p(ap=>{"use strict";Object.defineProperty(ap,"__esModule",{value:!0});ap.Transform=void 0;var rle=Fs();function ile(e,t={}){return function(n,r){rle.defaultMetadataStorage.addTransformMetadata({target:n.constructor,propertyName:r,transformFn:e,options:t})}}ap.Transform=ile});var WD=p(op=>{"use strict";Object.defineProperty(op,"__esModule",{value:!0});op.Type=void 0;var sle=Fs();function ale(e,t={}){return function(n,r){let i=Reflect.getMetadata("design:type",n,r);sle.defaultMetadataStorage.addTypeMetadata({target:n.constructor,propertyName:r,reflectedType:i,typeFunction:e,options:t})}}op.Type=ale});var YD=p($t=>{"use strict";var ole=$t&&$t.__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]}),Mi=$t&&$t.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&ole(t,e,n)};Object.defineProperty($t,"__esModule",{value:!0});Mi(BD(),$t);Mi(GD(),$t);Mi($D(),$t);Mi(KD(),$t);Mi(VD(),$t);Mi(HD(),$t);Mi(WD(),$t)});var QD=p(JD=>{"use strict";Object.defineProperty(JD,"__esModule",{value:!0})});var ZD=p(XD=>{"use strict";Object.defineProperty(XD,"__esModule",{value:!0})});var tO=p(eO=>{"use strict";Object.defineProperty(eO,"__esModule",{value:!0})});var rO=p(nO=>{"use strict";Object.defineProperty(nO,"__esModule",{value:!0})});var sO=p(iO=>{"use strict";Object.defineProperty(iO,"__esModule",{value:!0})});var oO=p(aO=>{"use strict";Object.defineProperty(aO,"__esModule",{value:!0})});var cO=p(lO=>{"use strict";Object.defineProperty(lO,"__esModule",{value:!0})});var uO=p(dO=>{"use strict";Object.defineProperty(dO,"__esModule",{value:!0})});var fO=p(mO=>{"use strict";Object.defineProperty(mO,"__esModule",{value:!0})});var _O=p(pO=>{"use strict";Object.defineProperty(pO,"__esModule",{value:!0})});var gO=p(hO=>{"use strict";Object.defineProperty(hO,"__esModule",{value:!0})});var vO=p(yO=>{"use strict";Object.defineProperty(yO,"__esModule",{value:!0})});var SO=p(bO=>{"use strict";Object.defineProperty(bO,"__esModule",{value:!0})});var EO=p(wO=>{"use strict";Object.defineProperty(wO,"__esModule",{value:!0})});var AO=p(We=>{"use strict";var lle=We&&We.__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]}),Nt=We&&We.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&lle(t,e,n)};Object.defineProperty(We,"__esModule",{value:!0});Nt(QD(),We);Nt(ZD(),We);Nt(tO(),We);Nt(rO(),We);Nt(sO(),We);Nt(oO(),We);Nt(cO(),We);Nt(uO(),We);Nt(fO(),We);Nt(_O(),We);Nt(gO(),We);Nt(vO(),We);Nt(SO(),We);Nt(EO(),We)});var lp=p(Se=>{"use strict";var cle=Se&&Se.__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]}),Nv=Se&&Se.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&cle(t,e,n)};Object.defineProperty(Se,"__esModule",{value:!0});Se.deserializeArray=Se.deserialize=Se.serialize=Se.classToClassFromExist=Se.classToClass=Se.plainToClassFromExist=Se.plainToClass=Se.classToPlainFromExist=Se.classToPlain=Se.ClassTransformer=void 0;var dle=Ks(),ule=Ks();Object.defineProperty(Se,"ClassTransformer",{enumerable:!0,get:function(){return ule.ClassTransformer}});Nv(YD(),Se);Nv(AO(),Se);Nv(uo(),Se);var pr=new dle.ClassTransformer;function mle(e,t){return pr.classToPlain(e,t)}Se.classToPlain=mle;function fle(e,t,n){return pr.classToPlainFromExist(e,t,n)}Se.classToPlainFromExist=fle;function ple(e,t,n){return pr.plainToClass(e,t,n)}Se.plainToClass=ple;function _le(e,t,n){return pr.plainToClassFromExist(e,t,n)}Se.plainToClassFromExist=_le;function hle(e,t){return pr.classToClass(e,t)}Se.classToClass=hle;function gle(e,t,n){return pr.classToClassFromExist(e,t,n)}Se.classToClassFromExist=gle;function yle(e,t){return pr.serialize(e,t)}Se.serialize=yle;function vle(e,t,n){return pr.deserialize(e,t,n)}Se.deserialize=vle;function ble(e,t,n){return pr.deserializeArray(e,t,n)}Se.deserializeArray=ble});var Pv=p(dp=>{"use strict";Object.defineProperty(dp,"__esModule",{value:!0});dp.Rules=void 0;var Sle=lp(),cp=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 Sle.plainToClass(cp,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}};dp.Rules=cp});var Dv=p(up=>{"use strict";Object.defineProperty(up,"__esModule",{value:!0});up.Version=void 0;var CO=lp(),Vs;(function(e){e[e.AppName=0]="AppName"})(Vs||(Vs={}));var mo=class{constructor(t){this._keyBy=Vs.AppName,this._status="pending",this._defaultFile="",this._integrationID="",this._routeIDAppVersion="",this._routeIDAppVersionSplat="",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 a of i){let l=CO.plainToClass(mo,a);s.push(l)}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 CO.plainToClass(mo,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 Vs.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,Status:this.Status,DefaultFile:this.DefaultFile,IntegrationID:this.IntegrationID,RouteIDAppVersion:this.RouteIDAppVersion,RouteIDAppVersionSplat:this.RouteIDAppVersionSplat}}async Save(t){this._keyBy=Vs.AppName,await t.ddbDocClient.put({TableName:t.tableName,Item:this.DbStruct})}get SK(){switch(this._keyBy){case Vs.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 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}};up.Version=mo});var IO=p(mp=>{"use strict";Object.defineProperty(mp,"__esModule",{value:!0});mp.Application=void 0;var TO=lp(),xO=Pv(),wle=Dv(),_r;(function(e){e[e.AppName=0]="AppName",e[e.Applications=1]="Applications"})(_r||(_r={}));var fo=class{constructor(t){Object.assign(this,t),this._keyBy=_r.AppName}static async UpdateDefaultRule(t){let{dbManager:n,key:r}=t,i=await xO.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=wle.Version.LoadVersions({dbManager:r,key:n}),s=xO.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 TO.plainToClass(fo,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=TO.plainToClass(fo,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=_r.AppName;let n=t.ddbDocClient.put({TableName:t.tableName,Item:this.DbStruct});this._keyBy=_r.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 _r.Applications:return"applications";case _r.AppName:return`appName#${this.AppName}`.toLowerCase();default:throw new Error("Missing SaveBy handler")}}get SK(){switch(this._keyBy){case _r.Applications:return`appName#${this.AppName}`.toLowerCase();case _r.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}};mp.Application=fo});var RO=p(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.Rules=Jn.Version=Jn.DBManager=Jn.Application=void 0;var Ele=RD();Object.defineProperty(Jn,"DBManager",{enumerable:!0,get:function(){return Ele.DBManager}});var Ale=IO();Object.defineProperty(Jn,"Application",{enumerable:!0,get:function(){return Ale.Application}});var Cle=Pv();Object.defineProperty(Jn,"Rules",{enumerable:!0,get:function(){return Cle.Rules}});var Tle=Dv();Object.defineProperty(Jn,"Version",{enumerable:!0,get:function(){return Tle.Version}})});var Pt=p(Ov=>{"use strict";Ov.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})};Ov.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 PO=p((UEe,NO)=>{var Jr=require("constants"),xle=process.cwd,fp=null,Ile=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return fp||(fp=xle.call(process)),fp};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Lv=process.chdir,process.chdir=function(e){fp=null,Lv.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Lv));var Lv;NO.exports=Rle;function Rle(e){Jr.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=a(e.chownSync),e.fchownSync=a(e.fchownSync),e.lchownSync=a(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=l(e.stat),e.fstat=l(e.fstat),e.lstat=l(e.lstat),e.statSync=c(e.statSync),e.fstatSync=c(e.fstatSync),e.lstatSync=c(e.lstatSync),e.lchmod||(e.lchmod=function(u,_,g){g&&process.nextTick(g)},e.lchmodSync=function(){}),e.lchown||(e.lchown=function(u,_,g,b){b&&process.nextTick(b)},e.lchownSync=function(){}),Ile==="win32"&&(e.rename=function(u){return function(_,g,b){var S=Date.now(),v=0;u(_,g,function I(L){if(L&&(L.code==="EACCES"||L.code==="EPERM")&&Date.now()-S<6e4){setTimeout(function(){e.stat(g,function(x,re){x&&x.code==="ENOENT"?u(_,g,I):b(L)})},v),v<100&&(v+=10);return}b&&b(L)})}}(e.rename)),e.read=function(u){function _(g,b,S,v,I,L){var x;if(L&&typeof L=="function"){var re=0;x=function(be,on,wr){if(be&&be.code==="EAGAIN"&&re<10)return re++,u.call(e,g,b,S,v,I,x);L.apply(this,arguments)}}return u.call(e,g,b,S,v,I,x)}return Object.setPrototypeOf&&Object.setPrototypeOf(_,u),_}(e.read),e.readSync=function(u){return function(_,g,b,S,v){for(var I=0;;)try{return u.call(e,_,g,b,S,v)}catch(L){if(L.code==="EAGAIN"&&I<10){I++;continue}throw L}}}(e.readSync);function t(u){u.lchmod=function(_,g,b){u.open(_,Jr.O_WRONLY|Jr.O_SYMLINK,g,function(S,v){if(S){b&&b(S);return}u.fchmod(v,g,function(I){u.close(v,function(L){b&&b(I||L)})})})},u.lchmodSync=function(_,g){var b=u.openSync(_,Jr.O_WRONLY|Jr.O_SYMLINK,g),S=!0,v;try{v=u.fchmodSync(b,g),S=!1}finally{if(S)try{u.closeSync(b)}catch{}else u.closeSync(b)}return v}}function n(u){Jr.hasOwnProperty("O_SYMLINK")?(u.lutimes=function(_,g,b,S){u.open(_,Jr.O_SYMLINK,function(v,I){if(v){S&&S(v);return}u.futimes(I,g,b,function(L){u.close(I,function(x){S&&S(L||x)})})})},u.lutimesSync=function(_,g,b){var S=u.openSync(_,Jr.O_SYMLINK),v,I=!0;try{v=u.futimesSync(S,g,b),I=!1}finally{if(I)try{u.closeSync(S)}catch{}else u.closeSync(S)}return v}):(u.lutimes=function(_,g,b,S){S&&process.nextTick(S)},u.lutimesSync=function(){})}function r(u){return u&&function(_,g,b){return u.call(e,_,g,function(S){d(S)&&(S=null),b&&b.apply(this,arguments)})}}function i(u){return u&&function(_,g){try{return u.call(e,_,g)}catch(b){if(!d(b))throw b}}}function s(u){return u&&function(_,g,b,S){return u.call(e,_,g,b,function(v){d(v)&&(v=null),S&&S.apply(this,arguments)})}}function a(u){return u&&function(_,g,b){try{return u.call(e,_,g,b)}catch(S){if(!d(S))throw S}}}function l(u){return u&&function(_,g,b){typeof g=="function"&&(b=g,g=null);function S(v,I){I&&(I.uid<0&&(I.uid+=4294967296),I.gid<0&&(I.gid+=4294967296)),b&&b.apply(this,arguments)}return g?u.call(e,_,g,S):u.call(e,_,S)}}function c(u){return u&&function(_,g){var b=g?u.call(e,_,g):u.call(e,_);return b&&(b.uid<0&&(b.uid+=4294967296),b.gid<0&&(b.gid+=4294967296)),b}}function d(u){if(!u||u.code==="ENOSYS")return!0;var _=!process.getuid||process.getuid()!==0;return!!(_&&(u.code==="EINVAL"||u.code==="EPERM"))}}});var LO=p((FEe,OO)=>{var DO=require("stream").Stream;OO.exports=Nle;function Nle(e){return{ReadStream:t,WriteStream:n};function t(r,i){if(!(this instanceof t))return new t(r,i);DO.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 a=Object.keys(i),l=0,c=a.length;l<c;l++){var d=a[l];this[d]=i[d]}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,_){if(u){s.emit("error",u),s.readable=!1;return}s.fd=_,s.emit("open",_),s._read()})}function n(r,i){if(!(this instanceof n))return new n(r,i);DO.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),a=0,l=s.length;a<l;a++){var c=s[a];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 MO=p((BEe,qO)=>{"use strict";qO.exports=Dle;var Ple=Object.getPrototypeOf||function(e){return e.__proto__};function Dle(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:Ple(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}});var gt=p((GEe,kv)=>{var qe=require("fs"),Ole=PO(),Lle=LO(),qle=MO(),pp=require("util"),ut,_p;typeof Symbol=="function"&&typeof Symbol.for=="function"?(ut=Symbol.for("graceful-fs.queue"),_p=Symbol.for("graceful-fs.previous")):(ut="___graceful-fs.queue",_p="___graceful-fs.previous");function Mle(){}function kO(e,t){Object.defineProperty(e,ut,{get:function(){return t}})}var ki=Mle;pp.debuglog?ki=pp.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(ki=function(){var e=pp.format.apply(pp,arguments);e="GFS4: "+e.split(/\n/).join(`
31
- GFS4: `),console.error(e)});qe[ut]||(jO=global[ut]||[],kO(qe,jO),qe.close=function(e){function t(n,r){return e.call(qe,n,function(i){i||zO(),typeof r=="function"&&r.apply(this,arguments)})}return Object.defineProperty(t,_p,{value:e}),t}(qe.close),qe.closeSync=function(e){function t(n){e.apply(qe,arguments),zO()}return Object.defineProperty(t,_p,{value:e}),t}(qe.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){ki(qe[ut]),require("assert").equal(qe[ut].length,0)}));var jO;global[ut]||kO(global,qe[ut]);kv.exports=qv(qle(qe));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!qe.__patched&&(kv.exports=qv(qe),qe.__patched=!0);function qv(e){Ole(e),e.gracefulify=qv,e.createReadStream=be,e.createWriteStream=on;var t=e.readFile;e.readFile=n;function n(Q,$,fe){return typeof $=="function"&&(fe=$,$=null),Le(Q,$,fe);function Le(we,Me,Ce,Ue){return t(we,Me,function(he){he&&(he.code==="EMFILE"||he.code==="ENFILE")?Hs([Le,[we,Me,Ce],he,Ue||Date.now(),Date.now()]):typeof Ce=="function"&&Ce.apply(this,arguments)})}}var r=e.writeFile;e.writeFile=i;function i(Q,$,fe,Le){return typeof fe=="function"&&(Le=fe,fe=null),we(Q,$,fe,Le);function we(Me,Ce,Ue,he,it){return r(Me,Ce,Ue,function(De){De&&(De.code==="EMFILE"||De.code==="ENFILE")?Hs([we,[Me,Ce,Ue,he],De,it||Date.now(),Date.now()]):typeof he=="function"&&he.apply(this,arguments)})}}var s=e.appendFile;s&&(e.appendFile=a);function a(Q,$,fe,Le){return typeof fe=="function"&&(Le=fe,fe=null),we(Q,$,fe,Le);function we(Me,Ce,Ue,he,it){return s(Me,Ce,Ue,function(De){De&&(De.code==="EMFILE"||De.code==="ENFILE")?Hs([we,[Me,Ce,Ue,he],De,it||Date.now(),Date.now()]):typeof he=="function"&&he.apply(this,arguments)})}}var l=e.copyFile;l&&(e.copyFile=c);function c(Q,$,fe,Le){return typeof fe=="function"&&(Le=fe,fe=0),we(Q,$,fe,Le);function we(Me,Ce,Ue,he,it){return l(Me,Ce,Ue,function(De){De&&(De.code==="EMFILE"||De.code==="ENFILE")?Hs([we,[Me,Ce,Ue,he],De,it||Date.now(),Date.now()]):typeof he=="function"&&he.apply(this,arguments)})}}var d=e.readdir;e.readdir=u;function u(Q,$,fe){return typeof $=="function"&&(fe=$,$=null),Le(Q,$,fe);function Le(we,Me,Ce,Ue){return d(we,Me,function(he,it){he&&(he.code==="EMFILE"||he.code==="ENFILE")?Hs([Le,[we,Me,Ce],he,Ue||Date.now(),Date.now()]):(it&&it.sort&&it.sort(),typeof Ce=="function"&&Ce.call(this,he,it))})}}if(process.version.substr(0,4)==="v0.8"){var _=Lle(e);I=_.ReadStream,x=_.WriteStream}var g=e.ReadStream;g&&(I.prototype=Object.create(g.prototype),I.prototype.open=L);var b=e.WriteStream;b&&(x.prototype=Object.create(b.prototype),x.prototype.open=re),Object.defineProperty(e,"ReadStream",{get:function(){return I},set:function(Q){I=Q},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return x},set:function(Q){x=Q},enumerable:!0,configurable:!0});var S=I;Object.defineProperty(e,"FileReadStream",{get:function(){return S},set:function(Q){S=Q},enumerable:!0,configurable:!0});var v=x;Object.defineProperty(e,"FileWriteStream",{get:function(){return v},set:function(Q){v=Q},enumerable:!0,configurable:!0});function I(Q,$){return this instanceof I?(g.apply(this,arguments),this):I.apply(Object.create(I.prototype),arguments)}function L(){var Q=this;vn(Q.path,Q.flags,Q.mode,function($,fe){$?(Q.autoClose&&Q.destroy(),Q.emit("error",$)):(Q.fd=fe,Q.emit("open",fe),Q.read())})}function x(Q,$){return this instanceof x?(b.apply(this,arguments),this):x.apply(Object.create(x.prototype),arguments)}function re(){var Q=this;vn(Q.path,Q.flags,Q.mode,function($,fe){$?(Q.destroy(),Q.emit("error",$)):(Q.fd=fe,Q.emit("open",fe))})}function be(Q,$){return new e.ReadStream(Q,$)}function on(Q,$){return new e.WriteStream(Q,$)}var wr=e.open;e.open=vn;function vn(Q,$,fe,Le){return typeof fe=="function"&&(Le=fe,fe=null),we(Q,$,fe,Le);function we(Me,Ce,Ue,he,it){return wr(Me,Ce,Ue,function(De,Hi){De&&(De.code==="EMFILE"||De.code==="ENFILE")?Hs([we,[Me,Ce,Ue,he],De,it||Date.now(),Date.now()]):typeof he=="function"&&he.apply(this,arguments)})}}return e}function Hs(e){ki("ENQUEUE",e[0].name,e[1]),qe[ut].push(e),Mv()}var hp;function zO(){for(var e=Date.now(),t=0;t<qe[ut].length;++t)qe[ut][t].length>2&&(qe[ut][t][3]=e,qe[ut][t][4]=e);Mv()}function Mv(){if(clearTimeout(hp),hp=void 0,qe[ut].length!==0){var e=qe[ut].shift(),t=e[0],n=e[1],r=e[2],i=e[3],s=e[4];if(i===void 0)ki("RETRY",t.name,n),t.apply(null,n);else if(Date.now()-i>=6e4){ki("TIMEOUT",t.name,n);var a=n.pop();typeof a=="function"&&a.call(null,r)}else{var l=Date.now()-s,c=Math.max(s-i,1),d=Math.min(c*1.2,100);l>=d?(ki("RETRY",t.name,n),t.apply(null,n.concat([i]))):qe[ut].push(e)}hp===void 0&&(hp=setTimeout(Mv,0))}}});var po=p(Qr=>{"use strict";var UO=Pt().fromCallback,At=gt(),kle=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(e=>typeof At[e]=="function");Object.keys(At).forEach(e=>{e!=="promises"&&(Qr[e]=At[e])});kle.forEach(e=>{Qr[e]=UO(At[e])});Qr.exists=function(e,t){return typeof t=="function"?At.exists(e,t):new Promise(n=>At.exists(e,n))};Qr.read=function(e,t,n,r,i,s){return typeof s=="function"?At.read(e,t,n,r,i,s):new Promise((a,l)=>{At.read(e,t,n,r,i,(c,d,u)=>{if(c)return l(c);a({bytesRead:d,buffer:u})})})};Qr.write=function(e,t,...n){return typeof n[n.length-1]=="function"?At.write(e,t,...n):new Promise((r,i)=>{At.write(e,t,...n,(s,a,l)=>{if(s)return i(s);r({bytesWritten:a,buffer:l})})})};typeof At.writev=="function"&&(Qr.writev=function(e,t,...n){return typeof n[n.length-1]=="function"?At.writev(e,t,...n):new Promise((r,i)=>{At.writev(e,t,...n,(s,a,l)=>{if(s)return i(s);r({bytesWritten:a,buffers:l})})})});typeof At.realpath.native=="function"&&(Qr.realpath.native=UO(At.realpath.native))});var jv=p((KEe,FO)=>{FO.exports=e=>{let t=process.versions.node.split(".").map(n=>parseInt(n,10));return e=e.split(".").map(n=>parseInt(n,10)),t[0]>e[0]||t[0]===e[0]&&(t[1]>e[1]||t[1]===e[1]&&t[2]>=e[2])}});var VO=p((VEe,zv)=>{"use strict";var Ws=po(),hr=require("path"),jle=jv(),BO=jle("10.12.0"),GO=e=>{if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(hr.parse(e).root,""))){let n=new Error(`Path contains invalid characters: ${e}`);throw n.code="EINVAL",n}},$O=e=>{let t={mode:511};return typeof e=="number"&&(e={mode:e}),o(o({},t),e)},KO=e=>{let t=new Error(`operation not permitted, mkdir '${e}'`);return t.code="EPERM",t.errno=-4048,t.path=e,t.syscall="mkdir",t};zv.exports.makeDir=async(e,t)=>{if(GO(e),t=$O(t),BO){let r=hr.resolve(e);return Ws.mkdir(r,{mode:t.mode,recursive:!0})}let n=async r=>{try{await Ws.mkdir(r,t.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(hr.dirname(r)===r)throw KO(r);if(i.message.includes("null bytes"))throw i;return await n(hr.dirname(r)),n(r)}try{if(!(await Ws.stat(r)).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return n(hr.resolve(e))};zv.exports.makeDirSync=(e,t)=>{if(GO(e),t=$O(t),BO){let r=hr.resolve(e);return Ws.mkdirSync(r,{mode:t.mode,recursive:!0})}let n=r=>{try{Ws.mkdirSync(r,t.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(hr.dirname(r)===r)throw KO(r);if(i.message.includes("null bytes"))throw i;return n(hr.dirname(r)),n(r)}try{if(!Ws.statSync(r).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return n(hr.resolve(e))}});var gn=p((HEe,HO)=>{"use strict";var zle=Pt().fromPromise,{makeDir:Ule,makeDirSync:Uv}=VO(),Fv=zle(Ule);HO.exports={mkdirs:Fv,mkdirsSync:Uv,mkdirp:Fv,mkdirpSync:Uv,ensureDir:Fv,ensureDirSync:Uv}});var Bv=p((WEe,WO)=>{"use strict";var Ys=gt();function Fle(e,t,n,r){Ys.open(e,"r+",(i,s)=>{if(i)return r(i);Ys.futimes(s,t,n,a=>{Ys.close(s,l=>{r&&r(a||l)})})})}function Ble(e,t,n){let r=Ys.openSync(e,"r+");return Ys.futimesSync(r,t,n),Ys.closeSync(r)}WO.exports={utimesMillis:Fle,utimesMillisSync:Ble}});var _o=p((YEe,XO)=>{"use strict";var Js=po(),Dt=require("path"),Gle=require("util"),$le=jv(),gp=$le("10.5.0"),YO=e=>gp?Js.stat(e,{bigint:!0}):Js.stat(e),Gv=e=>gp?Js.statSync(e,{bigint:!0}):Js.statSync(e);function Kle(e,t){return Promise.all([YO(e),YO(t).catch(n=>{if(n.code==="ENOENT")return null;throw n})]).then(([n,r])=>({srcStat:n,destStat:r}))}function Vle(e,t){let n,r=Gv(e);try{n=Gv(t)}catch(i){if(i.code==="ENOENT")return{srcStat:r,destStat:null};throw i}return{srcStat:r,destStat:n}}function Hle(e,t,n,r){Gle.callbackify(Kle)(e,t,(i,s)=>{if(i)return r(i);let{srcStat:a,destStat:l}=s;return l&&yp(a,l)?r(new Error("Source and destination must not be the same.")):a.isDirectory()&&$v(e,t)?r(new Error(vp(e,t,n))):r(null,{srcStat:a,destStat:l})})}function Wle(e,t,n){let{srcStat:r,destStat:i}=Vle(e,t);if(i&&yp(r,i))throw new Error("Source and destination must not be the same.");if(r.isDirectory()&&$v(e,t))throw new Error(vp(e,t,n));return{srcStat:r,destStat:i}}function JO(e,t,n,r,i){let s=Dt.resolve(Dt.dirname(e)),a=Dt.resolve(Dt.dirname(n));if(a===s||a===Dt.parse(a).root)return i();let l=(c,d)=>c?c.code==="ENOENT"?i():i(c):yp(t,d)?i(new Error(vp(e,n,r))):JO(e,t,a,r,i);gp?Js.stat(a,{bigint:!0},l):Js.stat(a,l)}function QO(e,t,n,r){let i=Dt.resolve(Dt.dirname(e)),s=Dt.resolve(Dt.dirname(n));if(s===i||s===Dt.parse(s).root)return;let a;try{a=Gv(s)}catch(l){if(l.code==="ENOENT")return;throw l}if(yp(t,a))throw new Error(vp(e,n,r));return QO(e,t,s,r)}function yp(e,t){return!!(t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev&&(gp||t.ino<Number.MAX_SAFE_INTEGER||t.size===e.size&&t.mode===e.mode&&t.nlink===e.nlink&&t.atimeMs===e.atimeMs&&t.mtimeMs===e.mtimeMs&&t.ctimeMs===e.ctimeMs&&t.birthtimeMs===e.birthtimeMs))}function $v(e,t){let n=Dt.resolve(e).split(Dt.sep).filter(i=>i),r=Dt.resolve(t).split(Dt.sep).filter(i=>i);return n.reduce((i,s,a)=>i&&r[a]===s,!0)}function vp(e,t,n){return`Cannot ${n} '${e}' to a subdirectory of itself, '${t}'.`}XO.exports={checkPaths:Hle,checkPathsSync:Wle,checkParentPaths:JO,checkParentPathsSync:QO,isSrcSubdir:$v}});var rL=p((JEe,nL)=>{"use strict";var yt=gt(),ho=require("path"),Yle=gn().mkdirsSync,Jle=Bv().utimesMillisSync,go=_o();function Qle(e,t,n){typeof n=="function"&&(n={filter:n}),n=n||{},n.clobber="clobber"in n?!!n.clobber:!0,n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
26
+ `):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""),this.options.supressEmptyNode?(this.buildTextNode=fre,this.buildObjNode=ure):(this.buildTextNode=QP,this.buildObjNode=YP),this.buildTextValNode=QP,this.buildObjectNode=YP}RE.prototype.parse=function(e){return this.j2x(e,0).val};RE.prototype.j2x=function(e,t){let r="",n="",i=Object.keys(e),s=i.length;for(let a=0;a<s;a++){let c=i[a];if(!(typeof e[c]>"u"))if(e[c]===null)n+=this.indentate(t)+"<"+c+"/"+this.tagEndChar;else if(e[c]instanceof Date)n+=this.buildTextNode(e[c],c,"",t);else if(typeof e[c]!="object"){let l=this.isAttribute(c);l?r+=" "+l+'="'+this.options.attrValueProcessor(""+e[c])+'"':this.isCDATA(c)?e[this.options.textNodeName]?n+=this.replaceCDATAstr(e[this.options.textNodeName],e[c]):n+=this.replaceCDATAstr("",e[c]):c===this.options.textNodeName?e[this.options.cdataTagName]||(n+=this.options.tagValueProcessor(""+e[c])):n+=this.buildTextNode(e[c],c,"",t)}else if(Array.isArray(e[c]))if(this.isCDATA(c))n+=this.indentate(t),e[this.options.textNodeName]?n+=this.replaceCDATAarr(e[this.options.textNodeName],e[c]):n+=this.replaceCDATAarr("",e[c]);else{let l=e[c].length;for(let u=0;u<l;u++){let f=e[c][u];if(!(typeof f>"u"))if(f===null)n+=this.indentate(t)+"<"+c+"/"+this.tagEndChar;else if(typeof f=="object"){let _=this.j2x(f,t+1);n+=this.buildObjNode(_.val,c,_.attrStr,t)}else n+=this.buildTextNode(f,c,"",t)}}else if(this.options.attrNodeName&&c===this.options.attrNodeName){let l=Object.keys(e[c]),u=l.length;for(let f=0;f<u;f++)r+=" "+l[f]+'="'+this.options.attrValueProcessor(""+e[c][l[f]])+'"'}else{let l=this.j2x(e[c],t+1);n+=this.buildObjNode(l.val,c,l.attrStr,t)}}return{attrStr:r,val:n}};function lre(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 dre(e,t){if(e=this.options.tagValueProcessor(""+e),this.options.cdataPositionChar===""||e==="")return e+"<![CDATA["+t.join("]]><![CDATA[")+"]]"+this.tagEndChar;for(let r in t)e=e.replace(this.options.cdataPositionChar,"<![CDATA["+t[r]+"]]>");return e+this.newLine}function YP(e,t,r,n){return r&&!e.includes("<")?this.indentate(n)+"<"+t+r+">"+e+"</"+t+this.tagEndChar:this.indentate(n)+"<"+t+r+this.tagEndChar+e+this.indentate(n)+"</"+t+this.tagEndChar}function ure(e,t,r,n){return e!==""?this.buildObjectNode(e,t,r,n):this.indentate(n)+"<"+t+r+"/"+this.tagEndChar}function QP(e,t,r,n){return this.indentate(n)+"<"+t+r+">"+this.options.tagValueProcessor(e)+"</"+t+this.tagEndChar}function fre(e,t,r,n){return e!==""?this.buildTextValNode(e,t,r,n):this.indentate(n)+"<"+t+r+"/"+this.tagEndChar}function mre(e){return this.options.indentBy.repeat(e)}function pre(e){return e.startsWith(this.options.attributeNamePrefix)?e.substr(this.attrPrefixLen):!1}function _re(e){return e===this.options.cdataTagName}XP.exports=RE});var iD=m(fr=>{"use strict";var tD=PP(),rD=cc(),eD=cc(),hre=Or().buildOptions,nD=BP();fr.parse=function(e,t,r){if(r){r===!0&&(r={});let i=nD.validate(e,r);if(i!==!0)throw Error(i.err.msg)}t=hre(t,eD.defaultOptions,eD.props);let n=rD.getTraversalObj(e,t);return tD.convertToJson(n,t)};fr.convertTonimn=KP().convert2nimn;fr.getTraversalObj=rD.getTraversalObj;fr.convertToJson=tD.convertToJson;fr.convertToJsonString=JP().convertToJsonString;fr.validate=nD.validate;fr.j2xParser=ZP();fr.parseToNimn=function(e,t,r){return fr.convertTonimn(fr.getTraversalObj(e,r),t,r)}});var gn=m(ye=>{"use strict";Object.defineProperty(ye,"__esModule",{value:!0});ye.deserializeAws_queryGetSessionTokenCommand=ye.deserializeAws_queryGetFederationTokenCommand=ye.deserializeAws_queryGetCallerIdentityCommand=ye.deserializeAws_queryGetAccessKeyInfoCommand=ye.deserializeAws_queryDecodeAuthorizationMessageCommand=ye.deserializeAws_queryAssumeRoleWithWebIdentityCommand=ye.deserializeAws_queryAssumeRoleWithSAMLCommand=ye.deserializeAws_queryAssumeRoleCommand=ye.serializeAws_queryGetSessionTokenCommand=ye.serializeAws_queryGetFederationTokenCommand=ye.serializeAws_queryGetCallerIdentityCommand=ye.serializeAws_queryGetAccessKeyInfoCommand=ye.serializeAws_queryDecodeAuthorizationMessageCommand=ye.serializeAws_queryAssumeRoleWithWebIdentityCommand=ye.serializeAws_queryAssumeRoleWithSAMLCommand=ye.serializeAws_queryAssumeRoleCommand=void 0;var yre=It(),H=P(),gre=xP(),vre=iD(),ei=lr(),ti=em(),Sre=async(e,t)=>{let r={"content-type":"application/x-www-form-urlencoded"},n;return n=ni(y(o({},Kre(e,t)),{Action:"AssumeRole",Version:"2011-06-15"})),ri(t,r,"/",void 0,n)};ye.serializeAws_queryAssumeRoleCommand=Sre;var wre=async(e,t)=>{let r={"content-type":"application/x-www-form-urlencoded"},n;return n=ni(y(o({},Hre(e,t)),{Action:"AssumeRoleWithSAML",Version:"2011-06-15"})),ri(t,r,"/",void 0,n)};ye.serializeAws_queryAssumeRoleWithSAMLCommand=wre;var Ere=async(e,t)=>{let r={"content-type":"application/x-www-form-urlencoded"},n;return n=ni(y(o({},Wre(e,t)),{Action:"AssumeRoleWithWebIdentity",Version:"2011-06-15"})),ri(t,r,"/",void 0,n)};ye.serializeAws_queryAssumeRoleWithWebIdentityCommand=Ere;var bre=async(e,t)=>{let r={"content-type":"application/x-www-form-urlencoded"},n;return n=ni(y(o({},Jre(e,t)),{Action:"DecodeAuthorizationMessage",Version:"2011-06-15"})),ri(t,r,"/",void 0,n)};ye.serializeAws_queryDecodeAuthorizationMessageCommand=bre;var Are=async(e,t)=>{let r={"content-type":"application/x-www-form-urlencoded"},n;return n=ni(y(o({},Yre(e,t)),{Action:"GetAccessKeyInfo",Version:"2011-06-15"})),ri(t,r,"/",void 0,n)};ye.serializeAws_queryGetAccessKeyInfoCommand=Are;var Tre=async(e,t)=>{let r={"content-type":"application/x-www-form-urlencoded"},n;return n=ni(y(o({},Qre(e,t)),{Action:"GetCallerIdentity",Version:"2011-06-15"})),ri(t,r,"/",void 0,n)};ye.serializeAws_queryGetCallerIdentityCommand=Tre;var Cre=async(e,t)=>{let r={"content-type":"application/x-www-form-urlencoded"},n;return n=ni(y(o({},Xre(e,t)),{Action:"GetFederationToken",Version:"2011-06-15"})),ri(t,r,"/",void 0,n)};ye.serializeAws_queryGetFederationTokenCommand=Cre;var xre=async(e,t)=>{let r={"content-type":"application/x-www-form-urlencoded"},n;return n=ni(y(o({},Zre(e,t)),{Action:"GetSessionToken",Version:"2011-06-15"})),ri(t,r,"/",void 0,n)};ye.serializeAws_queryGetSessionTokenCommand=xre;var Ire=async(e,t)=>{if(e.statusCode>=300)return Rre(e,t);let r=await yt(e.body,t),n={};n=nne(r.AssumeRoleResult,t);let i=o({$metadata:je(e)},n);return Promise.resolve(i)};ye.deserializeAws_queryAssumeRoleCommand=Ire;var Rre=async(e,t)=>{let r=y(o({},e),{body:await yt(e.body,t)}),n,i="UnknownError";switch(i=ii(e,r.body),i){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await NE(r,t);case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await dm(r,t);case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await um(r,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await dc(r,t);default:let s=r.body;throw n=new ti.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:je(e)}),(0,H.decorateServiceException)(n,s.Error)}},Nre=async(e,t)=>{if(e.statusCode>=300)return Pre(e,t);let r=await yt(e.body,t),n={};n=ine(r.AssumeRoleWithSAMLResult,t);let i=o({$metadata:je(e)},n);return Promise.resolve(i)};ye.deserializeAws_queryAssumeRoleWithSAMLCommand=Nre;var Pre=async(e,t)=>{let r=y(o({},e),{body:await yt(e.body,t)}),n,i="UnknownError";switch(i=ii(e,r.body),i){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await NE(r,t);case"IDPRejectedClaimException":case"com.amazonaws.sts#IDPRejectedClaimException":throw await sD(r,t);case"InvalidIdentityTokenException":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await oD(r,t);case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await dm(r,t);case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await um(r,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await dc(r,t);default:let s=r.body;throw n=new ti.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:je(e)}),(0,H.decorateServiceException)(n,s.Error)}},Dre=async(e,t)=>{if(e.statusCode>=300)return Ore(e,t);let r=await yt(e.body,t),n={};n=sne(r.AssumeRoleWithWebIdentityResult,t);let i=o({$metadata:je(e)},n);return Promise.resolve(i)};ye.deserializeAws_queryAssumeRoleWithWebIdentityCommand=Dre;var Ore=async(e,t)=>{let r=y(o({},e),{body:await yt(e.body,t)}),n,i="UnknownError";switch(i=ii(e,r.body),i){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await NE(r,t);case"IDPCommunicationErrorException":case"com.amazonaws.sts#IDPCommunicationErrorException":throw await $re(r,t);case"IDPRejectedClaimException":case"com.amazonaws.sts#IDPRejectedClaimException":throw await sD(r,t);case"InvalidIdentityTokenException":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await oD(r,t);case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await dm(r,t);case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await um(r,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await dc(r,t);default:let s=r.body;throw n=new ti.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:je(e)}),(0,H.decorateServiceException)(n,s.Error)}},Lre=async(e,t)=>{if(e.statusCode>=300)return qre(e,t);let r=await yt(e.body,t),n={};n=one(r.DecodeAuthorizationMessageResult,t);let i=o({$metadata:je(e)},n);return Promise.resolve(i)};ye.deserializeAws_queryDecodeAuthorizationMessageCommand=Lre;var qre=async(e,t)=>{let r=y(o({},e),{body:await yt(e.body,t)}),n,i="UnknownError";switch(i=ii(e,r.body),i){case"InvalidAuthorizationMessageException":case"com.amazonaws.sts#InvalidAuthorizationMessageException":throw await Vre(r,t);default:let s=r.body;throw n=new ti.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:je(e)}),(0,H.decorateServiceException)(n,s.Error)}},Mre=async(e,t)=>{if(e.statusCode>=300)return zre(e,t);let r=await yt(e.body,t),n={};n=lne(r.GetAccessKeyInfoResult,t);let i=o({$metadata:je(e)},n);return Promise.resolve(i)};ye.deserializeAws_queryGetAccessKeyInfoCommand=Mre;var zre=async(e,t)=>{let r=y(o({},e),{body:await yt(e.body,t)}),n,i="UnknownError";switch(i=ii(e,r.body),i){default:let s=r.body;throw n=new ti.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:je(e)}),(0,H.decorateServiceException)(n,s.Error)}},jre=async(e,t)=>{if(e.statusCode>=300)return kre(e,t);let r=await yt(e.body,t),n={};n=dne(r.GetCallerIdentityResult,t);let i=o({$metadata:je(e)},n);return Promise.resolve(i)};ye.deserializeAws_queryGetCallerIdentityCommand=jre;var kre=async(e,t)=>{let r=y(o({},e),{body:await yt(e.body,t)}),n,i="UnknownError";switch(i=ii(e,r.body),i){default:let s=r.body;throw n=new ti.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:je(e)}),(0,H.decorateServiceException)(n,s.Error)}},Fre=async(e,t)=>{if(e.statusCode>=300)return Ure(e,t);let r=await yt(e.body,t),n={};n=une(r.GetFederationTokenResult,t);let i=o({$metadata:je(e)},n);return Promise.resolve(i)};ye.deserializeAws_queryGetFederationTokenCommand=Fre;var Ure=async(e,t)=>{let r=y(o({},e),{body:await yt(e.body,t)}),n,i="UnknownError";switch(i=ii(e,r.body),i){case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await dm(r,t);case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await um(r,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await dc(r,t);default:let s=r.body;throw n=new ti.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:je(e)}),(0,H.decorateServiceException)(n,s.Error)}},Bre=async(e,t)=>{if(e.statusCode>=300)return Gre(e,t);let r=await yt(e.body,t),n={};n=fne(r.GetSessionTokenResult,t);let i=o({$metadata:je(e)},n);return Promise.resolve(i)};ye.deserializeAws_queryGetSessionTokenCommand=Bre;var Gre=async(e,t)=>{let r=y(o({},e),{body:await yt(e.body,t)}),n,i="UnknownError";switch(i=ii(e,r.body),i){case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await dc(r,t);default:let s=r.body;throw n=new ti.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:je(e)}),(0,H.decorateServiceException)(n,s.Error)}},NE=async(e,t)=>{let r=e.body,n=ane(r.Error,t),i=new ei.ExpiredTokenException(o({$metadata:je(e)},n));return(0,H.decorateServiceException)(i,r)},$re=async(e,t)=>{let r=e.body,n=mne(r.Error,t),i=new ei.IDPCommunicationErrorException(o({$metadata:je(e)},n));return(0,H.decorateServiceException)(i,r)},sD=async(e,t)=>{let r=e.body,n=pne(r.Error,t),i=new ei.IDPRejectedClaimException(o({$metadata:je(e)},n));return(0,H.decorateServiceException)(i,r)},Vre=async(e,t)=>{let r=e.body,n=_ne(r.Error,t),i=new ei.InvalidAuthorizationMessageException(o({$metadata:je(e)},n));return(0,H.decorateServiceException)(i,r)},oD=async(e,t)=>{let r=e.body,n=hne(r.Error,t),i=new ei.InvalidIdentityTokenException(o({$metadata:je(e)},n));return(0,H.decorateServiceException)(i,r)},dm=async(e,t)=>{let r=e.body,n=yne(r.Error,t),i=new ei.MalformedPolicyDocumentException(o({$metadata:je(e)},n));return(0,H.decorateServiceException)(i,r)},um=async(e,t)=>{let r=e.body,n=gne(r.Error,t),i=new ei.PackedPolicyTooLargeException(o({$metadata:je(e)},n));return(0,H.decorateServiceException)(i,r)},dc=async(e,t)=>{let r=e.body,n=vne(r.Error,t),i=new ei.RegionDisabledException(o({$metadata:je(e)},n));return(0,H.decorateServiceException)(i,r)},Kre=(e,t)=>{let r={};if(e.RoleArn!==void 0&&e.RoleArn!==null&&(r.RoleArn=e.RoleArn),e.RoleSessionName!==void 0&&e.RoleSessionName!==null&&(r.RoleSessionName=e.RoleSessionName),e.PolicyArns!==void 0&&e.PolicyArns!==null){let n=fm(e.PolicyArns,t);Object.entries(n).forEach(([i,s])=>{let a=`PolicyArns.${i}`;r[a]=s})}if(e.Policy!==void 0&&e.Policy!==null&&(r.Policy=e.Policy),e.DurationSeconds!==void 0&&e.DurationSeconds!==null&&(r.DurationSeconds=e.DurationSeconds),e.Tags!==void 0&&e.Tags!==null){let n=aD(e.Tags,t);Object.entries(n).forEach(([i,s])=>{let a=`Tags.${i}`;r[a]=s})}if(e.TransitiveTagKeys!==void 0&&e.TransitiveTagKeys!==null){let n=rne(e.TransitiveTagKeys,t);Object.entries(n).forEach(([i,s])=>{let a=`TransitiveTagKeys.${i}`;r[a]=s})}return e.ExternalId!==void 0&&e.ExternalId!==null&&(r.ExternalId=e.ExternalId),e.SerialNumber!==void 0&&e.SerialNumber!==null&&(r.SerialNumber=e.SerialNumber),e.TokenCode!==void 0&&e.TokenCode!==null&&(r.TokenCode=e.TokenCode),e.SourceIdentity!==void 0&&e.SourceIdentity!==null&&(r.SourceIdentity=e.SourceIdentity),r},Hre=(e,t)=>{let r={};if(e.RoleArn!==void 0&&e.RoleArn!==null&&(r.RoleArn=e.RoleArn),e.PrincipalArn!==void 0&&e.PrincipalArn!==null&&(r.PrincipalArn=e.PrincipalArn),e.SAMLAssertion!==void 0&&e.SAMLAssertion!==null&&(r.SAMLAssertion=e.SAMLAssertion),e.PolicyArns!==void 0&&e.PolicyArns!==null){let n=fm(e.PolicyArns,t);Object.entries(n).forEach(([i,s])=>{let a=`PolicyArns.${i}`;r[a]=s})}return e.Policy!==void 0&&e.Policy!==null&&(r.Policy=e.Policy),e.DurationSeconds!==void 0&&e.DurationSeconds!==null&&(r.DurationSeconds=e.DurationSeconds),r},Wre=(e,t)=>{let r={};if(e.RoleArn!==void 0&&e.RoleArn!==null&&(r.RoleArn=e.RoleArn),e.RoleSessionName!==void 0&&e.RoleSessionName!==null&&(r.RoleSessionName=e.RoleSessionName),e.WebIdentityToken!==void 0&&e.WebIdentityToken!==null&&(r.WebIdentityToken=e.WebIdentityToken),e.ProviderId!==void 0&&e.ProviderId!==null&&(r.ProviderId=e.ProviderId),e.PolicyArns!==void 0&&e.PolicyArns!==null){let n=fm(e.PolicyArns,t);Object.entries(n).forEach(([i,s])=>{let a=`PolicyArns.${i}`;r[a]=s})}return e.Policy!==void 0&&e.Policy!==null&&(r.Policy=e.Policy),e.DurationSeconds!==void 0&&e.DurationSeconds!==null&&(r.DurationSeconds=e.DurationSeconds),r},Jre=(e,t)=>{let r={};return e.EncodedMessage!==void 0&&e.EncodedMessage!==null&&(r.EncodedMessage=e.EncodedMessage),r},Yre=(e,t)=>{let r={};return e.AccessKeyId!==void 0&&e.AccessKeyId!==null&&(r.AccessKeyId=e.AccessKeyId),r},Qre=(e,t)=>({}),Xre=(e,t)=>{let r={};if(e.Name!==void 0&&e.Name!==null&&(r.Name=e.Name),e.Policy!==void 0&&e.Policy!==null&&(r.Policy=e.Policy),e.PolicyArns!==void 0&&e.PolicyArns!==null){let n=fm(e.PolicyArns,t);Object.entries(n).forEach(([i,s])=>{let a=`PolicyArns.${i}`;r[a]=s})}if(e.DurationSeconds!==void 0&&e.DurationSeconds!==null&&(r.DurationSeconds=e.DurationSeconds),e.Tags!==void 0&&e.Tags!==null){let n=aD(e.Tags,t);Object.entries(n).forEach(([i,s])=>{let a=`Tags.${i}`;r[a]=s})}return r},Zre=(e,t)=>{let r={};return e.DurationSeconds!==void 0&&e.DurationSeconds!==null&&(r.DurationSeconds=e.DurationSeconds),e.SerialNumber!==void 0&&e.SerialNumber!==null&&(r.SerialNumber=e.SerialNumber),e.TokenCode!==void 0&&e.TokenCode!==null&&(r.TokenCode=e.TokenCode),r},fm=(e,t)=>{let r={},n=1;for(let i of e){if(i===null)continue;let s=ene(i,t);Object.entries(s).forEach(([a,c])=>{r[`member.${n}.${a}`]=c}),n++}return r},ene=(e,t)=>{let r={};return e.arn!==void 0&&e.arn!==null&&(r.arn=e.arn),r},tne=(e,t)=>{let r={};return e.Key!==void 0&&e.Key!==null&&(r.Key=e.Key),e.Value!==void 0&&e.Value!==null&&(r.Value=e.Value),r},rne=(e,t)=>{let r={},n=1;for(let i of e)i!==null&&(r[`member.${n}`]=i,n++);return r},aD=(e,t)=>{let r={},n=1;for(let i of e){if(i===null)continue;let s=tne(i,t);Object.entries(s).forEach(([a,c])=>{r[`member.${n}.${a}`]=c}),n++}return r},PE=(e,t)=>{let r={AssumedRoleId:void 0,Arn:void 0};return e.AssumedRoleId!==void 0&&(r.AssumedRoleId=(0,H.expectString)(e.AssumedRoleId)),e.Arn!==void 0&&(r.Arn=(0,H.expectString)(e.Arn)),r},nne=(e,t)=>{let r={Credentials:void 0,AssumedRoleUser:void 0,PackedPolicySize:void 0,SourceIdentity:void 0};return e.Credentials!==void 0&&(r.Credentials=uc(e.Credentials,t)),e.AssumedRoleUser!==void 0&&(r.AssumedRoleUser=PE(e.AssumedRoleUser,t)),e.PackedPolicySize!==void 0&&(r.PackedPolicySize=(0,H.strictParseInt32)(e.PackedPolicySize)),e.SourceIdentity!==void 0&&(r.SourceIdentity=(0,H.expectString)(e.SourceIdentity)),r},ine=(e,t)=>{let r={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&&(r.Credentials=uc(e.Credentials,t)),e.AssumedRoleUser!==void 0&&(r.AssumedRoleUser=PE(e.AssumedRoleUser,t)),e.PackedPolicySize!==void 0&&(r.PackedPolicySize=(0,H.strictParseInt32)(e.PackedPolicySize)),e.Subject!==void 0&&(r.Subject=(0,H.expectString)(e.Subject)),e.SubjectType!==void 0&&(r.SubjectType=(0,H.expectString)(e.SubjectType)),e.Issuer!==void 0&&(r.Issuer=(0,H.expectString)(e.Issuer)),e.Audience!==void 0&&(r.Audience=(0,H.expectString)(e.Audience)),e.NameQualifier!==void 0&&(r.NameQualifier=(0,H.expectString)(e.NameQualifier)),e.SourceIdentity!==void 0&&(r.SourceIdentity=(0,H.expectString)(e.SourceIdentity)),r},sne=(e,t)=>{let r={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&&(r.Credentials=uc(e.Credentials,t)),e.SubjectFromWebIdentityToken!==void 0&&(r.SubjectFromWebIdentityToken=(0,H.expectString)(e.SubjectFromWebIdentityToken)),e.AssumedRoleUser!==void 0&&(r.AssumedRoleUser=PE(e.AssumedRoleUser,t)),e.PackedPolicySize!==void 0&&(r.PackedPolicySize=(0,H.strictParseInt32)(e.PackedPolicySize)),e.Provider!==void 0&&(r.Provider=(0,H.expectString)(e.Provider)),e.Audience!==void 0&&(r.Audience=(0,H.expectString)(e.Audience)),e.SourceIdentity!==void 0&&(r.SourceIdentity=(0,H.expectString)(e.SourceIdentity)),r},uc=(e,t)=>{let r={AccessKeyId:void 0,SecretAccessKey:void 0,SessionToken:void 0,Expiration:void 0};return e.AccessKeyId!==void 0&&(r.AccessKeyId=(0,H.expectString)(e.AccessKeyId)),e.SecretAccessKey!==void 0&&(r.SecretAccessKey=(0,H.expectString)(e.SecretAccessKey)),e.SessionToken!==void 0&&(r.SessionToken=(0,H.expectString)(e.SessionToken)),e.Expiration!==void 0&&(r.Expiration=(0,H.expectNonNull)((0,H.parseRfc3339DateTime)(e.Expiration))),r},one=(e,t)=>{let r={DecodedMessage:void 0};return e.DecodedMessage!==void 0&&(r.DecodedMessage=(0,H.expectString)(e.DecodedMessage)),r},ane=(e,t)=>{let r={message:void 0};return e.message!==void 0&&(r.message=(0,H.expectString)(e.message)),r},cne=(e,t)=>{let r={FederatedUserId:void 0,Arn:void 0};return e.FederatedUserId!==void 0&&(r.FederatedUserId=(0,H.expectString)(e.FederatedUserId)),e.Arn!==void 0&&(r.Arn=(0,H.expectString)(e.Arn)),r},lne=(e,t)=>{let r={Account:void 0};return e.Account!==void 0&&(r.Account=(0,H.expectString)(e.Account)),r},dne=(e,t)=>{let r={UserId:void 0,Account:void 0,Arn:void 0};return e.UserId!==void 0&&(r.UserId=(0,H.expectString)(e.UserId)),e.Account!==void 0&&(r.Account=(0,H.expectString)(e.Account)),e.Arn!==void 0&&(r.Arn=(0,H.expectString)(e.Arn)),r},une=(e,t)=>{let r={Credentials:void 0,FederatedUser:void 0,PackedPolicySize:void 0};return e.Credentials!==void 0&&(r.Credentials=uc(e.Credentials,t)),e.FederatedUser!==void 0&&(r.FederatedUser=cne(e.FederatedUser,t)),e.PackedPolicySize!==void 0&&(r.PackedPolicySize=(0,H.strictParseInt32)(e.PackedPolicySize)),r},fne=(e,t)=>{let r={Credentials:void 0};return e.Credentials!==void 0&&(r.Credentials=uc(e.Credentials,t)),r},mne=(e,t)=>{let r={message:void 0};return e.message!==void 0&&(r.message=(0,H.expectString)(e.message)),r},pne=(e,t)=>{let r={message:void 0};return e.message!==void 0&&(r.message=(0,H.expectString)(e.message)),r},_ne=(e,t)=>{let r={message:void 0};return e.message!==void 0&&(r.message=(0,H.expectString)(e.message)),r},hne=(e,t)=>{let r={message:void 0};return e.message!==void 0&&(r.message=(0,H.expectString)(e.message)),r},yne=(e,t)=>{let r={message:void 0};return e.message!==void 0&&(r.message=(0,H.expectString)(e.message)),r},gne=(e,t)=>{let r={message:void 0};return e.message!==void 0&&(r.message=(0,H.expectString)(e.message)),r},vne=(e,t)=>{let r={message:void 0};return e.message!==void 0&&(r.message=(0,H.expectString)(e.message)),r},je=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"]}},Sne=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),wne=(e,t)=>Sne(e,t).then(r=>t.utf8Encoder(r)),ri=async(e,t,r,n,i)=>{let{hostname:s,protocol:a="https",port:c,path:l}=await e.endpoint(),u={protocol:a,hostname:s,port:c,method:"POST",path:l.endsWith("/")?l.slice(0,-1)+r:l+r,headers:t};return n!==void 0&&(u.hostname=n),i!==void 0&&(u.body=i),new yre.HttpRequest(u)},yt=(e,t)=>wne(e,t).then(r=>{if(r.length){let n=(0,vre.parse)(r,{attributeNamePrefix:"",ignoreAttributes:!1,parseNodeValue:!1,trimValues:!1,tagValueProcessor:c=>c.trim()===""&&c.includes(`
27
+ `)?"":(0,gre.decodeHTML)(c)}),i="#text",s=Object.keys(n)[0],a=n[s];return a[i]&&(a[s]=a[i],delete a[i]),(0,H.getValueFromTextNode)(a)}return{}}),ni=e=>Object.entries(e).map(([t,r])=>(0,H.extendedEncodeURIComponent)(t)+"="+(0,H.extendedEncodeURIComponent)(r)).join("&"),ii=(e,t)=>t.Error.Code!==void 0?t.Error.Code:e.statusCode==404?"NotFound":""});var pm=m(mm=>{"use strict";Object.defineProperty(mm,"__esModule",{value:!0});mm.AssumeRoleCommand=void 0;var Ene=G(),bne=yn(),Ane=P(),cD=lr(),lD=gn(),DE=class extends Ane.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Ene.getSerdePlugin)(r,this.serialize,this.deserialize)),this.middlewareStack.use((0,bne.getAwsAuthPlugin)(r));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"STSClient",commandName:"AssumeRoleCommand",inputFilterSensitiveLog:cD.AssumeRoleRequest.filterSensitiveLog,outputFilterSensitiveLog:cD.AssumeRoleResponse.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,lD.serializeAws_queryAssumeRoleCommand)(t,r)}deserialize(t,r){return(0,lD.deserializeAws_queryAssumeRoleCommand)(t,r)}};mm.AssumeRoleCommand=DE});var LE=m(_m=>{"use strict";Object.defineProperty(_m,"__esModule",{value:!0});_m.AssumeRoleWithSAMLCommand=void 0;var Tne=G(),Cne=P(),dD=lr(),uD=gn(),OE=class extends Cne.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Tne.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"STSClient",commandName:"AssumeRoleWithSAMLCommand",inputFilterSensitiveLog:dD.AssumeRoleWithSAMLRequest.filterSensitiveLog,outputFilterSensitiveLog:dD.AssumeRoleWithSAMLResponse.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,uD.serializeAws_queryAssumeRoleWithSAMLCommand)(t,r)}deserialize(t,r){return(0,uD.deserializeAws_queryAssumeRoleWithSAMLCommand)(t,r)}};_m.AssumeRoleWithSAMLCommand=OE});var ym=m(hm=>{"use strict";Object.defineProperty(hm,"__esModule",{value:!0});hm.AssumeRoleWithWebIdentityCommand=void 0;var xne=G(),Ine=P(),fD=lr(),mD=gn(),qE=class extends Ine.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,xne.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"STSClient",commandName:"AssumeRoleWithWebIdentityCommand",inputFilterSensitiveLog:fD.AssumeRoleWithWebIdentityRequest.filterSensitiveLog,outputFilterSensitiveLog:fD.AssumeRoleWithWebIdentityResponse.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,mD.serializeAws_queryAssumeRoleWithWebIdentityCommand)(t,r)}deserialize(t,r){return(0,mD.deserializeAws_queryAssumeRoleWithWebIdentityCommand)(t,r)}};hm.AssumeRoleWithWebIdentityCommand=qE});var zE=m(gm=>{"use strict";Object.defineProperty(gm,"__esModule",{value:!0});gm.DecodeAuthorizationMessageCommand=void 0;var Rne=G(),Nne=yn(),Pne=P(),pD=lr(),_D=gn(),ME=class extends Pne.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Rne.getSerdePlugin)(r,this.serialize,this.deserialize)),this.middlewareStack.use((0,Nne.getAwsAuthPlugin)(r));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"STSClient",commandName:"DecodeAuthorizationMessageCommand",inputFilterSensitiveLog:pD.DecodeAuthorizationMessageRequest.filterSensitiveLog,outputFilterSensitiveLog:pD.DecodeAuthorizationMessageResponse.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,_D.serializeAws_queryDecodeAuthorizationMessageCommand)(t,r)}deserialize(t,r){return(0,_D.deserializeAws_queryDecodeAuthorizationMessageCommand)(t,r)}};gm.DecodeAuthorizationMessageCommand=ME});var kE=m(vm=>{"use strict";Object.defineProperty(vm,"__esModule",{value:!0});vm.GetAccessKeyInfoCommand=void 0;var Dne=G(),One=yn(),Lne=P(),hD=lr(),yD=gn(),jE=class extends Lne.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Dne.getSerdePlugin)(r,this.serialize,this.deserialize)),this.middlewareStack.use((0,One.getAwsAuthPlugin)(r));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"STSClient",commandName:"GetAccessKeyInfoCommand",inputFilterSensitiveLog:hD.GetAccessKeyInfoRequest.filterSensitiveLog,outputFilterSensitiveLog:hD.GetAccessKeyInfoResponse.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,yD.serializeAws_queryGetAccessKeyInfoCommand)(t,r)}deserialize(t,r){return(0,yD.deserializeAws_queryGetAccessKeyInfoCommand)(t,r)}};vm.GetAccessKeyInfoCommand=jE});var UE=m(Sm=>{"use strict";Object.defineProperty(Sm,"__esModule",{value:!0});Sm.GetCallerIdentityCommand=void 0;var qne=G(),Mne=yn(),zne=P(),gD=lr(),vD=gn(),FE=class extends zne.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,qne.getSerdePlugin)(r,this.serialize,this.deserialize)),this.middlewareStack.use((0,Mne.getAwsAuthPlugin)(r));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"STSClient",commandName:"GetCallerIdentityCommand",inputFilterSensitiveLog:gD.GetCallerIdentityRequest.filterSensitiveLog,outputFilterSensitiveLog:gD.GetCallerIdentityResponse.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,vD.serializeAws_queryGetCallerIdentityCommand)(t,r)}deserialize(t,r){return(0,vD.deserializeAws_queryGetCallerIdentityCommand)(t,r)}};Sm.GetCallerIdentityCommand=FE});var GE=m(wm=>{"use strict";Object.defineProperty(wm,"__esModule",{value:!0});wm.GetFederationTokenCommand=void 0;var jne=G(),kne=yn(),Fne=P(),SD=lr(),wD=gn(),BE=class extends Fne.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,jne.getSerdePlugin)(r,this.serialize,this.deserialize)),this.middlewareStack.use((0,kne.getAwsAuthPlugin)(r));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"STSClient",commandName:"GetFederationTokenCommand",inputFilterSensitiveLog:SD.GetFederationTokenRequest.filterSensitiveLog,outputFilterSensitiveLog:SD.GetFederationTokenResponse.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,wD.serializeAws_queryGetFederationTokenCommand)(t,r)}deserialize(t,r){return(0,wD.deserializeAws_queryGetFederationTokenCommand)(t,r)}};wm.GetFederationTokenCommand=BE});var VE=m(Em=>{"use strict";Object.defineProperty(Em,"__esModule",{value:!0});Em.GetSessionTokenCommand=void 0;var Une=G(),Bne=yn(),Gne=P(),ED=lr(),bD=gn(),$E=class extends Gne.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Une.getSerdePlugin)(r,this.serialize,this.deserialize)),this.middlewareStack.use((0,Bne.getAwsAuthPlugin)(r));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"STSClient",commandName:"GetSessionTokenCommand",inputFilterSensitiveLog:ED.GetSessionTokenRequest.filterSensitiveLog,outputFilterSensitiveLog:ED.GetSessionTokenResponse.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,bD.serializeAws_queryGetSessionTokenCommand)(t,r)}deserialize(t,r){return(0,bD.deserializeAws_queryGetSessionTokenCommand)(t,r)}};Em.GetSessionTokenCommand=$E});var AD=m(bm=>{"use strict";Object.defineProperty(bm,"__esModule",{value:!0});bm.resolveStsAuthConfig=void 0;var $ne=yn(),Vne=(e,{stsClientCtor:t})=>(0,$ne.resolveAwsAuthConfig)(y(o({},e),{stsClientCtor:t}));bm.resolveStsAuthConfig=Vne});var TD=m((L1e,Kne)=>{Kne.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 KE=m(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.decorateDefaultCredentialProvider=qr.getDefaultRoleAssumerWithWebIdentity=qr.getDefaultRoleAssumer=void 0;var Hne=pm(),Wne=ym(),CD="us-east-1",xD=e=>typeof e!="function"?e===void 0?CD:e:async()=>{try{return await e()}catch{return CD}},Jne=(e,t)=>{let r,n;return async(i,s)=>{if(n=i,!r){let{logger:c,region:l,requestHandler:u}=e;r=new t(o({logger:c,credentialDefaultProvider:()=>async()=>n,region:xD(l||e.region)},u?{requestHandler:u}:{}))}let{Credentials:a}=await r.send(new Hne.AssumeRoleCommand(s));if(!a||!a.AccessKeyId||!a.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${s.RoleArn}`);return{accessKeyId:a.AccessKeyId,secretAccessKey:a.SecretAccessKey,sessionToken:a.SessionToken,expiration:a.Expiration}}};qr.getDefaultRoleAssumer=Jne;var Yne=(e,t)=>{let r;return async n=>{if(!r){let{logger:s,region:a,requestHandler:c}=e;r=new t(o({logger:s,region:xD(a||e.region)},c?{requestHandler:c}:{}))}let{Credentials:i}=await r.send(new Wne.AssumeRoleWithWebIdentityCommand(n));if(!i||!i.AccessKeyId||!i.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${n.RoleArn}`);return{accessKeyId:i.AccessKeyId,secretAccessKey:i.SecretAccessKey,sessionToken:i.SessionToken,expiration:i.Expiration}}};qr.getDefaultRoleAssumerWithWebIdentity=Yne;var Qne=e=>t=>e(o({roleAssumer:(0,qr.getDefaultRoleAssumer)(t,t.stsClientCtor),roleAssumerWithWebIdentity:(0,qr.getDefaultRoleAssumerWithWebIdentity)(t,t.stsClientCtor)},t));qr.decorateDefaultCredentialProvider=Qne});var ID=m(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.fromEnv=gt.ENV_EXPIRATION=gt.ENV_SESSION=gt.ENV_SECRET=gt.ENV_KEY=void 0;var Xne=Ee();gt.ENV_KEY="AWS_ACCESS_KEY_ID";gt.ENV_SECRET="AWS_SECRET_ACCESS_KEY";gt.ENV_SESSION="AWS_SESSION_TOKEN";gt.ENV_EXPIRATION="AWS_CREDENTIAL_EXPIRATION";var Zne=()=>async()=>{let e=process.env[gt.ENV_KEY],t=process.env[gt.ENV_SECRET],r=process.env[gt.ENV_SESSION],n=process.env[gt.ENV_EXPIRATION];if(e&&t)return o(o({accessKeyId:e,secretAccessKey:t},r&&{sessionToken:r}),n&&{expiration:new Date(n)});throw new Xne.CredentialsProviderError("Unable to find environment variable credentials.")};gt.fromEnv=Zne});var WE=m(HE=>{"use strict";Object.defineProperty(HE,"__esModule",{value:!0});var eie=$();eie.__exportStar(ID(),HE)});var fc=m(Am=>{"use strict";Object.defineProperty(Am,"__esModule",{value:!0});Am.getHomeDir=void 0;var tie=require("os"),rie=require("path"),nie=()=>{let{HOME:e,USERPROFILE:t,HOMEPATH:r,HOMEDRIVE:n=`C:${rie.sep}`}=process.env;return e||t||(r?`${n}${r}`:(0,tie.homedir)())};Am.getHomeDir=nie});var RD=m(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.getProfileName=Mr.DEFAULT_PROFILE=Mr.ENV_PROFILE=void 0;Mr.ENV_PROFILE="AWS_PROFILE";Mr.DEFAULT_PROFILE="default";var iie=e=>e.profile||process.env[Mr.ENV_PROFILE]||Mr.DEFAULT_PROFILE;Mr.getProfileName=iie});var JE=m(Tm=>{"use strict";Object.defineProperty(Tm,"__esModule",{value:!0});Tm.getSSOTokenFilepath=void 0;var sie=require("crypto"),oie=require("path"),aie=fc(),cie=e=>{let r=(0,sie.createHash)("sha1").update(e).digest("hex");return(0,oie.join)((0,aie.getHomeDir)(),".aws","sso","cache",`${r}.json`)};Tm.getSSOTokenFilepath=cie});var ND=m(Cm=>{"use strict";Object.defineProperty(Cm,"__esModule",{value:!0});Cm.getSSOTokenFromFile=void 0;var lie=require("fs"),die=JE(),{readFile:uie}=lie.promises,fie=async e=>{let t=(0,die.getSSOTokenFilepath)(e),r=await uie(t,"utf8");return JSON.parse(r)};Cm.getSSOTokenFromFile=fie});var PD=m(Fi=>{"use strict";Object.defineProperty(Fi,"__esModule",{value:!0});Fi.getConfigFilepath=Fi.ENV_CONFIG_PATH=void 0;var mie=require("path"),pie=fc();Fi.ENV_CONFIG_PATH="AWS_CONFIG_FILE";var _ie=()=>process.env[Fi.ENV_CONFIG_PATH]||(0,mie.join)((0,pie.getHomeDir)(),".aws","config");Fi.getConfigFilepath=_ie});var DD=m(Ui=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.getCredentialsFilepath=Ui.ENV_CREDENTIALS_PATH=void 0;var hie=require("path"),yie=fc();Ui.ENV_CREDENTIALS_PATH="AWS_SHARED_CREDENTIALS_FILE";var gie=()=>process.env[Ui.ENV_CREDENTIALS_PATH]||(0,hie.join)((0,yie.getHomeDir)(),".aws","credentials");Ui.getCredentialsFilepath=gie});var LD=m(xm=>{"use strict";Object.defineProperty(xm,"__esModule",{value:!0});xm.getProfileData=void 0;var OD=/^profile\s(["'])?([^\1]+)\1$/,vie=e=>Object.entries(e).filter(([t])=>OD.test(t)).reduce((t,[r,n])=>y(o({},t),{[OD.exec(r)[2]]:n}),o({},e.default&&{default:e.default}));xm.getProfileData=vie});var qD=m(Im=>{"use strict";Object.defineProperty(Im,"__esModule",{value:!0});Im.parseIni=void 0;var Sie=["__proto__","profile __proto__"],wie=e=>{let t={},r;for(let n of e.split(/\r?\n/)){n=n.split(/(^|\s)[;#]/)[0];let i=n.match(/^\s*\[([^\[\]]+)]\s*$/);if(i){if(r=i[1],Sie.includes(r))throw new Error(`Found invalid profile name "${r}"`)}else if(r){let s=n.match(/^\s*(.+?)\s*=\s*(.+?)\s*$/);s&&(t[r]=t[r]||{},t[r][s[1]]=s[2])}}return t};Im.parseIni=wie});var MD=m(Rm=>{"use strict";Object.defineProperty(Rm,"__esModule",{value:!0});Rm.slurpFile=void 0;var Eie=require("fs"),{readFile:bie}=Eie.promises,YE={},Aie=e=>(YE[e]||(YE[e]=bie(e,"utf8")),YE[e]);Rm.slurpFile=Aie});var QE=m(Nm=>{"use strict";Object.defineProperty(Nm,"__esModule",{value:!0});Nm.loadSharedConfigFiles=void 0;var Tie=PD(),Cie=DD(),xie=LD(),zD=qD(),jD=MD(),kD=()=>({}),Iie=async(e={})=>{let{filepath:t=(0,Cie.getCredentialsFilepath)(),configFilepath:r=(0,Tie.getConfigFilepath)()}=e,n=await Promise.all([(0,jD.slurpFile)(r).then(zD.parseIni).then(xie.getProfileData).catch(kD),(0,jD.slurpFile)(t).then(zD.parseIni).catch(kD)]);return{configFile:n[0],credentialsFile:n[1]}};Nm.loadSharedConfigFiles=Iie});var FD=m(Pm=>{"use strict";Object.defineProperty(Pm,"__esModule",{value:!0});Pm.parseKnownFiles=void 0;var Rie=QE(),Nie=async e=>{let t=await(0,Rie.loadSharedConfigFiles)(e);return o(o({},t.configFile),t.credentialsFile)};Pm.parseKnownFiles=Nie});var BD=m(UD=>{"use strict";Object.defineProperty(UD,"__esModule",{value:!0})});var mc=m(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});var Bi=$();Bi.__exportStar(fc(),vn);Bi.__exportStar(RD(),vn);Bi.__exportStar(JE(),vn);Bi.__exportStar(ND(),vn);Bi.__exportStar(QE(),vn);Bi.__exportStar(FD(),vn);Bi.__exportStar(BD(),vn)});var Om=m(Dm=>{"use strict";Object.defineProperty(Dm,"__esModule",{value:!0});Dm.httpRequest=void 0;var XE=Ee(),Pie=require("buffer"),Die=require("http");function Oie(e){return new Promise((t,r)=>{var n;let i=(0,Die.request)(y(o({method:"GET"},e),{hostname:(n=e.hostname)===null||n===void 0?void 0:n.replace(/^\[(.+)\]$/,"$1")}));i.on("error",s=>{r(Object.assign(new XE.ProviderError("Unable to connect to instance metadata service"),s)),i.destroy()}),i.on("timeout",()=>{r(new XE.ProviderError("TimeoutError from instance metadata service")),i.destroy()}),i.on("response",s=>{let{statusCode:a=400}=s;(a<200||300<=a)&&(r(Object.assign(new XE.ProviderError("Error response received from instance metadata service"),{statusCode:a})),i.destroy());let c=[];s.on("data",l=>{c.push(l)}),s.on("end",()=>{t(Pie.Buffer.concat(c)),i.destroy()})}),i.end()})}Dm.httpRequest=Oie});var ZE=m(Fs=>{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});Fs.fromImdsCredentials=Fs.isImdsCredentials=void 0;var Lie=e=>Boolean(e)&&typeof e=="object"&&typeof e.AccessKeyId=="string"&&typeof e.SecretAccessKey=="string"&&typeof e.Token=="string"&&typeof e.Expiration=="string";Fs.isImdsCredentials=Lie;var qie=e=>({accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:new Date(e.Expiration)});Fs.fromImdsCredentials=qie});var Lm=m(zr=>{"use strict";Object.defineProperty(zr,"__esModule",{value:!0});zr.providerConfigFromInit=zr.DEFAULT_MAX_RETRIES=zr.DEFAULT_TIMEOUT=void 0;zr.DEFAULT_TIMEOUT=1e3;zr.DEFAULT_MAX_RETRIES=0;var Mie=({maxRetries:e=zr.DEFAULT_MAX_RETRIES,timeout:t=zr.DEFAULT_TIMEOUT})=>({maxRetries:e,timeout:t});zr.providerConfigFromInit=Mie});var e0=m(qm=>{"use strict";Object.defineProperty(qm,"__esModule",{value:!0});qm.retry=void 0;var zie=(e,t)=>{let r=e();for(let n=0;n<t;n++)r=r.catch(e);return r};qm.retry=zie});var $D=m(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.fromContainerMetadata=rt.ENV_CMDS_AUTH_TOKEN=rt.ENV_CMDS_RELATIVE_URI=rt.ENV_CMDS_FULL_URI=void 0;var Mm=Ee(),jie=require("url"),kie=Om(),GD=ZE(),Fie=Lm(),Uie=e0();rt.ENV_CMDS_FULL_URI="AWS_CONTAINER_CREDENTIALS_FULL_URI";rt.ENV_CMDS_RELATIVE_URI="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";rt.ENV_CMDS_AUTH_TOKEN="AWS_CONTAINER_AUTHORIZATION_TOKEN";var Bie=(e={})=>{let{timeout:t,maxRetries:r}=(0,Fie.providerConfigFromInit)(e);return()=>(0,Uie.retry)(async()=>{let n=await Hie(),i=JSON.parse(await Gie(t,n));if(!(0,GD.isImdsCredentials)(i))throw new Mm.CredentialsProviderError("Invalid response received from instance metadata service.");return(0,GD.fromImdsCredentials)(i)},r)};rt.fromContainerMetadata=Bie;var Gie=async(e,t)=>(process.env[rt.ENV_CMDS_AUTH_TOKEN]&&(t.headers=y(o({},t.headers),{Authorization:process.env[rt.ENV_CMDS_AUTH_TOKEN]})),(await(0,kie.httpRequest)(y(o({},t),{timeout:e}))).toString()),$ie="169.254.170.2",Vie={localhost:!0,"127.0.0.1":!0},Kie={"http:":!0,"https:":!0},Hie=async()=>{if(process.env[rt.ENV_CMDS_RELATIVE_URI])return{hostname:$ie,path:process.env[rt.ENV_CMDS_RELATIVE_URI]};if(process.env[rt.ENV_CMDS_FULL_URI]){let e=(0,jie.parse)(process.env[rt.ENV_CMDS_FULL_URI]);if(!e.hostname||!(e.hostname in Vie))throw new Mm.CredentialsProviderError(`${e.hostname} is not a valid container metadata service hostname`,!1);if(!e.protocol||!(e.protocol in Kie))throw new Mm.CredentialsProviderError(`${e.protocol} is not a valid container metadata service protocol`,!1);return y(o({},e),{port:e.port?parseInt(e.port,10):void 0})}throw new Mm.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${rt.ENV_CMDS_RELATIVE_URI} or ${rt.ENV_CMDS_FULL_URI} environment variable is set`,!1)}});var VD=m(zm=>{"use strict";Object.defineProperty(zm,"__esModule",{value:!0});zm.fromEnv=void 0;var Wie=Ee(),Jie=e=>async()=>{try{let t=e(process.env);if(t===void 0)throw new Error;return t}catch(t){throw new Wie.CredentialsProviderError(t.message||`Cannot load config from environment variables with getter: ${e}`)}};zm.fromEnv=Jie});var pc=m(jm=>{"use strict";Object.defineProperty(jm,"__esModule",{value:!0});jm.getHomeDir=void 0;var Yie=require("os"),Qie=require("path"),Xie=()=>{let{HOME:e,USERPROFILE:t,HOMEPATH:r,HOMEDRIVE:n=`C:${Qie.sep}`}=process.env;return e||t||(r?`${n}${r}`:(0,Yie.homedir)())};jm.getHomeDir=Xie});var KD=m(jr=>{"use strict";Object.defineProperty(jr,"__esModule",{value:!0});jr.getProfileName=jr.DEFAULT_PROFILE=jr.ENV_PROFILE=void 0;jr.ENV_PROFILE="AWS_PROFILE";jr.DEFAULT_PROFILE="default";var Zie=e=>e.profile||process.env[jr.ENV_PROFILE]||jr.DEFAULT_PROFILE;jr.getProfileName=Zie});var t0=m(km=>{"use strict";Object.defineProperty(km,"__esModule",{value:!0});km.getSSOTokenFilepath=void 0;var ese=require("crypto"),tse=require("path"),rse=pc(),nse=e=>{let r=(0,ese.createHash)("sha1").update(e).digest("hex");return(0,tse.join)((0,rse.getHomeDir)(),".aws","sso","cache",`${r}.json`)};km.getSSOTokenFilepath=nse});var HD=m(Fm=>{"use strict";Object.defineProperty(Fm,"__esModule",{value:!0});Fm.getSSOTokenFromFile=void 0;var ise=require("fs"),sse=t0(),{readFile:ose}=ise.promises,ase=async e=>{let t=(0,sse.getSSOTokenFilepath)(e),r=await ose(t,"utf8");return JSON.parse(r)};Fm.getSSOTokenFromFile=ase});var WD=m(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});Gi.getConfigFilepath=Gi.ENV_CONFIG_PATH=void 0;var cse=require("path"),lse=pc();Gi.ENV_CONFIG_PATH="AWS_CONFIG_FILE";var dse=()=>process.env[Gi.ENV_CONFIG_PATH]||(0,cse.join)((0,lse.getHomeDir)(),".aws","config");Gi.getConfigFilepath=dse});var JD=m($i=>{"use strict";Object.defineProperty($i,"__esModule",{value:!0});$i.getCredentialsFilepath=$i.ENV_CREDENTIALS_PATH=void 0;var use=require("path"),fse=pc();$i.ENV_CREDENTIALS_PATH="AWS_SHARED_CREDENTIALS_FILE";var mse=()=>process.env[$i.ENV_CREDENTIALS_PATH]||(0,use.join)((0,fse.getHomeDir)(),".aws","credentials");$i.getCredentialsFilepath=mse});var QD=m(Um=>{"use strict";Object.defineProperty(Um,"__esModule",{value:!0});Um.getProfileData=void 0;var YD=/^profile\s(["'])?([^\1]+)\1$/,pse=e=>Object.entries(e).filter(([t])=>YD.test(t)).reduce((t,[r,n])=>y(o({},t),{[YD.exec(r)[2]]:n}),o({},e.default&&{default:e.default}));Um.getProfileData=pse});var XD=m(Bm=>{"use strict";Object.defineProperty(Bm,"__esModule",{value:!0});Bm.parseIni=void 0;var _se=["__proto__","profile __proto__"],hse=e=>{let t={},r;for(let n of e.split(/\r?\n/)){n=n.split(/(^|\s)[;#]/)[0];let i=n.match(/^\s*\[([^\[\]]+)]\s*$/);if(i){if(r=i[1],_se.includes(r))throw new Error(`Found invalid profile name "${r}"`)}else if(r){let s=n.match(/^\s*(.+?)\s*=\s*(.+?)\s*$/);s&&(t[r]=t[r]||{},t[r][s[1]]=s[2])}}return t};Bm.parseIni=hse});var ZD=m(Gm=>{"use strict";Object.defineProperty(Gm,"__esModule",{value:!0});Gm.slurpFile=void 0;var yse=require("fs"),{readFile:gse}=yse.promises,r0={},vse=e=>(r0[e]||(r0[e]=gse(e,"utf8")),r0[e]);Gm.slurpFile=vse});var n0=m($m=>{"use strict";Object.defineProperty($m,"__esModule",{value:!0});$m.loadSharedConfigFiles=void 0;var Sse=WD(),wse=JD(),Ese=QD(),eO=XD(),tO=ZD(),rO=()=>({}),bse=async(e={})=>{let{filepath:t=(0,wse.getCredentialsFilepath)(),configFilepath:r=(0,Sse.getConfigFilepath)()}=e,n=await Promise.all([(0,tO.slurpFile)(r).then(eO.parseIni).then(Ese.getProfileData).catch(rO),(0,tO.slurpFile)(t).then(eO.parseIni).catch(rO)]);return{configFile:n[0],credentialsFile:n[1]}};$m.loadSharedConfigFiles=bse});var nO=m(Vm=>{"use strict";Object.defineProperty(Vm,"__esModule",{value:!0});Vm.parseKnownFiles=void 0;var Ase=n0(),Tse=async e=>{let t=await(0,Ase.loadSharedConfigFiles)(e);return o(o({},t.configFile),t.credentialsFile)};Vm.parseKnownFiles=Tse});var sO=m(iO=>{"use strict";Object.defineProperty(iO,"__esModule",{value:!0})});var oO=m(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});var Vi=$();Vi.__exportStar(pc(),Sn);Vi.__exportStar(KD(),Sn);Vi.__exportStar(t0(),Sn);Vi.__exportStar(HD(),Sn);Vi.__exportStar(n0(),Sn);Vi.__exportStar(nO(),Sn);Vi.__exportStar(sO(),Sn)});var cO=m(Km=>{"use strict";Object.defineProperty(Km,"__esModule",{value:!0});Km.fromSharedConfigFiles=void 0;var Cse=Ee(),aO=oO(),xse=(e,n={})=>{var i=n,{preferredFile:t="config"}=i,r=Un(i,["preferredFile"]);return async()=>{let s=(0,aO.getProfileName)(r),{configFile:a,credentialsFile:c}=await(0,aO.loadSharedConfigFiles)(r),l=c[s]||{},u=a[s]||{},f=t==="config"?o(o({},l),u):o(o({},u),l);try{let _=e(f);if(_===void 0)throw new Error;return _}catch(_){throw new Cse.CredentialsProviderError(_.message||`Cannot load config for profile ${s} in SDK configuration files with getter: ${e}`)}}};Km.fromSharedConfigFiles=xse});var lO=m(Hm=>{"use strict";Object.defineProperty(Hm,"__esModule",{value:!0});Hm.fromStatic=void 0;var Ise=Ee(),Rse=e=>typeof e=="function",Nse=e=>Rse(e)?async()=>await e():(0,Ise.fromStatic)(e);Hm.fromStatic=Nse});var uO=m(Wm=>{"use strict";Object.defineProperty(Wm,"__esModule",{value:!0});Wm.loadConfig=void 0;var dO=Ee(),Pse=VD(),Dse=cO(),Ose=lO(),Lse=({environmentVariableSelector:e,configFileSelector:t,default:r},n={})=>(0,dO.memoize)((0,dO.chain)((0,Pse.fromEnv)(e),(0,Dse.fromSharedConfigFiles)(t,n),(0,Ose.fromStatic)(r)));Wm.loadConfig=Lse});var kr=m(i0=>{"use strict";Object.defineProperty(i0,"__esModule",{value:!0});var qse=$();qse.__exportStar(uO(),i0)});var fO=m(Jm=>{"use strict";Object.defineProperty(Jm,"__esModule",{value:!0});Jm.parseQueryString=void 0;function Mse(e){let t={};if(e=e.replace(/^\?/,""),e)for(let r of e.split("&")){let[n,i=null]=r.split("=");n=decodeURIComponent(n),i&&(i=decodeURIComponent(i)),n in t?Array.isArray(t[n])?t[n].push(i):t[n]=[t[n],i]:t[n]=i}return t}Jm.parseQueryString=Mse});var si=m(Ym=>{"use strict";Object.defineProperty(Ym,"__esModule",{value:!0});Ym.parseUrl=void 0;var zse=fO(),jse=e=>{let{hostname:t,pathname:r,port:n,protocol:i,search:s}=new URL(e),a;return s&&(a=(0,zse.parseQueryString)(s)),{hostname:t,port:n?parseInt(n):void 0,protocol:i,path:r,query:a}};Ym.parseUrl=jse});var mO=m(_c=>{"use strict";Object.defineProperty(_c,"__esModule",{value:!0});_c.Endpoint=void 0;var kse;(function(e){e.IPv4="http://169.254.169.254",e.IPv6="http://[fd00:ec2::254]"})(kse=_c.Endpoint||(_c.Endpoint={}))});var pO=m(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.ENDPOINT_CONFIG_OPTIONS=Fr.CONFIG_ENDPOINT_NAME=Fr.ENV_ENDPOINT_NAME=void 0;Fr.ENV_ENDPOINT_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT";Fr.CONFIG_ENDPOINT_NAME="ec2_metadata_service_endpoint";Fr.ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>e[Fr.ENV_ENDPOINT_NAME],configFileSelector:e=>e[Fr.CONFIG_ENDPOINT_NAME],default:void 0}});var s0=m(hc=>{"use strict";Object.defineProperty(hc,"__esModule",{value:!0});hc.EndpointMode=void 0;var Fse;(function(e){e.IPv4="IPv4",e.IPv6="IPv6"})(Fse=hc.EndpointMode||(hc.EndpointMode={}))});var _O=m(Ur=>{"use strict";Object.defineProperty(Ur,"__esModule",{value:!0});Ur.ENDPOINT_MODE_CONFIG_OPTIONS=Ur.CONFIG_ENDPOINT_MODE_NAME=Ur.ENV_ENDPOINT_MODE_NAME=void 0;var Use=s0();Ur.ENV_ENDPOINT_MODE_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";Ur.CONFIG_ENDPOINT_MODE_NAME="ec2_metadata_service_endpoint_mode";Ur.ENDPOINT_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[Ur.ENV_ENDPOINT_MODE_NAME],configFileSelector:e=>e[Ur.CONFIG_ENDPOINT_MODE_NAME],default:Use.EndpointMode.IPv4}});var a0=m(Qm=>{"use strict";Object.defineProperty(Qm,"__esModule",{value:!0});Qm.getInstanceMetadataEndpoint=void 0;var yO=kr(),Bse=si(),hO=mO(),Gse=pO(),o0=s0(),$se=_O(),Vse=async()=>(0,Bse.parseUrl)(await Kse()||await Hse());Qm.getInstanceMetadataEndpoint=Vse;var Kse=async()=>(0,yO.loadConfig)(Gse.ENDPOINT_CONFIG_OPTIONS)(),Hse=async()=>{let e=await(0,yO.loadConfig)($se.ENDPOINT_MODE_CONFIG_OPTIONS)();switch(e){case o0.EndpointMode.IPv4:return hO.Endpoint.IPv4;case o0.EndpointMode.IPv6:return hO.Endpoint.IPv6;default:throw new Error(`Unsupported endpoint mode: ${e}. Select from ${Object.values(o0.EndpointMode)}`)}}});var gO=m(Xm=>{"use strict";Object.defineProperty(Xm,"__esModule",{value:!0});Xm.getExtendedInstanceMetadataCredentials=void 0;var Wse=5*60,Jse=5*60,Yse="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",Qse=(e,t)=>{var r;let n=Wse+Math.floor(Math.random()*Jse),i=new Date(Date.now()+n*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: "+Yse);let s=(r=e.originalExpiration)!==null&&r!==void 0?r:e.expiration;return y(o(o({},e),s?{originalExpiration:s}:{}),{expiration:i})};Xm.getExtendedInstanceMetadataCredentials=Qse});var SO=m(Zm=>{"use strict";Object.defineProperty(Zm,"__esModule",{value:!0});Zm.staticStabilityProvider=void 0;var vO=gO(),Xse=(e,t={})=>{let r=(t==null?void 0:t.logger)||console,n;return async()=>{let i;try{i=await e(),i.expiration&&i.expiration.getTime()<Date.now()&&(i=(0,vO.getExtendedInstanceMetadataCredentials)(i,r))}catch(s){if(n)r.warn("Credential renew failed: ",s),i=(0,vO.getExtendedInstanceMetadataCredentials)(n,r);else throw s}return n=i,i}};Zm.staticStabilityProvider=Xse});var AO=m(ep=>{"use strict";Object.defineProperty(ep,"__esModule",{value:!0});ep.fromInstanceMetadata=void 0;var Zse=Ee(),c0=Om(),wO=ZE(),eoe=Lm(),EO=e0(),toe=a0(),roe=SO(),bO="/latest/meta-data/iam/security-credentials/",noe="/latest/api/token",ioe=(e={})=>(0,roe.staticStabilityProvider)(soe(e),{logger:e.logger});ep.fromInstanceMetadata=ioe;var soe=e=>{let t=!1,{timeout:r,maxRetries:n}=(0,eoe.providerConfigFromInit)(e),i=async(s,a)=>{let c=(await(0,EO.retry)(async()=>{let l;try{l=await aoe(a)}catch(u){throw u.statusCode===401&&(t=!1),u}return l},s)).trim();return(0,EO.retry)(async()=>{let l;try{l=await coe(c,a)}catch(u){throw u.statusCode===401&&(t=!1),u}return l},s)};return async()=>{let s=await(0,toe.getInstanceMetadataEndpoint)();if(t)return i(n,y(o({},s),{timeout:r}));{let a;try{a=(await ooe(y(o({},s),{timeout:r}))).toString()}catch(c){if((c==null?void 0:c.statusCode)===400)throw Object.assign(c,{message:"EC2 Metadata token request returned error"});return(c.message==="TimeoutError"||[403,404,405].includes(c.statusCode))&&(t=!0),i(n,y(o({},s),{timeout:r}))}return i(n,y(o({},s),{headers:{"x-aws-ec2-metadata-token":a},timeout:r}))}}},ooe=async e=>(0,c0.httpRequest)(y(o({},e),{path:noe,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}})),aoe=async e=>(await(0,c0.httpRequest)(y(o({},e),{path:bO}))).toString(),coe=async(e,t)=>{let r=JSON.parse((await(0,c0.httpRequest)(y(o({},t),{path:bO+e}))).toString());if(!(0,wO.isImdsCredentials)(r))throw new Zse.CredentialsProviderError("Invalid response received from instance metadata service.");return(0,wO.fromImdsCredentials)(r)}});var CO=m(TO=>{"use strict";Object.defineProperty(TO,"__esModule",{value:!0})});var xO=m(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});Br.getInstanceMetadataEndpoint=Br.httpRequest=void 0;var tp=$();tp.__exportStar($D(),Br);tp.__exportStar(AO(),Br);tp.__exportStar(Lm(),Br);tp.__exportStar(CO(),Br);var loe=Om();Object.defineProperty(Br,"httpRequest",{enumerable:!0,get:function(){return loe.httpRequest}});var doe=a0();Object.defineProperty(Br,"getInstanceMetadataEndpoint",{enumerable:!0,get:function(){return doe.getInstanceMetadataEndpoint}})});var RO=m(rp=>{"use strict";Object.defineProperty(rp,"__esModule",{value:!0});rp.resolveCredentialSource=void 0;var uoe=WE(),IO=xO(),foe=Ee(),moe=(e,t)=>{let r={EcsContainer:IO.fromContainerMetadata,Ec2InstanceMetadata:IO.fromInstanceMetadata,Environment:uoe.fromEnv};if(e in r)return r[e]();throw new foe.CredentialsProviderError(`Unsupported credential source in profile ${t}. Got ${e}, expected EcsContainer or Ec2InstanceMetadata or Environment.`)};rp.resolveCredentialSource=moe});var NO=m(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});Us.resolveAssumeRoleCredentials=Us.isAssumeRoleProfile=void 0;var l0=Ee(),poe=mc(),_oe=RO(),hoe=d0(),yoe=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&&(goe(e)||voe(e));Us.isAssumeRoleProfile=yoe;var goe=e=>typeof e.source_profile=="string"&&typeof e.credential_source>"u",voe=e=>typeof e.credential_source=="string"&&typeof e.source_profile>"u",Soe=async(e,t,r,n={})=>{let i=t[e];if(!r.roleAssumer)throw new l0.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 n)throw new l0.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${(0,poe.getProfileName)(r)}. Profiles visited: `+Object.keys(n).join(", "),!1);let a=s?(0,hoe.resolveProfileData)(s,t,r,y(o({},n),{[s]:!0})):(0,_oe.resolveCredentialSource)(i.credential_source,e)(),c={RoleArn:i.role_arn,RoleSessionName:i.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:i.external_id},{mfa_serial:l}=i;if(l){if(!r.mfaCodeProvider)throw new l0.CredentialsProviderError(`Profile ${e} requires multi-factor authentication, but no MFA code callback was provided.`,!1);c.SerialNumber=l,c.TokenCode=await r.mfaCodeProvider(l)}let u=await a;return r.roleAssumer(u,c)};Us.resolveAssumeRoleCredentials=Soe});var u0=m(np=>{"use strict";Object.defineProperty(np,"__esModule",{value:!0});np.isSsoProfile=void 0;var woe=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");np.isSsoProfile=woe});var sp=m(ip=>{"use strict";Object.defineProperty(ip,"__esModule",{value:!0});ip.SSOServiceException=void 0;var Eoe=P(),yc=class extends Eoe.ServiceException{constructor(t){super(t),Object.setPrototypeOf(this,yc.prototype)}};ip.SSOServiceException=yc});var Ki=m(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.LogoutRequest=le.ListAccountsResponse=le.ListAccountsRequest=le.ListAccountRolesResponse=le.RoleInfo=le.ListAccountRolesRequest=le.UnauthorizedException=le.TooManyRequestsException=le.ResourceNotFoundException=le.InvalidRequestException=le.GetRoleCredentialsResponse=le.RoleCredentials=le.GetRoleCredentialsRequest=le.AccountInfo=void 0;var Bs=P(),op=sp(),boe;(function(e){e.filterSensitiveLog=t=>o({},t)})(boe=le.AccountInfo||(le.AccountInfo={}));var Aoe;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.accessToken&&{accessToken:Bs.SENSITIVE_STRING})})(Aoe=le.GetRoleCredentialsRequest||(le.GetRoleCredentialsRequest={}));var PO;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.secretAccessKey&&{secretAccessKey:Bs.SENSITIVE_STRING}),t.sessionToken&&{sessionToken:Bs.SENSITIVE_STRING})})(PO=le.RoleCredentials||(le.RoleCredentials={}));var Toe;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.roleCredentials&&{roleCredentials:PO.filterSensitiveLog(t.roleCredentials)})})(Toe=le.GetRoleCredentialsResponse||(le.GetRoleCredentialsResponse={}));var gc=class extends op.SSOServiceException{constructor(t){super(o({name:"InvalidRequestException",$fault:"client"},t)),this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,gc.prototype)}};le.InvalidRequestException=gc;var vc=class extends op.SSOServiceException{constructor(t){super(o({name:"ResourceNotFoundException",$fault:"client"},t)),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,vc.prototype)}};le.ResourceNotFoundException=vc;var Sc=class extends op.SSOServiceException{constructor(t){super(o({name:"TooManyRequestsException",$fault:"client"},t)),this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,Sc.prototype)}};le.TooManyRequestsException=Sc;var wc=class extends op.SSOServiceException{constructor(t){super(o({name:"UnauthorizedException",$fault:"client"},t)),this.name="UnauthorizedException",this.$fault="client",Object.setPrototypeOf(this,wc.prototype)}};le.UnauthorizedException=wc;var Coe;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.accessToken&&{accessToken:Bs.SENSITIVE_STRING})})(Coe=le.ListAccountRolesRequest||(le.ListAccountRolesRequest={}));var xoe;(function(e){e.filterSensitiveLog=t=>o({},t)})(xoe=le.RoleInfo||(le.RoleInfo={}));var Ioe;(function(e){e.filterSensitiveLog=t=>o({},t)})(Ioe=le.ListAccountRolesResponse||(le.ListAccountRolesResponse={}));var Roe;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.accessToken&&{accessToken:Bs.SENSITIVE_STRING})})(Roe=le.ListAccountsRequest||(le.ListAccountsRequest={}));var Noe;(function(e){e.filterSensitiveLog=t=>o({},t)})(Noe=le.ListAccountsResponse||(le.ListAccountsResponse={}));var Poe;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.accessToken&&{accessToken:Bs.SENSITIVE_STRING})})(Poe=le.LogoutRequest||(le.LogoutRequest={}))});var Ec=m(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.deserializeAws_restJson1LogoutCommand=nt.deserializeAws_restJson1ListAccountsCommand=nt.deserializeAws_restJson1ListAccountRolesCommand=nt.deserializeAws_restJson1GetRoleCredentialsCommand=nt.serializeAws_restJson1LogoutCommand=nt.serializeAws_restJson1ListAccountsCommand=nt.serializeAws_restJson1ListAccountRolesCommand=nt.serializeAws_restJson1GetRoleCredentialsCommand=void 0;var ap=It(),Te=P(),cp=Ki(),lp=sp(),Doe=async(e,t)=>{let{hostname:r,protocol:n="https",port:i,path:s}=await t.endpoint(),a=o({},mp(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}),c=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/federation/credentials`,l=o(o({},e.roleName!==void 0&&{role_name:e.roleName}),e.accountId!==void 0&&{account_id:e.accountId}),u;return new ap.HttpRequest({protocol:n,hostname:r,port:i,method:"GET",headers:a,path:c,query:l,body:u})};nt.serializeAws_restJson1GetRoleCredentialsCommand=Doe;var Ooe=async(e,t)=>{let{hostname:r,protocol:n="https",port:i,path:s}=await t.endpoint(),a=o({},mp(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}),c=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/assignment/roles`,l=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}),u;return new ap.HttpRequest({protocol:n,hostname:r,port:i,method:"GET",headers:a,path:c,query:l,body:u})};nt.serializeAws_restJson1ListAccountRolesCommand=Ooe;var Loe=async(e,t)=>{let{hostname:r,protocol:n="https",port:i,path:s}=await t.endpoint(),a=o({},mp(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}),c=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/assignment/accounts`,l=o(o({},e.nextToken!==void 0&&{next_token:e.nextToken}),e.maxResults!==void 0&&{max_result:e.maxResults.toString()}),u;return new ap.HttpRequest({protocol:n,hostname:r,port:i,method:"GET",headers:a,path:c,query:l,body:u})};nt.serializeAws_restJson1ListAccountsCommand=Loe;var qoe=async(e,t)=>{let{hostname:r,protocol:n="https",port:i,path:s}=await t.endpoint(),a=o({},mp(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}),c=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/logout`,l;return new ap.HttpRequest({protocol:n,hostname:r,port:i,method:"POST",headers:a,path:c,body:l})};nt.serializeAws_restJson1LogoutCommand=qoe;var Moe=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return zoe(e,t);let r={$metadata:ir(e),roleCredentials:void 0},n=(0,Te.expectNonNull)((0,Te.expectObject)(await Hi(e.body,t)),"body");return n.roleCredentials!==void 0&&n.roleCredentials!==null&&(r.roleCredentials=Koe(n.roleCredentials,t)),Promise.resolve(r)};nt.deserializeAws_restJson1GetRoleCredentialsCommand=Moe;var zoe=async(e,t)=>{let r=y(o({},e),{body:await Hi(e.body,t)}),n,i="UnknownError";switch(i=pp(e,r.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await dp(r,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await f0(r,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await up(r,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await fp(r,t);default:let s=r.body;throw n=new lp.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:ir(e)}),(0,Te.decorateServiceException)(n,s)}},joe=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return koe(e,t);let r={$metadata:ir(e),nextToken:void 0,roleList:void 0},n=(0,Te.expectNonNull)((0,Te.expectObject)(await Hi(e.body,t)),"body");return n.nextToken!==void 0&&n.nextToken!==null&&(r.nextToken=(0,Te.expectString)(n.nextToken)),n.roleList!==void 0&&n.roleList!==null&&(r.roleList=Woe(n.roleList,t)),Promise.resolve(r)};nt.deserializeAws_restJson1ListAccountRolesCommand=joe;var koe=async(e,t)=>{let r=y(o({},e),{body:await Hi(e.body,t)}),n,i="UnknownError";switch(i=pp(e,r.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await dp(r,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await f0(r,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await up(r,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await fp(r,t);default:let s=r.body;throw n=new lp.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:ir(e)}),(0,Te.decorateServiceException)(n,s)}},Foe=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Uoe(e,t);let r={$metadata:ir(e),accountList:void 0,nextToken:void 0},n=(0,Te.expectNonNull)((0,Te.expectObject)(await Hi(e.body,t)),"body");return n.accountList!==void 0&&n.accountList!==null&&(r.accountList=Voe(n.accountList,t)),n.nextToken!==void 0&&n.nextToken!==null&&(r.nextToken=(0,Te.expectString)(n.nextToken)),Promise.resolve(r)};nt.deserializeAws_restJson1ListAccountsCommand=Foe;var Uoe=async(e,t)=>{let r=y(o({},e),{body:await Hi(e.body,t)}),n,i="UnknownError";switch(i=pp(e,r.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await dp(r,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await f0(r,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await up(r,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await fp(r,t);default:let s=r.body;throw n=new lp.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:ir(e)}),(0,Te.decorateServiceException)(n,s)}},Boe=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Goe(e,t);let r={$metadata:ir(e)};return await DO(e.body,t),Promise.resolve(r)};nt.deserializeAws_restJson1LogoutCommand=Boe;var Goe=async(e,t)=>{let r=y(o({},e),{body:await Hi(e.body,t)}),n,i="UnknownError";switch(i=pp(e,r.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await dp(r,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await up(r,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await fp(r,t);default:let s=r.body;throw n=new lp.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:ir(e)}),(0,Te.decorateServiceException)(n,s)}},dp=async(e,t)=>{let r={},n=e.body;n.message!==void 0&&n.message!==null&&(r.message=(0,Te.expectString)(n.message));let i=new cp.InvalidRequestException(o({$metadata:ir(e)},r));return(0,Te.decorateServiceException)(i,e.body)},f0=async(e,t)=>{let r={},n=e.body;n.message!==void 0&&n.message!==null&&(r.message=(0,Te.expectString)(n.message));let i=new cp.ResourceNotFoundException(o({$metadata:ir(e)},r));return(0,Te.decorateServiceException)(i,e.body)},up=async(e,t)=>{let r={},n=e.body;n.message!==void 0&&n.message!==null&&(r.message=(0,Te.expectString)(n.message));let i=new cp.TooManyRequestsException(o({$metadata:ir(e)},r));return(0,Te.decorateServiceException)(i,e.body)},fp=async(e,t)=>{let r={},n=e.body;n.message!==void 0&&n.message!==null&&(r.message=(0,Te.expectString)(n.message));let i=new cp.UnauthorizedException(o({$metadata:ir(e)},r));return(0,Te.decorateServiceException)(i,e.body)},$oe=(e,t)=>({accountId:(0,Te.expectString)(e.accountId),accountName:(0,Te.expectString)(e.accountName),emailAddress:(0,Te.expectString)(e.emailAddress)}),Voe=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:$oe(n,t)),Koe=(e,t)=>({accessKeyId:(0,Te.expectString)(e.accessKeyId),expiration:(0,Te.expectLong)(e.expiration),secretAccessKey:(0,Te.expectString)(e.secretAccessKey),sessionToken:(0,Te.expectString)(e.sessionToken)}),Hoe=(e,t)=>({accountId:(0,Te.expectString)(e.accountId),roleName:(0,Te.expectString)(e.roleName)}),Woe=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:Hoe(n,t)),ir=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"]}},DO=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),Joe=(e,t)=>DO(e,t).then(r=>t.utf8Encoder(r)),mp=e=>e!=null&&e!==""&&(!Object.getOwnPropertyNames(e).includes("length")||e.length!=0)&&(!Object.getOwnPropertyNames(e).includes("size")||e.size!=0),Hi=(e,t)=>Joe(e,t).then(r=>r.length?JSON.parse(r):{}),pp=(e,t)=>{let r=(s,a)=>Object.keys(s).find(c=>c.toLowerCase()===a.toLowerCase()),n=s=>{let a=s;return a.indexOf(":")>=0&&(a=a.split(":")[0]),a.indexOf("#")>=0&&(a=a.split("#")[1]),a},i=r(e.headers,"x-amzn-errortype");return i!==void 0?n(e.headers[i]):t.code!==void 0?n(t.code):t.__type!==void 0?n(t.__type):""}});var p0=m(_p=>{"use strict";Object.defineProperty(_p,"__esModule",{value:!0});_p.GetRoleCredentialsCommand=void 0;var Yoe=G(),Qoe=P(),OO=Ki(),LO=Ec(),m0=class extends Qoe.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Yoe.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"SSOClient",commandName:"GetRoleCredentialsCommand",inputFilterSensitiveLog:OO.GetRoleCredentialsRequest.filterSensitiveLog,outputFilterSensitiveLog:OO.GetRoleCredentialsResponse.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,LO.serializeAws_restJson1GetRoleCredentialsCommand)(t,r)}deserialize(t,r){return(0,LO.deserializeAws_restJson1GetRoleCredentialsCommand)(t,r)}};_p.GetRoleCredentialsCommand=m0});var yp=m(hp=>{"use strict";Object.defineProperty(hp,"__esModule",{value:!0});hp.ListAccountRolesCommand=void 0;var Xoe=G(),Zoe=P(),qO=Ki(),MO=Ec(),_0=class extends Zoe.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Xoe.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"SSOClient",commandName:"ListAccountRolesCommand",inputFilterSensitiveLog:qO.ListAccountRolesRequest.filterSensitiveLog,outputFilterSensitiveLog:qO.ListAccountRolesResponse.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,MO.serializeAws_restJson1ListAccountRolesCommand)(t,r)}deserialize(t,r){return(0,MO.deserializeAws_restJson1ListAccountRolesCommand)(t,r)}};hp.ListAccountRolesCommand=_0});var vp=m(gp=>{"use strict";Object.defineProperty(gp,"__esModule",{value:!0});gp.ListAccountsCommand=void 0;var eae=G(),tae=P(),zO=Ki(),jO=Ec(),h0=class extends tae.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,eae.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"SSOClient",commandName:"ListAccountsCommand",inputFilterSensitiveLog:zO.ListAccountsRequest.filterSensitiveLog,outputFilterSensitiveLog:zO.ListAccountsResponse.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,jO.serializeAws_restJson1ListAccountsCommand)(t,r)}deserialize(t,r){return(0,jO.deserializeAws_restJson1ListAccountsCommand)(t,r)}};gp.ListAccountsCommand=h0});var g0=m(Sp=>{"use strict";Object.defineProperty(Sp,"__esModule",{value:!0});Sp.LogoutCommand=void 0;var rae=G(),nae=P(),iae=Ki(),kO=Ec(),y0=class extends nae.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,rae.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"SSOClient",commandName:"LogoutCommand",inputFilterSensitiveLog:iae.LogoutRequest.filterSensitiveLog,outputFilterSensitiveLog:f=>f},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,kO.serializeAws_restJson1LogoutCommand)(t,r)}deserialize(t,r){return(0,kO.deserializeAws_restJson1LogoutCommand)(t,r)}};Sp.LogoutCommand=y0});var FO=m((BRe,sae)=>{sae.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 wp=m(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});Gs.fromString=Gs.fromArrayBuffer=void 0;var oae=dE(),v0=require("buffer"),aae=(e,t=0,r=e.byteLength-t)=>{if(!(0,oae.isArrayBuffer)(e))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`);return v0.Buffer.from(e,t,r)};Gs.fromArrayBuffer=aae;var cae=(e,t)=>{if(typeof e!="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`);return t?v0.Buffer.from(e,t):v0.Buffer.from(e)};Gs.fromString=cae});var bc=m(Ep=>{"use strict";Object.defineProperty(Ep,"__esModule",{value:!0});Ep.Hash=void 0;var S0=wp(),lae=require("buffer"),UO=require("crypto"),w0=class{constructor(t,r){this.hash=r?(0,UO.createHmac)(t,BO(r)):(0,UO.createHash)(t)}update(t,r){this.hash.update(BO(t,r))}digest(){return Promise.resolve(this.hash.digest())}};Ep.Hash=w0;function BO(e,t){return lae.Buffer.isBuffer(e)?e:typeof e=="string"?(0,S0.fromString)(e,t):ArrayBuffer.isView(e)?(0,S0.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength):(0,S0.fromArrayBuffer)(e)}});var b0=m(bp=>{"use strict";Object.defineProperty(bp,"__esModule",{value:!0});bp.buildQueryString=void 0;var E0=cE();function dae(e){let t=[];for(let r of Object.keys(e).sort()){let n=e[r];if(r=(0,E0.escapeUri)(r),Array.isArray(n))for(let i=0,s=n.length;i<s;i++)t.push(`${r}=${(0,E0.escapeUri)(n[i])}`);else{let i=r;(n||typeof n=="string")&&(i+=`=${(0,E0.escapeUri)(n)}`),t.push(i)}}return t.join("&")}bp.buildQueryString=dae});var GO=m(Ap=>{"use strict";Object.defineProperty(Ap,"__esModule",{value:!0});Ap.NODEJS_TIMEOUT_ERROR_CODES=void 0;Ap.NODEJS_TIMEOUT_ERROR_CODES=["ECONNRESET","EPIPE","ETIMEDOUT"]});var A0=m(Tp=>{"use strict";Object.defineProperty(Tp,"__esModule",{value:!0});Tp.getTransformedHeaders=void 0;var uae=e=>{let t={};for(let r of Object.keys(e)){let n=e[r];t[r]=Array.isArray(n)?n.join(","):n}return t};Tp.getTransformedHeaders=uae});var $O=m(Cp=>{"use strict";Object.defineProperty(Cp,"__esModule",{value:!0});Cp.setConnectionTimeout=void 0;var fae=(e,t,r=0)=>{!r||e.on("socket",n=>{if(n.connecting){let i=setTimeout(()=>{e.destroy(),t(Object.assign(new Error(`Socket timed out without establishing a connection within ${r} ms`),{name:"TimeoutError"}))},r);n.on("connect",()=>{clearTimeout(i)})}})};Cp.setConnectionTimeout=fae});var VO=m(xp=>{"use strict";Object.defineProperty(xp,"__esModule",{value:!0});xp.setSocketTimeout=void 0;var mae=(e,t,r=0)=>{e.setTimeout(r,()=>{e.destroy(),t(Object.assign(new Error(`Connection timed out after ${r} ms`),{name:"TimeoutError"}))})};xp.setSocketTimeout=mae});var T0=m(Ip=>{"use strict";Object.defineProperty(Ip,"__esModule",{value:!0});Ip.writeRequestBody=void 0;var pae=require("stream");function _ae(e,t){(t.headers.Expect||t.headers.expect)==="100-continue"?e.on("continue",()=>{KO(e,t.body)}):KO(e,t.body)}Ip.writeRequestBody=_ae;function KO(e,t){t instanceof pae.Readable?t.pipe(e):t?e.end(Buffer.from(t)):e.end()}});var JO=m(Rp=>{"use strict";Object.defineProperty(Rp,"__esModule",{value:!0});Rp.NodeHttpHandler=void 0;var hae=It(),yae=b0(),HO=require("http"),WO=require("https"),gae=GO(),vae=A0(),Sae=$O(),wae=VO(),Eae=T0(),C0=class{constructor(t){this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((r,n)=>{typeof t=="function"?t().then(i=>{r(this.resolveDefaultConfig(i))}).catch(n):r(this.resolveDefaultConfig(t))})}resolveDefaultConfig(t){let{connectionTimeout:r,socketTimeout:n,httpAgent:i,httpsAgent:s}=t||{},a=!0,c=50;return{connectionTimeout:r,socketTimeout:n,httpAgent:i||new HO.Agent({keepAlive:a,maxSockets:c}),httpsAgent:s||new WO.Agent({keepAlive:a,maxSockets:c})}}destroy(){var t,r,n,i;(r=(t=this.config)===null||t===void 0?void 0:t.httpAgent)===null||r===void 0||r.destroy(),(i=(n=this.config)===null||n===void 0?void 0:n.httpsAgent)===null||i===void 0||i.destroy()}async handle(t,{abortSignal:r}={}){return this.config||(this.config=await this.configProvider),new Promise((n,i)=>{if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(r!=null&&r.aborted){let f=new Error("Request aborted");f.name="AbortError",i(f);return}let s=t.protocol==="https:",a=(0,yae.buildQueryString)(t.query||{}),c={headers:t.headers,host:t.hostname,method:t.method,path:a?`${t.path}?${a}`:t.path,port:t.port,agent:s?this.config.httpsAgent:this.config.httpAgent},u=(s?WO.request:HO.request)(c,f=>{let _=new hae.HttpResponse({statusCode:f.statusCode||-1,headers:(0,vae.getTransformedHeaders)(f.headers),body:f});n({response:_})});u.on("error",f=>{gae.NODEJS_TIMEOUT_ERROR_CODES.includes(f.code)?i(Object.assign(f,{name:"TimeoutError"})):i(f)}),(0,Sae.setConnectionTimeout)(u,i,this.config.connectionTimeout),(0,wae.setSocketTimeout)(u,i,this.config.socketTimeout),r&&(r.onabort=()=>{u.abort();let f=new Error("Request aborted");f.name="AbortError",i(f)}),(0,Eae.writeRequestBody)(u,t)})}};Rp.NodeHttpHandler=C0});var YO=m(Np=>{"use strict";Object.defineProperty(Np,"__esModule",{value:!0});Np.NodeHttp2Handler=void 0;var bae=It(),Aae=b0(),x0=require("http2"),Tae=A0(),Cae=T0(),I0=class{constructor(t){this.metadata={handlerProtocol:"h2"},this.configProvider=new Promise((r,n)=>{typeof t=="function"?t().then(i=>{r(i||{})}).catch(n):r(t||{})}),this.sessionCache=new Map}destroy(){for(let t of this.sessionCache.values())t.forEach(r=>this.destroySession(r));this.sessionCache.clear()}async handle(t,{abortSignal:r}={}){this.config||(this.config=await this.configProvider);let{requestTimeout:n,disableConcurrentStreams:i}=this.config;return new Promise((s,a)=>{let c=!1;if(r!=null&&r.aborted){c=!0;let k=new Error("Request aborted");k.name="AbortError",a(k);return}let{hostname:l,method:u,port:f,protocol:_,path:h,query:v}=t,S=`${_}//${l}${f?`:${f}`:""}`,g=this.getSession(S,i||!1),I=k=>{i&&this.destroySession(g),c=!0,a(k)},O=(0,Aae.buildQueryString)(v||{}),C=g.request(y(o({},t.headers),{[x0.constants.HTTP2_HEADER_PATH]:O?`${h}?${O}`:h,[x0.constants.HTTP2_HEADER_METHOD]:u}));g.ref(),C.on("response",k=>{let _e=new bae.HttpResponse({statusCode:k[":status"]||-1,headers:(0,Tae.getTransformedHeaders)(k),body:C});c=!0,s({response:_e}),i&&(g.close(),this.deleteSessionFromCache(S,g))}),n&&C.setTimeout(n,()=>{C.close();let k=new Error(`Stream timed out because of no activity for ${n} ms`);k.name="TimeoutError",I(k)}),r&&(r.onabort=()=>{C.close();let k=new Error("Request aborted");k.name="AbortError",I(k)}),C.on("frameError",(k,_e,Ut)=>{I(new Error(`Frame type id ${k} in stream id ${Ut} has failed with code ${_e}.`))}),C.on("error",I),C.on("aborted",()=>{I(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${C.rstCode}.`))}),C.on("close",()=>{g.unref(),i&&g.destroy(),c||I(new Error("Unexpected error: http2 request did not get a response"))}),(0,Cae.writeRequestBody)(C,t)})}getSession(t,r){var n;let i=this.sessionCache,s=i.get(t)||[];if(s.length>0&&!r)return s[0];let a=(0,x0.connect)(t);a.unref();let c=()=>{this.destroySession(a),this.deleteSessionFromCache(t,a)};return a.on("goaway",c),a.on("error",c),a.on("frameError",c),a.on("close",()=>this.deleteSessionFromCache(t,a)),!((n=this.config)===null||n===void 0)&&n.sessionTimeout&&a.setTimeout(this.config.sessionTimeout,c),s.push(a),i.set(t,s),a}destroySession(t){t.destroyed||t.destroy()}deleteSessionFromCache(t,r){let n=this.sessionCache.get(t)||[];!n.includes(r)||this.sessionCache.set(t,n.filter(i=>i!==r))}};Np.NodeHttp2Handler=I0});var QO=m(Pp=>{"use strict";Object.defineProperty(Pp,"__esModule",{value:!0});Pp.Collector=void 0;var xae=require("stream"),R0=class extends xae.Writable{constructor(){super(...arguments),this.bufferedBytes=[]}_write(t,r,n){this.bufferedBytes.push(t),n()}};Pp.Collector=R0});var XO=m(Dp=>{"use strict";Object.defineProperty(Dp,"__esModule",{value:!0});Dp.streamCollector=void 0;var Iae=QO(),Rae=e=>new Promise((t,r)=>{let n=new Iae.Collector;e.pipe(n),e.on("error",i=>{n.end(),r(i)}),n.on("error",r),n.on("finish",function(){let i=new Uint8Array(Buffer.concat(this.bufferedBytes));t(i)})});Dp.streamCollector=Rae});var Tc=m(Ac=>{"use strict";Object.defineProperty(Ac,"__esModule",{value:!0});var N0=$();N0.__exportStar(JO(),Ac);N0.__exportStar(YO(),Ac);N0.__exportStar(XO(),Ac)});var Cc=m($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});$s.toBase64=$s.fromBase64=void 0;var ZO=wp(),Nae=/^[A-Za-z0-9+/]*={0,2}$/;function Pae(e){if(e.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!Nae.exec(e))throw new TypeError("Invalid base64 string.");let t=(0,ZO.fromString)(e,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}$s.fromBase64=Pae;function Dae(e){return(0,ZO.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString("base64")}$s.toBase64=Dae});var tL=m(Op=>{"use strict";Object.defineProperty(Op,"__esModule",{value:!0});Op.calculateBodyLength=void 0;var eL=require("fs"),Oae=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,eL.lstatSync)(e.path).size;if(typeof e.fd=="number")return(0,eL.fstatSync)(e.fd).size;throw new Error(`Body Length computation failed for ${e}`)};Op.calculateBodyLength=Oae});var xc=m(P0=>{"use strict";Object.defineProperty(P0,"__esModule",{value:!0});var Lae=$();Lae.__exportStar(tL(),P0)});var rL=m((Lp,D0)=>{"use strict";Object.defineProperty(Lp,"__esModule",{value:!0});Lp.isCrtAvailable=void 0;var qae=()=>{try{return typeof require=="function"&&typeof D0<"u"&&D0.require&&require("aws-crt")?["md/crt-avail"]:null}catch{return null}};Lp.isCrtAvailable=qae});var Ic=m(Gr=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});Gr.defaultUserAgent=Gr.UA_APP_ID_INI_NAME=Gr.UA_APP_ID_ENV_NAME=void 0;var Mae=kr(),nL=require("os"),O0=require("process"),zae=rL();Gr.UA_APP_ID_ENV_NAME="AWS_SDK_UA_APP_ID";Gr.UA_APP_ID_INI_NAME="sdk-ua-app-id";var jae=({serviceId:e,clientVersion:t})=>{let r=[["aws-sdk-js",t],[`os/${(0,nL.platform)()}`,(0,nL.release)()],["lang/js"],["md/nodejs",`${O0.versions.node}`]],n=(0,zae.isCrtAvailable)();n&&r.push(n),e&&r.push([`api/${e}`,t]),O0.env.AWS_EXECUTION_ENV&&r.push([`exec-env/${O0.env.AWS_EXECUTION_ENV}`]);let i=(0,Mae.loadConfig)({environmentVariableSelector:a=>a[Gr.UA_APP_ID_ENV_NAME],configFileSelector:a=>a[Gr.UA_APP_ID_INI_NAME],default:void 0})(),s;return async()=>{if(!s){let a=await i;s=a?[...r,[`app/${a}`]]:[...r]}return s}};Gr.defaultUserAgent=jae});var Rc=m(Vs=>{"use strict";Object.defineProperty(Vs,"__esModule",{value:!0});Vs.toUtf8=Vs.fromUtf8=void 0;var iL=wp(),kae=e=>{let t=(0,iL.fromString)(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)};Vs.fromUtf8=kae;var Fae=e=>(0,iL.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString("utf8");Vs.toUtf8=Fae});var sL=m(qp=>{"use strict";Object.defineProperty(qp,"__esModule",{value:!0});qp.defaultRegionInfoProvider=void 0;var Uae=Rt(),Bae={"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"}},Gae={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"]}]}},$ae=async(e,t)=>(0,Uae.getRegionInfo)(e,y(o({},t),{signingService:"awsssoportal",regionHash:Bae,partitionHash:Gae}));qp.defaultRegionInfoProvider=$ae});var oL=m(Mp=>{"use strict";Object.defineProperty(Mp,"__esModule",{value:!0});Mp.getRuntimeConfig=void 0;var Vae=si(),Kae=sL(),Hae=e=>{var t,r,n,i,s;return{apiVersion:"2019-06-10",disableHostPrefix:(t=e==null?void 0:e.disableHostPrefix)!==null&&t!==void 0?t:!1,logger:(r=e==null?void 0:e.logger)!==null&&r!==void 0?r:{},regionInfoProvider:(n=e==null?void 0:e.regionInfoProvider)!==null&&n!==void 0?n:Kae.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:Vae.parseUrl}};Mp.getRuntimeConfig=Hae});var jp=m(zp=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0});zp.httpRequest=void 0;var L0=Ee(),Wae=require("buffer"),Jae=require("http");function Yae(e){return new Promise((t,r)=>{var n;let i=(0,Jae.request)(y(o({method:"GET"},e),{hostname:(n=e.hostname)===null||n===void 0?void 0:n.replace(/^\[(.+)\]$/,"$1")}));i.on("error",s=>{r(Object.assign(new L0.ProviderError("Unable to connect to instance metadata service"),s)),i.destroy()}),i.on("timeout",()=>{r(new L0.ProviderError("TimeoutError from instance metadata service")),i.destroy()}),i.on("response",s=>{let{statusCode:a=400}=s;(a<200||300<=a)&&(r(Object.assign(new L0.ProviderError("Error response received from instance metadata service"),{statusCode:a})),i.destroy());let c=[];s.on("data",l=>{c.push(l)}),s.on("end",()=>{t(Wae.Buffer.concat(c)),i.destroy()})}),i.end()})}zp.httpRequest=Yae});var q0=m(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});Ks.fromImdsCredentials=Ks.isImdsCredentials=void 0;var Qae=e=>Boolean(e)&&typeof e=="object"&&typeof e.AccessKeyId=="string"&&typeof e.SecretAccessKey=="string"&&typeof e.Token=="string"&&typeof e.Expiration=="string";Ks.isImdsCredentials=Qae;var Xae=e=>({accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:new Date(e.Expiration)});Ks.fromImdsCredentials=Xae});var kp=m($r=>{"use strict";Object.defineProperty($r,"__esModule",{value:!0});$r.providerConfigFromInit=$r.DEFAULT_MAX_RETRIES=$r.DEFAULT_TIMEOUT=void 0;$r.DEFAULT_TIMEOUT=1e3;$r.DEFAULT_MAX_RETRIES=0;var Zae=({maxRetries:e=$r.DEFAULT_MAX_RETRIES,timeout:t=$r.DEFAULT_TIMEOUT})=>({maxRetries:e,timeout:t});$r.providerConfigFromInit=Zae});var M0=m(Fp=>{"use strict";Object.defineProperty(Fp,"__esModule",{value:!0});Fp.retry=void 0;var ece=(e,t)=>{let r=e();for(let n=0;n<t;n++)r=r.catch(e);return r};Fp.retry=ece});var cL=m(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.fromContainerMetadata=it.ENV_CMDS_AUTH_TOKEN=it.ENV_CMDS_RELATIVE_URI=it.ENV_CMDS_FULL_URI=void 0;var Up=Ee(),tce=require("url"),rce=jp(),aL=q0(),nce=kp(),ice=M0();it.ENV_CMDS_FULL_URI="AWS_CONTAINER_CREDENTIALS_FULL_URI";it.ENV_CMDS_RELATIVE_URI="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";it.ENV_CMDS_AUTH_TOKEN="AWS_CONTAINER_AUTHORIZATION_TOKEN";var sce=(e={})=>{let{timeout:t,maxRetries:r}=(0,nce.providerConfigFromInit)(e);return()=>(0,ice.retry)(async()=>{let n=await dce(),i=JSON.parse(await oce(t,n));if(!(0,aL.isImdsCredentials)(i))throw new Up.CredentialsProviderError("Invalid response received from instance metadata service.");return(0,aL.fromImdsCredentials)(i)},r)};it.fromContainerMetadata=sce;var oce=async(e,t)=>(process.env[it.ENV_CMDS_AUTH_TOKEN]&&(t.headers=y(o({},t.headers),{Authorization:process.env[it.ENV_CMDS_AUTH_TOKEN]})),(await(0,rce.httpRequest)(y(o({},t),{timeout:e}))).toString()),ace="169.254.170.2",cce={localhost:!0,"127.0.0.1":!0},lce={"http:":!0,"https:":!0},dce=async()=>{if(process.env[it.ENV_CMDS_RELATIVE_URI])return{hostname:ace,path:process.env[it.ENV_CMDS_RELATIVE_URI]};if(process.env[it.ENV_CMDS_FULL_URI]){let e=(0,tce.parse)(process.env[it.ENV_CMDS_FULL_URI]);if(!e.hostname||!(e.hostname in cce))throw new Up.CredentialsProviderError(`${e.hostname} is not a valid container metadata service hostname`,!1);if(!e.protocol||!(e.protocol in lce))throw new Up.CredentialsProviderError(`${e.protocol} is not a valid container metadata service protocol`,!1);return y(o({},e),{port:e.port?parseInt(e.port,10):void 0})}throw new Up.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${it.ENV_CMDS_RELATIVE_URI} or ${it.ENV_CMDS_FULL_URI} environment variable is set`,!1)}});var lL=m(Nc=>{"use strict";Object.defineProperty(Nc,"__esModule",{value:!0});Nc.Endpoint=void 0;var uce;(function(e){e.IPv4="http://169.254.169.254",e.IPv6="http://[fd00:ec2::254]"})(uce=Nc.Endpoint||(Nc.Endpoint={}))});var dL=m(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.ENDPOINT_CONFIG_OPTIONS=Vr.CONFIG_ENDPOINT_NAME=Vr.ENV_ENDPOINT_NAME=void 0;Vr.ENV_ENDPOINT_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT";Vr.CONFIG_ENDPOINT_NAME="ec2_metadata_service_endpoint";Vr.ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>e[Vr.ENV_ENDPOINT_NAME],configFileSelector:e=>e[Vr.CONFIG_ENDPOINT_NAME],default:void 0}});var z0=m(Pc=>{"use strict";Object.defineProperty(Pc,"__esModule",{value:!0});Pc.EndpointMode=void 0;var fce;(function(e){e.IPv4="IPv4",e.IPv6="IPv6"})(fce=Pc.EndpointMode||(Pc.EndpointMode={}))});var uL=m(Kr=>{"use strict";Object.defineProperty(Kr,"__esModule",{value:!0});Kr.ENDPOINT_MODE_CONFIG_OPTIONS=Kr.CONFIG_ENDPOINT_MODE_NAME=Kr.ENV_ENDPOINT_MODE_NAME=void 0;var mce=z0();Kr.ENV_ENDPOINT_MODE_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";Kr.CONFIG_ENDPOINT_MODE_NAME="ec2_metadata_service_endpoint_mode";Kr.ENDPOINT_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[Kr.ENV_ENDPOINT_MODE_NAME],configFileSelector:e=>e[Kr.CONFIG_ENDPOINT_MODE_NAME],default:mce.EndpointMode.IPv4}});var k0=m(Bp=>{"use strict";Object.defineProperty(Bp,"__esModule",{value:!0});Bp.getInstanceMetadataEndpoint=void 0;var mL=kr(),pce=si(),fL=lL(),_ce=dL(),j0=z0(),hce=uL(),yce=async()=>(0,pce.parseUrl)(await gce()||await vce());Bp.getInstanceMetadataEndpoint=yce;var gce=async()=>(0,mL.loadConfig)(_ce.ENDPOINT_CONFIG_OPTIONS)(),vce=async()=>{let e=await(0,mL.loadConfig)(hce.ENDPOINT_MODE_CONFIG_OPTIONS)();switch(e){case j0.EndpointMode.IPv4:return fL.Endpoint.IPv4;case j0.EndpointMode.IPv6:return fL.Endpoint.IPv6;default:throw new Error(`Unsupported endpoint mode: ${e}. Select from ${Object.values(j0.EndpointMode)}`)}}});var pL=m(Gp=>{"use strict";Object.defineProperty(Gp,"__esModule",{value:!0});Gp.getExtendedInstanceMetadataCredentials=void 0;var Sce=5*60,wce=5*60,Ece="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",bce=(e,t)=>{var r;let n=Sce+Math.floor(Math.random()*wce),i=new Date(Date.now()+n*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: "+Ece);let s=(r=e.originalExpiration)!==null&&r!==void 0?r:e.expiration;return y(o(o({},e),s?{originalExpiration:s}:{}),{expiration:i})};Gp.getExtendedInstanceMetadataCredentials=bce});var hL=m($p=>{"use strict";Object.defineProperty($p,"__esModule",{value:!0});$p.staticStabilityProvider=void 0;var _L=pL(),Ace=(e,t={})=>{let r=(t==null?void 0:t.logger)||console,n;return async()=>{let i;try{i=await e(),i.expiration&&i.expiration.getTime()<Date.now()&&(i=(0,_L.getExtendedInstanceMetadataCredentials)(i,r))}catch(s){if(n)r.warn("Credential renew failed: ",s),i=(0,_L.getExtendedInstanceMetadataCredentials)(n,r);else throw s}return n=i,i}};$p.staticStabilityProvider=Ace});var SL=m(Vp=>{"use strict";Object.defineProperty(Vp,"__esModule",{value:!0});Vp.fromInstanceMetadata=void 0;var Tce=Ee(),F0=jp(),yL=q0(),Cce=kp(),gL=M0(),xce=k0(),Ice=hL(),vL="/latest/meta-data/iam/security-credentials/",Rce="/latest/api/token",Nce=(e={})=>(0,Ice.staticStabilityProvider)(Pce(e),{logger:e.logger});Vp.fromInstanceMetadata=Nce;var Pce=e=>{let t=!1,{timeout:r,maxRetries:n}=(0,Cce.providerConfigFromInit)(e),i=async(s,a)=>{let c=(await(0,gL.retry)(async()=>{let l;try{l=await Oce(a)}catch(u){throw u.statusCode===401&&(t=!1),u}return l},s)).trim();return(0,gL.retry)(async()=>{let l;try{l=await Lce(c,a)}catch(u){throw u.statusCode===401&&(t=!1),u}return l},s)};return async()=>{let s=await(0,xce.getInstanceMetadataEndpoint)();if(t)return i(n,y(o({},s),{timeout:r}));{let a;try{a=(await Dce(y(o({},s),{timeout:r}))).toString()}catch(c){if((c==null?void 0:c.statusCode)===400)throw Object.assign(c,{message:"EC2 Metadata token request returned error"});return(c.message==="TimeoutError"||[403,404,405].includes(c.statusCode))&&(t=!0),i(n,y(o({},s),{timeout:r}))}return i(n,y(o({},s),{headers:{"x-aws-ec2-metadata-token":a},timeout:r}))}}},Dce=async e=>(0,F0.httpRequest)(y(o({},e),{path:Rce,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}})),Oce=async e=>(await(0,F0.httpRequest)(y(o({},e),{path:vL}))).toString(),Lce=async(e,t)=>{let r=JSON.parse((await(0,F0.httpRequest)(y(o({},t),{path:vL+e}))).toString());if(!(0,yL.isImdsCredentials)(r))throw new Tce.CredentialsProviderError("Invalid response received from instance metadata service.");return(0,yL.fromImdsCredentials)(r)}});var EL=m(wL=>{"use strict";Object.defineProperty(wL,"__esModule",{value:!0})});var bL=m(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.getInstanceMetadataEndpoint=Hr.httpRequest=void 0;var Kp=$();Kp.__exportStar(cL(),Hr);Kp.__exportStar(SL(),Hr);Kp.__exportStar(kp(),Hr);Kp.__exportStar(EL(),Hr);var qce=jp();Object.defineProperty(Hr,"httpRequest",{enumerable:!0,get:function(){return qce.httpRequest}});var Mce=k0();Object.defineProperty(Hr,"getInstanceMetadataEndpoint",{enumerable:!0,get:function(){return Mce.getInstanceMetadataEndpoint}})});var AL=m(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt.IMDS_REGION_PATH=Dt.DEFAULTS_MODE_OPTIONS=Dt.ENV_IMDS_DISABLED=Dt.AWS_DEFAULT_REGION_ENV=Dt.AWS_REGION_ENV=Dt.AWS_EXECUTION_ENV=void 0;Dt.AWS_EXECUTION_ENV="AWS_EXECUTION_ENV";Dt.AWS_REGION_ENV="AWS_REGION";Dt.AWS_DEFAULT_REGION_ENV="AWS_DEFAULT_REGION";Dt.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";Dt.DEFAULTS_MODE_OPTIONS=["in-region","cross-region","mobile","standard","legacy"];Dt.IMDS_REGION_PATH="/latest/meta-data/placement/region"});var TL=m(Hp=>{"use strict";Object.defineProperty(Hp,"__esModule",{value:!0});Hp.NODE_DEFAULTS_MODE_CONFIG_OPTIONS=void 0;var zce="AWS_DEFAULTS_MODE",jce="defaults_mode";Hp.NODE_DEFAULTS_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[zce],configFileSelector:e=>e[jce],default:"legacy"}});var IL=m(Wp=>{"use strict";Object.defineProperty(Wp,"__esModule",{value:!0});Wp.resolveDefaultsModeConfig=void 0;var kce=Rt(),CL=bL(),xL=kr(),Fce=Ee(),oi=AL(),Uce=TL(),Bce=({region:e=(0,xL.loadConfig)(kce.NODE_REGION_CONFIG_OPTIONS),defaultsMode:t=(0,xL.loadConfig)(Uce.NODE_DEFAULTS_MODE_CONFIG_OPTIONS)}={})=>(0,Fce.memoize)(async()=>{let r=typeof t=="function"?await t():t;switch(r==null?void 0:r.toLowerCase()){case"auto":return Gce(e);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(r==null?void 0:r.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${oi.DEFAULTS_MODE_OPTIONS.join(", ")}, got ${r}`)}});Wp.resolveDefaultsModeConfig=Bce;var Gce=async e=>{if(e){let t=typeof e=="function"?await e():e,r=await $ce();return r?t===r?"in-region":"cross-region":"standard"}return"standard"},$ce=async()=>{var e;if(process.env[oi.AWS_EXECUTION_ENV]&&(process.env[oi.AWS_REGION_ENV]||process.env[oi.AWS_DEFAULT_REGION_ENV]))return(e=process.env[oi.AWS_REGION_ENV])!==null&&e!==void 0?e:process.env[oi.AWS_DEFAULT_REGION_ENV];if(!process.env[oi.ENV_IMDS_DISABLED])try{let t=await(0,CL.getInstanceMetadataEndpoint)();return(await(0,CL.httpRequest)(y(o({},t),{path:oi.IMDS_REGION_PATH}))).toString()}catch{}}});var Dc=m(U0=>{"use strict";Object.defineProperty(U0,"__esModule",{value:!0});var Vce=$();Vce.__exportStar(IL(),U0)});var DL=m(Yp=>{"use strict";Object.defineProperty(Yp,"__esModule",{value:!0});Yp.getRuntimeConfig=void 0;var Kce=$(),Hce=Kce.__importDefault(FO()),Jp=Rt(),Wce=bc(),B0=hn(),Oc=kr(),RL=Tc(),NL=Cc(),Jce=xc(),Yce=Ic(),PL=Rc(),Qce=oL(),Xce=P(),Zce=Dc(),ele=e=>{var t,r,n,i,s,a,c,l,u,f,_,h,v,S;let g=(0,Zce.resolveDefaultsModeConfig)(e),I=()=>g().then(Xce.loadConfigsForDefaultMode),O=(0,Qce.getRuntimeConfig)(e);return y(o(o({},O),e),{runtime:"node",defaultsMode:g,base64Decoder:(t=e==null?void 0:e.base64Decoder)!==null&&t!==void 0?t:NL.fromBase64,base64Encoder:(r=e==null?void 0:e.base64Encoder)!==null&&r!==void 0?r:NL.toBase64,bodyLengthChecker:(n=e==null?void 0:e.bodyLengthChecker)!==null&&n!==void 0?n:Jce.calculateBodyLength,defaultUserAgentProvider:(i=e==null?void 0:e.defaultUserAgentProvider)!==null&&i!==void 0?i:(0,Yce.defaultUserAgent)({serviceId:O.serviceId,clientVersion:Hce.default.version}),maxAttempts:(s=e==null?void 0:e.maxAttempts)!==null&&s!==void 0?s:(0,Oc.loadConfig)(B0.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(a=e==null?void 0:e.region)!==null&&a!==void 0?a:(0,Oc.loadConfig)(Jp.NODE_REGION_CONFIG_OPTIONS,Jp.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(c=e==null?void 0:e.requestHandler)!==null&&c!==void 0?c:new RL.NodeHttpHandler(I),retryMode:(l=e==null?void 0:e.retryMode)!==null&&l!==void 0?l:(0,Oc.loadConfig)(y(o({},B0.NODE_RETRY_MODE_CONFIG_OPTIONS),{default:async()=>(await I()).retryMode||B0.DEFAULT_RETRY_MODE})),sha256:(u=e==null?void 0:e.sha256)!==null&&u!==void 0?u:Wce.Hash.bind(null,"sha256"),streamCollector:(f=e==null?void 0:e.streamCollector)!==null&&f!==void 0?f:RL.streamCollector,useDualstackEndpoint:(_=e==null?void 0:e.useDualstackEndpoint)!==null&&_!==void 0?_:(0,Oc.loadConfig)(Jp.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(h=e==null?void 0:e.useFipsEndpoint)!==null&&h!==void 0?h:(0,Oc.loadConfig)(Jp.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:(v=e==null?void 0:e.utf8Decoder)!==null&&v!==void 0?v:PL.fromUtf8,utf8Encoder:(S=e==null?void 0:e.utf8Encoder)!==null&&S!==void 0?S:PL.toUtf8})};Yp.getRuntimeConfig=ele});var Lc=m(Qp=>{"use strict";Object.defineProperty(Qp,"__esModule",{value:!0});Qp.SSOClient=void 0;var OL=Rt(),tle=ja(),LL=Ua(),rle=Ba(),qL=hn(),ML=Ya(),nle=P(),ile=DL(),G0=class extends nle.Client{constructor(t){let r=(0,ile.getRuntimeConfig)(t),n=(0,OL.resolveRegionConfig)(r),i=(0,OL.resolveEndpointsConfig)(n),s=(0,qL.resolveRetryConfig)(i),a=(0,LL.resolveHostHeaderConfig)(s),c=(0,ML.resolveUserAgentConfig)(a);super(c),this.config=c,this.middlewareStack.use((0,qL.getRetryPlugin)(this.config)),this.middlewareStack.use((0,tle.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,LL.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,rle.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,ML.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};Qp.SSOClient=G0});var Zp=m(Xp=>{"use strict";Object.defineProperty(Xp,"__esModule",{value:!0});Xp.SSO=void 0;var sle=p0(),ole=yp(),ale=vp(),cle=g0(),lle=Lc(),$0=class extends lle.SSOClient{getRoleCredentials(t,r,n){let i=new sle.GetRoleCredentialsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}listAccountRoles(t,r,n){let i=new ole.ListAccountRolesCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}listAccounts(t,r,n){let i=new ale.ListAccountsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}logout(t,r,n){let i=new cle.LogoutCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}};Xp.SSO=$0});var zL=m(Hs=>{"use strict";Object.defineProperty(Hs,"__esModule",{value:!0});var e_=$();e_.__exportStar(p0(),Hs);e_.__exportStar(yp(),Hs);e_.__exportStar(vp(),Hs);e_.__exportStar(g0(),Hs)});var jL=m(V0=>{"use strict";Object.defineProperty(V0,"__esModule",{value:!0});var dle=$();dle.__exportStar(Ki(),V0)});var FL=m(kL=>{"use strict";Object.defineProperty(kL,"__esModule",{value:!0})});var UL=m(t_=>{"use strict";Object.defineProperty(t_,"__esModule",{value:!0});t_.paginateListAccountRoles=void 0;var ule=yp(),fle=Zp(),mle=Lc(),ple=async(e,t,...r)=>await e.send(new ule.ListAccountRolesCommand(t),...r),_le=async(e,t,...r)=>await e.listAccountRoles(t,...r);async function*hle(e,t,...r){let n=e.startingToken||void 0,i=!0,s;for(;i;){if(t.nextToken=n,t.maxResults=e.pageSize,e.client instanceof fle.SSO)s=await _le(e.client,t,...r);else if(e.client instanceof mle.SSOClient)s=await ple(e.client,t,...r);else throw new Error("Invalid client, expected SSO | SSOClient");yield s;let a=n;n=s.nextToken,i=!!(n&&(!e.stopOnSameToken||n!==a))}return void 0}t_.paginateListAccountRoles=hle});var BL=m(r_=>{"use strict";Object.defineProperty(r_,"__esModule",{value:!0});r_.paginateListAccounts=void 0;var yle=vp(),gle=Zp(),vle=Lc(),Sle=async(e,t,...r)=>await e.send(new yle.ListAccountsCommand(t),...r),wle=async(e,t,...r)=>await e.listAccounts(t,...r);async function*Ele(e,t,...r){let n=e.startingToken||void 0,i=!0,s;for(;i;){if(t.nextToken=n,t.maxResults=e.pageSize,e.client instanceof gle.SSO)s=await wle(e.client,t,...r);else if(e.client instanceof vle.SSOClient)s=await Sle(e.client,t,...r);else throw new Error("Invalid client, expected SSO | SSOClient");yield s;let a=n;n=s.nextToken,i=!!(n&&(!e.stopOnSameToken||n!==a))}return void 0}r_.paginateListAccounts=Ele});var GL=m(qc=>{"use strict";Object.defineProperty(qc,"__esModule",{value:!0});var K0=$();K0.__exportStar(FL(),qc);K0.__exportStar(UL(),qc);K0.__exportStar(BL(),qc)});var $L=m(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.SSOServiceException=void 0;var Mc=$();Mc.__exportStar(Zp(),wn);Mc.__exportStar(Lc(),wn);Mc.__exportStar(zL(),wn);Mc.__exportStar(jL(),wn);Mc.__exportStar(GL(),wn);var ble=sp();Object.defineProperty(wn,"SSOServiceException",{enumerable:!0,get:function(){return ble.SSOServiceException}})});var KL=m(s_=>{"use strict";Object.defineProperty(s_,"__esModule",{value:!0});s_.resolveSSOCredentials=void 0;var VL=$L(),n_=Ee(),Ale=mc(),Tle=15*60*1e3,i_=!1,Cle=async({ssoStartUrl:e,ssoAccountId:t,ssoRegion:r,ssoRoleName:n,ssoClient:i})=>{let s,a="To refresh this SSO session run aws sso login with the corresponding profile.";try{s=await(0,Ale.getSSOTokenFromFile)(e)}catch{throw new n_.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${a}`,i_)}if(new Date(s.expiresAt).getTime()-Date.now()<=Tle)throw new n_.CredentialsProviderError(`The SSO session associated with this profile has expired. ${a}`,i_);let{accessToken:c}=s,l=i||new VL.SSOClient({region:r}),u;try{u=await l.send(new VL.GetRoleCredentialsCommand({accountId:t,roleName:n,accessToken:c}))}catch(S){throw n_.CredentialsProviderError.from(S,i_)}let{roleCredentials:{accessKeyId:f,secretAccessKey:_,sessionToken:h,expiration:v}={}}=u;if(!f||!_||!h||!v)throw new n_.CredentialsProviderError("SSO returns an invalid temporary credential.",i_);return{accessKeyId:f,secretAccessKey:_,sessionToken:h,expiration:new Date(v)}};s_.resolveSSOCredentials=Cle});var H0=m(o_=>{"use strict";Object.defineProperty(o_,"__esModule",{value:!0});o_.validateSsoProfile=void 0;var xle=Ee(),Ile=e=>{let{sso_start_url:t,sso_account_id:r,sso_region:n,sso_role_name:i}=e;if(!t||!r||!n||!i)throw new xle.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
+ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,!1);return e};o_.validateSsoProfile=Ile});var YL=m(a_=>{"use strict";Object.defineProperty(a_,"__esModule",{value:!0});a_.fromSSO=void 0;var HL=Ee(),WL=mc(),Rle=u0(),JL=KL(),Nle=H0(),Ple=(e={})=>async()=>{let{ssoStartUrl:t,ssoAccountId:r,ssoRegion:n,ssoRoleName:i,ssoClient:s}=e;if(!t&&!r&&!n&&!i){let a=await(0,WL.parseKnownFiles)(e),c=(0,WL.getProfileName)(e),l=a[c];if(!(0,Rle.isSsoProfile)(l))throw new HL.CredentialsProviderError(`Profile ${c} is not configured with SSO credentials.`);let{sso_start_url:u,sso_account_id:f,sso_region:_,sso_role_name:h}=(0,Nle.validateSsoProfile)(l);return(0,JL.resolveSSOCredentials)({ssoStartUrl:u,ssoAccountId:f,ssoRegion:_,ssoRoleName:h,ssoClient:s})}else{if(!t||!r||!n||!i)throw new HL.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"');return(0,JL.resolveSSOCredentials)({ssoStartUrl:t,ssoAccountId:r,ssoRegion:n,ssoRoleName:i,ssoClient:s})}};a_.fromSSO=Ple});var XL=m(QL=>{"use strict";Object.defineProperty(QL,"__esModule",{value:!0})});var W0=m(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});var c_=$();c_.__exportStar(YL(),Ws);c_.__exportStar(u0(),Ws);c_.__exportStar(XL(),Ws);c_.__exportStar(H0(),Ws)});var eq=m(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});Js.resolveSsoCredentials=Js.isSsoProfile=void 0;var ZL=W0(),Dle=W0();Object.defineProperty(Js,"isSsoProfile",{enumerable:!0,get:function(){return Dle.isSsoProfile}});var Ole=e=>{let{sso_start_url:t,sso_account_id:r,sso_region:n,sso_role_name:i}=(0,ZL.validateSsoProfile)(e);return(0,ZL.fromSSO)({ssoStartUrl:t,ssoAccountId:r,ssoRegion:n,ssoRoleName:i})()};Js.resolveSsoCredentials=Ole});var tq=m(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});Ys.resolveStaticCredentials=Ys.isStaticCredsProfile=void 0;var Lle=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;Ys.isStaticCredsProfile=Lle;var qle=e=>Promise.resolve({accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token});Ys.resolveStaticCredentials=qle});var J0=m(l_=>{"use strict";Object.defineProperty(l_,"__esModule",{value:!0});l_.fromWebToken=void 0;var Mle=Ee(),zle=e=>()=>{let{roleArn:t,roleSessionName:r,webIdentityToken:n,providerId:i,policyArns:s,policy:a,durationSeconds:c,roleAssumerWithWebIdentity:l}=e;if(!l)throw new Mle.CredentialsProviderError(`Role Arn '${t}' needs to be assumed with web identity, but no role assumption callback was provided.`,!1);return l({RoleArn:t,RoleSessionName:r??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:n,ProviderId:i,PolicyArns:s,Policy:a,DurationSeconds:c})};l_.fromWebToken=zle});var rq=m(d_=>{"use strict";Object.defineProperty(d_,"__esModule",{value:!0});d_.fromTokenFile=void 0;var jle=Ee(),kle=require("fs"),Fle=J0(),Ule="AWS_WEB_IDENTITY_TOKEN_FILE",Ble="AWS_ROLE_ARN",Gle="AWS_ROLE_SESSION_NAME",$le=(e={})=>async()=>Vle(e);d_.fromTokenFile=$le;var Vle=e=>{var t,r,n;let i=(t=e==null?void 0:e.webIdentityTokenFile)!==null&&t!==void 0?t:process.env[Ule],s=(r=e==null?void 0:e.roleArn)!==null&&r!==void 0?r:process.env[Ble],a=(n=e==null?void 0:e.roleSessionName)!==null&&n!==void 0?n:process.env[Gle];if(!i||!s)throw new jle.CredentialsProviderError("Web identity configuration not specified");return(0,Fle.fromWebToken)(y(o({},e),{webIdentityToken:(0,kle.readFileSync)(i,{encoding:"ascii"}),roleArn:s,roleSessionName:a}))()}});var Y0=m(u_=>{"use strict";Object.defineProperty(u_,"__esModule",{value:!0});var nq=$();nq.__exportStar(rq(),u_);nq.__exportStar(J0(),u_)});var iq=m(Qs=>{"use strict";Object.defineProperty(Qs,"__esModule",{value:!0});Qs.resolveWebIdentityCredentials=Qs.isWebIdentityProfile=void 0;var Kle=Y0(),Hle=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;Qs.isWebIdentityProfile=Hle;var Wle=async(e,t)=>(0,Kle.fromTokenFile)({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:t.roleAssumerWithWebIdentity})();Qs.resolveWebIdentityCredentials=Wle});var d0=m(m_=>{"use strict";Object.defineProperty(m_,"__esModule",{value:!0});m_.resolveProfileData=void 0;var Jle=Ee(),sq=NO(),oq=eq(),f_=tq(),aq=iq(),Yle=async(e,t,r,n={})=>{let i=t[e];if(Object.keys(n).length>0&&(0,f_.isStaticCredsProfile)(i))return(0,f_.resolveStaticCredentials)(i);if((0,sq.isAssumeRoleProfile)(i))return(0,sq.resolveAssumeRoleCredentials)(e,t,r,n);if((0,f_.isStaticCredsProfile)(i))return(0,f_.resolveStaticCredentials)(i);if((0,aq.isWebIdentityProfile)(i))return(0,aq.resolveWebIdentityCredentials)(i,r);if((0,oq.isSsoProfile)(i))return(0,oq.resolveSsoCredentials)(i);throw new Jle.CredentialsProviderError(`Profile ${e} could not be found or parsed in shared credentials file.`)};m_.resolveProfileData=Yle});var lq=m(p_=>{"use strict";Object.defineProperty(p_,"__esModule",{value:!0});p_.fromIni=void 0;var cq=mc(),Qle=d0(),Xle=(e={})=>async()=>{let t=await(0,cq.parseKnownFiles)(e);return(0,Qle.resolveProfileData)((0,cq.getProfileName)(e),t,e)};p_.fromIni=Xle});var dq=m(Q0=>{"use strict";Object.defineProperty(Q0,"__esModule",{value:!0});var Zle=$();Zle.__exportStar(lq(),Q0)});var zc=m(__=>{"use strict";Object.defineProperty(__,"__esModule",{value:!0});__.getHomeDir=void 0;var ede=require("os"),tde=require("path"),rde=()=>{let{HOME:e,USERPROFILE:t,HOMEPATH:r,HOMEDRIVE:n=`C:${tde.sep}`}=process.env;return e||t||(r?`${n}${r}`:(0,ede.homedir)())};__.getHomeDir=rde});var uq=m(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr.getProfileName=Wr.DEFAULT_PROFILE=Wr.ENV_PROFILE=void 0;Wr.ENV_PROFILE="AWS_PROFILE";Wr.DEFAULT_PROFILE="default";var nde=e=>e.profile||process.env[Wr.ENV_PROFILE]||Wr.DEFAULT_PROFILE;Wr.getProfileName=nde});var X0=m(h_=>{"use strict";Object.defineProperty(h_,"__esModule",{value:!0});h_.getSSOTokenFilepath=void 0;var ide=require("crypto"),sde=require("path"),ode=zc(),ade=e=>{let r=(0,ide.createHash)("sha1").update(e).digest("hex");return(0,sde.join)((0,ode.getHomeDir)(),".aws","sso","cache",`${r}.json`)};h_.getSSOTokenFilepath=ade});var fq=m(y_=>{"use strict";Object.defineProperty(y_,"__esModule",{value:!0});y_.getSSOTokenFromFile=void 0;var cde=require("fs"),lde=X0(),{readFile:dde}=cde.promises,ude=async e=>{let t=(0,lde.getSSOTokenFilepath)(e),r=await dde(t,"utf8");return JSON.parse(r)};y_.getSSOTokenFromFile=ude});var mq=m(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});Wi.getConfigFilepath=Wi.ENV_CONFIG_PATH=void 0;var fde=require("path"),mde=zc();Wi.ENV_CONFIG_PATH="AWS_CONFIG_FILE";var pde=()=>process.env[Wi.ENV_CONFIG_PATH]||(0,fde.join)((0,mde.getHomeDir)(),".aws","config");Wi.getConfigFilepath=pde});var pq=m(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});Ji.getCredentialsFilepath=Ji.ENV_CREDENTIALS_PATH=void 0;var _de=require("path"),hde=zc();Ji.ENV_CREDENTIALS_PATH="AWS_SHARED_CREDENTIALS_FILE";var yde=()=>process.env[Ji.ENV_CREDENTIALS_PATH]||(0,_de.join)((0,hde.getHomeDir)(),".aws","credentials");Ji.getCredentialsFilepath=yde});var hq=m(g_=>{"use strict";Object.defineProperty(g_,"__esModule",{value:!0});g_.getProfileData=void 0;var _q=/^profile\s(["'])?([^\1]+)\1$/,gde=e=>Object.entries(e).filter(([t])=>_q.test(t)).reduce((t,[r,n])=>y(o({},t),{[_q.exec(r)[2]]:n}),o({},e.default&&{default:e.default}));g_.getProfileData=gde});var yq=m(v_=>{"use strict";Object.defineProperty(v_,"__esModule",{value:!0});v_.parseIni=void 0;var vde=["__proto__","profile __proto__"],Sde=e=>{let t={},r;for(let n of e.split(/\r?\n/)){n=n.split(/(^|\s)[;#]/)[0];let i=n.match(/^\s*\[([^\[\]]+)]\s*$/);if(i){if(r=i[1],vde.includes(r))throw new Error(`Found invalid profile name "${r}"`)}else if(r){let s=n.match(/^\s*(.+?)\s*=\s*(.+?)\s*$/);s&&(t[r]=t[r]||{},t[r][s[1]]=s[2])}}return t};v_.parseIni=Sde});var gq=m(S_=>{"use strict";Object.defineProperty(S_,"__esModule",{value:!0});S_.slurpFile=void 0;var wde=require("fs"),{readFile:Ede}=wde.promises,Z0={},bde=e=>(Z0[e]||(Z0[e]=Ede(e,"utf8")),Z0[e]);S_.slurpFile=bde});var eb=m(w_=>{"use strict";Object.defineProperty(w_,"__esModule",{value:!0});w_.loadSharedConfigFiles=void 0;var Ade=mq(),Tde=pq(),Cde=hq(),vq=yq(),Sq=gq(),wq=()=>({}),xde=async(e={})=>{let{filepath:t=(0,Tde.getCredentialsFilepath)(),configFilepath:r=(0,Ade.getConfigFilepath)()}=e,n=await Promise.all([(0,Sq.slurpFile)(r).then(vq.parseIni).then(Cde.getProfileData).catch(wq),(0,Sq.slurpFile)(t).then(vq.parseIni).catch(wq)]);return{configFile:n[0],credentialsFile:n[1]}};w_.loadSharedConfigFiles=xde});var Eq=m(E_=>{"use strict";Object.defineProperty(E_,"__esModule",{value:!0});E_.parseKnownFiles=void 0;var Ide=eb(),Rde=async e=>{let t=await(0,Ide.loadSharedConfigFiles)(e);return o(o({},t.configFile),t.credentialsFile)};E_.parseKnownFiles=Rde});var Aq=m(bq=>{"use strict";Object.defineProperty(bq,"__esModule",{value:!0})});var Tq=m(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});var Yi=$();Yi.__exportStar(zc(),En);Yi.__exportStar(uq(),En);Yi.__exportStar(X0(),En);Yi.__exportStar(fq(),En);Yi.__exportStar(eb(),En);Yi.__exportStar(Eq(),En);Yi.__exportStar(Aq(),En)});var Cq=m(b_=>{"use strict";Object.defineProperty(b_,"__esModule",{value:!0});b_.getValidatedProcessCredentials=void 0;var Nde=(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 r=new Date;if(new Date(t.Expiration)<r)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)})};b_.getValidatedProcessCredentials=Nde});var xq=m(A_=>{"use strict";Object.defineProperty(A_,"__esModule",{value:!0});A_.resolveProcessCredentials=void 0;var tb=Ee(),Pde=require("child_process"),Dde=require("util"),Ode=Cq(),Lde=async(e,t)=>{let r=t[e];if(t[e]){let n=r.credential_process;if(n!==void 0){let i=(0,Dde.promisify)(Pde.exec);try{let{stdout:s}=await i(n),a;try{a=JSON.parse(s.trim())}catch{throw Error(`Profile ${e} credential_process returned invalid JSON.`)}return(0,Ode.getValidatedProcessCredentials)(e,a)}catch(s){throw new tb.CredentialsProviderError(s.message)}}else throw new tb.CredentialsProviderError(`Profile ${e} did not contain credential_process.`)}else throw new tb.CredentialsProviderError(`Profile ${e} could not be found in shared credentials file.`)};A_.resolveProcessCredentials=Lde});var Rq=m(T_=>{"use strict";Object.defineProperty(T_,"__esModule",{value:!0});T_.fromProcess=void 0;var Iq=Tq(),qde=xq(),Mde=(e={})=>async()=>{let t=await(0,Iq.parseKnownFiles)(e);return(0,qde.resolveProcessCredentials)((0,Iq.getProfileName)(e),t)};T_.fromProcess=Mde});var Nq=m(rb=>{"use strict";Object.defineProperty(rb,"__esModule",{value:!0});var zde=$();zde.__exportStar(Rq(),rb)});var jc=m(C_=>{"use strict";Object.defineProperty(C_,"__esModule",{value:!0});C_.getHomeDir=void 0;var jde=require("os"),kde=require("path"),Fde=()=>{let{HOME:e,USERPROFILE:t,HOMEPATH:r,HOMEDRIVE:n=`C:${kde.sep}`}=process.env;return e||t||(r?`${n}${r}`:(0,jde.homedir)())};C_.getHomeDir=Fde});var Pq=m(Jr=>{"use strict";Object.defineProperty(Jr,"__esModule",{value:!0});Jr.getProfileName=Jr.DEFAULT_PROFILE=Jr.ENV_PROFILE=void 0;Jr.ENV_PROFILE="AWS_PROFILE";Jr.DEFAULT_PROFILE="default";var Ude=e=>e.profile||process.env[Jr.ENV_PROFILE]||Jr.DEFAULT_PROFILE;Jr.getProfileName=Ude});var nb=m(x_=>{"use strict";Object.defineProperty(x_,"__esModule",{value:!0});x_.getSSOTokenFilepath=void 0;var Bde=require("crypto"),Gde=require("path"),$de=jc(),Vde=e=>{let r=(0,Bde.createHash)("sha1").update(e).digest("hex");return(0,Gde.join)((0,$de.getHomeDir)(),".aws","sso","cache",`${r}.json`)};x_.getSSOTokenFilepath=Vde});var Dq=m(I_=>{"use strict";Object.defineProperty(I_,"__esModule",{value:!0});I_.getSSOTokenFromFile=void 0;var Kde=require("fs"),Hde=nb(),{readFile:Wde}=Kde.promises,Jde=async e=>{let t=(0,Hde.getSSOTokenFilepath)(e),r=await Wde(t,"utf8");return JSON.parse(r)};I_.getSSOTokenFromFile=Jde});var Oq=m(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});Qi.getConfigFilepath=Qi.ENV_CONFIG_PATH=void 0;var Yde=require("path"),Qde=jc();Qi.ENV_CONFIG_PATH="AWS_CONFIG_FILE";var Xde=()=>process.env[Qi.ENV_CONFIG_PATH]||(0,Yde.join)((0,Qde.getHomeDir)(),".aws","config");Qi.getConfigFilepath=Xde});var Lq=m(Xi=>{"use strict";Object.defineProperty(Xi,"__esModule",{value:!0});Xi.getCredentialsFilepath=Xi.ENV_CREDENTIALS_PATH=void 0;var Zde=require("path"),eue=jc();Xi.ENV_CREDENTIALS_PATH="AWS_SHARED_CREDENTIALS_FILE";var tue=()=>process.env[Xi.ENV_CREDENTIALS_PATH]||(0,Zde.join)((0,eue.getHomeDir)(),".aws","credentials");Xi.getCredentialsFilepath=tue});var Mq=m(R_=>{"use strict";Object.defineProperty(R_,"__esModule",{value:!0});R_.getProfileData=void 0;var qq=/^profile\s(["'])?([^\1]+)\1$/,rue=e=>Object.entries(e).filter(([t])=>qq.test(t)).reduce((t,[r,n])=>y(o({},t),{[qq.exec(r)[2]]:n}),o({},e.default&&{default:e.default}));R_.getProfileData=rue});var zq=m(N_=>{"use strict";Object.defineProperty(N_,"__esModule",{value:!0});N_.parseIni=void 0;var nue=["__proto__","profile __proto__"],iue=e=>{let t={},r;for(let n of e.split(/\r?\n/)){n=n.split(/(^|\s)[;#]/)[0];let i=n.match(/^\s*\[([^\[\]]+)]\s*$/);if(i){if(r=i[1],nue.includes(r))throw new Error(`Found invalid profile name "${r}"`)}else if(r){let s=n.match(/^\s*(.+?)\s*=\s*(.+?)\s*$/);s&&(t[r]=t[r]||{},t[r][s[1]]=s[2])}}return t};N_.parseIni=iue});var jq=m(P_=>{"use strict";Object.defineProperty(P_,"__esModule",{value:!0});P_.slurpFile=void 0;var sue=require("fs"),{readFile:oue}=sue.promises,ib={},aue=e=>(ib[e]||(ib[e]=oue(e,"utf8")),ib[e]);P_.slurpFile=aue});var sb=m(D_=>{"use strict";Object.defineProperty(D_,"__esModule",{value:!0});D_.loadSharedConfigFiles=void 0;var cue=Oq(),lue=Lq(),due=Mq(),kq=zq(),Fq=jq(),Uq=()=>({}),uue=async(e={})=>{let{filepath:t=(0,lue.getCredentialsFilepath)(),configFilepath:r=(0,cue.getConfigFilepath)()}=e,n=await Promise.all([(0,Fq.slurpFile)(r).then(kq.parseIni).then(due.getProfileData).catch(Uq),(0,Fq.slurpFile)(t).then(kq.parseIni).catch(Uq)]);return{configFile:n[0],credentialsFile:n[1]}};D_.loadSharedConfigFiles=uue});var Bq=m(O_=>{"use strict";Object.defineProperty(O_,"__esModule",{value:!0});O_.parseKnownFiles=void 0;var fue=sb(),mue=async e=>{let t=await(0,fue.loadSharedConfigFiles)(e);return o(o({},t.configFile),t.credentialsFile)};O_.parseKnownFiles=mue});var $q=m(Gq=>{"use strict";Object.defineProperty(Gq,"__esModule",{value:!0})});var L_=m(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});var Zi=$();Zi.__exportStar(jc(),bn);Zi.__exportStar(Pq(),bn);Zi.__exportStar(nb(),bn);Zi.__exportStar(Dq(),bn);Zi.__exportStar(sb(),bn);Zi.__exportStar(Bq(),bn);Zi.__exportStar($q(),bn)});var ob=m(q_=>{"use strict";Object.defineProperty(q_,"__esModule",{value:!0});q_.isSsoProfile=void 0;var pue=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");q_.isSsoProfile=pue});var z_=m(M_=>{"use strict";Object.defineProperty(M_,"__esModule",{value:!0});M_.SSOServiceException=void 0;var _ue=P(),kc=class extends _ue.ServiceException{constructor(t){super(t),Object.setPrototypeOf(this,kc.prototype)}};M_.SSOServiceException=kc});var es=m(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.LogoutRequest=de.ListAccountsResponse=de.ListAccountsRequest=de.ListAccountRolesResponse=de.RoleInfo=de.ListAccountRolesRequest=de.UnauthorizedException=de.TooManyRequestsException=de.ResourceNotFoundException=de.InvalidRequestException=de.GetRoleCredentialsResponse=de.RoleCredentials=de.GetRoleCredentialsRequest=de.AccountInfo=void 0;var Xs=P(),j_=z_(),hue;(function(e){e.filterSensitiveLog=t=>o({},t)})(hue=de.AccountInfo||(de.AccountInfo={}));var yue;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.accessToken&&{accessToken:Xs.SENSITIVE_STRING})})(yue=de.GetRoleCredentialsRequest||(de.GetRoleCredentialsRequest={}));var Vq;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.secretAccessKey&&{secretAccessKey:Xs.SENSITIVE_STRING}),t.sessionToken&&{sessionToken:Xs.SENSITIVE_STRING})})(Vq=de.RoleCredentials||(de.RoleCredentials={}));var gue;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.roleCredentials&&{roleCredentials:Vq.filterSensitiveLog(t.roleCredentials)})})(gue=de.GetRoleCredentialsResponse||(de.GetRoleCredentialsResponse={}));var Fc=class extends j_.SSOServiceException{constructor(t){super(o({name:"InvalidRequestException",$fault:"client"},t)),this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,Fc.prototype)}};de.InvalidRequestException=Fc;var Uc=class extends j_.SSOServiceException{constructor(t){super(o({name:"ResourceNotFoundException",$fault:"client"},t)),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,Uc.prototype)}};de.ResourceNotFoundException=Uc;var Bc=class extends j_.SSOServiceException{constructor(t){super(o({name:"TooManyRequestsException",$fault:"client"},t)),this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,Bc.prototype)}};de.TooManyRequestsException=Bc;var Gc=class extends j_.SSOServiceException{constructor(t){super(o({name:"UnauthorizedException",$fault:"client"},t)),this.name="UnauthorizedException",this.$fault="client",Object.setPrototypeOf(this,Gc.prototype)}};de.UnauthorizedException=Gc;var vue;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.accessToken&&{accessToken:Xs.SENSITIVE_STRING})})(vue=de.ListAccountRolesRequest||(de.ListAccountRolesRequest={}));var Sue;(function(e){e.filterSensitiveLog=t=>o({},t)})(Sue=de.RoleInfo||(de.RoleInfo={}));var wue;(function(e){e.filterSensitiveLog=t=>o({},t)})(wue=de.ListAccountRolesResponse||(de.ListAccountRolesResponse={}));var Eue;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.accessToken&&{accessToken:Xs.SENSITIVE_STRING})})(Eue=de.ListAccountsRequest||(de.ListAccountsRequest={}));var bue;(function(e){e.filterSensitiveLog=t=>o({},t)})(bue=de.ListAccountsResponse||(de.ListAccountsResponse={}));var Aue;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.accessToken&&{accessToken:Xs.SENSITIVE_STRING})})(Aue=de.LogoutRequest||(de.LogoutRequest={}))});var $c=m(st=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});st.deserializeAws_restJson1LogoutCommand=st.deserializeAws_restJson1ListAccountsCommand=st.deserializeAws_restJson1ListAccountRolesCommand=st.deserializeAws_restJson1GetRoleCredentialsCommand=st.serializeAws_restJson1LogoutCommand=st.serializeAws_restJson1ListAccountsCommand=st.serializeAws_restJson1ListAccountRolesCommand=st.serializeAws_restJson1GetRoleCredentialsCommand=void 0;var k_=It(),Ce=P(),F_=es(),U_=z_(),Tue=async(e,t)=>{let{hostname:r,protocol:n="https",port:i,path:s}=await t.endpoint(),a=o({},V_(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}),c=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/federation/credentials`,l=o(o({},e.roleName!==void 0&&{role_name:e.roleName}),e.accountId!==void 0&&{account_id:e.accountId}),u;return new k_.HttpRequest({protocol:n,hostname:r,port:i,method:"GET",headers:a,path:c,query:l,body:u})};st.serializeAws_restJson1GetRoleCredentialsCommand=Tue;var Cue=async(e,t)=>{let{hostname:r,protocol:n="https",port:i,path:s}=await t.endpoint(),a=o({},V_(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}),c=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/assignment/roles`,l=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}),u;return new k_.HttpRequest({protocol:n,hostname:r,port:i,method:"GET",headers:a,path:c,query:l,body:u})};st.serializeAws_restJson1ListAccountRolesCommand=Cue;var xue=async(e,t)=>{let{hostname:r,protocol:n="https",port:i,path:s}=await t.endpoint(),a=o({},V_(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}),c=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/assignment/accounts`,l=o(o({},e.nextToken!==void 0&&{next_token:e.nextToken}),e.maxResults!==void 0&&{max_result:e.maxResults.toString()}),u;return new k_.HttpRequest({protocol:n,hostname:r,port:i,method:"GET",headers:a,path:c,query:l,body:u})};st.serializeAws_restJson1ListAccountsCommand=xue;var Iue=async(e,t)=>{let{hostname:r,protocol:n="https",port:i,path:s}=await t.endpoint(),a=o({},V_(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}),c=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/logout`,l;return new k_.HttpRequest({protocol:n,hostname:r,port:i,method:"POST",headers:a,path:c,body:l})};st.serializeAws_restJson1LogoutCommand=Iue;var Rue=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Nue(e,t);let r={$metadata:sr(e),roleCredentials:void 0},n=(0,Ce.expectNonNull)((0,Ce.expectObject)(await ts(e.body,t)),"body");return n.roleCredentials!==void 0&&n.roleCredentials!==null&&(r.roleCredentials=kue(n.roleCredentials,t)),Promise.resolve(r)};st.deserializeAws_restJson1GetRoleCredentialsCommand=Rue;var Nue=async(e,t)=>{let r=y(o({},e),{body:await ts(e.body,t)}),n,i="UnknownError";switch(i=K_(e,r.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await B_(r,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await ab(r,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await G_(r,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await $_(r,t);default:let s=r.body;throw n=new U_.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:sr(e)}),(0,Ce.decorateServiceException)(n,s)}},Pue=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Due(e,t);let r={$metadata:sr(e),nextToken:void 0,roleList:void 0},n=(0,Ce.expectNonNull)((0,Ce.expectObject)(await ts(e.body,t)),"body");return n.nextToken!==void 0&&n.nextToken!==null&&(r.nextToken=(0,Ce.expectString)(n.nextToken)),n.roleList!==void 0&&n.roleList!==null&&(r.roleList=Uue(n.roleList,t)),Promise.resolve(r)};st.deserializeAws_restJson1ListAccountRolesCommand=Pue;var Due=async(e,t)=>{let r=y(o({},e),{body:await ts(e.body,t)}),n,i="UnknownError";switch(i=K_(e,r.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await B_(r,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await ab(r,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await G_(r,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await $_(r,t);default:let s=r.body;throw n=new U_.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:sr(e)}),(0,Ce.decorateServiceException)(n,s)}},Oue=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Lue(e,t);let r={$metadata:sr(e),accountList:void 0,nextToken:void 0},n=(0,Ce.expectNonNull)((0,Ce.expectObject)(await ts(e.body,t)),"body");return n.accountList!==void 0&&n.accountList!==null&&(r.accountList=jue(n.accountList,t)),n.nextToken!==void 0&&n.nextToken!==null&&(r.nextToken=(0,Ce.expectString)(n.nextToken)),Promise.resolve(r)};st.deserializeAws_restJson1ListAccountsCommand=Oue;var Lue=async(e,t)=>{let r=y(o({},e),{body:await ts(e.body,t)}),n,i="UnknownError";switch(i=K_(e,r.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await B_(r,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await ab(r,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await G_(r,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await $_(r,t);default:let s=r.body;throw n=new U_.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:sr(e)}),(0,Ce.decorateServiceException)(n,s)}},que=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Mue(e,t);let r={$metadata:sr(e)};return await Kq(e.body,t),Promise.resolve(r)};st.deserializeAws_restJson1LogoutCommand=que;var Mue=async(e,t)=>{let r=y(o({},e),{body:await ts(e.body,t)}),n,i="UnknownError";switch(i=K_(e,r.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await B_(r,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await G_(r,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await $_(r,t);default:let s=r.body;throw n=new U_.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:sr(e)}),(0,Ce.decorateServiceException)(n,s)}},B_=async(e,t)=>{let r={},n=e.body;n.message!==void 0&&n.message!==null&&(r.message=(0,Ce.expectString)(n.message));let i=new F_.InvalidRequestException(o({$metadata:sr(e)},r));return(0,Ce.decorateServiceException)(i,e.body)},ab=async(e,t)=>{let r={},n=e.body;n.message!==void 0&&n.message!==null&&(r.message=(0,Ce.expectString)(n.message));let i=new F_.ResourceNotFoundException(o({$metadata:sr(e)},r));return(0,Ce.decorateServiceException)(i,e.body)},G_=async(e,t)=>{let r={},n=e.body;n.message!==void 0&&n.message!==null&&(r.message=(0,Ce.expectString)(n.message));let i=new F_.TooManyRequestsException(o({$metadata:sr(e)},r));return(0,Ce.decorateServiceException)(i,e.body)},$_=async(e,t)=>{let r={},n=e.body;n.message!==void 0&&n.message!==null&&(r.message=(0,Ce.expectString)(n.message));let i=new F_.UnauthorizedException(o({$metadata:sr(e)},r));return(0,Ce.decorateServiceException)(i,e.body)},zue=(e,t)=>({accountId:(0,Ce.expectString)(e.accountId),accountName:(0,Ce.expectString)(e.accountName),emailAddress:(0,Ce.expectString)(e.emailAddress)}),jue=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:zue(n,t)),kue=(e,t)=>({accessKeyId:(0,Ce.expectString)(e.accessKeyId),expiration:(0,Ce.expectLong)(e.expiration),secretAccessKey:(0,Ce.expectString)(e.secretAccessKey),sessionToken:(0,Ce.expectString)(e.sessionToken)}),Fue=(e,t)=>({accountId:(0,Ce.expectString)(e.accountId),roleName:(0,Ce.expectString)(e.roleName)}),Uue=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:Fue(n,t)),sr=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"]}},Kq=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),Bue=(e,t)=>Kq(e,t).then(r=>t.utf8Encoder(r)),V_=e=>e!=null&&e!==""&&(!Object.getOwnPropertyNames(e).includes("length")||e.length!=0)&&(!Object.getOwnPropertyNames(e).includes("size")||e.size!=0),ts=(e,t)=>Bue(e,t).then(r=>r.length?JSON.parse(r):{}),K_=(e,t)=>{let r=(s,a)=>Object.keys(s).find(c=>c.toLowerCase()===a.toLowerCase()),n=s=>{let a=s;return a.indexOf(":")>=0&&(a=a.split(":")[0]),a.indexOf("#")>=0&&(a=a.split("#")[1]),a},i=r(e.headers,"x-amzn-errortype");return i!==void 0?n(e.headers[i]):t.code!==void 0?n(t.code):t.__type!==void 0?n(t.__type):""}});var lb=m(H_=>{"use strict";Object.defineProperty(H_,"__esModule",{value:!0});H_.GetRoleCredentialsCommand=void 0;var Gue=G(),$ue=P(),Hq=es(),Wq=$c(),cb=class extends $ue.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Gue.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"SSOClient",commandName:"GetRoleCredentialsCommand",inputFilterSensitiveLog:Hq.GetRoleCredentialsRequest.filterSensitiveLog,outputFilterSensitiveLog:Hq.GetRoleCredentialsResponse.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,Wq.serializeAws_restJson1GetRoleCredentialsCommand)(t,r)}deserialize(t,r){return(0,Wq.deserializeAws_restJson1GetRoleCredentialsCommand)(t,r)}};H_.GetRoleCredentialsCommand=cb});var J_=m(W_=>{"use strict";Object.defineProperty(W_,"__esModule",{value:!0});W_.ListAccountRolesCommand=void 0;var Vue=G(),Kue=P(),Jq=es(),Yq=$c(),db=class extends Kue.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Vue.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"SSOClient",commandName:"ListAccountRolesCommand",inputFilterSensitiveLog:Jq.ListAccountRolesRequest.filterSensitiveLog,outputFilterSensitiveLog:Jq.ListAccountRolesResponse.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,Yq.serializeAws_restJson1ListAccountRolesCommand)(t,r)}deserialize(t,r){return(0,Yq.deserializeAws_restJson1ListAccountRolesCommand)(t,r)}};W_.ListAccountRolesCommand=db});var Q_=m(Y_=>{"use strict";Object.defineProperty(Y_,"__esModule",{value:!0});Y_.ListAccountsCommand=void 0;var Hue=G(),Wue=P(),Qq=es(),Xq=$c(),ub=class extends Wue.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Hue.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"SSOClient",commandName:"ListAccountsCommand",inputFilterSensitiveLog:Qq.ListAccountsRequest.filterSensitiveLog,outputFilterSensitiveLog:Qq.ListAccountsResponse.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,Xq.serializeAws_restJson1ListAccountsCommand)(t,r)}deserialize(t,r){return(0,Xq.deserializeAws_restJson1ListAccountsCommand)(t,r)}};Y_.ListAccountsCommand=ub});var mb=m(X_=>{"use strict";Object.defineProperty(X_,"__esModule",{value:!0});X_.LogoutCommand=void 0;var Jue=G(),Yue=P(),Que=es(),Zq=$c(),fb=class extends Yue.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Jue.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"SSOClient",commandName:"LogoutCommand",inputFilterSensitiveLog:Que.LogoutRequest.filterSensitiveLog,outputFilterSensitiveLog:f=>f},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,Zq.serializeAws_restJson1LogoutCommand)(t,r)}deserialize(t,r){return(0,Zq.deserializeAws_restJson1LogoutCommand)(t,r)}};X_.LogoutCommand=fb});var eM=m((MPe,Xue)=>{Xue.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 tM=m(Z_=>{"use strict";Object.defineProperty(Z_,"__esModule",{value:!0});Z_.defaultRegionInfoProvider=void 0;var Zue=Rt(),efe={"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"}},tfe={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"]}]}},rfe=async(e,t)=>(0,Zue.getRegionInfo)(e,y(o({},t),{signingService:"awsssoportal",regionHash:efe,partitionHash:tfe}));Z_.defaultRegionInfoProvider=rfe});var rM=m(eh=>{"use strict";Object.defineProperty(eh,"__esModule",{value:!0});eh.getRuntimeConfig=void 0;var nfe=si(),ife=tM(),sfe=e=>{var t,r,n,i,s;return{apiVersion:"2019-06-10",disableHostPrefix:(t=e==null?void 0:e.disableHostPrefix)!==null&&t!==void 0?t:!1,logger:(r=e==null?void 0:e.logger)!==null&&r!==void 0?r:{},regionInfoProvider:(n=e==null?void 0:e.regionInfoProvider)!==null&&n!==void 0?n:ife.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:nfe.parseUrl}};eh.getRuntimeConfig=sfe});var oM=m(rh=>{"use strict";Object.defineProperty(rh,"__esModule",{value:!0});rh.getRuntimeConfig=void 0;var ofe=$(),afe=ofe.__importDefault(eM()),th=Rt(),cfe=bc(),pb=hn(),Vc=kr(),nM=Tc(),iM=Cc(),lfe=xc(),dfe=Ic(),sM=Rc(),ufe=rM(),ffe=P(),mfe=Dc(),pfe=e=>{var t,r,n,i,s,a,c,l,u,f,_,h,v,S;let g=(0,mfe.resolveDefaultsModeConfig)(e),I=()=>g().then(ffe.loadConfigsForDefaultMode),O=(0,ufe.getRuntimeConfig)(e);return y(o(o({},O),e),{runtime:"node",defaultsMode:g,base64Decoder:(t=e==null?void 0:e.base64Decoder)!==null&&t!==void 0?t:iM.fromBase64,base64Encoder:(r=e==null?void 0:e.base64Encoder)!==null&&r!==void 0?r:iM.toBase64,bodyLengthChecker:(n=e==null?void 0:e.bodyLengthChecker)!==null&&n!==void 0?n:lfe.calculateBodyLength,defaultUserAgentProvider:(i=e==null?void 0:e.defaultUserAgentProvider)!==null&&i!==void 0?i:(0,dfe.defaultUserAgent)({serviceId:O.serviceId,clientVersion:afe.default.version}),maxAttempts:(s=e==null?void 0:e.maxAttempts)!==null&&s!==void 0?s:(0,Vc.loadConfig)(pb.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(a=e==null?void 0:e.region)!==null&&a!==void 0?a:(0,Vc.loadConfig)(th.NODE_REGION_CONFIG_OPTIONS,th.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(c=e==null?void 0:e.requestHandler)!==null&&c!==void 0?c:new nM.NodeHttpHandler(I),retryMode:(l=e==null?void 0:e.retryMode)!==null&&l!==void 0?l:(0,Vc.loadConfig)(y(o({},pb.NODE_RETRY_MODE_CONFIG_OPTIONS),{default:async()=>(await I()).retryMode||pb.DEFAULT_RETRY_MODE})),sha256:(u=e==null?void 0:e.sha256)!==null&&u!==void 0?u:cfe.Hash.bind(null,"sha256"),streamCollector:(f=e==null?void 0:e.streamCollector)!==null&&f!==void 0?f:nM.streamCollector,useDualstackEndpoint:(_=e==null?void 0:e.useDualstackEndpoint)!==null&&_!==void 0?_:(0,Vc.loadConfig)(th.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(h=e==null?void 0:e.useFipsEndpoint)!==null&&h!==void 0?h:(0,Vc.loadConfig)(th.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:(v=e==null?void 0:e.utf8Decoder)!==null&&v!==void 0?v:sM.fromUtf8,utf8Encoder:(S=e==null?void 0:e.utf8Encoder)!==null&&S!==void 0?S:sM.toUtf8})};rh.getRuntimeConfig=pfe});var Kc=m(nh=>{"use strict";Object.defineProperty(nh,"__esModule",{value:!0});nh.SSOClient=void 0;var aM=Rt(),_fe=ja(),cM=Ua(),hfe=Ba(),lM=hn(),dM=Ya(),yfe=P(),gfe=oM(),_b=class extends yfe.Client{constructor(t){let r=(0,gfe.getRuntimeConfig)(t),n=(0,aM.resolveRegionConfig)(r),i=(0,aM.resolveEndpointsConfig)(n),s=(0,lM.resolveRetryConfig)(i),a=(0,cM.resolveHostHeaderConfig)(s),c=(0,dM.resolveUserAgentConfig)(a);super(c),this.config=c,this.middlewareStack.use((0,lM.getRetryPlugin)(this.config)),this.middlewareStack.use((0,_fe.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,cM.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,hfe.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,dM.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};nh.SSOClient=_b});var sh=m(ih=>{"use strict";Object.defineProperty(ih,"__esModule",{value:!0});ih.SSO=void 0;var vfe=lb(),Sfe=J_(),wfe=Q_(),Efe=mb(),bfe=Kc(),hb=class extends bfe.SSOClient{getRoleCredentials(t,r,n){let i=new vfe.GetRoleCredentialsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}listAccountRoles(t,r,n){let i=new Sfe.ListAccountRolesCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}listAccounts(t,r,n){let i=new wfe.ListAccountsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}logout(t,r,n){let i=new Efe.LogoutCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}};ih.SSO=hb});var uM=m(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});var oh=$();oh.__exportStar(lb(),Zs);oh.__exportStar(J_(),Zs);oh.__exportStar(Q_(),Zs);oh.__exportStar(mb(),Zs)});var fM=m(yb=>{"use strict";Object.defineProperty(yb,"__esModule",{value:!0});var Afe=$();Afe.__exportStar(es(),yb)});var pM=m(mM=>{"use strict";Object.defineProperty(mM,"__esModule",{value:!0})});var _M=m(ah=>{"use strict";Object.defineProperty(ah,"__esModule",{value:!0});ah.paginateListAccountRoles=void 0;var Tfe=J_(),Cfe=sh(),xfe=Kc(),Ife=async(e,t,...r)=>await e.send(new Tfe.ListAccountRolesCommand(t),...r),Rfe=async(e,t,...r)=>await e.listAccountRoles(t,...r);async function*Nfe(e,t,...r){let n=e.startingToken||void 0,i=!0,s;for(;i;){if(t.nextToken=n,t.maxResults=e.pageSize,e.client instanceof Cfe.SSO)s=await Rfe(e.client,t,...r);else if(e.client instanceof xfe.SSOClient)s=await Ife(e.client,t,...r);else throw new Error("Invalid client, expected SSO | SSOClient");yield s;let a=n;n=s.nextToken,i=!!(n&&(!e.stopOnSameToken||n!==a))}return void 0}ah.paginateListAccountRoles=Nfe});var hM=m(ch=>{"use strict";Object.defineProperty(ch,"__esModule",{value:!0});ch.paginateListAccounts=void 0;var Pfe=Q_(),Dfe=sh(),Ofe=Kc(),Lfe=async(e,t,...r)=>await e.send(new Pfe.ListAccountsCommand(t),...r),qfe=async(e,t,...r)=>await e.listAccounts(t,...r);async function*Mfe(e,t,...r){let n=e.startingToken||void 0,i=!0,s;for(;i;){if(t.nextToken=n,t.maxResults=e.pageSize,e.client instanceof Dfe.SSO)s=await qfe(e.client,t,...r);else if(e.client instanceof Ofe.SSOClient)s=await Lfe(e.client,t,...r);else throw new Error("Invalid client, expected SSO | SSOClient");yield s;let a=n;n=s.nextToken,i=!!(n&&(!e.stopOnSameToken||n!==a))}return void 0}ch.paginateListAccounts=Mfe});var yM=m(Hc=>{"use strict";Object.defineProperty(Hc,"__esModule",{value:!0});var gb=$();gb.__exportStar(pM(),Hc);gb.__exportStar(_M(),Hc);gb.__exportStar(hM(),Hc)});var gM=m(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.SSOServiceException=void 0;var Wc=$();Wc.__exportStar(sh(),An);Wc.__exportStar(Kc(),An);Wc.__exportStar(uM(),An);Wc.__exportStar(fM(),An);Wc.__exportStar(yM(),An);var zfe=z_();Object.defineProperty(An,"SSOServiceException",{enumerable:!0,get:function(){return zfe.SSOServiceException}})});var SM=m(uh=>{"use strict";Object.defineProperty(uh,"__esModule",{value:!0});uh.resolveSSOCredentials=void 0;var vM=gM(),lh=Ee(),jfe=L_(),kfe=15*60*1e3,dh=!1,Ffe=async({ssoStartUrl:e,ssoAccountId:t,ssoRegion:r,ssoRoleName:n,ssoClient:i})=>{let s,a="To refresh this SSO session run aws sso login with the corresponding profile.";try{s=await(0,jfe.getSSOTokenFromFile)(e)}catch{throw new lh.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${a}`,dh)}if(new Date(s.expiresAt).getTime()-Date.now()<=kfe)throw new lh.CredentialsProviderError(`The SSO session associated with this profile has expired. ${a}`,dh);let{accessToken:c}=s,l=i||new vM.SSOClient({region:r}),u;try{u=await l.send(new vM.GetRoleCredentialsCommand({accountId:t,roleName:n,accessToken:c}))}catch(S){throw lh.CredentialsProviderError.from(S,dh)}let{roleCredentials:{accessKeyId:f,secretAccessKey:_,sessionToken:h,expiration:v}={}}=u;if(!f||!_||!h||!v)throw new lh.CredentialsProviderError("SSO returns an invalid temporary credential.",dh);return{accessKeyId:f,secretAccessKey:_,sessionToken:h,expiration:new Date(v)}};uh.resolveSSOCredentials=Ffe});var vb=m(fh=>{"use strict";Object.defineProperty(fh,"__esModule",{value:!0});fh.validateSsoProfile=void 0;var Ufe=Ee(),Bfe=e=>{let{sso_start_url:t,sso_account_id:r,sso_region:n,sso_role_name:i}=e;if(!t||!r||!n||!i)throw new Ufe.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};fh.validateSsoProfile=Bfe});var AM=m(mh=>{"use strict";Object.defineProperty(mh,"__esModule",{value:!0});mh.fromSSO=void 0;var wM=Ee(),EM=L_(),Gfe=ob(),bM=SM(),$fe=vb(),Vfe=(e={})=>async()=>{let{ssoStartUrl:t,ssoAccountId:r,ssoRegion:n,ssoRoleName:i,ssoClient:s}=e;if(!t&&!r&&!n&&!i){let a=await(0,EM.parseKnownFiles)(e),c=(0,EM.getProfileName)(e),l=a[c];if(!(0,Gfe.isSsoProfile)(l))throw new wM.CredentialsProviderError(`Profile ${c} is not configured with SSO credentials.`);let{sso_start_url:u,sso_account_id:f,sso_region:_,sso_role_name:h}=(0,$fe.validateSsoProfile)(l);return(0,bM.resolveSSOCredentials)({ssoStartUrl:u,ssoAccountId:f,ssoRegion:_,ssoRoleName:h,ssoClient:s})}else{if(!t||!r||!n||!i)throw new wM.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"');return(0,bM.resolveSSOCredentials)({ssoStartUrl:t,ssoAccountId:r,ssoRegion:n,ssoRoleName:i,ssoClient:s})}};mh.fromSSO=Vfe});var CM=m(TM=>{"use strict";Object.defineProperty(TM,"__esModule",{value:!0})});var xM=m(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});var ph=$();ph.__exportStar(AM(),eo);ph.__exportStar(ob(),eo);ph.__exportStar(CM(),eo);ph.__exportStar(vb(),eo)});var hh=m(_h=>{"use strict";Object.defineProperty(_h,"__esModule",{value:!0});_h.httpRequest=void 0;var Sb=Ee(),Kfe=require("buffer"),Hfe=require("http");function Wfe(e){return new Promise((t,r)=>{var n;let i=(0,Hfe.request)(y(o({method:"GET"},e),{hostname:(n=e.hostname)===null||n===void 0?void 0:n.replace(/^\[(.+)\]$/,"$1")}));i.on("error",s=>{r(Object.assign(new Sb.ProviderError("Unable to connect to instance metadata service"),s)),i.destroy()}),i.on("timeout",()=>{r(new Sb.ProviderError("TimeoutError from instance metadata service")),i.destroy()}),i.on("response",s=>{let{statusCode:a=400}=s;(a<200||300<=a)&&(r(Object.assign(new Sb.ProviderError("Error response received from instance metadata service"),{statusCode:a})),i.destroy());let c=[];s.on("data",l=>{c.push(l)}),s.on("end",()=>{t(Kfe.Buffer.concat(c)),i.destroy()})}),i.end()})}_h.httpRequest=Wfe});var wb=m(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});to.fromImdsCredentials=to.isImdsCredentials=void 0;var Jfe=e=>Boolean(e)&&typeof e=="object"&&typeof e.AccessKeyId=="string"&&typeof e.SecretAccessKey=="string"&&typeof e.Token=="string"&&typeof e.Expiration=="string";to.isImdsCredentials=Jfe;var Yfe=e=>({accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:new Date(e.Expiration)});to.fromImdsCredentials=Yfe});var yh=m(Yr=>{"use strict";Object.defineProperty(Yr,"__esModule",{value:!0});Yr.providerConfigFromInit=Yr.DEFAULT_MAX_RETRIES=Yr.DEFAULT_TIMEOUT=void 0;Yr.DEFAULT_TIMEOUT=1e3;Yr.DEFAULT_MAX_RETRIES=0;var Qfe=({maxRetries:e=Yr.DEFAULT_MAX_RETRIES,timeout:t=Yr.DEFAULT_TIMEOUT})=>({maxRetries:e,timeout:t});Yr.providerConfigFromInit=Qfe});var Eb=m(gh=>{"use strict";Object.defineProperty(gh,"__esModule",{value:!0});gh.retry=void 0;var Xfe=(e,t)=>{let r=e();for(let n=0;n<t;n++)r=r.catch(e);return r};gh.retry=Xfe});var RM=m(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.fromContainerMetadata=ot.ENV_CMDS_AUTH_TOKEN=ot.ENV_CMDS_RELATIVE_URI=ot.ENV_CMDS_FULL_URI=void 0;var vh=Ee(),Zfe=require("url"),eme=hh(),IM=wb(),tme=yh(),rme=Eb();ot.ENV_CMDS_FULL_URI="AWS_CONTAINER_CREDENTIALS_FULL_URI";ot.ENV_CMDS_RELATIVE_URI="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";ot.ENV_CMDS_AUTH_TOKEN="AWS_CONTAINER_AUTHORIZATION_TOKEN";var nme=(e={})=>{let{timeout:t,maxRetries:r}=(0,tme.providerConfigFromInit)(e);return()=>(0,rme.retry)(async()=>{let n=await cme(),i=JSON.parse(await ime(t,n));if(!(0,IM.isImdsCredentials)(i))throw new vh.CredentialsProviderError("Invalid response received from instance metadata service.");return(0,IM.fromImdsCredentials)(i)},r)};ot.fromContainerMetadata=nme;var ime=async(e,t)=>(process.env[ot.ENV_CMDS_AUTH_TOKEN]&&(t.headers=y(o({},t.headers),{Authorization:process.env[ot.ENV_CMDS_AUTH_TOKEN]})),(await(0,eme.httpRequest)(y(o({},t),{timeout:e}))).toString()),sme="169.254.170.2",ome={localhost:!0,"127.0.0.1":!0},ame={"http:":!0,"https:":!0},cme=async()=>{if(process.env[ot.ENV_CMDS_RELATIVE_URI])return{hostname:sme,path:process.env[ot.ENV_CMDS_RELATIVE_URI]};if(process.env[ot.ENV_CMDS_FULL_URI]){let e=(0,Zfe.parse)(process.env[ot.ENV_CMDS_FULL_URI]);if(!e.hostname||!(e.hostname in ome))throw new vh.CredentialsProviderError(`${e.hostname} is not a valid container metadata service hostname`,!1);if(!e.protocol||!(e.protocol in ame))throw new vh.CredentialsProviderError(`${e.protocol} is not a valid container metadata service protocol`,!1);return y(o({},e),{port:e.port?parseInt(e.port,10):void 0})}throw new vh.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${ot.ENV_CMDS_RELATIVE_URI} or ${ot.ENV_CMDS_FULL_URI} environment variable is set`,!1)}});var NM=m(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});Jc.Endpoint=void 0;var lme;(function(e){e.IPv4="http://169.254.169.254",e.IPv6="http://[fd00:ec2::254]"})(lme=Jc.Endpoint||(Jc.Endpoint={}))});var PM=m(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});Qr.ENDPOINT_CONFIG_OPTIONS=Qr.CONFIG_ENDPOINT_NAME=Qr.ENV_ENDPOINT_NAME=void 0;Qr.ENV_ENDPOINT_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT";Qr.CONFIG_ENDPOINT_NAME="ec2_metadata_service_endpoint";Qr.ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>e[Qr.ENV_ENDPOINT_NAME],configFileSelector:e=>e[Qr.CONFIG_ENDPOINT_NAME],default:void 0}});var bb=m(Yc=>{"use strict";Object.defineProperty(Yc,"__esModule",{value:!0});Yc.EndpointMode=void 0;var dme;(function(e){e.IPv4="IPv4",e.IPv6="IPv6"})(dme=Yc.EndpointMode||(Yc.EndpointMode={}))});var DM=m(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.ENDPOINT_MODE_CONFIG_OPTIONS=Xr.CONFIG_ENDPOINT_MODE_NAME=Xr.ENV_ENDPOINT_MODE_NAME=void 0;var ume=bb();Xr.ENV_ENDPOINT_MODE_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";Xr.CONFIG_ENDPOINT_MODE_NAME="ec2_metadata_service_endpoint_mode";Xr.ENDPOINT_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[Xr.ENV_ENDPOINT_MODE_NAME],configFileSelector:e=>e[Xr.CONFIG_ENDPOINT_MODE_NAME],default:ume.EndpointMode.IPv4}});var Tb=m(Sh=>{"use strict";Object.defineProperty(Sh,"__esModule",{value:!0});Sh.getInstanceMetadataEndpoint=void 0;var LM=kr(),fme=si(),OM=NM(),mme=PM(),Ab=bb(),pme=DM(),_me=async()=>(0,fme.parseUrl)(await hme()||await yme());Sh.getInstanceMetadataEndpoint=_me;var hme=async()=>(0,LM.loadConfig)(mme.ENDPOINT_CONFIG_OPTIONS)(),yme=async()=>{let e=await(0,LM.loadConfig)(pme.ENDPOINT_MODE_CONFIG_OPTIONS)();switch(e){case Ab.EndpointMode.IPv4:return OM.Endpoint.IPv4;case Ab.EndpointMode.IPv6:return OM.Endpoint.IPv6;default:throw new Error(`Unsupported endpoint mode: ${e}. Select from ${Object.values(Ab.EndpointMode)}`)}}});var qM=m(wh=>{"use strict";Object.defineProperty(wh,"__esModule",{value:!0});wh.getExtendedInstanceMetadataCredentials=void 0;var gme=5*60,vme=5*60,Sme="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",wme=(e,t)=>{var r;let n=gme+Math.floor(Math.random()*vme),i=new Date(Date.now()+n*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: "+Sme);let s=(r=e.originalExpiration)!==null&&r!==void 0?r:e.expiration;return y(o(o({},e),s?{originalExpiration:s}:{}),{expiration:i})};wh.getExtendedInstanceMetadataCredentials=wme});var zM=m(Eh=>{"use strict";Object.defineProperty(Eh,"__esModule",{value:!0});Eh.staticStabilityProvider=void 0;var MM=qM(),Eme=(e,t={})=>{let r=(t==null?void 0:t.logger)||console,n;return async()=>{let i;try{i=await e(),i.expiration&&i.expiration.getTime()<Date.now()&&(i=(0,MM.getExtendedInstanceMetadataCredentials)(i,r))}catch(s){if(n)r.warn("Credential renew failed: ",s),i=(0,MM.getExtendedInstanceMetadataCredentials)(n,r);else throw s}return n=i,i}};Eh.staticStabilityProvider=Eme});var UM=m(bh=>{"use strict";Object.defineProperty(bh,"__esModule",{value:!0});bh.fromInstanceMetadata=void 0;var bme=Ee(),Cb=hh(),jM=wb(),Ame=yh(),kM=Eb(),Tme=Tb(),Cme=zM(),FM="/latest/meta-data/iam/security-credentials/",xme="/latest/api/token",Ime=(e={})=>(0,Cme.staticStabilityProvider)(Rme(e),{logger:e.logger});bh.fromInstanceMetadata=Ime;var Rme=e=>{let t=!1,{timeout:r,maxRetries:n}=(0,Ame.providerConfigFromInit)(e),i=async(s,a)=>{let c=(await(0,kM.retry)(async()=>{let l;try{l=await Pme(a)}catch(u){throw u.statusCode===401&&(t=!1),u}return l},s)).trim();return(0,kM.retry)(async()=>{let l;try{l=await Dme(c,a)}catch(u){throw u.statusCode===401&&(t=!1),u}return l},s)};return async()=>{let s=await(0,Tme.getInstanceMetadataEndpoint)();if(t)return i(n,y(o({},s),{timeout:r}));{let a;try{a=(await Nme(y(o({},s),{timeout:r}))).toString()}catch(c){if((c==null?void 0:c.statusCode)===400)throw Object.assign(c,{message:"EC2 Metadata token request returned error"});return(c.message==="TimeoutError"||[403,404,405].includes(c.statusCode))&&(t=!0),i(n,y(o({},s),{timeout:r}))}return i(n,y(o({},s),{headers:{"x-aws-ec2-metadata-token":a},timeout:r}))}}},Nme=async e=>(0,Cb.httpRequest)(y(o({},e),{path:xme,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}})),Pme=async e=>(await(0,Cb.httpRequest)(y(o({},e),{path:FM}))).toString(),Dme=async(e,t)=>{let r=JSON.parse((await(0,Cb.httpRequest)(y(o({},t),{path:FM+e}))).toString());if(!(0,jM.isImdsCredentials)(r))throw new bme.CredentialsProviderError("Invalid response received from instance metadata service.");return(0,jM.fromImdsCredentials)(r)}});var GM=m(BM=>{"use strict";Object.defineProperty(BM,"__esModule",{value:!0})});var $M=m(Zr=>{"use strict";Object.defineProperty(Zr,"__esModule",{value:!0});Zr.getInstanceMetadataEndpoint=Zr.httpRequest=void 0;var Ah=$();Ah.__exportStar(RM(),Zr);Ah.__exportStar(UM(),Zr);Ah.__exportStar(yh(),Zr);Ah.__exportStar(GM(),Zr);var Ome=hh();Object.defineProperty(Zr,"httpRequest",{enumerable:!0,get:function(){return Ome.httpRequest}});var Lme=Tb();Object.defineProperty(Zr,"getInstanceMetadataEndpoint",{enumerable:!0,get:function(){return Lme.getInstanceMetadataEndpoint}})});var VM=m(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.remoteProvider=rs.ENV_IMDS_DISABLED=void 0;var Th=$M(),qme=Ee();rs.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";var Mme=e=>process.env[Th.ENV_CMDS_RELATIVE_URI]||process.env[Th.ENV_CMDS_FULL_URI]?(0,Th.fromContainerMetadata)(e):process.env[rs.ENV_IMDS_DISABLED]?async()=>{throw new qme.CredentialsProviderError("EC2 Instance Metadata Service access disabled")}:(0,Th.fromInstanceMetadata)(e);rs.remoteProvider=Mme});var KM=m(Ch=>{"use strict";Object.defineProperty(Ch,"__esModule",{value:!0});Ch.defaultProvider=void 0;var zme=WE(),jme=dq(),kme=Nq(),Fme=xM(),Ume=Y0(),xb=Ee(),Bme=L_(),Gme=VM(),$me=(e={})=>(0,xb.memoize)((0,xb.chain)(...e.profile||process.env[Bme.ENV_PROFILE]?[]:[(0,zme.fromEnv)()],(0,Fme.fromSSO)(e),(0,jme.fromIni)(e),(0,kme.fromProcess)(e),(0,Ume.fromTokenFile)(e),(0,Gme.remoteProvider)(e),async()=>{throw new xb.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);Ch.defaultProvider=$me});var Rb=m(Ib=>{"use strict";Object.defineProperty(Ib,"__esModule",{value:!0});var Vme=$();Vme.__exportStar(KM(),Ib)});var HM=m(xh=>{"use strict";Object.defineProperty(xh,"__esModule",{value:!0});xh.defaultRegionInfoProvider=void 0;var Kme=Rt(),Hme={"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"]}]}},Wme={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"]}]}},Jme=async(e,t)=>(0,Kme.getRegionInfo)(e,y(o({},t),{signingService:"sts",regionHash:Hme,partitionHash:Wme}));xh.defaultRegionInfoProvider=Jme});var WM=m(Ih=>{"use strict";Object.defineProperty(Ih,"__esModule",{value:!0});Ih.getRuntimeConfig=void 0;var Yme=si(),Qme=HM(),Xme=e=>{var t,r,n,i,s;return{apiVersion:"2011-06-15",disableHostPrefix:(t=e==null?void 0:e.disableHostPrefix)!==null&&t!==void 0?t:!1,logger:(r=e==null?void 0:e.logger)!==null&&r!==void 0?r:{},regionInfoProvider:(n=e==null?void 0:e.regionInfoProvider)!==null&&n!==void 0?n:Qme.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:Yme.parseUrl}};Ih.getRuntimeConfig=Xme});var XM=m(Nh=>{"use strict";Object.defineProperty(Nh,"__esModule",{value:!0});Nh.getRuntimeConfig=void 0;var Zme=$(),epe=Zme.__importDefault(TD()),tpe=KE(),Rh=Rt(),rpe=Rb(),npe=bc(),Nb=hn(),Qc=kr(),JM=Tc(),YM=Cc(),ipe=xc(),spe=Ic(),QM=Rc(),ope=WM(),ape=P(),cpe=Dc(),lpe=e=>{var t,r,n,i,s,a,c,l,u,f,_,h,v,S,g;let I=(0,cpe.resolveDefaultsModeConfig)(e),O=()=>I().then(ape.loadConfigsForDefaultMode),C=(0,ope.getRuntimeConfig)(e);return y(o(o({},C),e),{runtime:"node",defaultsMode:I,base64Decoder:(t=e==null?void 0:e.base64Decoder)!==null&&t!==void 0?t:YM.fromBase64,base64Encoder:(r=e==null?void 0:e.base64Encoder)!==null&&r!==void 0?r:YM.toBase64,bodyLengthChecker:(n=e==null?void 0:e.bodyLengthChecker)!==null&&n!==void 0?n:ipe.calculateBodyLength,credentialDefaultProvider:(i=e==null?void 0:e.credentialDefaultProvider)!==null&&i!==void 0?i:(0,tpe.decorateDefaultCredentialProvider)(rpe.defaultProvider),defaultUserAgentProvider:(s=e==null?void 0:e.defaultUserAgentProvider)!==null&&s!==void 0?s:(0,spe.defaultUserAgent)({serviceId:C.serviceId,clientVersion:epe.default.version}),maxAttempts:(a=e==null?void 0:e.maxAttempts)!==null&&a!==void 0?a:(0,Qc.loadConfig)(Nb.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(c=e==null?void 0:e.region)!==null&&c!==void 0?c:(0,Qc.loadConfig)(Rh.NODE_REGION_CONFIG_OPTIONS,Rh.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(l=e==null?void 0:e.requestHandler)!==null&&l!==void 0?l:new JM.NodeHttpHandler(O),retryMode:(u=e==null?void 0:e.retryMode)!==null&&u!==void 0?u:(0,Qc.loadConfig)(y(o({},Nb.NODE_RETRY_MODE_CONFIG_OPTIONS),{default:async()=>(await O()).retryMode||Nb.DEFAULT_RETRY_MODE})),sha256:(f=e==null?void 0:e.sha256)!==null&&f!==void 0?f:npe.Hash.bind(null,"sha256"),streamCollector:(_=e==null?void 0:e.streamCollector)!==null&&_!==void 0?_:JM.streamCollector,useDualstackEndpoint:(h=e==null?void 0:e.useDualstackEndpoint)!==null&&h!==void 0?h:(0,Qc.loadConfig)(Rh.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(v=e==null?void 0:e.useFipsEndpoint)!==null&&v!==void 0?v:(0,Qc.loadConfig)(Rh.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:(S=e==null?void 0:e.utf8Decoder)!==null&&S!==void 0?S:QM.fromUtf8,utf8Encoder:(g=e==null?void 0:e.utf8Encoder)!==null&&g!==void 0?g:QM.toUtf8})};Nh.getRuntimeConfig=lpe});var Dh=m(Ph=>{"use strict";Object.defineProperty(Ph,"__esModule",{value:!0});Ph.STSClient=void 0;var ZM=Rt(),dpe=ja(),ez=Ua(),upe=Ba(),tz=hn(),fpe=AD(),rz=Ya(),mpe=P(),ppe=XM(),Xc=class extends mpe.Client{constructor(t){let r=(0,ppe.getRuntimeConfig)(t),n=(0,ZM.resolveRegionConfig)(r),i=(0,ZM.resolveEndpointsConfig)(n),s=(0,tz.resolveRetryConfig)(i),a=(0,ez.resolveHostHeaderConfig)(s),c=(0,fpe.resolveStsAuthConfig)(a,{stsClientCtor:Xc}),l=(0,rz.resolveUserAgentConfig)(c);super(l),this.config=l,this.middlewareStack.use((0,tz.getRetryPlugin)(this.config)),this.middlewareStack.use((0,dpe.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,ez.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,upe.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,rz.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};Ph.STSClient=Xc});var nz=m(Oh=>{"use strict";Object.defineProperty(Oh,"__esModule",{value:!0});Oh.STS=void 0;var _pe=pm(),hpe=LE(),ype=ym(),gpe=zE(),vpe=kE(),Spe=UE(),wpe=GE(),Epe=VE(),bpe=Dh(),Pb=class extends bpe.STSClient{assumeRole(t,r,n){let i=new _pe.AssumeRoleCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}assumeRoleWithSAML(t,r,n){let i=new hpe.AssumeRoleWithSAMLCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}assumeRoleWithWebIdentity(t,r,n){let i=new ype.AssumeRoleWithWebIdentityCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}decodeAuthorizationMessage(t,r,n){let i=new gpe.DecodeAuthorizationMessageCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}getAccessKeyInfo(t,r,n){let i=new vpe.GetAccessKeyInfoCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}getCallerIdentity(t,r,n){let i=new Spe.GetCallerIdentityCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}getFederationToken(t,r,n){let i=new wpe.GetFederationTokenCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}getSessionToken(t,r,n){let i=new Epe.GetSessionTokenCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}};Oh.STS=Pb});var iz=m(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});var ai=$();ai.__exportStar(pm(),en);ai.__exportStar(LE(),en);ai.__exportStar(ym(),en);ai.__exportStar(zE(),en);ai.__exportStar(kE(),en);ai.__exportStar(UE(),en);ai.__exportStar(GE(),en);ai.__exportStar(VE(),en)});var az=m(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.decorateDefaultCredentialProvider=tn.getDefaultRoleAssumerWithWebIdentity=tn.getDefaultRoleAssumer=void 0;var sz=KE(),oz=Dh(),Ape=(e={})=>(0,sz.getDefaultRoleAssumer)(e,oz.STSClient);tn.getDefaultRoleAssumer=Ape;var Tpe=(e={})=>(0,sz.getDefaultRoleAssumerWithWebIdentity)(e,oz.STSClient);tn.getDefaultRoleAssumerWithWebIdentity=Tpe;var Cpe=e=>t=>e(o({roleAssumer:(0,tn.getDefaultRoleAssumer)(t),roleAssumerWithWebIdentity:(0,tn.getDefaultRoleAssumerWithWebIdentity)(t)},t));tn.decorateDefaultCredentialProvider=Cpe});var cz=m(Db=>{"use strict";Object.defineProperty(Db,"__esModule",{value:!0});var xpe=$();xpe.__exportStar(lr(),Db)});var lz=m(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});Tn.STSServiceException=void 0;var Zc=$();Zc.__exportStar(nz(),Tn);Zc.__exportStar(Dh(),Tn);Zc.__exportStar(iz(),Tn);Zc.__exportStar(az(),Tn);Zc.__exportStar(cz(),Tn);var Ipe=em();Object.defineProperty(Tn,"STSServiceException",{enumerable:!0,get:function(){return Ipe.STSServiceException}})});var dz=m(Lh=>{"use strict";Object.defineProperty(Lh,"__esModule",{value:!0});Lh.defaultRegionInfoProvider=void 0;var Rpe=Rt(),Npe={"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"]}]}},Ppe={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"]}]}},Dpe=async(e,t)=>(0,Rpe.getRegionInfo)(e,y(o({},t),{signingService:"dynamodb",regionHash:Npe,partitionHash:Ppe}));Lh.defaultRegionInfoProvider=Dpe});var uz=m(qh=>{"use strict";Object.defineProperty(qh,"__esModule",{value:!0});qh.getRuntimeConfig=void 0;var Ope=si(),Lpe=dz(),qpe=e=>{var t,r,n,i,s;return{apiVersion:"2012-08-10",disableHostPrefix:(t=e==null?void 0:e.disableHostPrefix)!==null&&t!==void 0?t:!1,logger:(r=e==null?void 0:e.logger)!==null&&r!==void 0?r:{},regionInfoProvider:(n=e==null?void 0:e.regionInfoProvider)!==null&&n!==void 0?n:Lpe.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:Ope.parseUrl}};qh.getRuntimeConfig=qpe});var _z=m(zh=>{"use strict";Object.defineProperty(zh,"__esModule",{value:!0});zh.getRuntimeConfig=void 0;var Mpe=$(),zpe=Mpe.__importDefault(lP()),jpe=lz(),Mh=Rt(),kpe=Rb(),Fpe=bc(),Upe=Kw(),Ob=hn(),ro=kr(),fz=Tc(),mz=Cc(),Bpe=xc(),Gpe=Ic(),pz=Rc(),$pe=uz(),Vpe=P(),Kpe=Dc(),Hpe=e=>{var t,r,n,i,s,a,c,l,u,f,_,h,v,S,g,I;let O=(0,Kpe.resolveDefaultsModeConfig)(e),C=()=>O().then(Vpe.loadConfigsForDefaultMode),k=(0,$pe.getRuntimeConfig)(e);return y(o(o({},k),e),{runtime:"node",defaultsMode:O,base64Decoder:(t=e==null?void 0:e.base64Decoder)!==null&&t!==void 0?t:mz.fromBase64,base64Encoder:(r=e==null?void 0:e.base64Encoder)!==null&&r!==void 0?r:mz.toBase64,bodyLengthChecker:(n=e==null?void 0:e.bodyLengthChecker)!==null&&n!==void 0?n:Bpe.calculateBodyLength,credentialDefaultProvider:(i=e==null?void 0:e.credentialDefaultProvider)!==null&&i!==void 0?i:(0,jpe.decorateDefaultCredentialProvider)(kpe.defaultProvider),defaultUserAgentProvider:(s=e==null?void 0:e.defaultUserAgentProvider)!==null&&s!==void 0?s:(0,Gpe.defaultUserAgent)({serviceId:k.serviceId,clientVersion:zpe.default.version}),endpointDiscoveryEnabledProvider:(a=e==null?void 0:e.endpointDiscoveryEnabledProvider)!==null&&a!==void 0?a:(0,ro.loadConfig)(Upe.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS),maxAttempts:(c=e==null?void 0:e.maxAttempts)!==null&&c!==void 0?c:(0,ro.loadConfig)(Ob.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(l=e==null?void 0:e.region)!==null&&l!==void 0?l:(0,ro.loadConfig)(Mh.NODE_REGION_CONFIG_OPTIONS,Mh.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(u=e==null?void 0:e.requestHandler)!==null&&u!==void 0?u:new fz.NodeHttpHandler(C),retryMode:(f=e==null?void 0:e.retryMode)!==null&&f!==void 0?f:(0,ro.loadConfig)(y(o({},Ob.NODE_RETRY_MODE_CONFIG_OPTIONS),{default:async()=>(await C()).retryMode||Ob.DEFAULT_RETRY_MODE})),sha256:(_=e==null?void 0:e.sha256)!==null&&_!==void 0?_:Fpe.Hash.bind(null,"sha256"),streamCollector:(h=e==null?void 0:e.streamCollector)!==null&&h!==void 0?h:fz.streamCollector,useDualstackEndpoint:(v=e==null?void 0:e.useDualstackEndpoint)!==null&&v!==void 0?v:(0,ro.loadConfig)(Mh.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(S=e==null?void 0:e.useFipsEndpoint)!==null&&S!==void 0?S:(0,ro.loadConfig)(Mh.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:(g=e==null?void 0:e.utf8Decoder)!==null&&g!==void 0?g:pz.fromUtf8,utf8Encoder:(I=e==null?void 0:e.utf8Encoder)!==null&&I!==void 0?I:pz.toUtf8})};zh.getRuntimeConfig=Hpe});var ci=m(jh=>{"use strict";Object.defineProperty(jh,"__esModule",{value:!0});jh.DynamoDBClient=void 0;var hz=Rt(),Wpe=ja(),Jpe=Kw(),yz=Ua(),Ype=Ba(),gz=hn(),vz=yn(),Sz=Ya(),Qpe=P(),Xpe=tu(),Zpe=_z(),Lb=class extends Qpe.Client{constructor(t){let r=(0,Zpe.getRuntimeConfig)(t),n=(0,hz.resolveRegionConfig)(r),i=(0,hz.resolveEndpointsConfig)(n),s=(0,gz.resolveRetryConfig)(i),a=(0,yz.resolveHostHeaderConfig)(s),c=(0,vz.resolveAwsAuthConfig)(a),l=(0,Sz.resolveUserAgentConfig)(c),u=(0,Jpe.resolveEndpointDiscoveryConfig)(l,{endpointDiscoveryCommandCtor:Xpe.DescribeEndpointsCommand});super(u),this.config=u,this.middlewareStack.use((0,gz.getRetryPlugin)(this.config)),this.middlewareStack.use((0,Wpe.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,yz.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,Ype.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,vz.getAwsAuthPlugin)(this.config)),this.middlewareStack.use((0,Sz.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};jh.DynamoDBClient=Lb});var ns=m(kh=>{"use strict";Object.defineProperty(kh,"__esModule",{value:!0});kh.DynamoDB=void 0;var e_e=Wv(),t_e=Yv(),r_e=Xv(),n_e=eS(),i_e=rS(),s_e=iS(),o_e=oS(),a_e=cS(),c_e=dS(),l_e=fS(),d_e=pS(),u_e=hS(),f_e=tu(),m_e=vS(),p_e=wS(),__e=bS(),h_e=TS(),y_e=xS(),g_e=La(),v_e=NS(),S_e=DS(),w_e=LS(),E_e=MS(),b_e=jS(),A_e=FS(),T_e=BS(),C_e=$S(),x_e=KS(),I_e=gu(),R_e=Su(),N_e=YS(),P_e=bu(),D_e=ZS(),O_e=tw(),L_e=xu(),q_e=iw(),M_e=ow(),z_e=Pu(),j_e=lw(),k_e=uw(),F_e=mw(),U_e=_w(),B_e=yw(),G_e=vw(),$_e=ww(),V_e=bw(),K_e=Tw(),H_e=xw(),W_e=Rw(),J_e=Pw(),Y_e=ci(),qb=class extends Y_e.DynamoDBClient{batchExecuteStatement(t,r,n){let i=new e_e.BatchExecuteStatementCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}batchGetItem(t,r,n){let i=new t_e.BatchGetItemCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}batchWriteItem(t,r,n){let i=new r_e.BatchWriteItemCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}createBackup(t,r,n){let i=new n_e.CreateBackupCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}createGlobalTable(t,r,n){let i=new i_e.CreateGlobalTableCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}createTable(t,r,n){let i=new s_e.CreateTableCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}deleteBackup(t,r,n){let i=new o_e.DeleteBackupCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}deleteItem(t,r,n){let i=new a_e.DeleteItemCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}deleteTable(t,r,n){let i=new c_e.DeleteTableCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}describeBackup(t,r,n){let i=new l_e.DescribeBackupCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}describeContinuousBackups(t,r,n){let i=new d_e.DescribeContinuousBackupsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}describeContributorInsights(t,r,n){let i=new u_e.DescribeContributorInsightsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}describeEndpoints(t,r,n){let i=new f_e.DescribeEndpointsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}describeExport(t,r,n){let i=new m_e.DescribeExportCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}describeGlobalTable(t,r,n){let i=new p_e.DescribeGlobalTableCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}describeGlobalTableSettings(t,r,n){let i=new __e.DescribeGlobalTableSettingsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}describeKinesisStreamingDestination(t,r,n){let i=new h_e.DescribeKinesisStreamingDestinationCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}describeLimits(t,r,n){let i=new y_e.DescribeLimitsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}describeTable(t,r,n){let i=new g_e.DescribeTableCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}describeTableReplicaAutoScaling(t,r,n){let i=new v_e.DescribeTableReplicaAutoScalingCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}describeTimeToLive(t,r,n){let i=new S_e.DescribeTimeToLiveCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}disableKinesisStreamingDestination(t,r,n){let i=new w_e.DisableKinesisStreamingDestinationCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}enableKinesisStreamingDestination(t,r,n){let i=new E_e.EnableKinesisStreamingDestinationCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}executeStatement(t,r,n){let i=new b_e.ExecuteStatementCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}executeTransaction(t,r,n){let i=new A_e.ExecuteTransactionCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}exportTableToPointInTime(t,r,n){let i=new T_e.ExportTableToPointInTimeCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}getItem(t,r,n){let i=new C_e.GetItemCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}listBackups(t,r,n){let i=new x_e.ListBackupsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}listContributorInsights(t,r,n){let i=new I_e.ListContributorInsightsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}listExports(t,r,n){let i=new R_e.ListExportsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}listGlobalTables(t,r,n){let i=new N_e.ListGlobalTablesCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}listTables(t,r,n){let i=new P_e.ListTablesCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}listTagsOfResource(t,r,n){let i=new D_e.ListTagsOfResourceCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}putItem(t,r,n){let i=new O_e.PutItemCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}query(t,r,n){let i=new L_e.QueryCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}restoreTableFromBackup(t,r,n){let i=new q_e.RestoreTableFromBackupCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}restoreTableToPointInTime(t,r,n){let i=new M_e.RestoreTableToPointInTimeCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}scan(t,r,n){let i=new z_e.ScanCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}tagResource(t,r,n){let i=new j_e.TagResourceCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}transactGetItems(t,r,n){let i=new k_e.TransactGetItemsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}transactWriteItems(t,r,n){let i=new F_e.TransactWriteItemsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}untagResource(t,r,n){let i=new U_e.UntagResourceCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}updateContinuousBackups(t,r,n){let i=new B_e.UpdateContinuousBackupsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}updateContributorInsights(t,r,n){let i=new G_e.UpdateContributorInsightsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}updateGlobalTable(t,r,n){let i=new $_e.UpdateGlobalTableCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}updateGlobalTableSettings(t,r,n){let i=new V_e.UpdateGlobalTableSettingsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}updateItem(t,r,n){let i=new K_e.UpdateItemCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}updateTable(t,r,n){let i=new H_e.UpdateTableCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}updateTableReplicaAutoScaling(t,r,n){let i=new W_e.UpdateTableReplicaAutoScalingCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}updateTimeToLive(t,r,n){let i=new J_e.UpdateTimeToLiveCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}};kh.DynamoDB=qb});var wz=m(Q=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});var ie=$();ie.__exportStar(Wv(),Q);ie.__exportStar(Yv(),Q);ie.__exportStar(Xv(),Q);ie.__exportStar(eS(),Q);ie.__exportStar(rS(),Q);ie.__exportStar(iS(),Q);ie.__exportStar(oS(),Q);ie.__exportStar(cS(),Q);ie.__exportStar(dS(),Q);ie.__exportStar(fS(),Q);ie.__exportStar(pS(),Q);ie.__exportStar(hS(),Q);ie.__exportStar(tu(),Q);ie.__exportStar(vS(),Q);ie.__exportStar(wS(),Q);ie.__exportStar(bS(),Q);ie.__exportStar(TS(),Q);ie.__exportStar(xS(),Q);ie.__exportStar(La(),Q);ie.__exportStar(NS(),Q);ie.__exportStar(DS(),Q);ie.__exportStar(LS(),Q);ie.__exportStar(MS(),Q);ie.__exportStar(jS(),Q);ie.__exportStar(FS(),Q);ie.__exportStar(BS(),Q);ie.__exportStar($S(),Q);ie.__exportStar(KS(),Q);ie.__exportStar(gu(),Q);ie.__exportStar(Su(),Q);ie.__exportStar(YS(),Q);ie.__exportStar(bu(),Q);ie.__exportStar(ZS(),Q);ie.__exportStar(tw(),Q);ie.__exportStar(xu(),Q);ie.__exportStar(iw(),Q);ie.__exportStar(ow(),Q);ie.__exportStar(Pu(),Q);ie.__exportStar(lw(),Q);ie.__exportStar(uw(),Q);ie.__exportStar(mw(),Q);ie.__exportStar(_w(),Q);ie.__exportStar(yw(),Q);ie.__exportStar(vw(),Q);ie.__exportStar(ww(),Q);ie.__exportStar(bw(),Q);ie.__exportStar(Tw(),Q);ie.__exportStar(xw(),Q);ie.__exportStar(Rw(),Q);ie.__exportStar(Pw(),Q)});var Ez=m(Mb=>{"use strict";Object.defineProperty(Mb,"__esModule",{value:!0});var Q_e=$();Q_e.__exportStar(Y(),Mb)});var Az=m(bz=>{"use strict";Object.defineProperty(bz,"__esModule",{value:!0})});var Tz=m(Fh=>{"use strict";Object.defineProperty(Fh,"__esModule",{value:!0});Fh.paginateListContributorInsights=void 0;var X_e=gu(),Z_e=ns(),ehe=ci(),the=async(e,t,...r)=>await e.send(new X_e.ListContributorInsightsCommand(t),...r),rhe=async(e,t,...r)=>await e.listContributorInsights(t,...r);async function*nhe(e,t,...r){let n=e.startingToken||void 0,i=!0,s;for(;i;){if(t.NextToken=n,t.MaxResults=e.pageSize,e.client instanceof Z_e.DynamoDB)s=await rhe(e.client,t,...r);else if(e.client instanceof ehe.DynamoDBClient)s=await the(e.client,t,...r);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s;let a=n;n=s.NextToken,i=!!(n&&(!e.stopOnSameToken||n!==a))}return void 0}Fh.paginateListContributorInsights=nhe});var Cz=m(Uh=>{"use strict";Object.defineProperty(Uh,"__esModule",{value:!0});Uh.paginateListExports=void 0;var ihe=Su(),she=ns(),ohe=ci(),ahe=async(e,t,...r)=>await e.send(new ihe.ListExportsCommand(t),...r),che=async(e,t,...r)=>await e.listExports(t,...r);async function*lhe(e,t,...r){let n=e.startingToken||void 0,i=!0,s;for(;i;){if(t.NextToken=n,t.MaxResults=e.pageSize,e.client instanceof she.DynamoDB)s=await che(e.client,t,...r);else if(e.client instanceof ohe.DynamoDBClient)s=await ahe(e.client,t,...r);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s;let a=n;n=s.NextToken,i=!!(n&&(!e.stopOnSameToken||n!==a))}return void 0}Uh.paginateListExports=lhe});var xz=m(Bh=>{"use strict";Object.defineProperty(Bh,"__esModule",{value:!0});Bh.paginateListTables=void 0;var dhe=bu(),uhe=ns(),fhe=ci(),mhe=async(e,t,...r)=>await e.send(new dhe.ListTablesCommand(t),...r),phe=async(e,t,...r)=>await e.listTables(t,...r);async function*_he(e,t,...r){let n=e.startingToken||void 0,i=!0,s;for(;i;){if(t.ExclusiveStartTableName=n,t.Limit=e.pageSize,e.client instanceof uhe.DynamoDB)s=await phe(e.client,t,...r);else if(e.client instanceof fhe.DynamoDBClient)s=await mhe(e.client,t,...r);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s;let a=n;n=s.LastEvaluatedTableName,i=!!(n&&(!e.stopOnSameToken||n!==a))}return void 0}Bh.paginateListTables=_he});var Iz=m(Gh=>{"use strict";Object.defineProperty(Gh,"__esModule",{value:!0});Gh.paginateQuery=void 0;var hhe=xu(),yhe=ns(),ghe=ci(),vhe=async(e,t,...r)=>await e.send(new hhe.QueryCommand(t),...r),She=async(e,t,...r)=>await e.query(t,...r);async function*whe(e,t,...r){let n=e.startingToken||void 0,i=!0,s;for(;i;){if(t.ExclusiveStartKey=n,t.Limit=e.pageSize,e.client instanceof yhe.DynamoDB)s=await She(e.client,t,...r);else if(e.client instanceof ghe.DynamoDBClient)s=await vhe(e.client,t,...r);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s;let a=n;n=s.LastEvaluatedKey,i=!!(n&&(!e.stopOnSameToken||n!==a))}return void 0}Gh.paginateQuery=whe});var Rz=m($h=>{"use strict";Object.defineProperty($h,"__esModule",{value:!0});$h.paginateScan=void 0;var Ehe=Pu(),bhe=ns(),Ahe=ci(),The=async(e,t,...r)=>await e.send(new Ehe.ScanCommand(t),...r),Che=async(e,t,...r)=>await e.scan(t,...r);async function*xhe(e,t,...r){let n=e.startingToken||void 0,i=!0,s;for(;i;){if(t.ExclusiveStartKey=n,t.Limit=e.pageSize,e.client instanceof bhe.DynamoDB)s=await Che(e.client,t,...r);else if(e.client instanceof Ahe.DynamoDBClient)s=await The(e.client,t,...r);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s;let a=n;n=s.LastEvaluatedKey,i=!!(n&&(!e.stopOnSameToken||n!==a))}return void 0}$h.paginateScan=xhe});var Nz=m(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});var no=$();no.__exportStar(Az(),li);no.__exportStar(Tz(),li);no.__exportStar(Cz(),li);no.__exportStar(xz(),li);no.__exportStar(Iz(),li);no.__exportStar(Rz(),li)});var zb=m(Vh=>{"use strict";Object.defineProperty(Vh,"__esModule",{value:!0});Vh.sleep=void 0;var Ihe=e=>new Promise(t=>setTimeout(t,e*1e3));Vh.sleep=Ihe});var Hh=m(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});Cn.checkExceptions=Cn.WaiterState=Cn.waiterServiceDefaults=void 0;Cn.waiterServiceDefaults={minDelay:2,maxDelay:120};var Kh;(function(e){e.ABORTED="ABORTED",e.FAILURE="FAILURE",e.SUCCESS="SUCCESS",e.RETRY="RETRY",e.TIMEOUT="TIMEOUT"})(Kh=Cn.WaiterState||(Cn.WaiterState={}));var Rhe=e=>{if(e.state===Kh.ABORTED){let t=new Error(`${JSON.stringify(y(o({},e),{reason:"Request was aborted"}))}`);throw t.name="AbortError",t}else if(e.state===Kh.TIMEOUT){let t=new Error(`${JSON.stringify(y(o({},e),{reason:"Waiter has timed out"}))}`);throw t.name="TimeoutError",t}else if(e.state!==Kh.SUCCESS)throw new Error(`${JSON.stringify({result:e})}`);return e};Cn.checkExceptions=Rhe});var Pz=m(Jh=>{"use strict";Object.defineProperty(Jh,"__esModule",{value:!0});Jh.runPolling=void 0;var Nhe=zb(),Wh=Hh(),Phe=(e,t,r,n)=>{if(n>r)return t;let i=e*2**(n-1);return Dhe(e,i)},Dhe=(e,t)=>e+Math.random()*(t-e),Ohe=async({minDelay:e,maxDelay:t,maxWaitTime:r,abortController:n,client:i,abortSignal:s},a,c)=>{var l;let{state:u}=await c(i,a);if(u!==Wh.WaiterState.RETRY)return{state:u};let f=1,_=Date.now()+r*1e3,h=Math.log(t/e)/Math.log(2)+1;for(;;){if(((l=n==null?void 0:n.signal)===null||l===void 0?void 0:l.aborted)||(s==null?void 0:s.aborted))return{state:Wh.WaiterState.ABORTED};let v=Phe(e,t,h,f);if(Date.now()+v*1e3>_)return{state:Wh.WaiterState.TIMEOUT};await(0,Nhe.sleep)(v);let{state:S}=await c(i,a);if(S!==Wh.WaiterState.RETRY)return{state:S};f+=1}};Jh.runPolling=Ohe});var Dz=m(Yh=>{"use strict";Object.defineProperty(Yh,"__esModule",{value:!0});Yh.validateWaiterOptions=void 0;var Lhe=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`)};Yh.validateWaiterOptions=Lhe});var Lz=m(Qh=>{"use strict";Object.defineProperty(Qh,"__esModule",{value:!0});var Oz=$();Oz.__exportStar(zb(),Qh);Oz.__exportStar(Dz(),Qh)});var zz=m(Xh=>{"use strict";Object.defineProperty(Xh,"__esModule",{value:!0});Xh.createWaiter=void 0;var qhe=Pz(),Mhe=Lz(),Mz=Hh(),qz=async e=>new Promise(t=>{e.onabort=()=>t({state:Mz.WaiterState.ABORTED})}),zhe=async(e,t,r)=>{let n=o(o({},Mz.waiterServiceDefaults),e);(0,Mhe.validateWaiterOptions)(n);let i=[(0,qhe.runPolling)(n,t,r)];return e.abortController&&i.push(qz(e.abortController.signal)),e.abortSignal&&i.push(qz(e.abortSignal)),Promise.race(i)};Xh.createWaiter=zhe});var jb=m(Zh=>{"use strict";Object.defineProperty(Zh,"__esModule",{value:!0});var jz=$();jz.__exportStar(zz(),Zh);jz.__exportStar(Hh(),Zh)});var Fz=m(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.waitUntilTableExists=so.waitForTableExists=void 0;var io=jb(),jhe=La(),kz=async(e,t)=>{let r;try{let n=await e.send(new jhe.DescribeTableCommand(t));r=n;try{if((()=>n.Table.TableStatus)()==="ACTIVE")return{state:io.WaiterState.SUCCESS,reason:r}}catch{}}catch(n){if(r=n,n.name&&n.name=="ResourceNotFoundException")return{state:io.WaiterState.RETRY,reason:r}}return{state:io.WaiterState.RETRY,reason:r}},khe=async(e,t)=>{let r={minDelay:20,maxDelay:120};return(0,io.createWaiter)(o(o({},r),e),t,kz)};so.waitForTableExists=khe;var Fhe=async(e,t)=>{let r={minDelay:20,maxDelay:120},n=await(0,io.createWaiter)(o(o({},r),e),t,kz);return(0,io.checkExceptions)(n)};so.waitUntilTableExists=Fhe});var Bz=m(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.waitUntilTableNotExists=oo.waitForTableNotExists=void 0;var el=jb(),Uhe=La(),Uz=async(e,t)=>{let r;try{r=await e.send(new Uhe.DescribeTableCommand(t))}catch(n){if(r=n,n.name&&n.name=="ResourceNotFoundException")return{state:el.WaiterState.SUCCESS,reason:r}}return{state:el.WaiterState.RETRY,reason:r}},Bhe=async(e,t)=>{let r={minDelay:20,maxDelay:120};return(0,el.createWaiter)(o(o({},r),e),t,Uz)};oo.waitForTableNotExists=Bhe;var Ghe=async(e,t)=>{let r={minDelay:20,maxDelay:120},n=await(0,el.createWaiter)(o(o({},r),e),t,Uz);return(0,el.checkExceptions)(n)};oo.waitUntilTableNotExists=Ghe});var $z=m(ey=>{"use strict";Object.defineProperty(ey,"__esModule",{value:!0});var Gz=$();Gz.__exportStar(Fz(),ey);Gz.__exportStar(Bz(),ey)});var bt=m(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.DynamoDBServiceException=void 0;var ao=$();ao.__exportStar(ns(),rn);ao.__exportStar(ci(),rn);ao.__exportStar(wz(),rn);ao.__exportStar(Ez(),rn);ao.__exportStar(Nz(),rn);ao.__exportStar($z(),rn);var $he=fd();Object.defineProperty(rn,"DynamoDBServiceException",{enumerable:!0,get:function(){return $he.DynamoDBServiceException}})});var kb=m(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.convertToAttr=void 0;var Vhe=(e,t)=>{var r,n,i,s,a,c;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 ty();if(Array.isArray(e))return Khe(e,t);if(((r=e==null?void 0:e.constructor)===null||r===void 0?void 0:r.name)==="Set")return Hhe(e,t);if(((n=e==null?void 0:e.constructor)===null||n===void 0?void 0:n.name)==="Map")return Whe(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 Vz(e,t);if(Qz(e))return e.length===0&&(t==null?void 0:t.convertEmptyValues)?ty():Hz(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"||((a=e==null?void 0:e.constructor)===null||a===void 0?void 0:a.name)==="Number")return Yz(e);if(typeof e=="bigint")return Jz(e);if(typeof e=="string"||((c=e==null?void 0:e.constructor)===null||c===void 0?void 0:c.name)==="String")return e.length===0&&(t==null?void 0:t.convertEmptyValues)?ty():Wz(e);if((t==null?void 0:t.convertClassInstanceToMap)&&typeof e=="object")return Vz(e,t);throw new Error(`Unsupported type passed: ${e}. Pass options.convertClassInstanceToMap=true to marshall typeof object as map attribute.`)};is.convertToAttr=Vhe;var Khe=(e,t)=>({L:e.filter(r=>!(t!=null&&t.removeUndefinedValues)||(t==null?void 0:t.removeUndefinedValues)&&r!==void 0).map(r=>(0,is.convertToAttr)(r,t))}),Hhe=(e,t)=>{let r=t!=null&&t.removeUndefinedValues?new Set([...e].filter(i=>i!==void 0)):e;if(!(t!=null&&t.removeUndefinedValues)&&r.has(void 0))throw new Error("Pass options.removeUndefinedValues=true to remove undefined values from map/array/set.");if(r.size===0){if(t!=null&&t.convertEmptyValues)return ty();throw new Error("Pass a non-empty set, or options.convertEmptyValues=true.")}let n=r.values().next().value;if(typeof n=="number")return{NS:Array.from(r).map(Yz).map(i=>i.N)};if(typeof n=="bigint")return{NS:Array.from(r).map(Jz).map(i=>i.N)};if(typeof n=="string")return{SS:Array.from(r).map(Wz).map(i=>i.S)};if(Qz(n))return{BS:Array.from(r).map(Hz).map(i=>i.B)};throw new Error("Only Number Set (NS), Binary Set (BS) or String Set (SS) are allowed.")},Whe=(e,t)=>({M:(r=>{let n={};for(let[i,s]of r)typeof s!="function"&&(s!==void 0||!(t!=null&&t.removeUndefinedValues))&&(n[i]=(0,is.convertToAttr)(s,t));return n})(e)}),Vz=(e,t)=>({M:(r=>{let n={};for(let i in r){let s=r[i];typeof s!="function"&&(s!==void 0||!(t!=null&&t.removeUndefinedValues))&&(n[i]=(0,is.convertToAttr)(s,t))}return n})(e)}),ty=()=>({NULL:!0}),Hz=e=>({B:e}),Wz=e=>({S:e.toString()}),Jz=e=>({N:e.toString()}),Kz=e=>{throw new Error(`${e} ${typeof BigInt=="function"?"Use BigInt.":"Pass string value instead."} `)},Yz=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?Kz(`Number ${e.toString()} is greater than Number.MAX_SAFE_INTEGER.`):e<Number.MIN_SAFE_INTEGER&&Kz(`Number ${e.toString()} is lesser than Number.MIN_SAFE_INTEGER.`),{N:e.toString()}},Qz=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 Fb=m(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});co.convertToNative=void 0;var Jhe=(e,t)=>{for(let[r,n]of Object.entries(e))if(n!==void 0)switch(r){case"NULL":return null;case"BOOL":return Boolean(n);case"N":return Xz(n,t);case"B":return ej(n);case"S":return Zz(n);case"L":return Yhe(n,t);case"M":return Qhe(n,t);case"NS":return new Set(n.map(i=>Xz(i,t)));case"BS":return new Set(n.map(ej));case"SS":return new Set(n.map(Zz));default:throw new Error(`Unsupported type passed: ${r}`)}throw new Error(`No value defined: ${JSON.stringify(e)}`)};co.convertToNative=Jhe;var Xz=(e,t)=>{if(t!=null&&t.wrapNumbers)return{value:e};let r=Number(e),n=[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY];if((r>Number.MAX_SAFE_INTEGER||r<Number.MIN_SAFE_INTEGER)&&!n.includes(r))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 r},Zz=e=>e,ej=e=>e,Yhe=(e,t)=>e.map(r=>(0,co.convertToNative)(r,t)),Qhe=(e,t)=>Object.entries(e).reduce((r,[n,i])=>y(o({},r),{[n]:(0,co.convertToNative)(i,t)}),{})});var tj=m(ry=>{"use strict";Object.defineProperty(ry,"__esModule",{value:!0});ry.marshall=void 0;var Xhe=kb();function Zhe(e,t){let r=(0,Xhe.convertToAttr)(e,t),[n,i]=Object.entries(r)[0];switch(n){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 r}}ry.marshall=Zhe});var nj=m(rj=>{"use strict";Object.defineProperty(rj,"__esModule",{value:!0})});var ij=m(ny=>{"use strict";Object.defineProperty(ny,"__esModule",{value:!0});ny.unmarshall=void 0;var eye=Fb(),tye=(e,t)=>(0,eye.convertToNative)({M:e},t);ny.unmarshall=tye});var sj=m(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});var tl=$();tl.__exportStar(kb(),ss);tl.__exportStar(Fb(),ss);tl.__exportStar(tj(),ss);tl.__exportStar(nj(),ss);tl.__exportStar(ij(),ss)});var Ot=m(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.unmarshallOutput=lo.marshallInput=void 0;var aj=sj(),oj=(e,t,r)=>{if(e!==void 0)return!r||Array.isArray(r)&&r.length===0?t(e):Array.isArray(r)?Ub(e,t,r):rye(e,t,r.children)},cj=(e,t,r)=>Array.isArray(e)?e.map(n=>oj(n,t,r)):oj(e,t,r),Ub=(e,t,r)=>r.reduce((n,{key:i,children:s})=>y(o({},n),{[i]:cj(n[i],t,s)}),e),rye=(e,t,r)=>Object.entries(e).reduce((n,[i,s])=>y(o({},n),{[i]:cj(s,t,r)}),{}),nye=(e,t,r)=>Ub(e,i=>(0,aj.marshall)(i,r),t);lo.marshallInput=nye;var iye=(e,t,r)=>Ub(e,i=>(0,aj.unmarshall)(i,r),t);lo.unmarshallOutput=iye});var Gb=m(iy=>{"use strict";Object.defineProperty(iy,"__esModule",{value:!0});iy.BatchExecuteStatementCommand=void 0;var sye=bt(),oye=P(),lj=Ot(),Bb=class extends oye.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"Statements",children:[{key:"Parameters"}]}],this.outputKeyNodes=[{key:"Responses",children:[{key:"Item"}]}]}resolveMiddleware(t,r,n){let{marshallOptions:i,unmarshallOptions:s}=r.translateConfig||{},a=new sye.BatchExecuteStatementCommand((0,lj.marshallInput)(this.input,this.inputKeyNodes,i)),c=a.resolveMiddleware(t,r,n);return async()=>{let l=await c(a);return y(o({},l),{output:(0,lj.unmarshallOutput)(l.output,this.outputKeyNodes,s)})}}};iy.BatchExecuteStatementCommand=Bb});var Vb=m(sy=>{"use strict";Object.defineProperty(sy,"__esModule",{value:!0});sy.BatchGetCommand=void 0;var aye=bt(),cye=P(),dj=Ot(),$b=class extends cye.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,r,n){let{marshallOptions:i,unmarshallOptions:s}=r.translateConfig||{},a=new aye.BatchGetItemCommand((0,dj.marshallInput)(this.input,this.inputKeyNodes,i)),c=a.resolveMiddleware(t,r,n);return async()=>{let l=await c(a);return y(o({},l),{output:(0,dj.unmarshallOutput)(l.output,this.outputKeyNodes,s)})}}};sy.BatchGetCommand=$b});var Hb=m(oy=>{"use strict";Object.defineProperty(oy,"__esModule",{value:!0});oy.BatchWriteCommand=void 0;var lye=bt(),dye=P(),uj=Ot(),Kb=class extends dye.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,r,n){let{marshallOptions:i,unmarshallOptions:s}=r.translateConfig||{},a=new lye.BatchWriteItemCommand((0,uj.marshallInput)(this.input,this.inputKeyNodes,i)),c=a.resolveMiddleware(t,r,n);return async()=>{let l=await c(a);return y(o({},l),{output:(0,uj.unmarshallOutput)(l.output,this.outputKeyNodes,s)})}}};oy.BatchWriteCommand=Kb});var Jb=m(ay=>{"use strict";Object.defineProperty(ay,"__esModule",{value:!0});ay.DeleteCommand=void 0;var uye=bt(),fye=P(),fj=Ot(),Wb=class extends fye.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,r,n){let{marshallOptions:i,unmarshallOptions:s}=r.translateConfig||{},a=new uye.DeleteItemCommand((0,fj.marshallInput)(this.input,this.inputKeyNodes,i)),c=a.resolveMiddleware(t,r,n);return async()=>{let l=await c(a);return y(o({},l),{output:(0,fj.unmarshallOutput)(l.output,this.outputKeyNodes,s)})}}};ay.DeleteCommand=Wb});var Qb=m(cy=>{"use strict";Object.defineProperty(cy,"__esModule",{value:!0});cy.ExecuteStatementCommand=void 0;var mye=bt(),pye=P(),mj=Ot(),Yb=class extends pye.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"Parameters"}],this.outputKeyNodes=[{key:"Items"},{key:"LastEvaluatedKey"}]}resolveMiddleware(t,r,n){let{marshallOptions:i,unmarshallOptions:s}=r.translateConfig||{},a=new mye.ExecuteStatementCommand((0,mj.marshallInput)(this.input,this.inputKeyNodes,i)),c=a.resolveMiddleware(t,r,n);return async()=>{let l=await c(a);return y(o({},l),{output:(0,mj.unmarshallOutput)(l.output,this.outputKeyNodes,s)})}}};cy.ExecuteStatementCommand=Yb});var Zb=m(ly=>{"use strict";Object.defineProperty(ly,"__esModule",{value:!0});ly.ExecuteTransactionCommand=void 0;var _ye=bt(),hye=P(),pj=Ot(),Xb=class extends hye.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"TransactStatements",children:[{key:"Parameters"}]}],this.outputKeyNodes=[{key:"Responses",children:[{key:"Item"}]}]}resolveMiddleware(t,r,n){let{marshallOptions:i,unmarshallOptions:s}=r.translateConfig||{},a=new _ye.ExecuteTransactionCommand((0,pj.marshallInput)(this.input,this.inputKeyNodes,i)),c=a.resolveMiddleware(t,r,n);return async()=>{let l=await c(a);return y(o({},l),{output:(0,pj.unmarshallOutput)(l.output,this.outputKeyNodes,s)})}}};ly.ExecuteTransactionCommand=Xb});var tA=m(dy=>{"use strict";Object.defineProperty(dy,"__esModule",{value:!0});dy.GetCommand=void 0;var yye=bt(),gye=P(),_j=Ot(),eA=class extends gye.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"Key"}],this.outputKeyNodes=[{key:"Item"}]}resolveMiddleware(t,r,n){let{marshallOptions:i,unmarshallOptions:s}=r.translateConfig||{},a=new yye.GetItemCommand((0,_j.marshallInput)(this.input,this.inputKeyNodes,i)),c=a.resolveMiddleware(t,r,n);return async()=>{let l=await c(a);return y(o({},l),{output:(0,_j.unmarshallOutput)(l.output,this.outputKeyNodes,s)})}}};dy.GetCommand=eA});var nA=m(uy=>{"use strict";Object.defineProperty(uy,"__esModule",{value:!0});uy.PutCommand=void 0;var vye=bt(),Sye=P(),hj=Ot(),rA=class extends Sye.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,r,n){let{marshallOptions:i,unmarshallOptions:s}=r.translateConfig||{},a=new vye.PutItemCommand((0,hj.marshallInput)(this.input,this.inputKeyNodes,i)),c=a.resolveMiddleware(t,r,n);return async()=>{let l=await c(a);return y(o({},l),{output:(0,hj.unmarshallOutput)(l.output,this.outputKeyNodes,s)})}}};uy.PutCommand=rA});var my=m(fy=>{"use strict";Object.defineProperty(fy,"__esModule",{value:!0});fy.QueryCommand=void 0;var wye=bt(),Eye=P(),yj=Ot(),iA=class extends Eye.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,r,n){let{marshallOptions:i,unmarshallOptions:s}=r.translateConfig||{},a=new wye.QueryCommand((0,yj.marshallInput)(this.input,this.inputKeyNodes,i)),c=a.resolveMiddleware(t,r,n);return async()=>{let l=await c(a);return y(o({},l),{output:(0,yj.unmarshallOutput)(l.output,this.outputKeyNodes,s)})}}};fy.QueryCommand=iA});var _y=m(py=>{"use strict";Object.defineProperty(py,"__esModule",{value:!0});py.ScanCommand=void 0;var bye=bt(),Aye=P(),gj=Ot(),sA=class extends Aye.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,r,n){let{marshallOptions:i,unmarshallOptions:s}=r.translateConfig||{},a=new bye.ScanCommand((0,gj.marshallInput)(this.input,this.inputKeyNodes,i)),c=a.resolveMiddleware(t,r,n);return async()=>{let l=await c(a);return y(o({},l),{output:(0,gj.unmarshallOutput)(l.output,this.outputKeyNodes,s)})}}};py.ScanCommand=sA});var aA=m(hy=>{"use strict";Object.defineProperty(hy,"__esModule",{value:!0});hy.TransactGetCommand=void 0;var Tye=bt(),Cye=P(),vj=Ot(),oA=class extends Cye.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,r,n){let{marshallOptions:i,unmarshallOptions:s}=r.translateConfig||{},a=new Tye.TransactGetItemsCommand((0,vj.marshallInput)(this.input,this.inputKeyNodes,i)),c=a.resolveMiddleware(t,r,n);return async()=>{let l=await c(a);return y(o({},l),{output:(0,vj.unmarshallOutput)(l.output,this.outputKeyNodes,s)})}}};hy.TransactGetCommand=oA});var lA=m(yy=>{"use strict";Object.defineProperty(yy,"__esModule",{value:!0});yy.TransactWriteCommand=void 0;var xye=bt(),Iye=P(),Sj=Ot(),cA=class extends Iye.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,r,n){let{marshallOptions:i,unmarshallOptions:s}=r.translateConfig||{},a=new xye.TransactWriteItemsCommand((0,Sj.marshallInput)(this.input,this.inputKeyNodes,i)),c=a.resolveMiddleware(t,r,n);return async()=>{let l=await c(a);return y(o({},l),{output:(0,Sj.unmarshallOutput)(l.output,this.outputKeyNodes,s)})}}};yy.TransactWriteCommand=cA});var uA=m(gy=>{"use strict";Object.defineProperty(gy,"__esModule",{value:!0});gy.UpdateCommand=void 0;var Rye=bt(),Nye=P(),wj=Ot(),dA=class extends Nye.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,r,n){let{marshallOptions:i,unmarshallOptions:s}=r.translateConfig||{},a=new Rye.UpdateItemCommand((0,wj.marshallInput)(this.input,this.inputKeyNodes,i)),c=a.resolveMiddleware(t,r,n);return async()=>{let l=await c(a);return y(o({},l),{output:(0,wj.unmarshallOutput)(l.output,this.outputKeyNodes,s)})}}};gy.UpdateCommand=dA});var nl=m(vy=>{"use strict";Object.defineProperty(vy,"__esModule",{value:!0});vy.DynamoDBDocumentClient=void 0;var Pye=P(),rl=class extends Pye.Client{constructor(t,r){super(t.config),this.config=t.config,this.config.translateConfig=r,this.middlewareStack=t.middlewareStack}static from(t,r){return new rl(t,r)}destroy(){}};vy.DynamoDBDocumentClient=rl});var wy=m(Sy=>{"use strict";Object.defineProperty(Sy,"__esModule",{value:!0});Sy.DynamoDBDocument=void 0;var Dye=Gb(),Oye=Vb(),Lye=Hb(),qye=Jb(),Mye=Qb(),zye=Zb(),jye=tA(),kye=nA(),Fye=my(),Uye=_y(),Bye=aA(),Gye=lA(),$ye=uA(),Vye=nl(),il=class extends Vye.DynamoDBDocumentClient{static from(t,r){return new il(t,r)}batchExecuteStatement(t,r,n){let i=new Dye.BatchExecuteStatementCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}batchGet(t,r,n){let i=new Oye.BatchGetCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}batchWrite(t,r,n){let i=new Lye.BatchWriteCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}delete(t,r,n){let i=new qye.DeleteCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}executeStatement(t,r,n){let i=new Mye.ExecuteStatementCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}executeTransaction(t,r,n){let i=new zye.ExecuteTransactionCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}get(t,r,n){let i=new jye.GetCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}put(t,r,n){let i=new kye.PutCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}query(t,r,n){let i=new Fye.QueryCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}scan(t,r,n){let i=new Uye.ScanCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}transactGet(t,r,n){let i=new Bye.TransactGetCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}transactWrite(t,r,n){let i=new Gye.TransactWriteCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}update(t,r,n){let i=new $ye.UpdateCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}};Sy.DynamoDBDocument=il});var Ej=m(At=>{"use strict";Object.defineProperty(At,"__esModule",{value:!0});var Kt=$();Kt.__exportStar(Gb(),At);Kt.__exportStar(Vb(),At);Kt.__exportStar(Hb(),At);Kt.__exportStar(Jb(),At);Kt.__exportStar(Qb(),At);Kt.__exportStar(Zb(),At);Kt.__exportStar(tA(),At);Kt.__exportStar(nA(),At);Kt.__exportStar(my(),At);Kt.__exportStar(_y(),At);Kt.__exportStar(aA(),At);Kt.__exportStar(lA(),At);Kt.__exportStar(uA(),At)});var Aj=m(bj=>{"use strict";Object.defineProperty(bj,"__esModule",{value:!0})});var Tj=m(Ey=>{"use strict";Object.defineProperty(Ey,"__esModule",{value:!0});Ey.paginateQuery=void 0;var Kye=my(),Hye=wy(),Wye=nl(),Jye=async(e,t,...r)=>await e.send(new Kye.QueryCommand(t),...r),Yye=async(e,t,...r)=>await e.query(t,...r);async function*Qye(e,t,...r){let n=e.startingToken||void 0,i=!0,s;for(;i;){if(t.ExclusiveStartKey=n,t.Limit=e.pageSize,e.client instanceof Hye.DynamoDBDocument)s=await Yye(e.client,t,...r);else if(e.client instanceof Wye.DynamoDBDocumentClient)s=await Jye(e.client,t,...r);else throw new Error("Invalid client, expected DynamoDBDocument | DynamoDBDocumentClient");yield s,n=s.LastEvaluatedKey,i=!!n}return void 0}Ey.paginateQuery=Qye});var Cj=m(by=>{"use strict";Object.defineProperty(by,"__esModule",{value:!0});by.paginateScan=void 0;var Xye=_y(),Zye=wy(),ege=nl(),tge=async(e,t,...r)=>await e.send(new Xye.ScanCommand(t),...r),rge=async(e,t,...r)=>await e.scan(t,...r);async function*nge(e,t,...r){let n=e.startingToken||void 0,i=!0,s;for(;i;){if(t.ExclusiveStartKey=n,t.Limit=e.pageSize,e.client instanceof Zye.DynamoDBDocument)s=await rge(e.client,t,...r);else if(e.client instanceof ege.DynamoDBDocumentClient)s=await tge(e.client,t,...r);else throw new Error("Invalid client, expected DynamoDBDocument | DynamoDBDocumentClient");yield s,n=s.LastEvaluatedKey,i=!!n}return void 0}by.paginateScan=nge});var xj=m(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0});var fA=$();fA.__exportStar(Aj(),sl);fA.__exportStar(Tj(),sl);fA.__exportStar(Cj(),sl)});var Ij=m(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});var Ay=$();Ay.__exportStar(wy(),uo);Ay.__exportStar(nl(),uo);Ay.__exportStar(Ej(),uo);Ay.__exportStar(xj(),uo)});var Rj=m(Ty=>{"use strict";Object.defineProperty(Ty,"__esModule",{value:!0});Ty.DBManager=void 0;var ige=Ij(),mA=class{constructor(t){let{dynamoClient:r,tableName:n}=t;this._tableName=n,this._client=r,this._ddbDocClient=ige.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}};Ty.DBManager=mA});var Nj=m(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});ol.TransformationType=void 0;var sge;(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"})(sge=ol.TransformationType||(ol.TransformationType={}))});var al=m(os=>{"use strict";var oge=os&&os.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),age=os&&os.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&oge(t,e,r)};Object.defineProperty(os,"__esModule",{value:!0});age(Nj(),os)});var Pj=m(Cy=>{"use strict";Object.defineProperty(Cy,"__esModule",{value:!0});Cy.MetadataStorage=void 0;var xn=al(),pA=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,r,n){return this.findMetadatas(this._transformMetadatas,t,r).filter(i=>!i.options||i.options.toClassOnly===!0&&i.options.toPlainOnly===!0?!0:i.options.toClassOnly===!0?n===xn.TransformationType.CLASS_TO_CLASS||n===xn.TransformationType.PLAIN_TO_CLASS:i.options.toPlainOnly===!0?n===xn.TransformationType.CLASS_TO_PLAIN:!0)}findExcludeMetadata(t,r){return this.findMetadata(this._excludeMetadatas,t,r)}findExposeMetadata(t,r){return this.findMetadata(this._exposeMetadatas,t,r)}findExposeMetadataByCustomName(t,r){return this.getExposedMetadatas(t).find(n=>n.options&&n.options.name===r)}findTypeMetadata(t,r){return this.findMetadata(this._typeMetadatas,t,r)}getStrategy(t){let r=this._excludeMetadatas.get(t),n=r&&r.get(void 0),i=this._exposeMetadatas.get(t),s=i&&i.get(void 0);return n&&s||!n&&!s?"none":n?"excludeAll":"exposeAll"}getExposedMetadatas(t){return this.getMetadata(this._exposeMetadatas,t)}getExcludedMetadatas(t){return this.getMetadata(this._excludeMetadatas,t)}getExposedProperties(t,r){return this.getExposedMetadatas(t).filter(n=>!n.options||n.options.toClassOnly===!0&&n.options.toPlainOnly===!0?!0:n.options.toClassOnly===!0?r===xn.TransformationType.CLASS_TO_CLASS||r===xn.TransformationType.PLAIN_TO_CLASS:n.options.toPlainOnly===!0?r===xn.TransformationType.CLASS_TO_PLAIN:!0).map(n=>n.propertyName)}getExcludedProperties(t,r){return this.getExcludedMetadatas(t).filter(n=>!n.options||n.options.toClassOnly===!0&&n.options.toPlainOnly===!0?!0:n.options.toClassOnly===!0?r===xn.TransformationType.CLASS_TO_CLASS||r===xn.TransformationType.PLAIN_TO_CLASS:n.options.toPlainOnly===!0?r===xn.TransformationType.CLASS_TO_PLAIN:!0).map(n=>n.propertyName)}clear(){this._typeMetadatas.clear(),this._exposeMetadatas.clear(),this._excludeMetadatas.clear(),this._ancestorsMap.clear()}getMetadata(t,r){let n=t.get(r),i;n&&(i=Array.from(n.values()).filter(a=>a.propertyName!==void 0));let s=[];for(let a of this.getAncestors(r)){let c=t.get(a);if(c){let l=Array.from(c.values()).filter(u=>u.propertyName!==void 0);s.push(...l)}}return s.concat(i||[])}findMetadata(t,r,n){let i=t.get(r);if(i){let s=i.get(n);if(s)return s}for(let s of this.getAncestors(r)){let a=t.get(s);if(a){let c=a.get(n);if(c)return c}}}findMetadatas(t,r,n){let i=t.get(r),s;i&&(s=i.get(n));let a=[];for(let c of this.getAncestors(r)){let l=t.get(c);l&&l.has(n)&&a.push(...l.get(n))}return a.slice().reverse().concat((s||[]).slice().reverse())}getAncestors(t){if(!t)return[];if(!this._ancestorsMap.has(t)){let r=[];for(let n=Object.getPrototypeOf(t.prototype.constructor);typeof n.prototype<"u";n=Object.getPrototypeOf(n.prototype.constructor))r.push(n);this._ancestorsMap.set(t,r)}return this._ancestorsMap.get(t)}};Cy.MetadataStorage=pA});var fo=m(xy=>{"use strict";Object.defineProperty(xy,"__esModule",{value:!0});xy.defaultMetadataStorage=void 0;var cge=Pj();xy.defaultMetadataStorage=new cge.MetadataStorage});var Dj=m(Iy=>{"use strict";Object.defineProperty(Iy,"__esModule",{value:!0});Iy.getGlobal=void 0;function lge(){if(typeof globalThis<"u")return globalThis;if(typeof global<"u")return global;if(typeof window<"u")return window;if(typeof self<"u")return self}Iy.getGlobal=lge});var Oj=m(Ry=>{"use strict";Object.defineProperty(Ry,"__esModule",{value:!0});Ry.isPromise=void 0;function dge(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}Ry.isPromise=dge});var qj=m(di=>{"use strict";var uge=di&&di.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Lj=di&&di.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&uge(t,e,r)};Object.defineProperty(di,"__esModule",{value:!0});Lj(Dj(),di);Lj(Oj(),di)});var zj=m(Ny=>{"use strict";Object.defineProperty(Ny,"__esModule",{value:!0});Ny.TransformOperationExecutor=void 0;var Lt=fo(),$e=al(),Mj=qj();function fge(e){let t=new e;return!(t instanceof Set)&&!("push"in t)?[]:t}var _A=class{constructor(t,r){this.transformationType=t,this.options=r,this.recursionStack=new Set}transform(t,r,n,i,s,a=0){if(Array.isArray(r)||r instanceof Set){let c=i&&this.transformationType===$e.TransformationType.PLAIN_TO_CLASS?fge(i):[];return r.forEach((l,u)=>{let f=t?t[u]:void 0;if(!this.options.enableCircularCheck||!this.isCircular(l)){let _;if(typeof n!="function"&&n&&n.options&&n.options.discriminator&&n.options.discriminator.property&&n.options.discriminator.subTypes){if(this.transformationType===$e.TransformationType.PLAIN_TO_CLASS){_=n.options.discriminator.subTypes.find(g=>g.name===l[n.options.discriminator.property]);let v={newObject:c,object:l,property:void 0},S=n.typeFunction(v);_===void 0?_=S:_=_.value,n.options.keepDiscriminatorProperty||delete l[n.options.discriminator.property]}this.transformationType===$e.TransformationType.CLASS_TO_CLASS&&(_=l.constructor),this.transformationType===$e.TransformationType.CLASS_TO_PLAIN&&(l[n.options.discriminator.property]=n.options.discriminator.subTypes.find(v=>v.value===l.constructor).name)}else _=n;let h=this.transform(f,l,_,void 0,l instanceof Map,a+1);c instanceof Set?c.add(h):c.push(h)}else this.transformationType===$e.TransformationType.CLASS_TO_CLASS&&(c instanceof Set?c.add(l):c.push(l))}),c}else{if(n===String&&!s)return r==null?r:String(r);if(n===Number&&!s)return r==null?r:Number(r);if(n===Boolean&&!s)return r==null?r:Boolean(r);if((n===Date||r instanceof Date)&&!s)return r instanceof Date?new Date(r.valueOf()):r==null?r:new Date(r);if(!!(0,Mj.getGlobal)().Buffer&&(n===Buffer||r instanceof Buffer)&&!s)return r==null?r:Buffer.from(r);if((0,Mj.isPromise)(r)&&!s)return new Promise((c,l)=>{r.then(u=>c(this.transform(void 0,u,n,void 0,void 0,a+1)),l)});if(!s&&r!==null&&typeof r=="object"&&typeof r.then=="function")return r;if(typeof r=="object"&&r!==null){!n&&r.constructor!==Object&&(!Array.isArray(r)&&r.constructor===Array||(n=r.constructor)),!n&&t&&(n=t.constructor),this.options.enableCircularCheck&&this.recursionStack.add(r);let c=this.getKeys(n,r,s),l=t||{};!t&&(this.transformationType===$e.TransformationType.PLAIN_TO_CLASS||this.transformationType===$e.TransformationType.CLASS_TO_CLASS)&&(s?l=new Map:n?l=new n:l={});for(let u of c){if(u==="__proto__"||u==="constructor")continue;let f=u,_=u,h=u;if(!this.options.ignoreDecorators&&n){if(this.transformationType===$e.TransformationType.PLAIN_TO_CLASS){let C=Lt.defaultMetadataStorage.findExposeMetadataByCustomName(n,u);C&&(h=C.propertyName,_=C.propertyName)}else if(this.transformationType===$e.TransformationType.CLASS_TO_PLAIN||this.transformationType===$e.TransformationType.CLASS_TO_CLASS){let C=Lt.defaultMetadataStorage.findExposeMetadata(n,u);C&&C.options&&C.options.name&&(_=C.options.name)}}let v;this.transformationType===$e.TransformationType.PLAIN_TO_CLASS?v=r[f]:r instanceof Map?v=r.get(f):r[f]instanceof Function?v=r[f]():v=r[f];let S,g=v instanceof Map;if(n&&s)S=n;else if(n){let C=Lt.defaultMetadataStorage.findTypeMetadata(n,h);if(C){let k={newObject:l,object:r,property:h},_e=C.typeFunction?C.typeFunction(k):C.reflectedType;C.options&&C.options.discriminator&&C.options.discriminator.property&&C.options.discriminator.subTypes?r[f]instanceof Array?S=C:(this.transformationType===$e.TransformationType.PLAIN_TO_CLASS&&(S=C.options.discriminator.subTypes.find(Ut=>{if(v&&v instanceof Object&&C.options.discriminator.property in v)return Ut.name===v[C.options.discriminator.property]}),S===void 0?S=_e:S=S.value,C.options.keepDiscriminatorProperty||v&&v instanceof Object&&C.options.discriminator.property in v&&delete v[C.options.discriminator.property]),this.transformationType===$e.TransformationType.CLASS_TO_CLASS&&(S=v.constructor),this.transformationType===$e.TransformationType.CLASS_TO_PLAIN&&v&&(v[C.options.discriminator.property]=C.options.discriminator.subTypes.find(Ut=>Ut.value===v.constructor).name)):S=_e,g=g||C.reflectedType===Map}else if(this.options.targetMaps)this.options.targetMaps.filter(k=>k.target===n&&!!k.properties[h]).forEach(k=>S=k.properties[h]);else if(this.options.enableImplicitConversion&&this.transformationType===$e.TransformationType.PLAIN_TO_CLASS){let k=Reflect.getMetadata("design:type",n.prototype,h);k&&(S=k)}}let I=Array.isArray(r[f])?this.getReflectedType(n,h):void 0,O=t?t[f]:void 0;if(l.constructor.prototype){let C=Object.getOwnPropertyDescriptor(l.constructor.prototype,_);if((this.transformationType===$e.TransformationType.PLAIN_TO_CLASS||this.transformationType===$e.TransformationType.CLASS_TO_CLASS)&&(C&&!C.set||l[_]instanceof Function))continue}if(!this.options.enableCircularCheck||!this.isCircular(v)){let C=this.transformationType===$e.TransformationType.PLAIN_TO_CLASS?_:u,k;this.transformationType===$e.TransformationType.CLASS_TO_PLAIN?(k=r[C],k=this.applyCustomTransformations(k,n,C,r,this.transformationType),k=r[C]===k?v:k,k=this.transform(O,k,S,I,g,a+1)):v===void 0&&this.options.exposeDefaultValues?k=l[_]:(k=this.transform(O,v,S,I,g,a+1),k=this.applyCustomTransformations(k,n,C,r,this.transformationType)),(k!==void 0||this.options.exposeUnsetFields)&&(l instanceof Map?l.set(_,k):l[_]=k)}else if(this.transformationType===$e.TransformationType.CLASS_TO_CLASS){let C=v;C=this.applyCustomTransformations(C,n,u,r,this.transformationType),(C!==void 0||this.options.exposeUnsetFields)&&(l instanceof Map?l.set(_,C):l[_]=C)}}return this.options.enableCircularCheck&&this.recursionStack.delete(r),l}else return r}}applyCustomTransformations(t,r,n,i,s){let a=Lt.defaultMetadataStorage.findTransformMetadatas(r,n,this.transformationType);return this.options.version!==void 0&&(a=a.filter(c=>c.options?this.checkVersion(c.options.since,c.options.until):!0)),this.options.groups&&this.options.groups.length?a=a.filter(c=>c.options?this.checkGroups(c.options.groups):!0):a=a.filter(c=>!c.options||!c.options.groups||!c.options.groups.length),a.forEach(c=>{t=c.transformFn({value:t,key:n,obj:i,type:s,options:this.options})}),t}isCircular(t){return this.recursionStack.has(t)}getReflectedType(t,r){if(!t)return;let n=Lt.defaultMetadataStorage.findTypeMetadata(t,r);return n?n.reflectedType:void 0}getKeys(t,r,n){let i=Lt.defaultMetadataStorage.getStrategy(t);i==="none"&&(i=this.options.strategy||"exposeAll");let s=[];if((i==="exposeAll"||n)&&(r instanceof Map?s=Array.from(r.keys()):s=Object.keys(r)),n)return s;if(this.options.ignoreDecorators&&this.options.excludeExtraneousValues&&t){let a=Lt.defaultMetadataStorage.getExposedProperties(t,this.transformationType),c=Lt.defaultMetadataStorage.getExcludedProperties(t,this.transformationType);s=[...a,...c]}if(!this.options.ignoreDecorators&&t){let a=Lt.defaultMetadataStorage.getExposedProperties(t,this.transformationType);this.transformationType===$e.TransformationType.PLAIN_TO_CLASS&&(a=a.map(l=>{let u=Lt.defaultMetadataStorage.findExposeMetadata(t,l);return u&&u.options&&u.options.name?u.options.name:l})),this.options.excludeExtraneousValues?s=a:s=s.concat(a);let c=Lt.defaultMetadataStorage.getExcludedProperties(t,this.transformationType);c.length>0&&(s=s.filter(l=>!c.includes(l))),this.options.version!==void 0&&(s=s.filter(l=>{let u=Lt.defaultMetadataStorage.findExposeMetadata(t,l);return!u||!u.options?!0:this.checkVersion(u.options.since,u.options.until)})),this.options.groups&&this.options.groups.length?s=s.filter(l=>{let u=Lt.defaultMetadataStorage.findExposeMetadata(t,l);return!u||!u.options?!0:this.checkGroups(u.options.groups)}):s=s.filter(l=>{let u=Lt.defaultMetadataStorage.findExposeMetadata(t,l);return!u||!u.options||!u.options.groups||!u.options.groups.length})}return this.options.excludePrefixes&&this.options.excludePrefixes.length&&(s=s.filter(a=>this.options.excludePrefixes.every(c=>a.substr(0,c.length)!==c))),s=s.filter((a,c,l)=>l.indexOf(a)===c),s}checkVersion(t,r){let n=!0;return n&&t&&(n=this.options.version>=t),n&&r&&(n=this.options.version<r),n}checkGroups(t){return t?this.options.groups.some(r=>t.includes(r)):!0}};Ny.TransformOperationExecutor=_A});var jj=m(Py=>{"use strict";Object.defineProperty(Py,"__esModule",{value:!0});Py.defaultOptions=void 0;Py.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 ho=m(Dy=>{"use strict";Object.defineProperty(Dy,"__esModule",{value:!0});Dy.ClassTransformer=void 0;var mo=zj(),po=al(),_o=jj(),hA=class{instanceToPlain(t,r){return new mo.TransformOperationExecutor(po.TransformationType.CLASS_TO_PLAIN,o(o({},_o.defaultOptions),r)).transform(void 0,t,void 0,void 0,void 0,void 0)}classToPlainFromExist(t,r,n){return new mo.TransformOperationExecutor(po.TransformationType.CLASS_TO_PLAIN,o(o({},_o.defaultOptions),n)).transform(r,t,void 0,void 0,void 0,void 0)}plainToInstance(t,r,n){return new mo.TransformOperationExecutor(po.TransformationType.PLAIN_TO_CLASS,o(o({},_o.defaultOptions),n)).transform(void 0,r,t,void 0,void 0,void 0)}plainToClassFromExist(t,r,n){return new mo.TransformOperationExecutor(po.TransformationType.PLAIN_TO_CLASS,o(o({},_o.defaultOptions),n)).transform(t,r,void 0,void 0,void 0,void 0)}instanceToInstance(t,r){return new mo.TransformOperationExecutor(po.TransformationType.CLASS_TO_CLASS,o(o({},_o.defaultOptions),r)).transform(void 0,t,void 0,void 0,void 0,void 0)}classToClassFromExist(t,r,n){return new mo.TransformOperationExecutor(po.TransformationType.CLASS_TO_CLASS,o(o({},_o.defaultOptions),n)).transform(r,t,void 0,void 0,void 0,void 0)}serialize(t,r){return JSON.stringify(this.instanceToPlain(t,r))}deserialize(t,r,n){let i=JSON.parse(r);return this.plainToInstance(t,i,n)}deserializeArray(t,r,n){let i=JSON.parse(r);return this.plainToInstance(t,i,n)}};Dy.ClassTransformer=hA});var kj=m(Oy=>{"use strict";Object.defineProperty(Oy,"__esModule",{value:!0});Oy.Exclude=void 0;var mge=fo();function pge(e={}){return function(t,r){mge.defaultMetadataStorage.addExcludeMetadata({target:t instanceof Function?t:t.constructor,propertyName:r,options:e})}}Oy.Exclude=pge});var Fj=m(Ly=>{"use strict";Object.defineProperty(Ly,"__esModule",{value:!0});Ly.Expose=void 0;var _ge=fo();function hge(e={}){return function(t,r){_ge.defaultMetadataStorage.addExposeMetadata({target:t instanceof Function?t:t.constructor,propertyName:r,options:e})}}Ly.Expose=hge});var Uj=m(qy=>{"use strict";Object.defineProperty(qy,"__esModule",{value:!0});qy.TransformInstanceToInstance=void 0;var yge=ho();function gge(e){return function(t,r,n){let i=new yge.ClassTransformer,s=n.value;n.value=function(...a){let c=s.apply(this,a);return!!c&&(typeof c=="object"||typeof c=="function")&&typeof c.then=="function"?c.then(u=>i.instanceToInstance(u,e)):i.instanceToInstance(c,e)}}}qy.TransformInstanceToInstance=gge});var Bj=m(My=>{"use strict";Object.defineProperty(My,"__esModule",{value:!0});My.TransformInstanceToPlain=void 0;var vge=ho();function Sge(e){return function(t,r,n){let i=new vge.ClassTransformer,s=n.value;n.value=function(...a){let c=s.apply(this,a);return!!c&&(typeof c=="object"||typeof c=="function")&&typeof c.then=="function"?c.then(u=>i.instanceToPlain(u,e)):i.instanceToPlain(c,e)}}}My.TransformInstanceToPlain=Sge});var Gj=m(zy=>{"use strict";Object.defineProperty(zy,"__esModule",{value:!0});zy.TransformPlainToInstance=void 0;var wge=ho();function Ege(e,t){return function(r,n,i){let s=new wge.ClassTransformer,a=i.value;i.value=function(...c){let l=a.apply(this,c);return!!l&&(typeof l=="object"||typeof l=="function")&&typeof l.then=="function"?l.then(f=>s.plainToInstance(e,f,t)):s.plainToInstance(e,l,t)}}}zy.TransformPlainToInstance=Ege});var $j=m(jy=>{"use strict";Object.defineProperty(jy,"__esModule",{value:!0});jy.Transform=void 0;var bge=fo();function Age(e,t={}){return function(r,n){bge.defaultMetadataStorage.addTransformMetadata({target:r.constructor,propertyName:n,transformFn:e,options:t})}}jy.Transform=Age});var Vj=m(ky=>{"use strict";Object.defineProperty(ky,"__esModule",{value:!0});ky.Type=void 0;var Tge=fo();function Cge(e,t={}){return function(r,n){let i=Reflect.getMetadata("design:type",r,n);Tge.defaultMetadataStorage.addTypeMetadata({target:r.constructor,propertyName:n,reflectedType:i,typeFunction:e,options:t})}}ky.Type=Cge});var Kj=m(Ht=>{"use strict";var xge=Ht&&Ht.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),as=Ht&&Ht.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&xge(t,e,r)};Object.defineProperty(Ht,"__esModule",{value:!0});as(kj(),Ht);as(Fj(),Ht);as(Uj(),Ht);as(Bj(),Ht);as(Gj(),Ht);as($j(),Ht);as(Vj(),Ht)});var Wj=m(Hj=>{"use strict";Object.defineProperty(Hj,"__esModule",{value:!0})});var Yj=m(Jj=>{"use strict";Object.defineProperty(Jj,"__esModule",{value:!0})});var Xj=m(Qj=>{"use strict";Object.defineProperty(Qj,"__esModule",{value:!0})});var ek=m(Zj=>{"use strict";Object.defineProperty(Zj,"__esModule",{value:!0})});var rk=m(tk=>{"use strict";Object.defineProperty(tk,"__esModule",{value:!0})});var ik=m(nk=>{"use strict";Object.defineProperty(nk,"__esModule",{value:!0})});var ok=m(sk=>{"use strict";Object.defineProperty(sk,"__esModule",{value:!0})});var ck=m(ak=>{"use strict";Object.defineProperty(ak,"__esModule",{value:!0})});var dk=m(lk=>{"use strict";Object.defineProperty(lk,"__esModule",{value:!0})});var fk=m(uk=>{"use strict";Object.defineProperty(uk,"__esModule",{value:!0})});var pk=m(mk=>{"use strict";Object.defineProperty(mk,"__esModule",{value:!0})});var hk=m(_k=>{"use strict";Object.defineProperty(_k,"__esModule",{value:!0})});var gk=m(yk=>{"use strict";Object.defineProperty(yk,"__esModule",{value:!0})});var Sk=m(vk=>{"use strict";Object.defineProperty(vk,"__esModule",{value:!0})});var wk=m(Ye=>{"use strict";var Ige=Ye&&Ye.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),qt=Ye&&Ye.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Ige(t,e,r)};Object.defineProperty(Ye,"__esModule",{value:!0});qt(Wj(),Ye);qt(Yj(),Ye);qt(Xj(),Ye);qt(ek(),Ye);qt(rk(),Ye);qt(ik(),Ye);qt(ok(),Ye);qt(ck(),Ye);qt(dk(),Ye);qt(fk(),Ye);qt(pk(),Ye);qt(hk(),Ye);qt(gk(),Ye);qt(Sk(),Ye)});var Fy=m(xe=>{"use strict";var Rge=xe&&xe.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),yA=xe&&xe.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Rge(t,e,r)};Object.defineProperty(xe,"__esModule",{value:!0});xe.deserializeArray=xe.deserialize=xe.serialize=xe.classToClassFromExist=xe.instanceToInstance=xe.plainToClassFromExist=xe.plainToInstance=xe.classToPlainFromExist=xe.instanceToPlain=xe.ClassTransformer=void 0;var Nge=ho(),Pge=ho();Object.defineProperty(xe,"ClassTransformer",{enumerable:!0,get:function(){return Pge.ClassTransformer}});yA(Kj(),xe);yA(wk(),xe);yA(al(),xe);var In=new Nge.ClassTransformer;function Dge(e,t){return In.instanceToPlain(e,t)}xe.instanceToPlain=Dge;function Oge(e,t,r){return In.classToPlainFromExist(e,t,r)}xe.classToPlainFromExist=Oge;function Lge(e,t,r){return In.plainToInstance(e,t,r)}xe.plainToInstance=Lge;function qge(e,t,r){return In.plainToClassFromExist(e,t,r)}xe.plainToClassFromExist=qge;function Mge(e,t){return In.instanceToInstance(e,t)}xe.instanceToInstance=Mge;function zge(e,t,r){return In.classToClassFromExist(e,t,r)}xe.classToClassFromExist=zge;function jge(e,t){return In.serialize(e,t)}xe.serialize=jge;function kge(e,t,r){return In.deserialize(e,t,r)}xe.deserialize=kge;function Fge(e,t,r){return In.deserializeArray(e,t,r)}xe.deserializeArray=Fge});var gA=m(Uy=>{"use strict";Object.defineProperty(Uy,"__esModule",{value:!0});Uy.Rules=void 0;var Uge=Fy(),cl=class{constructor(t){Object.assign(this,t),t===void 0&&(this._ruleSet={})}static async Load(t){let{dbManager:r,key:n}=t,{Item:i}=await r.ddbDocClient.get({TableName:r.tableName,Key:{PK:`appName#${n.AppName}`.toLowerCase(),SK:"rules"}});return(0,Uge.plainToInstance)(cl,i)}get DbStruct(){return{PK:this.PK,SK:this.SK,AppName:this.AppName,RuleSet:this.RuleSet,Version:this.Version}}async Save(t){let r=t.ddbDocClient.put({TableName:t.tableName,Item:this.DbStruct}),n=t.ddbDocClient.put({TableName:t.tableName,Item:this.DbStruct});await Promise.all([r,n]),await r,await n}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}};Uy.Rules=cl});var vA=m(By=>{"use strict";Object.defineProperty(By,"__esModule",{value:!0});By.Version=void 0;var Ek=Fy(),yo;(function(e){e[e.AppName=0]="AppName"})(yo||(yo={}));var go=class{constructor(t){this._keyBy=yo.AppName,this._status="pending",this._defaultFile="",this._integrationID="",this._routeIDAppVersion="",this._routeIDAppVersionSplat="",Object.assign(this,t)}static async LoadVersions(t){let{dbManager:r,key:n}=t,{Items:i}=await r.ddbDocClient.query({TableName:r.tableName,KeyConditionExpression:"PK = :pkval and begins_with(SK, :skval)",ExpressionAttributeValues:{":pkval":`appName#${n.AppName}`.toLowerCase(),":skval":"version"}}),s=[];if(i!==void 0)for(let a of i){let c=(0,Ek.plainToInstance)(go,a);s.push(c)}return s}static async LoadVersion(t){let{dbManager:r,key:n}=t,{Item:i}=await r.ddbDocClient.get({TableName:r.tableName,Key:{PK:`appName#${n.AppName}`.toLowerCase(),SK:`version#${n.SemVer}`.toLowerCase()}});return(0,Ek.plainToInstance)(go,i)}static async DeleteVersion(t){let{dbManager:r,key:n}=t;await r.ddbDocClient.delete({TableName:r.tableName,Key:{PK:`appName#${n.AppName}`.toLowerCase(),SK:`version#${n.SemVer}`.toLowerCase()}})}get PK(){switch(this._keyBy){case yo.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,Status:this.Status,DefaultFile:this.DefaultFile,IntegrationID:this.IntegrationID,RouteIDAppVersion:this.RouteIDAppVersion,RouteIDAppVersionSplat:this.RouteIDAppVersionSplat}}async Save(t){this._keyBy=yo.AppName,await t.ddbDocClient.put({TableName:t.tableName,Item:this.DbStruct})}get SK(){switch(this._keyBy){case yo.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 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}};By.Version=go});var Tk=m(Gy=>{"use strict";Object.defineProperty(Gy,"__esModule",{value:!0});Gy.Application=void 0;var bk=Fy(),Ak=gA(),Bge=vA(),Rn;(function(e){e[e.AppName=0]="AppName",e[e.Applications=1]="Applications"})(Rn||(Rn={}));var vo=class{constructor(t){Object.assign(this,t),this._keyBy=Rn.AppName}static async UpdateDefaultRule(t){let{dbManager:r,key:n}=t,i=await Ak.Rules.Load({dbManager:r,key:n}),s=i.RuleSet.default;s.SemVer=n.SemVer,await i.Save(r)}static async GetVersionsAndRules(t){let{key:r,dbManager:n}=t,i=Bge.Version.LoadVersions({dbManager:n,key:r}),s=Ak.Rules.Load({dbManager:n,key:r});return await Promise.all([i,s]),{Versions:await i,Rules:await s}}static async Load(t){let{key:r,dbManager:n}=t,{Item:i}=await n.ddbDocClient.get({TableName:n.tableName,Key:{PK:`appName#${r.AppName}`.toLowerCase(),SK:"application"}});return(0,bk.plainToInstance)(vo,i)}static async LoadAllApps(t){let{Items:r}=await t.ddbDocClient.query({TableName:t.tableName,KeyConditionExpression:"PK = :pkval",ExpressionAttributeValues:{":pkval":"applications"}}),n=[];if(r!==void 0)for(let i of r){let s=(0,bk.plainToInstance)(vo,i);n.push(s)}return n}get DbStruct(){return{PK:this.PK,SK:this.SK,AppName:this.AppName,DisplayName:this.DisplayName}}async Save(t){this._keyBy=Rn.AppName;let r=t.ddbDocClient.put({TableName:t.tableName,Item:this.DbStruct});this._keyBy=Rn.Applications;let n=t.ddbDocClient.put({TableName:t.tableName,Item:this.DbStruct});await Promise.all([r,n]),await r,await n}get PK(){switch(this._keyBy){case Rn.Applications:return"applications";case Rn.AppName:return`appName#${this.AppName}`.toLowerCase();default:throw new Error("Missing SaveBy handler")}}get SK(){switch(this._keyBy){case Rn.Applications:return`appName#${this.AppName}`.toLowerCase();case Rn.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}};Gy.Application=vo});var Ck=m(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});nn.Rules=nn.Version=nn.DBManager=nn.Application=void 0;var Gge=Rj();Object.defineProperty(nn,"DBManager",{enumerable:!0,get:function(){return Gge.DBManager}});var $ge=Tk();Object.defineProperty(nn,"Application",{enumerable:!0,get:function(){return $ge.Application}});var Vge=gA();Object.defineProperty(nn,"Rules",{enumerable:!0,get:function(){return Vge.Rules}});var Kge=vA();Object.defineProperty(nn,"Version",{enumerable:!0,get:function(){return Kge.Version}})});var Mt=m(SA=>{"use strict";SA.fromCallback=function(e){return Object.defineProperty(function(...t){if(typeof t[t.length-1]=="function")e.apply(this,t);else return new Promise((r,n)=>{e.call(this,...t,(i,s)=>i!=null?n(i):r(s))})},"name",{value:e.name})};SA.fromPromise=function(e){return Object.defineProperty(function(...t){let r=t[t.length-1];if(typeof r!="function")return e.apply(this,t);e.apply(this,t.slice(0,-1)).then(n=>r(null,n),r)},"name",{value:e.name})}});var Ik=m((fLe,xk)=>{var ui=require("constants"),Hge=process.cwd,$y=null,Wge=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return $y||($y=Hge.call(process)),$y};try{process.cwd()}catch{}typeof process.chdir=="function"&&(wA=process.chdir,process.chdir=function(e){$y=null,wA.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,wA));var wA;xk.exports=Jge;function Jge(e){ui.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||r(e),e.chown=s(e.chown),e.fchown=s(e.fchown),e.lchown=s(e.lchown),e.chmod=n(e.chmod),e.fchmod=n(e.fchmod),e.lchmod=n(e.lchmod),e.chownSync=a(e.chownSync),e.fchownSync=a(e.fchownSync),e.lchownSync=a(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=c(e.stat),e.fstat=c(e.fstat),e.lstat=c(e.lstat),e.statSync=l(e.statSync),e.fstatSync=l(e.fstatSync),e.lstatSync=l(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(f,_,h){h&&process.nextTick(h)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(f,_,h,v){v&&process.nextTick(v)},e.lchownSync=function(){}),Wge==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(f){function _(h,v,S){var g=Date.now(),I=0;f(h,v,function O(C){if(C&&(C.code==="EACCES"||C.code==="EPERM")&&Date.now()-g<6e4){setTimeout(function(){e.stat(v,function(k,_e){k&&k.code==="ENOENT"?f(h,v,O):S(C)})},I),I<100&&(I+=10);return}S&&S(C)})}return Object.setPrototypeOf&&Object.setPrototypeOf(_,f),_}(e.rename)),e.read=typeof e.read!="function"?e.read:function(f){function _(h,v,S,g,I,O){var C;if(O&&typeof O=="function"){var k=0;C=function(_e,Ut,Mn){if(_e&&_e.code==="EAGAIN"&&k<10)return k++,f.call(e,h,v,S,g,I,C);O.apply(this,arguments)}}return f.call(e,h,v,S,g,I,C)}return Object.setPrototypeOf&&Object.setPrototypeOf(_,f),_}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(f){return function(_,h,v,S,g){for(var I=0;;)try{return f.call(e,_,h,v,S,g)}catch(O){if(O.code==="EAGAIN"&&I<10){I++;continue}throw O}}}(e.readSync);function t(f){f.lchmod=function(_,h,v){f.open(_,ui.O_WRONLY|ui.O_SYMLINK,h,function(S,g){if(S){v&&v(S);return}f.fchmod(g,h,function(I){f.close(g,function(O){v&&v(I||O)})})})},f.lchmodSync=function(_,h){var v=f.openSync(_,ui.O_WRONLY|ui.O_SYMLINK,h),S=!0,g;try{g=f.fchmodSync(v,h),S=!1}finally{if(S)try{f.closeSync(v)}catch{}else f.closeSync(v)}return g}}function r(f){ui.hasOwnProperty("O_SYMLINK")&&f.futimes?(f.lutimes=function(_,h,v,S){f.open(_,ui.O_SYMLINK,function(g,I){if(g){S&&S(g);return}f.futimes(I,h,v,function(O){f.close(I,function(C){S&&S(O||C)})})})},f.lutimesSync=function(_,h,v){var S=f.openSync(_,ui.O_SYMLINK),g,I=!0;try{g=f.futimesSync(S,h,v),I=!1}finally{if(I)try{f.closeSync(S)}catch{}else f.closeSync(S)}return g}):f.futimes&&(f.lutimes=function(_,h,v,S){S&&process.nextTick(S)},f.lutimesSync=function(){})}function n(f){return f&&function(_,h,v){return f.call(e,_,h,function(S){u(S)&&(S=null),v&&v.apply(this,arguments)})}}function i(f){return f&&function(_,h){try{return f.call(e,_,h)}catch(v){if(!u(v))throw v}}}function s(f){return f&&function(_,h,v,S){return f.call(e,_,h,v,function(g){u(g)&&(g=null),S&&S.apply(this,arguments)})}}function a(f){return f&&function(_,h,v){try{return f.call(e,_,h,v)}catch(S){if(!u(S))throw S}}}function c(f){return f&&function(_,h,v){typeof h=="function"&&(v=h,h=null);function S(g,I){I&&(I.uid<0&&(I.uid+=4294967296),I.gid<0&&(I.gid+=4294967296)),v&&v.apply(this,arguments)}return h?f.call(e,_,h,S):f.call(e,_,S)}}function l(f){return f&&function(_,h){var v=h?f.call(e,_,h):f.call(e,_);return v&&(v.uid<0&&(v.uid+=4294967296),v.gid<0&&(v.gid+=4294967296)),v}}function u(f){if(!f||f.code==="ENOSYS")return!0;var _=!process.getuid||process.getuid()!==0;return!!(_&&(f.code==="EINVAL"||f.code==="EPERM"))}}});var Pk=m((mLe,Nk)=>{var Rk=require("stream").Stream;Nk.exports=Yge;function Yge(e){return{ReadStream:t,WriteStream:r};function t(n,i){if(!(this instanceof t))return new t(n,i);Rk.call(this);var s=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var a=Object.keys(i),c=0,l=a.length;c<l;c++){var u=a[c];this[u]=i[u]}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(f,_){if(f){s.emit("error",f),s.readable=!1;return}s.fd=_,s.emit("open",_),s._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);Rk.call(this),this.path=n,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),a=0,c=s.length;a<c;a++){var l=s[a];this[l]=i[l]}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 Ok=m((pLe,Dk)=>{"use strict";Dk.exports=Xge;var Qge=Object.getPrototypeOf||function(e){return e.__proto__};function Xge(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:Qge(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}});var vt=m((_Le,AA)=>{var ke=require("fs"),Zge=Ik(),eve=Pk(),tve=Ok(),Vy=require("util"),mt,Hy;typeof Symbol=="function"&&typeof Symbol.for=="function"?(mt=Symbol.for("graceful-fs.queue"),Hy=Symbol.for("graceful-fs.previous")):(mt="___graceful-fs.queue",Hy="___graceful-fs.previous");function rve(){}function Mk(e,t){Object.defineProperty(e,mt,{get:function(){return t}})}var cs=rve;Vy.debuglog?cs=Vy.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(cs=function(){var e=Vy.format.apply(Vy,arguments);e="GFS4: "+e.split(/\n/).join(`
30
+ GFS4: `),console.error(e)});ke[mt]||(Lk=global[mt]||[],Mk(ke,Lk),ke.close=function(e){function t(r,n){return e.call(ke,r,function(i){i||qk(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,Hy,{value:e}),t}(ke.close),ke.closeSync=function(e){function t(r){e.apply(ke,arguments),qk()}return Object.defineProperty(t,Hy,{value:e}),t}(ke.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){cs(ke[mt]),require("assert").equal(ke[mt].length,0)}));var Lk;global[mt]||Mk(global,ke[mt]);AA.exports=EA(tve(ke));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!ke.__patched&&(AA.exports=EA(ke),ke.__patched=!0);function EA(e){Zge(e),e.gracefulify=EA,e.createReadStream=Ut,e.createWriteStream=Mn;var t=e.readFile;e.readFile=r;function r(F,he,pe){return typeof he=="function"&&(pe=he,he=null),Ie(F,he,pe);function Ie(Fe,Le,Re,Ne){return t(Fe,Le,function(Se){Se&&(Se.code==="EMFILE"||Se.code==="ENFILE")?So([Ie,[Fe,Le,Re],Se,Ne||Date.now(),Date.now()]):typeof Re=="function"&&Re.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=i;function i(F,he,pe,Ie){return typeof pe=="function"&&(Ie=pe,pe=null),Fe(F,he,pe,Ie);function Fe(Le,Re,Ne,Se,Ue){return n(Le,Re,Ne,function(be){be&&(be.code==="EMFILE"||be.code==="ENFILE")?So([Fe,[Le,Re,Ne,Se],be,Ue||Date.now(),Date.now()]):typeof Se=="function"&&Se.apply(this,arguments)})}}var s=e.appendFile;s&&(e.appendFile=a);function a(F,he,pe,Ie){return typeof pe=="function"&&(Ie=pe,pe=null),Fe(F,he,pe,Ie);function Fe(Le,Re,Ne,Se,Ue){return s(Le,Re,Ne,function(be){be&&(be.code==="EMFILE"||be.code==="ENFILE")?So([Fe,[Le,Re,Ne,Se],be,Ue||Date.now(),Date.now()]):typeof Se=="function"&&Se.apply(this,arguments)})}}var c=e.copyFile;c&&(e.copyFile=l);function l(F,he,pe,Ie){return typeof pe=="function"&&(Ie=pe,pe=0),Fe(F,he,pe,Ie);function Fe(Le,Re,Ne,Se,Ue){return c(Le,Re,Ne,function(be){be&&(be.code==="EMFILE"||be.code==="ENFILE")?So([Fe,[Le,Re,Ne,Se],be,Ue||Date.now(),Date.now()]):typeof Se=="function"&&Se.apply(this,arguments)})}}var u=e.readdir;e.readdir=_;var f=/^v[0-5]\./;function _(F,he,pe){typeof he=="function"&&(pe=he,he=null);var Ie=f.test(process.version)?function(Re,Ne,Se,Ue){return u(Re,Fe(Re,Ne,Se,Ue))}:function(Re,Ne,Se,Ue){return u(Re,Ne,Fe(Re,Ne,Se,Ue))};return Ie(F,he,pe);function Fe(Le,Re,Ne,Se){return function(Ue,be){Ue&&(Ue.code==="EMFILE"||Ue.code==="ENFILE")?So([Ie,[Le,Re,Ne],Ue,Se||Date.now(),Date.now()]):(be&&be.sort&&be.sort(),typeof Ne=="function"&&Ne.call(this,Ue,be))}}}if(process.version.substr(0,4)==="v0.8"){var h=eve(e);O=h.ReadStream,k=h.WriteStream}var v=e.ReadStream;v&&(O.prototype=Object.create(v.prototype),O.prototype.open=C);var S=e.WriteStream;S&&(k.prototype=Object.create(S.prototype),k.prototype.open=_e),Object.defineProperty(e,"ReadStream",{get:function(){return O},set:function(F){O=F},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return k},set:function(F){k=F},enumerable:!0,configurable:!0});var g=O;Object.defineProperty(e,"FileReadStream",{get:function(){return g},set:function(F){g=F},enumerable:!0,configurable:!0});var I=k;Object.defineProperty(e,"FileWriteStream",{get:function(){return I},set:function(F){I=F},enumerable:!0,configurable:!0});function O(F,he){return this instanceof O?(v.apply(this,arguments),this):O.apply(Object.create(O.prototype),arguments)}function C(){var F=this;hr(F.path,F.flags,F.mode,function(he,pe){he?(F.autoClose&&F.destroy(),F.emit("error",he)):(F.fd=pe,F.emit("open",pe),F.read())})}function k(F,he){return this instanceof k?(S.apply(this,arguments),this):k.apply(Object.create(k.prototype),arguments)}function _e(){var F=this;hr(F.path,F.flags,F.mode,function(he,pe){he?(F.destroy(),F.emit("error",he)):(F.fd=pe,F.emit("open",pe))})}function Ut(F,he){return new e.ReadStream(F,he)}function Mn(F,he){return new e.WriteStream(F,he)}var zn=e.open;e.open=hr;function hr(F,he,pe,Ie){return typeof pe=="function"&&(Ie=pe,pe=null),Fe(F,he,pe,Ie);function Fe(Le,Re,Ne,Se,Ue){return zn(Le,Re,Ne,function(be,an){be&&(be.code==="EMFILE"||be.code==="ENFILE")?So([Fe,[Le,Re,Ne,Se],be,Ue||Date.now(),Date.now()]):typeof Se=="function"&&Se.apply(this,arguments)})}}return e}function So(e){cs("ENQUEUE",e[0].name,e[1]),ke[mt].push(e),bA()}var Ky;function qk(){for(var e=Date.now(),t=0;t<ke[mt].length;++t)ke[mt][t].length>2&&(ke[mt][t][3]=e,ke[mt][t][4]=e);bA()}function bA(){if(clearTimeout(Ky),Ky=void 0,ke[mt].length!==0){var e=ke[mt].shift(),t=e[0],r=e[1],n=e[2],i=e[3],s=e[4];if(i===void 0)cs("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){cs("TIMEOUT",t.name,r);var a=r.pop();typeof a=="function"&&a.call(null,n)}else{var c=Date.now()-s,l=Math.max(s-i,1),u=Math.min(l*1.2,100);c>=u?(cs("RETRY",t.name,r),t.apply(null,r.concat([i]))):ke[mt].push(e)}Ky===void 0&&(Ky=setTimeout(bA,0))}}});var ll=m(fi=>{"use strict";var zk=Mt().fromCallback,Tt=vt(),nve=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(e=>typeof Tt[e]=="function");Object.keys(Tt).forEach(e=>{e!=="promises"&&(fi[e]=Tt[e])});nve.forEach(e=>{fi[e]=zk(Tt[e])});fi.exists=function(e,t){return typeof t=="function"?Tt.exists(e,t):new Promise(r=>Tt.exists(e,r))};fi.read=function(e,t,r,n,i,s){return typeof s=="function"?Tt.read(e,t,r,n,i,s):new Promise((a,c)=>{Tt.read(e,t,r,n,i,(l,u,f)=>{if(l)return c(l);a({bytesRead:u,buffer:f})})})};fi.write=function(e,t,...r){return typeof r[r.length-1]=="function"?Tt.write(e,t,...r):new Promise((n,i)=>{Tt.write(e,t,...r,(s,a,c)=>{if(s)return i(s);n({bytesWritten:a,buffer:c})})})};typeof Tt.writev=="function"&&(fi.writev=function(e,t,...r){return typeof r[r.length-1]=="function"?Tt.writev(e,t,...r):new Promise((n,i)=>{Tt.writev(e,t,...r,(s,a,c)=>{if(s)return i(s);n({bytesWritten:a,buffers:c})})})});typeof Tt.realpath.native=="function"&&(fi.realpath.native=zk(Tt.realpath.native))});var TA=m((yLe,jk)=>{jk.exports=e=>{let t=process.versions.node.split(".").map(r=>parseInt(r,10));return e=e.split(".").map(r=>parseInt(r,10)),t[0]>e[0]||t[0]===e[0]&&(t[1]>e[1]||t[1]===e[1]&&t[2]>=e[2])}});var Gk=m((gLe,CA)=>{"use strict";var wo=ll(),Nn=require("path"),ive=TA(),kk=ive("10.12.0"),Fk=e=>{if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(Nn.parse(e).root,""))){let r=new Error(`Path contains invalid characters: ${e}`);throw r.code="EINVAL",r}},Uk=e=>{let t={mode:511};return typeof e=="number"&&(e={mode:e}),o(o({},t),e)},Bk=e=>{let t=new Error(`operation not permitted, mkdir '${e}'`);return t.code="EPERM",t.errno=-4048,t.path=e,t.syscall="mkdir",t};CA.exports.makeDir=async(e,t)=>{if(Fk(e),t=Uk(t),kk){let n=Nn.resolve(e);return wo.mkdir(n,{mode:t.mode,recursive:!0})}let r=async n=>{try{await wo.mkdir(n,t.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(Nn.dirname(n)===n)throw Bk(n);if(i.message.includes("null bytes"))throw i;return await r(Nn.dirname(n)),r(n)}try{if(!(await wo.stat(n)).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return r(Nn.resolve(e))};CA.exports.makeDirSync=(e,t)=>{if(Fk(e),t=Uk(t),kk){let n=Nn.resolve(e);return wo.mkdirSync(n,{mode:t.mode,recursive:!0})}let r=n=>{try{wo.mkdirSync(n,t.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(Nn.dirname(n)===n)throw Bk(n);if(i.message.includes("null bytes"))throw i;return r(Nn.dirname(n)),r(n)}try{if(!wo.statSync(n).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return r(Nn.resolve(e))}});var mr=m((vLe,$k)=>{"use strict";var sve=Mt().fromPromise,{makeDir:ove,makeDirSync:xA}=Gk(),IA=sve(ove);$k.exports={mkdirs:IA,mkdirsSync:xA,mkdirp:IA,mkdirpSync:xA,ensureDir:IA,ensureDirSync:xA}});var RA=m((SLe,Vk)=>{"use strict";var Eo=vt();function ave(e,t,r,n){Eo.open(e,"r+",(i,s)=>{if(i)return n(i);Eo.futimes(s,t,r,a=>{Eo.close(s,c=>{n&&n(a||c)})})})}function cve(e,t,r){let n=Eo.openSync(e,"r+");return Eo.futimesSync(n,t,r),Eo.closeSync(n)}Vk.exports={utimesMillis:ave,utimesMillisSync:cve}});var dl=m((wLe,Jk)=>{"use strict";var bo=ll(),zt=require("path"),lve=require("util"),dve=TA(),Wy=dve("10.5.0"),Kk=e=>Wy?bo.stat(e,{bigint:!0}):bo.stat(e),NA=e=>Wy?bo.statSync(e,{bigint:!0}):bo.statSync(e);function uve(e,t){return Promise.all([Kk(e),Kk(t).catch(r=>{if(r.code==="ENOENT")return null;throw r})]).then(([r,n])=>({srcStat:r,destStat:n}))}function fve(e,t){let r,n=NA(e);try{r=NA(t)}catch(i){if(i.code==="ENOENT")return{srcStat:n,destStat:null};throw i}return{srcStat:n,destStat:r}}function mve(e,t,r,n){lve.callbackify(uve)(e,t,(i,s)=>{if(i)return n(i);let{srcStat:a,destStat:c}=s;return c&&Jy(a,c)?n(new Error("Source and destination must not be the same.")):a.isDirectory()&&PA(e,t)?n(new Error(Yy(e,t,r))):n(null,{srcStat:a,destStat:c})})}function pve(e,t,r){let{srcStat:n,destStat:i}=fve(e,t);if(i&&Jy(n,i))throw new Error("Source and destination must not be the same.");if(n.isDirectory()&&PA(e,t))throw new Error(Yy(e,t,r));return{srcStat:n,destStat:i}}function Hk(e,t,r,n,i){let s=zt.resolve(zt.dirname(e)),a=zt.resolve(zt.dirname(r));if(a===s||a===zt.parse(a).root)return i();let c=(l,u)=>l?l.code==="ENOENT"?i():i(l):Jy(t,u)?i(new Error(Yy(e,r,n))):Hk(e,t,a,n,i);Wy?bo.stat(a,{bigint:!0},c):bo.stat(a,c)}function Wk(e,t,r,n){let i=zt.resolve(zt.dirname(e)),s=zt.resolve(zt.dirname(r));if(s===i||s===zt.parse(s).root)return;let a;try{a=NA(s)}catch(c){if(c.code==="ENOENT")return;throw c}if(Jy(t,a))throw new Error(Yy(e,r,n));return Wk(e,t,s,n)}function Jy(e,t){return!!(t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev&&(Wy||t.ino<Number.MAX_SAFE_INTEGER||t.size===e.size&&t.mode===e.mode&&t.nlink===e.nlink&&t.atimeMs===e.atimeMs&&t.mtimeMs===e.mtimeMs&&t.ctimeMs===e.ctimeMs&&t.birthtimeMs===e.birthtimeMs))}function PA(e,t){let r=zt.resolve(e).split(zt.sep).filter(i=>i),n=zt.resolve(t).split(zt.sep).filter(i=>i);return r.reduce((i,s,a)=>i&&n[a]===s,!0)}function Yy(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}Jk.exports={checkPaths:mve,checkPathsSync:pve,checkParentPaths:Hk,checkParentPathsSync:Wk,isSrcSubdir:PA}});var eF=m((ELe,Zk)=>{"use strict";var St=vt(),ul=require("path"),_ve=mr().mkdirsSync,hve=RA().utimesMillisSync,fl=dl();function yve(e,t,r){typeof r=="function"&&(r={filter:r}),r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
32
31
 
33
- see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:r,destStat:i}=go.checkPathsSync(e,t,"copy");return go.checkParentPathsSync(e,r,t,"copy"),Xle(i,e,t,n)}function Xle(e,t,n,r){if(r.filter&&!r.filter(t,n))return;let i=ho.dirname(n);return yt.existsSync(i)||Yle(i),ZO(e,t,n,r)}function ZO(e,t,n,r){if(!(r.filter&&!r.filter(t,n)))return Zle(e,t,n,r)}function Zle(e,t,n,r){let s=(r.dereference?yt.statSync:yt.lstatSync)(t);if(s.isDirectory())return ace(s,e,t,n,r);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return ece(s,e,t,n,r);if(s.isSymbolicLink())return cce(e,t,n,r)}function ece(e,t,n,r,i){return t?tce(e,n,r,i):eL(e,n,r,i)}function tce(e,t,n,r){if(r.overwrite)return yt.unlinkSync(n),eL(e,t,n,r);if(r.errorOnExist)throw new Error(`'${n}' already exists`)}function eL(e,t,n,r){return yt.copyFileSync(t,n),r.preserveTimestamps&&nce(e.mode,t,n),Kv(n,e.mode)}function nce(e,t,n){return rce(e)&&ice(n,e),sce(t,n)}function rce(e){return(e&128)===0}function ice(e,t){return Kv(e,t|128)}function Kv(e,t){return yt.chmodSync(e,t)}function sce(e,t){let n=yt.statSync(e);return Jle(t,n.atime,n.mtime)}function ace(e,t,n,r,i){if(!t)return oce(e.mode,n,r,i);if(t&&!t.isDirectory())throw new Error(`Cannot overwrite non-directory '${r}' with directory '${n}'.`);return tL(n,r,i)}function oce(e,t,n,r){return yt.mkdirSync(n),tL(t,n,r),Kv(n,e)}function tL(e,t,n){yt.readdirSync(e).forEach(r=>lce(r,e,t,n))}function lce(e,t,n,r){let i=ho.join(t,e),s=ho.join(n,e),{destStat:a}=go.checkPathsSync(i,s,"copy");return ZO(a,i,s,r)}function cce(e,t,n,r){let i=yt.readlinkSync(t);if(r.dereference&&(i=ho.resolve(process.cwd(),i)),e){let s;try{s=yt.readlinkSync(n)}catch(a){if(a.code==="EINVAL"||a.code==="UNKNOWN")return yt.symlinkSync(i,n);throw a}if(r.dereference&&(s=ho.resolve(process.cwd(),s)),go.isSrcSubdir(i,s))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${s}'.`);if(yt.statSync(n).isDirectory()&&go.isSrcSubdir(s,i))throw new Error(`Cannot overwrite '${s}' with '${i}'.`);return dce(i,n)}else return yt.symlinkSync(i,n)}function dce(e,t){return yt.unlinkSync(t),yt.symlinkSync(e,t)}nL.exports=Qle});var Vv=p((QEe,iL)=>{"use strict";iL.exports={copySync:rL()}});var Xr=p((XEe,aL)=>{"use strict";var uce=Pt().fromPromise,sL=po();function mce(e){return sL.access(e).then(()=>!0).catch(()=>!1)}aL.exports={pathExists:uce(mce),pathExistsSync:sL.existsSync}});var _L=p((ZEe,pL)=>{"use strict";var Ot=gt(),yo=require("path"),fce=gn().mkdirs,pce=Xr().pathExists,_ce=Bv().utimesMillis,vo=_o();function hce(e,t,n,r){typeof n=="function"&&!r?(r=n,n={}):typeof n=="function"&&(n={filter:n}),r=r||function(){},n=n||{},n.clobber="clobber"in n?!!n.clobber:!0,n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
32
+ see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:n,destStat:i}=fl.checkPathsSync(e,t,"copy");return fl.checkParentPathsSync(e,n,t,"copy"),gve(i,e,t,r)}function gve(e,t,r,n){if(n.filter&&!n.filter(t,r))return;let i=ul.dirname(r);return St.existsSync(i)||_ve(i),Yk(e,t,r,n)}function Yk(e,t,r,n){if(!(n.filter&&!n.filter(t,r)))return vve(e,t,r,n)}function vve(e,t,r,n){let s=(n.dereference?St.statSync:St.lstatSync)(t);if(s.isDirectory())return Cve(s,e,t,r,n);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return Sve(s,e,t,r,n);if(s.isSymbolicLink())return Rve(e,t,r,n)}function Sve(e,t,r,n,i){return t?wve(e,r,n,i):Qk(e,r,n,i)}function wve(e,t,r,n){if(n.overwrite)return St.unlinkSync(r),Qk(e,t,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}function Qk(e,t,r,n){return St.copyFileSync(t,r),n.preserveTimestamps&&Eve(e.mode,t,r),DA(r,e.mode)}function Eve(e,t,r){return bve(e)&&Ave(r,e),Tve(t,r)}function bve(e){return(e&128)===0}function Ave(e,t){return DA(e,t|128)}function DA(e,t){return St.chmodSync(e,t)}function Tve(e,t){let r=St.statSync(e);return hve(t,r.atime,r.mtime)}function Cve(e,t,r,n,i){if(!t)return xve(e.mode,r,n,i);if(t&&!t.isDirectory())throw new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`);return Xk(r,n,i)}function xve(e,t,r,n){return St.mkdirSync(r),Xk(t,r,n),DA(r,e)}function Xk(e,t,r){St.readdirSync(e).forEach(n=>Ive(n,e,t,r))}function Ive(e,t,r,n){let i=ul.join(t,e),s=ul.join(r,e),{destStat:a}=fl.checkPathsSync(i,s,"copy");return Yk(a,i,s,n)}function Rve(e,t,r,n){let i=St.readlinkSync(t);if(n.dereference&&(i=ul.resolve(process.cwd(),i)),e){let s;try{s=St.readlinkSync(r)}catch(a){if(a.code==="EINVAL"||a.code==="UNKNOWN")return St.symlinkSync(i,r);throw a}if(n.dereference&&(s=ul.resolve(process.cwd(),s)),fl.isSrcSubdir(i,s))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${s}'.`);if(St.statSync(r).isDirectory()&&fl.isSrcSubdir(s,i))throw new Error(`Cannot overwrite '${s}' with '${i}'.`);return Nve(i,r)}else return St.symlinkSync(i,r)}function Nve(e,t){return St.unlinkSync(t),St.symlinkSync(e,t)}Zk.exports=yve});var OA=m((bLe,tF)=>{"use strict";tF.exports={copySync:eF()}});var mi=m((ALe,nF)=>{"use strict";var Pve=Mt().fromPromise,rF=ll();function Dve(e){return rF.access(e).then(()=>!0).catch(()=>!1)}nF.exports={pathExists:Pve(Dve),pathExistsSync:rF.existsSync}});var fF=m((TLe,uF)=>{"use strict";var jt=vt(),ml=require("path"),Ove=mr().mkdirs,Lve=mi().pathExists,qve=RA().utimesMillis,pl=dl();function Mve(e,t,r,n){typeof r=="function"&&!n?(n=r,r={}):typeof r=="function"&&(r={filter:r}),n=n||function(){},r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
34
33
 
35
- see https://github.com/jprichardson/node-fs-extra/issues/269`),vo.checkPaths(e,t,"copy",(i,s)=>{if(i)return r(i);let{srcStat:a,destStat:l}=s;vo.checkParentPaths(e,a,t,"copy",c=>c?r(c):n.filter?lL(oL,l,e,t,n,r):oL(l,e,t,n,r))})}function oL(e,t,n,r,i){let s=yo.dirname(n);pce(s,(a,l)=>{if(a)return i(a);if(l)return Hv(e,t,n,r,i);fce(s,c=>c?i(c):Hv(e,t,n,r,i))})}function lL(e,t,n,r,i,s){Promise.resolve(i.filter(n,r)).then(a=>a?e(t,n,r,i,s):s(),a=>s(a))}function Hv(e,t,n,r,i){return r.filter?lL(cL,e,t,n,r,i):cL(e,t,n,r,i)}function cL(e,t,n,r,i){(r.dereference?Ot.stat:Ot.lstat)(t,(a,l)=>{if(a)return i(a);if(l.isDirectory())return Ece(l,e,t,n,r,i);if(l.isFile()||l.isCharacterDevice()||l.isBlockDevice())return gce(l,e,t,n,r,i);if(l.isSymbolicLink())return Tce(e,t,n,r,i)})}function gce(e,t,n,r,i,s){return t?yce(e,n,r,i,s):dL(e,n,r,i,s)}function yce(e,t,n,r,i){if(r.overwrite)Ot.unlink(n,s=>s?i(s):dL(e,t,n,r,i));else return r.errorOnExist?i(new Error(`'${n}' already exists`)):i()}function dL(e,t,n,r,i){Ot.copyFile(t,n,s=>s?i(s):r.preserveTimestamps?vce(e.mode,t,n,i):bp(n,e.mode,i))}function vce(e,t,n,r){return bce(e)?Sce(n,e,i=>i?r(i):uL(e,t,n,r)):uL(e,t,n,r)}function bce(e){return(e&128)===0}function Sce(e,t,n){return bp(e,t|128,n)}function uL(e,t,n,r){wce(t,n,i=>i?r(i):bp(n,e,r))}function bp(e,t,n){return Ot.chmod(e,t,n)}function wce(e,t,n){Ot.stat(e,(r,i)=>r?n(r):_ce(t,i.atime,i.mtime,n))}function Ece(e,t,n,r,i,s){return t?t&&!t.isDirectory()?s(new Error(`Cannot overwrite non-directory '${r}' with directory '${n}'.`)):mL(n,r,i,s):Ace(e.mode,n,r,i,s)}function Ace(e,t,n,r,i){Ot.mkdir(n,s=>{if(s)return i(s);mL(t,n,r,a=>a?i(a):bp(n,e,i))})}function mL(e,t,n,r){Ot.readdir(e,(i,s)=>i?r(i):fL(s,e,t,n,r))}function fL(e,t,n,r,i){let s=e.pop();return s?Cce(e,s,t,n,r,i):i()}function Cce(e,t,n,r,i,s){let a=yo.join(n,t),l=yo.join(r,t);vo.checkPaths(a,l,"copy",(c,d)=>{if(c)return s(c);let{destStat:u}=d;Hv(u,a,l,i,_=>_?s(_):fL(e,n,r,i,s))})}function Tce(e,t,n,r,i){Ot.readlink(t,(s,a)=>{if(s)return i(s);if(r.dereference&&(a=yo.resolve(process.cwd(),a)),e)Ot.readlink(n,(l,c)=>l?l.code==="EINVAL"||l.code==="UNKNOWN"?Ot.symlink(a,n,i):i(l):(r.dereference&&(c=yo.resolve(process.cwd(),c)),vo.isSrcSubdir(a,c)?i(new Error(`Cannot copy '${a}' to a subdirectory of itself, '${c}'.`)):e.isDirectory()&&vo.isSrcSubdir(c,a)?i(new Error(`Cannot overwrite '${c}' with '${a}'.`)):xce(a,n,i)));else return Ot.symlink(a,n,i)})}function xce(e,t,n){Ot.unlink(t,r=>r?n(r):Ot.symlink(e,t,n))}pL.exports=hce});var Wv=p((eAe,hL)=>{"use strict";var Ice=Pt().fromCallback;hL.exports={copy:Ice(_L())}});var CL=p((tAe,AL)=>{"use strict";var gL=gt(),yL=require("path"),xe=require("assert"),bo=process.platform==="win32";function vL(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(n=>{e[n]=e[n]||gL[n],n=n+"Sync",e[n]=e[n]||gL[n]}),e.maxBusyTries=e.maxBusyTries||3}function Yv(e,t,n){let r=0;typeof t=="function"&&(n=t,t={}),xe(e,"rimraf: missing path"),xe.strictEqual(typeof e,"string","rimraf: path should be a string"),xe.strictEqual(typeof n,"function","rimraf: callback function required"),xe(t,"rimraf: invalid options argument provided"),xe.strictEqual(typeof t,"object","rimraf: options should be object"),vL(t),bL(e,t,function i(s){if(s){if((s.code==="EBUSY"||s.code==="ENOTEMPTY"||s.code==="EPERM")&&r<t.maxBusyTries){r++;let a=r*100;return setTimeout(()=>bL(e,t,i),a)}s.code==="ENOENT"&&(s=null)}n(s)})}function bL(e,t,n){xe(e),xe(t),xe(typeof n=="function"),t.lstat(e,(r,i)=>{if(r&&r.code==="ENOENT")return n(null);if(r&&r.code==="EPERM"&&bo)return SL(e,t,r,n);if(i&&i.isDirectory())return Sp(e,t,r,n);t.unlink(e,s=>{if(s){if(s.code==="ENOENT")return n(null);if(s.code==="EPERM")return bo?SL(e,t,s,n):Sp(e,t,s,n);if(s.code==="EISDIR")return Sp(e,t,s,n)}return n(s)})})}function SL(e,t,n,r){xe(e),xe(t),xe(typeof r=="function"),t.chmod(e,438,i=>{i?r(i.code==="ENOENT"?null:n):t.stat(e,(s,a)=>{s?r(s.code==="ENOENT"?null:n):a.isDirectory()?Sp(e,t,n,r):t.unlink(e,r)})})}function wL(e,t,n){let r;xe(e),xe(t);try{t.chmodSync(e,438)}catch(i){if(i.code==="ENOENT")return;throw n}try{r=t.statSync(e)}catch(i){if(i.code==="ENOENT")return;throw n}r.isDirectory()?wp(e,t,n):t.unlinkSync(e)}function Sp(e,t,n,r){xe(e),xe(t),xe(typeof r=="function"),t.rmdir(e,i=>{i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?Rce(e,t,r):i&&i.code==="ENOTDIR"?r(n):r(i)})}function Rce(e,t,n){xe(e),xe(t),xe(typeof n=="function"),t.readdir(e,(r,i)=>{if(r)return n(r);let s=i.length,a;if(s===0)return t.rmdir(e,n);i.forEach(l=>{Yv(yL.join(e,l),t,c=>{if(!a){if(c)return n(a=c);--s===0&&t.rmdir(e,n)}})})})}function EL(e,t){let n;t=t||{},vL(t),xe(e,"rimraf: missing path"),xe.strictEqual(typeof e,"string","rimraf: path should be a string"),xe(t,"rimraf: missing options"),xe.strictEqual(typeof t,"object","rimraf: options should be object");try{n=t.lstatSync(e)}catch(r){if(r.code==="ENOENT")return;r.code==="EPERM"&&bo&&wL(e,t,r)}try{n&&n.isDirectory()?wp(e,t,null):t.unlinkSync(e)}catch(r){if(r.code==="ENOENT")return;if(r.code==="EPERM")return bo?wL(e,t,r):wp(e,t,r);if(r.code!=="EISDIR")throw r;wp(e,t,r)}}function wp(e,t,n){xe(e),xe(t);try{t.rmdirSync(e)}catch(r){if(r.code==="ENOTDIR")throw n;if(r.code==="ENOTEMPTY"||r.code==="EEXIST"||r.code==="EPERM")Nce(e,t);else if(r.code!=="ENOENT")throw r}}function Nce(e,t){if(xe(e),xe(t),t.readdirSync(e).forEach(n=>EL(yL.join(e,n),t)),bo){let n=Date.now();do try{return t.rmdirSync(e,t)}catch{}while(Date.now()-n<500)}else return t.rmdirSync(e,t)}AL.exports=Yv;Yv.sync=EL});var So=p((nAe,xL)=>{"use strict";var Pce=Pt().fromCallback,TL=CL();xL.exports={remove:Pce(TL),removeSync:TL.sync}});var qL=p((rAe,LL)=>{"use strict";var Dce=Pt().fromCallback,IL=gt(),RL=require("path"),NL=gn(),PL=So(),DL=Dce(function(t,n){n=n||function(){},IL.readdir(t,(r,i)=>{if(r)return NL.mkdirs(t,n);i=i.map(a=>RL.join(t,a)),s();function s(){let a=i.pop();if(!a)return n();PL.remove(a,l=>{if(l)return n(l);s()})}})});function OL(e){let t;try{t=IL.readdirSync(e)}catch{return NL.mkdirsSync(e)}t.forEach(n=>{n=RL.join(e,n),PL.removeSync(n)})}LL.exports={emptyDirSync:OL,emptydirSync:OL,emptyDir:DL,emptydir:DL}});var zL=p((iAe,jL)=>{"use strict";var Oce=Pt().fromCallback,ML=require("path"),Zr=gt(),kL=gn();function Lce(e,t){function n(){Zr.writeFile(e,"",r=>{if(r)return t(r);t()})}Zr.stat(e,(r,i)=>{if(!r&&i.isFile())return t();let s=ML.dirname(e);Zr.stat(s,(a,l)=>{if(a)return a.code==="ENOENT"?kL.mkdirs(s,c=>{if(c)return t(c);n()}):t(a);l.isDirectory()?n():Zr.readdir(s,c=>{if(c)return t(c)})})})}function qce(e){let t;try{t=Zr.statSync(e)}catch{}if(t&&t.isFile())return;let n=ML.dirname(e);try{Zr.statSync(n).isDirectory()||Zr.readdirSync(n)}catch(r){if(r&&r.code==="ENOENT")kL.mkdirsSync(n);else throw r}Zr.writeFileSync(e,"")}jL.exports={createFile:Oce(Lce),createFileSync:qce}});var $L=p((sAe,GL)=>{"use strict";var Mce=Pt().fromCallback,UL=require("path"),ji=gt(),FL=gn(),BL=Xr().pathExists;function kce(e,t,n){function r(i,s){ji.link(i,s,a=>{if(a)return n(a);n(null)})}BL(t,(i,s)=>{if(i)return n(i);if(s)return n(null);ji.lstat(e,a=>{if(a)return a.message=a.message.replace("lstat","ensureLink"),n(a);let l=UL.dirname(t);BL(l,(c,d)=>{if(c)return n(c);if(d)return r(e,t);FL.mkdirs(l,u=>{if(u)return n(u);r(e,t)})})})})}function jce(e,t){if(ji.existsSync(t))return;try{ji.lstatSync(e)}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}let r=UL.dirname(t);return ji.existsSync(r)||FL.mkdirsSync(r),ji.linkSync(e,t)}GL.exports={createLink:Mce(kce),createLinkSync:jce}});var VL=p((aAe,KL)=>{"use strict";var ei=require("path"),wo=gt(),zce=Xr().pathExists;function Uce(e,t,n){if(ei.isAbsolute(e))return wo.lstat(e,r=>r?(r.message=r.message.replace("lstat","ensureSymlink"),n(r)):n(null,{toCwd:e,toDst:e}));{let r=ei.dirname(t),i=ei.join(r,e);return zce(i,(s,a)=>s?n(s):a?n(null,{toCwd:i,toDst:e}):wo.lstat(e,l=>l?(l.message=l.message.replace("lstat","ensureSymlink"),n(l)):n(null,{toCwd:e,toDst:ei.relative(r,e)})))}}function Fce(e,t){let n;if(ei.isAbsolute(e)){if(n=wo.existsSync(e),!n)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{let r=ei.dirname(t),i=ei.join(r,e);if(n=wo.existsSync(i),n)return{toCwd:i,toDst:e};if(n=wo.existsSync(e),!n)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:ei.relative(r,e)}}}KL.exports={symlinkPaths:Uce,symlinkPathsSync:Fce}});var YL=p((oAe,WL)=>{"use strict";var HL=gt();function Bce(e,t,n){if(n=typeof t=="function"?t:n,t=typeof t=="function"?!1:t,t)return n(null,t);HL.lstat(e,(r,i)=>{if(r)return n(null,"file");t=i&&i.isDirectory()?"dir":"file",n(null,t)})}function Gce(e,t){let n;if(t)return t;try{n=HL.lstatSync(e)}catch{return"file"}return n&&n.isDirectory()?"dir":"file"}WL.exports={symlinkType:Bce,symlinkTypeSync:Gce}});var nq=p((lAe,tq)=>{"use strict";var $ce=Pt().fromCallback,JL=require("path"),Qs=gt(),QL=gn(),Kce=QL.mkdirs,Vce=QL.mkdirsSync,XL=VL(),Hce=XL.symlinkPaths,Wce=XL.symlinkPathsSync,ZL=YL(),Yce=ZL.symlinkType,Jce=ZL.symlinkTypeSync,eq=Xr().pathExists;function Qce(e,t,n,r){r=typeof n=="function"?n:r,n=typeof n=="function"?!1:n,eq(t,(i,s)=>{if(i)return r(i);if(s)return r(null);Hce(e,t,(a,l)=>{if(a)return r(a);e=l.toDst,Yce(l.toCwd,n,(c,d)=>{if(c)return r(c);let u=JL.dirname(t);eq(u,(_,g)=>{if(_)return r(_);if(g)return Qs.symlink(e,t,d,r);Kce(u,b=>{if(b)return r(b);Qs.symlink(e,t,d,r)})})})})})}function Xce(e,t,n){if(Qs.existsSync(t))return;let i=Wce(e,t);e=i.toDst,n=Jce(i.toCwd,n);let s=JL.dirname(t);return Qs.existsSync(s)||Vce(s),Qs.symlinkSync(e,t,n)}tq.exports={createSymlink:$ce(Qce),createSymlinkSync:Xce}});var iq=p((cAe,rq)=>{"use strict";var Ep=zL(),Ap=$L(),Cp=nq();rq.exports={createFile:Ep.createFile,createFileSync:Ep.createFileSync,ensureFile:Ep.createFile,ensureFileSync:Ep.createFileSync,createLink:Ap.createLink,createLinkSync:Ap.createLinkSync,ensureLink:Ap.createLink,ensureLinkSync:Ap.createLinkSync,createSymlink:Cp.createSymlink,createSymlinkSync:Cp.createSymlinkSync,ensureSymlink:Cp.createSymlink,ensureSymlinkSync:Cp.createSymlinkSync}});var Tp=p((dAe,sq)=>{function Zce(e,{EOL:t=`
36
- `,finalEOL:n=!0,replacer:r=null,spaces:i}={}){let s=n?t:"";return JSON.stringify(e,r,i).replace(/\n/g,t)+s}function ede(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}sq.exports={stringify:Zce,stripBom:ede}});var cq=p((uAe,lq)=>{var Xs;try{Xs=gt()}catch{Xs=require("fs")}var xp=Pt(),{stringify:aq,stripBom:oq}=Tp();async function tde(e,t={}){typeof t=="string"&&(t={encoding:t});let n=t.fs||Xs,r="throws"in t?t.throws:!0,i=await xp.fromCallback(n.readFile)(e,t);i=oq(i);let s;try{s=JSON.parse(i,t?t.reviver:null)}catch(a){if(r)throw a.message=`${e}: ${a.message}`,a;return null}return s}var nde=xp.fromPromise(tde);function rde(e,t={}){typeof t=="string"&&(t={encoding:t});let n=t.fs||Xs,r="throws"in t?t.throws:!0;try{let i=n.readFileSync(e,t);return i=oq(i),JSON.parse(i,t.reviver)}catch(i){if(r)throw i.message=`${e}: ${i.message}`,i;return null}}async function ide(e,t,n={}){let r=n.fs||Xs,i=aq(t,n);await xp.fromCallback(r.writeFile)(e,i,n)}var sde=xp.fromPromise(ide);function ade(e,t,n={}){let r=n.fs||Xs,i=aq(t,n);return r.writeFileSync(e,i,n)}var ode={readFile:nde,readFileSync:rde,writeFile:sde,writeFileSync:ade};lq.exports=ode});var uq=p((mAe,dq)=>{"use strict";var Ip=cq();dq.exports={readJson:Ip.readFile,readJsonSync:Ip.readFileSync,writeJson:Ip.writeFile,writeJsonSync:Ip.writeFileSync}});var Rp=p((fAe,pq)=>{"use strict";var lde=Pt().fromCallback,Eo=gt(),mq=require("path"),fq=gn(),cde=Xr().pathExists;function dde(e,t,n,r){typeof n=="function"&&(r=n,n="utf8");let i=mq.dirname(e);cde(i,(s,a)=>{if(s)return r(s);if(a)return Eo.writeFile(e,t,n,r);fq.mkdirs(i,l=>{if(l)return r(l);Eo.writeFile(e,t,n,r)})})}function ude(e,...t){let n=mq.dirname(e);if(Eo.existsSync(n))return Eo.writeFileSync(e,...t);fq.mkdirsSync(n),Eo.writeFileSync(e,...t)}pq.exports={outputFile:lde(dde),outputFileSync:ude}});var hq=p((pAe,_q)=>{"use strict";var{stringify:mde}=Tp(),{outputFile:fde}=Rp();async function pde(e,t,n={}){let r=mde(t,n);await fde(e,r,n)}_q.exports=pde});var yq=p((_Ae,gq)=>{"use strict";var{stringify:_de}=Tp(),{outputFileSync:hde}=Rp();function gde(e,t,n){let r=_de(t,n);hde(e,r,n)}gq.exports=gde});var bq=p((hAe,vq)=>{"use strict";var yde=Pt().fromPromise,Ct=uq();Ct.outputJson=yde(hq());Ct.outputJsonSync=yq();Ct.outputJSON=Ct.outputJson;Ct.outputJSONSync=Ct.outputJsonSync;Ct.writeJSON=Ct.writeJson;Ct.writeJSONSync=Ct.writeJsonSync;Ct.readJSON=Ct.readJson;Ct.readJSONSync=Ct.readJsonSync;vq.exports=Ct});var Tq=p((gAe,Cq)=>{"use strict";var Sq=gt(),vde=require("path"),bde=Vv().copySync,wq=So().removeSync,Sde=gn().mkdirpSync,Eq=_o();function wde(e,t,n){n=n||{};let r=n.overwrite||n.clobber||!1,{srcStat:i}=Eq.checkPathsSync(e,t,"move");return Eq.checkParentPathsSync(e,i,t,"move"),Sde(vde.dirname(t)),Ede(e,t,r)}function Ede(e,t,n){if(n)return wq(t),Aq(e,t,n);if(Sq.existsSync(t))throw new Error("dest already exists.");return Aq(e,t,n)}function Aq(e,t,n){try{Sq.renameSync(e,t)}catch(r){if(r.code!=="EXDEV")throw r;return Ade(e,t,n)}}function Ade(e,t,n){return bde(e,t,{overwrite:n,errorOnExist:!0}),wq(e)}Cq.exports=wde});var Iq=p((yAe,xq)=>{"use strict";xq.exports={moveSync:Tq()}});var Oq=p((vAe,Dq)=>{"use strict";var Cde=gt(),Tde=require("path"),xde=Wv().copy,Rq=So().remove,Ide=gn().mkdirp,Rde=Xr().pathExists,Nq=_o();function Nde(e,t,n,r){typeof n=="function"&&(r=n,n={});let i=n.overwrite||n.clobber||!1;Nq.checkPaths(e,t,"move",(s,a)=>{if(s)return r(s);let{srcStat:l}=a;Nq.checkParentPaths(e,l,t,"move",c=>{if(c)return r(c);Ide(Tde.dirname(t),d=>d?r(d):Pde(e,t,i,r))})})}function Pde(e,t,n,r){if(n)return Rq(t,i=>i?r(i):Pq(e,t,n,r));Rde(t,(i,s)=>i?r(i):s?r(new Error("dest already exists.")):Pq(e,t,n,r))}function Pq(e,t,n,r){Cde.rename(e,t,i=>i?i.code!=="EXDEV"?r(i):Dde(e,t,n,r):r())}function Dde(e,t,n,r){xde(e,t,{overwrite:n,errorOnExist:!0},s=>s?r(s):Rq(e,r))}Dq.exports=Nde});var qq=p((bAe,Lq)=>{"use strict";var Ode=Pt().fromCallback;Lq.exports={move:Ode(Oq())}});var Qv=p((SAe,Jv)=>{"use strict";Jv.exports=o(o(o(o(o(o(o(o(o(o(o(o({},po()),Vv()),Wv()),qL()),iq()),bq()),gn()),Iq()),qq()),Rp()),Xr()),So());var Mq=require("fs");Object.getOwnPropertyDescriptor(Mq,"promises")&&Object.defineProperty(Jv.exports,"promises",{get(){return Mq.promises}})});var Bq=p((wAe,Fq)=>{Fq.exports=Ao;Ao.default=Ao;Ao.stable=zq;Ao.stableStringify=zq;var Np="[...]",kq="[Circular]",zi=[],Ui=[];function jq(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function Ao(e,t,n,r){typeof r=="undefined"&&(r=jq()),Xv(e,"",0,[],void 0,0,r);var i;try{Ui.length===0?i=JSON.stringify(e,t,n):i=JSON.stringify(e,Uq(t),n)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;zi.length!==0;){var s=zi.pop();s.length===4?Object.defineProperty(s[0],s[1],s[3]):s[0][s[1]]=s[2]}}return i}function Zs(e,t,n,r){var i=Object.getOwnPropertyDescriptor(r,n);i.get!==void 0?i.configurable?(Object.defineProperty(r,n,{value:e}),zi.push([r,n,t,i])):Ui.push([t,n,e]):(r[n]=e,zi.push([r,n,t]))}function Xv(e,t,n,r,i,s,a){s+=1;var l;if(typeof e=="object"&&e!==null){for(l=0;l<r.length;l++)if(r[l]===e){Zs(kq,e,t,i);return}if(typeof a.depthLimit!="undefined"&&s>a.depthLimit){Zs(Np,e,t,i);return}if(typeof a.edgesLimit!="undefined"&&n+1>a.edgesLimit){Zs(Np,e,t,i);return}if(r.push(e),Array.isArray(e))for(l=0;l<e.length;l++)Xv(e[l],l,l,r,e,s,a);else{var c=Object.keys(e);for(l=0;l<c.length;l++){var d=c[l];Xv(e[d],d,l,r,e,s,a)}}r.pop()}}function Lde(e,t){return e<t?-1:e>t?1:0}function zq(e,t,n,r){typeof r=="undefined"&&(r=jq());var i=Zv(e,"",0,[],void 0,0,r)||e,s;try{Ui.length===0?s=JSON.stringify(i,t,n):s=JSON.stringify(i,Uq(t),n)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;zi.length!==0;){var a=zi.pop();a.length===4?Object.defineProperty(a[0],a[1],a[3]):a[0][a[1]]=a[2]}}return s}function Zv(e,t,n,r,i,s,a){s+=1;var l;if(typeof e=="object"&&e!==null){for(l=0;l<r.length;l++)if(r[l]===e){Zs(kq,e,t,i);return}try{if(typeof e.toJSON=="function")return}catch{return}if(typeof a.depthLimit!="undefined"&&s>a.depthLimit){Zs(Np,e,t,i);return}if(typeof a.edgesLimit!="undefined"&&n+1>a.edgesLimit){Zs(Np,e,t,i);return}if(r.push(e),Array.isArray(e))for(l=0;l<e.length;l++)Zv(e[l],l,l,r,e,s,a);else{var c={},d=Object.keys(e).sort(Lde);for(l=0;l<d.length;l++){var u=d[l];Zv(e[u],u,l,r,e,s,a),c[u]=e[u]}if(typeof i!="undefined")zi.push([i,t,e]),i[t]=c;else return c}r.pop()}}function Uq(e){return e=typeof e!="undefined"?e:function(t,n){return n},function(t,n){if(Ui.length>0)for(var r=0;r<Ui.length;r++){var i=Ui[r];if(i[1]===t&&i[0]===n){n=i[2],Ui.splice(r,1);break}}return e.call(this,t,n)}}});var $q=p((EAe,Gq)=>{"use strict";var qde=Bq(),Pp=class{constructor({level:t,msg:n,meta:r,tags:i},s){this.level=t,this.meta=r,this.tags=["log",t].concat(s.tags,i);let a={};if(Pp.isError(n)&&(this._error=n,a.stack=n.stack,n=n.message),this.msg=n,r&&(typeof r!="object"||Array.isArray(r))&&(r={meta:r}),this.meta=Object.assign({},r||{},s.meta,a),s.dynamicMeta&&typeof s.dynamicMeta=="function"){let l=s.dynamicMeta(this,s);typeof l=="object"&&(this.meta=Object.assign(this.meta,l))}this._replacer=typeof s.replacer=="function"?s.replacer:null}get value(){return Object.assign({_logLevel:this.level,msg:this.msg},this.meta,{_tags:this.tags})}get log(){return this.value}get throw(){let t=this._error||new Error(this.msg);throw t.log=this,t}toJSON(t){return qde(this.value,this._replacer,t?4:0)}static isError(t){return!!t&&typeof t=="object"&&(t instanceof Error||t.hasOwnProperty("message")&&t.hasOwnProperty("stack"))}};Gq.exports=Pp});var Vq=p((AAe,Kq)=>{"use strict";var Mde=require("events"),kde=$q(),Dp=class extends Mde{constructor(t={},n={}){super();this.LambdaLog=Dp,this.LogMessage=kde,this.options=Object.assign({meta:{},tags:[],dynamicMeta:null,debug:!1,dev:!1,silent:![void 0,null,"0","no","false"].includes(process.env.LAMBDALOG_SILENT),replacer:null,logHandler:console},t),this._logLevels=Object.assign({info:"info",warn:"warn",error:"error",debug:function(){return this.options.debug?"debug":!1}},n||{}),this._levels=Object.keys(this._logLevels),this.console=this.options.logHandler,this._levels.forEach(r=>{this[r]=(i,s={},a=[])=>this.log(r,i,s,a)})}log(t,n,r={},i=[]){if(this._levels.indexOf(t)===-1)throw new Error(`"${t}" is not a valid log level`);let s=new this.LogMessage({level:t,msg:n,meta:r,tags:i},this.options),a=this._logLevels[t];return typeof a=="function"&&(a=a.call(this,s)),a?(this.options.silent||this.console[a](s.toJSON(this.options.dev)),this.emit("log",s),s):!1}assert(t,n,r={},i=[]){return t?!1:this.log("error",n,r,i)}result(t,n={},r=[]){if(!t||typeof t.then!="function")throw new Error("A promise must be provided as the first argument");return new Promise(s=>{t.then(a=>s(this.log("info",a,n,r))).catch(a=>s(this.log("error",a,n,r)))})}};Kq.exports=Dp});var Wq=p((CAe,Hq)=>{"use strict";var jde=Vq(),zde=new jde;Hq.exports=zde});var ea=p((Co,eb)=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.default=Ude;function Op(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Op=function(n){return typeof n}:Op=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Op(e)}function Ude(e){var t=typeof e=="string"||e instanceof String;if(!t){var n=Op(e);throw e===null?n="null":n==="object"&&(n=e.constructor.name),new TypeError("Expected a string but received a ".concat(n))}}eb.exports=Co.default;eb.exports.default=Co.default});var Lp=p((To,tb)=>{"use strict";Object.defineProperty(To,"__esModule",{value:!0});To.default=Fde;function Fde(){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]=="undefined"&&(e[n]=t[n]);return e}tb.exports=To.default;tb.exports.default=To.default});var Yq=p((xo,nb)=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});xo.default=$de;var Bde=Gde(ea());function Gde(e){return e&&e.__esModule?e:{default:e}}function qp(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?qp=function(n){return typeof n}:qp=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},qp(e)}function $de(e,t){(0,Bde.default)(e);var n,r;qp(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=="undefined"||i<=r)}nb.exports=xo.default;nb.exports.default=xo.default});var ib=p((Io,rb)=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.default=Wde;var Kde=Jq(ea()),Vde=Jq(Lp());function Jq(e){return e&&e.__esModule?e:{default:e}}var Hde={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1};function Wde(e,t){(0,Kde.default)(e),t=(0,Vde.default)(t,Hde),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))})}rb.exports=Io.default;rb.exports.default=Io.default});var Mp=p((Ro,ab)=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.default=sb;var Yde=Jde(ea());function Jde(e){return e&&e.__esModule?e:{default:e}}var Qq="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",ti="(".concat(Qq,"[.]){3}").concat(Qq),Qde=new RegExp("^".concat(ti,"$")),Ye="(?:[0-9a-fA-F]{1,4})",Xde=new RegExp("^("+"(?:".concat(Ye,":){7}(?:").concat(Ye,"|:)|")+"(?:".concat(Ye,":){6}(?:").concat(ti,"|:").concat(Ye,"|:)|")+"(?:".concat(Ye,":){5}(?::").concat(ti,"|(:").concat(Ye,"){1,2}|:)|")+"(?:".concat(Ye,":){4}(?:(:").concat(Ye,"){0,1}:").concat(ti,"|(:").concat(Ye,"){1,3}|:)|")+"(?:".concat(Ye,":){3}(?:(:").concat(Ye,"){0,2}:").concat(ti,"|(:").concat(Ye,"){1,4}|:)|")+"(?:".concat(Ye,":){2}(?:(:").concat(Ye,"){0,3}:").concat(ti,"|(:").concat(Ye,"){1,5}|:)|")+"(?:".concat(Ye,":){1}(?:(:").concat(Ye,"){0,4}:").concat(ti,"|(:").concat(Ye,"){1,6}|:)|")+"(?::((?::".concat(Ye,"){0,5}:").concat(ti,"|(?::").concat(Ye,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");function sb(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if((0,Yde.default)(e),t=String(t),!t)return sb(e,4)||sb(e,6);if(t==="4"){if(!Qde.test(e))return!1;var n=e.split(".").sort(function(r,i){return r-i});return n[3]<=255}return t==="6"?!!Xde.test(e):!1}ab.exports=Ro.default;ab.exports.default=Ro.default});var Zq=p((Po,lb)=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.default=uue;var Zde=No(ea()),eue=No(Lp()),ob=No(Yq()),tue=No(ib()),Xq=No(Mp());function No(e){return e&&e.__esModule?e:{default:e}}var nue={allow_display_name:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[]},rue=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,iue=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,sue=/^[a-z\d]+$/,aue=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,oue=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,lue=/^([\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,cue=254;function due(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 uue(e,t){if((0,Zde.default)(e),t=(0,eue.default)(t,nue),t.require_display_name||t.allow_display_name){var n=e.match(rue);if(n){var r=n[1];if(e=e.replace(r,"").replace(/(^<|>$)/g,""),r.endsWith(" ")&&(r=r.substr(0,r.length-1)),!due(r))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>cue)return!1;var i=e.split("@"),s=i.pop(),a=s.toLowerCase();if(t.host_blacklist.includes(a))return!1;var l=i.join("@");if(t.domain_specific_validation&&(a==="gmail.com"||a==="googlemail.com")){l=l.toLowerCase();var c=l.split("+")[0];if(!(0,ob.default)(c.replace(/\./g,""),{min:6,max:30}))return!1;for(var d=c.split("."),u=0;u<d.length;u++)if(!sue.test(d[u]))return!1}if(t.ignore_max_length===!1&&(!(0,ob.default)(l,{max:64})||!(0,ob.default)(s,{max:254})))return!1;if(!(0,tue.default)(s,{require_tld:t.require_tld})){if(!t.allow_ip_domain)return!1;if(!(0,Xq.default)(s)){if(!s.startsWith("[")||!s.endsWith("]"))return!1;var _=s.substr(1,s.length-2);if(_.length===0||!(0,Xq.default)(_))return!1}}if(l[0]==='"')return l=l.slice(1,l.length-1),t.allow_utf8_local_part?lue.test(l):aue.test(l);for(var g=t.allow_utf8_local_part?oue:iue,b=l.split("."),S=0;S<b.length;S++)if(!g.test(b[S]))return!1;return!(t.blacklisted_chars&&l.search(new RegExp("[".concat(t.blacklisted_chars,"]+"),"g"))!==-1)}lb.exports=Po.default;lb.exports.default=Po.default});var rM=p((Do,cb)=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.default=Eue;var mue=kp(ea()),fue=kp(ib()),eM=kp(Mp()),pue=kp(Lp());function kp(e){return e&&e.__esModule?e:{default:e}}function _ue(e,t){return vue(e)||yue(e,t)||gue(e,t)||hue()}function hue(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
37
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gue(e,t){if(!!e){if(typeof e=="string")return tM(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 tM(e,t)}}function tM(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 yue(e,t){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,s=void 0;try{for(var a=e[Symbol.iterator](),l;!(r=(l=a.next()).done)&&(n.push(l.value),!(t&&n.length===t));r=!0);}catch(c){i=!0,s=c}finally{try{!r&&a.return!=null&&a.return()}finally{if(i)throw s}}return n}}function vue(e){if(Array.isArray(e))return e}var bue={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},Sue=/^\[([^\]]+)\](?::([0-9]+))?$/;function wue(e){return Object.prototype.toString.call(e)==="[object RegExp]"}function nM(e,t){for(var n=0;n<t.length;n++){var r=t[n];if(e===r||wue(r)&&r.test(e))return!0}return!1}function Eue(e,t){if((0,mue.default)(e),!e||/[\s<>]/.test(e)||e.indexOf("mailto:")===0||(t=(0,pue.default)(t,bue),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,a,l,c,d;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(":"),_=_ue(u,2),g=_[0],b=_[1];if(g===""&&b==="")return!1}s=c.join("@"),l=null,d=null;var S=s.match(Sue);if(S?(i="",d=S[1],l=S[2]||null):(c=s.split(":"),i=c.shift(),c.length&&(l=c.join(":"))),l!==null&&l.length>0){if(a=parseInt(l,10),!/^[0-9]+$/.test(l)||a<=0||a>65535)return!1}else if(t.require_port)return!1;return t.host_whitelist?nM(i,t.host_whitelist):!(!(0,eM.default)(i)&&!(0,fue.default)(i,t)&&(!d||!(0,eM.default)(d,6))||(i=i||d,t.host_blacklist&&nM(i,t.host_blacklist)))}cb.exports=Do.default;cb.exports.default=Do.default});var sM=p((TAe,iM)=>{"use strict";var Aue=Zq(),Cue=rM(),Tue=Mp();function db(e,t){if(!e)throw new Error(t)}var xue={name:"email",coerce:e=>e.toString(),validate:function(e){db(Aue(e),"must be an email address")}},Iue={name:"ipaddress",coerce:e=>e.toString(),validate:function(e){db(Tue(e),"must be an IP address")}},Rue={name:"url",coerce:e=>e.toString(),validate:function(e){db(Cue(e,{require_tld:!1}),"must be a URL")}};iM.exports={email:xue,ipaddress:Iue,url:Rue}});var WM=p(HM=>{"use strict";Object.defineProperty(HM,"__esModule",{value:!0})});var Cb=p(Ab=>{"use strict";Object.defineProperty(Ab,"__esModule",{value:!0});var YM=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)||[]}};Ab.default=new YM});var JM=p(ii=>{"use strict";var Zfe=ii&&ii.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ii,"__esModule",{value:!0});ii.Property=ii.Config=void 0;var $p=Zfe(Cb());function epe(e={}){return t=>{$p.default.setConvictMetaForClass(e,t)}}ii.Config=epe;function tpe(e){return(t,n)=>{if(typeof e=="object"&&typeof e.format=="undefined"){let r=$p.default.getTsType(t,n);r&&(e.format=r)}$p.default.setConvictMetaForProperty(e,t,n),$p.default.setPropertyForClass(t,n)}}ii.Property=tpe});var sk=p((qAe,ik)=>{"use strict";var npe=require("util"),rpe=require("fs"),QM=require("path");function jo(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 a=e.charAt(s);r&&(r=!1,a=a.toUpperCase()),s!==0&&(a==="-"||a==="_")?r=!0:a!=="-"&&a!=="_"&&(n+=a)}return n}}function XM(e,t){let n=e.toLowerCase();t=t||"-";let r="";for(let i=0;i<e.length;i++){let s=n.charAt(i),a=e.charAt(i);s!==a&&i>0?r+=`${t}${n.charAt(i)}`:r+=a}return r}function ZM(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 ipe(e){if(Array.isArray(e))return e.map(a=>typeof a!="string"?a+"":a);e=e.trim();let t=0,n=null,r=null,i=null,s=[];for(let a=0;a<e.length;a++){if(n=r,r=e.charAt(a),r===" "&&!i){n!==" "&&t++;continue}r===i?i=null:(r==="'"||r==='"')&&!i&&(i=r),s[t]||(s[t]=""),s[t]+=r}return s}var yn;(function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"})(yn||(yn={}));var yr,ek=class{constructor(t){yr=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=ipe(t),s=spe(Object.assign(Object.create(null),r.alias)),a=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),l=Object.assign(Object.create(null),r.default),c=r.configObjects||[],d=r.envPrefix,u=a["populate--"],_=u?"--":"_",g=Object.create(null),b=Object.create(null),S=r.__||yr.format,v={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:[]},I=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,L=new RegExp("^--"+a["negation-prefix"]+"(.+)");[].concat(r.array||[]).filter(Boolean).forEach(function(E){let A=typeof E=="object"?E.key:E,O=Object.keys(E).map(function(R){return{boolean:"bools",string:"strings",number:"numbers"}[R]}).filter(Boolean).pop();O&&(v[O][A]=!0),v.arrays[A]=!0,v.keys.push(A)}),[].concat(r.boolean||[]).filter(Boolean).forEach(function(E){v.bools[E]=!0,v.keys.push(E)}),[].concat(r.string||[]).filter(Boolean).forEach(function(E){v.strings[E]=!0,v.keys.push(E)}),[].concat(r.number||[]).filter(Boolean).forEach(function(E){v.numbers[E]=!0,v.keys.push(E)}),[].concat(r.count||[]).filter(Boolean).forEach(function(E){v.counts[E]=!0,v.keys.push(E)}),[].concat(r.normalize||[]).filter(Boolean).forEach(function(E){v.normalize[E]=!0,v.keys.push(E)}),typeof r.narg=="object"&&Object.entries(r.narg).forEach(([E,A])=>{typeof A=="number"&&(v.nargs[E]=A,v.keys.push(E))}),typeof r.coerce=="object"&&Object.entries(r.coerce).forEach(([E,A])=>{typeof A=="function"&&(v.coercions[E]=A,v.keys.push(E))}),typeof r.config!="undefined"&&(Array.isArray(r.config)||typeof r.config=="string"?[].concat(r.config).filter(Boolean).forEach(function(E){v.configs[E]=!0}):typeof r.config=="object"&&Object.entries(r.config).forEach(([E,A])=>{(typeof A=="boolean"||typeof A=="function")&&(v.configs[E]=A)})),Ar(r.key,s,r.default,v.arrays),Object.keys(l).forEach(function(E){(v.aliases[E]||[]).forEach(function(A){l[A]=l[E]})});let x=null;d_();let re=[],be=Object.assign(Object.create(null),{_:[]}),on={};for(let E=0;E<i.length;E++){let A=i[E],O=A.replace(/^-{3,}/,"---"),R,C,j,z,Y,Fe;if(A!=="--"&&Wi(A))wr(A);else if(O.match(/---+(=|$)/)){wr(A);continue}else if(A.match(/^--.+=/)||!a["short-option-groups"]&&A.match(/^-.+=/))z=A.match(/^--?([^=]+)=([\s\S]*)$/),z!==null&&Array.isArray(z)&&z.length>=3&&(ie(z[1],v.arrays)?E=Q(E,z[1],i,z[2]):ie(z[1],v.nargs)!==!1?E=vn(E,z[1],i,z[2]):$(z[1],z[2]));else if(A.match(L)&&a["boolean-negation"])z=A.match(L),z!==null&&Array.isArray(z)&&z.length>=2&&(C=z[1],$(C,ie(C,v.arrays)?[!1]:!1));else if(A.match(/^--.+/)||!a["short-option-groups"]&&A.match(/^-[^-]+/))z=A.match(/^--?(.+)/),z!==null&&Array.isArray(z)&&z.length>=2&&(C=z[1],ie(C,v.arrays)?E=Q(E,C,i):ie(C,v.nargs)!==!1?E=vn(E,C,i):(Y=i[E+1],Y!==void 0&&(!Y.match(/^-/)||Y.match(I))&&!ie(C,v.bools)&&!ie(C,v.counts)||/^(true|false)$/.test(Y)?($(C,Y),E++):$(C,ft(C))));else if(A.match(/^-.\..+=/))z=A.match(/^-([^=]+)=([\s\S]*)$/),z!==null&&Array.isArray(z)&&z.length>=3&&$(z[1],z[2]);else if(A.match(/^-.\..+/)&&!A.match(I))Y=i[E+1],z=A.match(/^-(.\..+)/),z!==null&&Array.isArray(z)&&z.length>=2&&(C=z[1],Y!==void 0&&!Y.match(/^-/)&&!ie(C,v.bools)&&!ie(C,v.counts)?($(C,Y),E++):$(C,ft(C)));else if(A.match(/^-[^-]+/)&&!A.match(I)){j=A.slice(1,-1).split(""),R=!1;for(let Qe=0;Qe<j.length;Qe++){if(Y=A.slice(Qe+2),j[Qe+1]&&j[Qe+1]==="="){Fe=A.slice(Qe+3),C=j[Qe],ie(C,v.arrays)?E=Q(E,C,i,Fe):ie(C,v.nargs)!==!1?E=vn(E,C,i,Fe):$(C,Fe),R=!0;break}if(Y==="-"){$(j[Qe],Y);continue}if(/[A-Za-z]/.test(j[Qe])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(Y)&&ie(Y,v.bools)===!1){$(j[Qe],Y),R=!0;break}if(j[Qe+1]&&j[Qe+1].match(/\W/)){$(j[Qe],Y),R=!0;break}else $(j[Qe],ft(j[Qe]))}C=A.slice(-1)[0],!R&&C!=="-"&&(ie(C,v.arrays)?E=Q(E,C,i):ie(C,v.nargs)!==!1?E=vn(E,C,i):(Y=i[E+1],Y!==void 0&&(!/^(-|--)[^-]/.test(Y)||Y.match(I))&&!ie(C,v.bools)&&!ie(C,v.counts)||/^(true|false)$/.test(Y)?($(C,Y),E++):$(C,ft(C))))}else if(A.match(/^-[0-9]$/)&&A.match(I)&&ie(A.slice(1),v.bools))C=A.slice(1),$(C,ft(C));else if(A==="--"){re=i.slice(E+1);break}else if(a["halt-at-non-option"]){re=i.slice(E);break}else wr(A)}he(be,!0),he(be,!1),Me(be),Ue(),Hi(be,v.aliases,l,!0),it(be),a["set-placeholder-key"]&&De(be),Object.keys(v.counts).forEach(function(E){Er(be,E.split("."))||$(E,0)}),u&&re.length&&(be[_]=[]),re.forEach(function(E){be[_].push(E)}),a["camel-case-expansion"]&&a["strip-dashed"]&&Object.keys(be).filter(E=>E!=="--"&&E.includes("-")).forEach(E=>{delete be[E]}),a["strip-aliased"]&&[].concat(...Object.keys(s).map(E=>s[E])).forEach(E=>{a["camel-case-expansion"]&&E.includes("-")&&delete be[E.split(".").map(A=>jo(A)).join(".")],delete be[E]});function wr(E){let A=we("_",E);(typeof A=="string"||typeof A=="number")&&be._.push(A)}function vn(E,A,O,R){let C,j=ie(A,v.nargs);if(j=typeof j!="number"||isNaN(j)?1:j,j===0)return Vt(R)||(x=Error(S("Argument unexpected for: %s",A))),$(A,ft(A)),E;let z=Vt(R)?0:1;if(a["nargs-eats-options"])O.length-(E+1)+z<j&&(x=Error(S("Not enough arguments following: %s",A))),z=j;else{for(C=E+1;C<O.length&&(!O[C].match(/^-[^0-9]/)||O[C].match(I)||Wi(O[C]));C++)z++;z<j&&(x=Error(S("Not enough arguments following: %s",A)))}let Y=Math.min(z,j);for(!Vt(R)&&Y>0&&($(A,R),Y--),C=E+1;C<Y+E+1;C++)$(A,O[C]);return E+Y}function Q(E,A,O,R){let C=[],j=R||O[E+1],z=ie(A,v.nargs);if(ie(A,v.bools)&&!/^(true|false)$/.test(j))C.push(!0);else if(Vt(j)||Vt(R)&&/^-/.test(j)&&!I.test(j)&&!Wi(j)){if(l[A]!==void 0){let Y=l[A];C=Array.isArray(Y)?Y:[Y]}}else{Vt(R)||C.push(Le(A,R));for(let Y=E+1;Y<O.length&&!(!a["greedy-arrays"]&&C.length>0||z&&typeof z=="number"&&C.length>=z||(j=O[Y],/^-/.test(j)&&!I.test(j)&&!Wi(j)));Y++)E=Y,C.push(Le(A,j))}return typeof z=="number"&&(z&&C.length<z||isNaN(z)&&C.length===0)&&(x=Error(S("Not enough arguments following: %s",A))),$(A,C),E}function $(E,A){if(/-/.test(E)&&a["camel-case-expansion"]){let C=E.split(".").map(function(j){return jo(j)}).join(".");fe(E,C)}let O=Le(E,A),R=E.split(".");Re(be,R,O),v.aliases[E]&&v.aliases[E].forEach(function(C){let j=C.split(".");Re(be,j,O)}),R.length>1&&a["dot-notation"]&&(v.aliases[R[0]]||[]).forEach(function(C){let j=C.split("."),z=[].concat(R);z.shift(),j=j.concat(z),(v.aliases[E]||[]).includes(j.join("."))||Re(be,j,O)}),ie(E,v.normalize)&&!ie(E,v.arrays)&&[E].concat(v.aliases[E]||[]).forEach(function(j){Object.defineProperty(on,j,{enumerable:!0,get(){return A},set(z){A=typeof z=="string"?yr.normalize(z):z}})})}function fe(E,A){v.aliases[E]&&v.aliases[E].length||(v.aliases[E]=[A],g[A]=!0),v.aliases[A]&&v.aliases[A].length||fe(A,E)}function Le(E,A){typeof A=="string"&&(A[0]==="'"||A[0]==='"')&&A[A.length-1]===A[0]&&(A=A.substring(1,A.length-1)),(ie(E,v.bools)||ie(E,v.counts))&&typeof A=="string"&&(A=A==="true");let O=Array.isArray(A)?A.map(function(R){return we(E,R)}):we(E,A);return ie(E,v.counts)&&(Vt(O)||typeof O=="boolean")&&(O=Tb()),ie(E,v.normalize)&&ie(E,v.arrays)&&(Array.isArray(A)?O=A.map(R=>yr.normalize(R)):O=yr.normalize(A)),O}function we(E,A){return!a["parse-positional-numbers"]&&E==="_"||!ie(E,v.strings)&&!ie(E,v.bools)&&!Array.isArray(A)&&(ZM(A)&&a["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${A}`)))||!Vt(A)&&ie(E,v.numbers))&&(A=Number(A)),A}function Me(E){let A=Object.create(null);Hi(A,v.aliases,l),Object.keys(v.configs).forEach(function(O){let R=E[O]||A[O];if(R)try{let C=null,j=yr.resolve(yr.cwd(),R),z=v.configs[O];if(typeof z=="function"){try{C=z(j)}catch(Y){C=Y}if(C instanceof Error){x=C;return}}else C=yr.require(j);Ce(C)}catch(C){C.name==="PermissionDenied"?x=C:E[O]&&(x=Error(S("Invalid JSON config file: %s",R)))}})}function Ce(E,A){Object.keys(E).forEach(function(O){let R=E[O],C=A?A+"."+O:O;typeof R=="object"&&R!==null&&!Array.isArray(R)&&a["dot-notation"]?Ce(R,C):(!Er(be,C.split("."))||ie(C,v.arrays)&&a["combine-arrays"])&&$(C,R)})}function Ue(){typeof c!="undefined"&&c.forEach(function(E){Ce(E)})}function he(E,A){if(typeof d=="undefined")return;let O=typeof d=="string"?d:"",R=yr.env();Object.keys(R).forEach(function(C){if(O===""||C.lastIndexOf(O,0)===0){let j=C.split("__").map(function(z,Y){return Y===0&&(z=z.substring(O.length)),jo(z)});(A&&v.configs[j.join(".")]||!A)&&!Er(E,j)&&$(j.join("."),R[C])}})}function it(E){let A,O=new Set;Object.keys(E).forEach(function(R){if(!O.has(R)&&(A=ie(R,v.coercions),typeof A=="function"))try{let C=we(R,A(E[R]));[].concat(v.aliases[R]||[],R).forEach(j=>{O.add(j),E[j]=C})}catch(C){x=C}})}function De(E){return v.keys.forEach(A=>{~A.indexOf(".")||typeof E[A]=="undefined"&&(E[A]=void 0)}),E}function Hi(E,A,O,R=!1){Object.keys(O).forEach(function(C){Er(E,C.split("."))||(Re(E,C.split("."),O[C]),R&&(b[C]=!0),(A[C]||[]).forEach(function(j){Er(E,j.split("."))||Re(E,j.split("."),O[C])}))})}function Er(E,A){let O=E;a["dot-notation"]||(A=[A.join(".")]),A.slice(0,-1).forEach(function(C){O=O[C]||{}});let R=A[A.length-1];return typeof O!="object"?!1:R in O}function Re(E,A,O){let R=E;a["dot-notation"]||(A=[A.join(".")]),A.slice(0,-1).forEach(function(Fe){Fe=tk(Fe),typeof R=="object"&&R[Fe]===void 0&&(R[Fe]={}),typeof R[Fe]!="object"||Array.isArray(R[Fe])?(Array.isArray(R[Fe])?R[Fe].push({}):R[Fe]=[R[Fe],{}],R=R[Fe][R[Fe].length-1]):R=R[Fe]});let C=tk(A[A.length-1]),j=ie(A.join("."),v.arrays),z=Array.isArray(O),Y=a["duplicate-arguments-array"];!Y&&ie(C,v.nargs)&&(Y=!0,(!Vt(R[C])&&v.nargs[C]===1||Array.isArray(R[C])&&R[C].length===v.nargs[C])&&(R[C]=void 0)),O===Tb()?R[C]=Tb(R[C]):Array.isArray(R[C])?Y&&j&&z?R[C]=a["flatten-duplicate-arrays"]?R[C].concat(O):(Array.isArray(R[C][0])?R[C]:[R[C]]).concat([O]):!Y&&Boolean(j)===Boolean(z)?R[C]=O:R[C]=R[C].concat([O]):R[C]===void 0&&j?R[C]=z?O:[O]:Y&&!(R[C]===void 0||ie(C,v.counts)||ie(C,v.bools))?R[C]=[R[C],O]:R[C]=O}function Ar(...E){E.forEach(function(A){Object.keys(A||{}).forEach(function(O){v.aliases[O]||(v.aliases[O]=[].concat(s[O]||[]),v.aliases[O].concat(O).forEach(function(R){if(/-/.test(R)&&a["camel-case-expansion"]){let C=jo(R);C!==O&&v.aliases[O].indexOf(C)===-1&&(v.aliases[O].push(C),g[C]=!0)}}),v.aliases[O].concat(O).forEach(function(R){if(R.length>1&&/[A-Z]/.test(R)&&a["camel-case-expansion"]){let C=XM(R,"-");C!==O&&v.aliases[O].indexOf(C)===-1&&(v.aliases[O].push(C),g[C]=!0)}}),v.aliases[O].forEach(function(R){v.aliases[R]=[O].concat(v.aliases[O].filter(function(C){return R!==C}))}))})})}function ie(E,A){let O=[].concat(v.aliases[E]||[],E),R=Object.keys(A),C=O.find(j=>R.includes(j));return C?A[C]:!1}function je(E){let A=Object.keys(v);return[].concat(A.map(R=>v[R])).some(function(R){return Array.isArray(R)?R.includes(E):R[E]})}function o_(E,...A){return[].concat(...A).some(function(R){let C=E.match(R);return C&&je(C[1])})}function l_(E){if(E.match(I)||!E.match(/^-[^-]+/))return!1;let A=!0,O,R=E.slice(1).split("");for(let C=0;C<R.length;C++){if(O=E.slice(C+2),!je(R[C])){A=!1;break}if(R[C+1]&&R[C+1]==="="||O==="-"||/[A-Za-z]/.test(R[C])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(O)||R[C+1]&&R[C+1].match(/\W/))break}return A}function Wi(E){return a["unknown-options-as-args"]&&c_(E)}function c_(E){return E=E.replace(/^-{3,}/,"--"),E.match(I)||l_(E)?!1:!o_(E,/^-+([^=]+?)=[\s\S]*$/,L,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function ft(E){return!ie(E,v.bools)&&!ie(E,v.counts)&&`${E}`in l?l[E]:Vo(Cr(E))}function Vo(E){return{[yn.BOOLEAN]:!0,[yn.STRING]:"",[yn.NUMBER]:void 0,[yn.ARRAY]:[]}[E]}function Cr(E){let A=yn.BOOLEAN;return ie(E,v.strings)?A=yn.STRING:ie(E,v.numbers)?A=yn.NUMBER:ie(E,v.bools)?A=yn.BOOLEAN:ie(E,v.arrays)&&(A=yn.ARRAY),A}function Vt(E){return E===void 0}function d_(){Object.keys(v.counts).find(E=>ie(E,v.arrays)?(x=Error(S("Invalid configuration: %s, opts.count excludes opts.array.",E)),!0):ie(E,v.nargs)?(x=Error(S("Invalid configuration: %s, opts.count excludes opts.narg.",E)),!0):!1)}return{aliases:Object.assign({},v.aliases),argv:Object.assign(on,be),configuration:a,defaulted:Object.assign({},b),error:x,newAliases:Object.assign({},g)}}};function spe(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(l){return t[s].indexOf(l)!==-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(a,l,c){return c.indexOf(a)===l});let s=i.pop();s!==void 0&&typeof s=="string"&&(n[s]=i)}),n}function Tb(e){return e!==void 0?e+1:1}function tk(e){return e==="__proto__"?"___proto___":e}var nk=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])<nk)throw Error(`yargs parser supports a minimum Node.js version of ${nk}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var ape=process?process.env:{},rk=new ek({cwd:process.cwd,env:()=>ape,format:npe.format,normalize:QM.normalize,resolve:QM.resolve,require:e=>{if(typeof require!="undefined")return require(e);if(e.match(/\.json$/))return rpe.readFileSync(e,"utf8");throw Error("only .json config files are supported in ESM")}}),zo=function(t,n){return rk.parse(t.slice(),n).argv};zo.detailed=function(e,t){return rk.parse(e.slice(),t)};zo.camelCase=jo;zo.decamelize=XM;zo.looksLikeNumber=ZM;ik.exports=zo});var Hk=p((Bo,la)=>{var ope=200,ak="__lodash_hash_undefined__",ok=9007199254740991,xb="[object Arguments]",lpe="[object Array]",lk="[object Boolean]",ck="[object Date]",cpe="[object Error]",Ib="[object Function]",dk="[object GeneratorFunction]",Kp="[object Map]",uk="[object Number]",Rb="[object Object]",mk="[object Promise]",fk="[object RegExp]",Vp="[object Set]",pk="[object String]",_k="[object Symbol]",Nb="[object WeakMap]",hk="[object ArrayBuffer]",Hp="[object DataView]",gk="[object Float32Array]",yk="[object Float64Array]",vk="[object Int8Array]",bk="[object Int16Array]",Sk="[object Int32Array]",wk="[object Uint8Array]",Ek="[object Uint8ClampedArray]",Ak="[object Uint16Array]",Ck="[object Uint32Array]",dpe=/[\\^$.*+?()[\]{}|]/g,upe=/\w*$/,mpe=/^\[object .+?Constructor\]$/,fpe=/^(?:0|[1-9]\d*)$/,Ie={};Ie[xb]=Ie[lpe]=Ie[hk]=Ie[Hp]=Ie[lk]=Ie[ck]=Ie[gk]=Ie[yk]=Ie[vk]=Ie[bk]=Ie[Sk]=Ie[Kp]=Ie[uk]=Ie[Rb]=Ie[fk]=Ie[Vp]=Ie[pk]=Ie[_k]=Ie[wk]=Ie[Ek]=Ie[Ak]=Ie[Ck]=!0;Ie[cpe]=Ie[Ib]=Ie[Nb]=!1;var ppe=typeof global=="object"&&global&&global.Object===Object&&global,_pe=typeof self=="object"&&self&&self.Object===Object&&self,vr=ppe||_pe||Function("return this")(),Tk=typeof Bo=="object"&&Bo&&!Bo.nodeType&&Bo,xk=Tk&&typeof la=="object"&&la&&!la.nodeType&&la,hpe=xk&&xk.exports===Tk;function gpe(e,t){return e.set(t[0],t[1]),e}function ype(e,t){return e.add(t),e}function vpe(e,t){for(var n=-1,r=e?e.length:0;++n<r&&t(e[n],n,e)!==!1;);return e}function bpe(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Ik(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 Spe(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function wpe(e,t){return e==null?void 0:e[t]}function Rk(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function Nk(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}function Pb(e,t){return function(n){return e(t(n))}}function Pk(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Epe=Array.prototype,Ape=Function.prototype,Wp=Object.prototype,Db=vr["__core-js_shared__"],Dk=function(){var e=/[^.]+$/.exec(Db&&Db.keys&&Db.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ok=Ape.toString,si=Wp.hasOwnProperty,Yp=Wp.toString,Cpe=RegExp("^"+Ok.call(si).replace(dpe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Lk=hpe?vr.Buffer:void 0,qk=vr.Symbol,Mk=vr.Uint8Array,Tpe=Pb(Object.getPrototypeOf,Object),xpe=Object.create,Ipe=Wp.propertyIsEnumerable,Rpe=Epe.splice,kk=Object.getOwnPropertySymbols,Npe=Lk?Lk.isBuffer:void 0,Ppe=Pb(Object.keys,Object),Ob=oa(vr,"DataView"),Uo=oa(vr,"Map"),Lb=oa(vr,"Promise"),qb=oa(vr,"Set"),Mb=oa(vr,"WeakMap"),Fo=oa(Object,"create"),Dpe=Ki(Ob),Ope=Ki(Uo),Lpe=Ki(Lb),qpe=Ki(qb),Mpe=Ki(Mb),jk=qk?qk.prototype:void 0,zk=jk?jk.valueOf:void 0;function Gi(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 kpe(){this.__data__=Fo?Fo(null):{}}function jpe(e){return this.has(e)&&delete this.__data__[e]}function zpe(e){var t=this.__data__;if(Fo){var n=t[e];return n===ak?void 0:n}return si.call(t,e)?t[e]:void 0}function Upe(e){var t=this.__data__;return Fo?t[e]!==void 0:si.call(t,e)}function Fpe(e,t){var n=this.__data__;return n[e]=Fo&&t===void 0?ak:t,this}Gi.prototype.clear=kpe;Gi.prototype.delete=jpe;Gi.prototype.get=zpe;Gi.prototype.has=Upe;Gi.prototype.set=Fpe;function br(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 Bpe(){this.__data__=[]}function Gpe(e){var t=this.__data__,n=Jp(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Rpe.call(t,n,1),!0}function $pe(e){var t=this.__data__,n=Jp(t,e);return n<0?void 0:t[n][1]}function Kpe(e){return Jp(this.__data__,e)>-1}function Vpe(e,t){var n=this.__data__,r=Jp(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}br.prototype.clear=Bpe;br.prototype.delete=Gpe;br.prototype.get=$pe;br.prototype.has=Kpe;br.prototype.set=Vpe;function sa(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 Hpe(){this.__data__={hash:new Gi,map:new(Uo||br),string:new Gi}}function Wpe(e){return Qp(this,e).delete(e)}function Ype(e){return Qp(this,e).get(e)}function Jpe(e){return Qp(this,e).has(e)}function Qpe(e,t){return Qp(this,e).set(e,t),this}sa.prototype.clear=Hpe;sa.prototype.delete=Wpe;sa.prototype.get=Ype;sa.prototype.has=Jpe;sa.prototype.set=Qpe;function aa(e){this.__data__=new br(e)}function Xpe(){this.__data__=new br}function Zpe(e){return this.__data__.delete(e)}function e_e(e){return this.__data__.get(e)}function t_e(e){return this.__data__.has(e)}function n_e(e,t){var n=this.__data__;if(n instanceof br){var r=n.__data__;if(!Uo||r.length<ope-1)return r.push([e,t]),this;n=this.__data__=new sa(r)}return n.set(e,t),this}aa.prototype.clear=Xpe;aa.prototype.delete=Zpe;aa.prototype.get=e_e;aa.prototype.has=t_e;aa.prototype.set=n_e;function r_e(e,t){var n=zb(e)||x_e(e)?Spe(e.length,String):[],r=n.length,i=!!r;for(var s in e)(t||si.call(e,s))&&!(i&&(s=="length"||E_e(s,r)))&&n.push(s);return n}function Uk(e,t,n){var r=e[t];(!(si.call(e,t)&&$k(r,n))||n===void 0&&!(t in e))&&(e[t]=n)}function Jp(e,t){for(var n=e.length;n--;)if($k(e[n][0],t))return n;return-1}function i_e(e,t){return e&&Fk(t,Ub(t),e)}function kb(e,t,n,r,i,s,a){var l;if(r&&(l=s?r(e,i,s,a):r(e)),l!==void 0)return l;if(!Xp(e))return e;var c=zb(e);if(c){if(l=b_e(e),!t)return g_e(e,l)}else{var d=$i(e),u=d==Ib||d==dk;if(R_e(e))return d_e(e,t);if(d==Rb||d==xb||u&&!s){if(Rk(e))return s?e:{};if(l=S_e(u?{}:e),!t)return y_e(e,i_e(l,e))}else{if(!Ie[d])return s?e:{};l=w_e(e,d,kb,t)}}a||(a=new aa);var _=a.get(e);if(_)return _;if(a.set(e,l),!c)var g=n?v_e(e):Ub(e);return vpe(g||e,function(b,S){g&&(S=b,b=e[S]),Uk(l,S,kb(b,t,n,r,S,e,a))}),l}function s_e(e){return Xp(e)?xpe(e):{}}function a_e(e,t,n){var r=t(e);return zb(e)?r:bpe(r,n(e))}function o_e(e){return Yp.call(e)}function l_e(e){if(!Xp(e)||C_e(e))return!1;var t=Vk(e)||Rk(e)?Cpe:mpe;return t.test(Ki(e))}function c_e(e){if(!Gk(e))return Ppe(e);var t=[];for(var n in Object(e))si.call(e,n)&&n!="constructor"&&t.push(n);return t}function d_e(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}function jb(e){var t=new e.constructor(e.byteLength);return new Mk(t).set(new Mk(e)),t}function u_e(e,t){var n=t?jb(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function m_e(e,t,n){var r=t?n(Nk(e),!0):Nk(e);return Ik(r,gpe,new e.constructor)}function f_e(e){var t=new e.constructor(e.source,upe.exec(e));return t.lastIndex=e.lastIndex,t}function p_e(e,t,n){var r=t?n(Pk(e),!0):Pk(e);return Ik(r,ype,new e.constructor)}function __e(e){return zk?Object(zk.call(e)):{}}function h_e(e,t){var n=t?jb(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function g_e(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function Fk(e,t,n,r){n||(n={});for(var i=-1,s=t.length;++i<s;){var a=t[i],l=r?r(n[a],e[a],a,n,e):void 0;Uk(n,a,l===void 0?e[a]:l)}return n}function y_e(e,t){return Fk(e,Bk(e),t)}function v_e(e){return a_e(e,Ub,Bk)}function Qp(e,t){var n=e.__data__;return A_e(t)?n[typeof t=="string"?"string":"hash"]:n.map}function oa(e,t){var n=wpe(e,t);return l_e(n)?n:void 0}var Bk=kk?Pb(kk,Object):D_e,$i=o_e;(Ob&&$i(new Ob(new ArrayBuffer(1)))!=Hp||Uo&&$i(new Uo)!=Kp||Lb&&$i(Lb.resolve())!=mk||qb&&$i(new qb)!=Vp||Mb&&$i(new Mb)!=Nb)&&($i=function(e){var t=Yp.call(e),n=t==Rb?e.constructor:void 0,r=n?Ki(n):void 0;if(r)switch(r){case Dpe:return Hp;case Ope:return Kp;case Lpe:return mk;case qpe:return Vp;case Mpe:return Nb}return t});function b_e(e){var t=e.length,n=e.constructor(t);return t&&typeof e[0]=="string"&&si.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function S_e(e){return typeof e.constructor=="function"&&!Gk(e)?s_e(Tpe(e)):{}}function w_e(e,t,n,r){var i=e.constructor;switch(t){case hk:return jb(e);case lk:case ck:return new i(+e);case Hp:return u_e(e,r);case gk:case yk:case vk:case bk:case Sk:case wk:case Ek:case Ak:case Ck:return h_e(e,r);case Kp:return m_e(e,r,n);case uk:case pk:return new i(e);case fk:return f_e(e);case Vp:return p_e(e,r,n);case _k:return __e(e)}}function E_e(e,t){return t=t??ok,!!t&&(typeof e=="number"||fpe.test(e))&&e>-1&&e%1==0&&e<t}function A_e(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function C_e(e){return!!Dk&&Dk in e}function Gk(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Wp;return e===n}function Ki(e){if(e!=null){try{return Ok.call(e)}catch{}try{return e+""}catch{}}return""}function T_e(e){return kb(e,!0,!0)}function $k(e,t){return e===t||e!==e&&t!==t}function x_e(e){return I_e(e)&&si.call(e,"callee")&&(!Ipe.call(e,"callee")||Yp.call(e)==xb)}var zb=Array.isArray;function Kk(e){return e!=null&&N_e(e.length)&&!Vk(e)}function I_e(e){return P_e(e)&&Kk(e)}var R_e=Npe||O_e;function Vk(e){var t=Xp(e)?Yp.call(e):"";return t==Ib||t==dk}function N_e(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ok}function Xp(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function P_e(e){return!!e&&typeof e=="object"}function Ub(e){return Kk(e)?r_e(e):c_e(e)}function D_e(){return[]}function O_e(){return!1}la.exports=T_e});var rj=p((MAe,nj)=>{"use strict";var L_e=require("fs"),q_e=sk(),ca=Hk();function ai(e,t){if(!e)throw new Error(t)}function Wk(e){return Number.isInteger(e)&&e>=0&&e<=65535}function Fb(e){return String(e).includes("\\\\.\\pipe\\")}var Go={"*":function(){},int:function(e){ai(Number.isInteger(e),"must be an integer")},nat:function(e){ai(Number.isInteger(e)&&e>=0,"must be a positive integer")},port:function(e){ai(Wk(e),"ports must be within range 0 - 65535")},windows_named_pipe:function(e){ai(Fb(e),"must be a valid pipe")},port_or_windows_named_pipe:function(e){Fb(e)||ai(Wk(e),"must be a windows named pipe or a number within range 0 - 65535")}};Go.integer=Go.int;var Bb=new Map,Gb={"*":JSON.parse},M_e="strict",Yk="warn";function Jk(e,t){let n=Object.keys(e),r,i=[];for(;n.length;){r=n.shift();let a=da(e,r);if(typeof a=="object"&&!Array.isArray(a)&&a!=null){if(t)if("_cvtProperties"in a)a=a._cvtProperties,r=r+"._cvtProperties";else{i.push([r,a]);continue}let l=Object.keys(a);if(l.length>0){l.forEach(function(c){n.push(r+"."+c)});continue}}i.push([r,a])}let s={};return i.forEach(function(a){let l=a[0];t&&(l=l.replace(/\._cvtProperties/g,""));let c=a[1];s[l]=c}),s}function k_e(e,t,n){let r={undeclared:[],invalid_type:[],missing:[]},i=Jk(e),s=Jk(t._cvtProperties,!0);return Object.keys(s).forEach(function(a){let l=s[a],c=i[a];if(!(a in i))try{if(typeof l.default=="object"&&!Array.isArray(l.default))c=da(e,a);else throw new Error("missing")}catch{let u=new Error("configuration param '"+a+"' missing from config, did you override its parent?");r.missing.push(u);return}if(delete i[a],(l.format==="object"||typeof l.default=="object")&&Object.keys(i).filter(function(d){return d.lastIndexOf(a+".",0)===0}).forEach(function(d){delete i[d]}),!(typeof l.default=="undefined"&&c===l.default))try{l._format(c)}catch(d){r.invalid_type.push(d)}}),n&&Object.keys(i).forEach(function(a){let l=new Error("configuration param '"+a+"' not declared in the schema");r.undeclared.push(l)}),r}function j_e(e,t){ai(e.indexOf(t)!==-1,"must be one of the possible values: "+JSON.stringify(e))}var $b={Object,Array,String,Number,Boolean,RegExp},Qk=Object.keys($b),z_e=Qk.map(function(e){return $b[e]});function Xk(e,t,n,r,i,s,a){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){Xk(u,t[u],n[e]._cvtProperties,r+"."+u,i,s,a)});return}else(typeof t!="object"||Array.isArray(t)||t===null||Object.keys(t).length==0)&&(t={default:t});let l=ca(t);if(n[e]=l,l.env&&(i[l.env]||(i[l.env]=[]),i[l.env].push(r)),l.arg){if(s[l.arg])throw new Error("'"+r+"' reuses a command-line argument: "+l.arg);s[l.arg]=r}l.sensitive===!0&&a.add(r);let c=l.format,d;if(z_e.indexOf(c)>=0||Qk.indexOf(c)>=0){let u=typeof c=="string"?$b[c]:c;d=function(_){ai(Object.prototype.toString.call(_)==Object.prototype.toString.call(new u),"must be of type "+u.name)},l.format=u.name.toLowerCase()}else if(typeof c=="string"){if(!Go[c])throw new Error("'"+r+"' uses an unknown format type: "+c);d=Go[c]}else if(Array.isArray(c))d=j_e.bind(null,c);else if(typeof c=="function")d=c;else if(c&&typeof c!="function")throw new Error("'"+r+"': `format` must be a function or a known format type.");if(!d&&!c){let u=Object.prototype.toString.call(l.default);d=function(_){ai(Object.prototype.toString.call(_)==u," should be of type "+u.replace(/\[.* |]/g,""))}}l._format=function(u){if(!(this.nullable&&u===null))try{d(u,this)}catch(_){throw _.fullName=r,_.value=u,_}}}function Kb(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 Vb(e){let t=q_e(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 Zk(e,t,n){Object.keys(e._cvtProperties).forEach(function(r){let i=e._cvtProperties[r];if(i._cvtProperties){let s=t[r]||{};Zk(i,s,n),t[r]=s}else t[r]=Wb(r,ca(i.default),e,n)})}function ej(e){return typeof e=="object"&&e!==null}function Hb(e,t,n){Object.keys(e).forEach(function(r){Array.isArray(e[r])||!ej(e[r])||!n||n.format==="object"?t[r]=Wb(r,e[r],n):(ej(t[r])||(t[r]={}),Hb(e[r],t[r],n._cvtProperties[r]))})}function U_e(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 F_e(e,t){let n=U_e(e,t);return n==null?null:typeof n.format=="string"?n.format:n.default!=null?typeof n.default:null}function Wb(e,t,n,r){let i=F_e(n,e);if(typeof t=="string"){if(Bb.has(i))return Bb.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=Fb(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 tj(e){let t=e.split("."),n=t.length>1?t.pop():"";return(Gb[n]||Gb["*"])(L_e.readFileSync(e,"utf-8"))}function da(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 $o=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 ca(this._instance)},toString:function(){let i=ca(this._instance);return this._sensitive.forEach(function(s){let a=s.split("."),l=a.pop(),c=a.join("."),d=da(i,c);d[l]="[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=da(this._instance,i);return ca(s)},default:function(i){i=i.split(".").join("._cvtProperties.")+".default";let s=da(this._schema._cvtProperties,i);return ca(s)},reset:function(i){this.set(i,this.default(i))},has:function(i){try{return typeof this.get(i)!="undefined"}catch{return!1}},set:function(i,s){s=Wb(i,s,this._schema,this);let a=i.split("."),l=a.pop(),c=a.join(".");if(!(c=="__proto__"||c=="constructor"||c=="prototype")){let d=da(this._instance,c,!0);d[l]=s}return this},load:function(i){return Hb(i,this._instance,this._schema),Kb(r),Vb(r),this},loadFile:function(i){let s=this;return Array.isArray(i)||(i=[i]),i.forEach(function(a){let l=tj(a);l&&Hb(l,s._instance,s._schema)}),Kb(r),Vb(r),this},validate:function(i){if(i=i||{},i.allowed=i.allowed||Yk,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,a=k_e(this._instance,this._schema,i.allowed);if(a.invalid_type.length+a.undeclared.length+a.missing.length){let l=this._sensitive,c=function(S){let v="";for(let I=0;I<S.length;I++){v.length&&(v+=`
38
- `);let L=S[I];L.fullName&&(v+=L.fullName+": "),L.message&&(v+=L.message),L.value&&!l.has(L.fullName)&&(v+=": value was "+JSON.stringify(L.value))}return v},d=c(a.invalid_type),u=c(a.undeclared),_=c(a.missing),g=[d,_];if(i.allowed===Yk&&u.length){let S="Warning:";if(process.stdout.isTTY){let v="\x1B[33;1m",I="\x1B[0m";S=v+S+I}s(S+" "+u)}else i.allowed===M_e&&g.push(u);let b=g.filter(function(S){return S.length}).join(`
39
- `);if(b.length)throw new Error(b)}return this}};return typeof t=="string"?r._def=tj(t):r._def=t,r._schema={_cvtProperties:{}},r._env={},r._argv={},r._sensitive=new Set,Object.keys(r._def).forEach(function(i){Xk(i,r._def[i],r._schema._cvtProperties,i,r._env,r._argv,r._sensitive)}),r._instance={},Zk(r._schema,r._instance,r),Kb(r),Vb(r),r};$o.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.");Go[e]=t,n&&Bb.set(e,n)};$o.addFormats=function(e){Object.keys(e).forEach(function(t){$o.addFormat(t,e[t].validate,e[t].coerce)})};$o.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");Gb[r]=t.parse})})};nj.exports=$o});var sj=p(ua=>{"use strict";var Zp=ua&&ua.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ua,"__esModule",{value:!0});ua.TSConvict=void 0;var Xn=Zp(Cb()),Yb=Zp(rj()),B_e=Zp(require("fs")),G_e=Zp(require("path")),ij=class{constructor(t){if(this.opts={},!Xn.default.isConfigClass)throw new Error("A class must be decorated with Config or at least one Property");let n=Xn.default.getConvictMetaForClass(t);n!==null&&(typeof n.parser!="undefined"&&Yb.default.addParser(n.parser),typeof n.formats!="undefined"&&Yb.default.addFormats(n.formats),this.opts=n),this.baseModel=new t,this.schema=this.getSchemaFor(this.baseModel),this.client=Yb.default(this.schema)}load(t=null){let n=null;if(typeof this.opts.file!="undefined"&&B_e.default.existsSync(G_e.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 Xn.default.getClassProperties(t)){let i=Xn.default.getConvictMetaForProperty(t,r);if(Xn.default.isConstructor(i)&&Xn.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 Xn.default.getClassProperties(t)){let i=Xn.default.getConvictMetaForProperty(t,r);Xn.default.isConstructor(i)&&Xn.default.isConfigClass(i)?this.applyDataToModel(t[r],n[r]||{}):r in n&&(t[r]=n[r])}return t}};ua.TSConvict=ij});var e_=p(Sr=>{"use strict";var $_e=Sr&&Sr.__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]}),Jb=Sr&&Sr.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&$_e(t,e,n)};Object.defineProperty(Sr,"__esModule",{value:!0});Jb(WM(),Sr);Jb(JM(),Sr);Jb(sj(),Sr)});var Z_e={};pj(Z_e,{handler:()=>J_e,overrideDBManager:()=>V_e});zS().install();var US;(function(e){(function(t){var n=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:Function("return this;")(),r=i(e);typeof n.Reflect=="undefined"?n.Reflect=e:r=i(n.Reflect,r),t(r);function i(s,a){return function(l,c){typeof s[l]!="function"&&Object.defineProperty(s,l,{configurable:!0,writable:!0,value:c}),a&&a(l,c)}}})(function(t){var n=Object.prototype.hasOwnProperty,r=typeof Symbol=="function",i=r&&typeof Symbol.toPrimitive!="undefined"?Symbol.toPrimitive:"@@toPrimitive",s=r&&typeof Symbol.iterator!="undefined"?Symbol.iterator:"@@iterator",a=typeof Object.create=="function",l={__proto__:[]}instanceof Array,c=!a&&!l,d={create:a?function(){return Qe(Object.create(null))}:l?function(){return Qe({__proto__:null})}:function(){return Qe({})},has:c?function(T,N){return n.call(T,N)}:function(T,N){return N in T},get:c?function(T,N){return n.call(T,N)?T[N]:void 0}:function(T,N){return T[N]}},u=Object.getPrototypeOf(Function),_=typeof process=="object"&&process.env&&process.env.REFLECT_METADATA_USE_MAP_POLYFILL==="true",g=!_&&typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:z(),b=!_&&typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Y(),S=!_&&typeof WeakMap=="function"?WeakMap:Fe(),v=new S;function I(T,N,D,k){if(Re(D)){if(!Vo(T))throw new TypeError;if(!Vt(N))throw new TypeError;return fe(T,N)}else{if(!Vo(T))throw new TypeError;if(!je(N))throw new TypeError;if(!je(k)&&!Re(k)&&!Ar(k))throw new TypeError;return Ar(k)&&(k=void 0),D=ft(D),Le(T,N,D,k)}}t("decorate",I);function L(T,N){function D(k,V){if(!je(k))throw new TypeError;if(!Re(V)&&!d_(V))throw new TypeError;it(T,N,k,V)}return D}t("metadata",L);function x(T,N,D,k){if(!je(D))throw new TypeError;return Re(k)||(k=ft(k)),it(T,N,D,k)}t("defineMetadata",x);function re(T,N,D){if(!je(N))throw new TypeError;return Re(D)||(D=ft(D)),Me(T,N,D)}t("hasMetadata",re);function be(T,N,D){if(!je(N))throw new TypeError;return Re(D)||(D=ft(D)),Ce(T,N,D)}t("hasOwnMetadata",be);function on(T,N,D){if(!je(N))throw new TypeError;return Re(D)||(D=ft(D)),Ue(T,N,D)}t("getMetadata",on);function wr(T,N,D){if(!je(N))throw new TypeError;return Re(D)||(D=ft(D)),he(T,N,D)}t("getOwnMetadata",wr);function vn(T,N){if(!je(T))throw new TypeError;return Re(N)||(N=ft(N)),De(T,N)}t("getMetadataKeys",vn);function Q(T,N){if(!je(T))throw new TypeError;return Re(N)||(N=ft(N)),Hi(T,N)}t("getOwnMetadataKeys",Q);function $(T,N,D){if(!je(N))throw new TypeError;Re(D)||(D=ft(D));var k=we(N,D,!1);if(Re(k)||!k.delete(T))return!1;if(k.size>0)return!0;var V=v.get(N);return V.delete(D),V.size>0||v.delete(N),!0}t("deleteMetadata",$);function fe(T,N){for(var D=T.length-1;D>=0;--D){var k=T[D],V=k(N);if(!Re(V)&&!Ar(V)){if(!Vt(V))throw new TypeError;N=V}}return N}function Le(T,N,D,k){for(var V=T.length-1;V>=0;--V){var st=T[V],le=st(N,D,k);if(!Re(le)&&!Ar(le)){if(!je(le))throw new TypeError;k=le}}return k}function we(T,N,D){var k=v.get(T);if(Re(k)){if(!D)return;k=new g,v.set(T,k)}var V=k.get(N);if(Re(V)){if(!D)return;V=new g,k.set(N,V)}return V}function Me(T,N,D){var k=Ce(T,N,D);if(k)return!0;var V=j(N);return Ar(V)?!1:Me(T,V,D)}function Ce(T,N,D){var k=we(N,D,!1);return Re(k)?!1:Wi(k.has(T))}function Ue(T,N,D){var k=Ce(T,N,D);if(k)return he(T,N,D);var V=j(N);if(!Ar(V))return Ue(T,V,D)}function he(T,N,D){var k=we(N,D,!1);if(!Re(k))return k.get(T)}function it(T,N,D,k){var V=we(D,k,!0);V.set(T,N)}function De(T,N){var D=Hi(T,N),k=j(T);if(k===null)return D;var V=De(k,N);if(V.length<=0)return D;if(D.length<=0)return V;for(var st=new b,le=[],de=0,X=D;de<X.length;de++){var ge=X[de],ye=st.has(ge);ye||(st.add(ge),le.push(ge))}for(var Tr=0,eS=V;Tr<eS.length;Tr++){var ge=eS[Tr],ye=st.has(ge);ye||(st.add(ge),le.push(ge))}return le}function Hi(T,N){var D=[],k=we(T,N,!1);if(Re(k))return D;for(var V=k.keys(),st=A(V),le=0;;){var de=R(st);if(!de)return D.length=le,D;var X=O(de);try{D[le]=X}catch(ge){try{C(st)}finally{throw ge}}le++}}function Er(T){if(T===null)return 1;switch(typeof T){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return T===null?1:6;default:return 6}}function Re(T){return T===void 0}function Ar(T){return T===null}function ie(T){return typeof T=="symbol"}function je(T){return typeof T=="object"?T!==null:typeof T=="function"}function o_(T,N){switch(Er(T)){case 0:return T;case 1:return T;case 2:return T;case 3:return T;case 4:return T;case 5:return T}var D=N===3?"string":N===5?"number":"default",k=E(T,i);if(k!==void 0){var V=k.call(T,D);if(je(V))throw new TypeError;return V}return l_(T,D==="default"?"number":D)}function l_(T,N){if(N==="string"){var D=T.toString;if(Cr(D)){var k=D.call(T);if(!je(k))return k}var V=T.valueOf;if(Cr(V)){var k=V.call(T);if(!je(k))return k}}else{var V=T.valueOf;if(Cr(V)){var k=V.call(T);if(!je(k))return k}var st=T.toString;if(Cr(st)){var k=st.call(T);if(!je(k))return k}}throw new TypeError}function Wi(T){return!!T}function c_(T){return""+T}function ft(T){var N=o_(T,3);return ie(N)?N:c_(N)}function Vo(T){return Array.isArray?Array.isArray(T):T instanceof Object?T instanceof Array:Object.prototype.toString.call(T)==="[object Array]"}function Cr(T){return typeof T=="function"}function Vt(T){return typeof T=="function"}function d_(T){switch(Er(T)){case 3:return!0;case 4:return!0;default:return!1}}function E(T,N){var D=T[N];if(D!=null){if(!Cr(D))throw new TypeError;return D}}function A(T){var N=E(T,s);if(!Cr(N))throw new TypeError;var D=N.call(T);if(!je(D))throw new TypeError;return D}function O(T){return T.value}function R(T){var N=T.next();return N.done?!1:N}function C(T){var N=T.return;N&&N.call(T)}function j(T){var N=Object.getPrototypeOf(T);if(typeof T!="function"||T===u||N!==u)return N;var D=T.prototype,k=D&&Object.getPrototypeOf(D);if(k==null||k===Object.prototype)return N;var V=k.constructor;return typeof V!="function"||V===T?N:V}function z(){var T={},N=[],D=function(){function le(de,X,ge){this._index=0,this._keys=de,this._values=X,this._selector=ge}return le.prototype["@@iterator"]=function(){return this},le.prototype[s]=function(){return this},le.prototype.next=function(){var de=this._index;if(de>=0&&de<this._keys.length){var X=this._selector(this._keys[de],this._values[de]);return de+1>=this._keys.length?(this._index=-1,this._keys=N,this._values=N):this._index++,{value:X,done:!1}}return{value:void 0,done:!0}},le.prototype.throw=function(de){throw this._index>=0&&(this._index=-1,this._keys=N,this._values=N),de},le.prototype.return=function(de){return this._index>=0&&(this._index=-1,this._keys=N,this._values=N),{value:de,done:!0}},le}();return function(){function le(){this._keys=[],this._values=[],this._cacheKey=T,this._cacheIndex=-2}return Object.defineProperty(le.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),le.prototype.has=function(de){return this._find(de,!1)>=0},le.prototype.get=function(de){var X=this._find(de,!1);return X>=0?this._values[X]:void 0},le.prototype.set=function(de,X){var ge=this._find(de,!0);return this._values[ge]=X,this},le.prototype.delete=function(de){var X=this._find(de,!1);if(X>=0){for(var ge=this._keys.length,ye=X+1;ye<ge;ye++)this._keys[ye-1]=this._keys[ye],this._values[ye-1]=this._values[ye];return this._keys.length--,this._values.length--,de===this._cacheKey&&(this._cacheKey=T,this._cacheIndex=-2),!0}return!1},le.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=T,this._cacheIndex=-2},le.prototype.keys=function(){return new D(this._keys,this._values,k)},le.prototype.values=function(){return new D(this._keys,this._values,V)},le.prototype.entries=function(){return new D(this._keys,this._values,st)},le.prototype["@@iterator"]=function(){return this.entries()},le.prototype[s]=function(){return this.entries()},le.prototype._find=function(de,X){return this._cacheKey!==de&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=de)),this._cacheIndex<0&&X&&(this._cacheIndex=this._keys.length,this._keys.push(de),this._values.push(void 0)),this._cacheIndex},le}();function k(le,de){return le}function V(le,de){return de}function st(le,de){return[le,de]}}function Y(){return function(){function T(){this._map=new g}return Object.defineProperty(T.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),T.prototype.has=function(N){return this._map.has(N)},T.prototype.add=function(N){return this._map.set(N,N),this},T.prototype.delete=function(N){return this._map.delete(N)},T.prototype.clear=function(){this._map.clear()},T.prototype.keys=function(){return this._map.keys()},T.prototype.values=function(){return this._map.values()},T.prototype.entries=function(){return this._map.entries()},T.prototype["@@iterator"]=function(){return this.keys()},T.prototype[s]=function(){return this.keys()},T}()}function Fe(){var T=16,N=d.create(),D=k();return function(){function X(){this._key=k()}return X.prototype.has=function(ge){var ye=V(ge,!1);return ye!==void 0?d.has(ye,this._key):!1},X.prototype.get=function(ge){var ye=V(ge,!1);return ye!==void 0?d.get(ye,this._key):void 0},X.prototype.set=function(ge,ye){var Tr=V(ge,!0);return Tr[this._key]=ye,this},X.prototype.delete=function(ge){var ye=V(ge,!1);return ye!==void 0?delete ye[this._key]:!1},X.prototype.clear=function(){this._key=k()},X}();function k(){var X;do X="@@WeakMap@@"+de();while(d.has(N,X));return N[X]=!0,X}function V(X,ge){if(!n.call(X,D)){if(!ge)return;Object.defineProperty(X,D,{value:d.create()})}return X[D]}function st(X,ge){for(var ye=0;ye<ge;++ye)X[ye]=Math.random()*255|0;return X}function le(X){return typeof Uint8Array=="function"?typeof crypto!="undefined"?crypto.getRandomValues(new Uint8Array(X)):typeof msCrypto!="undefined"?msCrypto.getRandomValues(new Uint8Array(X)):st(new Uint8Array(X),X):st(new Array(X),X)}function de(){var X=le(T);X[6]=X[6]&79|64,X[8]=X[8]&191|128;for(var ge="",ye=0;ye<T;++ye){var Tr=X[ye];(ye===4||ye===6||ye===8)&&(ge+="-"),Tr<16&&(ge+="0"),ge+=Tr.toString(16).toLowerCase()}return ge}}function Qe(T){return T.__=void 0,delete T.__,T}})})(US||(US={}));var i_=bn(require("path")),lj=bn(wt()),Vi=bn(RO()),s_=bn(Qv()),Xb=bn(Wq());var r_=bn(sM());function aM(e){return typeof e=="undefined"||e===null}function Nue(e){return typeof e=="object"&&e!==null}function Pue(e){return Array.isArray(e)?e:aM(e)?[]:[e]}function Due(e,t){var n,r,i,s;if(t)for(s=Object.keys(t),n=0,r=s.length;n<r;n+=1)i=s[n],e[i]=t[i];return e}function Oue(e,t){var n="",r;for(r=0;r<t;r+=1)n+=e;return n}function Lue(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var que=aM,Mue=Nue,kue=Pue,jue=Oue,zue=Lue,Uue=Due,Ze={isNothing:que,isObject:Mue,toArray:kue,repeat:jue,isNegativeZero:zue,extend:Uue};function oM(e,t){var n="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+=`
34
+ see https://github.com/jprichardson/node-fs-extra/issues/269`),pl.checkPaths(e,t,"copy",(i,s)=>{if(i)return n(i);let{srcStat:a,destStat:c}=s;pl.checkParentPaths(e,a,t,"copy",l=>l?n(l):r.filter?aF(iF,c,e,t,r,n):iF(c,e,t,r,n))})}function iF(e,t,r,n,i){let s=ml.dirname(r);Lve(s,(a,c)=>{if(a)return i(a);if(c)return LA(e,t,r,n,i);Ove(s,l=>l?i(l):LA(e,t,r,n,i))})}function aF(e,t,r,n,i,s){Promise.resolve(i.filter(r,n)).then(a=>a?e(t,r,n,i,s):s(),a=>s(a))}function LA(e,t,r,n,i){return n.filter?aF(sF,e,t,r,n,i):sF(e,t,r,n,i)}function sF(e,t,r,n,i){(n.dereference?jt.stat:jt.lstat)(t,(a,c)=>{if(a)return i(a);if(c.isDirectory())return Gve(c,e,t,r,n,i);if(c.isFile()||c.isCharacterDevice()||c.isBlockDevice())return zve(c,e,t,r,n,i);if(c.isSymbolicLink())return Kve(e,t,r,n,i)})}function zve(e,t,r,n,i,s){return t?jve(e,r,n,i,s):cF(e,r,n,i,s)}function jve(e,t,r,n,i){if(n.overwrite)jt.unlink(r,s=>s?i(s):cF(e,t,r,n,i));else return n.errorOnExist?i(new Error(`'${r}' already exists`)):i()}function cF(e,t,r,n,i){jt.copyFile(t,r,s=>s?i(s):n.preserveTimestamps?kve(e.mode,t,r,i):Qy(r,e.mode,i))}function kve(e,t,r,n){return Fve(e)?Uve(r,e,i=>i?n(i):oF(e,t,r,n)):oF(e,t,r,n)}function Fve(e){return(e&128)===0}function Uve(e,t,r){return Qy(e,t|128,r)}function oF(e,t,r,n){Bve(t,r,i=>i?n(i):Qy(r,e,n))}function Qy(e,t,r){return jt.chmod(e,t,r)}function Bve(e,t,r){jt.stat(e,(n,i)=>n?r(n):qve(t,i.atime,i.mtime,r))}function Gve(e,t,r,n,i,s){return t?t&&!t.isDirectory()?s(new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`)):lF(r,n,i,s):$ve(e.mode,r,n,i,s)}function $ve(e,t,r,n,i){jt.mkdir(r,s=>{if(s)return i(s);lF(t,r,n,a=>a?i(a):Qy(r,e,i))})}function lF(e,t,r,n){jt.readdir(e,(i,s)=>i?n(i):dF(s,e,t,r,n))}function dF(e,t,r,n,i){let s=e.pop();return s?Vve(e,s,t,r,n,i):i()}function Vve(e,t,r,n,i,s){let a=ml.join(r,t),c=ml.join(n,t);pl.checkPaths(a,c,"copy",(l,u)=>{if(l)return s(l);let{destStat:f}=u;LA(f,a,c,i,_=>_?s(_):dF(e,r,n,i,s))})}function Kve(e,t,r,n,i){jt.readlink(t,(s,a)=>{if(s)return i(s);if(n.dereference&&(a=ml.resolve(process.cwd(),a)),e)jt.readlink(r,(c,l)=>c?c.code==="EINVAL"||c.code==="UNKNOWN"?jt.symlink(a,r,i):i(c):(n.dereference&&(l=ml.resolve(process.cwd(),l)),pl.isSrcSubdir(a,l)?i(new Error(`Cannot copy '${a}' to a subdirectory of itself, '${l}'.`)):e.isDirectory()&&pl.isSrcSubdir(l,a)?i(new Error(`Cannot overwrite '${l}' with '${a}'.`)):Hve(a,r,i)));else return jt.symlink(a,r,i)})}function Hve(e,t,r){jt.unlink(t,n=>n?r(n):jt.symlink(e,t,r))}uF.exports=Mve});var qA=m((CLe,mF)=>{"use strict";var Wve=Mt().fromCallback;mF.exports={copy:Wve(fF())}});var EF=m((xLe,wF)=>{"use strict";var pF=vt(),gF=require("path"),Oe=require("assert"),_l=process.platform==="win32";function vF(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{e[r]=e[r]||pF[r],r=r+"Sync",e[r]=e[r]||pF[r]}),e.maxBusyTries=e.maxBusyTries||3}function MA(e,t,r){let n=0;typeof t=="function"&&(r=t,t={}),Oe(e,"rimraf: missing path"),Oe.strictEqual(typeof e,"string","rimraf: path should be a string"),Oe.strictEqual(typeof r,"function","rimraf: callback function required"),Oe(t,"rimraf: invalid options argument provided"),Oe.strictEqual(typeof t,"object","rimraf: options should be object"),vF(t),_F(e,t,function i(s){if(s){if((s.code==="EBUSY"||s.code==="ENOTEMPTY"||s.code==="EPERM")&&n<t.maxBusyTries){n++;let a=n*100;return setTimeout(()=>_F(e,t,i),a)}s.code==="ENOENT"&&(s=null)}r(s)})}function _F(e,t,r){Oe(e),Oe(t),Oe(typeof r=="function"),t.lstat(e,(n,i)=>{if(n&&n.code==="ENOENT")return r(null);if(n&&n.code==="EPERM"&&_l)return hF(e,t,n,r);if(i&&i.isDirectory())return Xy(e,t,n,r);t.unlink(e,s=>{if(s){if(s.code==="ENOENT")return r(null);if(s.code==="EPERM")return _l?hF(e,t,s,r):Xy(e,t,s,r);if(s.code==="EISDIR")return Xy(e,t,s,r)}return r(s)})})}function hF(e,t,r,n){Oe(e),Oe(t),Oe(typeof n=="function"),t.chmod(e,438,i=>{i?n(i.code==="ENOENT"?null:r):t.stat(e,(s,a)=>{s?n(s.code==="ENOENT"?null:r):a.isDirectory()?Xy(e,t,r,n):t.unlink(e,n)})})}function yF(e,t,r){let n;Oe(e),Oe(t);try{t.chmodSync(e,438)}catch(i){if(i.code==="ENOENT")return;throw r}try{n=t.statSync(e)}catch(i){if(i.code==="ENOENT")return;throw r}n.isDirectory()?Zy(e,t,r):t.unlinkSync(e)}function Xy(e,t,r,n){Oe(e),Oe(t),Oe(typeof n=="function"),t.rmdir(e,i=>{i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?Jve(e,t,n):i&&i.code==="ENOTDIR"?n(r):n(i)})}function Jve(e,t,r){Oe(e),Oe(t),Oe(typeof r=="function"),t.readdir(e,(n,i)=>{if(n)return r(n);let s=i.length,a;if(s===0)return t.rmdir(e,r);i.forEach(c=>{MA(gF.join(e,c),t,l=>{if(!a){if(l)return r(a=l);--s===0&&t.rmdir(e,r)}})})})}function SF(e,t){let r;t=t||{},vF(t),Oe(e,"rimraf: missing path"),Oe.strictEqual(typeof e,"string","rimraf: path should be a string"),Oe(t,"rimraf: missing options"),Oe.strictEqual(typeof t,"object","rimraf: options should be object");try{r=t.lstatSync(e)}catch(n){if(n.code==="ENOENT")return;n.code==="EPERM"&&_l&&yF(e,t,n)}try{r&&r.isDirectory()?Zy(e,t,null):t.unlinkSync(e)}catch(n){if(n.code==="ENOENT")return;if(n.code==="EPERM")return _l?yF(e,t,n):Zy(e,t,n);if(n.code!=="EISDIR")throw n;Zy(e,t,n)}}function Zy(e,t,r){Oe(e),Oe(t);try{t.rmdirSync(e)}catch(n){if(n.code==="ENOTDIR")throw r;if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")Yve(e,t);else if(n.code!=="ENOENT")throw n}}function Yve(e,t){if(Oe(e),Oe(t),t.readdirSync(e).forEach(r=>SF(gF.join(e,r),t)),_l){let r=Date.now();do try{return t.rmdirSync(e,t)}catch{}while(Date.now()-r<500)}else return t.rmdirSync(e,t)}wF.exports=MA;MA.sync=SF});var hl=m((ILe,AF)=>{"use strict";var Qve=Mt().fromCallback,bF=EF();AF.exports={remove:Qve(bF),removeSync:bF.sync}});var DF=m((RLe,PF)=>{"use strict";var Xve=Mt().fromCallback,xF=vt(),IF=require("path"),RF=mr(),NF=hl(),TF=Xve(function(t,r){r=r||function(){},xF.readdir(t,(n,i)=>{if(n)return RF.mkdirs(t,r);i=i.map(a=>IF.join(t,a)),s();function s(){let a=i.pop();if(!a)return r();NF.remove(a,c=>{if(c)return r(c);s()})}})});function CF(e){let t;try{t=xF.readdirSync(e)}catch{return RF.mkdirsSync(e)}t.forEach(r=>{r=IF.join(e,r),NF.removeSync(r)})}PF.exports={emptyDirSync:CF,emptydirSync:CF,emptyDir:TF,emptydir:TF}});var MF=m((NLe,qF)=>{"use strict";var Zve=Mt().fromCallback,OF=require("path"),pi=vt(),LF=mr();function eSe(e,t){function r(){pi.writeFile(e,"",n=>{if(n)return t(n);t()})}pi.stat(e,(n,i)=>{if(!n&&i.isFile())return t();let s=OF.dirname(e);pi.stat(s,(a,c)=>{if(a)return a.code==="ENOENT"?LF.mkdirs(s,l=>{if(l)return t(l);r()}):t(a);c.isDirectory()?r():pi.readdir(s,l=>{if(l)return t(l)})})})}function tSe(e){let t;try{t=pi.statSync(e)}catch{}if(t&&t.isFile())return;let r=OF.dirname(e);try{pi.statSync(r).isDirectory()||pi.readdirSync(r)}catch(n){if(n&&n.code==="ENOENT")LF.mkdirsSync(r);else throw n}pi.writeFileSync(e,"")}qF.exports={createFile:Zve(eSe),createFileSync:tSe}});var UF=m((PLe,FF)=>{"use strict";var rSe=Mt().fromCallback,jF=require("path"),ls=vt(),kF=mr(),zF=mi().pathExists;function nSe(e,t,r){function n(i,s){ls.link(i,s,a=>{if(a)return r(a);r(null)})}zF(t,(i,s)=>{if(i)return r(i);if(s)return r(null);ls.lstat(e,a=>{if(a)return a.message=a.message.replace("lstat","ensureLink"),r(a);let c=jF.dirname(t);zF(c,(l,u)=>{if(l)return r(l);if(u)return n(e,t);kF.mkdirs(c,f=>{if(f)return r(f);n(e,t)})})})})}function iSe(e,t){if(ls.existsSync(t))return;try{ls.lstatSync(e)}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}let n=jF.dirname(t);return ls.existsSync(n)||kF.mkdirsSync(n),ls.linkSync(e,t)}FF.exports={createLink:rSe(nSe),createLinkSync:iSe}});var GF=m((DLe,BF)=>{"use strict";var _i=require("path"),yl=vt(),sSe=mi().pathExists;function oSe(e,t,r){if(_i.isAbsolute(e))return yl.lstat(e,n=>n?(n.message=n.message.replace("lstat","ensureSymlink"),r(n)):r(null,{toCwd:e,toDst:e}));{let n=_i.dirname(t),i=_i.join(n,e);return sSe(i,(s,a)=>s?r(s):a?r(null,{toCwd:i,toDst:e}):yl.lstat(e,c=>c?(c.message=c.message.replace("lstat","ensureSymlink"),r(c)):r(null,{toCwd:e,toDst:_i.relative(n,e)})))}}function aSe(e,t){let r;if(_i.isAbsolute(e)){if(r=yl.existsSync(e),!r)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{let n=_i.dirname(t),i=_i.join(n,e);if(r=yl.existsSync(i),r)return{toCwd:i,toDst:e};if(r=yl.existsSync(e),!r)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:_i.relative(n,e)}}}BF.exports={symlinkPaths:oSe,symlinkPathsSync:aSe}});var KF=m((OLe,VF)=>{"use strict";var $F=vt();function cSe(e,t,r){if(r=typeof t=="function"?t:r,t=typeof t=="function"?!1:t,t)return r(null,t);$F.lstat(e,(n,i)=>{if(n)return r(null,"file");t=i&&i.isDirectory()?"dir":"file",r(null,t)})}function lSe(e,t){let r;if(t)return t;try{r=$F.lstatSync(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}VF.exports={symlinkType:cSe,symlinkTypeSync:lSe}});var ZF=m((LLe,XF)=>{"use strict";var dSe=Mt().fromCallback,WF=require("path"),Ao=vt(),JF=mr(),uSe=JF.mkdirs,fSe=JF.mkdirsSync,YF=GF(),mSe=YF.symlinkPaths,pSe=YF.symlinkPathsSync,QF=KF(),_Se=QF.symlinkType,hSe=QF.symlinkTypeSync,HF=mi().pathExists;function ySe(e,t,r,n){n=typeof r=="function"?r:n,r=typeof r=="function"?!1:r,HF(t,(i,s)=>{if(i)return n(i);if(s)return n(null);mSe(e,t,(a,c)=>{if(a)return n(a);e=c.toDst,_Se(c.toCwd,r,(l,u)=>{if(l)return n(l);let f=WF.dirname(t);HF(f,(_,h)=>{if(_)return n(_);if(h)return Ao.symlink(e,t,u,n);uSe(f,v=>{if(v)return n(v);Ao.symlink(e,t,u,n)})})})})})}function gSe(e,t,r){if(Ao.existsSync(t))return;let i=pSe(e,t);e=i.toDst,r=hSe(i.toCwd,r);let s=WF.dirname(t);return Ao.existsSync(s)||fSe(s),Ao.symlinkSync(e,t,r)}XF.exports={createSymlink:dSe(ySe),createSymlinkSync:gSe}});var tU=m((qLe,eU)=>{"use strict";var eg=MF(),tg=UF(),rg=ZF();eU.exports={createFile:eg.createFile,createFileSync:eg.createFileSync,ensureFile:eg.createFile,ensureFileSync:eg.createFileSync,createLink:tg.createLink,createLinkSync:tg.createLinkSync,ensureLink:tg.createLink,ensureLinkSync:tg.createLinkSync,createSymlink:rg.createSymlink,createSymlinkSync:rg.createSymlinkSync,ensureSymlink:rg.createSymlink,ensureSymlinkSync:rg.createSymlinkSync}});var ng=m((MLe,rU)=>{function vSe(e,{EOL:t=`
35
+ `,finalEOL:r=!0,replacer:n=null,spaces:i}={}){let s=r?t:"";return JSON.stringify(e,n,i).replace(/\n/g,t)+s}function SSe(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}rU.exports={stringify:vSe,stripBom:SSe}});var oU=m((zLe,sU)=>{var To;try{To=vt()}catch{To=require("fs")}var ig=Mt(),{stringify:nU,stripBom:iU}=ng();async function wSe(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||To,n="throws"in t?t.throws:!0,i=await ig.fromCallback(r.readFile)(e,t);i=iU(i);let s;try{s=JSON.parse(i,t?t.reviver:null)}catch(a){if(n)throw a.message=`${e}: ${a.message}`,a;return null}return s}var ESe=ig.fromPromise(wSe);function bSe(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||To,n="throws"in t?t.throws:!0;try{let i=r.readFileSync(e,t);return i=iU(i),JSON.parse(i,t.reviver)}catch(i){if(n)throw i.message=`${e}: ${i.message}`,i;return null}}async function ASe(e,t,r={}){let n=r.fs||To,i=nU(t,r);await ig.fromCallback(n.writeFile)(e,i,r)}var TSe=ig.fromPromise(ASe);function CSe(e,t,r={}){let n=r.fs||To,i=nU(t,r);return n.writeFileSync(e,i,r)}var xSe={readFile:ESe,readFileSync:bSe,writeFile:TSe,writeFileSync:CSe};sU.exports=xSe});var cU=m((jLe,aU)=>{"use strict";var sg=oU();aU.exports={readJson:sg.readFile,readJsonSync:sg.readFileSync,writeJson:sg.writeFile,writeJsonSync:sg.writeFileSync}});var og=m((kLe,uU)=>{"use strict";var ISe=Mt().fromCallback,gl=vt(),lU=require("path"),dU=mr(),RSe=mi().pathExists;function NSe(e,t,r,n){typeof r=="function"&&(n=r,r="utf8");let i=lU.dirname(e);RSe(i,(s,a)=>{if(s)return n(s);if(a)return gl.writeFile(e,t,r,n);dU.mkdirs(i,c=>{if(c)return n(c);gl.writeFile(e,t,r,n)})})}function PSe(e,...t){let r=lU.dirname(e);if(gl.existsSync(r))return gl.writeFileSync(e,...t);dU.mkdirsSync(r),gl.writeFileSync(e,...t)}uU.exports={outputFile:ISe(NSe),outputFileSync:PSe}});var mU=m((FLe,fU)=>{"use strict";var{stringify:DSe}=ng(),{outputFile:OSe}=og();async function LSe(e,t,r={}){let n=DSe(t,r);await OSe(e,n,r)}fU.exports=LSe});var _U=m((ULe,pU)=>{"use strict";var{stringify:qSe}=ng(),{outputFileSync:MSe}=og();function zSe(e,t,r){let n=qSe(t,r);MSe(e,n,r)}pU.exports=zSe});var yU=m((BLe,hU)=>{"use strict";var jSe=Mt().fromPromise,Ct=cU();Ct.outputJson=jSe(mU());Ct.outputJsonSync=_U();Ct.outputJSON=Ct.outputJson;Ct.outputJSONSync=Ct.outputJsonSync;Ct.writeJSON=Ct.writeJson;Ct.writeJSONSync=Ct.writeJsonSync;Ct.readJSON=Ct.readJson;Ct.readJSONSync=Ct.readJsonSync;hU.exports=Ct});var bU=m((GLe,EU)=>{"use strict";var SU=vt(),kSe=require("path"),FSe=OA().copySync,wU=hl().removeSync,USe=mr().mkdirpSync,gU=dl();function BSe(e,t,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i}=gU.checkPathsSync(e,t,"move");return gU.checkParentPathsSync(e,i,t,"move"),USe(kSe.dirname(t)),GSe(e,t,n)}function GSe(e,t,r){if(r)return wU(t),vU(e,t,r);if(SU.existsSync(t))throw new Error("dest already exists.");return vU(e,t,r)}function vU(e,t,r){try{SU.renameSync(e,t)}catch(n){if(n.code!=="EXDEV")throw n;return $Se(e,t,r)}}function $Se(e,t,r){return FSe(e,t,{overwrite:r,errorOnExist:!0}),wU(e)}EU.exports=BSe});var TU=m(($Le,AU)=>{"use strict";AU.exports={moveSync:bU()}});var NU=m((VLe,RU)=>{"use strict";var VSe=vt(),KSe=require("path"),HSe=qA().copy,IU=hl().remove,WSe=mr().mkdirp,JSe=mi().pathExists,CU=dl();function YSe(e,t,r,n){typeof r=="function"&&(n=r,r={});let i=r.overwrite||r.clobber||!1;CU.checkPaths(e,t,"move",(s,a)=>{if(s)return n(s);let{srcStat:c}=a;CU.checkParentPaths(e,c,t,"move",l=>{if(l)return n(l);WSe(KSe.dirname(t),u=>u?n(u):QSe(e,t,i,n))})})}function QSe(e,t,r,n){if(r)return IU(t,i=>i?n(i):xU(e,t,r,n));JSe(t,(i,s)=>i?n(i):s?n(new Error("dest already exists.")):xU(e,t,r,n))}function xU(e,t,r,n){VSe.rename(e,t,i=>i?i.code!=="EXDEV"?n(i):XSe(e,t,r,n):n())}function XSe(e,t,r,n){HSe(e,t,{overwrite:r,errorOnExist:!0},s=>s?n(s):IU(e,n))}RU.exports=YSe});var DU=m((KLe,PU)=>{"use strict";var ZSe=Mt().fromCallback;PU.exports={move:ZSe(NU())}});var jA=m((HLe,zA)=>{"use strict";zA.exports=o(o(o(o(o(o(o(o(o(o(o(o({},ll()),OA()),qA()),DF()),tU()),yU()),mr()),TU()),DU()),og()),mi()),hl());var OU=require("fs");Object.getOwnPropertyDescriptor(OU,"promises")&&Object.defineProperty(zA.exports,"promises",{get(){return OU.promises}})});var Co=m((vl,kA)=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});vl.default=ewe;function ag(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ag=function(r){return typeof r}:ag=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ag(e)}function ewe(e){var t=typeof e=="string"||e instanceof String;if(!t){var r=ag(e);throw e===null?r="null":r==="object"&&(r=e.constructor.name),new TypeError("Expected a string but received a ".concat(r))}}kA.exports=vl.default;kA.exports.default=vl.default});var cg=m((Sl,FA)=>{"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});Sl.default=twe;function twe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var r in t)typeof e[r]>"u"&&(e[r]=t[r]);return e}FA.exports=Sl.default;FA.exports.default=Sl.default});var LU=m((wl,UA)=>{"use strict";Object.defineProperty(wl,"__esModule",{value:!0});wl.default=iwe;var rwe=nwe(Co());function nwe(e){return e&&e.__esModule?e:{default:e}}function lg(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?lg=function(r){return typeof r}:lg=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},lg(e)}function iwe(e,t){(0,rwe.default)(e);var r,n;lg(t)==="object"?(r=t.min||0,n=t.max):(r=arguments[1],n=arguments[2]);var i=encodeURI(e).split(/%..|./).length-1;return i>=r&&(typeof n>"u"||i<=n)}UA.exports=wl.default;UA.exports.default=wl.default});var GA=m((El,BA)=>{"use strict";Object.defineProperty(El,"__esModule",{value:!0});El.default=cwe;var swe=qU(Co()),owe=qU(cg());function qU(e){return e&&e.__esModule?e:{default:e}}var awe={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1};function cwe(e,t){(0,swe.default)(e),t=(0,owe.default)(t,awe),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 r=e.split("."),n=r[r.length-1];return t.require_tld&&(r.length<2||!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(n)||/\s/.test(n))||!t.allow_numeric_tld&&/^\d+$/.test(n)?!1:r.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))})}BA.exports=El.default;BA.exports.default=El.default});var dg=m((bl,VA)=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});bl.default=$A;var lwe=dwe(Co());function dwe(e){return e&&e.__esModule?e:{default:e}}var MU="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",hi="(".concat(MU,"[.]){3}").concat(MU),uwe=new RegExp("^".concat(hi,"$")),Qe="(?:[0-9a-fA-F]{1,4})",fwe=new RegExp("^("+"(?:".concat(Qe,":){7}(?:").concat(Qe,"|:)|")+"(?:".concat(Qe,":){6}(?:").concat(hi,"|:").concat(Qe,"|:)|")+"(?:".concat(Qe,":){5}(?::").concat(hi,"|(:").concat(Qe,"){1,2}|:)|")+"(?:".concat(Qe,":){4}(?:(:").concat(Qe,"){0,1}:").concat(hi,"|(:").concat(Qe,"){1,3}|:)|")+"(?:".concat(Qe,":){3}(?:(:").concat(Qe,"){0,2}:").concat(hi,"|(:").concat(Qe,"){1,4}|:)|")+"(?:".concat(Qe,":){2}(?:(:").concat(Qe,"){0,3}:").concat(hi,"|(:").concat(Qe,"){1,5}|:)|")+"(?:".concat(Qe,":){1}(?:(:").concat(Qe,"){0,4}:").concat(hi,"|(:").concat(Qe,"){1,6}|:)|")+"(?::((?::".concat(Qe,"){0,5}:").concat(hi,"|(?::").concat(Qe,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");function $A(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if((0,lwe.default)(e),t=String(t),!t)return $A(e,4)||$A(e,6);if(t==="4"){if(!uwe.test(e))return!1;var r=e.split(".").sort(function(n,i){return n-i});return r[3]<=255}return t==="6"?!!fwe.test(e):!1}VA.exports=bl.default;VA.exports.default=bl.default});var jU=m((Tl,HA)=>{"use strict";Object.defineProperty(Tl,"__esModule",{value:!0});Tl.default=Twe;var mwe=Al(Co()),pwe=Al(cg()),KA=Al(LU()),_we=Al(GA()),zU=Al(dg());function Al(e){return e&&e.__esModule?e:{default:e}}var hwe={allow_display_name:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[]},ywe=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,gwe=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,vwe=/^[a-z\d]+$/,Swe=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,wwe=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,Ewe=/^([\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,bwe=254;function Awe(e){var t=e.replace(/^"(.+)"$/,"$1");if(!t.trim())return!1;var r=/[\.";<>]/.test(t);if(r){if(t===e)return!1;var n=t.split('"').length===t.split('\\"').length;if(!n)return!1}return!0}function Twe(e,t){if((0,mwe.default)(e),t=(0,pwe.default)(t,hwe),t.require_display_name||t.allow_display_name){var r=e.match(ywe);if(r){var n=r[1];if(e=e.replace(n,"").replace(/(^<|>$)/g,""),n.endsWith(" ")&&(n=n.substr(0,n.length-1)),!Awe(n))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>bwe)return!1;var i=e.split("@"),s=i.pop(),a=s.toLowerCase();if(t.host_blacklist.includes(a))return!1;var c=i.join("@");if(t.domain_specific_validation&&(a==="gmail.com"||a==="googlemail.com")){c=c.toLowerCase();var l=c.split("+")[0];if(!(0,KA.default)(l.replace(/\./g,""),{min:6,max:30}))return!1;for(var u=l.split("."),f=0;f<u.length;f++)if(!vwe.test(u[f]))return!1}if(t.ignore_max_length===!1&&(!(0,KA.default)(c,{max:64})||!(0,KA.default)(s,{max:254})))return!1;if(!(0,_we.default)(s,{require_tld:t.require_tld})){if(!t.allow_ip_domain)return!1;if(!(0,zU.default)(s)){if(!s.startsWith("[")||!s.endsWith("]"))return!1;var _=s.substr(1,s.length-2);if(_.length===0||!(0,zU.default)(_))return!1}}if(c[0]==='"')return c=c.slice(1,c.length-1),t.allow_utf8_local_part?Ewe.test(c):Swe.test(c);for(var h=t.allow_utf8_local_part?wwe:gwe,v=c.split("."),S=0;S<v.length;S++)if(!h.test(v[S]))return!1;return!(t.blacklisted_chars&&c.search(new RegExp("[".concat(t.blacklisted_chars,"]+"),"g"))!==-1)}HA.exports=Tl.default;HA.exports.default=Tl.default});var BU=m((Cl,WA)=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});Cl.default=zwe;var Cwe=ug(Co()),xwe=ug(GA()),kU=ug(dg()),Iwe=ug(cg());function ug(e){return e&&e.__esModule?e:{default:e}}function Rwe(e,t){return Owe(e)||Dwe(e,t)||Pwe(e,t)||Nwe()}function Nwe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
36
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pwe(e,t){if(!!e){if(typeof e=="string")return FU(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return FU(e,t)}}function FU(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Dwe(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,s=void 0;try{for(var a=e[Symbol.iterator](),c;!(n=(c=a.next()).done)&&(r.push(c.value),!(t&&r.length===t));n=!0);}catch(l){i=!0,s=l}finally{try{!n&&a.return!=null&&a.return()}finally{if(i)throw s}}return r}}function Owe(e){if(Array.isArray(e))return e}var Lwe={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},qwe=/^\[([^\]]+)\](?::([0-9]+))?$/;function Mwe(e){return Object.prototype.toString.call(e)==="[object RegExp]"}function UU(e,t){for(var r=0;r<t.length;r++){var n=t[r];if(e===n||Mwe(n)&&n.test(e))return!0}return!1}function zwe(e,t){if((0,Cwe.default)(e),!e||/[\s<>]/.test(e)||e.indexOf("mailto:")===0||(t=(0,Iwe.default)(t,Lwe),t.validate_length&&e.length>=2083)||!t.allow_fragments&&e.includes("#")||!t.allow_query_components&&(e.includes("?")||e.includes("&")))return!1;var r,n,i,s,a,c,l,u;if(l=e.split("#"),e=l.shift(),l=e.split("?"),e=l.shift(),l=e.split("://"),l.length>1){if(r=l.shift().toLowerCase(),t.require_valid_protocol&&t.protocols.indexOf(r)===-1)return!1}else{if(t.require_protocol)return!1;if(e.substr(0,2)==="//"){if(!t.allow_protocol_relative_urls)return!1;l[0]=e.substr(2)}}if(e=l.join("://"),e==="")return!1;if(l=e.split("/"),e=l.shift(),e===""&&!t.require_host)return!0;if(l=e.split("@"),l.length>1){if(t.disallow_auth||l[0]===""||(n=l.shift(),n.indexOf(":")>=0&&n.split(":").length>2))return!1;var f=n.split(":"),_=Rwe(f,2),h=_[0],v=_[1];if(h===""&&v==="")return!1}s=l.join("@"),c=null,u=null;var S=s.match(qwe);if(S?(i="",u=S[1],c=S[2]||null):(l=s.split(":"),i=l.shift(),l.length&&(c=l.join(":"))),c!==null&&c.length>0){if(a=parseInt(c,10),!/^[0-9]+$/.test(c)||a<=0||a>65535)return!1}else if(t.require_port)return!1;return t.host_whitelist?UU(i,t.host_whitelist):!(!(0,kU.default)(i)&&!(0,xwe.default)(i,t)&&(!u||!(0,kU.default)(u,6))||(i=i||u,t.host_blacklist&&UU(i,t.host_blacklist)))}WA.exports=Cl.default;WA.exports.default=Cl.default});var $U=m((WLe,GU)=>{"use strict";var jwe=jU(),kwe=BU(),Fwe=dg();function JA(e,t){if(!e)throw new Error(t)}var Uwe={name:"email",coerce:e=>e.toString(),validate:function(e){JA(jwe(e),"must be an email address")}},Bwe={name:"ipaddress",coerce:e=>e.toString(),validate:function(e){JA(Fwe(e),"must be an IP address")}},Gwe={name:"url",coerce:e=>e.toString(),validate:function(e){JA(kwe(e,{require_tld:!1}),"must be a URL")}};GU.exports={email:Uwe,ipaddress:Bwe,url:Gwe}});var OB=m(DB=>{"use strict";Object.defineProperty(DB,"__esModule",{value:!0})});var uT=m(dT=>{"use strict";Object.defineProperty(dT,"__esModule",{value:!0});var lT=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 r=this._reflect.hasMetadata("tsconvict:properties",t),n=this._reflect.hasMetadata("tsconvict:schema",t);return r||n}getTsType(t,r){return this._reflect.getMetadata("design:type",t,r)}getConvictMetaForProperty(t,r){return this._reflect.getMetadata("tsconvict:property",t,r)}setConvictMetaForProperty(t,r,n){return this._reflect.defineMetadata("tsconvict:property",t,r,n)}setConvictMetaForClass(t,r){return this._reflect.defineMetadata("tsconvict:schema",t,r)}getConvictMetaForClass(t){return this._reflect.getMetadata("tsconvict:schema",t)||null}setPropertyForClass(t,r){let n=this.getClassProperties(t);return n.length===0&&(this._reflect.defineMetadata("tsconvict:properties",[],t.constructor),n=this.getClassProperties(t)),n.push(r)}getClassProperties(t){return this._reflect.getMetadata("tsconvict:properties",t.constructor)||[]}};dT.default=new lT});var LB=m(vi=>{"use strict";var mbe=vi&&vi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(vi,"__esModule",{value:!0});vi.Property=vi.Config=void 0;var gg=mbe(uT());function pbe(e={}){return t=>{gg.default.setConvictMetaForClass(e,t)}}vi.Config=pbe;function _be(e){return(t,r)=>{if(typeof e=="object"&&typeof e.format>"u"){let n=gg.default.getTsType(t,r);n&&(e.format=n)}gg.default.setConvictMetaForProperty(e,t,r),gg.default.setPropertyForClass(t,r)}}vi.Property=_be});var BB=m((nqe,UB)=>{"use strict";var hbe=require("util"),ybe=require("fs"),qB=require("path");function Dl(e){if(e!==e.toLowerCase()&&e!==e.toUpperCase()||(e=e.toLowerCase()),e.indexOf("-")===-1&&e.indexOf("_")===-1)return e;{let r="",n=!1,i=e.match(/^-+/);for(let s=i?i[0].length:0;s<e.length;s++){let a=e.charAt(s);n&&(n=!1,a=a.toUpperCase()),s!==0&&(a==="-"||a==="_")?n=!0:a!=="-"&&a!=="_"&&(r+=a)}return r}}function jB(e,t){let r=e.toLowerCase();t=t||"-";let n="";for(let i=0;i<e.length;i++){let s=r.charAt(i),a=e.charAt(i);s!==a&&i>0?n+=`${t}${r.charAt(i)}`:n+=a}return n}function kB(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 gbe(e){if(Array.isArray(e))return e.map(a=>typeof a!="string"?a+"":a);e=e.trim();let t=0,r=null,n=null,i=null,s=[];for(let a=0;a<e.length;a++){if(r=n,n=e.charAt(a),n===" "&&!i){r!==" "&&t++;continue}n===i?i=null:(n==="'"||n==='"')&&!i&&(i=n),s[t]||(s[t]=""),s[t]+=n}return s}var pr;(function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"})(pr||(pr={}));var Dn,mT=class{constructor(t){Dn=t}parse(t,r){let n=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},r),i=gbe(t),s=vbe(Object.assign(Object.create(null),n.alias)),a=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},n.configuration),c=Object.assign(Object.create(null),n.default),l=n.configObjects||[],u=n.envPrefix,f=a["populate--"],_=f?"--":"_",h=Object.create(null),v=Object.create(null),S=n.__||Dn.format,g={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:[]},I=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,O=new RegExp("^--"+a["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach(function(E){let b=typeof E=="object"?E.key:E,q=Object.keys(E).map(function(R){return{boolean:"bools",string:"strings",number:"numbers"}[R]}).filter(Boolean).pop();q&&(g[q][b]=!0),g.arrays[b]=!0,g.keys.push(b)}),[].concat(n.boolean||[]).filter(Boolean).forEach(function(E){g.bools[E]=!0,g.keys.push(E)}),[].concat(n.string||[]).filter(Boolean).forEach(function(E){g.strings[E]=!0,g.keys.push(E)}),[].concat(n.number||[]).filter(Boolean).forEach(function(E){g.numbers[E]=!0,g.keys.push(E)}),[].concat(n.count||[]).filter(Boolean).forEach(function(E){g.counts[E]=!0,g.keys.push(E)}),[].concat(n.normalize||[]).filter(Boolean).forEach(function(E){g.normalize[E]=!0,g.keys.push(E)}),typeof n.narg=="object"&&Object.entries(n.narg).forEach(([E,b])=>{typeof b=="number"&&(g.nargs[E]=b,g.keys.push(E))}),typeof n.coerce=="object"&&Object.entries(n.coerce).forEach(([E,b])=>{typeof b=="function"&&(g.coercions[E]=b,g.keys.push(E))}),typeof n.config<"u"&&(Array.isArray(n.config)||typeof n.config=="string"?[].concat(n.config).filter(Boolean).forEach(function(E){g.configs[E]=!0}):typeof n.config=="object"&&Object.entries(n.config).forEach(([E,b])=>{(typeof b=="boolean"||typeof b=="function")&&(g.configs[E]=b)})),jn(n.key,s,n.default,g.arrays),Object.keys(c).forEach(function(E){(g.aliases[E]||[]).forEach(function(b){c[b]=c[E]})});let C=null;jg();let k=[],_e=Object.assign(Object.create(null),{_:[]}),Ut={};for(let E=0;E<i.length;E++){let b=i[E],q=b.replace(/^-{3,}/,"---"),R,A,U,B,X,Ve;if(b!=="--"&&gs(b))Mn(b);else if(q.match(/---+(=|$)/)){Mn(b);continue}else if(b.match(/^--.+=/)||!a["short-option-groups"]&&b.match(/^-.+=/))B=b.match(/^--?([^=]+)=([\s\S]*)$/),B!==null&&Array.isArray(B)&&B.length>=3&&(oe(B[1],g.arrays)?E=hr(E,B[1],i,B[2]):oe(B[1],g.nargs)!==!1?E=zn(E,B[1],i,B[2]):F(B[1],B[2]));else if(b.match(O)&&a["boolean-negation"])B=b.match(O),B!==null&&Array.isArray(B)&&B.length>=2&&(A=B[1],F(A,oe(A,g.arrays)?[!1]:!1));else if(b.match(/^--.+/)||!a["short-option-groups"]&&b.match(/^-[^-]+/))B=b.match(/^--?(.+)/),B!==null&&Array.isArray(B)&&B.length>=2&&(A=B[1],oe(A,g.arrays)?E=hr(E,A,i):oe(A,g.nargs)!==!1?E=zn(E,A,i):(X=i[E+1],X!==void 0&&(!X.match(/^-/)||X.match(I))&&!oe(A,g.bools)&&!oe(A,g.counts)||/^(true|false)$/.test(X)?(F(A,X),E++):F(A,pt(A))));else if(b.match(/^-.\..+=/))B=b.match(/^-([^=]+)=([\s\S]*)$/),B!==null&&Array.isArray(B)&&B.length>=3&&F(B[1],B[2]);else if(b.match(/^-.\..+/)&&!b.match(I))X=i[E+1],B=b.match(/^-(.\..+)/),B!==null&&Array.isArray(B)&&B.length>=2&&(A=B[1],X!==void 0&&!X.match(/^-/)&&!oe(A,g.bools)&&!oe(A,g.counts)?(F(A,X),E++):F(A,pt(A)));else if(b.match(/^-[^-]+/)&&!b.match(I)){U=b.slice(1,-1).split(""),R=!1;for(let Ze=0;Ze<U.length;Ze++){if(X=b.slice(Ze+2),U[Ze+1]&&U[Ze+1]==="="){Ve=b.slice(Ze+3),A=U[Ze],oe(A,g.arrays)?E=hr(E,A,i,Ve):oe(A,g.nargs)!==!1?E=zn(E,A,i,Ve):F(A,Ve),R=!0;break}if(X==="-"){F(U[Ze],X);continue}if(/[A-Za-z]/.test(U[Ze])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(X)&&oe(X,g.bools)===!1){F(U[Ze],X),R=!0;break}if(U[Ze+1]&&U[Ze+1].match(/\W/)){F(U[Ze],X),R=!0;break}else F(U[Ze],pt(U[Ze]))}A=b.slice(-1)[0],!R&&A!=="-"&&(oe(A,g.arrays)?E=hr(E,A,i):oe(A,g.nargs)!==!1?E=zn(E,A,i):(X=i[E+1],X!==void 0&&(!/^(-|--)[^-]/.test(X)||X.match(I))&&!oe(A,g.bools)&&!oe(A,g.counts)||/^(true|false)$/.test(X)?(F(A,X),E++):F(A,pt(A))))}else if(b.match(/^-[0-9]$/)&&b.match(I)&&oe(b.slice(1),g.bools))A=b.slice(1),F(A,pt(A));else if(b==="--"){k=i.slice(E+1);break}else if(a["halt-at-non-option"]){k=i.slice(E);break}else Mn(b)}Ne(_e,!0),Ne(_e,!1),Fe(_e),Re(),be(_e,g.aliases,c,!0),Se(_e),a["set-placeholder-key"]&&Ue(_e),Object.keys(g.counts).forEach(function(E){an(_e,E.split("."))||F(E,0)}),f&&k.length&&(_e[_]=[]),k.forEach(function(E){_e[_].push(E)}),a["camel-case-expansion"]&&a["strip-dashed"]&&Object.keys(_e).filter(E=>E!=="--"&&E.includes("-")).forEach(E=>{delete _e[E]}),a["strip-aliased"]&&[].concat(...Object.keys(s).map(E=>s[E])).forEach(E=>{a["camel-case-expansion"]&&E.includes("-")&&delete _e[E.split(".").map(b=>Dl(b)).join(".")],delete _e[E]});function Mn(E){let b=Ie("_",E);(typeof b=="string"||typeof b=="number")&&_e._.push(b)}function zn(E,b,q,R){let A,U=oe(b,g.nargs);if(U=typeof U!="number"||isNaN(U)?1:U,U===0)return Jt(R)||(C=Error(S("Argument unexpected for: %s",b))),F(b,pt(b)),E;let B=Jt(R)?0:1;if(a["nargs-eats-options"])q.length-(E+1)+B<U&&(C=Error(S("Not enough arguments following: %s",b))),B=U;else{for(A=E+1;A<q.length&&(!q[A].match(/^-[^0-9]/)||q[A].match(I)||gs(q[A]));A++)B++;B<U&&(C=Error(S("Not enough arguments following: %s",b)))}let X=Math.min(B,U);for(!Jt(R)&&X>0&&(F(b,R),X--),A=E+1;A<X+E+1;A++)F(b,q[A]);return E+X}function hr(E,b,q,R){let A=[],U=R||q[E+1],B=oe(b,g.nargs);if(oe(b,g.bools)&&!/^(true|false)$/.test(U))A.push(!0);else if(Jt(U)||Jt(R)&&/^-/.test(U)&&!I.test(U)&&!gs(U)){if(c[b]!==void 0){let X=c[b];A=Array.isArray(X)?X:[X]}}else{Jt(R)||A.push(pe(b,R));for(let X=E+1;X<q.length&&!(!a["greedy-arrays"]&&A.length>0||B&&typeof B=="number"&&A.length>=B||(U=q[X],/^-/.test(U)&&!I.test(U)&&!gs(U)));X++)E=X,A.push(pe(b,U))}return typeof B=="number"&&(B&&A.length<B||isNaN(B)&&A.length===0)&&(C=Error(S("Not enough arguments following: %s",b))),F(b,A),E}function F(E,b){if(/-/.test(E)&&a["camel-case-expansion"]){let A=E.split(".").map(function(U){return Dl(U)}).join(".");he(E,A)}let q=pe(E,b),R=E.split(".");Me(_e,R,q),g.aliases[E]&&g.aliases[E].forEach(function(A){let U=A.split(".");Me(_e,U,q)}),R.length>1&&a["dot-notation"]&&(g.aliases[R[0]]||[]).forEach(function(A){let U=A.split("."),B=[].concat(R);B.shift(),U=U.concat(B),(g.aliases[E]||[]).includes(U.join("."))||Me(_e,U,q)}),oe(E,g.normalize)&&!oe(E,g.arrays)&&[E].concat(g.aliases[E]||[]).forEach(function(U){Object.defineProperty(Ut,U,{enumerable:!0,get(){return b},set(B){b=typeof B=="string"?Dn.normalize(B):B}})})}function he(E,b){g.aliases[E]&&g.aliases[E].length||(g.aliases[E]=[b],h[b]=!0),g.aliases[b]&&g.aliases[b].length||he(b,E)}function pe(E,b){typeof b=="string"&&(b[0]==="'"||b[0]==='"')&&b[b.length-1]===b[0]&&(b=b.substring(1,b.length-1)),(oe(E,g.bools)||oe(E,g.counts))&&typeof b=="string"&&(b=b==="true");let q=Array.isArray(b)?b.map(function(R){return Ie(E,R)}):Ie(E,b);return oe(E,g.counts)&&(Jt(q)||typeof q=="boolean")&&(q=fT()),oe(E,g.normalize)&&oe(E,g.arrays)&&(Array.isArray(b)?q=b.map(R=>Dn.normalize(R)):q=Dn.normalize(b)),q}function Ie(E,b){return!a["parse-positional-numbers"]&&E==="_"||!oe(E,g.strings)&&!oe(E,g.bools)&&!Array.isArray(b)&&(kB(b)&&a["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${b}`)))||!Jt(b)&&oe(E,g.numbers))&&(b=Number(b)),b}function Fe(E){let b=Object.create(null);be(b,g.aliases,c),Object.keys(g.configs).forEach(function(q){let R=E[q]||b[q];if(R)try{let A=null,U=Dn.resolve(Dn.cwd(),R),B=g.configs[q];if(typeof B=="function"){try{A=B(U)}catch(X){A=X}if(A instanceof Error){C=A;return}}else A=Dn.require(U);Le(A)}catch(A){A.name==="PermissionDenied"?C=A:E[q]&&(C=Error(S("Invalid JSON config file: %s",R)))}})}function Le(E,b){Object.keys(E).forEach(function(q){let R=E[q],A=b?b+"."+q:q;typeof R=="object"&&R!==null&&!Array.isArray(R)&&a["dot-notation"]?Le(R,A):(!an(_e,A.split("."))||oe(A,g.arrays)&&a["combine-arrays"])&&F(A,R)})}function Re(){typeof l<"u"&&l.forEach(function(E){Le(E)})}function Ne(E,b){if(typeof u>"u")return;let q=typeof u=="string"?u:"",R=Dn.env();Object.keys(R).forEach(function(A){if(q===""||A.lastIndexOf(q,0)===0){let U=A.split("__").map(function(B,X){return X===0&&(B=B.substring(q.length)),Dl(B)});(b&&g.configs[U.join(".")]||!b)&&!an(E,U)&&F(U.join("."),R[A])}})}function Se(E){let b,q=new Set;Object.keys(E).forEach(function(R){if(!q.has(R)&&(b=oe(R,g.coercions),typeof b=="function"))try{let A=Ie(R,b(E[R]));[].concat(g.aliases[R]||[],R).forEach(U=>{q.add(U),E[U]=A})}catch(A){C=A}})}function Ue(E){return g.keys.forEach(b=>{~b.indexOf(".")||typeof E[b]>"u"&&(E[b]=void 0)}),E}function be(E,b,q,R=!1){Object.keys(q).forEach(function(A){an(E,A.split("."))||(Me(E,A.split("."),q[A]),R&&(v[A]=!0),(b[A]||[]).forEach(function(U){an(E,U.split("."))||Me(E,U.split("."),q[A])}))})}function an(E,b){let q=E;a["dot-notation"]||(b=[b.join(".")]),b.slice(0,-1).forEach(function(A){q=q[A]||{}});let R=b[b.length-1];return typeof q!="object"?!1:R in q}function Me(E,b,q){let R=E;a["dot-notation"]||(b=[b.join(".")]),b.slice(0,-1).forEach(function(Ve){Ve=MB(Ve),typeof R=="object"&&R[Ve]===void 0&&(R[Ve]={}),typeof R[Ve]!="object"||Array.isArray(R[Ve])?(Array.isArray(R[Ve])?R[Ve].push({}):R[Ve]=[R[Ve],{}],R=R[Ve][R[Ve].length-1]):R=R[Ve]});let A=MB(b[b.length-1]),U=oe(b.join("."),g.arrays),B=Array.isArray(q),X=a["duplicate-arguments-array"];!X&&oe(A,g.nargs)&&(X=!0,(!Jt(R[A])&&g.nargs[A]===1||Array.isArray(R[A])&&R[A].length===g.nargs[A])&&(R[A]=void 0)),q===fT()?R[A]=fT(R[A]):Array.isArray(R[A])?X&&U&&B?R[A]=a["flatten-duplicate-arrays"]?R[A].concat(q):(Array.isArray(R[A][0])?R[A]:[R[A]]).concat([q]):!X&&Boolean(U)===Boolean(B)?R[A]=q:R[A]=R[A].concat([q]):R[A]===void 0&&U?R[A]=B?q:[q]:X&&!(R[A]===void 0||oe(A,g.counts)||oe(A,g.bools))?R[A]=[R[A],q]:R[A]=q}function jn(...E){E.forEach(function(b){Object.keys(b||{}).forEach(function(q){g.aliases[q]||(g.aliases[q]=[].concat(s[q]||[]),g.aliases[q].concat(q).forEach(function(R){if(/-/.test(R)&&a["camel-case-expansion"]){let A=Dl(R);A!==q&&g.aliases[q].indexOf(A)===-1&&(g.aliases[q].push(A),h[A]=!0)}}),g.aliases[q].concat(q).forEach(function(R){if(R.length>1&&/[A-Z]/.test(R)&&a["camel-case-expansion"]){let A=jB(R,"-");A!==q&&g.aliases[q].indexOf(A)===-1&&(g.aliases[q].push(A),h[A]=!0)}}),g.aliases[q].forEach(function(R){g.aliases[R]=[q].concat(g.aliases[q].filter(function(A){return R!==A}))}))})})}function oe(E,b){let q=[].concat(g.aliases[E]||[],E),R=Object.keys(b),A=q.find(U=>R.includes(U));return A?b[A]:!1}function Ge(E){let b=Object.keys(g);return[].concat(b.map(R=>g[R])).some(function(R){return Array.isArray(R)?R.includes(E):R[E]})}function qg(E,...b){return[].concat(...b).some(function(R){let A=E.match(R);return A&&Ge(A[1])})}function Mg(E){if(E.match(I)||!E.match(/^-[^-]+/))return!1;let b=!0,q,R=E.slice(1).split("");for(let A=0;A<R.length;A++){if(q=E.slice(A+2),!Ge(R[A])){b=!1;break}if(R[A+1]&&R[A+1]==="="||q==="-"||/[A-Za-z]/.test(R[A])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(q)||R[A+1]&&R[A+1].match(/\W/))break}return b}function gs(E){return a["unknown-options-as-args"]&&zg(E)}function zg(E){return E=E.replace(/^-{3,}/,"--"),E.match(I)||Mg(E)?!1:!qg(E,/^-+([^=]+?)=[\s\S]*$/,O,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function pt(E){return!oe(E,g.bools)&&!oe(E,g.counts)&&`${E}`in c?c[E]:Bl(kn(E))}function Bl(E){return{[pr.BOOLEAN]:!0,[pr.STRING]:"",[pr.NUMBER]:void 0,[pr.ARRAY]:[]}[E]}function kn(E){let b=pr.BOOLEAN;return oe(E,g.strings)?b=pr.STRING:oe(E,g.numbers)?b=pr.NUMBER:oe(E,g.bools)?b=pr.BOOLEAN:oe(E,g.arrays)&&(b=pr.ARRAY),b}function Jt(E){return E===void 0}function jg(){Object.keys(g.counts).find(E=>oe(E,g.arrays)?(C=Error(S("Invalid configuration: %s, opts.count excludes opts.array.",E)),!0):oe(E,g.nargs)?(C=Error(S("Invalid configuration: %s, opts.count excludes opts.narg.",E)),!0):!1)}return{aliases:Object.assign({},g.aliases),argv:Object.assign(Ut,_e),configuration:a,defaulted:Object.assign({},v),error:C,newAliases:Object.assign({},h)}}};function vbe(e){let t=[],r=Object.create(null),n=!0;for(Object.keys(e).forEach(function(i){t.push([].concat(e[i],i))});n;){n=!1;for(let i=0;i<t.length;i++)for(let s=i+1;s<t.length;s++)if(t[i].filter(function(c){return t[s].indexOf(c)!==-1}).length){t[i]=t[i].concat(t[s]),t.splice(s,1),n=!0;break}}return t.forEach(function(i){i=i.filter(function(a,c,l){return l.indexOf(a)===c});let s=i.pop();s!==void 0&&typeof s=="string"&&(r[s]=i)}),r}function fT(e){return e!==void 0?e+1:1}function MB(e){return e==="__proto__"?"___proto___":e}var zB=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])<zB)throw Error(`yargs parser supports a minimum Node.js version of ${zB}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var Sbe=process?process.env:{},FB=new mT({cwd:process.cwd,env:()=>Sbe,format:hbe.format,normalize:qB.normalize,resolve:qB.resolve,require:e=>{if(typeof require<"u")return require(e);if(e.match(/\.json$/))return ybe.readFileSync(e,"utf8");throw Error("only .json config files are supported in ESM")}}),Ol=function(t,r){return FB.parse(t.slice(),r).argv};Ol.detailed=function(e,t){return FB.parse(e.slice(),t)};Ol.camelCase=Dl;Ol.decamelize=jB;Ol.looksLikeNumber=kB;UB.exports=Ol});var NG=m((Ll,Po)=>{var wbe=200,eG="__lodash_hash_undefined__",tG=9007199254740991,wT="[object Arguments]",Ebe="[object Array]",rG="[object Boolean]",nG="[object Date]",bbe="[object Error]",ET="[object Function]",iG="[object GeneratorFunction]",vg="[object Map]",sG="[object Number]",bT="[object Object]",GB="[object Promise]",oG="[object RegExp]",Sg="[object Set]",aG="[object String]",cG="[object Symbol]",_T="[object WeakMap]",lG="[object ArrayBuffer]",wg="[object DataView]",dG="[object Float32Array]",uG="[object Float64Array]",fG="[object Int8Array]",mG="[object Int16Array]",pG="[object Int32Array]",_G="[object Uint8Array]",hG="[object Uint8ClampedArray]",yG="[object Uint16Array]",gG="[object Uint32Array]",Abe=/[\\^$.*+?()[\]{}|]/g,Tbe=/\w*$/,Cbe=/^\[object .+?Constructor\]$/,xbe=/^(?:0|[1-9]\d*)$/,qe={};qe[wT]=qe[Ebe]=qe[lG]=qe[wg]=qe[rG]=qe[nG]=qe[dG]=qe[uG]=qe[fG]=qe[mG]=qe[pG]=qe[vg]=qe[sG]=qe[bT]=qe[oG]=qe[Sg]=qe[aG]=qe[cG]=qe[_G]=qe[hG]=qe[yG]=qe[gG]=!0;qe[bbe]=qe[ET]=qe[_T]=!1;var Ibe=typeof global=="object"&&global&&global.Object===Object&&global,Rbe=typeof self=="object"&&self&&self.Object===Object&&self,On=Ibe||Rbe||Function("return this")(),vG=typeof Ll=="object"&&Ll&&!Ll.nodeType&&Ll,$B=vG&&typeof Po=="object"&&Po&&!Po.nodeType&&Po,Nbe=$B&&$B.exports===vG;function Pbe(e,t){return e.set(t[0],t[1]),e}function Dbe(e,t){return e.add(t),e}function Obe(e,t){for(var r=-1,n=e?e.length:0;++r<n&&t(e[r],r,e)!==!1;);return e}function Lbe(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function SG(e,t,r,n){var i=-1,s=e?e.length:0;for(n&&s&&(r=e[++i]);++i<s;)r=t(r,e[i],i,e);return r}function qbe(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function Mbe(e,t){return e==null?void 0:e[t]}function wG(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function VB(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function AT(e,t){return function(r){return e(t(r))}}function KB(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var zbe=Array.prototype,jbe=Function.prototype,Eg=Object.prototype,pT=On["__core-js_shared__"],HB=function(){var e=/[^.]+$/.exec(pT&&pT.keys&&pT.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),EG=jbe.toString,Si=Eg.hasOwnProperty,bg=Eg.toString,kbe=RegExp("^"+EG.call(Si).replace(Abe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),WB=Nbe?On.Buffer:void 0,JB=On.Symbol,YB=On.Uint8Array,Fbe=AT(Object.getPrototypeOf,Object),Ube=Object.create,Bbe=Eg.propertyIsEnumerable,Gbe=zbe.splice,QB=Object.getOwnPropertySymbols,$be=WB?WB.isBuffer:void 0,Vbe=AT(Object.keys,Object),hT=Lo(On,"DataView"),ql=Lo(On,"Map"),yT=Lo(On,"Promise"),gT=Lo(On,"Set"),vT=Lo(On,"WeakMap"),Ml=Lo(Object,"create"),Kbe=ps(hT),Hbe=ps(ql),Wbe=ps(yT),Jbe=ps(gT),Ybe=ps(vT),XB=JB?JB.prototype:void 0,ZB=XB?XB.valueOf:void 0;function ms(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Qbe(){this.__data__=Ml?Ml(null):{}}function Xbe(e){return this.has(e)&&delete this.__data__[e]}function Zbe(e){var t=this.__data__;if(Ml){var r=t[e];return r===eG?void 0:r}return Si.call(t,e)?t[e]:void 0}function eAe(e){var t=this.__data__;return Ml?t[e]!==void 0:Si.call(t,e)}function tAe(e,t){var r=this.__data__;return r[e]=Ml&&t===void 0?eG:t,this}ms.prototype.clear=Qbe;ms.prototype.delete=Xbe;ms.prototype.get=Zbe;ms.prototype.has=eAe;ms.prototype.set=tAe;function Ln(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function rAe(){this.__data__=[]}function nAe(e){var t=this.__data__,r=Ag(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Gbe.call(t,r,1),!0}function iAe(e){var t=this.__data__,r=Ag(t,e);return r<0?void 0:t[r][1]}function sAe(e){return Ag(this.__data__,e)>-1}function oAe(e,t){var r=this.__data__,n=Ag(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}Ln.prototype.clear=rAe;Ln.prototype.delete=nAe;Ln.prototype.get=iAe;Ln.prototype.has=sAe;Ln.prototype.set=oAe;function Do(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function aAe(){this.__data__={hash:new ms,map:new(ql||Ln),string:new ms}}function cAe(e){return Tg(this,e).delete(e)}function lAe(e){return Tg(this,e).get(e)}function dAe(e){return Tg(this,e).has(e)}function uAe(e,t){return Tg(this,e).set(e,t),this}Do.prototype.clear=aAe;Do.prototype.delete=cAe;Do.prototype.get=lAe;Do.prototype.has=dAe;Do.prototype.set=uAe;function Oo(e){this.__data__=new Ln(e)}function fAe(){this.__data__=new Ln}function mAe(e){return this.__data__.delete(e)}function pAe(e){return this.__data__.get(e)}function _Ae(e){return this.__data__.has(e)}function hAe(e,t){var r=this.__data__;if(r instanceof Ln){var n=r.__data__;if(!ql||n.length<wbe-1)return n.push([e,t]),this;r=this.__data__=new Do(n)}return r.set(e,t),this}Oo.prototype.clear=fAe;Oo.prototype.delete=mAe;Oo.prototype.get=pAe;Oo.prototype.has=_Ae;Oo.prototype.set=hAe;function yAe(e,t){var r=CT(e)||UAe(e)?qbe(e.length,String):[],n=r.length,i=!!n;for(var s in e)(t||Si.call(e,s))&&!(i&&(s=="length"||zAe(s,n)))&&r.push(s);return r}function bG(e,t,r){var n=e[t];(!(Si.call(e,t)&&xG(n,r))||r===void 0&&!(t in e))&&(e[t]=r)}function Ag(e,t){for(var r=e.length;r--;)if(xG(e[r][0],t))return r;return-1}function gAe(e,t){return e&&AG(t,xT(t),e)}function ST(e,t,r,n,i,s,a){var c;if(n&&(c=s?n(e,i,s,a):n(e)),c!==void 0)return c;if(!Cg(e))return e;var l=CT(e);if(l){if(c=LAe(e),!t)return PAe(e,c)}else{var u=fs(e),f=u==ET||u==iG;if(GAe(e))return AAe(e,t);if(u==bT||u==wT||f&&!s){if(wG(e))return s?e:{};if(c=qAe(f?{}:e),!t)return DAe(e,gAe(c,e))}else{if(!qe[u])return s?e:{};c=MAe(e,u,ST,t)}}a||(a=new Oo);var _=a.get(e);if(_)return _;if(a.set(e,c),!l)var h=r?OAe(e):xT(e);return Obe(h||e,function(v,S){h&&(S=v,v=e[S]),bG(c,S,ST(v,t,r,n,S,e,a))}),c}function vAe(e){return Cg(e)?Ube(e):{}}function SAe(e,t,r){var n=t(e);return CT(e)?n:Lbe(n,r(e))}function wAe(e){return bg.call(e)}function EAe(e){if(!Cg(e)||kAe(e))return!1;var t=RG(e)||wG(e)?kbe:Cbe;return t.test(ps(e))}function bAe(e){if(!CG(e))return Vbe(e);var t=[];for(var r in Object(e))Si.call(e,r)&&r!="constructor"&&t.push(r);return t}function AAe(e,t){if(t)return e.slice();var r=new e.constructor(e.length);return e.copy(r),r}function TT(e){var t=new e.constructor(e.byteLength);return new YB(t).set(new YB(e)),t}function TAe(e,t){var r=t?TT(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function CAe(e,t,r){var n=t?r(VB(e),!0):VB(e);return SG(n,Pbe,new e.constructor)}function xAe(e){var t=new e.constructor(e.source,Tbe.exec(e));return t.lastIndex=e.lastIndex,t}function IAe(e,t,r){var n=t?r(KB(e),!0):KB(e);return SG(n,Dbe,new e.constructor)}function RAe(e){return ZB?Object(ZB.call(e)):{}}function NAe(e,t){var r=t?TT(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function PAe(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}function AG(e,t,r,n){r||(r={});for(var i=-1,s=t.length;++i<s;){var a=t[i],c=n?n(r[a],e[a],a,r,e):void 0;bG(r,a,c===void 0?e[a]:c)}return r}function DAe(e,t){return AG(e,TG(e),t)}function OAe(e){return SAe(e,xT,TG)}function Tg(e,t){var r=e.__data__;return jAe(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Lo(e,t){var r=Mbe(e,t);return EAe(r)?r:void 0}var TG=QB?AT(QB,Object):KAe,fs=wAe;(hT&&fs(new hT(new ArrayBuffer(1)))!=wg||ql&&fs(new ql)!=vg||yT&&fs(yT.resolve())!=GB||gT&&fs(new gT)!=Sg||vT&&fs(new vT)!=_T)&&(fs=function(e){var t=bg.call(e),r=t==bT?e.constructor:void 0,n=r?ps(r):void 0;if(n)switch(n){case Kbe:return wg;case Hbe:return vg;case Wbe:return GB;case Jbe:return Sg;case Ybe:return _T}return t});function LAe(e){var t=e.length,r=e.constructor(t);return t&&typeof e[0]=="string"&&Si.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function qAe(e){return typeof e.constructor=="function"&&!CG(e)?vAe(Fbe(e)):{}}function MAe(e,t,r,n){var i=e.constructor;switch(t){case lG:return TT(e);case rG:case nG:return new i(+e);case wg:return TAe(e,n);case dG:case uG:case fG:case mG:case pG:case _G:case hG:case yG:case gG:return NAe(e,n);case vg:return CAe(e,n,r);case sG:case aG:return new i(e);case oG:return xAe(e);case Sg:return IAe(e,n,r);case cG:return RAe(e)}}function zAe(e,t){return t=t??tG,!!t&&(typeof e=="number"||xbe.test(e))&&e>-1&&e%1==0&&e<t}function jAe(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function kAe(e){return!!HB&&HB in e}function CG(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Eg;return e===r}function ps(e){if(e!=null){try{return EG.call(e)}catch{}try{return e+""}catch{}}return""}function FAe(e){return ST(e,!0,!0)}function xG(e,t){return e===t||e!==e&&t!==t}function UAe(e){return BAe(e)&&Si.call(e,"callee")&&(!Bbe.call(e,"callee")||bg.call(e)==wT)}var CT=Array.isArray;function IG(e){return e!=null&&$Ae(e.length)&&!RG(e)}function BAe(e){return VAe(e)&&IG(e)}var GAe=$be||HAe;function RG(e){var t=Cg(e)?bg.call(e):"";return t==ET||t==iG}function $Ae(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=tG}function Cg(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function VAe(e){return!!e&&typeof e=="object"}function xT(e){return IG(e)?yAe(e):bAe(e)}function KAe(){return[]}function HAe(){return!1}Po.exports=FAe});var FG=m((iqe,kG)=>{"use strict";var WAe=require("fs"),JAe=BB(),qo=NG(),YAe=["__proto__.","this.constructor.prototype."],QAe="strict",PG="warn";function wi(e,t){if(!e)throw new Error(t)}function DG(e){return Number.isInteger(e)&&e>=0&&e<=65535}function NT(e){return String(e).includes("\\\\.\\pipe\\")}var zl={"*":function(){},int:function(e){wi(Number.isInteger(e),"must be an integer")},nat:function(e){wi(Number.isInteger(e)&&e>=0,"must be a positive integer")},port:function(e){wi(DG(e),"ports must be within range 0 - 65535")},windows_named_pipe:function(e){wi(NT(e),"must be a valid pipe")},port_or_windows_named_pipe:function(e){NT(e)||wi(DG(e),"must be a windows named pipe or a number within range 0 - 65535")}};zl.integer=zl.int;var PT=new Map,DT={"*":JSON.parse};function OG(e,t){let r=Object.keys(e),n,i=[];for(;r.length;){n=r.shift();let a=Mo(e,n);if(typeof a=="object"&&!Array.isArray(a)&&a!=null){if(t)if("_cvtProperties"in a)a=a._cvtProperties,n=n+"._cvtProperties";else{i.push([n,a]);continue}let c=Object.keys(a);if(c.length>0){c.forEach(function(l){r.push(n+"."+l)});continue}}i.push([n,a])}let s={};return i.forEach(function(a){let c=a[0];t&&(c=c.replace(/\._cvtProperties/g,""));let l=a[1];s[c]=l}),s}function XAe(e,t,r){let n={undeclared:[],invalid_type:[],missing:[]},i=OG(e),s=OG(t._cvtProperties,!0);return Object.keys(s).forEach(function(a){let c=s[a],l=i[a];if(!(a in i))try{if(typeof c.default=="object"&&!Array.isArray(c.default))l=Mo(e,a);else throw new Error("missing")}catch{let f=new Error("configuration param '"+a+"' missing from config, did you override its parent?");n.missing.push(f);return}if(delete i[a],(c.format==="object"||typeof c.default=="object")&&Object.keys(i).filter(function(u){return u.lastIndexOf(a+".",0)===0}).forEach(function(u){delete i[u]}),!(typeof c.default>"u"&&l===c.default))try{c._format(l)}catch(u){n.invalid_type.push(u)}}),r&&Object.keys(i).forEach(function(a){let c=new Error("configuration param '"+a+"' not declared in the schema");n.undeclared.push(c)}),n}function ZAe(e,t){wi(e.indexOf(t)!==-1,"must be one of the possible values: "+JSON.stringify(e))}var LT={Object,Array,String,Number,Boolean,RegExp},MG=Object.keys(LT),eTe=MG.map(function(e){return LT[e]});function zG(e,t,r,n,i,s,a){if(e==="_cvtProperties")throw new Error("'"+n+"': '_cvtProperties' is reserved word of convict.");if(typeof t=="object"&&t!==null&&!Array.isArray(t)&&Object.keys(t).length>0&&!("default"in t)){r[e]={_cvtProperties:{}},Object.keys(t).forEach(function(f){zG(f,t[f],r[e]._cvtProperties,n+"."+f,i,s,a)});return}else(typeof t!="object"||Array.isArray(t)||t===null||Object.keys(t).length==0)&&(t={default:t});let c=qo(t);if(r[e]=c,c.env&&(i[c.env]||(i[c.env]=[]),i[c.env].push(n)),c.arg){if(s[c.arg])throw new Error("'"+n+"' reuses a command-line argument: "+c.arg);s[c.arg]=n}c.sensitive===!0&&a.add(n);let l=c.format,u;if(eTe.indexOf(l)>=0||MG.indexOf(l)>=0){let f=typeof l=="string"?LT[l]:l;u=function(_){wi(Object.prototype.toString.call(_)==Object.prototype.toString.call(new f),"must be of type "+f.name)},c.format=f.name.toLowerCase()}else if(typeof l=="string"){if(!zl[l])throw new Error("'"+n+"' uses an unknown format type: "+l);u=zl[l]}else if(Array.isArray(l))u=ZAe.bind(null,l);else if(typeof l=="function")u=l;else if(l&&typeof l!="function")throw new Error("'"+n+"': `format` must be a function or a known format type.");if(!u&&!l){let f=Object.prototype.toString.call(c.default);u=function(_){wi(Object.prototype.toString.call(_)==f," should be of type "+f.replace(/\[.* |]/g,""))}}c._format=function(f){if(!(this.nullable&&f===null))try{u(f,this)}catch(_){throw _.fullName=n,_.value=f,_}}}function IT(e){let t=e.getEnv();Object.keys(e._env).forEach(function(r){t[r]!==void 0&&e._env[r].forEach(function(i){e.set(i,t[r])})})}function RT(e){let t=JAe(e.getArgs(),{configuration:{"dot-notation":!1}});Object.keys(e._argv).forEach(function(r){let n=e._argv[r];t[r]!==void 0&&e.set(n,String(t[r]))})}function jG(e,t,r){Object.keys(e._cvtProperties).forEach(function(n){let i=e._cvtProperties[n];if(i._cvtProperties){let s=t[n]||{};jG(i,s,r),t[n]=s}else t[n]=qT(n,qo(i.default),e,r)})}function LG(e){return typeof e=="object"&&e!==null}function OT(e,t,r){Object.keys(e).forEach(function(n){Array.isArray(e[n])||!LG(e[n])||!r||r.format==="object"?t[n]=qT(n,e[n],r):(LG(t[n])||(t[n]={}),OT(e[n],t[n],r._cvtProperties[n]))})}function tTe(e,t){let r=t.split("."),n=e;for(;r.length>0;){let i=r.shift();if(n&&n._cvtProperties&&n._cvtProperties[i])n=n._cvtProperties[i];else{n=null;break}}return n}function rTe(e,t){let r=tTe(e,t);return r==null?null:typeof r.format=="string"?r.format:r.default!=null?typeof r.default:null}function qT(e,t,r,n){let i=rTe(r,e);if(typeof t=="string"){if(PT.has(i))return PT.get(i)(t,n,e);switch(i){case"port":case"nat":case"integer":case"int":t=parseInt(t,10);break;case"port_or_windows_named_pipe":t=NT(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 qG(e){let t=e.split("."),r=t.length>1?t.pop():"";return(DT[r]||DT["*"])(WAe.readFileSync(e,"utf-8"))}function Mo(e,t,r){if(t){let n=t.split(".");for(;n.length;){let i=n.shift();if(r&&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 jl=function(t,r){let n={getArgs:function(){return r&&r.args||process.argv.slice(2)},getEnv:function(){return r&&r.env||process.env},getProperties:function(){return qo(this._instance)},toString:function(){let i=qo(this._instance);return this._sensitive.forEach(function(s){let a=s.split("."),c=a.pop(),l=a.join("."),u=Mo(i,l);u[c]="[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=Mo(this._instance,i);return qo(s)},default:function(i){i=i.split(".").join("._cvtProperties.")+".default";let s=Mo(this._schema._cvtProperties,i);return qo(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 f of YAe)if(i.startsWith(f)||i.includes(`.${f}`))return this;s=qT(i,s,this._schema,this);let a=i.split("."),c=a.pop(),l=a.join("."),u=Mo(this._instance,l,!0);return u[c]=s,this},load:function(i){return OT(i,this._instance,this._schema),IT(n),RT(n),this},loadFile:function(i){let s=this;return Array.isArray(i)||(i=[i]),i.forEach(function(a){let c=qG(a);c&&OT(c,s._instance,s._schema)}),IT(n),RT(n),this},validate:function(i){if(i=i||{},i.allowed=i.allowed||PG,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,a=XAe(this._instance,this._schema,i.allowed);if(a.invalid_type.length+a.undeclared.length+a.missing.length){let c=this._sensitive,l=function(S){let g="";for(let I=0;I<S.length;I++){g.length&&(g+=`
37
+ `);let O=S[I];O.fullName&&(g+=O.fullName+": "),O.message&&(g+=O.message),O.value&&!c.has(O.fullName)&&(g+=": value was "+JSON.stringify(O.value))}return g},u=l(a.invalid_type),f=l(a.undeclared),_=l(a.missing),h=[u,_];if(i.allowed===PG&&f.length){let S="Warning:";if(process.stdout.isTTY){let g="\x1B[33;1m",I="\x1B[0m";S=g+S+I}s(S+" "+f)}else i.allowed===QAe&&h.push(f);let v=h.filter(function(S){return S.length}).join(`
38
+ `);if(v.length)throw new Error(v)}return this}};return typeof t=="string"?n._def=qG(t):n._def=t,n._schema={_cvtProperties:{}},n._env={},n._argv={},n._sensitive=new Set,Object.keys(n._def).forEach(function(i){zG(i,n._def[i],n._schema._cvtProperties,i,n._env,n._argv,n._sensitive)}),n._instance={},jG(n._schema,n._instance,n),IT(n),RT(n),n};jl.addFormat=function(e,t,r){if(typeof e=="object"&&(t=e.validate,r=e.coerce,e=e.name),typeof t!="function")throw new Error("Validation function for "+e+" must be a function.");if(r&&typeof r!="function")throw new Error("Coerce function for "+e+" must be a function.");zl[e]=t,r&&PT.set(e,r)};jl.addFormats=function(e){Object.keys(e).forEach(function(t){jl.addFormat(t,e[t].validate,e[t].coerce)})};jl.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(n){if(typeof n!="string")throw new Error("Invalid parser.extension");DT[n]=t.parse})})};kG.exports=jl});var UG=m(zo=>{"use strict";var xg=zo&&zo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(zo,"__esModule",{value:!0});zo.TSConvict=void 0;var on=xg(uT()),MT=xg(FG()),nTe=xg(require("fs")),iTe=xg(require("path")),zT=class{constructor(t){if(this.opts={},!on.default.isConfigClass)throw new Error("A class must be decorated with Config or at least one Property");let r=on.default.getConvictMetaForClass(t);r!==null&&(typeof r.parser<"u"&&MT.default.addParser(r.parser),typeof r.formats<"u"&&MT.default.addFormats(r.formats),this.opts=r),this.baseModel=new t,this.schema=this.getSchemaFor(this.baseModel),this.client=MT.default(this.schema)}load(t=null){let r=null;if(typeof this.opts.file<"u"&&nTe.default.existsSync(iTe.default.resolve(this.opts.file))&&(r=this.opts.file),typeof t=="string"||Array.isArray(t)){let s;Array.isArray(t)?s=t:s=[t],r!==null&&s.unshift(r),this.client.loadFile(s)}else if(t===null)r!==null?this.client.loadFile(r):this.client.load({});else if(typeof t=="object")r!==null&&this.client.loadFile(r),this.client.load(t);else throw new Error(`Could not load the config given: ${t}`);let n=this.opts.validationMethod===void 0?"strict":this.opts.validationMethod;this.client.validate({allowed:n});let i=this.client.getProperties();return this.applyDataToModel(this.baseModel,i)}getSchemaFor(t){let r={};for(let n of on.default.getClassProperties(t)){let i=on.default.getConvictMetaForProperty(t,n);if(on.default.isConstructor(i)&&on.default.isConfigClass(i))try{t[n]=new i,r[n]=this.getSchemaFor(t[n])}catch(s){throw console.error(s),new Error("Could not make a new class of "+i)}else r[n]=i}return r}applyDataToModel(t,r){for(let n of on.default.getClassProperties(t)){let i=on.default.getConvictMetaForProperty(t,n);on.default.isConstructor(i)&&on.default.isConfigClass(i)?this.applyDataToModel(t[n],r[n]||{}):n in r&&(t[n]=r[n])}return t}};zo.TSConvict=zT});var Ig=m(qn=>{"use strict";var sTe=qn&&qn.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),jT=qn&&qn.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&sTe(t,e,r)};Object.defineProperty(qn,"__esModule",{value:!0});jT(OB(),qn);jT(LB(),qn);jT(UG(),qn)});var JG=m((mqe,WG)=>{WG.exports=Ul;Ul.default=Ul;Ul.stable=KG;Ul.stableStringify=KG;var Dg="[...]",$G="[Circular]",hs=[],_s=[];function VG(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function Ul(e,t,r,n){typeof n>"u"&&(n=VG()),kT(e,"",0,[],void 0,0,n);var i;try{_s.length===0?i=JSON.stringify(e,t,r):i=JSON.stringify(e,HG(t),r)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;hs.length!==0;){var s=hs.pop();s.length===4?Object.defineProperty(s[0],s[1],s[3]):s[0][s[1]]=s[2]}}return i}function jo(e,t,r,n){var i=Object.getOwnPropertyDescriptor(n,r);i.get!==void 0?i.configurable?(Object.defineProperty(n,r,{value:e}),hs.push([n,r,t,i])):_s.push([t,r,e]):(n[r]=e,hs.push([n,r,t]))}function kT(e,t,r,n,i,s,a){s+=1;var c;if(typeof e=="object"&&e!==null){for(c=0;c<n.length;c++)if(n[c]===e){jo($G,e,t,i);return}if(typeof a.depthLimit<"u"&&s>a.depthLimit){jo(Dg,e,t,i);return}if(typeof a.edgesLimit<"u"&&r+1>a.edgesLimit){jo(Dg,e,t,i);return}if(n.push(e),Array.isArray(e))for(c=0;c<e.length;c++)kT(e[c],c,c,n,e,s,a);else{var l=Object.keys(e);for(c=0;c<l.length;c++){var u=l[c];kT(e[u],u,c,n,e,s,a)}}n.pop()}}function oTe(e,t){return e<t?-1:e>t?1:0}function KG(e,t,r,n){typeof n>"u"&&(n=VG());var i=FT(e,"",0,[],void 0,0,n)||e,s;try{_s.length===0?s=JSON.stringify(i,t,r):s=JSON.stringify(i,HG(t),r)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;hs.length!==0;){var a=hs.pop();a.length===4?Object.defineProperty(a[0],a[1],a[3]):a[0][a[1]]=a[2]}}return s}function FT(e,t,r,n,i,s,a){s+=1;var c;if(typeof e=="object"&&e!==null){for(c=0;c<n.length;c++)if(n[c]===e){jo($G,e,t,i);return}try{if(typeof e.toJSON=="function")return}catch{return}if(typeof a.depthLimit<"u"&&s>a.depthLimit){jo(Dg,e,t,i);return}if(typeof a.edgesLimit<"u"&&r+1>a.edgesLimit){jo(Dg,e,t,i);return}if(n.push(e),Array.isArray(e))for(c=0;c<e.length;c++)FT(e[c],c,c,n,e,s,a);else{var l={},u=Object.keys(e).sort(oTe);for(c=0;c<u.length;c++){var f=u[c];FT(e[f],f,c,n,e,s,a),l[f]=e[f]}if(typeof i<"u")hs.push([i,t,e]),i[t]=l;else return l}n.pop()}}function HG(e){return e=typeof e<"u"?e:function(t,r){return r},function(t,r){if(_s.length>0)for(var n=0;n<_s.length;n++){var i=_s[n];if(i[1]===t&&i[0]===r){r=i[2],_s.splice(n,1);break}}return e.call(this,t,r)}}});var QG=m((pqe,YG)=>{var aTe=JG(),De={LOG:Symbol("log"),META:Symbol("meta"),ERROR:Symbol("error"),OPTS:Symbol("opts")},Ei=class{constructor(t,r){this[De.LOG]=t,this[De.META]={},this[De.ERROR]=null,this[De.OPTS]=r;let{meta:n,tags:i}=this[De.LOG];if(n&&(typeof n!="object"||Array.isArray(n))&&(this[De.LOG].meta={meta:n}),n||(this[De.LOG].meta={}),i||(this[De.LOG].tags=[]),Ei.isError(t.msg)){let s=t.msg;this[De.ERROR]=s,this[De.META].stack=s.stack,this[De.LOG].msg=s.message}}get level(){return this[De.LOG].level}get msg(){return this[De.LOG].msg}set msg(t){this[De.LOG].msg=t}get message(){return this.msg}set message(t){this.msg=t}get meta(){let t=this[De.OPTS],r=o(o(o({},this[De.META]),this[De.OPTS].meta),this[De.LOG].meta);if(t.dynamicMeta&&typeof t.dynamicMeta=="function"){let n=t.dynamicMeta.call(this,this,t);typeof n=="object"&&(r=Object.assign(r,n))}for(let[n,i]of Object.entries(r))typeof i=="object"&&Ei.isError(i)&&(r[n]=Ei.stubError(i));return r}set meta(t){this[De.LOG].meta=o(o({},this[De.LOG].meta),t)}get tags(){let t=this[De.OPTS];return[].concat(t.tags,this[De.LOG].tags).map(n=>{if(typeof n=="function")return n.call(this,{level:this.level,meta:this.meta,options:t});let i=n.match(/(<<(.*)>>)/);return i&&i[2]==="level"?n.replace(i[1],this.level):n}).filter(n=>n!=null&&n!=="")}set tags(t){this[De.LOG].tags=this[De.LOG].tags.concat(t)}get value(){let t=this[De.OPTS];return y(o({[t.levelKey]:t.levelKey?this.level:void 0,[t.messageKey]:this.msg},this.meta),{[t.tagsKey]:t.tagsKey?this.tags:void 0})}get log(){return this.value}get throw(){let t=this[De.ERROR]||new Error(this.msg);throw t.log=this,t}toJSON(t){return aTe(this.value,this[De.OPTS].replacer||null,t?4:0)}static isError(t){return Boolean(t)&&typeof t=="object"&&(t instanceof Error||Object.prototype.hasOwnProperty.call(t,"message")&&Object.prototype.hasOwnProperty.call(t,"stack"))}static stubError(t){return typeof t.toJSON=="function"||(t.toJSON=function(){return["name","message","stack"].concat(Object.keys(t)).reduce((n,i)=>{if(i in t){let s=t[i];if(typeof s=="function")return n;n[i]=s}return n},{})}),t}};Ei.symbols=De;YG.exports=Ei});var ZG=m((_qe,XG)=>{var cTe=require("events"),lTe=QG(),ko={LEVELS:Symbol("levels")},Fo=class extends cTe{constructor(t={},r={}){super(),this.LambdaLog=Fo,this.LogMessage=lTe,this.options=o({meta:{},tags:[],dynamicMeta:null,debug:!1,dev:!1,silent:["true","yes","y","1"].includes(process.env.LAMBDALOG_SILENT),replacer:null,logHandler:console,levelKey:"_logLevel",messageKey:"msg",tagsKey:"_tags"},t),this[ko.LEVELS]=o({info:"info",warn:"warn",error:"error",debug(){return this.options.debug?"debug":!1}},r),this.console=this.options.logHandler;let n=this[ko.LEVELS];for(let i in n)Object.prototype.hasOwnProperty.call(n,i)&&this.addLevel(i,n[i])}addLevel(t,r){return this[ko.LEVELS][t]=r,this[t]=(n,i={},s=[])=>this.log(t,n,i,s),this}log(t,r,n={},i=[]){if(!Object.prototype.hasOwnProperty.call(this[ko.LEVELS],t))throw new Error(`"${t}" is not a valid log level`);let s=new this.LogMessage({level:t,msg:r,meta:n,tags:i},this.options),a=this[ko.LEVELS][t];return typeof a=="function"&&(a=a.call(this,s)),a?(this.options.silent||this.console[a](s.toJSON(this.options.dev)),this.emit("log",s),s):!1}assert(t,r,n={},i=[]){return t?!1:this.log("error",r,n,i)}result(t,r={},n=[]){if(!t||typeof t.then!="function")throw new Error("A promise must be provided as the first argument");return new Promise(s=>{t.then(a=>s(this.log("info",a,r,n))).catch(a=>s(this.log("error",a,r,n)))})}};Fo.symbols=ko;XG.exports=Fo});var t$=m((hqe,e$)=>{var dTe=ZG(),uTe=new dTe;e$.exports=uTe});var vTe={};l$(vTe,{handler:()=>hTe,overrideDBManager:()=>fTe});module.exports=d$(vTe);CC().install();var xC;(function(e){(function(t){var r=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:Function("return this;")(),n=i(e);typeof r.Reflect>"u"?r.Reflect=e:n=i(r.Reflect,n),t(n);function i(s,a){return function(c,l){typeof s[c]!="function"&&Object.defineProperty(s,c,{configurable:!0,writable:!0,value:l}),a&&a(c,l)}}})(function(t){var r=Object.prototype.hasOwnProperty,n=typeof Symbol=="function",i=n&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",s=n&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",a=typeof Object.create=="function",c={__proto__:[]}instanceof Array,l=!a&&!c,u={create:a?function(){return Ze(Object.create(null))}:c?function(){return Ze({__proto__:null})}:function(){return Ze({})},has:l?function(T,N){return r.call(T,N)}:function(T,N){return N in T},get:l?function(T,N){return r.call(T,N)?T[N]:void 0}:function(T,N){return T[N]}},f=Object.getPrototypeOf(Function),_=typeof process=="object"&&process.env&&process.env.REFLECT_METADATA_USE_MAP_POLYFILL==="true",h=!_&&typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:B(),v=!_&&typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:X(),S=!_&&typeof WeakMap=="function"?WeakMap:Ve(),g=new S;function I(T,N,L,j){if(Me(L)){if(!Bl(T))throw new TypeError;if(!Jt(N))throw new TypeError;return he(T,N)}else{if(!Bl(T))throw new TypeError;if(!Ge(N))throw new TypeError;if(!Ge(j)&&!Me(j)&&!jn(j))throw new TypeError;return jn(j)&&(j=void 0),L=pt(L),pe(T,N,L,j)}}t("decorate",I);function O(T,N){function L(j,J){if(!Ge(j))throw new TypeError;if(!Me(J)&&!jg(J))throw new TypeError;Se(T,N,j,J)}return L}t("metadata",O);function C(T,N,L,j){if(!Ge(L))throw new TypeError;return Me(j)||(j=pt(j)),Se(T,N,L,j)}t("defineMetadata",C);function k(T,N,L){if(!Ge(N))throw new TypeError;return Me(L)||(L=pt(L)),Fe(T,N,L)}t("hasMetadata",k);function _e(T,N,L){if(!Ge(N))throw new TypeError;return Me(L)||(L=pt(L)),Le(T,N,L)}t("hasOwnMetadata",_e);function Ut(T,N,L){if(!Ge(N))throw new TypeError;return Me(L)||(L=pt(L)),Re(T,N,L)}t("getMetadata",Ut);function Mn(T,N,L){if(!Ge(N))throw new TypeError;return Me(L)||(L=pt(L)),Ne(T,N,L)}t("getOwnMetadata",Mn);function zn(T,N){if(!Ge(T))throw new TypeError;return Me(N)||(N=pt(N)),Ue(T,N)}t("getMetadataKeys",zn);function hr(T,N){if(!Ge(T))throw new TypeError;return Me(N)||(N=pt(N)),be(T,N)}t("getOwnMetadataKeys",hr);function F(T,N,L){if(!Ge(N))throw new TypeError;Me(L)||(L=pt(L));var j=Ie(N,L,!1);if(Me(j)||!j.delete(T))return!1;if(j.size>0)return!0;var J=g.get(N);return J.delete(L),J.size>0||g.delete(N),!0}t("deleteMetadata",F);function he(T,N){for(var L=T.length-1;L>=0;--L){var j=T[L],J=j(N);if(!Me(J)&&!jn(J)){if(!Jt(J))throw new TypeError;N=J}}return N}function pe(T,N,L,j){for(var J=T.length-1;J>=0;--J){var ct=T[J],ce=ct(N,L,j);if(!Me(ce)&&!jn(ce)){if(!Ge(ce))throw new TypeError;j=ce}}return j}function Ie(T,N,L){var j=g.get(T);if(Me(j)){if(!L)return;j=new h,g.set(T,j)}var J=j.get(N);if(Me(J)){if(!L)return;J=new h,j.set(N,J)}return J}function Fe(T,N,L){var j=Le(T,N,L);if(j)return!0;var J=U(N);return jn(J)?!1:Fe(T,J,L)}function Le(T,N,L){var j=Ie(N,L,!1);return Me(j)?!1:gs(j.has(T))}function Re(T,N,L){var j=Le(T,N,L);if(j)return Ne(T,N,L);var J=U(N);if(!jn(J))return Re(T,J,L)}function Ne(T,N,L){var j=Ie(N,L,!1);if(!Me(j))return j.get(T)}function Se(T,N,L,j){var J=Ie(L,j,!0);J.set(T,N)}function Ue(T,N){var L=be(T,N),j=U(T);if(j===null)return L;var J=Ue(j,N);if(J.length<=0)return L;if(L.length<=0)return J;for(var ct=new v,ce=[],ue=0,ee=L;ue<ee.length;ue++){var ge=ee[ue],ve=ct.has(ge);ve||(ct.add(ge),ce.push(ge))}for(var Fn=0,BT=J;Fn<BT.length;Fn++){var ge=BT[Fn],ve=ct.has(ge);ve||(ct.add(ge),ce.push(ge))}return ce}function be(T,N){var L=[],j=Ie(T,N,!1);if(Me(j))return L;for(var J=j.keys(),ct=b(J),ce=0;;){var ue=R(ct);if(!ue)return L.length=ce,L;var ee=q(ue);try{L[ce]=ee}catch(ge){try{A(ct)}finally{throw ge}}ce++}}function an(T){if(T===null)return 1;switch(typeof T){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return T===null?1:6;default:return 6}}function Me(T){return T===void 0}function jn(T){return T===null}function oe(T){return typeof T=="symbol"}function Ge(T){return typeof T=="object"?T!==null:typeof T=="function"}function qg(T,N){switch(an(T)){case 0:return T;case 1:return T;case 2:return T;case 3:return T;case 4:return T;case 5:return T}var L=N===3?"string":N===5?"number":"default",j=E(T,i);if(j!==void 0){var J=j.call(T,L);if(Ge(J))throw new TypeError;return J}return Mg(T,L==="default"?"number":L)}function Mg(T,N){if(N==="string"){var L=T.toString;if(kn(L)){var j=L.call(T);if(!Ge(j))return j}var J=T.valueOf;if(kn(J)){var j=J.call(T);if(!Ge(j))return j}}else{var J=T.valueOf;if(kn(J)){var j=J.call(T);if(!Ge(j))return j}var ct=T.toString;if(kn(ct)){var j=ct.call(T);if(!Ge(j))return j}}throw new TypeError}function gs(T){return!!T}function zg(T){return""+T}function pt(T){var N=qg(T,3);return oe(N)?N:zg(N)}function Bl(T){return Array.isArray?Array.isArray(T):T instanceof Object?T instanceof Array:Object.prototype.toString.call(T)==="[object Array]"}function kn(T){return typeof T=="function"}function Jt(T){return typeof T=="function"}function jg(T){switch(an(T)){case 3:return!0;case 4:return!0;default:return!1}}function E(T,N){var L=T[N];if(L!=null){if(!kn(L))throw new TypeError;return L}}function b(T){var N=E(T,s);if(!kn(N))throw new TypeError;var L=N.call(T);if(!Ge(L))throw new TypeError;return L}function q(T){return T.value}function R(T){var N=T.next();return N.done?!1:N}function A(T){var N=T.return;N&&N.call(T)}function U(T){var N=Object.getPrototypeOf(T);if(typeof T!="function"||T===f||N!==f)return N;var L=T.prototype,j=L&&Object.getPrototypeOf(L);if(j==null||j===Object.prototype)return N;var J=j.constructor;return typeof J!="function"||J===T?N:J}function B(){var T={},N=[],L=function(){function ce(ue,ee,ge){this._index=0,this._keys=ue,this._values=ee,this._selector=ge}return ce.prototype["@@iterator"]=function(){return this},ce.prototype[s]=function(){return this},ce.prototype.next=function(){var ue=this._index;if(ue>=0&&ue<this._keys.length){var ee=this._selector(this._keys[ue],this._values[ue]);return ue+1>=this._keys.length?(this._index=-1,this._keys=N,this._values=N):this._index++,{value:ee,done:!1}}return{value:void 0,done:!0}},ce.prototype.throw=function(ue){throw this._index>=0&&(this._index=-1,this._keys=N,this._values=N),ue},ce.prototype.return=function(ue){return this._index>=0&&(this._index=-1,this._keys=N,this._values=N),{value:ue,done:!0}},ce}();return function(){function ce(){this._keys=[],this._values=[],this._cacheKey=T,this._cacheIndex=-2}return Object.defineProperty(ce.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),ce.prototype.has=function(ue){return this._find(ue,!1)>=0},ce.prototype.get=function(ue){var ee=this._find(ue,!1);return ee>=0?this._values[ee]:void 0},ce.prototype.set=function(ue,ee){var ge=this._find(ue,!0);return this._values[ge]=ee,this},ce.prototype.delete=function(ue){var ee=this._find(ue,!1);if(ee>=0){for(var ge=this._keys.length,ve=ee+1;ve<ge;ve++)this._keys[ve-1]=this._keys[ve],this._values[ve-1]=this._values[ve];return this._keys.length--,this._values.length--,ue===this._cacheKey&&(this._cacheKey=T,this._cacheIndex=-2),!0}return!1},ce.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=T,this._cacheIndex=-2},ce.prototype.keys=function(){return new L(this._keys,this._values,j)},ce.prototype.values=function(){return new L(this._keys,this._values,J)},ce.prototype.entries=function(){return new L(this._keys,this._values,ct)},ce.prototype["@@iterator"]=function(){return this.entries()},ce.prototype[s]=function(){return this.entries()},ce.prototype._find=function(ue,ee){return this._cacheKey!==ue&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=ue)),this._cacheIndex<0&&ee&&(this._cacheIndex=this._keys.length,this._keys.push(ue),this._values.push(void 0)),this._cacheIndex},ce}();function j(ce,ue){return ce}function J(ce,ue){return ue}function ct(ce,ue){return[ce,ue]}}function X(){return function(){function T(){this._map=new h}return Object.defineProperty(T.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),T.prototype.has=function(N){return this._map.has(N)},T.prototype.add=function(N){return this._map.set(N,N),this},T.prototype.delete=function(N){return this._map.delete(N)},T.prototype.clear=function(){this._map.clear()},T.prototype.keys=function(){return this._map.keys()},T.prototype.values=function(){return this._map.values()},T.prototype.entries=function(){return this._map.entries()},T.prototype["@@iterator"]=function(){return this.keys()},T.prototype[s]=function(){return this.keys()},T}()}function Ve(){var T=16,N=u.create(),L=j();return function(){function ee(){this._key=j()}return ee.prototype.has=function(ge){var ve=J(ge,!1);return ve!==void 0?u.has(ve,this._key):!1},ee.prototype.get=function(ge){var ve=J(ge,!1);return ve!==void 0?u.get(ve,this._key):void 0},ee.prototype.set=function(ge,ve){var Fn=J(ge,!0);return Fn[this._key]=ve,this},ee.prototype.delete=function(ge){var ve=J(ge,!1);return ve!==void 0?delete ve[this._key]:!1},ee.prototype.clear=function(){this._key=j()},ee}();function j(){var ee;do ee="@@WeakMap@@"+ue();while(u.has(N,ee));return N[ee]=!0,ee}function J(ee,ge){if(!r.call(ee,L)){if(!ge)return;Object.defineProperty(ee,L,{value:u.create()})}return ee[L]}function ct(ee,ge){for(var ve=0;ve<ge;++ve)ee[ve]=Math.random()*255|0;return ee}function ce(ee){return typeof Uint8Array=="function"?typeof crypto<"u"?crypto.getRandomValues(new Uint8Array(ee)):typeof msCrypto<"u"?msCrypto.getRandomValues(new Uint8Array(ee)):ct(new Uint8Array(ee),ee):ct(new Array(ee),ee)}function ue(){var ee=ce(T);ee[6]=ee[6]&79|64,ee[8]=ee[8]&191|128;for(var ge="",ve=0;ve<T;++ve){var Fn=ee[ve];(ve===4||ve===6||ve===8)&&(ge+="-"),Fn<16&&(ge+="0"),ge+=Fn.toString(16).toLowerCase()}return ge}}function Ze(T){return T.__=void 0,delete T.__,T}})})(xC||(xC={}));var Og=yr(require("path")),n$=yr(bt()),ys=yr(Ck()),Lg=yr(jA());var Pg=yr($U());function oB(e){return typeof e>"u"||e===null}function $we(e){return typeof e=="object"&&e!==null}function Vwe(e){return Array.isArray(e)?e:oB(e)?[]:[e]}function Kwe(e,t){var r,n,i,s;if(t)for(s=Object.keys(t),r=0,n=s.length;r<n;r+=1)i=s[r],e[i]=t[i];return e}function Hwe(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function Wwe(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Jwe=oB,Ywe=$we,Qwe=Vwe,Xwe=Hwe,Zwe=Wwe,eEe=Kwe,et={isNothing:Jwe,isObject:Ywe,toArray:Qwe,repeat:Xwe,isNegativeZero:Zwe,extend:eEe};function aB(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
40
39
 
41
- `+e.mark.snippet),r+" "+n):r}function Oo(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=oM(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Oo.prototype=Object.create(Error.prototype);Oo.prototype.constructor=Oo;Oo.prototype.toString=function(t){return this.name+": "+oM(this,t)};var Lt=Oo;function ub(e,t,n,r,i){var s="",a="",l=Math.floor(i/2)-1;return r-t>l&&(s=" ... ",t=r-l+s.length),n-r>l&&(a=" ...",n=r+l-a.length),{str:s+e.slice(t,n).replace(/\t/g,"\u2192")+a,pos:r-t+s.length}}function mb(e,t){return Ze.repeat(" ",t-e.length)+e}function Fue(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],i=[],s,a=-1;s=n.exec(e.buffer);)i.push(s.index),r.push(s.index+s[0].length),e.position<=s.index&&a<0&&(a=r.length-2);a<0&&(a=r.length-1);var l="",c,d,u=Math.min(e.line+t.linesAfter,i.length).toString().length,_=t.maxLength-(t.indent+u+3);for(c=1;c<=t.linesBefore&&!(a-c<0);c++)d=ub(e.buffer,r[a-c],i[a-c],e.position-(r[a]-r[a-c]),_),l=Ze.repeat(" ",t.indent)+mb((e.line-c+1).toString(),u)+" | "+d.str+`
42
- `+l;for(d=ub(e.buffer,r[a],i[a],e.position,_),l+=Ze.repeat(" ",t.indent)+mb((e.line+1).toString(),u)+" | "+d.str+`
43
- `,l+=Ze.repeat("-",t.indent+u+3+d.pos)+`^
44
- `,c=1;c<=t.linesAfter&&!(a+c>=i.length);c++)d=ub(e.buffer,r[a+c],i[a+c],e.position-(r[a]-r[a+c]),_),l+=Ze.repeat(" ",t.indent)+mb((e.line+c+1).toString(),u)+" | "+d.str+`
45
- `;return l.replace(/\n$/,"")}var Bue=Fue,Gue=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],$ue=["scalar","sequence","mapping"];function Kue(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}function Vue(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(Gue.indexOf(n)===-1)throw new Lt('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(n){return n},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=Kue(t.styleAliases||null),$ue.indexOf(this.kind)===-1)throw new Lt('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var vt=Vue;function lM(e,t){var n=[];return e[t].forEach(function(r){var i=n.length;n.forEach(function(s,a){s.tag===r.tag&&s.kind===r.kind&&s.multi===r.multi&&(i=a)}),n[i]=r}),n}function Hue(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function r(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(t=0,n=arguments.length;t<n;t+=1)arguments[t].forEach(r);return e}function fb(e){return this.extend(e)}fb.prototype.extend=function(t){var n=[],r=[];if(t instanceof vt)r.push(t);else if(Array.isArray(t))r=r.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(n=n.concat(t.implicit)),t.explicit&&(r=r.concat(t.explicit));else throw new Lt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(s){if(!(s instanceof vt))throw new Lt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new Lt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new Lt("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(s){if(!(s instanceof vt))throw new Lt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(fb.prototype);return i.implicit=(this.implicit||[]).concat(n),i.explicit=(this.explicit||[]).concat(r),i.compiledImplicit=lM(i,"implicit"),i.compiledExplicit=lM(i,"explicit"),i.compiledTypeMap=Hue(i.compiledImplicit,i.compiledExplicit),i};var Wue=fb,Yue=new vt("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),Jue=new vt("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),Que=new vt("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),Xue=new Wue({explicit:[Yue,Jue,Que]});function Zue(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function eme(){return null}function tme(e){return e===null}var nme=new vt("tag:yaml.org,2002:null",{kind:"scalar",resolve:Zue,construct:eme,predicate:tme,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function rme(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function ime(e){return e==="true"||e==="True"||e==="TRUE"}function sme(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var ame=new vt("tag:yaml.org,2002:bool",{kind:"scalar",resolve:rme,construct:ime,predicate:sme,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function ome(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function lme(e){return 48<=e&&e<=55}function cme(e){return 48<=e&&e<=57}function dme(e){if(e===null)return!1;var t=e.length,n=0,r=!1,i;if(!t)return!1;if(i=e[n],(i==="-"||i==="+")&&(i=e[++n]),i==="0"){if(n+1===t)return!0;if(i=e[++n],i==="b"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(i!=="0"&&i!=="1")return!1;r=!0}return r&&i!=="_"}if(i==="x"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(!ome(e.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}if(i==="o"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(!lme(e.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}}if(i==="_")return!1;for(;n<t;n++)if(i=e[n],i!=="_"){if(!cme(e.charCodeAt(n)))return!1;r=!0}return!(!r||i==="_")}function ume(e){var t=e,n=1,r;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),r=t[0],(r==="-"||r==="+")&&(r==="-"&&(n=-1),t=t.slice(1),r=t[0]),t==="0")return 0;if(r==="0"){if(t[1]==="b")return n*parseInt(t.slice(2),2);if(t[1]==="x")return n*parseInt(t.slice(2),16);if(t[1]==="o")return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function mme(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Ze.isNegativeZero(e)}var fme=new vt("tag:yaml.org,2002:int",{kind:"scalar",resolve:dme,construct:ume,predicate:mme,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),pme=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function _me(e){return!(e===null||!pme.test(e)||e[e.length-1]==="_")}function hme(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var gme=/^[-+]?[0-9]+e/;function yme(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Ze.isNegativeZero(e))return"-0.0";return n=e.toString(10),gme.test(n)?n.replace("e",".e"):n}function vme(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Ze.isNegativeZero(e))}var bme=new vt("tag:yaml.org,2002:float",{kind:"scalar",resolve:_me,construct:hme,predicate:vme,represent:yme,defaultStyle:"lowercase"}),Sme=Xue.extend({implicit:[nme,ame,fme,bme]}),wme=Sme,cM=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),dM=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Eme(e){return e===null?!1:cM.exec(e)!==null||dM.exec(e)!==null}function Ame(e){var t,n,r,i,s,a,l,c=0,d=null,u,_,g;if(t=cM.exec(e),t===null&&(t=dM.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,i));if(s=+t[4],a=+t[5],l=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+="0";c=+c}return t[9]&&(u=+t[10],_=+(t[11]||0),d=(u*60+_)*6e4,t[9]==="-"&&(d=-d)),g=new Date(Date.UTC(n,r,i,s,a,l,c)),d&&g.setTime(g.getTime()-d),g}function Cme(e){return e.toISOString()}var Tme=new vt("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Eme,construct:Ame,instanceOf:Date,represent:Cme});function xme(e){return e==="<<"||e===null}var Ime=new vt("tag:yaml.org,2002:merge",{kind:"scalar",resolve:xme}),pb=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
46
- \r`;function Rme(e){if(e===null)return!1;var t,n,r=0,i=e.length,s=pb;for(n=0;n<i;n++)if(t=s.indexOf(e.charAt(n)),!(t>64)){if(t<0)return!1;r+=6}return r%8===0}function Nme(e){var t,n,r=e.replace(/[\r\n=]/g,""),i=r.length,s=pb,a=0,l=[];for(t=0;t<i;t++)t%4===0&&t&&(l.push(a>>16&255),l.push(a>>8&255),l.push(a&255)),a=a<<6|s.indexOf(r.charAt(t));return n=i%4*6,n===0?(l.push(a>>16&255),l.push(a>>8&255),l.push(a&255)):n===18?(l.push(a>>10&255),l.push(a>>2&255)):n===12&&l.push(a>>4&255),new Uint8Array(l)}function Pme(e){var t="",n=0,r,i,s=e.length,a=pb;for(r=0;r<s;r++)r%3===0&&r&&(t+=a[n>>18&63],t+=a[n>>12&63],t+=a[n>>6&63],t+=a[n&63]),n=(n<<8)+e[r];return i=s%3,i===0?(t+=a[n>>18&63],t+=a[n>>12&63],t+=a[n>>6&63],t+=a[n&63]):i===2?(t+=a[n>>10&63],t+=a[n>>4&63],t+=a[n<<2&63],t+=a[64]):i===1&&(t+=a[n>>2&63],t+=a[n<<4&63],t+=a[64],t+=a[64]),t}function Dme(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var Ome=new vt("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Rme,construct:Nme,predicate:Dme,represent:Pme}),Lme=Object.prototype.hasOwnProperty,qme=Object.prototype.toString;function Mme(e){if(e===null)return!0;var t=[],n,r,i,s,a,l=e;for(n=0,r=l.length;n<r;n+=1){if(i=l[n],a=!1,qme.call(i)!=="[object Object]")return!1;for(s in i)if(Lme.call(i,s))if(!a)a=!0;else return!1;if(!a)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}function kme(e){return e!==null?e:[]}var jme=new vt("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Mme,construct:kme}),zme=Object.prototype.toString;function Ume(e){if(e===null)return!0;var t,n,r,i,s,a=e;for(s=new Array(a.length),t=0,n=a.length;t<n;t+=1){if(r=a[t],zme.call(r)!=="[object Object]"||(i=Object.keys(r),i.length!==1))return!1;s[t]=[i[0],r[i[0]]]}return!0}function Fme(e){if(e===null)return[];var t,n,r,i,s,a=e;for(s=new Array(a.length),t=0,n=a.length;t<n;t+=1)r=a[t],i=Object.keys(r),s[t]=[i[0],r[i[0]]];return s}var Bme=new vt("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Ume,construct:Fme}),Gme=Object.prototype.hasOwnProperty;function $me(e){if(e===null)return!0;var t,n=e;for(t in n)if(Gme.call(n,t)&&n[t]!==null)return!1;return!0}function Kme(e){return e!==null?e:{}}var Vme=new vt("tag:yaml.org,2002:set",{kind:"mapping",resolve:$me,construct:Kme}),uM=wme.extend({implicit:[Tme,Ime],explicit:[Ome,jme,Bme,Vme]}),ni=Object.prototype.hasOwnProperty,jp=1,mM=2,fM=3,zp=4,_b=1,Hme=2,pM=3,Wme=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Yme=/[\x85\u2028\u2029]/,Jme=/[,\[\]\{\}]/,_M=/^(?:!|!!|![a-z\-]+!)$/i,hM=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function gM(e){return Object.prototype.toString.call(e)}function Qn(e){return e===10||e===13}function Fi(e){return e===9||e===32}function qt(e){return e===9||e===32||e===10||e===13}function ta(e){return e===44||e===91||e===93||e===123||e===125}function Qme(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function Xme(e){return e===120?2:e===117?4:e===85?8:0}function Zme(e){return 48<=e&&e<=57?e-48:-1}function yM(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
47
- `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function efe(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var vM=new Array(256),bM=new Array(256);for(Bi=0;Bi<256;Bi++)vM[Bi]=yM(Bi)?1:0,bM[Bi]=yM(Bi);var Bi;function tfe(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||uM,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function SM(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=Bue(n),new Lt(t,n)}function K(e,t){throw SM(e,t)}function Up(e,t){e.onWarning&&e.onWarning.call(null,SM(e,t))}var wM={YAML:function(t,n,r){var i,s,a;t.version!==null&&K(t,"duplication of %YAML directive"),r.length!==1&&K(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),i===null&&K(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),a=parseInt(i[2],10),s!==1&&K(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&Up(t,"unsupported YAML version of the document")},TAG:function(t,n,r){var i,s;r.length!==2&&K(t,"TAG directive accepts exactly two arguments"),i=r[0],s=r[1],_M.test(i)||K(t,"ill-formed tag handle (first argument) of the TAG directive"),ni.call(t.tagMap,i)&&K(t,'there is a previously declared suffix for "'+i+'" tag handle'),hM.test(s)||K(t,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{K(t,"tag prefix is malformed: "+s)}t.tagMap[i]=s}};function ri(e,t,n,r){var i,s,a,l;if(t<n){if(l=e.input.slice(t,n),r)for(i=0,s=l.length;i<s;i+=1)a=l.charCodeAt(i),a===9||32<=a&&a<=1114111||K(e,"expected valid JSON character");else Wme.test(l)&&K(e,"the stream contains non-printable characters");e.result+=l}}function EM(e,t,n,r){var i,s,a,l;for(Ze.isObject(n)||K(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(n),a=0,l=i.length;a<l;a+=1)s=i[a],ni.call(t,s)||(t[s]=n[s],r[s]=!0)}function na(e,t,n,r,i,s,a,l,c){var d,u;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),d=0,u=i.length;d<u;d+=1)Array.isArray(i[d])&&K(e,"nested arrays are not supported inside keys"),typeof i=="object"&&gM(i[d])==="[object Object]"&&(i[d]="[object Object]");if(typeof i=="object"&&gM(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),r==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(d=0,u=s.length;d<u;d+=1)EM(e,t,s[d],n);else EM(e,t,s,n);else!e.json&&!ni.call(n,i)&&ni.call(t,i)&&(e.line=a||e.line,e.lineStart=l||e.lineStart,e.position=c||e.position,K(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,writable:!0,value:s}):t[i]=s,delete n[i];return t}function hb(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):K(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Je(e,t,n){for(var r=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Fi(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(Qn(i))for(hb(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return n!==-1&&r!==0&&e.lineIndent<n&&Up(e,"deficient indentation"),r}function Fp(e){var t=e.position,n;return n=e.input.charCodeAt(t),!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||qt(n)))}function gb(e,t){t===1?e.result+=" ":t>1&&(e.result+=Ze.repeat(`
48
- `,t-1))}function nfe(e,t,n){var r,i,s,a,l,c,d,u,_=e.kind,g=e.result,b;if(b=e.input.charCodeAt(e.position),qt(b)||ta(b)||b===35||b===38||b===42||b===33||b===124||b===62||b===39||b===34||b===37||b===64||b===96||(b===63||b===45)&&(i=e.input.charCodeAt(e.position+1),qt(i)||n&&ta(i)))return!1;for(e.kind="scalar",e.result="",s=a=e.position,l=!1;b!==0;){if(b===58){if(i=e.input.charCodeAt(e.position+1),qt(i)||n&&ta(i))break}else if(b===35){if(r=e.input.charCodeAt(e.position-1),qt(r))break}else{if(e.position===e.lineStart&&Fp(e)||n&&ta(b))break;if(Qn(b))if(c=e.line,d=e.lineStart,u=e.lineIndent,Je(e,!1,-1),e.lineIndent>=t){l=!0,b=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=c,e.lineStart=d,e.lineIndent=u;break}}l&&(ri(e,s,a,!1),gb(e,e.line-c),s=a=e.position,l=!1),Fi(b)||(a=e.position+1),b=e.input.charCodeAt(++e.position)}return ri(e,s,a,!1),e.result?!0:(e.kind=_,e.result=g,!1)}function rfe(e,t){var n,r,i;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(ri(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,i=e.position;else return!0;else Qn(n)?(ri(e,r,i,!0),gb(e,Je(e,!1,t)),r=i=e.position):e.position===e.lineStart&&Fp(e)?K(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);K(e,"unexpected end of the stream within a single quoted scalar")}function ife(e,t){var n,r,i,s,a,l;if(l=e.input.charCodeAt(e.position),l!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;(l=e.input.charCodeAt(e.position))!==0;){if(l===34)return ri(e,n,e.position,!0),e.position++,!0;if(l===92){if(ri(e,n,e.position,!0),l=e.input.charCodeAt(++e.position),Qn(l))Je(e,!1,t);else if(l<256&&vM[l])e.result+=bM[l],e.position++;else if((a=Xme(l))>0){for(i=a,s=0;i>0;i--)l=e.input.charCodeAt(++e.position),(a=Qme(l))>=0?s=(s<<4)+a:K(e,"expected hexadecimal character");e.result+=efe(s),e.position++}else K(e,"unknown escape sequence");n=r=e.position}else Qn(l)?(ri(e,n,r,!0),gb(e,Je(e,!1,t)),n=r=e.position):e.position===e.lineStart&&Fp(e)?K(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}K(e,"unexpected end of the stream within a double quoted scalar")}function sfe(e,t){var n=!0,r,i,s,a=e.tag,l,c=e.anchor,d,u,_,g,b,S=Object.create(null),v,I,L,x;if(x=e.input.charCodeAt(e.position),x===91)u=93,b=!1,l=[];else if(x===123)u=125,b=!0,l={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),x=e.input.charCodeAt(++e.position);x!==0;){if(Je(e,!0,t),x=e.input.charCodeAt(e.position),x===u)return e.position++,e.tag=a,e.anchor=c,e.kind=b?"mapping":"sequence",e.result=l,!0;n?x===44&&K(e,"expected the node content, but found ','"):K(e,"missed comma between flow collection entries"),I=v=L=null,_=g=!1,x===63&&(d=e.input.charCodeAt(e.position+1),qt(d)&&(_=g=!0,e.position++,Je(e,!0,t))),r=e.line,i=e.lineStart,s=e.position,ra(e,t,jp,!1,!0),I=e.tag,v=e.result,Je(e,!0,t),x=e.input.charCodeAt(e.position),(g||e.line===r)&&x===58&&(_=!0,x=e.input.charCodeAt(++e.position),Je(e,!0,t),ra(e,t,jp,!1,!0),L=e.result),b?na(e,l,S,I,v,L,r,i,s):_?l.push(na(e,null,S,I,v,L,r,i,s)):l.push(v),Je(e,!0,t),x=e.input.charCodeAt(e.position),x===44?(n=!0,x=e.input.charCodeAt(++e.position)):n=!1}K(e,"unexpected end of the stream within a flow collection")}function afe(e,t){var n,r,i=_b,s=!1,a=!1,l=t,c=0,d=!1,u,_;if(_=e.input.charCodeAt(e.position),_===124)r=!1;else if(_===62)r=!0;else return!1;for(e.kind="scalar",e.result="";_!==0;)if(_=e.input.charCodeAt(++e.position),_===43||_===45)_b===i?i=_===43?pM:Hme:K(e,"repeat of a chomping mode identifier");else if((u=Zme(_))>=0)u===0?K(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?K(e,"repeat of an indentation width identifier"):(l=t+u-1,a=!0);else break;if(Fi(_)){do _=e.input.charCodeAt(++e.position);while(Fi(_));if(_===35)do _=e.input.charCodeAt(++e.position);while(!Qn(_)&&_!==0)}for(;_!==0;){for(hb(e),e.lineIndent=0,_=e.input.charCodeAt(e.position);(!a||e.lineIndent<l)&&_===32;)e.lineIndent++,_=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>l&&(l=e.lineIndent),Qn(_)){c++;continue}if(e.lineIndent<l){i===pM?e.result+=Ze.repeat(`
49
- `,s?1+c:c):i===_b&&s&&(e.result+=`
50
- `);break}for(r?Fi(_)?(d=!0,e.result+=Ze.repeat(`
51
- `,s?1+c:c)):d?(d=!1,e.result+=Ze.repeat(`
52
- `,c+1)):c===0?s&&(e.result+=" "):e.result+=Ze.repeat(`
53
- `,c):e.result+=Ze.repeat(`
54
- `,s?1+c:c),s=!0,a=!0,c=0,n=e.position;!Qn(_)&&_!==0;)_=e.input.charCodeAt(++e.position);ri(e,n,e.position,!1)}return!0}function AM(e,t){var n,r=e.tag,i=e.anchor,s=[],a,l=!1,c;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),c=e.input.charCodeAt(e.position);c!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,K(e,"tab characters must not be used in indentation")),!(c!==45||(a=e.input.charCodeAt(e.position+1),!qt(a))));){if(l=!0,e.position++,Je(e,!0,-1)&&e.lineIndent<=t){s.push(null),c=e.input.charCodeAt(e.position);continue}if(n=e.line,ra(e,t,fM,!1,!0),s.push(e.result),Je(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&c!==0)K(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return l?(e.tag=r,e.anchor=i,e.kind="sequence",e.result=s,!0):!1}function ofe(e,t,n){var r,i,s,a,l,c,d=e.tag,u=e.anchor,_={},g=Object.create(null),b=null,S=null,v=null,I=!1,L=!1,x;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=_),x=e.input.charCodeAt(e.position);x!==0;){if(!I&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,K(e,"tab characters must not be used in indentation")),r=e.input.charCodeAt(e.position+1),s=e.line,(x===63||x===58)&&qt(r))x===63?(I&&(na(e,_,g,b,S,null,a,l,c),b=S=v=null),L=!0,I=!0,i=!0):I?(I=!1,i=!0):K(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,x=r;else{if(a=e.line,l=e.lineStart,c=e.position,!ra(e,n,mM,!1,!0))break;if(e.line===s){for(x=e.input.charCodeAt(e.position);Fi(x);)x=e.input.charCodeAt(++e.position);if(x===58)x=e.input.charCodeAt(++e.position),qt(x)||K(e,"a whitespace character is expected after the key-value separator within a block mapping"),I&&(na(e,_,g,b,S,null,a,l,c),b=S=v=null),L=!0,I=!1,i=!1,b=e.tag,S=e.result;else if(L)K(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=d,e.anchor=u,!0}else if(L)K(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=d,e.anchor=u,!0}if((e.line===s||e.lineIndent>t)&&(I&&(a=e.line,l=e.lineStart,c=e.position),ra(e,t,zp,!0,i)&&(I?S=e.result:v=e.result),I||(na(e,_,g,b,S,v,a,l,c),b=S=v=null),Je(e,!0,-1),x=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&x!==0)K(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return I&&na(e,_,g,b,S,null,a,l,c),L&&(e.tag=d,e.anchor=u,e.kind="mapping",e.result=_),L}function lfe(e){var t,n=!1,r=!1,i,s,a;if(a=e.input.charCodeAt(e.position),a!==33)return!1;if(e.tag!==null&&K(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),a===60?(n=!0,a=e.input.charCodeAt(++e.position)):a===33?(r=!0,i="!!",a=e.input.charCodeAt(++e.position)):i="!",t=e.position,n){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(s=e.input.slice(t,e.position),a=e.input.charCodeAt(++e.position)):K(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!qt(a);)a===33&&(r?K(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),_M.test(i)||K(e,"named tag handle cannot contain such characters"),r=!0,t=e.position+1)),a=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),Jme.test(s)&&K(e,"tag suffix cannot contain flow indicator characters")}s&&!hM.test(s)&&K(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{K(e,"tag name is malformed: "+s)}return n?e.tag=s:ni.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:K(e,'undeclared tag handle "'+i+'"'),!0}function cfe(e){var t,n;if(n=e.input.charCodeAt(e.position),n!==38)return!1;for(e.anchor!==null&&K(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!qt(n)&&!ta(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&K(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function dfe(e){var t,n,r;if(r=e.input.charCodeAt(e.position),r!==42)return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!qt(r)&&!ta(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&K(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),ni.call(e.anchorMap,n)||K(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],Je(e,!0,-1),!0}function ra(e,t,n,r,i){var s,a,l,c=1,d=!1,u=!1,_,g,b,S,v,I;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=a=l=zp===n||fM===n,r&&Je(e,!0,-1)&&(d=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)),c===1)for(;lfe(e)||cfe(e);)Je(e,!0,-1)?(d=!0,l=s,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):l=!1;if(l&&(l=d||i),(c===1||zp===n)&&(jp===n||mM===n?v=t:v=t+1,I=e.position-e.lineStart,c===1?l&&(AM(e,I)||ofe(e,I,v))||sfe(e,v)?u=!0:(a&&afe(e,v)||rfe(e,v)||ife(e,v)?u=!0:dfe(e)?(u=!0,(e.tag!==null||e.anchor!==null)&&K(e,"alias node should not have any properties")):nfe(e,v,jp===n)&&(u=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):c===0&&(u=l&&AM(e,I))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&K(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),_=0,g=e.implicitTypes.length;_<g;_+=1)if(S=e.implicitTypes[_],S.resolve(e.result)){e.result=S.construct(e.result),e.tag=S.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(ni.call(e.typeMap[e.kind||"fallback"],e.tag))S=e.typeMap[e.kind||"fallback"][e.tag];else for(S=null,b=e.typeMap.multi[e.kind||"fallback"],_=0,g=b.length;_<g;_+=1)if(e.tag.slice(0,b[_].tag.length)===b[_].tag){S=b[_];break}S||K(e,"unknown tag !<"+e.tag+">"),e.result!==null&&S.kind!==e.kind&&K(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+S.kind+'", not "'+e.kind+'"'),S.resolve(e.result,e.tag)?(e.result=S.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):K(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||u}function ufe(e){var t=e.position,n,r,i,s=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(a=e.input.charCodeAt(e.position))!==0&&(Je(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(s=!0,a=e.input.charCodeAt(++e.position),n=e.position;a!==0&&!qt(a);)a=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),i=[],r.length<1&&K(e,"directive name must not be less than one character in length");a!==0;){for(;Fi(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!Qn(a));break}if(Qn(a))break;for(n=e.position;a!==0&&!qt(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}a!==0&&hb(e),ni.call(wM,r)?wM[r](e,r,i):Up(e,'unknown document directive "'+r+'"')}if(Je(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Je(e,!0,-1)):s&&K(e,"directives end mark is expected"),ra(e,e.lineIndent-1,zp,!1,!0),Je(e,!0,-1),e.checkLineBreaks&&Yme.test(e.input.slice(t,e.position))&&Up(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Fp(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Je(e,!0,-1));return}if(e.position<e.length-1)K(e,"end of the stream or a document separator is expected");else return}function CM(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
55
- `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new tfe(e,t),r=e.indexOf("\0");for(r!==-1&&(n.position=r,K(n,"null byte is not allowed in input")),n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)ufe(n);return n.documents}function mfe(e,t,n){t!==null&&typeof t=="object"&&typeof n=="undefined"&&(n=t,t=null);var r=CM(e,n);if(typeof t!="function")return r;for(var i=0,s=r.length;i<s;i+=1)t(r[i])}function ffe(e,t){var n=CM(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new Lt("expected a single document in the stream, but found more")}}var pfe=mfe,_fe=ffe,TM={loadAll:pfe,load:_fe},xM=Object.prototype.toString,IM=Object.prototype.hasOwnProperty,yb=65279,hfe=9,Lo=10,gfe=13,yfe=32,vfe=33,bfe=34,vb=35,Sfe=37,wfe=38,Efe=39,Afe=42,RM=44,Cfe=45,Bp=58,Tfe=61,xfe=62,Ife=63,Rfe=64,NM=91,PM=93,Nfe=96,DM=123,Pfe=124,OM=125,bt={};bt[0]="\\0";bt[7]="\\a";bt[8]="\\b";bt[9]="\\t";bt[10]="\\n";bt[11]="\\v";bt[12]="\\f";bt[13]="\\r";bt[27]="\\e";bt[34]='\\"';bt[92]="\\\\";bt[133]="\\N";bt[160]="\\_";bt[8232]="\\L";bt[8233]="\\P";var Dfe=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Ofe=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Lfe(e,t){var n,r,i,s,a,l,c;if(t===null)return{};for(n={},r=Object.keys(t),i=0,s=r.length;i<s;i+=1)a=r[i],l=String(t[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),c=e.compiledTypeMap.fallback[a],c&&IM.call(c.styleAliases,l)&&(l=c.styleAliases[l]),n[a]=l;return n}function qfe(e){var t,n,r;if(t=e.toString(16).toUpperCase(),e<=255)n="x",r=2;else if(e<=65535)n="u",r=4;else if(e<=4294967295)n="U",r=8;else throw new Lt("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+Ze.repeat("0",r-t.length)+t}var Mfe=1,qo=2;function kfe(e){this.schema=e.schema||uM,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Ze.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Lfe(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?qo:Mfe,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function LM(e,t){for(var n=Ze.repeat(" ",t),r=0,i=-1,s="",a,l=e.length;r<l;)i=e.indexOf(`
56
- `,r),i===-1?(a=e.slice(r),r=l):(a=e.slice(r,i+1),r=i+1),a.length&&a!==`
57
- `&&(s+=n),s+=a;return s}function bb(e,t){return`
58
- `+Ze.repeat(" ",e.indent*t)}function jfe(e,t){var n,r,i;for(n=0,r=e.implicitTypes.length;n<r;n+=1)if(i=e.implicitTypes[n],i.resolve(t))return!0;return!1}function Gp(e){return e===yfe||e===hfe}function Mo(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==yb||65536<=e&&e<=1114111}function qM(e){return Mo(e)&&e!==yb&&e!==gfe&&e!==Lo}function MM(e,t,n){var r=qM(e),i=r&&!Gp(e);return(n?r:r&&e!==RM&&e!==NM&&e!==PM&&e!==DM&&e!==OM)&&e!==vb&&!(t===Bp&&!i)||qM(t)&&!Gp(t)&&e===vb||t===Bp&&i}function zfe(e){return Mo(e)&&e!==yb&&!Gp(e)&&e!==Cfe&&e!==Ife&&e!==Bp&&e!==RM&&e!==NM&&e!==PM&&e!==DM&&e!==OM&&e!==vb&&e!==wfe&&e!==Afe&&e!==vfe&&e!==Pfe&&e!==Tfe&&e!==xfe&&e!==Efe&&e!==bfe&&e!==Sfe&&e!==Rfe&&e!==Nfe}function Ufe(e){return!Gp(e)&&e!==Bp}function ko(e,t){var n=e.charCodeAt(t),r;return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1),r>=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function kM(e){var t=/^\n* /;return t.test(e)}var jM=1,Sb=2,zM=3,UM=4,ia=5;function Ffe(e,t,n,r,i,s,a,l){var c,d=0,u=null,_=!1,g=!1,b=r!==-1,S=-1,v=zfe(ko(e,0))&&Ufe(ko(e,e.length-1));if(t||a)for(c=0;c<e.length;d>=65536?c+=2:c++){if(d=ko(e,c),!Mo(d))return ia;v=v&&MM(d,u,l),u=d}else{for(c=0;c<e.length;d>=65536?c+=2:c++){if(d=ko(e,c),d===Lo)_=!0,b&&(g=g||c-S-1>r&&e[S+1]!==" ",S=c);else if(!Mo(d))return ia;v=v&&MM(d,u,l),u=d}g=g||b&&c-S-1>r&&e[S+1]!==" "}return!_&&!g?v&&!a&&!i(e)?jM:s===qo?ia:Sb:n>9&&kM(e)?ia:a?s===qo?ia:Sb:g?UM:zM}function Bfe(e,t,n,r,i){e.dump=function(){if(t.length===0)return e.quotingType===qo?'""':"''";if(!e.noCompatMode&&(Dfe.indexOf(t)!==-1||Ofe.test(t)))return e.quotingType===qo?'"'+t+'"':"'"+t+"'";var s=e.indent*Math.max(1,n),a=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s),l=r||e.flowLevel>-1&&n>=e.flowLevel;function c(d){return jfe(e,d)}switch(Ffe(t,l,e.indent,a,c,e.quotingType,e.forceQuotes&&!r,i)){case jM:return t;case Sb:return"'"+t.replace(/'/g,"''")+"'";case zM:return"|"+FM(t,e.indent)+BM(LM(t,s));case UM:return">"+FM(t,e.indent)+BM(LM(Gfe(t,a),s));case ia:return'"'+$fe(t)+'"';default:throw new Lt("impossible error: invalid scalar style")}}()}function FM(e,t){var n=kM(e)?String(t):"",r=e[e.length-1]===`
59
- `,i=r&&(e[e.length-2]===`
40
+ `+e.mark.snippet),n+" "+r):n}function Il(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=aB(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Il.prototype=Object.create(Error.prototype);Il.prototype.constructor=Il;Il.prototype.toString=function(t){return this.name+": "+aB(this,t)};var kt=Il;function YA(e,t,r,n,i){var s="",a="",c=Math.floor(i/2)-1;return n-t>c&&(s=" ... ",t=n-c+s.length),r-n>c&&(a=" ...",r=n+c-a.length),{str:s+e.slice(t,r).replace(/\t/g,"\u2192")+a,pos:n-t+s.length}}function QA(e,t){return et.repeat(" ",t-e.length)+e}function tEe(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],i=[],s,a=-1;s=r.exec(e.buffer);)i.push(s.index),n.push(s.index+s[0].length),e.position<=s.index&&a<0&&(a=n.length-2);a<0&&(a=n.length-1);var c="",l,u,f=Math.min(e.line+t.linesAfter,i.length).toString().length,_=t.maxLength-(t.indent+f+3);for(l=1;l<=t.linesBefore&&!(a-l<0);l++)u=YA(e.buffer,n[a-l],i[a-l],e.position-(n[a]-n[a-l]),_),c=et.repeat(" ",t.indent)+QA((e.line-l+1).toString(),f)+" | "+u.str+`
41
+ `+c;for(u=YA(e.buffer,n[a],i[a],e.position,_),c+=et.repeat(" ",t.indent)+QA((e.line+1).toString(),f)+" | "+u.str+`
42
+ `,c+=et.repeat("-",t.indent+f+3+u.pos)+`^
43
+ `,l=1;l<=t.linesAfter&&!(a+l>=i.length);l++)u=YA(e.buffer,n[a+l],i[a+l],e.position-(n[a]-n[a+l]),_),c+=et.repeat(" ",t.indent)+QA((e.line+l+1).toString(),f)+" | "+u.str+`
44
+ `;return c.replace(/\n$/,"")}var rEe=tEe,nEe=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],iEe=["scalar","sequence","mapping"];function sEe(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function oEe(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(nEe.indexOf(r)===-1)throw new kt('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=sEe(t.styleAliases||null),iEe.indexOf(this.kind)===-1)throw new kt('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var wt=oEe;function VU(e,t){var r=[];return e[t].forEach(function(n){var i=r.length;r.forEach(function(s,a){s.tag===n.tag&&s.kind===n.kind&&s.multi===n.multi&&(i=a)}),r[i]=n}),r}function aEe(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function n(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}function ZA(e){return this.extend(e)}ZA.prototype.extend=function(t){var r=[],n=[];if(t instanceof wt)n.push(t);else if(Array.isArray(t))n=n.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(n=n.concat(t.explicit));else throw new kt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof wt))throw new kt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new kt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new kt("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(s){if(!(s instanceof wt))throw new kt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(ZA.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=VU(i,"implicit"),i.compiledExplicit=VU(i,"explicit"),i.compiledTypeMap=aEe(i.compiledImplicit,i.compiledExplicit),i};var cEe=ZA,lEe=new wt("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),dEe=new wt("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),uEe=new wt("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),fEe=new cEe({explicit:[lEe,dEe,uEe]});function mEe(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function pEe(){return null}function _Ee(e){return e===null}var hEe=new wt("tag:yaml.org,2002:null",{kind:"scalar",resolve:mEe,construct:pEe,predicate:_Ee,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function yEe(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function gEe(e){return e==="true"||e==="True"||e==="TRUE"}function vEe(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var SEe=new wt("tag:yaml.org,2002:bool",{kind:"scalar",resolve:yEe,construct:gEe,predicate:vEe,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function wEe(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function EEe(e){return 48<=e&&e<=55}function bEe(e){return 48<=e&&e<=57}function AEe(e){if(e===null)return!1;var t=e.length,r=0,n=!1,i;if(!t)return!1;if(i=e[r],(i==="-"||i==="+")&&(i=e[++r]),i==="0"){if(r+1===t)return!0;if(i=e[++r],i==="b"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!wEe(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!EEe(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(!bEe(e.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}function TEe(e){var t=e,r=1,n;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0")return 0;if(n==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}function CEe(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!et.isNegativeZero(e)}var xEe=new wt("tag:yaml.org,2002:int",{kind:"scalar",resolve:AEe,construct:TEe,predicate:CEe,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),IEe=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function REe(e){return!(e===null||!IEe.test(e)||e[e.length-1]==="_")}function NEe(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}var PEe=/^[-+]?[0-9]+e/;function DEe(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(et.isNegativeZero(e))return"-0.0";return r=e.toString(10),PEe.test(r)?r.replace("e",".e"):r}function OEe(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||et.isNegativeZero(e))}var LEe=new wt("tag:yaml.org,2002:float",{kind:"scalar",resolve:REe,construct:NEe,predicate:OEe,represent:DEe,defaultStyle:"lowercase"}),qEe=fEe.extend({implicit:[hEe,SEe,xEe,LEe]}),MEe=qEe,cB=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),lB=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function zEe(e){return e===null?!1:cB.exec(e)!==null||lB.exec(e)!==null}function jEe(e){var t,r,n,i,s,a,c,l=0,u=null,f,_,h;if(t=cB.exec(e),t===null&&(t=lB.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(s=+t[4],a=+t[5],c=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+="0";l=+l}return t[9]&&(f=+t[10],_=+(t[11]||0),u=(f*60+_)*6e4,t[9]==="-"&&(u=-u)),h=new Date(Date.UTC(r,n,i,s,a,c,l)),u&&h.setTime(h.getTime()-u),h}function kEe(e){return e.toISOString()}var FEe=new wt("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:zEe,construct:jEe,instanceOf:Date,represent:kEe});function UEe(e){return e==="<<"||e===null}var BEe=new wt("tag:yaml.org,2002:merge",{kind:"scalar",resolve:UEe}),iT=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
45
+ \r`;function GEe(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=iT;for(r=0;r<i;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}function $Ee(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=iT,a=0,c=[];for(t=0;t<i;t++)t%4===0&&t&&(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)),a=a<<6|s.indexOf(n.charAt(t));return r=i%4*6,r===0?(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)):r===18?(c.push(a>>10&255),c.push(a>>2&255)):r===12&&c.push(a>>4&255),new Uint8Array(c)}function VEe(e){var t="",r=0,n,i,s=e.length,a=iT;for(n=0;n<s;n++)n%3===0&&n&&(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]),r=(r<<8)+e[n];return i=s%3,i===0?(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]):i===2?(t+=a[r>>10&63],t+=a[r>>4&63],t+=a[r<<2&63],t+=a[64]):i===1&&(t+=a[r>>2&63],t+=a[r<<4&63],t+=a[64],t+=a[64]),t}function KEe(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var HEe=new wt("tag:yaml.org,2002:binary",{kind:"scalar",resolve:GEe,construct:$Ee,predicate:KEe,represent:VEe}),WEe=Object.prototype.hasOwnProperty,JEe=Object.prototype.toString;function YEe(e){if(e===null)return!0;var t=[],r,n,i,s,a,c=e;for(r=0,n=c.length;r<n;r+=1){if(i=c[r],a=!1,JEe.call(i)!=="[object Object]")return!1;for(s in i)if(WEe.call(i,s))if(!a)a=!0;else return!1;if(!a)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}function QEe(e){return e!==null?e:[]}var XEe=new wt("tag:yaml.org,2002:omap",{kind:"sequence",resolve:YEe,construct:QEe}),ZEe=Object.prototype.toString;function e0e(e){if(e===null)return!0;var t,r,n,i,s,a=e;for(s=new Array(a.length),t=0,r=a.length;t<r;t+=1){if(n=a[t],ZEe.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}function t0e(e){if(e===null)return[];var t,r,n,i,s,a=e;for(s=new Array(a.length),t=0,r=a.length;t<r;t+=1)n=a[t],i=Object.keys(n),s[t]=[i[0],n[i[0]]];return s}var r0e=new wt("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:e0e,construct:t0e}),n0e=Object.prototype.hasOwnProperty;function i0e(e){if(e===null)return!0;var t,r=e;for(t in r)if(n0e.call(r,t)&&r[t]!==null)return!1;return!0}function s0e(e){return e!==null?e:{}}var o0e=new wt("tag:yaml.org,2002:set",{kind:"mapping",resolve:i0e,construct:s0e}),dB=MEe.extend({implicit:[FEe,BEe],explicit:[HEe,XEe,r0e,o0e]}),gi=Object.prototype.hasOwnProperty,fg=1,uB=2,fB=3,mg=4,XA=1,a0e=2,KU=3,c0e=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,l0e=/[\x85\u2028\u2029]/,d0e=/[,\[\]\{\}]/,mB=/^(?:!|!!|![a-z\-]+!)$/i,pB=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function HU(e){return Object.prototype.toString.call(e)}function sn(e){return e===10||e===13}function us(e){return e===9||e===32}function Ft(e){return e===9||e===32||e===10||e===13}function Io(e){return e===44||e===91||e===93||e===123||e===125}function u0e(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function f0e(e){return e===120?2:e===117?4:e===85?8:0}function m0e(e){return 48<=e&&e<=57?e-48:-1}function WU(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
46
+ `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function p0e(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var _B=new Array(256),hB=new Array(256);for(ds=0;ds<256;ds++)_B[ds]=WU(ds)?1:0,hB[ds]=WU(ds);var ds;function _0e(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||dB,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function yB(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=rEe(r),new kt(t,r)}function W(e,t){throw yB(e,t)}function pg(e,t){e.onWarning&&e.onWarning.call(null,yB(e,t))}var JU={YAML:function(t,r,n){var i,s,a;t.version!==null&&W(t,"duplication of %YAML directive"),n.length!==1&&W(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&W(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),a=parseInt(i[2],10),s!==1&&W(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&pg(t,"unsupported YAML version of the document")},TAG:function(t,r,n){var i,s;n.length!==2&&W(t,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],mB.test(i)||W(t,"ill-formed tag handle (first argument) of the TAG directive"),gi.call(t.tagMap,i)&&W(t,'there is a previously declared suffix for "'+i+'" tag handle'),pB.test(s)||W(t,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{W(t,"tag prefix is malformed: "+s)}t.tagMap[i]=s}};function yi(e,t,r,n){var i,s,a,c;if(t<r){if(c=e.input.slice(t,r),n)for(i=0,s=c.length;i<s;i+=1)a=c.charCodeAt(i),a===9||32<=a&&a<=1114111||W(e,"expected valid JSON character");else c0e.test(c)&&W(e,"the stream contains non-printable characters");e.result+=c}}function YU(e,t,r,n){var i,s,a,c;for(et.isObject(r)||W(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),a=0,c=i.length;a<c;a+=1)s=i[a],gi.call(t,s)||(t[s]=r[s],n[s]=!0)}function Ro(e,t,r,n,i,s,a,c,l){var u,f;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),u=0,f=i.length;u<f;u+=1)Array.isArray(i[u])&&W(e,"nested arrays are not supported inside keys"),typeof i=="object"&&HU(i[u])==="[object Object]"&&(i[u]="[object Object]");if(typeof i=="object"&&HU(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(u=0,f=s.length;u<f;u+=1)YU(e,t,s[u],r);else YU(e,t,s,r);else!e.json&&!gi.call(r,i)&&gi.call(t,i)&&(e.line=a||e.line,e.lineStart=c||e.lineStart,e.position=l||e.position,W(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,writable:!0,value:s}):t[i]=s,delete r[i];return t}function sT(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):W(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Xe(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;us(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(sn(i))for(sT(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&pg(e,"deficient indentation"),n}function yg(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||Ft(r)))}function oT(e,t){t===1?e.result+=" ":t>1&&(e.result+=et.repeat(`
47
+ `,t-1))}function h0e(e,t,r){var n,i,s,a,c,l,u,f,_=e.kind,h=e.result,v;if(v=e.input.charCodeAt(e.position),Ft(v)||Io(v)||v===35||v===38||v===42||v===33||v===124||v===62||v===39||v===34||v===37||v===64||v===96||(v===63||v===45)&&(i=e.input.charCodeAt(e.position+1),Ft(i)||r&&Io(i)))return!1;for(e.kind="scalar",e.result="",s=a=e.position,c=!1;v!==0;){if(v===58){if(i=e.input.charCodeAt(e.position+1),Ft(i)||r&&Io(i))break}else if(v===35){if(n=e.input.charCodeAt(e.position-1),Ft(n))break}else{if(e.position===e.lineStart&&yg(e)||r&&Io(v))break;if(sn(v))if(l=e.line,u=e.lineStart,f=e.lineIndent,Xe(e,!1,-1),e.lineIndent>=t){c=!0,v=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=l,e.lineStart=u,e.lineIndent=f;break}}c&&(yi(e,s,a,!1),oT(e,e.line-l),s=a=e.position,c=!1),us(v)||(a=e.position+1),v=e.input.charCodeAt(++e.position)}return yi(e,s,a,!1),e.result?!0:(e.kind=_,e.result=h,!1)}function y0e(e,t){var r,n,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(yi(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,i=e.position;else return!0;else sn(r)?(yi(e,n,i,!0),oT(e,Xe(e,!1,t)),n=i=e.position):e.position===e.lineStart&&yg(e)?W(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);W(e,"unexpected end of the stream within a single quoted scalar")}function g0e(e,t){var r,n,i,s,a,c;if(c=e.input.charCodeAt(e.position),c!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(c=e.input.charCodeAt(e.position))!==0;){if(c===34)return yi(e,r,e.position,!0),e.position++,!0;if(c===92){if(yi(e,r,e.position,!0),c=e.input.charCodeAt(++e.position),sn(c))Xe(e,!1,t);else if(c<256&&_B[c])e.result+=hB[c],e.position++;else if((a=f0e(c))>0){for(i=a,s=0;i>0;i--)c=e.input.charCodeAt(++e.position),(a=u0e(c))>=0?s=(s<<4)+a:W(e,"expected hexadecimal character");e.result+=p0e(s),e.position++}else W(e,"unknown escape sequence");r=n=e.position}else sn(c)?(yi(e,r,n,!0),oT(e,Xe(e,!1,t)),r=n=e.position):e.position===e.lineStart&&yg(e)?W(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}W(e,"unexpected end of the stream within a double quoted scalar")}function v0e(e,t){var r=!0,n,i,s,a=e.tag,c,l=e.anchor,u,f,_,h,v,S=Object.create(null),g,I,O,C;if(C=e.input.charCodeAt(e.position),C===91)f=93,v=!1,c=[];else if(C===123)f=125,v=!0,c={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=c),C=e.input.charCodeAt(++e.position);C!==0;){if(Xe(e,!0,t),C=e.input.charCodeAt(e.position),C===f)return e.position++,e.tag=a,e.anchor=l,e.kind=v?"mapping":"sequence",e.result=c,!0;r?C===44&&W(e,"expected the node content, but found ','"):W(e,"missed comma between flow collection entries"),I=g=O=null,_=h=!1,C===63&&(u=e.input.charCodeAt(e.position+1),Ft(u)&&(_=h=!0,e.position++,Xe(e,!0,t))),n=e.line,i=e.lineStart,s=e.position,No(e,t,fg,!1,!0),I=e.tag,g=e.result,Xe(e,!0,t),C=e.input.charCodeAt(e.position),(h||e.line===n)&&C===58&&(_=!0,C=e.input.charCodeAt(++e.position),Xe(e,!0,t),No(e,t,fg,!1,!0),O=e.result),v?Ro(e,c,S,I,g,O,n,i,s):_?c.push(Ro(e,null,S,I,g,O,n,i,s)):c.push(g),Xe(e,!0,t),C=e.input.charCodeAt(e.position),C===44?(r=!0,C=e.input.charCodeAt(++e.position)):r=!1}W(e,"unexpected end of the stream within a flow collection")}function S0e(e,t){var r,n,i=XA,s=!1,a=!1,c=t,l=0,u=!1,f,_;if(_=e.input.charCodeAt(e.position),_===124)n=!1;else if(_===62)n=!0;else return!1;for(e.kind="scalar",e.result="";_!==0;)if(_=e.input.charCodeAt(++e.position),_===43||_===45)XA===i?i=_===43?KU:a0e:W(e,"repeat of a chomping mode identifier");else if((f=m0e(_))>=0)f===0?W(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?W(e,"repeat of an indentation width identifier"):(c=t+f-1,a=!0);else break;if(us(_)){do _=e.input.charCodeAt(++e.position);while(us(_));if(_===35)do _=e.input.charCodeAt(++e.position);while(!sn(_)&&_!==0)}for(;_!==0;){for(sT(e),e.lineIndent=0,_=e.input.charCodeAt(e.position);(!a||e.lineIndent<c)&&_===32;)e.lineIndent++,_=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>c&&(c=e.lineIndent),sn(_)){l++;continue}if(e.lineIndent<c){i===KU?e.result+=et.repeat(`
48
+ `,s?1+l:l):i===XA&&s&&(e.result+=`
49
+ `);break}for(n?us(_)?(u=!0,e.result+=et.repeat(`
50
+ `,s?1+l:l)):u?(u=!1,e.result+=et.repeat(`
51
+ `,l+1)):l===0?s&&(e.result+=" "):e.result+=et.repeat(`
52
+ `,l):e.result+=et.repeat(`
53
+ `,s?1+l:l),s=!0,a=!0,l=0,r=e.position;!sn(_)&&_!==0;)_=e.input.charCodeAt(++e.position);yi(e,r,e.position,!1)}return!0}function QU(e,t){var r,n=e.tag,i=e.anchor,s=[],a,c=!1,l;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),l=e.input.charCodeAt(e.position);l!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,W(e,"tab characters must not be used in indentation")),!(l!==45||(a=e.input.charCodeAt(e.position+1),!Ft(a))));){if(c=!0,e.position++,Xe(e,!0,-1)&&e.lineIndent<=t){s.push(null),l=e.input.charCodeAt(e.position);continue}if(r=e.line,No(e,t,fB,!1,!0),s.push(e.result),Xe(e,!0,-1),l=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&l!==0)W(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return c?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=s,!0):!1}function w0e(e,t,r){var n,i,s,a,c,l,u=e.tag,f=e.anchor,_={},h=Object.create(null),v=null,S=null,g=null,I=!1,O=!1,C;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=_),C=e.input.charCodeAt(e.position);C!==0;){if(!I&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,W(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),s=e.line,(C===63||C===58)&&Ft(n))C===63?(I&&(Ro(e,_,h,v,S,null,a,c,l),v=S=g=null),O=!0,I=!0,i=!0):I?(I=!1,i=!0):W(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,C=n;else{if(a=e.line,c=e.lineStart,l=e.position,!No(e,r,uB,!1,!0))break;if(e.line===s){for(C=e.input.charCodeAt(e.position);us(C);)C=e.input.charCodeAt(++e.position);if(C===58)C=e.input.charCodeAt(++e.position),Ft(C)||W(e,"a whitespace character is expected after the key-value separator within a block mapping"),I&&(Ro(e,_,h,v,S,null,a,c,l),v=S=g=null),O=!0,I=!1,i=!1,v=e.tag,S=e.result;else if(O)W(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=u,e.anchor=f,!0}else if(O)W(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=u,e.anchor=f,!0}if((e.line===s||e.lineIndent>t)&&(I&&(a=e.line,c=e.lineStart,l=e.position),No(e,t,mg,!0,i)&&(I?S=e.result:g=e.result),I||(Ro(e,_,h,v,S,g,a,c,l),v=S=g=null),Xe(e,!0,-1),C=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&C!==0)W(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return I&&Ro(e,_,h,v,S,null,a,c,l),O&&(e.tag=u,e.anchor=f,e.kind="mapping",e.result=_),O}function E0e(e){var t,r=!1,n=!1,i,s,a;if(a=e.input.charCodeAt(e.position),a!==33)return!1;if(e.tag!==null&&W(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),a===60?(r=!0,a=e.input.charCodeAt(++e.position)):a===33?(n=!0,i="!!",a=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(s=e.input.slice(t,e.position),a=e.input.charCodeAt(++e.position)):W(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!Ft(a);)a===33&&(n?W(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),mB.test(i)||W(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),a=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),d0e.test(s)&&W(e,"tag suffix cannot contain flow indicator characters")}s&&!pB.test(s)&&W(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{W(e,"tag name is malformed: "+s)}return r?e.tag=s:gi.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:W(e,'undeclared tag handle "'+i+'"'),!0}function b0e(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&W(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Ft(r)&&!Io(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&W(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function A0e(e){var t,r,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!Ft(n)&&!Io(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&W(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),gi.call(e.anchorMap,r)||W(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],Xe(e,!0,-1),!0}function No(e,t,r,n,i){var s,a,c,l=1,u=!1,f=!1,_,h,v,S,g,I;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=a=c=mg===r||fB===r,n&&Xe(e,!0,-1)&&(u=!0,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)),l===1)for(;E0e(e)||b0e(e);)Xe(e,!0,-1)?(u=!0,c=s,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)):c=!1;if(c&&(c=u||i),(l===1||mg===r)&&(fg===r||uB===r?g=t:g=t+1,I=e.position-e.lineStart,l===1?c&&(QU(e,I)||w0e(e,I,g))||v0e(e,g)?f=!0:(a&&S0e(e,g)||y0e(e,g)||g0e(e,g)?f=!0:A0e(e)?(f=!0,(e.tag!==null||e.anchor!==null)&&W(e,"alias node should not have any properties")):h0e(e,g,fg===r)&&(f=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):l===0&&(f=c&&QU(e,I))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&W(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),_=0,h=e.implicitTypes.length;_<h;_+=1)if(S=e.implicitTypes[_],S.resolve(e.result)){e.result=S.construct(e.result),e.tag=S.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(gi.call(e.typeMap[e.kind||"fallback"],e.tag))S=e.typeMap[e.kind||"fallback"][e.tag];else for(S=null,v=e.typeMap.multi[e.kind||"fallback"],_=0,h=v.length;_<h;_+=1)if(e.tag.slice(0,v[_].tag.length)===v[_].tag){S=v[_];break}S||W(e,"unknown tag !<"+e.tag+">"),e.result!==null&&S.kind!==e.kind&&W(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+S.kind+'", not "'+e.kind+'"'),S.resolve(e.result,e.tag)?(e.result=S.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):W(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||f}function T0e(e){var t=e.position,r,n,i,s=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(a=e.input.charCodeAt(e.position))!==0&&(Xe(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(s=!0,a=e.input.charCodeAt(++e.position),r=e.position;a!==0&&!Ft(a);)a=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&W(e,"directive name must not be less than one character in length");a!==0;){for(;us(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!sn(a));break}if(sn(a))break;for(r=e.position;a!==0&&!Ft(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}a!==0&&sT(e),gi.call(JU,n)?JU[n](e,n,i):pg(e,'unknown document directive "'+n+'"')}if(Xe(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Xe(e,!0,-1)):s&&W(e,"directives end mark is expected"),No(e,e.lineIndent-1,mg,!1,!0),Xe(e,!0,-1),e.checkLineBreaks&&l0e.test(e.input.slice(t,e.position))&&pg(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&yg(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Xe(e,!0,-1));return}if(e.position<e.length-1)W(e,"end of the stream or a document separator is expected");else return}function gB(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
54
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new _0e(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,W(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)T0e(r);return r.documents}function C0e(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=gB(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}function x0e(e,t){var r=gB(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new kt("expected a single document in the stream, but found more")}}var I0e=C0e,R0e=x0e,vB={loadAll:I0e,load:R0e},SB=Object.prototype.toString,wB=Object.prototype.hasOwnProperty,aT=65279,N0e=9,Rl=10,P0e=13,D0e=32,O0e=33,L0e=34,eT=35,q0e=37,M0e=38,z0e=39,j0e=42,EB=44,k0e=45,_g=58,F0e=61,U0e=62,B0e=63,G0e=64,bB=91,AB=93,$0e=96,TB=123,V0e=124,CB=125,Et={};Et[0]="\\0";Et[7]="\\a";Et[8]="\\b";Et[9]="\\t";Et[10]="\\n";Et[11]="\\v";Et[12]="\\f";Et[13]="\\r";Et[27]="\\e";Et[34]='\\"';Et[92]="\\\\";Et[133]="\\N";Et[160]="\\_";Et[8232]="\\L";Et[8233]="\\P";var K0e=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],H0e=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function W0e(e,t){var r,n,i,s,a,c,l;if(t===null)return{};for(r={},n=Object.keys(t),i=0,s=n.length;i<s;i+=1)a=n[i],c=String(t[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),l=e.compiledTypeMap.fallback[a],l&&wB.call(l.styleAliases,c)&&(c=l.styleAliases[c]),r[a]=c;return r}function J0e(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else if(e<=4294967295)r="U",n=8;else throw new kt("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+et.repeat("0",n-t.length)+t}var Y0e=1,Nl=2;function Q0e(e){this.schema=e.schema||dB,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=et.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=W0e(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?Nl:Y0e,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function XU(e,t){for(var r=et.repeat(" ",t),n=0,i=-1,s="",a,c=e.length;n<c;)i=e.indexOf(`
55
+ `,n),i===-1?(a=e.slice(n),n=c):(a=e.slice(n,i+1),n=i+1),a.length&&a!==`
56
+ `&&(s+=r),s+=a;return s}function tT(e,t){return`
57
+ `+et.repeat(" ",e.indent*t)}function X0e(e,t){var r,n,i;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(i=e.implicitTypes[r],i.resolve(t))return!0;return!1}function hg(e){return e===D0e||e===N0e}function Pl(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==aT||65536<=e&&e<=1114111}function ZU(e){return Pl(e)&&e!==aT&&e!==P0e&&e!==Rl}function eB(e,t,r){var n=ZU(e),i=n&&!hg(e);return(r?n:n&&e!==EB&&e!==bB&&e!==AB&&e!==TB&&e!==CB)&&e!==eT&&!(t===_g&&!i)||ZU(t)&&!hg(t)&&e===eT||t===_g&&i}function Z0e(e){return Pl(e)&&e!==aT&&!hg(e)&&e!==k0e&&e!==B0e&&e!==_g&&e!==EB&&e!==bB&&e!==AB&&e!==TB&&e!==CB&&e!==eT&&e!==M0e&&e!==j0e&&e!==O0e&&e!==V0e&&e!==F0e&&e!==U0e&&e!==z0e&&e!==L0e&&e!==q0e&&e!==G0e&&e!==$0e}function ebe(e){return!hg(e)&&e!==_g}function xl(e,t){var r=e.charCodeAt(t),n;return r>=55296&&r<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1),n>=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}function xB(e){var t=/^\n* /;return t.test(e)}var IB=1,rT=2,RB=3,NB=4,xo=5;function tbe(e,t,r,n,i,s,a,c){var l,u=0,f=null,_=!1,h=!1,v=n!==-1,S=-1,g=Z0e(xl(e,0))&&ebe(xl(e,e.length-1));if(t||a)for(l=0;l<e.length;u>=65536?l+=2:l++){if(u=xl(e,l),!Pl(u))return xo;g=g&&eB(u,f,c),f=u}else{for(l=0;l<e.length;u>=65536?l+=2:l++){if(u=xl(e,l),u===Rl)_=!0,v&&(h=h||l-S-1>n&&e[S+1]!==" ",S=l);else if(!Pl(u))return xo;g=g&&eB(u,f,c),f=u}h=h||v&&l-S-1>n&&e[S+1]!==" "}return!_&&!h?g&&!a&&!i(e)?IB:s===Nl?xo:rT:r>9&&xB(e)?xo:a?s===Nl?xo:rT:h?NB:RB}function rbe(e,t,r,n,i){e.dump=function(){if(t.length===0)return e.quotingType===Nl?'""':"''";if(!e.noCompatMode&&(K0e.indexOf(t)!==-1||H0e.test(t)))return e.quotingType===Nl?'"'+t+'"':"'"+t+"'";var s=e.indent*Math.max(1,r),a=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s),c=n||e.flowLevel>-1&&r>=e.flowLevel;function l(u){return X0e(e,u)}switch(tbe(t,c,e.indent,a,l,e.quotingType,e.forceQuotes&&!n,i)){case IB:return t;case rT:return"'"+t.replace(/'/g,"''")+"'";case RB:return"|"+tB(t,e.indent)+rB(XU(t,s));case NB:return">"+tB(t,e.indent)+rB(XU(nbe(t,a),s));case xo:return'"'+ibe(t)+'"';default:throw new kt("impossible error: invalid scalar style")}}()}function tB(e,t){var r=xB(e)?String(t):"",n=e[e.length-1]===`
58
+ `,i=n&&(e[e.length-2]===`
60
59
  `||e===`
61
- `),s=i?"+":r?"":"-";return n+s+`
62
- `}function BM(e){return e[e.length-1]===`
63
- `?e.slice(0,-1):e}function Gfe(e,t){for(var n=/(\n+)([^\n]*)/g,r=function(){var d=e.indexOf(`
64
- `);return d=d!==-1?d:e.length,n.lastIndex=d,GM(e.slice(0,d),t)}(),i=e[0]===`
65
- `||e[0]===" ",s,a;a=n.exec(e);){var l=a[1],c=a[2];s=c[0]===" ",r+=l+(!i&&!s&&c!==""?`
66
- `:"")+GM(c,t),i=s}return r}function GM(e,t){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,r,i=0,s,a=0,l=0,c="";r=n.exec(e);)l=r.index,l-i>t&&(s=a>i?a:l,c+=`
67
- `+e.slice(i,s),i=s+1),a=l;return c+=`
68
- `,e.length-i>t&&a>i?c+=e.slice(i,a)+`
69
- `+e.slice(a+1):c+=e.slice(i),c.slice(1)}function $fe(e){for(var t="",n=0,r,i=0;i<e.length;n>=65536?i+=2:i++)n=ko(e,i),r=bt[n],!r&&Mo(n)?(t+=e[i],n>=65536&&(t+=e[i+1])):t+=r||qfe(n);return t}function Kfe(e,t,n){var r="",i=e.tag,s,a,l;for(s=0,a=n.length;s<a;s+=1)l=n[s],e.replacer&&(l=e.replacer.call(n,String(s),l)),(gr(e,t,l,!1,!1)||typeof l=="undefined"&&gr(e,t,null,!1,!1))&&(r!==""&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=i,e.dump="["+r+"]"}function $M(e,t,n,r){var i="",s=e.tag,a,l,c;for(a=0,l=n.length;a<l;a+=1)c=n[a],e.replacer&&(c=e.replacer.call(n,String(a),c)),(gr(e,t+1,c,!0,!0,!1,!0)||typeof c=="undefined"&&gr(e,t+1,null,!0,!0,!1,!0))&&((!r||i!=="")&&(i+=bb(e,t)),e.dump&&Lo===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}function Vfe(e,t,n){var r="",i=e.tag,s=Object.keys(n),a,l,c,d,u;for(a=0,l=s.length;a<l;a+=1)u="",r!==""&&(u+=", "),e.condenseFlow&&(u+='"'),c=s[a],d=n[c],e.replacer&&(d=e.replacer.call(n,c,d)),!!gr(e,t,c,!1,!1)&&(e.dump.length>1024&&(u+="? "),u+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),!!gr(e,t,d,!1,!1)&&(u+=e.dump,r+=u));e.tag=i,e.dump="{"+r+"}"}function Hfe(e,t,n,r){var i="",s=e.tag,a=Object.keys(n),l,c,d,u,_,g;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new Lt("sortKeys must be a boolean or a function");for(l=0,c=a.length;l<c;l+=1)g="",(!r||i!=="")&&(g+=bb(e,t)),d=a[l],u=n[d],e.replacer&&(u=e.replacer.call(n,d,u)),!!gr(e,t+1,d,!0,!0,!0)&&(_=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,_&&(e.dump&&Lo===e.dump.charCodeAt(0)?g+="?":g+="? "),g+=e.dump,_&&(g+=bb(e,t)),!!gr(e,t+1,u,!0,_)&&(e.dump&&Lo===e.dump.charCodeAt(0)?g+=":":g+=": ",g+=e.dump,i+=g));e.tag=s,e.dump=i||"{}"}function KM(e,t,n){var r,i,s,a,l,c;for(i=n?e.explicitTypes:e.implicitTypes,s=0,a=i.length;s<a;s+=1)if(l=i[s],(l.instanceOf||l.predicate)&&(!l.instanceOf||typeof t=="object"&&t instanceof l.instanceOf)&&(!l.predicate||l.predicate(t))){if(n?l.multi&&l.representName?e.tag=l.representName(t):e.tag=l.tag:e.tag="?",l.represent){if(c=e.styleMap[l.tag]||l.defaultStyle,xM.call(l.represent)==="[object Function]")r=l.represent(t,c);else if(IM.call(l.represent,c))r=l.represent[c](t,c);else throw new Lt("!<"+l.tag+'> tag resolver accepts not "'+c+'" style');e.dump=r}return!0}return!1}function gr(e,t,n,r,i,s,a){e.tag=null,e.dump=n,KM(e,n,!1)||KM(e,n,!0);var l=xM.call(e.dump),c=r,d;r&&(r=e.flowLevel<0||e.flowLevel>t);var u=l==="[object Object]"||l==="[object Array]",_,g;if(u&&(_=e.duplicates.indexOf(n),g=_!==-1),(e.tag!==null&&e.tag!=="?"||g||e.indent!==2&&t>0)&&(i=!1),g&&e.usedDuplicates[_])e.dump="*ref_"+_;else{if(u&&g&&!e.usedDuplicates[_]&&(e.usedDuplicates[_]=!0),l==="[object Object]")r&&Object.keys(e.dump).length!==0?(Hfe(e,t,e.dump,i),g&&(e.dump="&ref_"+_+e.dump)):(Vfe(e,t,e.dump),g&&(e.dump="&ref_"+_+" "+e.dump));else if(l==="[object Array]")r&&e.dump.length!==0?(e.noArrayIndent&&!a&&t>0?$M(e,t-1,e.dump,i):$M(e,t,e.dump,i),g&&(e.dump="&ref_"+_+e.dump)):(Kfe(e,t,e.dump),g&&(e.dump="&ref_"+_+" "+e.dump));else if(l==="[object String]")e.tag!=="?"&&Bfe(e,e.dump,t,s,c);else{if(l==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Lt("unacceptable kind of an object to dump "+l)}e.tag!==null&&e.tag!=="?"&&(d=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?d="!"+d:d.slice(0,18)==="tag:yaml.org,2002:"?d="!!"+d.slice(18):d="!<"+d+">",e.dump=d+" "+e.dump)}return!0}function Wfe(e,t){var n=[],r=[],i,s;for(wb(e,n,r),i=0,s=r.length;i<s;i+=1)t.duplicates.push(n[r[i]]);t.usedDuplicates=new Array(s)}function wb(e,t,n){var r,i,s;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)n.indexOf(i)===-1&&n.push(i);else if(t.push(e),Array.isArray(e))for(i=0,s=e.length;i<s;i+=1)wb(e[i],t,n);else for(r=Object.keys(e),i=0,s=r.length;i<s;i+=1)wb(e[r[i]],t,n)}function Yfe(e,t){t=t||{};var n=new kfe(t);n.noRefs||Wfe(e,n);var r=e;return n.replacer&&(r=n.replacer.call({"":r},"",r)),gr(n,0,r,!0,!0)?n.dump+`
70
- `:""}var Jfe=Yfe,Qfe={dump:Jfe};function Eb(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var VM=TM.load,xAe=TM.loadAll,IAe=Qfe.dump;var RAe=Eb("safeLoad","load"),NAe=Eb("safeLoadAll","loadAll"),PAe=Eb("safeDump","dump");var Ko=bn(e_()),oj=bn(e_());var t_=bn(Qv()),Qb=class{static async getExistingFiles(t){let n=[];for(let r of t)await(0,t_.pathExists)(r)&&n.push(r);return n}static getExistingFilesSync(t){let n=[];for(let r of t)(0,t_.pathExistsSync)(r)&&n.push(r);return n}};var aj=bn(e_()),n_=class{};Ji([(0,aj.Property)({doc:"DynamoDB Table Name",default:"MicroApps",env:"DATABASE_TABLE_NAME"})],n_.prototype,"tableName",2);var mt=class{static configFiles(){let t=["./configs/config.yaml","./configs/config.yml",`./configs/config-${mt.envLevel}.yaml`,`./configs/config-${mt.envLevel}.yml`];return Qb.getExistingFilesSync(t)}static get instance(){if(mt._instance===void 0){let t=new oj.TSConvict(mt);mt._instance=t.load(mt.configFiles())}return mt._instance}static get envLevel(){let t=process.env.NODE_ENV||"dev";return t.startsWith("prod")?"prod":t==="qa"?"qa":t==="local"?"local":"dev"}};Ji([Ko.Property(n_)],mt.prototype,"db",2),Ji([Ko.Property({doc:"Path prefix for this deployment",default:"",env:"ROOT_PATH_PREFIX"})],mt.prototype,"rootPathPrefix",2),mt=Ji([Ko.Config({file:"config.yml",validationMethod:"strict",parser:{extension:["yml","yaml"],parse:VM},formats:{url:r_.url,ipaddress:r_.ipaddress}})],mt);var K_e=!!process.env.DEBUG,ma,Zb=new lj.DynamoDBClient({maxAttempts:8});function V_e(e){ma=e.dbManager,Zb=e.dynamoClient}ma=new Vi.DBManager({dynamoClient:Zb,tableName:mt.instance.db.tableName});function H_e(e){let t=e;return t!==""&&!t.startsWith("/")&&(t="/"+e),t.endsWith("/")&&t.substring(0,t.length-1),t}function W_e(){let e=[__dirname,i_.default.join(__dirname,".."),i_.default.join(__dirname,"templates"),"/opt","/opt/templates"],t=new Xb.LambdaLog({meta:{source:"microapps-router"},dynamicMeta:n=>({timestamp:new Date().toISOString()})});for(let n of e){let r=i_.default.join(n,"appFrame.html");try{if((0,s_.pathExistsSync)(r))return t.info("found html file",{fullPath:r}),(0,s_.readFileSync)(r,"utf-8")}catch{}}throw t.error("appFrame.html not found"),new Error("appFrame.html not found")}var Y_e=W_e(),Kt=H_e(mt.instance.rootPathPrefix),a_=new Xb.LambdaLog({dev:K_e,dynamicMeta:e=>({timestamp:new Date().toISOString()})});async function J_e(e,t){ma===void 0&&(ma=new Vi.DBManager({dynamoClient:Zb,tableName:mt.instance.db.tableName}));let n={statusCode:200,headers:{},isBase64Encoded:!1};a_.options={meta:{source:"microapps-router",awsRequestId:t.awsRequestId,rawPath:e.rawPath}};try{if(Kt!==""&&!e.rawPath.startsWith(Kt))return n.statusCode=404,n;let i=(Kt!==""&&e.rawPath.startsWith(Kt)?e.rawPath.slice(Kt.length-1):e.rawPath).split("/"),s="";if(i.length>=3&&i[2]!==""&&(s=i.slice(2).join("/")),(i.length===3||i.length===4)&&await X_e({response:n,appName:i[1],semVer:i[2],log:a_}))return n;if(i.length>=2)await Q_e({event:e,response:n,appName:i[1],additionalParts:s,log:a_});else throw new Error("Unmatched route")}catch(r){a_.error("unexpected exception - returning 599",{statusCode:599,error:r}),n.statusCode=599,n.headers={},n.headers["Content-Type"]="text/plain",n.body=`Router - Could not route: ${e.rawPath}, ${r.message}`}return n}async function Q_e(e){var _,g;let{event:t,response:n,appName:r,additionalParts:i,log:s}=e,a;if(n.headers===void 0)throw new Error("do not call me with undefined headers");try{a=await Vi.Application.GetVersionsAndRules({dbManager:ma,key:{AppName:r}})}catch(b){s.info(`GetVersionsAndRules threw for '${r}', assuming not found - returning 404`,{appName:r,statusCode:404,error:b}),n.statusCode=404,n.headers["Cache-Control"]="no-store; private",n.headers["Content-Type"]="text/plain; charset=UTF-8",n.body=`Router - Could not find app: ${t.rawPath}, ${r}`;return}let l=(g=(_=a.Rules)==null?void 0:_.RuleSet.default)==null?void 0:g.SemVer;if(l==null){s.error(`could not find app ${r}, for path ${t.rawPath} - returning 404`,{statusCode:404}),n.statusCode=404,n.headers["Cache-Control"]="no-store; private",n.headers["Content-Type"]="text/plain; charset=UTF-8",n.body=`Router - Could not find app: ${t.rawPath}, ${r}`;return}let c=a.Versions.find(b=>b.SemVer===l),d;(c==null?void 0:c.Type)!=="static"&&((c==null?void 0:c.DefaultFile)===void 0||(c==null?void 0:c.DefaultFile)===""||i!=="")?(d=`${Kt}/${r}/${l}`,i!==""&&(d+=`/${i}`)):d=`${Kt}/${r}/${l}/${c.DefaultFile}`;let u=Y_e.replace("{{iframeSrc}}",d);n.headers["Cache-Control"]="no-store; private",n.headers["Content-Type"]="text/html; charset=UTF-8",n.statusCode=200,n.body=u,s.info(`found app ${r}, for path ${t.rawPath} - returning 200`,{statusCode:200,routedPath:d})}async function X_e(e){let{response:t,appName:n,semVer:r,log:i}=e,s;if(t.headers===void 0)throw new Error("do not call me with undefined headers");try{s=await Vi.Version.LoadVersion({dbManager:ma,key:{AppName:n,SemVer:r}})}catch(a){return i.info(`LoadVersion threw for '${Kt}/${n}/${r}' - falling through to app routing'`,{appName:n,semVer:r,error:a}),!1}return s===void 0?(i.info(`LoadVersion returned undefined for '${Kt}/${n}/${r}', assuming not found - falling through to app routing'`,{appName:n,semVer:r}),!1):(t.statusCode=302,t.headers["Cache-Control"]="no-store; private",t.headers.Location=`${Kt}/${n}/${r}/${s.DefaultFile}`,i.info(`found '${Kt}/${n}/${r}' - returning 302 to ${Kt}/${n}/${r}/${s.DefaultFile}`,{statusCode:302,routedPath:`${Kt}/${n}/${r}/${s.DefaultFile}`}),!0)}module.exports=_j(Z_e);0&&(module.exports={handler,overrideDBManager});
60
+ `),s=i?"+":n?"":"-";return r+s+`
61
+ `}function rB(e){return e[e.length-1]===`
62
+ `?e.slice(0,-1):e}function nbe(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var u=e.indexOf(`
63
+ `);return u=u!==-1?u:e.length,r.lastIndex=u,nB(e.slice(0,u),t)}(),i=e[0]===`
64
+ `||e[0]===" ",s,a;a=r.exec(e);){var c=a[1],l=a[2];s=l[0]===" ",n+=c+(!i&&!s&&l!==""?`
65
+ `:"")+nB(l,t),i=s}return n}function nB(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,s,a=0,c=0,l="";n=r.exec(e);)c=n.index,c-i>t&&(s=a>i?a:c,l+=`
66
+ `+e.slice(i,s),i=s+1),a=c;return l+=`
67
+ `,e.length-i>t&&a>i?l+=e.slice(i,a)+`
68
+ `+e.slice(a+1):l+=e.slice(i),l.slice(1)}function ibe(e){for(var t="",r=0,n,i=0;i<e.length;r>=65536?i+=2:i++)r=xl(e,i),n=Et[r],!n&&Pl(r)?(t+=e[i],r>=65536&&(t+=e[i+1])):t+=n||J0e(r);return t}function sbe(e,t,r){var n="",i=e.tag,s,a,c;for(s=0,a=r.length;s<a;s+=1)c=r[s],e.replacer&&(c=e.replacer.call(r,String(s),c)),(Pn(e,t,c,!1,!1)||typeof c>"u"&&Pn(e,t,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function iB(e,t,r,n){var i="",s=e.tag,a,c,l;for(a=0,c=r.length;a<c;a+=1)l=r[a],e.replacer&&(l=e.replacer.call(r,String(a),l)),(Pn(e,t+1,l,!0,!0,!1,!0)||typeof l>"u"&&Pn(e,t+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=tT(e,t)),e.dump&&Rl===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}function obe(e,t,r){var n="",i=e.tag,s=Object.keys(r),a,c,l,u,f;for(a=0,c=s.length;a<c;a+=1)f="",n!==""&&(f+=", "),e.condenseFlow&&(f+='"'),l=s[a],u=r[l],e.replacer&&(u=e.replacer.call(r,l,u)),Pn(e,t,l,!1,!1)&&(e.dump.length>1024&&(f+="? "),f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Pn(e,t,u,!1,!1)&&(f+=e.dump,n+=f));e.tag=i,e.dump="{"+n+"}"}function abe(e,t,r,n){var i="",s=e.tag,a=Object.keys(r),c,l,u,f,_,h;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new kt("sortKeys must be a boolean or a function");for(c=0,l=a.length;c<l;c+=1)h="",(!n||i!=="")&&(h+=tT(e,t)),u=a[c],f=r[u],e.replacer&&(f=e.replacer.call(r,u,f)),Pn(e,t+1,u,!0,!0,!0)&&(_=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,_&&(e.dump&&Rl===e.dump.charCodeAt(0)?h+="?":h+="? "),h+=e.dump,_&&(h+=tT(e,t)),Pn(e,t+1,f,!0,_)&&(e.dump&&Rl===e.dump.charCodeAt(0)?h+=":":h+=": ",h+=e.dump,i+=h));e.tag=s,e.dump=i||"{}"}function sB(e,t,r){var n,i,s,a,c,l;for(i=r?e.explicitTypes:e.implicitTypes,s=0,a=i.length;s<a;s+=1)if(c=i[s],(c.instanceOf||c.predicate)&&(!c.instanceOf||typeof t=="object"&&t instanceof c.instanceOf)&&(!c.predicate||c.predicate(t))){if(r?c.multi&&c.representName?e.tag=c.representName(t):e.tag=c.tag:e.tag="?",c.represent){if(l=e.styleMap[c.tag]||c.defaultStyle,SB.call(c.represent)==="[object Function]")n=c.represent(t,l);else if(wB.call(c.represent,l))n=c.represent[l](t,l);else throw new kt("!<"+c.tag+'> tag resolver accepts not "'+l+'" style');e.dump=n}return!0}return!1}function Pn(e,t,r,n,i,s,a){e.tag=null,e.dump=r,sB(e,r,!1)||sB(e,r,!0);var c=SB.call(e.dump),l=n,u;n&&(n=e.flowLevel<0||e.flowLevel>t);var f=c==="[object Object]"||c==="[object Array]",_,h;if(f&&(_=e.duplicates.indexOf(r),h=_!==-1),(e.tag!==null&&e.tag!=="?"||h||e.indent!==2&&t>0)&&(i=!1),h&&e.usedDuplicates[_])e.dump="*ref_"+_;else{if(f&&h&&!e.usedDuplicates[_]&&(e.usedDuplicates[_]=!0),c==="[object Object]")n&&Object.keys(e.dump).length!==0?(abe(e,t,e.dump,i),h&&(e.dump="&ref_"+_+e.dump)):(obe(e,t,e.dump),h&&(e.dump="&ref_"+_+" "+e.dump));else if(c==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!a&&t>0?iB(e,t-1,e.dump,i):iB(e,t,e.dump,i),h&&(e.dump="&ref_"+_+e.dump)):(sbe(e,t,e.dump),h&&(e.dump="&ref_"+_+" "+e.dump));else if(c==="[object String]")e.tag!=="?"&&rbe(e,e.dump,t,s,l);else{if(c==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new kt("unacceptable kind of an object to dump "+c)}e.tag!==null&&e.tag!=="?"&&(u=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?u="!"+u:u.slice(0,18)==="tag:yaml.org,2002:"?u="!!"+u.slice(18):u="!<"+u+">",e.dump=u+" "+e.dump)}return!0}function cbe(e,t){var r=[],n=[],i,s;for(nT(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}function nT(e,t,r){var n,i,s;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,s=e.length;i<s;i+=1)nT(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)nT(e[n[i]],t,r)}function lbe(e,t){t=t||{};var r=new Q0e(t);r.noRefs||cbe(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),Pn(r,0,n,!0,!0)?r.dump+`
69
+ `:""}var dbe=lbe,ube={dump:dbe};function cT(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var PB=vB.load,JLe=vB.loadAll,YLe=ube.dump;var QLe=cT("safeLoad","load"),XLe=cT("safeLoadAll","loadAll"),ZLe=cT("safeDump","dump");var Fl=yr(Ig()),GG=yr(Ig());var Ng=yr(jA()),Rg=class{static async getExistingFiles(t){let r=[];for(let n of t)await(0,Ng.pathExists)(n)&&r.push(n);return r}static getExistingFilesSync(t){let r=[];for(let n of t)(0,Ng.pathExistsSync)(n)&&r.push(n);return r}};var BG=yr(Ig()),kl=class{};Ss([(0,BG.Property)({doc:"DynamoDB Table Name",default:"MicroApps",env:"DATABASE_TABLE_NAME"})],kl.prototype,"tableName",2);var at=class{static configFiles(){let t=["./configs/config.yaml","./configs/config.yml",`./configs/config-${at.envLevel}.yaml`,`./configs/config-${at.envLevel}.yml`];return Rg.getExistingFilesSync(t)}static get instance(){if(at._instance===void 0){let t=new GG.TSConvict(at);at._instance=t.load(at.configFiles())}return at._instance}static get envLevel(){let t=process.env.NODE_ENV||"dev";return t.startsWith("prod")?"prod":t==="qa"?"qa":t==="local"?"local":"dev"}};Ss([Fl.Property(kl)],at.prototype,"db",2),Ss([Fl.Property({doc:"Path prefix for this deployment",default:"",env:"ROOT_PATH_PREFIX"})],at.prototype,"rootPathPrefix",2),at=Ss([Fl.Config({file:"config.yml",validationMethod:"strict",parser:{extension:["yml","yaml"],parse:PB},formats:{url:Pg.url,ipaddress:Pg.ipaddress}})],at);var r$=yr(t$()),Uo=class{};Uo.Instance=new r$.LambdaLog({silent:process.env.JEST_WORKER_ID!==void 0});var _r=Uo.Instance,Bo,UT=new n$.DynamoDBClient({maxAttempts:8});function fTe(e){Bo=e.dbManager,UT=e.dynamoClient}Bo=new ys.DBManager({dynamoClient:UT,tableName:at.instance.db.tableName});function mTe(e){let t=e;return t!==""&&!t.startsWith("/")&&(t="/"+e),t.endsWith("/")&&t.substring(0,t.length-1),t}function pTe(){let e=[__dirname,Og.default.join(__dirname,".."),Og.default.join(__dirname,"templates"),"/opt","/opt/templates"];for(let t of e){let r=Og.default.join(t,"appFrame.html");try{if((0,Lg.pathExistsSync)(r))return _r.info("found html file",{fullPath:r}),(0,Lg.readFileSync)(r,"utf-8")}catch{}}throw _r.error("appFrame.html not found"),new Error("appFrame.html not found")}var _Te=pTe(),Wt=mTe(at.instance.rootPathPrefix);async function hTe(e,t){_r.options.meta={source:"microapps-router",awsRequestId:t.awsRequestId,rawPath:e.rawPath},_r.info("received request",{event:e}),Bo===void 0&&(Bo=new ys.DBManager({dynamoClient:UT,tableName:at.instance.db.tableName}));let r={statusCode:200,headers:{},isBase64Encoded:!1};try{if(Wt!==""&&!e.rawPath.startsWith(Wt))return r.statusCode=404,r;let i=(Wt!==""&&e.rawPath.startsWith(Wt)?e.rawPath.slice(Wt.length-1):e.rawPath).split("/"),s="";if(i.length>=3&&i[2]!==""&&(s=i.slice(2).join("/")),(i.length===3||i.length===4)&&await gTe({response:r,appName:i[1],semVer:i[2]}))return r;if(i.length>=2)await yTe({event:e,response:r,appName:i[1],additionalParts:s});else throw new Error("Unmatched route")}catch(n){_r.error("unexpected exception - returning 599",{statusCode:599,error:n}),r.statusCode=599,r.headers={},r.headers["Content-Type"]="text/plain",r.body=`Router - Could not route: ${e.rawPath}, ${n.message}`}return r}async function yTe(e){var f,_;let{event:t,response:r,appName:n,additionalParts:i}=e,s;if(r.headers===void 0)throw new Error("do not call me with undefined headers");try{s=await ys.Application.GetVersionsAndRules({dbManager:Bo,key:{AppName:n}})}catch(h){_r.info(`GetVersionsAndRules threw for '${n}', assuming not found - returning 404`,{appName:n,statusCode:404,error:h}),r.statusCode=404,r.headers["Cache-Control"]="no-store; private",r.headers["Content-Type"]="text/plain; charset=UTF-8",r.body=`Router - Could not find app: ${t.rawPath}, ${n}`;return}let a=(_=(f=s.Rules)==null?void 0:f.RuleSet.default)==null?void 0:_.SemVer;if(a==null){_r.error(`could not find app ${n}, for path ${t.rawPath} - returning 404`,{statusCode:404}),r.statusCode=404,r.headers["Cache-Control"]="no-store; private",r.headers["Content-Type"]="text/plain; charset=UTF-8",r.body=`Router - Could not find app: ${t.rawPath}, ${n}`;return}let c=s.Versions.find(h=>h.SemVer===a),l;(c==null?void 0:c.Type)!=="static"&&((c==null?void 0:c.DefaultFile)===void 0||(c==null?void 0:c.DefaultFile)===""||i!=="")?(l=`${Wt}/${n}/${a}`,i!==""&&(l+=`/${i}`)):l=`${Wt}/${n}/${a}/${c.DefaultFile}`;let u=_Te.replace("{{iframeSrc}}",l);r.headers["Cache-Control"]="no-store; private",r.headers["Content-Type"]="text/html; charset=UTF-8",r.statusCode=200,r.body=u,_r.info(`found app ${n}, for path ${t.rawPath} - returning 200`,{statusCode:200,routedPath:l})}async function gTe(e){let{response:t,appName:r,semVer:n}=e,i;if(t.headers===void 0)throw new Error("do not call me with undefined headers");try{i=await ys.Version.LoadVersion({dbManager:Bo,key:{AppName:r,SemVer:n}})}catch(s){return _r.info(`LoadVersion threw for '${Wt}/${r}/${n}' - falling through to app routing'`,{appName:r,semVer:n,error:s}),!1}return i===void 0?(_r.info(`LoadVersion returned undefined for '${Wt}/${r}/${n}', assuming not found - falling through to app routing'`,{appName:r,semVer:n}),!1):(t.statusCode=302,t.headers["Cache-Control"]="no-store; private",t.headers.Location=`${Wt}/${r}/${n}/${i.DefaultFile}`,_r.info(`found '${Wt}/${r}/${n}' - returning 302 to ${Wt}/${r}/${n}/${i.DefaultFile}`,{statusCode:302,routedPath:`${Wt}/${r}/${n}/${i.DefaultFile}`}),!0)}0&&(module.exports={handler,overrideDBManager});
71
70
  /*! *****************************************************************************
72
71
  Copyright (C) Microsoft. All rights reserved.
73
72
  Licensed under the Apache License, Version 2.0 (the "License"); you may not use
@@ -82,19 +81,5 @@ MERCHANTABLITY OR NON-INFRINGEMENT.
82
81
  See the Apache Version 2.0 License for specific language governing permissions
83
82
  and limitations under the License.
84
83
  ***************************************************************************** */
85
- /*! *****************************************************************************
86
- Copyright (c) Microsoft Corporation.
87
-
88
- Permission to use, copy, modify, and/or distribute this software for any
89
- purpose with or without fee is hereby granted.
90
-
91
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
92
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
93
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
94
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
95
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
96
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
97
- PERFORMANCE OF THIS SOFTWARE.
98
- ***************************************************************************** */
99
84
  /*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
100
85
  //# sourceMappingURL=index.js.map