@pwrdrvr/microapps-cdk 0.2.10 → 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.
@@ -1,71 +1,72 @@
1
- var Fj=Object.create;var ji=Object.defineProperty,Uj=Object.defineProperties,qb=Object.getOwnPropertyDescriptor,Bj=Object.getOwnPropertyDescriptors,Gj=Object.getOwnPropertyNames,Ic=Object.getOwnPropertySymbols,$j=Object.getPrototypeOf,m_=Object.prototype.hasOwnProperty,Mb=Object.prototype.propertyIsEnumerable;var Lb=(e,t,n)=>t in e?ji(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,a=(e,t)=>{for(var n in t||(t={}))m_.call(t,n)&&Lb(e,n,t[n]);if(Ic)for(var n of Ic(t))Mb.call(t,n)&&Lb(e,n,t[n]);return e},g=(e,t)=>Uj(e,Bj(t));var _r=(e,t)=>{var n={};for(var r in e)m_.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Ic)for(var r of Ic(e))t.indexOf(r)<0&&Mb.call(e,r)&&(n[r]=e[r]);return n};var m=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Vj=(e,t)=>{for(var n in t)ji(e,n,{get:t[n],enumerable:!0})},zb=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Gj(t))!m_.call(e,i)&&i!==n&&ji(e,i,{get:()=>t[i],enumerable:!(r=qb(t,i))||r.enumerable});return e};var un=(e,t,n)=>(n=e!=null?Fj($j(e)):{},zb(t||!e||!e.__esModule?ji(n,"default",{value:e,enumerable:!0}):n,e)),Kj=e=>zb(ji({},"__esModule",{value:!0}),e),ki=(e,t,n,r)=>{for(var i=r>1?void 0:r?qb(t,n):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&ji(t,n,i),i};var kb=m(p_=>{var jb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");p_.encode=function(e){if(0<=e&&e<jb.length)return jb[e];throw new TypeError("Must be between 0 and 63: "+e)};p_.decode=function(e){var t=65,n=90,r=97,i=122,s=48,o=57,c=43,l=47,d=26,f=52;return t<=e&&e<=n?e-t:r<=e&&e<=i?e-r+d:s<=e&&e<=o?e-s+f:e==c?62:e==l?63:-1}});var y_=m(__=>{var Fb=kb(),h_=5,Ub=1<<h_,Bb=Ub-1,Gb=Ub;function Hj(e){return e<0?(-e<<1)+1:(e<<1)+0}function Wj(e){var t=(e&1)===1,n=e>>1;return t?-n:n}__.encode=function(t){var n="",r,i=Hj(t);do r=i&Bb,i>>>=h_,i>0&&(r|=Gb),n+=Fb.encode(r);while(i>0);return n};__.decode=function(t,n,r){var i=t.length,s=0,o=0,c,l;do{if(n>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(l=Fb.decode(t.charCodeAt(n++)),l===-1)throw new Error("Invalid base64 digit: "+t.charAt(n-1));c=!!(l&Gb),l&=Bb,s=s+(l<<o),o+=h_}while(c);r.value=Wj(s),r.rest=n}});var Bi=m(lt=>{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.')}lt.getArg=Yj;var $b=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,Jj=/^data:.+\,.+$/;function Zs(e){var t=e.match($b);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}lt.urlParse=Zs;function Fi(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}lt.urlGenerate=Fi;function g_(e){var t=e,n=Zs(e);if(n){if(!n.path)return e;t=n.path}for(var r=lt.isAbsolute(t),i=t.split(/\/+/),s,o=0,c=i.length-1;c>=0;c--)s=i[c],s==="."?i.splice(c,1):s===".."?o++:o>0&&(s===""?(i.splice(c+1,o),o=0):(i.splice(c,2),o--));return t=i.join("/"),t===""&&(t=r?"/":"."),n?(n.path=t,Fi(n)):t}lt.normalize=g_;function Vb(e,t){e===""&&(e="."),t===""&&(t=".");var n=Zs(t),r=Zs(e);if(r&&(e=r.path||"/"),n&&!n.scheme)return r&&(n.scheme=r.scheme),Fi(n);if(n||t.match(Jj))return t;if(r&&!r.host&&!r.path)return r.host=t,Fi(r);var i=t.charAt(0)==="/"?t:g_(e.replace(/\/+$/,"")+"/"+t);return r?(r.path=i,Fi(r)):i}lt.join=Vb;lt.isAbsolute=function(e){return e.charAt(0)==="/"||$b.test(e)};function Qj(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)}lt.relative=Qj;var Kb=function(){var e=Object.create(null);return!("__proto__"in e)}();function Hb(e){return e}function Xj(e){return Wb(e)?"$"+e:e}lt.toSetString=Kb?Hb:Xj;function Zj(e){return Wb(e)?e.slice(1):e}lt.fromSetString=Kb?Hb:Zj;function Wb(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 ek(e,t,n){var r=Ui(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:Ui(e.name,t.name)}lt.compareByOriginalPositions=ek;function tk(e,t,n){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0||n)||(r=Ui(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:Ui(e.name,t.name)}lt.compareByGeneratedPositionsDeflated=tk;function Ui(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}function nk(e,t){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0)||(n=Ui(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:Ui(e.name,t.name)}lt.compareByGeneratedPositionsInflated=nk;function rk(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}lt.parseSourceMapInput=rk;function ik(e,t,n){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),n){var r=Zs(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=Vb(Fi(r),t)}return g_(t)}lt.computeSourceURL=ik});var w_=m(Yb=>{var S_=Bi(),v_=Object.prototype.hasOwnProperty,Qr=typeof Map<"u";function Bn(){this._array=[],this._set=Qr?new Map:Object.create(null)}Bn.fromArray=function(t,n){for(var r=new Bn,i=0,s=t.length;i<s;i++)r.add(t[i],n);return r};Bn.prototype.size=function(){return Qr?this._set.size:Object.getOwnPropertyNames(this._set).length};Bn.prototype.add=function(t,n){var r=Qr?t:S_.toSetString(t),i=Qr?this.has(t):v_.call(this._set,r),s=this._array.length;(!i||n)&&this._array.push(t),i||(Qr?this._set.set(t,s):this._set[r]=s)};Bn.prototype.has=function(t){if(Qr)return this._set.has(t);var n=S_.toSetString(t);return v_.call(this._set,n)};Bn.prototype.indexOf=function(t){if(Qr){var n=this._set.get(t);if(n>=0)return n}else{var r=S_.toSetString(t);if(v_.call(this._set,r))return this._set[r]}throw new Error('"'+t+'" is not in the set.')};Bn.prototype.at=function(t){if(t>=0&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)};Bn.prototype.toArray=function(){return this._array.slice()};Yb.ArraySet=Bn});var Xb=m(Qb=>{var Jb=Bi();function sk(e,t){var n=e.generatedLine,r=t.generatedLine,i=e.generatedColumn,s=t.generatedColumn;return r>n||r==n&&s>=i||Jb.compareByGeneratedPositionsInflated(e,t)<=0}function Rc(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Rc.prototype.unsortedForEach=function(t,n){this._array.forEach(t,n)};Rc.prototype.add=function(t){sk(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))};Rc.prototype.toArray=function(){return this._sorted||(this._array.sort(Jb.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};Qb.MappingList=Rc});var b_=m(Zb=>{var eo=y_(),Ge=Bi(),Dc=w_().ArraySet,ok=Xb().MappingList;function Gt(e){e||(e={}),this._file=Ge.getArg(e,"file",null),this._sourceRoot=Ge.getArg(e,"sourceRoot",null),this._skipValidation=Ge.getArg(e,"skipValidation",!1),this._sources=new Dc,this._names=new Dc,this._mappings=new ok,this._sourcesContents=null}Gt.prototype._version=3;Gt.fromSourceMap=function(t){var n=t.sourceRoot,r=new Gt({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=Ge.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=Ge.relative(n,i)),r._sources.has(s)||r._sources.add(s);var o=t.sourceContentFor(i);o!=null&&r.setSourceContent(i,o)}),r};Gt.prototype.addMapping=function(t){var n=Ge.getArg(t,"generated"),r=Ge.getArg(t,"original",null),i=Ge.getArg(t,"source",null),s=Ge.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})};Gt.prototype.setSourceContent=function(t,n){var r=t;this._sourceRoot!=null&&(r=Ge.relative(this._sourceRoot,r)),n!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Ge.toSetString(r)]=n):this._sourcesContents&&(delete this._sourcesContents[Ge.toSetString(r)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};Gt.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=Ge.relative(s,i));var o=new Dc,c=new Dc;this._mappings.unsortedForEach(function(l){if(l.source===i&&l.originalLine!=null){var d=t.originalPositionFor({line:l.originalLine,column:l.originalColumn});d.source!=null&&(l.source=d.source,r!=null&&(l.source=Ge.join(r,l.source)),s!=null&&(l.source=Ge.relative(s,l.source)),l.originalLine=d.line,l.originalColumn=d.column,d.name!=null&&(l.name=d.name))}var f=l.source;f!=null&&!o.has(f)&&o.add(f);var h=l.name;h!=null&&!c.has(h)&&c.add(h)},this),this._sources=o,this._names=c,t.sources.forEach(function(l){var d=t.sourceContentFor(l);d!=null&&(r!=null&&(l=Ge.join(r,l)),s!=null&&(l=Ge.relative(s,l)),this.setSourceContent(l,d))},this)};Gt.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}))}};Gt.prototype._serializeMappings=function(){for(var t=0,n=1,r=0,i=0,s=0,o=0,c="",l,d,f,h,_=this._mappings.toArray(),S=0,v=_.length;S<v;S++){if(d=_[S],l="",d.generatedLine!==n)for(t=0;d.generatedLine!==n;)l+=";",n++;else if(S>0){if(!Ge.compareByGeneratedPositionsInflated(d,_[S-1]))continue;l+=","}l+=eo.encode(d.generatedColumn-t),t=d.generatedColumn,d.source!=null&&(h=this._sources.indexOf(d.source),l+=eo.encode(h-o),o=h,l+=eo.encode(d.originalLine-1-i),i=d.originalLine-1,l+=eo.encode(d.originalColumn-r),r=d.originalColumn,d.name!=null&&(f=this._names.indexOf(d.name),l+=eo.encode(f-s),s=f)),c+=l}return c};Gt.prototype._generateSourcesContent=function(t,n){return t.map(function(r){if(!this._sourcesContents)return null;n!=null&&(r=Ge.relative(n,r));var i=Ge.toSetString(r);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)};Gt.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};Gt.prototype.toString=function(){return JSON.stringify(this.toJSON())};Zb.SourceMapGenerator=Gt});var eE=m(Xr=>{Xr.GREATEST_LOWER_BOUND=1;Xr.LEAST_UPPER_BOUND=2;function E_(e,t,n,r,i,s){var o=Math.floor((t-e)/2)+e,c=i(n,r[o],!0);return c===0?o:c>0?t-o>1?E_(o,t,n,r,i,s):s==Xr.LEAST_UPPER_BOUND?t<r.length?t:-1:o:o-e>1?E_(e,o,n,r,i,s):s==Xr.LEAST_UPPER_BOUND?o:e<0?-1:e}Xr.search=function(t,n,r,i){if(n.length===0)return-1;var s=E_(-1,n.length,t,n,r,i||Xr.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&r(n[s],n[s-1],!0)===0;)--s;return s}});var nE=m(tE=>{function A_(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function ak(e,t){return Math.round(e+Math.random()*(t-e))}function T_(e,t,n,r){if(n<r){var i=ak(n,r),s=n-1;A_(e,i,r);for(var o=e[r],c=n;c<r;c++)t(e[c],o)<=0&&(s+=1,A_(e,s,c));A_(e,s+1,c);var l=s+1;T_(e,t,n,l-1),T_(e,t,l+1,r)}}tE.quickSort=function(e,t){T_(e,t,0,e.length-1)}});var iE=m(Nc=>{var G=Bi(),C_=eE(),Gi=w_().ArraySet,ck=y_(),to=nE().quickSort;function Oe(e,t){var n=e;return typeof e=="string"&&(n=G.parseSourceMapInput(e)),n.sections!=null?new Xt(n,t):new rt(n,t)}Oe.fromSourceMap=function(e,t){return rt.fromSourceMap(e,t)};Oe.prototype._version=3;Oe.prototype.__generatedMappings=null;Object.defineProperty(Oe.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});Oe.prototype.__originalMappings=null;Object.defineProperty(Oe.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});Oe.prototype._charIsMappingSeparator=function(t,n){var r=t.charAt(n);return r===";"||r===","};Oe.prototype._parseMappings=function(t,n){throw new Error("Subclasses must implement _parseMappings")};Oe.GENERATED_ORDER=1;Oe.ORIGINAL_ORDER=2;Oe.GREATEST_LOWER_BOUND=1;Oe.LEAST_UPPER_BOUND=2;Oe.prototype.eachMapping=function(t,n,r){var i=n||null,s=r||Oe.GENERATED_ORDER,o;switch(s){case Oe.GENERATED_ORDER:o=this._generatedMappings;break;case Oe.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var c=this.sourceRoot;o.map(function(l){var d=l.source===null?null:this._sources.at(l.source);return d=G.computeSourceURL(c,d,this._sourceMapURL),{source:d,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)};Oe.prototype.allGeneratedPositionsFor=function(t){var n=G.getArg(t,"line"),r={source:G.getArg(t,"source"),originalLine:n,originalColumn:G.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",G.compareByOriginalPositions,C_.LEAST_UPPER_BOUND);if(s>=0){var o=this._originalMappings[s];if(t.column===void 0)for(var c=o.originalLine;o&&o.originalLine===c;)i.push({line:G.getArg(o,"generatedLine",null),column:G.getArg(o,"generatedColumn",null),lastColumn:G.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++s];else for(var l=o.originalColumn;o&&o.originalLine===n&&o.originalColumn==l;)i.push({line:G.getArg(o,"generatedLine",null),column:G.getArg(o,"generatedColumn",null),lastColumn:G.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++s]}return i};Nc.SourceMapConsumer=Oe;function rt(e,t){var n=e;typeof e=="string"&&(n=G.parseSourceMapInput(e));var r=G.getArg(n,"version"),i=G.getArg(n,"sources"),s=G.getArg(n,"names",[]),o=G.getArg(n,"sourceRoot",null),c=G.getArg(n,"sourcesContent",null),l=G.getArg(n,"mappings"),d=G.getArg(n,"file",null);if(r!=this._version)throw new Error("Unsupported version: "+r);o&&(o=G.normalize(o)),i=i.map(String).map(G.normalize).map(function(f){return o&&G.isAbsolute(o)&&G.isAbsolute(f)?G.relative(o,f):f}),this._names=Gi.fromArray(s.map(String),!0),this._sources=Gi.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(f){return G.computeSourceURL(o,f,t)}),this.sourceRoot=o,this.sourcesContent=c,this._mappings=l,this._sourceMapURL=t,this.file=d}rt.prototype=Object.create(Oe.prototype);rt.prototype.consumer=Oe;rt.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=G.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};rt.fromSourceMap=function(t,n){var r=Object.create(rt.prototype),i=r._names=Gi.fromArray(t._names.toArray(),!0),s=r._sources=Gi.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(S){return G.computeSourceURL(r.sourceRoot,S,n)});for(var o=t._mappings.toArray().slice(),c=r.__generatedMappings=[],l=r.__originalMappings=[],d=0,f=o.length;d<f;d++){var h=o[d],_=new rE;_.generatedLine=h.generatedLine,_.generatedColumn=h.generatedColumn,h.source&&(_.source=s.indexOf(h.source),_.originalLine=h.originalLine,_.originalColumn=h.originalColumn,h.name&&(_.name=i.indexOf(h.name)),l.push(_)),c.push(_)}return to(r.__originalMappings,G.compareByOriginalPositions),r};rt.prototype._version=3;Object.defineProperty(rt.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function rE(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}rt.prototype._parseMappings=function(t,n){for(var r=1,i=0,s=0,o=0,c=0,l=0,d=t.length,f=0,h={},_={},S=[],v=[],y,R,P,C,k;f<d;)if(t.charAt(f)===";")r++,f++,i=0;else if(t.charAt(f)===",")f++;else{for(y=new rE,y.generatedLine=r,C=f;C<d&&!this._charIsMappingSeparator(t,C);C++);if(R=t.slice(f,C),P=h[R],P)f+=R.length;else{for(P=[];f<C;)ck.decode(t,f,_),k=_.value,f=_.rest,P.push(k);if(P.length===2)throw new Error("Found a source, but no line and column");if(P.length===3)throw new Error("Found a source and line, but no column");h[R]=P}y.generatedColumn=i+P[0],i=y.generatedColumn,P.length>1&&(y.source=c+P[1],c+=P[1],y.originalLine=s+P[2],s=y.originalLine,y.originalLine+=1,y.originalColumn=o+P[3],o=y.originalColumn,P.length>4&&(y.name=l+P[4],l+=P[4])),v.push(y),typeof y.originalLine=="number"&&S.push(y)}to(v,G.compareByGeneratedPositionsDeflated),this.__generatedMappings=v,to(S,G.compareByOriginalPositions),this.__originalMappings=S};rt.prototype._findMapping=function(t,n,r,i,s,o){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 C_.search(t,n,s,o)};rt.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}};rt.prototype.originalPositionFor=function(t){var n={generatedLine:G.getArg(t,"line"),generatedColumn:G.getArg(t,"column")},r=this._findMapping(n,this._generatedMappings,"generatedLine","generatedColumn",G.compareByGeneratedPositionsDeflated,G.getArg(t,"bias",Oe.GREATEST_LOWER_BOUND));if(r>=0){var i=this._generatedMappings[r];if(i.generatedLine===n.generatedLine){var s=G.getArg(i,"source",null);s!==null&&(s=this._sources.at(s),s=G.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var o=G.getArg(i,"name",null);return o!==null&&(o=this._names.at(o)),{source:s,line:G.getArg(i,"originalLine",null),column:G.getArg(i,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}};rt.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1};rt.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=G.relative(this.sourceRoot,i));var s;if(this.sourceRoot!=null&&(s=G.urlParse(this.sourceRoot))){var o=i.replace(/^file:\/\//,"");if(s.scheme=="file"&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];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.')};rt.prototype.generatedPositionFor=function(t){var n=G.getArg(t,"source");if(n=this._findSourceIndex(n),n<0)return{line:null,column:null,lastColumn:null};var r={source:n,originalLine:G.getArg(t,"line"),originalColumn:G.getArg(t,"column")},i=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",G.compareByOriginalPositions,G.getArg(t,"bias",Oe.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===r.source)return{line:G.getArg(s,"generatedLine",null),column:G.getArg(s,"generatedColumn",null),lastColumn:G.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};Nc.BasicSourceMapConsumer=rt;function Xt(e,t){var n=e;typeof e=="string"&&(n=G.parseSourceMapInput(e));var r=G.getArg(n,"version"),i=G.getArg(n,"sections");if(r!=this._version)throw new Error("Unsupported version: "+r);this._sources=new Gi,this._names=new Gi;var s={line:-1,column:0};this._sections=i.map(function(o){if(o.url)throw new Error("Support for url field in sections not implemented.");var c=G.getArg(o,"offset"),l=G.getArg(c,"line"),d=G.getArg(c,"column");if(l<s.line||l===s.line&&d<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=c,{generatedOffset:{generatedLine:l+1,generatedColumn:d+1},consumer:new Oe(G.getArg(o,"map"),t)}})}Xt.prototype=Object.create(Oe.prototype);Xt.prototype.constructor=Oe;Xt.prototype._version=3;Object.defineProperty(Xt.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}});Xt.prototype.originalPositionFor=function(t){var n={generatedLine:G.getArg(t,"line"),generatedColumn:G.getArg(t,"column")},r=C_.search(n,this._sections,function(s,o){var c=s.generatedLine-o.generatedOffset.generatedLine;return c||s.generatedColumn-o.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}};Xt.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})};Xt.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.')};Xt.prototype.generatedPositionFor=function(t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n];if(r.consumer._findSourceIndex(G.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}};Xt.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,o=0;o<s.length;o++){var c=s[o],l=i.consumer._sources.at(c.source);l=G.computeSourceURL(i.consumer.sourceRoot,l,this._sourceMapURL),this._sources.add(l),l=this._sources.indexOf(l);var d=null;c.name&&(d=i.consumer._names.at(c.name),this._names.add(d),d=this._names.indexOf(d));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:d};this.__generatedMappings.push(f),typeof f.originalLine=="number"&&this.__originalMappings.push(f)}to(this.__generatedMappings,G.compareByGeneratedPositionsDeflated),to(this.__originalMappings,G.compareByOriginalPositions)};Nc.IndexedSourceMapConsumer=Xt});var oE=m(sE=>{var lk=b_().SourceMapGenerator,Pc=Bi(),uk=/(\r?\n)/,dk=10,$i="$$$isSourceNode$$$";function Lt(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[$i]=!0,r!=null&&this.add(r)}Lt.fromStringWithSourceMap=function(t,n,r){var i=new Lt,s=t.split(uk),o=0,c=function(){var _=v(),S=v()||"";return _+S;function v(){return o<s.length?s[o++]:void 0}},l=1,d=0,f=null;return n.eachMapping(function(_){if(f!==null)if(l<_.generatedLine)h(f,c()),l++,d=0;else{var S=s[o]||"",v=S.substr(0,_.generatedColumn-d);s[o]=S.substr(_.generatedColumn-d),d=_.generatedColumn,h(f,v),f=_;return}for(;l<_.generatedLine;)i.add(c()),l++;if(d<_.generatedColumn){var S=s[o]||"";i.add(S.substr(0,_.generatedColumn)),s[o]=S.substr(_.generatedColumn),d=_.generatedColumn}f=_},this),o<s.length&&(f&&h(f,c()),i.add(s.splice(o).join(""))),n.sources.forEach(function(_){var S=n.sourceContentFor(_);S!=null&&(r!=null&&(_=Pc.join(r,_)),i.setSourceContent(_,S))}),i;function h(_,S){if(_===null||_.source===void 0)i.add(S);else{var v=r?Pc.join(r,_.source):_.source;i.add(new Lt(_.originalLine,_.originalColumn,v,S,_.name))}}};Lt.prototype.add=function(t){if(Array.isArray(t))t.forEach(function(n){this.add(n)},this);else if(t[$i]||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};Lt.prototype.prepend=function(t){if(Array.isArray(t))for(var n=t.length-1;n>=0;n--)this.prepend(t[n]);else if(t[$i]||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};Lt.prototype.walk=function(t){for(var n,r=0,i=this.children.length;r<i;r++)n=this.children[r],n[$i]?n.walk(t):n!==""&&t(n,{source:this.source,line:this.line,column:this.column,name:this.name})};Lt.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};Lt.prototype.replaceRight=function(t,n){var r=this.children[this.children.length-1];return r[$i]?r.replaceRight(t,n):typeof r=="string"?this.children[this.children.length-1]=r.replace(t,n):this.children.push("".replace(t,n)),this};Lt.prototype.setSourceContent=function(t,n){this.sourceContents[Pc.toSetString(t)]=n};Lt.prototype.walkSourceContents=function(t){for(var n=0,r=this.children.length;n<r;n++)this.children[n][$i]&&this.children[n].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),n=0,r=i.length;n<r;n++)t(Pc.fromSetString(i[n]),this.sourceContents[i[n]])};Lt.prototype.toString=function(){var t="";return this.walk(function(n){t+=n}),t};Lt.prototype.toStringWithSourceMap=function(t){var n={code:"",line:1,column:0},r=new lk(t),i=!1,s=null,o=null,c=null,l=null;return this.walk(function(d,f){n.code+=d,f.source!==null&&f.line!==null&&f.column!==null?((s!==f.source||o!==f.line||c!==f.column||l!==f.name)&&r.addMapping({source:f.source,original:{line:f.line,column:f.column},generated:{line:n.line,column:n.column},name:f.name}),s=f.source,o=f.line,c=f.column,l=f.name,i=!0):i&&(r.addMapping({generated:{line:n.line,column:n.column}}),s=null,i=!1);for(var h=0,_=d.length;h<_;h++)d.charCodeAt(h)===dk?(n.line++,n.column=0,h+1===_?(s=null,i=!1):i&&r.addMapping({source:f.source,original:{line:f.line,column:f.column},generated:{line:n.line,column:n.column},name:f.name})):n.column++}),this.walkSourceContents(function(d,f){r.setSourceContent(d,f)}),{code:n.code,map:r}};sE.SourceNode=Lt});var aE=m(Oc=>{Oc.SourceMapGenerator=b_().SourceMapGenerator;Oc.SourceMapConsumer=iE().SourceMapConsumer;Oc.SourceNode=oE().SourceNode});var lE=m((E_e,cE)=>{var fk=Object.prototype.toString,x_=typeof Buffer<"u"&&typeof Buffer.alloc=="function"&&typeof Buffer.allocUnsafe=="function"&&typeof Buffer.from=="function";function mk(e){return fk.call(e).slice(8,-1)==="ArrayBuffer"}function pk(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 x_?Buffer.from(e.slice(t,t+n)):new Buffer(new Uint8Array(e.slice(t,t+n)))}function hk(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!Buffer.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');return x_?Buffer.from(e,t):new Buffer(e,t)}function _k(e,t,n){if(typeof e=="number")throw new TypeError('"value" argument must not be a number');return mk(e)?pk(e,t,n):typeof e=="string"?hk(e,t):x_?Buffer.from(e):new Buffer(e)}cE.exports=_k});var yE=m((ei,N_)=>{var yk=aE().SourceMapConsumer,I_=require("path"),dn;try{dn=require("fs"),(!dn.existsSync||!dn.readFileSync)&&(dn=null)}catch{}var gk=lE();function uE(e,t){return e.require(t)}var dE=!1,fE=!1,R_=!1,no="auto",Zr={},ro={},Sk=/^data:application\/json[^,]+base64,/,yr=[],gr=[];function P_(){return no==="browser"?!0:no==="node"?!1:typeof window<"u"&&typeof XMLHttpRequest=="function"&&!(window.require&&window.module&&window.process&&window.process.type==="renderer")}function vk(){return typeof process=="object"&&process!==null&&typeof process.on=="function"}function wk(){return typeof process=="object"&&process!==null?process.version:""}function bk(){if(typeof process=="object"&&process!==null)return process.stderr}function Ek(e){if(typeof process=="object"&&process!==null&&typeof process.exit=="function")return process.exit(e)}function Lc(e){return function(t){for(var n=0;n<e.length;n++){var r=e[n](t);if(r)return r}return null}}var O_=Lc(yr);yr.push(function(e){if(e=e.trim(),/^file:/.test(e)&&(e=e.replace(/file:\/\/\/(\w:)?/,function(r,i){return i?"":"/"})),e in Zr)return Zr[e];var t="";try{if(dn)dn.existsSync(e)&&(t=dn.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 Zr[e]=t});function D_(e,t){if(!e)return t;var n=I_.dirname(e),r=/^\w+:\/\/[^\/]*/.exec(n),i=r?r[0]:"",s=n.slice(i.length);return i&&/^\/\w\:/.test(s)?(i+="/",i+I_.resolve(n.slice(i.length),t).replace(/\\/g,"/")):i+I_.resolve(n.slice(i.length),t)}function Ak(e){var t;if(P_())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=O_(e);for(var i=/(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/mg,s,o;o=i.exec(t);)s=o;return s?s[1]:null}var L_=Lc(gr);gr.push(function(e){var t=Ak(e);if(!t)return null;var n;if(Sk.test(t)){var r=t.slice(t.indexOf(",")+1);n=gk(r,"base64").toString(),t=e}else t=D_(e,t),n=O_(t);return n?{url:t,map:n}:null});function q_(e){var t=ro[e.source];if(!t){var n=L_(e.source);n?(t=ro[e.source]={url:n.url,map:new yk(n.map)},t.map.sourcesContent&&t.map.sources.forEach(function(i,s){var o=t.map.sourcesContent[s];if(o){var c=D_(t.url,i);Zr[c]=o}})):t=ro[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=D_(t.url,r.source),r}return e}function pE(e){var t=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(e);if(t){var n=q_({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]+" ("+pE(t[2])+")":e}function Tk(){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(),o=!0,c=this.isConstructor(),l=!(this.isToplevel()||c);if(l){var d=this.getTypeName();d==="[object Object]"&&(d="null");var f=this.getMethodName();s?(d&&s.indexOf(d)!=0&&(i+=d+"."),i+=s,f&&s.indexOf("."+f)!=s.length-f.length-1&&(i+=" [as "+f+"]")):i+=d+"."+(f||"<anonymous>")}else c?i+="new "+(s||"<anonymous>"):s?i+=s:(i+=t,o=!1);return o&&(i+=" ("+t+")"),i}function mE(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=Tk,t}function hE(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)/,o=s.test(wk())?0:62;r===1&&i>o&&!P_()&&!e.isEval()&&(i-=o);var c=q_({source:n,line:r,column:i});t.curPosition=c,e=mE(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 d=e.isEval()&&e.getEvalOrigin();return d&&(d=pE(d),e=mE(e),e.getEvalOrigin=function(){return d}),e}function Ck(e,t){R_&&(Zr={},ro={});for(var n=e.name||"Error",r=e.message||"",i=n+": "+r,s={nextPosition:null,curPosition:null},o=[],c=t.length-1;c>=0;c--)o.push(`
2
- at `+hE(t[c],s)),s.nextPosition=s.curPosition;return s.curPosition=s.nextPosition=null,i+o.reverse().join("")}function _E(e){var t=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(e.stack);if(t){var n=t[1],r=+t[2],i=+t[3],s=Zr[n];if(!s&&dn&&dn.existsSync(n))try{s=dn.readFileSync(n,"utf8")}catch{s=""}if(s){var o=s.split(/(?:\r\n|\r|\n)/)[r-1];if(o)return n+":"+r+`
3
- `+o+`
4
- `+new Array(i).join(" ")+"^"}}return null}function xk(e){var t=_E(e),n=bk();n&&n._handle&&n._handle.setBlocking&&n._handle.setBlocking(!0),t&&(console.error(),console.error(t)),console.error(e.stack),Ek(1)}function Ik(){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 xk(arguments[1])}return e.apply(this,arguments)}}var Rk=yr.slice(0),Dk=gr.slice(0);ei.wrapCallSite=hE;ei.getErrorSource=_E;ei.mapSourcePosition=q_;ei.retrieveSourceMap=L_;ei.install=function(e){if(e=e||{},e.environment&&(no=e.environment,["node","browser","auto"].indexOf(no)===-1))throw new Error("environment "+no+" was unknown. Available options are {auto, browser, node}");if(e.retrieveFile&&(e.overrideRetrieveFile&&(yr.length=0),yr.unshift(e.retrieveFile)),e.retrieveSourceMap&&(e.overrideRetrieveSourceMap&&(gr.length=0),gr.unshift(e.retrieveSourceMap)),e.hookRequire&&!P_()){var t=uE(N_,"module"),n=t.prototype._compile;n.__sourceMapSupport||(t.prototype._compile=function(s,o){return Zr[o]=s,ro[o]=void 0,n.call(this,s,o)},t.prototype._compile.__sourceMapSupport=!0)}if(R_||(R_="emptyCacheBetweenOperations"in e?e.emptyCacheBetweenOperations:!1),dE||(dE=!0,Error.prepareStackTrace=Ck),!fE){var r="handleUncaughtExceptions"in e?e.handleUncaughtExceptions:!0;try{var i=uE(N_,"worker_threads");i.isMainThread===!1&&(r=!1)}catch{}r&&vk()&&(fE=!0,Ik())}};ei.resetRetrieveHandlers=function(){yr.length=0,gr.length=0,yr=Rk.slice(0),gr=Dk.slice(0),L_=Lc(gr),O_=Lc(yr)}});var Y=m((A_e,zc)=>{var SE,vE,wE,bE,EE,AE,TE,CE,xE,qc,M_,IE,RE,DE,Vi,NE,PE,OE,LE,qE,ME,zE,jE,kE,Mc;(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 zc=="object"&&typeof zc.exports=="object"?e(n(t,n(zc.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,o){return r[s]=i?i(s,o):o}}})(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])};SE=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)},vE=Object.assign||function(r){for(var i,s=1,o=arguments.length;s<o;s++){i=arguments[s];for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(r[c]=i[c])}return r},wE=function(r,i){var s={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&i.indexOf(o)<0&&(s[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,o=Object.getOwnPropertySymbols(r);c<o.length;c++)i.indexOf(o[c])<0&&Object.prototype.propertyIsEnumerable.call(r,o[c])&&(s[o[c]]=r[o[c]]);return s},bE=function(r,i,s,o){var c=arguments.length,l=c<3?i:o===null?o=Object.getOwnPropertyDescriptor(i,s):o,d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(r,i,s,o);else for(var f=r.length-1;f>=0;f--)(d=r[f])&&(l=(c<3?d(l):c>3?d(i,s,l):d(i,s))||l);return c>3&&l&&Object.defineProperty(i,s,l),l},EE=function(r,i){return function(s,o){i(s,o,r)}},AE=function(r,i){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,i)},TE=function(r,i,s,o){function c(l){return l instanceof s?l:new s(function(d){d(l)})}return new(s||(s=Promise))(function(l,d){function f(S){try{_(o.next(S))}catch(v){d(v)}}function h(S){try{_(o.throw(S))}catch(v){d(v)}}function _(S){S.done?l(S.value):c(S.value).then(f,h)}_((o=o.apply(r,i||[])).next())})},CE=function(r,i){var s={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},o,c,l,d;return d={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function f(_){return function(S){return h([_,S])}}function h(_){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,c&&(l=_[0]&2?c.return:_[0]?c.throw||((l=c.return)&&l.call(c),0):c.next)&&!(l=l.call(c,_[1])).done)return l;switch(c=0,l&&(_=[_[0]&2,l.value]),_[0]){case 0:case 1:l=_;break;case 4:return s.label++,{value:_[1],done:!1};case 5:s.label++,c=_[1],_=[0];continue;case 7:_=s.ops.pop(),s.trys.pop();continue;default:if(l=s.trys,!(l=l.length>0&&l[l.length-1])&&(_[0]===6||_[0]===2)){s=0;continue}if(_[0]===3&&(!l||_[1]>l[0]&&_[1]<l[3])){s.label=_[1];break}if(_[0]===6&&s.label<l[1]){s.label=l[1],l=_;break}if(l&&s.label<l[2]){s.label=l[2],s.ops.push(_);break}l[2]&&s.ops.pop(),s.trys.pop();continue}_=i.call(r,s)}catch(S){_=[6,S],c=0}finally{o=l=0}if(_[0]&5)throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}},xE=function(r,i){for(var s in r)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&Mc(i,r,s)},Mc=Object.create?function(r,i,s,o){o===void 0&&(o=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(r,o,c)}:function(r,i,s,o){o===void 0&&(o=s),r[o]=i[s]},qc=function(r){var i=typeof Symbol=="function"&&Symbol.iterator,s=i&&r[i],o=0;if(s)return s.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&o>=r.length&&(r=void 0),{value:r&&r[o++],done:!r}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")},M_=function(r,i){var s=typeof Symbol=="function"&&r[Symbol.iterator];if(!s)return r;var o=s.call(r),c,l=[],d;try{for(;(i===void 0||i-- >0)&&!(c=o.next()).done;)l.push(c.value)}catch(f){d={error:f}}finally{try{c&&!c.done&&(s=o.return)&&s.call(o)}finally{if(d)throw d.error}}return l},IE=function(){for(var r=[],i=0;i<arguments.length;i++)r=r.concat(M_(arguments[i]));return r},RE=function(){for(var r=0,i=0,s=arguments.length;i<s;i++)r+=arguments[i].length;for(var o=Array(r),c=0,i=0;i<s;i++)for(var l=arguments[i],d=0,f=l.length;d<f;d++,c++)o[c]=l[d];return o},DE=function(r,i,s){if(s||arguments.length===2)for(var o=0,c=i.length,l;o<c;o++)(l||!(o in i))&&(l||(l=Array.prototype.slice.call(i,0,o)),l[o]=i[o]);return r.concat(l||Array.prototype.slice.call(i))},Vi=function(r){return this instanceof Vi?(this.v=r,this):new Vi(r)},NE=function(r,i,s){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=s.apply(r,i||[]),c,l=[];return c={},d("next"),d("throw"),d("return"),c[Symbol.asyncIterator]=function(){return this},c;function d(y){o[y]&&(c[y]=function(R){return new Promise(function(P,C){l.push([y,R,P,C])>1||f(y,R)})})}function f(y,R){try{h(o[y](R))}catch(P){v(l[0][3],P)}}function h(y){y.value instanceof Vi?Promise.resolve(y.value.v).then(_,S):v(l[0][2],y)}function _(y){f("next",y)}function S(y){f("throw",y)}function v(y,R){y(R),l.shift(),l.length&&f(l[0][0],l[0][1])}},PE=function(r){var i,s;return i={},o("next"),o("throw",function(c){throw c}),o("return"),i[Symbol.iterator]=function(){return this},i;function o(c,l){i[c]=r[c]?function(d){return(s=!s)?{value:Vi(r[c](d)),done:c==="return"}:l?l(d):d}:l}},OE=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 qc=="function"?qc(r):r[Symbol.iterator](),s={},o("next"),o("throw"),o("return"),s[Symbol.asyncIterator]=function(){return this},s);function o(l){s[l]=r[l]&&function(d){return new Promise(function(f,h){d=r[l](d),c(f,h,d.done,d.value)})}}function c(l,d,f,h){Promise.resolve(h).then(function(_){l({value:_,done:f})},d)}},LE=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};qE=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)&&Mc(i,r,s);return n(i,r),i},ME=function(r){return r&&r.__esModule?r:{default:r}},zE=function(r,i,s,o){if(s==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof i=="function"?r!==i||!o:!i.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return s==="m"?o:s==="a"?o.call(r):o?o.value:i.get(r)},jE=function(r,i,s,o,c){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!c)throw new TypeError("Private accessor was defined without a setter");if(typeof i=="function"?r!==i||!c:!i.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?c.call(r,s):c?c.value=s:i.set(r,s),s},kE=function(r,i){if(i===null||typeof i!="object"&&typeof i!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof r=="function"?i===r:r.has(i)},e("__extends",SE),e("__assign",vE),e("__rest",wE),e("__decorate",bE),e("__param",EE),e("__metadata",AE),e("__awaiter",TE),e("__generator",CE),e("__exportStar",xE),e("__createBinding",Mc),e("__values",qc),e("__read",M_),e("__spread",IE),e("__spreadArrays",RE),e("__spreadArray",DE),e("__await",Vi),e("__asyncGenerator",NE),e("__asyncDelegator",PE),e("__asyncValues",OE),e("__makeTemplateObject",LE),e("__importStar",qE),e("__importDefault",ME),e("__classPrivateFieldGet",zE),e("__classPrivateFieldSet",jE),e("__classPrivateFieldIn",kE)})});var z_=m(jc=>{"use strict";Object.defineProperty(jc,"__esModule",{value:!0});jc.deserializerMiddleware=void 0;var Nk=(e,t)=>(n,r)=>async i=>{let{response:s}=await n(i);try{let o=await t(s,e);return{response:s,output:o}}catch(o){throw Object.defineProperty(o,"$response",{value:s}),o}};jc.deserializerMiddleware=Nk});var j_=m(kc=>{"use strict";Object.defineProperty(kc,"__esModule",{value:!0});kc.serializerMiddleware=void 0;var Pk=(e,t)=>(n,r)=>async i=>{let s=await t(i.input,e);return n(g(a({},i),{request:s}))};kc.serializerMiddleware=Pk});var FE=m(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});fn.getSerdePlugin=fn.serializerMiddlewareOption=fn.deserializerMiddlewareOption=void 0;var Ok=z_(),Lk=j_();fn.deserializerMiddlewareOption={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0};fn.serializerMiddlewareOption={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function qk(e,t,n){return{applyToStack:r=>{r.add((0,Ok.deserializerMiddleware)(e,n),fn.deserializerMiddlewareOption),r.add((0,Lk.serializerMiddleware)(e,t),fn.serializerMiddlewareOption)}}}fn.getSerdePlugin=qk});var $=m(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});var k_=Y();k_.__exportStar(z_(),io);k_.__exportStar(FE(),io);k_.__exportStar(j_(),io)});var GE=m(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});Ki.constructStack=void 0;var Mk=()=>{let e=[],t=[],n=new Set,r=f=>f.sort((h,_)=>UE[_.step]-UE[h.step]||BE[_.priority||"normal"]-BE[h.priority||"normal"]),i=f=>{let h=!1,_=S=>S.name&&S.name===f?(h=!0,n.delete(f),!1):!0;return e=e.filter(_),t=t.filter(_),h},s=f=>{let h=!1,_=S=>S.middleware===f?(h=!0,S.name&&n.delete(S.name),!1):!0;return e=e.filter(_),t=t.filter(_),h},o=f=>(e.forEach(h=>{f.add(h.middleware,a({},h))}),t.forEach(h=>{f.addRelativeTo(h.middleware,a({},h))}),f),c=f=>{let h=[];return f.before.forEach(_=>{_.before.length===0&&_.after.length===0?h.push(_):h.push(...c(_))}),h.push(f),f.after.reverse().forEach(_=>{_.before.length===0&&_.after.length===0?h.push(_):h.push(...c(_))}),h},l=()=>{let f=[],h=[],_={};return e.forEach(v=>{let y=g(a({},v),{before:[],after:[]});y.name&&(_[y.name]=y),f.push(y)}),t.forEach(v=>{let y=g(a({},v),{before:[],after:[]});y.name&&(_[y.name]=y),h.push(y)}),h.forEach(v=>{if(v.toMiddleware){let y=_[v.toMiddleware];if(y===void 0)throw new Error(`${v.toMiddleware} is not found when adding ${v.name||"anonymous"} middleware ${v.relation} ${v.toMiddleware}`);v.relation==="after"&&y.after.push(v),v.relation==="before"&&y.before.push(v)}}),r(f).map(c).reduce((v,y)=>(v.push(...y),v),[]).map(v=>v.middleware)},d={add:(f,h={})=>{let{name:_,override:S}=h,v=a({step:"initialize",priority:"normal",middleware:f},h);if(_){if(n.has(_)){if(!S)throw new Error(`Duplicate middleware name '${_}'`);let y=e.findIndex(P=>P.name===_),R=e[y];if(R.step!==v.step||R.priority!==v.priority)throw new Error(`"${_}" middleware with ${R.priority} priority in ${R.step} step cannot be overridden by same-name middleware with ${v.priority} priority in ${v.step} step.`);e.splice(y,1)}n.add(_)}e.push(v)},addRelativeTo:(f,h)=>{let{name:_,override:S}=h,v=a({middleware:f},h);if(_){if(n.has(_)){if(!S)throw new Error(`Duplicate middleware name '${_}'`);let y=t.findIndex(P=>P.name===_),R=t[y];if(R.toMiddleware!==v.toMiddleware||R.relation!==v.relation)throw new Error(`"${_}" middleware ${R.relation} "${R.toMiddleware}" middleware cannot be overridden by same-name middleware ${v.relation} "${v.toMiddleware}" middleware.`);t.splice(y,1)}n.add(_)}t.push(v)},clone:()=>o((0,Ki.constructStack)()),use:f=>{f.applyToStack(d)},remove:f=>typeof f=="string"?i(f):s(f),removeByTag:f=>{let h=!1,_=S=>{let{tags:v,name:y}=S;return v&&v.includes(f)?(y&&n.delete(y),h=!0,!1):!0};return e=e.filter(_),t=t.filter(_),h},concat:f=>{let h=o((0,Ki.constructStack)());return h.use(f),h},applyToStack:o,resolve:(f,h)=>{for(let _ of l().reverse())f=_(f,h);return f}};return d};Ki.constructStack=Mk;var UE={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},BE={high:3,normal:2,low:1}});var U_=m(F_=>{"use strict";Object.defineProperty(F_,"__esModule",{value:!0});var zk=Y();zk.__exportStar(GE(),F_)});var $E=m(Fc=>{"use strict";Object.defineProperty(Fc,"__esModule",{value:!0});Fc.Client=void 0;var jk=U_(),B_=class{constructor(t){this.middlewareStack=(0,jk.constructStack)(),this.config=t}send(t,n,r){let i=typeof n!="function"?n:void 0,s=typeof n=="function"?n:r,o=t.resolveMiddleware(this.middlewareStack,this.config,i);if(s)o(t).then(c=>s(null,c.output),c=>s(c)).catch(()=>{});else return o(t).then(c=>c.output)}destroy(){this.config.requestHandler.destroy&&this.config.requestHandler.destroy()}};Fc.Client=B_});var VE=m(Uc=>{"use strict";Object.defineProperty(Uc,"__esModule",{value:!0});Uc.Command=void 0;var kk=U_(),G_=class{constructor(){this.middlewareStack=(0,kk.constructStack)()}};Uc.Command=G_});var KE=m(Bc=>{"use strict";Object.defineProperty(Bc,"__esModule",{value:!0});Bc.SENSITIVE_STRING=void 0;Bc.SENSITIVE_STRING="***SensitiveInformation***"});var V_=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 Fk=e=>{switch(e){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${e}"`)}};z.parseBoolean=Fk;var Uk=e=>{if(e!=null){if(typeof e=="boolean")return e;throw new TypeError(`Expected boolean, got ${typeof e}`)}};z.expectBoolean=Uk;var Bk=e=>{if(e!=null){if(typeof e=="number")return e;throw new TypeError(`Expected number, got ${typeof e}`)}};z.expectNumber=Bk;var Gk=Math.ceil(2**127*(2-2**-23)),$k=e=>{let t=(0,z.expectNumber)(e);if(t!==void 0&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>Gk)throw new TypeError(`Expected 32-bit float, got ${e}`);return t};z.expectFloat32=$k;var Vk=e=>{if(e!=null){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}`)}};z.expectLong=Vk;z.expectInt=z.expectLong;var Kk=e=>$_(e,32);z.expectInt32=Kk;var Hk=e=>$_(e,16);z.expectShort=Hk;var Wk=e=>$_(e,8);z.expectByte=Wk;var $_=(e,t)=>{let n=(0,z.expectLong)(e);if(n!==void 0&&Yk(n,t)!==n)throw new TypeError(`Expected ${t}-bit integer, got ${e}`);return n},Yk=(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]}},Jk=(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=Jk;var Qk=e=>{if(e!=null){if(typeof e=="object"&&!Array.isArray(e))return e;throw new TypeError(`Expected object, got ${typeof e}`)}};z.expectObject=Qk;var Xk=e=>{if(e!=null){if(typeof e=="string")return e;throw new TypeError(`Expected string, got ${typeof e}`)}};z.expectString=Xk;var Zk=e=>{if(e==null)return;let t=(0,z.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};z.expectUnion=Zk;var eF=e=>typeof e=="string"?(0,z.expectNumber)(Hi(e)):(0,z.expectNumber)(e);z.strictParseDouble=eF;z.strictParseFloat=z.strictParseDouble;var tF=e=>typeof e=="string"?(0,z.expectFloat32)(Hi(e)):(0,z.expectFloat32)(e);z.strictParseFloat32=tF;var nF=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,Hi=e=>{let t=e.match(nF);if(t===null||t[0].length!==e.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(e)},rF=e=>typeof e=="string"?HE(e):(0,z.expectNumber)(e);z.limitedParseDouble=rF;z.handleFloat=z.limitedParseDouble;z.limitedParseFloat=z.limitedParseDouble;var iF=e=>typeof e=="string"?HE(e):(0,z.expectFloat32)(e);z.limitedParseFloat32=iF;var HE=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}`)}},sF=e=>typeof e=="string"?(0,z.expectLong)(Hi(e)):(0,z.expectLong)(e);z.strictParseLong=sF;z.strictParseInt=z.strictParseLong;var oF=e=>typeof e=="string"?(0,z.expectInt32)(Hi(e)):(0,z.expectInt32)(e);z.strictParseInt32=oF;var aF=e=>typeof e=="string"?(0,z.expectShort)(Hi(e)):(0,z.expectShort)(e);z.strictParseShort=aF;var cF=e=>typeof e=="string"?(0,z.expectByte)(Hi(e)):(0,z.expectByte)(e);z.strictParseByte=cF});var WE=m(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.parseEpochTimestamp=mn.parseRfc7231DateTime=mn.parseRfc3339DateTime=mn.dateToUtcString=void 0;var ti=V_(),lF=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],H_=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function uF(e){let t=e.getUTCFullYear(),n=e.getUTCMonth(),r=e.getUTCDay(),i=e.getUTCDate(),s=e.getUTCHours(),o=e.getUTCMinutes(),c=e.getUTCSeconds(),l=i<10?`0${i}`:`${i}`,d=s<10?`0${s}`:`${s}`,f=o<10?`0${o}`:`${o}`,h=c<10?`0${c}`:`${c}`;return`${lF[r]}, ${l} ${H_[n]} ${t} ${d}:${f}:${h} GMT`}mn.dateToUtcString=uF;var dF=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),fF=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let t=dF.exec(e);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");let[n,r,i,s,o,c,l,d]=t,f=(0,ti.strictParseShort)(so(r)),h=Sr(i,"month",1,12),_=Sr(s,"day",1,31);return Gc(f,h,_,{hours:o,minutes:c,seconds:l,fractionalMilliseconds:d})};mn.parseRfc3339DateTime=fF;var mF=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$/),pF=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$/),hF=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),_F=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let t=mF.exec(e);if(t){let[n,r,i,s,o,c,l,d]=t;return Gc((0,ti.strictParseShort)(so(s)),K_(i),Sr(r,"day",1,31),{hours:o,minutes:c,seconds:l,fractionalMilliseconds:d})}if(t=pF.exec(e),t){let[n,r,i,s,o,c,l,d]=t;return vF(Gc(gF(s),K_(i),Sr(r,"day",1,31),{hours:o,minutes:c,seconds:l,fractionalMilliseconds:d}))}if(t=hF.exec(e),t){let[n,r,i,s,o,c,l,d]=t;return Gc((0,ti.strictParseShort)(so(d)),K_(r),Sr(i.trimLeft(),"day",1,31),{hours:s,minutes:o,seconds:c,fractionalMilliseconds:l})}throw new TypeError("Invalid RFC-7231 date-time value")};mn.parseRfc7231DateTime=_F;var yF=e=>{if(e==null)return;let t;if(typeof e=="number")t=e;else if(typeof e=="string")t=(0,ti.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))};mn.parseEpochTimestamp=yF;var Gc=(e,t,n,r)=>{let i=t-1;return bF(e,i,n),new Date(Date.UTC(e,i,n,Sr(r.hours,"hour",0,23),Sr(r.minutes,"minute",0,59),Sr(r.seconds,"seconds",0,60),AF(r.fractionalMilliseconds)))},gF=e=>{let t=new Date().getUTCFullYear(),n=Math.floor(t/100)*100+(0,ti.strictParseShort)(so(e));return n<t?n+100:n},SF=50*365*24*60*60*1e3,vF=e=>e.getTime()-new Date().getTime()>SF?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,K_=e=>{let t=H_.indexOf(e);if(t<0)throw new TypeError(`Invalid month: ${e}`);return t+1},wF=[31,28,31,30,31,30,31,31,30,31,30,31],bF=(e,t,n)=>{let r=wF[t];if(t===1&&EF(e)&&(r=29),n>r)throw new TypeError(`Invalid day for ${H_[t]} in ${e}: ${n}`)},EF=e=>e%4===0&&(e%100!==0||e%400===0),Sr=(e,t,n,r)=>{let i=(0,ti.strictParseByte)(so(e));if(i<n||i>r)throw new TypeError(`${t} must be between ${n} and ${r}, inclusive`);return i},AF=e=>e==null?0:(0,ti.strictParseFloat32)("0."+e)*1e3,so=e=>{let t=0;for(;t<e.length-1&&e.charAt(t)==="0";)t++;return t===0?e:e.slice(t)}});var YE=m($c=>{"use strict";Object.defineProperty($c,"__esModule",{value:!0});$c.loadConfigsForDefaultMode=void 0;var TF=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{}}};$c.loadConfigsForDefaultMode=TF});var QE=m(Vc=>{"use strict";Object.defineProperty(Vc,"__esModule",{value:!0});Vc.emitWarningIfUnsupportedVersion=void 0;var JE=!1,CF=e=>{e&&!JE&&parseInt(e.substring(1,e.indexOf(".")))<12&&(JE=!0,process.emitWarning(`The AWS SDK for JavaScript (v3) will
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
+ `+a+`
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"))};Vc.emitWarningIfUnsupportedVersion=CF});var XE=m(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});Wi.decorateServiceException=Wi.ServiceException=void 0;var oo=class extends Error{constructor(t){super(t.message),Object.setPrototypeOf(this,oo.prototype),this.name=t.name,this.$fault=t.$fault,this.$metadata=t.$metadata}};Wi.ServiceException=oo;var xF=(e,t={})=>{Object.entries(t).filter(([,r])=>r!==void 0).forEach(([r,i])=>{(e[r]==null||e[r]==="")&&(e[r]=i)});let n=e.message||e.Message||"UnknownError";return e.message=n,delete e.Message,e};Wi.decorateServiceException=xF});var ZE=m(Kc=>{"use strict";Object.defineProperty(Kc,"__esModule",{value:!0});Kc.extendedEncodeURIComponent=void 0;function IF(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}Kc.extendedEncodeURIComponent=IF});var eA=m(Hc=>{"use strict";Object.defineProperty(Hc,"__esModule",{value:!0});Hc.getArrayIfSingleItem=void 0;var RF=e=>Array.isArray(e)?e:[e];Hc.getArrayIfSingleItem=RF});var tA=m(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.getValueFromTextNode=void 0;var DF=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]=(0,ao.getValueFromTextNode)(e[n]));return e};ao.getValueFromTextNode=DF});var nA=m(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.LazyJsonString=pn.StringWrapper=void 0;var NF=function(){let e=Object.getPrototypeOf(this).constructor,t=Function.bind.apply(String,[null,...arguments]),n=new t;return Object.setPrototypeOf(n,e.prototype),n};pn.StringWrapper=NF;pn.StringWrapper.prototype=Object.create(String.prototype,{constructor:{value:pn.StringWrapper,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(pn.StringWrapper,String);var ni=class extends pn.StringWrapper{deserializeJSON(){return JSON.parse(super.toString())}toJSON(){return super.toString()}static fromObject(t){return t instanceof ni?t:t instanceof String||typeof t=="string"?new ni(t):new ni(JSON.stringify(t))}};pn.LazyJsonString=ni});var rA=m(Wc=>{"use strict";Object.defineProperty(Wc,"__esModule",{value:!0});Wc.serializeFloat=void 0;var PF=e=>{if(e!==e)return"NaN";switch(e){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return e}};Wc.serializeFloat=PF});var iA=m(Yc=>{"use strict";Object.defineProperty(Yc,"__esModule",{value:!0});Yc.splitEvery=void 0;function OF(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 o=0;o<r.length;o++)s===""?s=r[o]:s+=t+r[o],(o+1)%n===0&&(i.push(s),s="");return s!==""&&i.push(s),i}Yc.splitEvery=OF});var q=m(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});var wt=Y();wt.__exportStar($E(),ut);wt.__exportStar(VE(),ut);wt.__exportStar(KE(),ut);wt.__exportStar(WE(),ut);wt.__exportStar(YE(),ut);wt.__exportStar(QE(),ut);wt.__exportStar(XE(),ut);wt.__exportStar(ZE(),ut);wt.__exportStar(eA(),ut);wt.__exportStar(tA(),ut);wt.__exportStar(nA(),ut);wt.__exportStar(V_(),ut);wt.__exportStar(rA(),ut);wt.__exportStar(iA(),ut)});var Qc=m(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});Jc.DynamoDBServiceException=void 0;var LF=q(),co=class extends LF.ServiceException{constructor(t){super(t),Object.setPrototypeOf(this,co.prototype)}};Jc.DynamoDBServiceException=co});var J=m(u=>{"use strict";Object.defineProperty(u,"__esModule",{value:!0});u.ProvisionedThroughputOverride=u.CreateGlobalTableInput=u.Replica=u.CreateGlobalSecondaryIndexAction=u.TableNotFoundException=u.TableInUseException=u.LimitExceededException=u.CreateBackupOutput=u.CreateBackupInput=u.ContributorInsightsSummary=u.ContinuousBackupsUnavailableException=u.ContinuousBackupsDescription=u.PointInTimeRecoveryDescription=u.ConditionalCheckFailedException=u.BillingModeSummary=u.ItemCollectionSizeLimitExceededException=u.ResourceNotFoundException=u.ProvisionedThroughputExceededException=u.InvalidEndpointException=u.RequestLimitExceeded=u.InternalServerError=u.BatchStatementError=u.BatchStatementErrorCodeEnum=u.ConsumedCapacity=u.Capacity=u.BackupTypeFilter=u.BackupSummary=u.BackupNotFoundException=u.BackupInUseException=u.BackupDescription=u.SourceTableFeatureDetails=u.TimeToLiveDescription=u.StreamSpecification=u.SSEDescription=u.LocalSecondaryIndexInfo=u.GlobalSecondaryIndexInfo=u.Projection=u.SourceTableDetails=u.ProvisionedThroughput=u.KeySchemaElement=u.BackupDetails=u.BackupType=u.AutoScalingSettingsUpdate=u.AutoScalingSettingsDescription=u.AutoScalingPolicyUpdate=u.AutoScalingTargetTrackingScalingPolicyConfigurationUpdate=u.AutoScalingPolicyDescription=u.AutoScalingTargetTrackingScalingPolicyConfigurationDescription=u.AttributeDefinition=u.ArchivalSummary=void 0;u.DescribeGlobalTableSettingsInput=u.GlobalTableNotFoundException=u.DescribeGlobalTableOutput=u.DescribeGlobalTableInput=u.ExportNotFoundException=u.DescribeExportOutput=u.ExportDescription=u.ExportStatus=u.ExportFormat=u.DescribeExportInput=u.DescribeEndpointsResponse=u.Endpoint=u.DescribeEndpointsRequest=u.DescribeContributorInsightsOutput=u.FailureException=u.DescribeContributorInsightsInput=u.DescribeContinuousBackupsOutput=u.DescribeContinuousBackupsInput=u.DescribeBackupOutput=u.DescribeBackupInput=u.DeleteTableOutput=u.DeleteTableInput=u.DeleteReplicationGroupMemberAction=u.DeleteReplicaAction=u.TransactionConflictException=u.DeleteGlobalSecondaryIndexAction=u.DeleteBackupOutput=u.DeleteBackupInput=u.ResourceInUseException=u.CreateTableOutput=u.TableDescription=u.RestoreSummary=u.LocalSecondaryIndexDescription=u.GlobalSecondaryIndexDescription=u.ProvisionedThroughputDescription=u.CreateTableInput=u.Tag=u.SSESpecification=u.LocalSecondaryIndex=u.GlobalSecondaryIndex=u.CreateReplicationGroupMemberAction=u.ReplicaGlobalSecondaryIndex=u.CreateReplicaAction=u.GlobalTableAlreadyExistsException=u.CreateGlobalTableOutput=u.GlobalTableDescription=u.ReplicaDescription=u.TableClassSummary=u.TableClass=u.ReplicaGlobalSecondaryIndexDescription=void 0;u.PointInTimeRecoverySpecification=u.UntagResourceInput=u.TagResourceInput=u.RestoreTableToPointInTimeOutput=u.RestoreTableToPointInTimeInput=u.InvalidRestoreTimeException=u.TableAlreadyExistsException=u.RestoreTableFromBackupOutput=u.RestoreTableFromBackupInput=u.ListTagsOfResourceOutput=u.ListTagsOfResourceInput=u.ListTablesOutput=u.ListTablesInput=u.ListGlobalTablesOutput=u.GlobalTable=u.ListGlobalTablesInput=u.ListExportsOutput=u.ExportSummary=u.ListExportsInput=u.ListContributorInsightsOutput=u.ListContributorInsightsInput=u.ListBackupsOutput=u.ListBackupsInput=u.PointInTimeRecoveryUnavailableException=u.InvalidExportTimeException=u.ExportTableToPointInTimeOutput=u.ExportTableToPointInTimeInput=u.ExportConflictException=u.TransactionInProgressException=u.IdempotentParameterMismatchException=u.DuplicateItemException=u.KinesisStreamingDestinationOutput=u.KinesisStreamingDestinationInput=u.DescribeTimeToLiveOutput=u.DescribeTimeToLiveInput=u.DescribeTableReplicaAutoScalingOutput=u.TableAutoScalingDescription=u.ReplicaAutoScalingDescription=u.ReplicaGlobalSecondaryIndexAutoScalingDescription=u.DescribeTableReplicaAutoScalingInput=u.DescribeTableOutput=u.DescribeTableInput=u.DescribeLimitsOutput=u.DescribeLimitsInput=u.DescribeKinesisStreamingDestinationOutput=u.KinesisDataStreamDestination=u.DescribeKinesisStreamingDestinationInput=u.DescribeGlobalTableSettingsOutput=u.ReplicaSettingsDescription=u.ReplicaGlobalSecondaryIndexSettingsDescription=void 0;u.ExecuteTransactionOutput=u.ExecuteTransactionInput=u.BatchExecuteStatementOutput=u.BatchExecuteStatementInput=u.TransactGetItem=u.KeysAndAttributes=u.PutRequest=u.ParameterizedStatement=u.ItemResponse=u.ItemCollectionMetrics=u.GetItemOutput=u.GetItemInput=u.Get=u.ExecuteStatementInput=u.DeleteRequest=u.Condition=u.CancellationReason=u.BatchStatementResponse=u.BatchStatementRequest=u.AttributeValueUpdate=u.AttributeValue=u.UpdateTimeToLiveOutput=u.UpdateTimeToLiveInput=u.TimeToLiveSpecification=u.UpdateTableReplicaAutoScalingOutput=u.UpdateTableReplicaAutoScalingInput=u.ReplicaAutoScalingUpdate=u.ReplicaGlobalSecondaryIndexAutoScalingUpdate=u.GlobalSecondaryIndexAutoScalingUpdate=u.UpdateTableOutput=u.UpdateTableInput=u.ReplicationGroupUpdate=u.UpdateReplicationGroupMemberAction=u.GlobalSecondaryIndexUpdate=u.UpdateGlobalSecondaryIndexAction=u.UpdateGlobalTableSettingsOutput=u.UpdateGlobalTableSettingsInput=u.ReplicaSettingsUpdate=u.ReplicaGlobalSecondaryIndexSettingsUpdate=u.GlobalTableGlobalSecondaryIndexSettingsUpdate=u.IndexNotFoundException=u.UpdateGlobalTableOutput=u.UpdateGlobalTableInput=u.ReplicaUpdate=u.ReplicaNotFoundException=u.ReplicaAlreadyExistsException=u.UpdateContributorInsightsOutput=u.UpdateContributorInsightsInput=u.UpdateContinuousBackupsOutput=u.UpdateContinuousBackupsInput=void 0;u.TransactWriteItemsInput=u.TransactWriteItem=u.UpdateItemInput=u.BatchWriteItemOutput=u.QueryInput=u.PutItemInput=u.DeleteItemInput=u.BatchWriteItemInput=u.ScanInput=u.BatchGetItemOutput=u.WriteRequest=u.UpdateItemOutput=u.ScanOutput=u.QueryOutput=u.PutItemOutput=u.ExecuteStatementOutput=u.DeleteItemOutput=u.Update=u.Put=u.Delete=u.ConditionCheck=u.TransactWriteItemsOutput=u.TransactGetItemsInput=u.ExpectedAttributeValue=u.BatchGetItemInput=u.TransactionCanceledException=u.TransactGetItemsOutput=void 0;var be=Qc(),qF;(function(e){e.filterSensitiveLog=t=>a({},t)})(qF=u.ArchivalSummary||(u.ArchivalSummary={}));var MF;(function(e){e.filterSensitiveLog=t=>a({},t)})(MF=u.AttributeDefinition||(u.AttributeDefinition={}));var zF;(function(e){e.filterSensitiveLog=t=>a({},t)})(zF=u.AutoScalingTargetTrackingScalingPolicyConfigurationDescription||(u.AutoScalingTargetTrackingScalingPolicyConfigurationDescription={}));var jF;(function(e){e.filterSensitiveLog=t=>a({},t)})(jF=u.AutoScalingPolicyDescription||(u.AutoScalingPolicyDescription={}));var kF;(function(e){e.filterSensitiveLog=t=>a({},t)})(kF=u.AutoScalingTargetTrackingScalingPolicyConfigurationUpdate||(u.AutoScalingTargetTrackingScalingPolicyConfigurationUpdate={}));var FF;(function(e){e.filterSensitiveLog=t=>a({},t)})(FF=u.AutoScalingPolicyUpdate||(u.AutoScalingPolicyUpdate={}));var UF;(function(e){e.filterSensitiveLog=t=>a({},t)})(UF=u.AutoScalingSettingsDescription||(u.AutoScalingSettingsDescription={}));var BF;(function(e){e.filterSensitiveLog=t=>a({},t)})(BF=u.AutoScalingSettingsUpdate||(u.AutoScalingSettingsUpdate={}));var GF;(function(e){e.AWS_BACKUP="AWS_BACKUP",e.SYSTEM="SYSTEM",e.USER="USER"})(GF=u.BackupType||(u.BackupType={}));var $F;(function(e){e.filterSensitiveLog=t=>a({},t)})($F=u.BackupDetails||(u.BackupDetails={}));var VF;(function(e){e.filterSensitiveLog=t=>a({},t)})(VF=u.KeySchemaElement||(u.KeySchemaElement={}));var KF;(function(e){e.filterSensitiveLog=t=>a({},t)})(KF=u.ProvisionedThroughput||(u.ProvisionedThroughput={}));var HF;(function(e){e.filterSensitiveLog=t=>a({},t)})(HF=u.SourceTableDetails||(u.SourceTableDetails={}));var WF;(function(e){e.filterSensitiveLog=t=>a({},t)})(WF=u.Projection||(u.Projection={}));var YF;(function(e){e.filterSensitiveLog=t=>a({},t)})(YF=u.GlobalSecondaryIndexInfo||(u.GlobalSecondaryIndexInfo={}));var JF;(function(e){e.filterSensitiveLog=t=>a({},t)})(JF=u.LocalSecondaryIndexInfo||(u.LocalSecondaryIndexInfo={}));var QF;(function(e){e.filterSensitiveLog=t=>a({},t)})(QF=u.SSEDescription||(u.SSEDescription={}));var XF;(function(e){e.filterSensitiveLog=t=>a({},t)})(XF=u.StreamSpecification||(u.StreamSpecification={}));var ZF;(function(e){e.filterSensitiveLog=t=>a({},t)})(ZF=u.TimeToLiveDescription||(u.TimeToLiveDescription={}));var eU;(function(e){e.filterSensitiveLog=t=>a({},t)})(eU=u.SourceTableFeatureDetails||(u.SourceTableFeatureDetails={}));var tU;(function(e){e.filterSensitiveLog=t=>a({},t)})(tU=u.BackupDescription||(u.BackupDescription={}));var lo=class extends be.DynamoDBServiceException{constructor(t){super(a({name:"BackupInUseException",$fault:"client"},t)),this.name="BackupInUseException",this.$fault="client",Object.setPrototypeOf(this,lo.prototype)}};u.BackupInUseException=lo;var uo=class extends be.DynamoDBServiceException{constructor(t){super(a({name:"BackupNotFoundException",$fault:"client"},t)),this.name="BackupNotFoundException",this.$fault="client",Object.setPrototypeOf(this,uo.prototype)}};u.BackupNotFoundException=uo;var nU;(function(e){e.filterSensitiveLog=t=>a({},t)})(nU=u.BackupSummary||(u.BackupSummary={}));var rU;(function(e){e.ALL="ALL",e.AWS_BACKUP="AWS_BACKUP",e.SYSTEM="SYSTEM",e.USER="USER"})(rU=u.BackupTypeFilter||(u.BackupTypeFilter={}));var iU;(function(e){e.filterSensitiveLog=t=>a({},t)})(iU=u.Capacity||(u.Capacity={}));var sU;(function(e){e.filterSensitiveLog=t=>a({},t)})(sU=u.ConsumedCapacity||(u.ConsumedCapacity={}));var oU;(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"})(oU=u.BatchStatementErrorCodeEnum||(u.BatchStatementErrorCodeEnum={}));var aU;(function(e){e.filterSensitiveLog=t=>a({},t)})(aU=u.BatchStatementError||(u.BatchStatementError={}));var fo=class extends be.DynamoDBServiceException{constructor(t){super(a({name:"InternalServerError",$fault:"server"},t)),this.name="InternalServerError",this.$fault="server",Object.setPrototypeOf(this,fo.prototype)}};u.InternalServerError=fo;var mo=class extends be.DynamoDBServiceException{constructor(t){super(a({name:"RequestLimitExceeded",$fault:"client"},t)),this.name="RequestLimitExceeded",this.$fault="client",Object.setPrototypeOf(this,mo.prototype)}};u.RequestLimitExceeded=mo;var po=class extends be.DynamoDBServiceException{constructor(t){super(a({name:"InvalidEndpointException",$fault:"client"},t)),this.name="InvalidEndpointException",this.$fault="client",Object.setPrototypeOf(this,po.prototype),this.Message=t.Message}};u.InvalidEndpointException=po;var ho=class extends be.DynamoDBServiceException{constructor(t){super(a({name:"ProvisionedThroughputExceededException",$fault:"client"},t)),this.name="ProvisionedThroughputExceededException",this.$fault="client",Object.setPrototypeOf(this,ho.prototype)}};u.ProvisionedThroughputExceededException=ho;var _o=class extends be.DynamoDBServiceException{constructor(t){super(a({name:"ResourceNotFoundException",$fault:"client"},t)),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,_o.prototype)}};u.ResourceNotFoundException=_o;var yo=class extends be.DynamoDBServiceException{constructor(t){super(a({name:"ItemCollectionSizeLimitExceededException",$fault:"client"},t)),this.name="ItemCollectionSizeLimitExceededException",this.$fault="client",Object.setPrototypeOf(this,yo.prototype)}};u.ItemCollectionSizeLimitExceededException=yo;var cU;(function(e){e.filterSensitiveLog=t=>a({},t)})(cU=u.BillingModeSummary||(u.BillingModeSummary={}));var go=class extends be.DynamoDBServiceException{constructor(t){super(a({name:"ConditionalCheckFailedException",$fault:"client"},t)),this.name="ConditionalCheckFailedException",this.$fault="client",Object.setPrototypeOf(this,go.prototype)}};u.ConditionalCheckFailedException=go;var lU;(function(e){e.filterSensitiveLog=t=>a({},t)})(lU=u.PointInTimeRecoveryDescription||(u.PointInTimeRecoveryDescription={}));var uU;(function(e){e.filterSensitiveLog=t=>a({},t)})(uU=u.ContinuousBackupsDescription||(u.ContinuousBackupsDescription={}));var So=class extends be.DynamoDBServiceException{constructor(t){super(a({name:"ContinuousBackupsUnavailableException",$fault:"client"},t)),this.name="ContinuousBackupsUnavailableException",this.$fault="client",Object.setPrototypeOf(this,So.prototype)}};u.ContinuousBackupsUnavailableException=So;var dU;(function(e){e.filterSensitiveLog=t=>a({},t)})(dU=u.ContributorInsightsSummary||(u.ContributorInsightsSummary={}));var fU;(function(e){e.filterSensitiveLog=t=>a({},t)})(fU=u.CreateBackupInput||(u.CreateBackupInput={}));var mU;(function(e){e.filterSensitiveLog=t=>a({},t)})(mU=u.CreateBackupOutput||(u.CreateBackupOutput={}));var vo=class extends be.DynamoDBServiceException{constructor(t){super(a({name:"LimitExceededException",$fault:"client"},t)),this.name="LimitExceededException",this.$fault="client",Object.setPrototypeOf(this,vo.prototype)}};u.LimitExceededException=vo;var wo=class extends be.DynamoDBServiceException{constructor(t){super(a({name:"TableInUseException",$fault:"client"},t)),this.name="TableInUseException",this.$fault="client",Object.setPrototypeOf(this,wo.prototype)}};u.TableInUseException=wo;var bo=class extends be.DynamoDBServiceException{constructor(t){super(a({name:"TableNotFoundException",$fault:"client"},t)),this.name="TableNotFoundException",this.$fault="client",Object.setPrototypeOf(this,bo.prototype)}};u.TableNotFoundException=bo;var pU;(function(e){e.filterSensitiveLog=t=>a({},t)})(pU=u.CreateGlobalSecondaryIndexAction||(u.CreateGlobalSecondaryIndexAction={}));var hU;(function(e){e.filterSensitiveLog=t=>a({},t)})(hU=u.Replica||(u.Replica={}));var _U;(function(e){e.filterSensitiveLog=t=>a({},t)})(_U=u.CreateGlobalTableInput||(u.CreateGlobalTableInput={}));var yU;(function(e){e.filterSensitiveLog=t=>a({},t)})(yU=u.ProvisionedThroughputOverride||(u.ProvisionedThroughputOverride={}));var gU;(function(e){e.filterSensitiveLog=t=>a({},t)})(gU=u.ReplicaGlobalSecondaryIndexDescription||(u.ReplicaGlobalSecondaryIndexDescription={}));var SU;(function(e){e.STANDARD="STANDARD",e.STANDARD_INFREQUENT_ACCESS="STANDARD_INFREQUENT_ACCESS"})(SU=u.TableClass||(u.TableClass={}));var vU;(function(e){e.filterSensitiveLog=t=>a({},t)})(vU=u.TableClassSummary||(u.TableClassSummary={}));var wU;(function(e){e.filterSensitiveLog=t=>a({},t)})(wU=u.ReplicaDescription||(u.ReplicaDescription={}));var bU;(function(e){e.filterSensitiveLog=t=>a({},t)})(bU=u.GlobalTableDescription||(u.GlobalTableDescription={}));var EU;(function(e){e.filterSensitiveLog=t=>a({},t)})(EU=u.CreateGlobalTableOutput||(u.CreateGlobalTableOutput={}));var Eo=class extends be.DynamoDBServiceException{constructor(t){super(a({name:"GlobalTableAlreadyExistsException",$fault:"client"},t)),this.name="GlobalTableAlreadyExistsException",this.$fault="client",Object.setPrototypeOf(this,Eo.prototype)}};u.GlobalTableAlreadyExistsException=Eo;var AU;(function(e){e.filterSensitiveLog=t=>a({},t)})(AU=u.CreateReplicaAction||(u.CreateReplicaAction={}));var TU;(function(e){e.filterSensitiveLog=t=>a({},t)})(TU=u.ReplicaGlobalSecondaryIndex||(u.ReplicaGlobalSecondaryIndex={}));var CU;(function(e){e.filterSensitiveLog=t=>a({},t)})(CU=u.CreateReplicationGroupMemberAction||(u.CreateReplicationGroupMemberAction={}));var xU;(function(e){e.filterSensitiveLog=t=>a({},t)})(xU=u.GlobalSecondaryIndex||(u.GlobalSecondaryIndex={}));var IU;(function(e){e.filterSensitiveLog=t=>a({},t)})(IU=u.LocalSecondaryIndex||(u.LocalSecondaryIndex={}));var RU;(function(e){e.filterSensitiveLog=t=>a({},t)})(RU=u.SSESpecification||(u.SSESpecification={}));var DU;(function(e){e.filterSensitiveLog=t=>a({},t)})(DU=u.Tag||(u.Tag={}));var NU;(function(e){e.filterSensitiveLog=t=>a({},t)})(NU=u.CreateTableInput||(u.CreateTableInput={}));var PU;(function(e){e.filterSensitiveLog=t=>a({},t)})(PU=u.ProvisionedThroughputDescription||(u.ProvisionedThroughputDescription={}));var OU;(function(e){e.filterSensitiveLog=t=>a({},t)})(OU=u.GlobalSecondaryIndexDescription||(u.GlobalSecondaryIndexDescription={}));var LU;(function(e){e.filterSensitiveLog=t=>a({},t)})(LU=u.LocalSecondaryIndexDescription||(u.LocalSecondaryIndexDescription={}));var qU;(function(e){e.filterSensitiveLog=t=>a({},t)})(qU=u.RestoreSummary||(u.RestoreSummary={}));var MU;(function(e){e.filterSensitiveLog=t=>a({},t)})(MU=u.TableDescription||(u.TableDescription={}));var zU;(function(e){e.filterSensitiveLog=t=>a({},t)})(zU=u.CreateTableOutput||(u.CreateTableOutput={}));var Ao=class extends be.DynamoDBServiceException{constructor(t){super(a({name:"ResourceInUseException",$fault:"client"},t)),this.name="ResourceInUseException",this.$fault="client",Object.setPrototypeOf(this,Ao.prototype)}};u.ResourceInUseException=Ao;var jU;(function(e){e.filterSensitiveLog=t=>a({},t)})(jU=u.DeleteBackupInput||(u.DeleteBackupInput={}));var kU;(function(e){e.filterSensitiveLog=t=>a({},t)})(kU=u.DeleteBackupOutput||(u.DeleteBackupOutput={}));var FU;(function(e){e.filterSensitiveLog=t=>a({},t)})(FU=u.DeleteGlobalSecondaryIndexAction||(u.DeleteGlobalSecondaryIndexAction={}));var To=class extends be.DynamoDBServiceException{constructor(t){super(a({name:"TransactionConflictException",$fault:"client"},t)),this.name="TransactionConflictException",this.$fault="client",Object.setPrototypeOf(this,To.prototype)}};u.TransactionConflictException=To;var UU;(function(e){e.filterSensitiveLog=t=>a({},t)})(UU=u.DeleteReplicaAction||(u.DeleteReplicaAction={}));var BU;(function(e){e.filterSensitiveLog=t=>a({},t)})(BU=u.DeleteReplicationGroupMemberAction||(u.DeleteReplicationGroupMemberAction={}));var GU;(function(e){e.filterSensitiveLog=t=>a({},t)})(GU=u.DeleteTableInput||(u.DeleteTableInput={}));var $U;(function(e){e.filterSensitiveLog=t=>a({},t)})($U=u.DeleteTableOutput||(u.DeleteTableOutput={}));var VU;(function(e){e.filterSensitiveLog=t=>a({},t)})(VU=u.DescribeBackupInput||(u.DescribeBackupInput={}));var KU;(function(e){e.filterSensitiveLog=t=>a({},t)})(KU=u.DescribeBackupOutput||(u.DescribeBackupOutput={}));var HU;(function(e){e.filterSensitiveLog=t=>a({},t)})(HU=u.DescribeContinuousBackupsInput||(u.DescribeContinuousBackupsInput={}));var WU;(function(e){e.filterSensitiveLog=t=>a({},t)})(WU=u.DescribeContinuousBackupsOutput||(u.DescribeContinuousBackupsOutput={}));var YU;(function(e){e.filterSensitiveLog=t=>a({},t)})(YU=u.DescribeContributorInsightsInput||(u.DescribeContributorInsightsInput={}));var JU;(function(e){e.filterSensitiveLog=t=>a({},t)})(JU=u.FailureException||(u.FailureException={}));var QU;(function(e){e.filterSensitiveLog=t=>a({},t)})(QU=u.DescribeContributorInsightsOutput||(u.DescribeContributorInsightsOutput={}));var XU;(function(e){e.filterSensitiveLog=t=>a({},t)})(XU=u.DescribeEndpointsRequest||(u.DescribeEndpointsRequest={}));var ZU;(function(e){e.filterSensitiveLog=t=>a({},t)})(ZU=u.Endpoint||(u.Endpoint={}));var eB;(function(e){e.filterSensitiveLog=t=>a({},t)})(eB=u.DescribeEndpointsResponse||(u.DescribeEndpointsResponse={}));var tB;(function(e){e.filterSensitiveLog=t=>a({},t)})(tB=u.DescribeExportInput||(u.DescribeExportInput={}));var nB;(function(e){e.DYNAMODB_JSON="DYNAMODB_JSON",e.ION="ION"})(nB=u.ExportFormat||(u.ExportFormat={}));var rB;(function(e){e.COMPLETED="COMPLETED",e.FAILED="FAILED",e.IN_PROGRESS="IN_PROGRESS"})(rB=u.ExportStatus||(u.ExportStatus={}));var iB;(function(e){e.filterSensitiveLog=t=>a({},t)})(iB=u.ExportDescription||(u.ExportDescription={}));var sB;(function(e){e.filterSensitiveLog=t=>a({},t)})(sB=u.DescribeExportOutput||(u.DescribeExportOutput={}));var Co=class extends be.DynamoDBServiceException{constructor(t){super(a({name:"ExportNotFoundException",$fault:"client"},t)),this.name="ExportNotFoundException",this.$fault="client",Object.setPrototypeOf(this,Co.prototype)}};u.ExportNotFoundException=Co;var oB;(function(e){e.filterSensitiveLog=t=>a({},t)})(oB=u.DescribeGlobalTableInput||(u.DescribeGlobalTableInput={}));var aB;(function(e){e.filterSensitiveLog=t=>a({},t)})(aB=u.DescribeGlobalTableOutput||(u.DescribeGlobalTableOutput={}));var xo=class extends be.DynamoDBServiceException{constructor(t){super(a({name:"GlobalTableNotFoundException",$fault:"client"},t)),this.name="GlobalTableNotFoundException",this.$fault="client",Object.setPrototypeOf(this,xo.prototype)}};u.GlobalTableNotFoundException=xo;var cB;(function(e){e.filterSensitiveLog=t=>a({},t)})(cB=u.DescribeGlobalTableSettingsInput||(u.DescribeGlobalTableSettingsInput={}));var lB;(function(e){e.filterSensitiveLog=t=>a({},t)})(lB=u.ReplicaGlobalSecondaryIndexSettingsDescription||(u.ReplicaGlobalSecondaryIndexSettingsDescription={}));var uB;(function(e){e.filterSensitiveLog=t=>a({},t)})(uB=u.ReplicaSettingsDescription||(u.ReplicaSettingsDescription={}));var dB;(function(e){e.filterSensitiveLog=t=>a({},t)})(dB=u.DescribeGlobalTableSettingsOutput||(u.DescribeGlobalTableSettingsOutput={}));var fB;(function(e){e.filterSensitiveLog=t=>a({},t)})(fB=u.DescribeKinesisStreamingDestinationInput||(u.DescribeKinesisStreamingDestinationInput={}));var mB;(function(e){e.filterSensitiveLog=t=>a({},t)})(mB=u.KinesisDataStreamDestination||(u.KinesisDataStreamDestination={}));var pB;(function(e){e.filterSensitiveLog=t=>a({},t)})(pB=u.DescribeKinesisStreamingDestinationOutput||(u.DescribeKinesisStreamingDestinationOutput={}));var hB;(function(e){e.filterSensitiveLog=t=>a({},t)})(hB=u.DescribeLimitsInput||(u.DescribeLimitsInput={}));var _B;(function(e){e.filterSensitiveLog=t=>a({},t)})(_B=u.DescribeLimitsOutput||(u.DescribeLimitsOutput={}));var yB;(function(e){e.filterSensitiveLog=t=>a({},t)})(yB=u.DescribeTableInput||(u.DescribeTableInput={}));var gB;(function(e){e.filterSensitiveLog=t=>a({},t)})(gB=u.DescribeTableOutput||(u.DescribeTableOutput={}));var SB;(function(e){e.filterSensitiveLog=t=>a({},t)})(SB=u.DescribeTableReplicaAutoScalingInput||(u.DescribeTableReplicaAutoScalingInput={}));var vB;(function(e){e.filterSensitiveLog=t=>a({},t)})(vB=u.ReplicaGlobalSecondaryIndexAutoScalingDescription||(u.ReplicaGlobalSecondaryIndexAutoScalingDescription={}));var wB;(function(e){e.filterSensitiveLog=t=>a({},t)})(wB=u.ReplicaAutoScalingDescription||(u.ReplicaAutoScalingDescription={}));var bB;(function(e){e.filterSensitiveLog=t=>a({},t)})(bB=u.TableAutoScalingDescription||(u.TableAutoScalingDescription={}));var EB;(function(e){e.filterSensitiveLog=t=>a({},t)})(EB=u.DescribeTableReplicaAutoScalingOutput||(u.DescribeTableReplicaAutoScalingOutput={}));var AB;(function(e){e.filterSensitiveLog=t=>a({},t)})(AB=u.DescribeTimeToLiveInput||(u.DescribeTimeToLiveInput={}));var TB;(function(e){e.filterSensitiveLog=t=>a({},t)})(TB=u.DescribeTimeToLiveOutput||(u.DescribeTimeToLiveOutput={}));var CB;(function(e){e.filterSensitiveLog=t=>a({},t)})(CB=u.KinesisStreamingDestinationInput||(u.KinesisStreamingDestinationInput={}));var xB;(function(e){e.filterSensitiveLog=t=>a({},t)})(xB=u.KinesisStreamingDestinationOutput||(u.KinesisStreamingDestinationOutput={}));var Io=class extends be.DynamoDBServiceException{constructor(t){super(a({name:"DuplicateItemException",$fault:"client"},t)),this.name="DuplicateItemException",this.$fault="client",Object.setPrototypeOf(this,Io.prototype)}};u.DuplicateItemException=Io;var Ro=class extends be.DynamoDBServiceException{constructor(t){super(a({name:"IdempotentParameterMismatchException",$fault:"client"},t)),this.name="IdempotentParameterMismatchException",this.$fault="client",Object.setPrototypeOf(this,Ro.prototype),this.Message=t.Message}};u.IdempotentParameterMismatchException=Ro;var Do=class extends be.DynamoDBServiceException{constructor(t){super(a({name:"TransactionInProgressException",$fault:"client"},t)),this.name="TransactionInProgressException",this.$fault="client",Object.setPrototypeOf(this,Do.prototype),this.Message=t.Message}};u.TransactionInProgressException=Do;var No=class extends be.DynamoDBServiceException{constructor(t){super(a({name:"ExportConflictException",$fault:"client"},t)),this.name="ExportConflictException",this.$fault="client",Object.setPrototypeOf(this,No.prototype)}};u.ExportConflictException=No;var IB;(function(e){e.filterSensitiveLog=t=>a({},t)})(IB=u.ExportTableToPointInTimeInput||(u.ExportTableToPointInTimeInput={}));var RB;(function(e){e.filterSensitiveLog=t=>a({},t)})(RB=u.ExportTableToPointInTimeOutput||(u.ExportTableToPointInTimeOutput={}));var Po=class extends be.DynamoDBServiceException{constructor(t){super(a({name:"InvalidExportTimeException",$fault:"client"},t)),this.name="InvalidExportTimeException",this.$fault="client",Object.setPrototypeOf(this,Po.prototype)}};u.InvalidExportTimeException=Po;var Oo=class extends be.DynamoDBServiceException{constructor(t){super(a({name:"PointInTimeRecoveryUnavailableException",$fault:"client"},t)),this.name="PointInTimeRecoveryUnavailableException",this.$fault="client",Object.setPrototypeOf(this,Oo.prototype)}};u.PointInTimeRecoveryUnavailableException=Oo;var DB;(function(e){e.filterSensitiveLog=t=>a({},t)})(DB=u.ListBackupsInput||(u.ListBackupsInput={}));var NB;(function(e){e.filterSensitiveLog=t=>a({},t)})(NB=u.ListBackupsOutput||(u.ListBackupsOutput={}));var PB;(function(e){e.filterSensitiveLog=t=>a({},t)})(PB=u.ListContributorInsightsInput||(u.ListContributorInsightsInput={}));var OB;(function(e){e.filterSensitiveLog=t=>a({},t)})(OB=u.ListContributorInsightsOutput||(u.ListContributorInsightsOutput={}));var LB;(function(e){e.filterSensitiveLog=t=>a({},t)})(LB=u.ListExportsInput||(u.ListExportsInput={}));var qB;(function(e){e.filterSensitiveLog=t=>a({},t)})(qB=u.ExportSummary||(u.ExportSummary={}));var MB;(function(e){e.filterSensitiveLog=t=>a({},t)})(MB=u.ListExportsOutput||(u.ListExportsOutput={}));var zB;(function(e){e.filterSensitiveLog=t=>a({},t)})(zB=u.ListGlobalTablesInput||(u.ListGlobalTablesInput={}));var jB;(function(e){e.filterSensitiveLog=t=>a({},t)})(jB=u.GlobalTable||(u.GlobalTable={}));var kB;(function(e){e.filterSensitiveLog=t=>a({},t)})(kB=u.ListGlobalTablesOutput||(u.ListGlobalTablesOutput={}));var FB;(function(e){e.filterSensitiveLog=t=>a({},t)})(FB=u.ListTablesInput||(u.ListTablesInput={}));var UB;(function(e){e.filterSensitiveLog=t=>a({},t)})(UB=u.ListTablesOutput||(u.ListTablesOutput={}));var BB;(function(e){e.filterSensitiveLog=t=>a({},t)})(BB=u.ListTagsOfResourceInput||(u.ListTagsOfResourceInput={}));var GB;(function(e){e.filterSensitiveLog=t=>a({},t)})(GB=u.ListTagsOfResourceOutput||(u.ListTagsOfResourceOutput={}));var $B;(function(e){e.filterSensitiveLog=t=>a({},t)})($B=u.RestoreTableFromBackupInput||(u.RestoreTableFromBackupInput={}));var VB;(function(e){e.filterSensitiveLog=t=>a({},t)})(VB=u.RestoreTableFromBackupOutput||(u.RestoreTableFromBackupOutput={}));var Lo=class extends be.DynamoDBServiceException{constructor(t){super(a({name:"TableAlreadyExistsException",$fault:"client"},t)),this.name="TableAlreadyExistsException",this.$fault="client",Object.setPrototypeOf(this,Lo.prototype)}};u.TableAlreadyExistsException=Lo;var qo=class extends be.DynamoDBServiceException{constructor(t){super(a({name:"InvalidRestoreTimeException",$fault:"client"},t)),this.name="InvalidRestoreTimeException",this.$fault="client",Object.setPrototypeOf(this,qo.prototype)}};u.InvalidRestoreTimeException=qo;var KB;(function(e){e.filterSensitiveLog=t=>a({},t)})(KB=u.RestoreTableToPointInTimeInput||(u.RestoreTableToPointInTimeInput={}));var HB;(function(e){e.filterSensitiveLog=t=>a({},t)})(HB=u.RestoreTableToPointInTimeOutput||(u.RestoreTableToPointInTimeOutput={}));var WB;(function(e){e.filterSensitiveLog=t=>a({},t)})(WB=u.TagResourceInput||(u.TagResourceInput={}));var YB;(function(e){e.filterSensitiveLog=t=>a({},t)})(YB=u.UntagResourceInput||(u.UntagResourceInput={}));var JB;(function(e){e.filterSensitiveLog=t=>a({},t)})(JB=u.PointInTimeRecoverySpecification||(u.PointInTimeRecoverySpecification={}));var QB;(function(e){e.filterSensitiveLog=t=>a({},t)})(QB=u.UpdateContinuousBackupsInput||(u.UpdateContinuousBackupsInput={}));var XB;(function(e){e.filterSensitiveLog=t=>a({},t)})(XB=u.UpdateContinuousBackupsOutput||(u.UpdateContinuousBackupsOutput={}));var ZB;(function(e){e.filterSensitiveLog=t=>a({},t)})(ZB=u.UpdateContributorInsightsInput||(u.UpdateContributorInsightsInput={}));var eG;(function(e){e.filterSensitiveLog=t=>a({},t)})(eG=u.UpdateContributorInsightsOutput||(u.UpdateContributorInsightsOutput={}));var Mo=class extends be.DynamoDBServiceException{constructor(t){super(a({name:"ReplicaAlreadyExistsException",$fault:"client"},t)),this.name="ReplicaAlreadyExistsException",this.$fault="client",Object.setPrototypeOf(this,Mo.prototype)}};u.ReplicaAlreadyExistsException=Mo;var zo=class extends be.DynamoDBServiceException{constructor(t){super(a({name:"ReplicaNotFoundException",$fault:"client"},t)),this.name="ReplicaNotFoundException",this.$fault="client",Object.setPrototypeOf(this,zo.prototype)}};u.ReplicaNotFoundException=zo;var tG;(function(e){e.filterSensitiveLog=t=>a({},t)})(tG=u.ReplicaUpdate||(u.ReplicaUpdate={}));var nG;(function(e){e.filterSensitiveLog=t=>a({},t)})(nG=u.UpdateGlobalTableInput||(u.UpdateGlobalTableInput={}));var rG;(function(e){e.filterSensitiveLog=t=>a({},t)})(rG=u.UpdateGlobalTableOutput||(u.UpdateGlobalTableOutput={}));var jo=class extends be.DynamoDBServiceException{constructor(t){super(a({name:"IndexNotFoundException",$fault:"client"},t)),this.name="IndexNotFoundException",this.$fault="client",Object.setPrototypeOf(this,jo.prototype)}};u.IndexNotFoundException=jo;var iG;(function(e){e.filterSensitiveLog=t=>a({},t)})(iG=u.GlobalTableGlobalSecondaryIndexSettingsUpdate||(u.GlobalTableGlobalSecondaryIndexSettingsUpdate={}));var sG;(function(e){e.filterSensitiveLog=t=>a({},t)})(sG=u.ReplicaGlobalSecondaryIndexSettingsUpdate||(u.ReplicaGlobalSecondaryIndexSettingsUpdate={}));var oG;(function(e){e.filterSensitiveLog=t=>a({},t)})(oG=u.ReplicaSettingsUpdate||(u.ReplicaSettingsUpdate={}));var aG;(function(e){e.filterSensitiveLog=t=>a({},t)})(aG=u.UpdateGlobalTableSettingsInput||(u.UpdateGlobalTableSettingsInput={}));var cG;(function(e){e.filterSensitiveLog=t=>a({},t)})(cG=u.UpdateGlobalTableSettingsOutput||(u.UpdateGlobalTableSettingsOutput={}));var lG;(function(e){e.filterSensitiveLog=t=>a({},t)})(lG=u.UpdateGlobalSecondaryIndexAction||(u.UpdateGlobalSecondaryIndexAction={}));var uG;(function(e){e.filterSensitiveLog=t=>a({},t)})(uG=u.GlobalSecondaryIndexUpdate||(u.GlobalSecondaryIndexUpdate={}));var dG;(function(e){e.filterSensitiveLog=t=>a({},t)})(dG=u.UpdateReplicationGroupMemberAction||(u.UpdateReplicationGroupMemberAction={}));var fG;(function(e){e.filterSensitiveLog=t=>a({},t)})(fG=u.ReplicationGroupUpdate||(u.ReplicationGroupUpdate={}));var mG;(function(e){e.filterSensitiveLog=t=>a({},t)})(mG=u.UpdateTableInput||(u.UpdateTableInput={}));var pG;(function(e){e.filterSensitiveLog=t=>a({},t)})(pG=u.UpdateTableOutput||(u.UpdateTableOutput={}));var hG;(function(e){e.filterSensitiveLog=t=>a({},t)})(hG=u.GlobalSecondaryIndexAutoScalingUpdate||(u.GlobalSecondaryIndexAutoScalingUpdate={}));var _G;(function(e){e.filterSensitiveLog=t=>a({},t)})(_G=u.ReplicaGlobalSecondaryIndexAutoScalingUpdate||(u.ReplicaGlobalSecondaryIndexAutoScalingUpdate={}));var yG;(function(e){e.filterSensitiveLog=t=>a({},t)})(yG=u.ReplicaAutoScalingUpdate||(u.ReplicaAutoScalingUpdate={}));var gG;(function(e){e.filterSensitiveLog=t=>a({},t)})(gG=u.UpdateTableReplicaAutoScalingInput||(u.UpdateTableReplicaAutoScalingInput={}));var SG;(function(e){e.filterSensitiveLog=t=>a({},t)})(SG=u.UpdateTableReplicaAutoScalingOutput||(u.UpdateTableReplicaAutoScalingOutput={}));var vG;(function(e){e.filterSensitiveLog=t=>a({},t)})(vG=u.TimeToLiveSpecification||(u.TimeToLiveSpecification={}));var wG;(function(e){e.filterSensitiveLog=t=>a({},t)})(wG=u.UpdateTimeToLiveInput||(u.UpdateTimeToLiveInput={}));var bG;(function(e){e.filterSensitiveLog=t=>a({},t)})(bG=u.UpdateTimeToLiveOutput||(u.UpdateTimeToLiveOutput={}));var ae;(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])=>g(a({},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"}}})(ae=u.AttributeValue||(u.AttributeValue={}));var sA;(function(e){e.filterSensitiveLog=t=>a(a({},t),t.Value&&{Value:ae.filterSensitiveLog(t.Value)})})(sA=u.AttributeValueUpdate||(u.AttributeValueUpdate={}));var oA;(function(e){e.filterSensitiveLog=t=>a(a({},t),t.Parameters&&{Parameters:t.Parameters.map(n=>ae.filterSensitiveLog(n))})})(oA=u.BatchStatementRequest||(u.BatchStatementRequest={}));var aA;(function(e){e.filterSensitiveLog=t=>a(a({},t),t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,i])=>g(a({},n),{[r]:ae.filterSensitiveLog(i)}),{})})})(aA=u.BatchStatementResponse||(u.BatchStatementResponse={}));var EG;(function(e){e.filterSensitiveLog=t=>a(a({},t),t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,i])=>g(a({},n),{[r]:ae.filterSensitiveLog(i)}),{})})})(EG=u.CancellationReason||(u.CancellationReason={}));var Xc;(function(e){e.filterSensitiveLog=t=>a(a({},t),t.AttributeValueList&&{AttributeValueList:t.AttributeValueList.map(n=>ae.filterSensitiveLog(n))})})(Xc=u.Condition||(u.Condition={}));var cA;(function(e){e.filterSensitiveLog=t=>a(a({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,i])=>g(a({},n),{[r]:ae.filterSensitiveLog(i)}),{})})})(cA=u.DeleteRequest||(u.DeleteRequest={}));var AG;(function(e){e.filterSensitiveLog=t=>a(a({},t),t.Parameters&&{Parameters:t.Parameters.map(n=>ae.filterSensitiveLog(n))})})(AG=u.ExecuteStatementInput||(u.ExecuteStatementInput={}));var lA;(function(e){e.filterSensitiveLog=t=>a(a({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,i])=>g(a({},n),{[r]:ae.filterSensitiveLog(i)}),{})})})(lA=u.Get||(u.Get={}));var TG;(function(e){e.filterSensitiveLog=t=>a(a({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,i])=>g(a({},n),{[r]:ae.filterSensitiveLog(i)}),{})})})(TG=u.GetItemInput||(u.GetItemInput={}));var CG;(function(e){e.filterSensitiveLog=t=>a(a({},t),t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,i])=>g(a({},n),{[r]:ae.filterSensitiveLog(i)}),{})})})(CG=u.GetItemOutput||(u.GetItemOutput={}));var Yi;(function(e){e.filterSensitiveLog=t=>a(a({},t),t.ItemCollectionKey&&{ItemCollectionKey:Object.entries(t.ItemCollectionKey).reduce((n,[r,i])=>g(a({},n),{[r]:ae.filterSensitiveLog(i)}),{})})})(Yi=u.ItemCollectionMetrics||(u.ItemCollectionMetrics={}));var W_;(function(e){e.filterSensitiveLog=t=>a(a({},t),t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,i])=>g(a({},n),{[r]:ae.filterSensitiveLog(i)}),{})})})(W_=u.ItemResponse||(u.ItemResponse={}));var uA;(function(e){e.filterSensitiveLog=t=>a(a({},t),t.Parameters&&{Parameters:t.Parameters.map(n=>ae.filterSensitiveLog(n))})})(uA=u.ParameterizedStatement||(u.ParameterizedStatement={}));var dA;(function(e){e.filterSensitiveLog=t=>a(a({},t),t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,i])=>g(a({},n),{[r]:ae.filterSensitiveLog(i)}),{})})})(dA=u.PutRequest||(u.PutRequest={}));var Y_;(function(e){e.filterSensitiveLog=t=>a(a({},t),t.Keys&&{Keys:t.Keys.map(n=>Object.entries(n).reduce((r,[i,s])=>g(a({},r),{[i]:ae.filterSensitiveLog(s)}),{}))})})(Y_=u.KeysAndAttributes||(u.KeysAndAttributes={}));var fA;(function(e){e.filterSensitiveLog=t=>a(a({},t),t.Get&&{Get:lA.filterSensitiveLog(t.Get)})})(fA=u.TransactGetItem||(u.TransactGetItem={}));var xG;(function(e){e.filterSensitiveLog=t=>a(a({},t),t.Statements&&{Statements:t.Statements.map(n=>oA.filterSensitiveLog(n))})})(xG=u.BatchExecuteStatementInput||(u.BatchExecuteStatementInput={}));var IG;(function(e){e.filterSensitiveLog=t=>a(a({},t),t.Responses&&{Responses:t.Responses.map(n=>aA.filterSensitiveLog(n))})})(IG=u.BatchExecuteStatementOutput||(u.BatchExecuteStatementOutput={}));var RG;(function(e){e.filterSensitiveLog=t=>a(a({},t),t.TransactStatements&&{TransactStatements:t.TransactStatements.map(n=>uA.filterSensitiveLog(n))})})(RG=u.ExecuteTransactionInput||(u.ExecuteTransactionInput={}));var DG;(function(e){e.filterSensitiveLog=t=>a(a({},t),t.Responses&&{Responses:t.Responses.map(n=>W_.filterSensitiveLog(n))})})(DG=u.ExecuteTransactionOutput||(u.ExecuteTransactionOutput={}));var NG;(function(e){e.filterSensitiveLog=t=>a(a({},t),t.Responses&&{Responses:t.Responses.map(n=>W_.filterSensitiveLog(n))})})(NG=u.TransactGetItemsOutput||(u.TransactGetItemsOutput={}));var ko=class extends be.DynamoDBServiceException{constructor(t){super(a({name:"TransactionCanceledException",$fault:"client"},t)),this.name="TransactionCanceledException",this.$fault="client",Object.setPrototypeOf(this,ko.prototype),this.Message=t.Message,this.CancellationReasons=t.CancellationReasons}};u.TransactionCanceledException=ko;var PG;(function(e){e.filterSensitiveLog=t=>a(a({},t),t.RequestItems&&{RequestItems:Object.entries(t.RequestItems).reduce((n,[r,i])=>g(a({},n),{[r]:Y_.filterSensitiveLog(i)}),{})})})(PG=u.BatchGetItemInput||(u.BatchGetItemInput={}));var Zc;(function(e){e.filterSensitiveLog=t=>a(a(a({},t),t.Value&&{Value:ae.filterSensitiveLog(t.Value)}),t.AttributeValueList&&{AttributeValueList:t.AttributeValueList.map(n=>ae.filterSensitiveLog(n))})})(Zc=u.ExpectedAttributeValue||(u.ExpectedAttributeValue={}));var OG;(function(e){e.filterSensitiveLog=t=>a(a({},t),t.TransactItems&&{TransactItems:t.TransactItems.map(n=>fA.filterSensitiveLog(n))})})(OG=u.TransactGetItemsInput||(u.TransactGetItemsInput={}));var LG;(function(e){e.filterSensitiveLog=t=>a(a({},t),t.ItemCollectionMetrics&&{ItemCollectionMetrics:Object.entries(t.ItemCollectionMetrics).reduce((n,[r,i])=>g(a({},n),{[r]:i.map(s=>Yi.filterSensitiveLog(s))}),{})})})(LG=u.TransactWriteItemsOutput||(u.TransactWriteItemsOutput={}));var mA;(function(e){e.filterSensitiveLog=t=>a(a(a({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,i])=>g(a({},n),{[r]:ae.filterSensitiveLog(i)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,i])=>g(a({},n),{[r]:ae.filterSensitiveLog(i)}),{})})})(mA=u.ConditionCheck||(u.ConditionCheck={}));var pA;(function(e){e.filterSensitiveLog=t=>a(a(a({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,i])=>g(a({},n),{[r]:ae.filterSensitiveLog(i)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,i])=>g(a({},n),{[r]:ae.filterSensitiveLog(i)}),{})})})(pA=u.Delete||(u.Delete={}));var hA;(function(e){e.filterSensitiveLog=t=>a(a(a({},t),t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,i])=>g(a({},n),{[r]:ae.filterSensitiveLog(i)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,i])=>g(a({},n),{[r]:ae.filterSensitiveLog(i)}),{})})})(hA=u.Put||(u.Put={}));var _A;(function(e){e.filterSensitiveLog=t=>a(a(a({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,i])=>g(a({},n),{[r]:ae.filterSensitiveLog(i)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,i])=>g(a({},n),{[r]:ae.filterSensitiveLog(i)}),{})})})(_A=u.Update||(u.Update={}));var qG;(function(e){e.filterSensitiveLog=t=>a(a(a({},t),t.Attributes&&{Attributes:Object.entries(t.Attributes).reduce((n,[r,i])=>g(a({},n),{[r]:ae.filterSensitiveLog(i)}),{})}),t.ItemCollectionMetrics&&{ItemCollectionMetrics:Yi.filterSensitiveLog(t.ItemCollectionMetrics)})})(qG=u.DeleteItemOutput||(u.DeleteItemOutput={}));var MG;(function(e){e.filterSensitiveLog=t=>a(a(a({},t),t.Items&&{Items:t.Items.map(n=>Object.entries(n).reduce((r,[i,s])=>g(a({},r),{[i]:ae.filterSensitiveLog(s)}),{}))}),t.LastEvaluatedKey&&{LastEvaluatedKey:Object.entries(t.LastEvaluatedKey).reduce((n,[r,i])=>g(a({},n),{[r]:ae.filterSensitiveLog(i)}),{})})})(MG=u.ExecuteStatementOutput||(u.ExecuteStatementOutput={}));var zG;(function(e){e.filterSensitiveLog=t=>a(a(a({},t),t.Attributes&&{Attributes:Object.entries(t.Attributes).reduce((n,[r,i])=>g(a({},n),{[r]:ae.filterSensitiveLog(i)}),{})}),t.ItemCollectionMetrics&&{ItemCollectionMetrics:Yi.filterSensitiveLog(t.ItemCollectionMetrics)})})(zG=u.PutItemOutput||(u.PutItemOutput={}));var jG;(function(e){e.filterSensitiveLog=t=>a(a(a({},t),t.Items&&{Items:t.Items.map(n=>Object.entries(n).reduce((r,[i,s])=>g(a({},r),{[i]:ae.filterSensitiveLog(s)}),{}))}),t.LastEvaluatedKey&&{LastEvaluatedKey:Object.entries(t.LastEvaluatedKey).reduce((n,[r,i])=>g(a({},n),{[r]:ae.filterSensitiveLog(i)}),{})})})(jG=u.QueryOutput||(u.QueryOutput={}));var kG;(function(e){e.filterSensitiveLog=t=>a(a(a({},t),t.Items&&{Items:t.Items.map(n=>Object.entries(n).reduce((r,[i,s])=>g(a({},r),{[i]:ae.filterSensitiveLog(s)}),{}))}),t.LastEvaluatedKey&&{LastEvaluatedKey:Object.entries(t.LastEvaluatedKey).reduce((n,[r,i])=>g(a({},n),{[r]:ae.filterSensitiveLog(i)}),{})})})(kG=u.ScanOutput||(u.ScanOutput={}));var FG;(function(e){e.filterSensitiveLog=t=>a(a(a({},t),t.Attributes&&{Attributes:Object.entries(t.Attributes).reduce((n,[r,i])=>g(a({},n),{[r]:ae.filterSensitiveLog(i)}),{})}),t.ItemCollectionMetrics&&{ItemCollectionMetrics:Yi.filterSensitiveLog(t.ItemCollectionMetrics)})})(FG=u.UpdateItemOutput||(u.UpdateItemOutput={}));var J_;(function(e){e.filterSensitiveLog=t=>a(a(a({},t),t.PutRequest&&{PutRequest:dA.filterSensitiveLog(t.PutRequest)}),t.DeleteRequest&&{DeleteRequest:cA.filterSensitiveLog(t.DeleteRequest)})})(J_=u.WriteRequest||(u.WriteRequest={}));var UG;(function(e){e.filterSensitiveLog=t=>a(a(a({},t),t.Responses&&{Responses:Object.entries(t.Responses).reduce((n,[r,i])=>g(a({},n),{[r]:i.map(s=>Object.entries(s).reduce((o,[c,l])=>g(a({},o),{[c]:ae.filterSensitiveLog(l)}),{}))}),{})}),t.UnprocessedKeys&&{UnprocessedKeys:Object.entries(t.UnprocessedKeys).reduce((n,[r,i])=>g(a({},n),{[r]:Y_.filterSensitiveLog(i)}),{})})})(UG=u.BatchGetItemOutput||(u.BatchGetItemOutput={}));var BG;(function(e){e.filterSensitiveLog=t=>a(a(a(a({},t),t.ScanFilter&&{ScanFilter:Object.entries(t.ScanFilter).reduce((n,[r,i])=>g(a({},n),{[r]:Xc.filterSensitiveLog(i)}),{})}),t.ExclusiveStartKey&&{ExclusiveStartKey:Object.entries(t.ExclusiveStartKey).reduce((n,[r,i])=>g(a({},n),{[r]:ae.filterSensitiveLog(i)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,i])=>g(a({},n),{[r]:ae.filterSensitiveLog(i)}),{})})})(BG=u.ScanInput||(u.ScanInput={}));var GG;(function(e){e.filterSensitiveLog=t=>a(a({},t),t.RequestItems&&{RequestItems:Object.entries(t.RequestItems).reduce((n,[r,i])=>g(a({},n),{[r]:i.map(s=>J_.filterSensitiveLog(s))}),{})})})(GG=u.BatchWriteItemInput||(u.BatchWriteItemInput={}));var $G;(function(e){e.filterSensitiveLog=t=>a(a(a(a({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,i])=>g(a({},n),{[r]:ae.filterSensitiveLog(i)}),{})}),t.Expected&&{Expected:Object.entries(t.Expected).reduce((n,[r,i])=>g(a({},n),{[r]:Zc.filterSensitiveLog(i)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,i])=>g(a({},n),{[r]:ae.filterSensitiveLog(i)}),{})})})($G=u.DeleteItemInput||(u.DeleteItemInput={}));var VG;(function(e){e.filterSensitiveLog=t=>a(a(a(a({},t),t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,i])=>g(a({},n),{[r]:ae.filterSensitiveLog(i)}),{})}),t.Expected&&{Expected:Object.entries(t.Expected).reduce((n,[r,i])=>g(a({},n),{[r]:Zc.filterSensitiveLog(i)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,i])=>g(a({},n),{[r]:ae.filterSensitiveLog(i)}),{})})})(VG=u.PutItemInput||(u.PutItemInput={}));var KG;(function(e){e.filterSensitiveLog=t=>a(a(a(a(a({},t),t.KeyConditions&&{KeyConditions:Object.entries(t.KeyConditions).reduce((n,[r,i])=>g(a({},n),{[r]:Xc.filterSensitiveLog(i)}),{})}),t.QueryFilter&&{QueryFilter:Object.entries(t.QueryFilter).reduce((n,[r,i])=>g(a({},n),{[r]:Xc.filterSensitiveLog(i)}),{})}),t.ExclusiveStartKey&&{ExclusiveStartKey:Object.entries(t.ExclusiveStartKey).reduce((n,[r,i])=>g(a({},n),{[r]:ae.filterSensitiveLog(i)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,i])=>g(a({},n),{[r]:ae.filterSensitiveLog(i)}),{})})})(KG=u.QueryInput||(u.QueryInput={}));var HG;(function(e){e.filterSensitiveLog=t=>a(a(a({},t),t.UnprocessedItems&&{UnprocessedItems:Object.entries(t.UnprocessedItems).reduce((n,[r,i])=>g(a({},n),{[r]:i.map(s=>J_.filterSensitiveLog(s))}),{})}),t.ItemCollectionMetrics&&{ItemCollectionMetrics:Object.entries(t.ItemCollectionMetrics).reduce((n,[r,i])=>g(a({},n),{[r]:i.map(s=>Yi.filterSensitiveLog(s))}),{})})})(HG=u.BatchWriteItemOutput||(u.BatchWriteItemOutput={}));var WG;(function(e){e.filterSensitiveLog=t=>a(a(a(a(a({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,i])=>g(a({},n),{[r]:ae.filterSensitiveLog(i)}),{})}),t.AttributeUpdates&&{AttributeUpdates:Object.entries(t.AttributeUpdates).reduce((n,[r,i])=>g(a({},n),{[r]:sA.filterSensitiveLog(i)}),{})}),t.Expected&&{Expected:Object.entries(t.Expected).reduce((n,[r,i])=>g(a({},n),{[r]:Zc.filterSensitiveLog(i)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,i])=>g(a({},n),{[r]:ae.filterSensitiveLog(i)}),{})})})(WG=u.UpdateItemInput||(u.UpdateItemInput={}));var yA;(function(e){e.filterSensitiveLog=t=>a(a(a(a(a({},t),t.ConditionCheck&&{ConditionCheck:mA.filterSensitiveLog(t.ConditionCheck)}),t.Put&&{Put:hA.filterSensitiveLog(t.Put)}),t.Delete&&{Delete:pA.filterSensitiveLog(t.Delete)}),t.Update&&{Update:_A.filterSensitiveLog(t.Update)})})(yA=u.TransactWriteItem||(u.TransactWriteItem={}));var YG;(function(e){e.filterSensitiveLog=t=>a(a({},t),t.TransactItems&&{TransactItems:t.TransactItems.map(n=>yA.filterSensitiveLog(n))})})(YG=u.TransactWriteItemsInput||(u.TransactWriteItemsInput={}))});var SA=m(gA=>{"use strict";Object.defineProperty(gA,"__esModule",{value:!0})});var vA=m(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0});el.HttpRequest=void 0;var Fo=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 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 Fo(g(a({},this),{headers:a({},this.headers)}));return t.query&&(t.query=JG(t.query)),t}};el.HttpRequest=Fo;function JG(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return g(a({},t),{[n]:Array.isArray(r)?[...r]:r})},{})}});var wA=m(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});tl.HttpResponse=void 0;var Q_=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"}};tl.HttpResponse=Q_});var bA=m(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0});nl.isValidHostname=void 0;function QG(e){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(e)}nl.isValidHostname=QG});var qt=m(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});var rl=Y();rl.__exportStar(SA(),Ji);rl.__exportStar(vA(),Ji);rl.__exportStar(wA(),Ji);rl.__exportStar(bA(),Ji)});var Z_=m(X_=>{"use strict";Object.defineProperty(X_,"__esModule",{value:!0});X_.default=e$;var XG=ZG(require("crypto"));function ZG(e){return e&&e.__esModule?e:{default:e}}var sl=new Uint8Array(256),il=sl.length;function e$(){return il>sl.length-16&&(XG.default.randomFillSync(sl),il=0),sl.slice(il,il+=16)}});var EA=m(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});ol.default=void 0;var t$=/^(?:[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;ol.default=t$});var Uo=m(al=>{"use strict";Object.defineProperty(al,"__esModule",{value:!0});al.default=void 0;var n$=r$(EA());function r$(e){return e&&e.__esModule?e:{default:e}}function i$(e){return typeof e=="string"&&n$.default.test(e)}var s$=i$;al.default=s$});var Bo=m(cl=>{"use strict";Object.defineProperty(cl,"__esModule",{value:!0});cl.default=void 0;var o$=a$(Uo());function a$(e){return e&&e.__esModule?e:{default:e}}var it=[];for(let e=0;e<256;++e)it.push((e+256).toString(16).substr(1));function c$(e,t=0){let n=(it[e[t+0]]+it[e[t+1]]+it[e[t+2]]+it[e[t+3]]+"-"+it[e[t+4]]+it[e[t+5]]+"-"+it[e[t+6]]+it[e[t+7]]+"-"+it[e[t+8]]+it[e[t+9]]+"-"+it[e[t+10]]+it[e[t+11]]+it[e[t+12]]+it[e[t+13]]+it[e[t+14]]+it[e[t+15]]).toLowerCase();if(!(0,o$.default)(n))throw TypeError("Stringified UUID is invalid");return n}var l$=c$;cl.default=l$});var CA=m(ll=>{"use strict";Object.defineProperty(ll,"__esModule",{value:!0});ll.default=void 0;var u$=TA(Z_()),d$=TA(Bo());function TA(e){return e&&e.__esModule?e:{default:e}}var AA,ey,ty=0,ny=0;function f$(e,t,n){let r=t&&n||0,i=t||new Array(16);e=e||{};let s=e.node||AA,o=e.clockseq!==void 0?e.clockseq:ey;if(s==null||o==null){let _=e.random||(e.rng||u$.default)();s==null&&(s=AA=[_[0]|1,_[1],_[2],_[3],_[4],_[5]]),o==null&&(o=ey=(_[6]<<8|_[7])&16383)}let c=e.msecs!==void 0?e.msecs:Date.now(),l=e.nsecs!==void 0?e.nsecs:ny+1,d=c-ty+(l-ny)/1e4;if(d<0&&e.clockseq===void 0&&(o=o+1&16383),(d<0||c>ty)&&e.nsecs===void 0&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");ty=c,ny=l,ey=o,c+=122192928e5;let f=((c&268435455)*1e4+l)%4294967296;i[r++]=f>>>24&255,i[r++]=f>>>16&255,i[r++]=f>>>8&255,i[r++]=f&255;let h=c/4294967296*1e4&268435455;i[r++]=h>>>8&255,i[r++]=h&255,i[r++]=h>>>24&15|16,i[r++]=h>>>16&255,i[r++]=o>>>8|128,i[r++]=o&255;for(let _=0;_<6;++_)i[r+_]=s[_];return t||(0,d$.default)(i)}var m$=f$;ll.default=m$});var ry=m(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});ul.default=void 0;var p$=h$(Uo());function h$(e){return e&&e.__esModule?e:{default:e}}function _$(e){if(!(0,p$.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 y$=_$;ul.default=y$});var iy=m(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.default=w$;ri.URL=ri.DNS=void 0;var g$=xA(Bo()),S$=xA(ry());function xA(e){return e&&e.__esModule?e:{default:e}}function v$(e){e=unescape(encodeURIComponent(e));let t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}var IA="6ba7b810-9dad-11d1-80b4-00c04fd430c8";ri.DNS=IA;var RA="6ba7b811-9dad-11d1-80b4-00c04fd430c8";ri.URL=RA;function w$(e,t,n){function r(i,s,o,c){if(typeof i=="string"&&(i=v$(i)),typeof s=="string"&&(s=(0,S$.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=n(l),l[6]=l[6]&15|t,l[8]=l[8]&63|128,o){c=c||0;for(let d=0;d<16;++d)o[c+d]=l[d];return o}return(0,g$.default)(l)}try{r.name=e}catch{}return r.DNS=IA,r.URL=RA,r}});var DA=m(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});dl.default=void 0;var b$=E$(require("crypto"));function E$(e){return e&&e.__esModule?e:{default:e}}function A$(e){return Array.isArray(e)?e=Buffer.from(e):typeof e=="string"&&(e=Buffer.from(e,"utf8")),b$.default.createHash("md5").update(e).digest()}var T$=A$;dl.default=T$});var PA=m(fl=>{"use strict";Object.defineProperty(fl,"__esModule",{value:!0});fl.default=void 0;var C$=NA(iy()),x$=NA(DA());function NA(e){return e&&e.__esModule?e:{default:e}}var I$=(0,C$.default)("v3",48,x$.default),R$=I$;fl.default=R$});var LA=m(ml=>{"use strict";Object.defineProperty(ml,"__esModule",{value:!0});ml.default=void 0;var D$=OA(Z_()),N$=OA(Bo());function OA(e){return e&&e.__esModule?e:{default:e}}function P$(e,t,n){e=e||{};let r=e.random||(e.rng||D$.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,N$.default)(r)}var O$=P$;ml.default=O$});var qA=m(pl=>{"use strict";Object.defineProperty(pl,"__esModule",{value:!0});pl.default=void 0;var L$=q$(require("crypto"));function q$(e){return e&&e.__esModule?e:{default:e}}function M$(e){return Array.isArray(e)?e=Buffer.from(e):typeof e=="string"&&(e=Buffer.from(e,"utf8")),L$.default.createHash("sha1").update(e).digest()}var z$=M$;pl.default=z$});var zA=m(hl=>{"use strict";Object.defineProperty(hl,"__esModule",{value:!0});hl.default=void 0;var j$=MA(iy()),k$=MA(qA());function MA(e){return e&&e.__esModule?e:{default:e}}var F$=(0,j$.default)("v5",80,k$.default),U$=F$;hl.default=U$});var jA=m(_l=>{"use strict";Object.defineProperty(_l,"__esModule",{value:!0});_l.default=void 0;var B$="00000000-0000-0000-0000-000000000000";_l.default=B$});var kA=m(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});yl.default=void 0;var G$=$$(Uo());function $$(e){return e&&e.__esModule?e:{default:e}}function V$(e){if(!(0,G$.default)(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}var K$=V$;yl.default=K$});var sy=m(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Object.defineProperty(Zt,"v1",{enumerable:!0,get:function(){return H$.default}});Object.defineProperty(Zt,"v3",{enumerable:!0,get:function(){return W$.default}});Object.defineProperty(Zt,"v4",{enumerable:!0,get:function(){return Y$.default}});Object.defineProperty(Zt,"v5",{enumerable:!0,get:function(){return J$.default}});Object.defineProperty(Zt,"NIL",{enumerable:!0,get:function(){return Q$.default}});Object.defineProperty(Zt,"version",{enumerable:!0,get:function(){return X$.default}});Object.defineProperty(Zt,"validate",{enumerable:!0,get:function(){return Z$.default}});Object.defineProperty(Zt,"stringify",{enumerable:!0,get:function(){return e2.default}});Object.defineProperty(Zt,"parse",{enumerable:!0,get:function(){return t2.default}});var H$=Gn(CA()),W$=Gn(PA()),Y$=Gn(LA()),J$=Gn(zA()),Q$=Gn(jA()),X$=Gn(kA()),Z$=Gn(Uo()),e2=Gn(Bo()),t2=Gn(ry());function Gn(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 n2=qt(),p=q(),oy=sy(),te=Qc(),ve=J(),r2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.BatchExecuteStatement"},r;return r=JSON.stringify(i3(e,t)),ne(t,n,"/",void 0,r)};w.serializeAws_json1_0BatchExecuteStatementCommand=r2;var i2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.BatchGetItem"},r;return r=JSON.stringify(s3(e,t)),ne(t,n,"/",void 0,r)};w.serializeAws_json1_0BatchGetItemCommand=i2;var s2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.BatchWriteItem"},r;return r=JSON.stringify(c3(e,t)),ne(t,n,"/",void 0,r)};w.serializeAws_json1_0BatchWriteItemCommand=s2;var o2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.CreateBackup"},r;return r=JSON.stringify(f3(e,t)),ne(t,n,"/",void 0,r)};w.serializeAws_json1_0CreateBackupCommand=o2;var a2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.CreateGlobalTable"},r;return r=JSON.stringify(p3(e,t)),ne(t,n,"/",void 0,r)};w.serializeAws_json1_0CreateGlobalTableCommand=a2;var c2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.CreateTable"},r;return r=JSON.stringify(y3(e,t)),ne(t,n,"/",void 0,r)};w.serializeAws_json1_0CreateTableCommand=c2;var l2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DeleteBackup"},r;return r=JSON.stringify(S3(e,t)),ne(t,n,"/",void 0,r)};w.serializeAws_json1_0DeleteBackupCommand=l2;var u2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DeleteItem"},r;return r=JSON.stringify(w3(e,t)),ne(t,n,"/",void 0,r)};w.serializeAws_json1_0DeleteItemCommand=u2;var d2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DeleteTable"},r;return r=JSON.stringify(T3(e,t)),ne(t,n,"/",void 0,r)};w.serializeAws_json1_0DeleteTableCommand=d2;var f2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeBackup"},r;return r=JSON.stringify(C3(e,t)),ne(t,n,"/",void 0,r)};w.serializeAws_json1_0DescribeBackupCommand=f2;var m2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeContinuousBackups"},r;return r=JSON.stringify(x3(e,t)),ne(t,n,"/",void 0,r)};w.serializeAws_json1_0DescribeContinuousBackupsCommand=m2;var p2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeContributorInsights"},r;return r=JSON.stringify(I3(e,t)),ne(t,n,"/",void 0,r)};w.serializeAws_json1_0DescribeContributorInsightsCommand=p2;var h2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeEndpoints"},r;return r=JSON.stringify(R3(e,t)),ne(t,n,"/",void 0,r)};w.serializeAws_json1_0DescribeEndpointsCommand=h2;var _2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeExport"},r;return r=JSON.stringify(D3(e,t)),ne(t,n,"/",void 0,r)};w.serializeAws_json1_0DescribeExportCommand=_2;var y2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeGlobalTable"},r;return r=JSON.stringify(N3(e,t)),ne(t,n,"/",void 0,r)};w.serializeAws_json1_0DescribeGlobalTableCommand=y2;var g2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeGlobalTableSettings"},r;return r=JSON.stringify(P3(e,t)),ne(t,n,"/",void 0,r)};w.serializeAws_json1_0DescribeGlobalTableSettingsCommand=g2;var S2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeKinesisStreamingDestination"},r;return r=JSON.stringify(O3(e,t)),ne(t,n,"/",void 0,r)};w.serializeAws_json1_0DescribeKinesisStreamingDestinationCommand=S2;var v2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeLimits"},r;return r=JSON.stringify(L3(e,t)),ne(t,n,"/",void 0,r)};w.serializeAws_json1_0DescribeLimitsCommand=v2;var w2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeTable"},r;return r=JSON.stringify(q3(e,t)),ne(t,n,"/",void 0,r)};w.serializeAws_json1_0DescribeTableCommand=w2;var b2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeTableReplicaAutoScaling"},r;return r=JSON.stringify(M3(e,t)),ne(t,n,"/",void 0,r)};w.serializeAws_json1_0DescribeTableReplicaAutoScalingCommand=b2;var E2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeTimeToLive"},r;return r=JSON.stringify(z3(e,t)),ne(t,n,"/",void 0,r)};w.serializeAws_json1_0DescribeTimeToLiveCommand=E2;var A2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DisableKinesisStreamingDestination"},r;return r=JSON.stringify(QA(e,t)),ne(t,n,"/",void 0,r)};w.serializeAws_json1_0DisableKinesisStreamingDestinationCommand=A2;var T2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.EnableKinesisStreamingDestination"},r;return r=JSON.stringify(QA(e,t)),ne(t,n,"/",void 0,r)};w.serializeAws_json1_0EnableKinesisStreamingDestinationCommand=T2;var C2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ExecuteStatement"},r;return r=JSON.stringify(j3(e,t)),ne(t,n,"/",void 0,r)};w.serializeAws_json1_0ExecuteStatementCommand=C2;var x2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ExecuteTransaction"},r;return r=JSON.stringify(k3(e,t)),ne(t,n,"/",void 0,r)};w.serializeAws_json1_0ExecuteTransactionCommand=x2;var I2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ExportTableToPointInTime"},r;return r=JSON.stringify(U3(e,t)),ne(t,n,"/",void 0,r)};w.serializeAws_json1_0ExportTableToPointInTimeCommand=I2;var R2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.GetItem"},r;return r=JSON.stringify(G3(e,t)),ne(t,n,"/",void 0,r)};w.serializeAws_json1_0GetItemCommand=R2;var D2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListBackups"},r;return r=JSON.stringify(nH(e,t)),ne(t,n,"/",void 0,r)};w.serializeAws_json1_0ListBackupsCommand=D2;var N2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListContributorInsights"},r;return r=JSON.stringify(rH(e,t)),ne(t,n,"/",void 0,r)};w.serializeAws_json1_0ListContributorInsightsCommand=N2;var P2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListExports"},r;return r=JSON.stringify(iH(e,t)),ne(t,n,"/",void 0,r)};w.serializeAws_json1_0ListExportsCommand=P2;var O2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListGlobalTables"},r;return r=JSON.stringify(sH(e,t)),ne(t,n,"/",void 0,r)};w.serializeAws_json1_0ListGlobalTablesCommand=O2;var L2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListTables"},r;return r=JSON.stringify(oH(e,t)),ne(t,n,"/",void 0,r)};w.serializeAws_json1_0ListTablesCommand=L2;var q2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListTagsOfResource"},r;return r=JSON.stringify(aH(e,t)),ne(t,n,"/",void 0,r)};w.serializeAws_json1_0ListTagsOfResourceCommand=q2;var M2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.PutItem"},r;return r=JSON.stringify(yH(e,t)),ne(t,n,"/",void 0,r)};w.serializeAws_json1_0PutItemCommand=M2;var z2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.Query"},r;return r=JSON.stringify(SH(e,t)),ne(t,n,"/",void 0,r)};w.serializeAws_json1_0QueryCommand=z2;var j2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.RestoreTableFromBackup"},r;return r=JSON.stringify(qH(e,t)),ne(t,n,"/",void 0,r)};w.serializeAws_json1_0RestoreTableFromBackupCommand=j2;var k2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.RestoreTableToPointInTime"},r;return r=JSON.stringify(MH(e,t)),ne(t,n,"/",void 0,r)};w.serializeAws_json1_0RestoreTableToPointInTimeCommand=k2;var F2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.Scan"},r;return r=JSON.stringify(zH(e,t)),ne(t,n,"/",void 0,r)};w.serializeAws_json1_0ScanCommand=F2;var U2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.TagResource"},r;return r=JSON.stringify(UH(e,t)),ne(t,n,"/",void 0,r)};w.serializeAws_json1_0TagResourceCommand=U2;var B2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.TransactGetItems"},r;return r=JSON.stringify(VH(e,t)),ne(t,n,"/",void 0,r)};w.serializeAws_json1_0TransactGetItemsCommand=B2;var G2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.TransactWriteItems"},r;return r=JSON.stringify(WH(e,t)),ne(t,n,"/",void 0,r)};w.serializeAws_json1_0TransactWriteItemsCommand=G2;var $2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UntagResource"},r;return r=JSON.stringify(YH(e,t)),ne(t,n,"/",void 0,r)};w.serializeAws_json1_0UntagResourceCommand=$2;var V2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateContinuousBackups"},r;return r=JSON.stringify(QH(e,t)),ne(t,n,"/",void 0,r)};w.serializeAws_json1_0UpdateContinuousBackupsCommand=V2;var K2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateContributorInsights"},r;return r=JSON.stringify(XH(e,t)),ne(t,n,"/",void 0,r)};w.serializeAws_json1_0UpdateContributorInsightsCommand=K2;var H2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateGlobalTable"},r;return r=JSON.stringify(eW(e,t)),ne(t,n,"/",void 0,r)};w.serializeAws_json1_0UpdateGlobalTableCommand=H2;var W2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateGlobalTableSettings"},r;return r=JSON.stringify(tW(e,t)),ne(t,n,"/",void 0,r)};w.serializeAws_json1_0UpdateGlobalTableSettingsCommand=W2;var Y2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateItem"},r;return r=JSON.stringify(nW(e,t)),ne(t,n,"/",void 0,r)};w.serializeAws_json1_0UpdateItemCommand=Y2;var J2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateTable"},r;return r=JSON.stringify(iW(e,t)),ne(t,n,"/",void 0,r)};w.serializeAws_json1_0UpdateTableCommand=J2;var Q2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateTableReplicaAutoScaling"},r;return r=JSON.stringify(sW(e,t)),ne(t,n,"/",void 0,r)};w.serializeAws_json1_0UpdateTableReplicaAutoScalingCommand=Q2;var X2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateTimeToLive"},r;return r=JSON.stringify(oW(e,t)),ne(t,n,"/",void 0,r)};w.serializeAws_json1_0UpdateTimeToLiveCommand=X2;var Z2=async(e,t)=>{if(e.statusCode>=300)return eV(e,t);let n=await N(e.body,t),r={};r=vW(n,t);let i=a({$metadata:x(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0BatchExecuteStatementCommand=Z2;var eV=async(e,t)=>{let n=g(a({},e),{body:await N(e.body,t)}),r,i="UnknownError";switch(i=re(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(n,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Mt(n,t);default:let s=n.body;throw r=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(r,s)}},tV=async(e,t)=>{if(e.statusCode>=300)return nV(e,t);let n=await N(e.body,t),r={};r=wW(n,t);let i=a({$metadata:x(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0BatchGetItemCommand=tV;var nV=async(e,t)=>{let n=g(a({},e),{body:await N(e.body,t)}),r,i="UnknownError";switch(i=re(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(n,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await $t(n,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Mt(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(n,t);default:let s=n.body;throw r=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(r,s)}},rV=async(e,t)=>{if(e.statusCode>=300)return iV(e,t);let n=await N(e.body,t),r={};r=CW(n,t);let i=a({$metadata:x(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0BatchWriteItemCommand=rV;var iV=async(e,t)=>{let n=g(a({},e),{body:await N(e.body,t)}),r,i="UnknownError";switch(i=re(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(n,t);case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":throw await Go(n,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await $t(n,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Mt(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(n,t);default:let s=n.body;throw r=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(r,s)}},sV=async(e,t)=>{if(e.statusCode>=300)return oV(e,t);let n=await N(e.body,t),r={};r=MW(n,t);let i=a({$metadata:x(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0CreateBackupCommand=sV;var oV=async(e,t)=>{let n=g(a({},e),{body:await N(e.body,t)}),r,i="UnknownError";switch(i=re(e,n.body),i){case"BackupInUseException":case"com.amazonaws.dynamodb#BackupInUseException":throw await ay(n,t);case"ContinuousBackupsUnavailableException":case"com.amazonaws.dynamodb#ContinuousBackupsUnavailableException":throw await UA(n,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(n,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Xe(n,t);case"TableInUseException":case"com.amazonaws.dynamodb#TableInUseException":throw await ly(n,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await ii(n,t);default:let s=n.body;throw r=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(r,s)}},aV=async(e,t)=>{if(e.statusCode>=300)return cV(e,t);let n=await N(e.body,t),r={};r=zW(n,t);let i=a({$metadata:x(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0CreateGlobalTableCommand=aV;var cV=async(e,t)=>{let n=g(a({},e),{body:await N(e.body,t)}),r,i="UnknownError";switch(i=re(e,n.body),i){case"GlobalTableAlreadyExistsException":case"com.amazonaws.dynamodb#GlobalTableAlreadyExistsException":throw await WK(n,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(n,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Xe(n,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await ii(n,t);default:let s=n.body;throw r=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(r,s)}},lV=async(e,t)=>{if(e.statusCode>=300)return uV(e,t);let n=await N(e.body,t),r={};r=jW(n,t);let i=a({$metadata:x(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0CreateTableCommand=lV;var uV=async(e,t)=>{let n=g(a({},e),{body:await N(e.body,t)}),r,i="UnknownError";switch(i=re(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(n,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Xe(n,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await hn(n,t);default:let s=n.body;throw r=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(r,s)}},dV=async(e,t)=>{if(e.statusCode>=300)return fV(e,t);let n=await N(e.body,t),r={};r=kW(n,t);let i=a({$metadata:x(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0DeleteBackupCommand=dV;var fV=async(e,t)=>{let n=g(a({},e),{body:await N(e.body,t)}),r,i="UnknownError";switch(i=re(e,n.body),i){case"BackupInUseException":case"com.amazonaws.dynamodb#BackupInUseException":throw await ay(n,t);case"BackupNotFoundException":case"com.amazonaws.dynamodb#BackupNotFoundException":throw await cy(n,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(n,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Xe(n,t);default:let s=n.body;throw r=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(r,s)}},mV=async(e,t)=>{if(e.statusCode>=300)return pV(e,t);let n=await N(e.body,t),r={};r=FW(n,t);let i=a({$metadata:x(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0DeleteItemCommand=mV;var pV=async(e,t)=>{let n=g(a({},e),{body:await N(e.body,t)}),r,i="UnknownError";switch(i=re(e,n.body),i){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":throw await gl(n,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(n,t);case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":throw await Go(n,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await $t(n,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Mt(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(n,t);case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":throw await vl(n,t);default:let s=n.body;throw r=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(r,s)}},hV=async(e,t)=>{if(e.statusCode>=300)return _V(e,t);let n=await N(e.body,t),r={};r=BW(n,t);let i=a({$metadata:x(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0DeleteTableCommand=hV;var _V=async(e,t)=>{let n=g(a({},e),{body:await N(e.body,t)}),r,i="UnknownError";switch(i=re(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(n,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Xe(n,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await hn(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(n,t);default:let s=n.body;throw r=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(r,s)}},yV=async(e,t)=>{if(e.statusCode>=300)return gV(e,t);let n=await N(e.body,t),r={};r=GW(n,t);let i=a({$metadata:x(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeBackupCommand=yV;var gV=async(e,t)=>{let n=g(a({},e),{body:await N(e.body,t)}),r,i="UnknownError";switch(i=re(e,n.body),i){case"BackupNotFoundException":case"com.amazonaws.dynamodb#BackupNotFoundException":throw await cy(n,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(n,t);default:let s=n.body;throw r=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(r,s)}},SV=async(e,t)=>{if(e.statusCode>=300)return vV(e,t);let n=await N(e.body,t),r={};r=$W(n,t);let i=a({$metadata:x(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeContinuousBackupsCommand=SV;var vV=async(e,t)=>{let n=g(a({},e),{body:await N(e.body,t)}),r,i="UnknownError";switch(i=re(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(n,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await ii(n,t);default:let s=n.body;throw r=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(r,s)}},wV=async(e,t)=>{if(e.statusCode>=300)return bV(e,t);let n=await N(e.body,t),r={};r=VW(n,t);let i=a({$metadata:x(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeContributorInsightsCommand=wV;var bV=async(e,t)=>{let n=g(a({},e),{body:await N(e.body,t)}),r,i="UnknownError";switch(i=re(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(n,t);default:let s=n.body;throw r=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(r,s)}},EV=async(e,t)=>{if(e.statusCode>=300)return AV(e,t);let n=await N(e.body,t),r={};r=KW(n,t);let i=a({$metadata:x(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeEndpointsCommand=EV;var AV=async(e,t)=>{let n=g(a({},e),{body:await N(e.body,t)}),r,i="UnknownError";switch(i=re(e,n.body),i){default:let s=n.body;throw r=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(r,s)}},TV=async(e,t)=>{if(e.statusCode>=300)return CV(e,t);let n=await N(e.body,t),r={};r=HW(n,t);let i=a({$metadata:x(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeExportCommand=TV;var CV=async(e,t)=>{let n=g(a({},e),{body:await N(e.body,t)}),r,i="UnknownError";switch(i=re(e,n.body),i){case"ExportNotFoundException":case"com.amazonaws.dynamodb#ExportNotFoundException":throw await HK(n,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(n,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Xe(n,t);default:let s=n.body;throw r=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(r,s)}},xV=async(e,t)=>{if(e.statusCode>=300)return IV(e,t);let n=await N(e.body,t),r={};r=WW(n,t);let i=a({$metadata:x(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeGlobalTableCommand=xV;var IV=async(e,t)=>{let n=g(a({},e),{body:await N(e.body,t)}),r,i="UnknownError";switch(i=re(e,n.body),i){case"GlobalTableNotFoundException":case"com.amazonaws.dynamodb#GlobalTableNotFoundException":throw await Sl(n,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(n,t);default:let s=n.body;throw r=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(r,s)}},RV=async(e,t)=>{if(e.statusCode>=300)return DV(e,t);let n=await N(e.body,t),r={};r=YW(n,t);let i=a({$metadata:x(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeGlobalTableSettingsCommand=RV;var DV=async(e,t)=>{let n=g(a({},e),{body:await N(e.body,t)}),r,i="UnknownError";switch(i=re(e,n.body),i){case"GlobalTableNotFoundException":case"com.amazonaws.dynamodb#GlobalTableNotFoundException":throw await Sl(n,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(n,t);default:let s=n.body;throw r=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(r,s)}},NV=async(e,t)=>{if(e.statusCode>=300)return PV(e,t);let n=await N(e.body,t),r={};r=JW(n,t);let i=a({$metadata:x(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand=NV;var PV=async(e,t)=>{let n=g(a({},e),{body:await N(e.body,t)}),r,i="UnknownError";switch(i=re(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(n,t);default:let s=n.body;throw r=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(r,s)}},OV=async(e,t)=>{if(e.statusCode>=300)return LV(e,t);let n=await N(e.body,t),r={};r=QW(n,t);let i=a({$metadata:x(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeLimitsCommand=OV;var LV=async(e,t)=>{let n=g(a({},e),{body:await N(e.body,t)}),r,i="UnknownError";switch(i=re(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(n,t);default:let s=n.body;throw r=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(r,s)}},qV=async(e,t)=>{if(e.statusCode>=300)return MV(e,t);let n=await N(e.body,t),r={};r=XW(n,t);let i=a({$metadata:x(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeTableCommand=qV;var MV=async(e,t)=>{let n=g(a({},e),{body:await N(e.body,t)}),r,i="UnknownError";switch(i=re(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(n,t);default:let s=n.body;throw r=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(r,s)}},zV=async(e,t)=>{if(e.statusCode>=300)return jV(e,t);let n=await N(e.body,t),r={};r=ZW(n,t);let i=a({$metadata:x(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand=zV;var jV=async(e,t)=>{let n=g(a({},e),{body:await N(e.body,t)}),r,i="UnknownError";switch(i=re(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(n,t);default:let s=n.body;throw r=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(r,s)}},kV=async(e,t)=>{if(e.statusCode>=300)return FV(e,t);let n=await N(e.body,t),r={};r=e8(n,t);let i=a({$metadata:x(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeTimeToLiveCommand=kV;var FV=async(e,t)=>{let n=g(a({},e),{body:await N(e.body,t)}),r,i="UnknownError";switch(i=re(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(n,t);default:let s=n.body;throw r=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(r,s)}},UV=async(e,t)=>{if(e.statusCode>=300)return BV(e,t);let n=await N(e.body,t),r={};r=lT(n,t);let i=a({$metadata:x(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0DisableKinesisStreamingDestinationCommand=UV;var BV=async(e,t)=>{let n=g(a({},e),{body:await N(e.body,t)}),r,i="UnknownError";switch(i=re(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(n,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Xe(n,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await hn(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(n,t);default:let s=n.body;throw r=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(r,s)}},GV=async(e,t)=>{if(e.statusCode>=300)return $V(e,t);let n=await N(e.body,t),r={};r=lT(n,t);let i=a({$metadata:x(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0EnableKinesisStreamingDestinationCommand=GV;var $V=async(e,t)=>{let n=g(a({},e),{body:await N(e.body,t)}),r,i="UnknownError";switch(i=re(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(n,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Xe(n,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await hn(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(n,t);default:let s=n.body;throw r=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(r,s)}},VV=async(e,t)=>{if(e.statusCode>=300)return KV(e,t);let n=await N(e.body,t),r={};r=i8(n,t);let i=a({$metadata:x(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0ExecuteStatementCommand=VV;var KV=async(e,t)=>{let n=g(a({},e),{body:await N(e.body,t)}),r,i="UnknownError";switch(i=re(e,n.body),i){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":throw await gl(n,t);case"DuplicateItemException":case"com.amazonaws.dynamodb#DuplicateItemException":throw await VK(n,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(n,t);case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":throw await Go(n,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await $t(n,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Mt(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(n,t);case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":throw await vl(n,t);default:let s=n.body;throw r=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(r,s)}},HV=async(e,t)=>{if(e.statusCode>=300)return WV(e,t);let n=await N(e.body,t),r={};r=s8(n,t);let i=a({$metadata:x(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0ExecuteTransactionCommand=HV;var WV=async(e,t)=>{let n=g(a({},e),{body:await N(e.body,t)}),r,i="UnknownError";switch(i=re(e,n.body),i){case"IdempotentParameterMismatchException":case"com.amazonaws.dynamodb#IdempotentParameterMismatchException":throw await BA(n,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(n,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await $t(n,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Mt(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(n,t);case"TransactionCanceledException":case"com.amazonaws.dynamodb#TransactionCanceledException":throw await uy(n,t);case"TransactionInProgressException":case"com.amazonaws.dynamodb#TransactionInProgressException":throw await KA(n,t);default:let s=n.body;throw r=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(r,s)}},YV=async(e,t)=>{if(e.statusCode>=300)return JV(e,t);let n=await N(e.body,t),r={};r=u8(n,t);let i=a({$metadata:x(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0ExportTableToPointInTimeCommand=YV;var JV=async(e,t)=>{let n=g(a({},e),{body:await N(e.body,t)}),r,i="UnknownError";switch(i=re(e,n.body),i){case"ExportConflictException":case"com.amazonaws.dynamodb#ExportConflictException":throw await KK(n,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(n,t);case"InvalidExportTimeException":case"com.amazonaws.dynamodb#InvalidExportTimeException":throw await JK(n,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Xe(n,t);case"PointInTimeRecoveryUnavailableException":case"com.amazonaws.dynamodb#PointInTimeRecoveryUnavailableException":throw await GA(n,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await ii(n,t);default:let s=n.body;throw r=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(r,s)}},QV=async(e,t)=>{if(e.statusCode>=300)return XV(e,t);let n=await N(e.body,t),r={};r=m8(n,t);let i=a({$metadata:x(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0GetItemCommand=QV;var XV=async(e,t)=>{let n=g(a({},e),{body:await N(e.body,t)}),r,i="UnknownError";switch(i=re(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(n,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await $t(n,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Mt(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(n,t);default:let s=n.body;throw r=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(r,s)}},ZV=async(e,t)=>{if(e.statusCode>=300)return eK(e,t);let n=await N(e.body,t),r={};r=F8(n,t);let i=a({$metadata:x(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0ListBackupsCommand=ZV;var eK=async(e,t)=>{let n=g(a({},e),{body:await N(e.body,t)}),r,i="UnknownError";switch(i=re(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(n,t);default:let s=n.body;throw r=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(r,s)}},tK=async(e,t)=>{if(e.statusCode>=300)return nK(e,t);let n=await N(e.body,t),r={};r=U8(n,t);let i=a({$metadata:x(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0ListContributorInsightsCommand=tK;var nK=async(e,t)=>{let n=g(a({},e),{body:await N(e.body,t)}),r,i="UnknownError";switch(i=re(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(n,t);default:let s=n.body;throw r=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(r,s)}},rK=async(e,t)=>{if(e.statusCode>=300)return iK(e,t);let n=await N(e.body,t),r={};r=B8(n,t);let i=a({$metadata:x(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0ListExportsCommand=rK;var iK=async(e,t)=>{let n=g(a({},e),{body:await N(e.body,t)}),r,i="UnknownError";switch(i=re(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(n,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Xe(n,t);default:let s=n.body;throw r=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(r,s)}},sK=async(e,t)=>{if(e.statusCode>=300)return oK(e,t);let n=await N(e.body,t),r={};r=G8(n,t);let i=a({$metadata:x(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0ListGlobalTablesCommand=sK;var oK=async(e,t)=>{let n=g(a({},e),{body:await N(e.body,t)}),r,i="UnknownError";switch(i=re(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(n,t);default:let s=n.body;throw r=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(r,s)}},aK=async(e,t)=>{if(e.statusCode>=300)return cK(e,t);let n=await N(e.body,t),r={};r=$8(n,t);let i=a({$metadata:x(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0ListTablesCommand=aK;var cK=async(e,t)=>{let n=g(a({},e),{body:await N(e.body,t)}),r,i="UnknownError";switch(i=re(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(n,t);default:let s=n.body;throw r=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(r,s)}},lK=async(e,t)=>{if(e.statusCode>=300)return uK(e,t);let n=await N(e.body,t),r={};r=V8(n,t);let i=a({$metadata:x(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0ListTagsOfResourceCommand=lK;var uK=async(e,t)=>{let n=g(a({},e),{body:await N(e.body,t)}),r,i="UnknownError";switch(i=re(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(n,t);default:let s=n.body;throw r=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(r,s)}},dK=async(e,t)=>{if(e.statusCode>=300)return fK(e,t);let n=await N(e.body,t),r={};r=i6(n,t);let i=a({$metadata:x(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0PutItemCommand=dK;var fK=async(e,t)=>{let n=g(a({},e),{body:await N(e.body,t)}),r,i="UnknownError";switch(i=re(e,n.body),i){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":throw await gl(n,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(n,t);case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":throw await Go(n,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await $t(n,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Mt(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(n,t);case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":throw await vl(n,t);default:let s=n.body;throw r=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(r,s)}},mK=async(e,t)=>{if(e.statusCode>=300)return pK(e,t);let n=await N(e.body,t),r={};r=o6(n,t);let i=a({$metadata:x(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0QueryCommand=mK;var pK=async(e,t)=>{let n=g(a({},e),{body:await N(e.body,t)}),r,i="UnknownError";switch(i=re(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(n,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await $t(n,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Mt(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(n,t);default:let s=n.body;throw r=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(r,s)}},hK=async(e,t)=>{if(e.statusCode>=300)return _K(e,t);let n=await N(e.body,t),r={};r=T6(n,t);let i=a({$metadata:x(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0RestoreTableFromBackupCommand=hK;var _K=async(e,t)=>{let n=g(a({},e),{body:await N(e.body,t)}),r,i="UnknownError";switch(i=re(e,n.body),i){case"BackupInUseException":case"com.amazonaws.dynamodb#BackupInUseException":throw await ay(n,t);case"BackupNotFoundException":case"com.amazonaws.dynamodb#BackupNotFoundException":throw await cy(n,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(n,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Xe(n,t);case"TableAlreadyExistsException":case"com.amazonaws.dynamodb#TableAlreadyExistsException":throw await VA(n,t);case"TableInUseException":case"com.amazonaws.dynamodb#TableInUseException":throw await ly(n,t);default:let s=n.body;throw r=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(r,s)}},yK=async(e,t)=>{if(e.statusCode>=300)return gK(e,t);let n=await N(e.body,t),r={};r=C6(n,t);let i=a({$metadata:x(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0RestoreTableToPointInTimeCommand=yK;var gK=async(e,t)=>{let n=g(a({},e),{body:await N(e.body,t)}),r,i="UnknownError";switch(i=re(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(n,t);case"InvalidRestoreTimeException":case"com.amazonaws.dynamodb#InvalidRestoreTimeException":throw await QK(n,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Xe(n,t);case"PointInTimeRecoveryUnavailableException":case"com.amazonaws.dynamodb#PointInTimeRecoveryUnavailableException":throw await GA(n,t);case"TableAlreadyExistsException":case"com.amazonaws.dynamodb#TableAlreadyExistsException":throw await VA(n,t);case"TableInUseException":case"com.amazonaws.dynamodb#TableInUseException":throw await ly(n,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await ii(n,t);default:let s=n.body;throw r=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(r,s)}},SK=async(e,t)=>{if(e.statusCode>=300)return vK(e,t);let n=await N(e.body,t),r={};r=x6(n,t);let i=a({$metadata:x(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0ScanCommand=SK;var vK=async(e,t)=>{let n=g(a({},e),{body:await N(e.body,t)}),r,i="UnknownError";switch(i=re(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(n,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await $t(n,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Mt(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(n,t);default:let s=n.body;throw r=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(r,s)}},wK=async(e,t)=>{if(e.statusCode>=300)return bK(e,t);await vy(e.body,t);let n={$metadata:x(e)};return Promise.resolve(n)};w.deserializeAws_json1_0TagResourceCommand=wK;var bK=async(e,t)=>{let n=g(a({},e),{body:await N(e.body,t)}),r,i="UnknownError";switch(i=re(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(n,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Xe(n,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await hn(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(n,t);default:let s=n.body;throw r=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(r,s)}},EK=async(e,t)=>{if(e.statusCode>=300)return AK(e,t);let n=await N(e.body,t),r={};r=j6(n,t);let i=a({$metadata:x(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0TransactGetItemsCommand=EK;var AK=async(e,t)=>{let n=g(a({},e),{body:await N(e.body,t)}),r,i="UnknownError";switch(i=re(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(n,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await $t(n,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Mt(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(n,t);case"TransactionCanceledException":case"com.amazonaws.dynamodb#TransactionCanceledException":throw await uy(n,t);default:let s=n.body;throw r=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(r,s)}},TK=async(e,t)=>{if(e.statusCode>=300)return CK(e,t);let n=await N(e.body,t),r={};r=B6(n,t);let i=a({$metadata:x(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0TransactWriteItemsCommand=TK;var CK=async(e,t)=>{let n=g(a({},e),{body:await N(e.body,t)}),r,i="UnknownError";switch(i=re(e,n.body),i){case"IdempotentParameterMismatchException":case"com.amazonaws.dynamodb#IdempotentParameterMismatchException":throw await BA(n,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(n,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await $t(n,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Mt(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(n,t);case"TransactionCanceledException":case"com.amazonaws.dynamodb#TransactionCanceledException":throw await uy(n,t);case"TransactionInProgressException":case"com.amazonaws.dynamodb#TransactionInProgressException":throw await KA(n,t);default:let s=n.body;throw r=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(r,s)}},xK=async(e,t)=>{if(e.statusCode>=300)return IK(e,t);await vy(e.body,t);let n={$metadata:x(e)};return Promise.resolve(n)};w.deserializeAws_json1_0UntagResourceCommand=xK;var IK=async(e,t)=>{let n=g(a({},e),{body:await N(e.body,t)}),r,i="UnknownError";switch(i=re(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(n,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Xe(n,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await hn(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(n,t);default:let s=n.body;throw r=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(r,s)}},RK=async(e,t)=>{if(e.statusCode>=300)return DK(e,t);let n=await N(e.body,t),r={};r=G6(n,t);let i=a({$metadata:x(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0UpdateContinuousBackupsCommand=RK;var DK=async(e,t)=>{let n=g(a({},e),{body:await N(e.body,t)}),r,i="UnknownError";switch(i=re(e,n.body),i){case"ContinuousBackupsUnavailableException":case"com.amazonaws.dynamodb#ContinuousBackupsUnavailableException":throw await UA(n,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(n,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await ii(n,t);default:let s=n.body;throw r=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(r,s)}},NK=async(e,t)=>{if(e.statusCode>=300)return PK(e,t);let n=await N(e.body,t),r={};r=$6(n,t);let i=a({$metadata:x(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0UpdateContributorInsightsCommand=NK;var PK=async(e,t)=>{let n=g(a({},e),{body:await N(e.body,t)}),r,i="UnknownError";switch(i=re(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(n,t);default:let s=n.body;throw r=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(r,s)}},OK=async(e,t)=>{if(e.statusCode>=300)return LK(e,t);let n=await N(e.body,t),r={};r=V6(n,t);let i=a({$metadata:x(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0UpdateGlobalTableCommand=OK;var LK=async(e,t)=>{let n=g(a({},e),{body:await N(e.body,t)}),r,i="UnknownError";switch(i=re(e,n.body),i){case"GlobalTableNotFoundException":case"com.amazonaws.dynamodb#GlobalTableNotFoundException":throw await Sl(n,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(n,t);case"ReplicaAlreadyExistsException":case"com.amazonaws.dynamodb#ReplicaAlreadyExistsException":throw await XK(n,t);case"ReplicaNotFoundException":case"com.amazonaws.dynamodb#ReplicaNotFoundException":throw await $A(n,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await ii(n,t);default:let s=n.body;throw r=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(r,s)}},qK=async(e,t)=>{if(e.statusCode>=300)return MK(e,t);let n=await N(e.body,t),r={};r=K6(n,t);let i=a({$metadata:x(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0UpdateGlobalTableSettingsCommand=qK;var MK=async(e,t)=>{let n=g(a({},e),{body:await N(e.body,t)}),r,i="UnknownError";switch(i=re(e,n.body),i){case"GlobalTableNotFoundException":case"com.amazonaws.dynamodb#GlobalTableNotFoundException":throw await Sl(n,t);case"IndexNotFoundException":case"com.amazonaws.dynamodb#IndexNotFoundException":throw await YK(n,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(n,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Xe(n,t);case"ReplicaNotFoundException":case"com.amazonaws.dynamodb#ReplicaNotFoundException":throw await $A(n,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await hn(n,t);default:let s=n.body;throw r=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(r,s)}},zK=async(e,t)=>{if(e.statusCode>=300)return jK(e,t);let n=await N(e.body,t),r={};r=H6(n,t);let i=a({$metadata:x(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0UpdateItemCommand=zK;var jK=async(e,t)=>{let n=g(a({},e),{body:await N(e.body,t)}),r,i="UnknownError";switch(i=re(e,n.body),i){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":throw await gl(n,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(n,t);case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":throw await Go(n,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await $t(n,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Mt(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(n,t);case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":throw await vl(n,t);default:let s=n.body;throw r=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(r,s)}},kK=async(e,t)=>{if(e.statusCode>=300)return FK(e,t);let n=await N(e.body,t),r={};r=W6(n,t);let i=a({$metadata:x(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0UpdateTableCommand=kK;var FK=async(e,t)=>{let n=g(a({},e),{body:await N(e.body,t)}),r,i="UnknownError";switch(i=re(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(n,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Xe(n,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await hn(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(n,t);default:let s=n.body;throw r=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(r,s)}},UK=async(e,t)=>{if(e.statusCode>=300)return BK(e,t);let n=await N(e.body,t),r={};r=Y6(n,t);let i=a({$metadata:x(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand=UK;var BK=async(e,t)=>{let n=g(a({},e),{body:await N(e.body,t)}),r,i="UnknownError";switch(i=re(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(n,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Xe(n,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await hn(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(n,t);default:let s=n.body;throw r=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(r,s)}},GK=async(e,t)=>{if(e.statusCode>=300)return $K(e,t);let n=await N(e.body,t),r={};r=J6(n,t);let i=a({$metadata:x(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0UpdateTimeToLiveCommand=GK;var $K=async(e,t)=>{let n=g(a({},e),{body:await N(e.body,t)}),r,i="UnknownError";switch(i=re(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(n,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Xe(n,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await hn(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(n,t);default:let s=n.body;throw r=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,p.decorateServiceException)(r,s)}},ay=async(e,t)=>{let n=e.body,r=_W(n,t),i=new ve.BackupInUseException(a({$metadata:x(e)},r));return(0,p.decorateServiceException)(i,n)},cy=async(e,t)=>{let n=e.body,r=yW(n,t),i=new ve.BackupNotFoundException(a({$metadata:x(e)},r));return(0,p.decorateServiceException)(i,n)},gl=async(e,t)=>{let n=e.body,r=NW(n,t),i=new ve.ConditionalCheckFailedException(a({$metadata:x(e)},r));return(0,p.decorateServiceException)(i,n)},UA=async(e,t)=>{let n=e.body,r=PW(n,t),i=new ve.ContinuousBackupsUnavailableException(a({$metadata:x(e)},r));return(0,p.decorateServiceException)(i,n)},VK=async(e,t)=>{let n=e.body,r=t8(n,t),i=new ve.DuplicateItemException(a({$metadata:x(e)},r));return(0,p.decorateServiceException)(i,n)},KK=async(e,t)=>{let n=e.body,r=o8(n,t),i=new ve.ExportConflictException(a({$metadata:x(e)},r));return(0,p.decorateServiceException)(i,n)},HK=async(e,t)=>{let n=e.body,r=a8(n,t),i=new ve.ExportNotFoundException(a({$metadata:x(e)},r));return(0,p.decorateServiceException)(i,n)},WK=async(e,t)=>{let n=e.body,r=S8(n,t),i=new ve.GlobalTableAlreadyExistsException(a({$metadata:x(e)},r));return(0,p.decorateServiceException)(i,n)},Sl=async(e,t)=>{let n=e.body,r=w8(n,t),i=new ve.GlobalTableNotFoundException(a({$metadata:x(e)},r));return(0,p.decorateServiceException)(i,n)},BA=async(e,t)=>{let n=e.body,r=b8(n,t),i=new ve.IdempotentParameterMismatchException(a({$metadata:x(e)},r));return(0,p.decorateServiceException)(i,n)},YK=async(e,t)=>{let n=e.body,r=E8(n,t),i=new ve.IndexNotFoundException(a({$metadata:x(e)},r));return(0,p.decorateServiceException)(i,n)},se=async(e,t)=>{let n=e.body,r=A8(n,t),i=new ve.InternalServerError(a({$metadata:x(e)},r));return(0,p.decorateServiceException)(i,n)},de=async(e,t)=>{let n=e.body,r=T8(n,t),i=new ve.InvalidEndpointException(a({$metadata:x(e)},r));return(0,p.decorateServiceException)(i,n)},JK=async(e,t)=>{let n=e.body,r=C8(n,t),i=new ve.InvalidExportTimeException(a({$metadata:x(e)},r));return(0,p.decorateServiceException)(i,n)},QK=async(e,t)=>{let n=e.body,r=x8(n,t),i=new ve.InvalidRestoreTimeException(a({$metadata:x(e)},r));return(0,p.decorateServiceException)(i,n)},Go=async(e,t)=>{let n=e.body,r=N8(n,t),i=new ve.ItemCollectionSizeLimitExceededException(a({$metadata:x(e)},r));return(0,p.decorateServiceException)(i,n)},Xe=async(e,t)=>{let n=e.body,r=j8(n,t),i=new ve.LimitExceededException(a({$metadata:x(e)},r));return(0,p.decorateServiceException)(i,n)},GA=async(e,t)=>{let n=e.body,r=t6(n,t),i=new ve.PointInTimeRecoveryUnavailableException(a({$metadata:x(e)},r));return(0,p.decorateServiceException)(i,n)},$t=async(e,t)=>{let n=e.body,r=n6(n,t),i=new ve.ProvisionedThroughputExceededException(a({$metadata:x(e)},r));return(0,p.decorateServiceException)(i,n)},XK=async(e,t)=>{let n=e.body,r=c6(n,t),i=new ve.ReplicaAlreadyExistsException(a({$metadata:x(e)},r));return(0,p.decorateServiceException)(i,n)},$A=async(e,t)=>{let n=e.body,r=S6(n,t),i=new ve.ReplicaNotFoundException(a({$metadata:x(e)},r));return(0,p.decorateServiceException)(i,n)},Mt=async(e,t)=>{let n=e.body,r=w6(n,t),i=new ve.RequestLimitExceeded(a({$metadata:x(e)},r));return(0,p.decorateServiceException)(i,n)},hn=async(e,t)=>{let n=e.body,r=b6(n,t),i=new ve.ResourceInUseException(a({$metadata:x(e)},r));return(0,p.decorateServiceException)(i,n)},Ie=async(e,t)=>{let n=e.body,r=E6(n,t),i=new ve.ResourceNotFoundException(a({$metadata:x(e)},r));return(0,p.decorateServiceException)(i,n)},VA=async(e,t)=>{let n=e.body,r=N6(n,t),i=new ve.TableAlreadyExistsException(a({$metadata:x(e)},r));return(0,p.decorateServiceException)(i,n)},ly=async(e,t)=>{let n=e.body,r=P6(n,t),i=new ve.TableInUseException(a({$metadata:x(e)},r));return(0,p.decorateServiceException)(i,n)},ii=async(e,t)=>{let n=e.body,r=L6(n,t),i=new ve.TableNotFoundException(a({$metadata:x(e)},r));return(0,p.decorateServiceException)(i,n)},uy=async(e,t)=>{let n=e.body,r=k6(n,t),i=new ve.TransactionCanceledException(a({$metadata:x(e)},r));return(0,p.decorateServiceException)(i,n)},vl=async(e,t)=>{let n=e.body,r=F6(n,t),i=new ve.TransactionConflictException(a({$metadata:x(e)},r));return(0,p.decorateServiceException)(i,n)},KA=async(e,t)=>{let n=e.body,r=U6(n,t),i=new ve.TransactionInProgressException(a({$metadata:x(e)},r));return(0,p.decorateServiceException)(i,n)},ZK=(e,t)=>a(a({},e.AttributeName!==void 0&&e.AttributeName!==null&&{AttributeName:e.AttributeName}),e.AttributeType!==void 0&&e.AttributeType!==null&&{AttributeType:e.AttributeType}),HA=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:ZK(n,t)),wl=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),e3=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:g(a({},n),{[r]:t3(i,t)}),{}),$n=(e,t)=>ve.AttributeValue.visit(e,{B:n=>({B:t.base64Encoder(n)}),BOOL:n=>({BOOL:n}),BS:n=>({BS:u3(n,t)}),L:n=>({L:tH(n,t)}),M:n=>({M:lH(n,t)}),N:n=>({N:n}),NS:n=>({NS:dH(n,t)}),NULL:n=>({NULL:n}),S:n=>({S:n}),SS:n=>({SS:jH(n,t)}),_:(n,r)=>({name:r})}),WA=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:$n(n,t)),t3=(e,t)=>a(a({},e.Action!==void 0&&e.Action!==null&&{Action:e.Action}),e.Value!==void 0&&e.Value!==null&&{Value:$n(e.Value,t)}),n3=(e,t)=>a(a({},e.PolicyName!==void 0&&e.PolicyName!==null&&{PolicyName:e.PolicyName}),e.TargetTrackingScalingPolicyConfiguration!==void 0&&e.TargetTrackingScalingPolicyConfiguration!==null&&{TargetTrackingScalingPolicyConfiguration:r3(e.TargetTrackingScalingPolicyConfiguration,t)}),wr=(e,t)=>a(a(a(a(a({},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:n3(e.ScalingPolicyUpdate,t)}),r3=(e,t)=>a(a(a(a({},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)}),i3=(e,t)=>a(a({},e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.Statements!==void 0&&e.Statements!==null&&{Statements:pH(e.Statements,t)}),s3=(e,t)=>a(a({},e.RequestItems!==void 0&&e.RequestItems!==null&&{RequestItems:o3(e.RequestItems,t)}),e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),o3=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:g(a({},n),{[r]:Z3(i,t)}),{}),a3=(e,t)=>a(a(a({},e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead}),e.Parameters!==void 0&&e.Parameters!==null&&{Parameters:py(e.Parameters,t)}),e.Statement!==void 0&&e.Statement!==null&&{Statement:e.Statement}),c3=(e,t)=>a(a(a({},e.RequestItems!==void 0&&e.RequestItems!==null&&{RequestItems:l3(e.RequestItems,t)}),e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.ReturnItemCollectionMetrics!==void 0&&e.ReturnItemCollectionMetrics!==null&&{ReturnItemCollectionMetrics:e.ReturnItemCollectionMetrics}),l3=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:g(a({},n),{[r]:cW(i,t)}),{}),u3=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:t.base64Encoder(n)),YA=(e,t)=>a(a({},e.AttributeValueList!==void 0&&e.AttributeValueList!==null&&{AttributeValueList:WA(e.AttributeValueList,t)}),e.ComparisonOperator!==void 0&&e.ComparisonOperator!==null&&{ComparisonOperator:e.ComparisonOperator}),d3=(e,t)=>a(a(a(a(a(a({},e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Vt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:Vn(e.ExpressionAttributeValues,t)}),e.Key!==void 0&&e.Key!==null&&{Key:en(e.Key,t)}),e.ReturnValuesOnConditionCheckFailure!==void 0&&e.ReturnValuesOnConditionCheckFailure!==null&&{ReturnValuesOnConditionCheckFailure:e.ReturnValuesOnConditionCheckFailure}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),f3=(e,t)=>a(a({},e.BackupName!==void 0&&e.BackupName!==null&&{BackupName:e.BackupName}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),m3=(e,t)=>a(a(a(a({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:bl(e.KeySchema,t)}),e.Projection!==void 0&&e.Projection!==null&&{Projection:hy(e.Projection,t)}),e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:si(e.ProvisionedThroughput,t)}),p3=(e,t)=>a(a({},e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName}),e.ReplicationGroup!==void 0&&e.ReplicationGroup!==null&&{ReplicationGroup:IH(e.ReplicationGroup,t)}),h3=(e,t)=>a({},e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),_3=(e,t)=>a(a(a(a(a({},e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null&&{GlobalSecondaryIndexes:XA(e.GlobalSecondaryIndexes,t)}),e.KMSMasterKeyId!==void 0&&e.KMSMasterKeyId!==null&&{KMSMasterKeyId:e.KMSMasterKeyId}),e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:_y(e.ProvisionedThroughputOverride,t)}),e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),e.TableClassOverride!==void 0&&e.TableClassOverride!==null&&{TableClassOverride:e.TableClassOverride}),y3=(e,t)=>a(a(a(a(a(a(a(a(a(a(a({},e.AttributeDefinitions!==void 0&&e.AttributeDefinitions!==null&&{AttributeDefinitions:HA(e.AttributeDefinitions,t)}),e.BillingMode!==void 0&&e.BillingMode!==null&&{BillingMode:e.BillingMode}),e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null&&{GlobalSecondaryIndexes:fy(e.GlobalSecondaryIndexes,t)}),e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:bl(e.KeySchema,t)}),e.LocalSecondaryIndexes!==void 0&&e.LocalSecondaryIndexes!==null&&{LocalSecondaryIndexes:my(e.LocalSecondaryIndexes,t)}),e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:si(e.ProvisionedThroughput,t)}),e.SSESpecification!==void 0&&e.SSESpecification!==null&&{SSESpecification:El(e.SSESpecification,t)}),e.StreamSpecification!==void 0&&e.StreamSpecification!==null&&{StreamSpecification:ZA(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:eT(e.Tags,t)}),g3=(e,t)=>a(a(a(a(a(a({},e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Vt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:Vn(e.ExpressionAttributeValues,t)}),e.Key!==void 0&&e.Key!==null&&{Key:en(e.Key,t)}),e.ReturnValuesOnConditionCheckFailure!==void 0&&e.ReturnValuesOnConditionCheckFailure!==null&&{ReturnValuesOnConditionCheckFailure:e.ReturnValuesOnConditionCheckFailure}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),S3=(e,t)=>a({},e.BackupArn!==void 0&&e.BackupArn!==null&&{BackupArn:e.BackupArn}),v3=(e,t)=>a({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),w3=(e,t)=>a(a(a(a(a(a(a(a(a(a({},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:dy(e.Expected,t)}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Vt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:Vn(e.ExpressionAttributeValues,t)}),e.Key!==void 0&&e.Key!==null&&{Key:en(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}),b3=(e,t)=>a({},e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),E3=(e,t)=>a({},e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),A3=(e,t)=>a({},e.Key!==void 0&&e.Key!==null&&{Key:en(e.Key,t)}),T3=(e,t)=>a({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),C3=(e,t)=>a({},e.BackupArn!==void 0&&e.BackupArn!==null&&{BackupArn:e.BackupArn}),x3=(e,t)=>a({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),I3=(e,t)=>a(a({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),R3=(e,t)=>({}),D3=(e,t)=>a({},e.ExportArn!==void 0&&e.ExportArn!==null&&{ExportArn:e.ExportArn}),N3=(e,t)=>a({},e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName}),P3=(e,t)=>a({},e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName}),O3=(e,t)=>a({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),L3=(e,t)=>({}),q3=(e,t)=>a({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),M3=(e,t)=>a({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),z3=(e,t)=>a({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),j3=(e,t)=>a(a(a(a(a(a({},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:py(e.Parameters,t)}),e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.Statement!==void 0&&e.Statement!==null&&{Statement:e.Statement}),k3=(e,t)=>{var n;return a(a({ClientRequestToken:(n=e.ClientRequestToken)!==null&&n!==void 0?n:(0,oy.v4)()},e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.TransactStatements!==void 0&&e.TransactStatements!==null&&{TransactStatements:mH(e.TransactStatements,t)})},dy=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:g(a({},n),{[r]:F3(i,t)}),{}),F3=(e,t)=>a(a(a(a({},e.AttributeValueList!==void 0&&e.AttributeValueList!==null&&{AttributeValueList:WA(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:$n(e.Value,t)}),U3=(e,t)=>{var n;return a(a(a(a(a(a(a(a({ClientToken:(n=e.ClientToken)!==null&&n!==void 0?n:(0,oy.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})},Vt=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:g(a({},n),{[r]:i}),{}),Vn=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:g(a({},n),{[r]:$n(i,t)}),{}),JA=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:g(a({},n),{[r]:YA(i,t)}),{}),B3=(e,t)=>a(a(a(a({},e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Vt(e.ExpressionAttributeNames,t)}),e.Key!==void 0&&e.Key!==null&&{Key:en(e.Key,t)}),e.ProjectionExpression!==void 0&&e.ProjectionExpression!==null&&{ProjectionExpression:e.ProjectionExpression}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),G3=(e,t)=>a(a(a(a(a(a(a({},e.AttributesToGet!==void 0&&e.AttributesToGet!==null&&{AttributesToGet:wl(e.AttributesToGet,t)}),e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Vt(e.ExpressionAttributeNames,t)}),e.Key!==void 0&&e.Key!==null&&{Key:en(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}),$3=(e,t)=>a(a(a(a({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:bl(e.KeySchema,t)}),e.Projection!==void 0&&e.Projection!==null&&{Projection:hy(e.Projection,t)}),e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:si(e.ProvisionedThroughput,t)}),V3=(e,t)=>a(a({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.ProvisionedWriteCapacityAutoScalingUpdate!==void 0&&e.ProvisionedWriteCapacityAutoScalingUpdate!==null&&{ProvisionedWriteCapacityAutoScalingUpdate:wr(e.ProvisionedWriteCapacityAutoScalingUpdate,t)}),K3=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:V3(n,t)),fy=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:$3(n,t)),H3=(e,t)=>a(a(a({},e.Create!==void 0&&e.Create!==null&&{Create:m3(e.Create,t)}),e.Delete!==void 0&&e.Delete!==null&&{Delete:v3(e.Delete,t)}),e.Update!==void 0&&e.Update!==null&&{Update:ZH(e.Update,t)}),W3=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:H3(n,t)),Y3=(e,t)=>a(a(a({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.ProvisionedWriteCapacityAutoScalingSettingsUpdate!==void 0&&e.ProvisionedWriteCapacityAutoScalingSettingsUpdate!==null&&{ProvisionedWriteCapacityAutoScalingSettingsUpdate:wr(e.ProvisionedWriteCapacityAutoScalingSettingsUpdate,t)}),e.ProvisionedWriteCapacityUnits!==void 0&&e.ProvisionedWriteCapacityUnits!==null&&{ProvisionedWriteCapacityUnits:e.ProvisionedWriteCapacityUnits}),J3=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:Y3(n,t)),en=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:g(a({},n),{[r]:$n(i,t)}),{}),Q3=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:g(a({},n),{[r]:YA(i,t)}),{}),X3=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:en(n,t)),Z3=(e,t)=>a(a(a(a(a({},e.AttributesToGet!==void 0&&e.AttributesToGet!==null&&{AttributesToGet:wl(e.AttributesToGet,t)}),e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Vt(e.ExpressionAttributeNames,t)}),e.Keys!==void 0&&e.Keys!==null&&{Keys:X3(e.Keys,t)}),e.ProjectionExpression!==void 0&&e.ProjectionExpression!==null&&{ProjectionExpression:e.ProjectionExpression}),bl=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:eH(n,t)),eH=(e,t)=>a(a({},e.AttributeName!==void 0&&e.AttributeName!==null&&{AttributeName:e.AttributeName}),e.KeyType!==void 0&&e.KeyType!==null&&{KeyType:e.KeyType}),QA=(e,t)=>a(a({},e.StreamArn!==void 0&&e.StreamArn!==null&&{StreamArn:e.StreamArn}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),tH=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:$n(n,t)),nH=(e,t)=>a(a(a(a(a(a({},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)}),rH=(e,t)=>a(a(a({},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}),iH=(e,t)=>a(a(a({},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}),sH=(e,t)=>a(a(a({},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}),oH=(e,t)=>a(a({},e.ExclusiveStartTableName!==void 0&&e.ExclusiveStartTableName!==null&&{ExclusiveStartTableName:e.ExclusiveStartTableName}),e.Limit!==void 0&&e.Limit!==null&&{Limit:e.Limit}),aH=(e,t)=>a(a({},e.NextToken!==void 0&&e.NextToken!==null&&{NextToken:e.NextToken}),e.ResourceArn!==void 0&&e.ResourceArn!==null&&{ResourceArn:e.ResourceArn}),cH=(e,t)=>a(a(a({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:bl(e.KeySchema,t)}),e.Projection!==void 0&&e.Projection!==null&&{Projection:hy(e.Projection,t)}),my=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:cH(n,t)),lH=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:g(a({},n),{[r]:$n(i,t)}),{}),uH=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),dH=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),fH=(e,t)=>a(a({},e.Parameters!==void 0&&e.Parameters!==null&&{Parameters:py(e.Parameters,t)}),e.Statement!==void 0&&e.Statement!==null&&{Statement:e.Statement}),mH=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:fH(n,t)),pH=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:a3(n,t)),hH=(e,t)=>a({},e.PointInTimeRecoveryEnabled!==void 0&&e.PointInTimeRecoveryEnabled!==null&&{PointInTimeRecoveryEnabled:e.PointInTimeRecoveryEnabled}),py=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:$n(n,t)),hy=(e,t)=>a(a({},e.NonKeyAttributes!==void 0&&e.NonKeyAttributes!==null&&{NonKeyAttributes:uH(e.NonKeyAttributes,t)}),e.ProjectionType!==void 0&&e.ProjectionType!==null&&{ProjectionType:e.ProjectionType}),si=(e,t)=>a(a({},e.ReadCapacityUnits!==void 0&&e.ReadCapacityUnits!==null&&{ReadCapacityUnits:e.ReadCapacityUnits}),e.WriteCapacityUnits!==void 0&&e.WriteCapacityUnits!==null&&{WriteCapacityUnits:e.WriteCapacityUnits}),_y=(e,t)=>a({},e.ReadCapacityUnits!==void 0&&e.ReadCapacityUnits!==null&&{ReadCapacityUnits:e.ReadCapacityUnits}),_H=(e,t)=>a(a(a(a(a(a({},e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Vt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:Vn(e.ExpressionAttributeValues,t)}),e.Item!==void 0&&e.Item!==null&&{Item:yy(e.Item,t)}),e.ReturnValuesOnConditionCheckFailure!==void 0&&e.ReturnValuesOnConditionCheckFailure!==null&&{ReturnValuesOnConditionCheckFailure:e.ReturnValuesOnConditionCheckFailure}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),yH=(e,t)=>a(a(a(a(a(a(a(a(a(a({},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:dy(e.Expected,t)}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Vt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:Vn(e.ExpressionAttributeValues,t)}),e.Item!==void 0&&e.Item!==null&&{Item:yy(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}),yy=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:g(a({},n),{[r]:$n(i,t)}),{}),gH=(e,t)=>a({},e.Item!==void 0&&e.Item!==null&&{Item:yy(e.Item,t)}),SH=(e,t)=>a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a({},e.AttributesToGet!==void 0&&e.AttributesToGet!==null&&{AttributesToGet:wl(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:en(e.ExclusiveStartKey,t)}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Vt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:Vn(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:Q3(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:JA(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}),vH=(e,t)=>a({},e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),wH=(e,t)=>a(a(a({},e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),e.ReplicaGlobalSecondaryIndexUpdates!==void 0&&e.ReplicaGlobalSecondaryIndexUpdates!==null&&{ReplicaGlobalSecondaryIndexUpdates:TH(e.ReplicaGlobalSecondaryIndexUpdates,t)}),e.ReplicaProvisionedReadCapacityAutoScalingUpdate!==void 0&&e.ReplicaProvisionedReadCapacityAutoScalingUpdate!==null&&{ReplicaProvisionedReadCapacityAutoScalingUpdate:wr(e.ReplicaProvisionedReadCapacityAutoScalingUpdate,t)}),bH=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:wH(n,t)),EH=(e,t)=>a(a({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:_y(e.ProvisionedThroughputOverride,t)}),AH=(e,t)=>a(a({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.ProvisionedReadCapacityAutoScalingUpdate!==void 0&&e.ProvisionedReadCapacityAutoScalingUpdate!==null&&{ProvisionedReadCapacityAutoScalingUpdate:wr(e.ProvisionedReadCapacityAutoScalingUpdate,t)}),TH=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:AH(n,t)),XA=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:EH(n,t)),CH=(e,t)=>a(a(a({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.ProvisionedReadCapacityAutoScalingSettingsUpdate!==void 0&&e.ProvisionedReadCapacityAutoScalingSettingsUpdate!==null&&{ProvisionedReadCapacityAutoScalingSettingsUpdate:wr(e.ProvisionedReadCapacityAutoScalingSettingsUpdate,t)}),e.ProvisionedReadCapacityUnits!==void 0&&e.ProvisionedReadCapacityUnits!==null&&{ProvisionedReadCapacityUnits:e.ProvisionedReadCapacityUnits}),xH=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:CH(n,t)),IH=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:vH(n,t)),RH=(e,t)=>a(a(a(a(a({},e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),e.ReplicaGlobalSecondaryIndexSettingsUpdate!==void 0&&e.ReplicaGlobalSecondaryIndexSettingsUpdate!==null&&{ReplicaGlobalSecondaryIndexSettingsUpdate:xH(e.ReplicaGlobalSecondaryIndexSettingsUpdate,t)}),e.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate!==void 0&&e.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate!==null&&{ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate:wr(e.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate,t)}),e.ReplicaProvisionedReadCapacityUnits!==void 0&&e.ReplicaProvisionedReadCapacityUnits!==null&&{ReplicaProvisionedReadCapacityUnits:e.ReplicaProvisionedReadCapacityUnits}),e.ReplicaTableClass!==void 0&&e.ReplicaTableClass!==null&&{ReplicaTableClass:e.ReplicaTableClass}),DH=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:RH(n,t)),NH=(e,t)=>a(a(a({},e.Create!==void 0&&e.Create!==null&&{Create:_3(e.Create,t)}),e.Delete!==void 0&&e.Delete!==null&&{Delete:E3(e.Delete,t)}),e.Update!==void 0&&e.Update!==null&&{Update:rW(e.Update,t)}),PH=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:NH(n,t)),OH=(e,t)=>a(a({},e.Create!==void 0&&e.Create!==null&&{Create:h3(e.Create,t)}),e.Delete!==void 0&&e.Delete!==null&&{Delete:b3(e.Delete,t)}),LH=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:OH(n,t)),qH=(e,t)=>a(a(a(a(a(a(a({},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:fy(e.GlobalSecondaryIndexOverride,t)}),e.LocalSecondaryIndexOverride!==void 0&&e.LocalSecondaryIndexOverride!==null&&{LocalSecondaryIndexOverride:my(e.LocalSecondaryIndexOverride,t)}),e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:si(e.ProvisionedThroughputOverride,t)}),e.SSESpecificationOverride!==void 0&&e.SSESpecificationOverride!==null&&{SSESpecificationOverride:El(e.SSESpecificationOverride,t)}),e.TargetTableName!==void 0&&e.TargetTableName!==null&&{TargetTableName:e.TargetTableName}),MH=(e,t)=>a(a(a(a(a(a(a(a(a(a({},e.BillingModeOverride!==void 0&&e.BillingModeOverride!==null&&{BillingModeOverride:e.BillingModeOverride}),e.GlobalSecondaryIndexOverride!==void 0&&e.GlobalSecondaryIndexOverride!==null&&{GlobalSecondaryIndexOverride:fy(e.GlobalSecondaryIndexOverride,t)}),e.LocalSecondaryIndexOverride!==void 0&&e.LocalSecondaryIndexOverride!==null&&{LocalSecondaryIndexOverride:my(e.LocalSecondaryIndexOverride,t)}),e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:si(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:El(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}),zH=(e,t)=>a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a({},e.AttributesToGet!==void 0&&e.AttributesToGet!==null&&{AttributesToGet:wl(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:en(e.ExclusiveStartKey,t)}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Vt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:Vn(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:JA(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}),El=(e,t)=>a(a(a({},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}),ZA=(e,t)=>a(a({},e.StreamEnabled!==void 0&&e.StreamEnabled!==null&&{StreamEnabled:e.StreamEnabled}),e.StreamViewType!==void 0&&e.StreamViewType!==null&&{StreamViewType:e.StreamViewType}),jH=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),kH=(e,t)=>a(a({},e.Key!==void 0&&e.Key!==null&&{Key:e.Key}),e.Value!==void 0&&e.Value!==null&&{Value:e.Value}),FH=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),eT=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:kH(n,t)),UH=(e,t)=>a(a({},e.ResourceArn!==void 0&&e.ResourceArn!==null&&{ResourceArn:e.ResourceArn}),e.Tags!==void 0&&e.Tags!==null&&{Tags:eT(e.Tags,t)}),BH=(e,t)=>a(a({},e.AttributeName!==void 0&&e.AttributeName!==null&&{AttributeName:e.AttributeName}),e.Enabled!==void 0&&e.Enabled!==null&&{Enabled:e.Enabled}),GH=(e,t)=>a({},e.Get!==void 0&&e.Get!==null&&{Get:B3(e.Get,t)}),$H=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:GH(n,t)),VH=(e,t)=>a(a({},e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.TransactItems!==void 0&&e.TransactItems!==null&&{TransactItems:$H(e.TransactItems,t)}),KH=(e,t)=>a(a(a(a({},e.ConditionCheck!==void 0&&e.ConditionCheck!==null&&{ConditionCheck:d3(e.ConditionCheck,t)}),e.Delete!==void 0&&e.Delete!==null&&{Delete:g3(e.Delete,t)}),e.Put!==void 0&&e.Put!==null&&{Put:_H(e.Put,t)}),e.Update!==void 0&&e.Update!==null&&{Update:JH(e.Update,t)}),HH=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:KH(n,t)),WH=(e,t)=>{var n;return a(a(a({ClientRequestToken:(n=e.ClientRequestToken)!==null&&n!==void 0?n:(0,oy.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:HH(e.TransactItems,t)})},YH=(e,t)=>a(a({},e.ResourceArn!==void 0&&e.ResourceArn!==null&&{ResourceArn:e.ResourceArn}),e.TagKeys!==void 0&&e.TagKeys!==null&&{TagKeys:FH(e.TagKeys,t)}),JH=(e,t)=>a(a(a(a(a(a(a({},e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Vt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:Vn(e.ExpressionAttributeValues,t)}),e.Key!==void 0&&e.Key!==null&&{Key:en(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}),QH=(e,t)=>a(a({},e.PointInTimeRecoverySpecification!==void 0&&e.PointInTimeRecoverySpecification!==null&&{PointInTimeRecoverySpecification:hH(e.PointInTimeRecoverySpecification,t)}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),XH=(e,t)=>a(a(a({},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}),ZH=(e,t)=>a(a({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:si(e.ProvisionedThroughput,t)}),eW=(e,t)=>a(a({},e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName}),e.ReplicaUpdates!==void 0&&e.ReplicaUpdates!==null&&{ReplicaUpdates:LH(e.ReplicaUpdates,t)}),tW=(e,t)=>a(a(a(a(a(a({},e.GlobalTableBillingMode!==void 0&&e.GlobalTableBillingMode!==null&&{GlobalTableBillingMode:e.GlobalTableBillingMode}),e.GlobalTableGlobalSecondaryIndexSettingsUpdate!==void 0&&e.GlobalTableGlobalSecondaryIndexSettingsUpdate!==null&&{GlobalTableGlobalSecondaryIndexSettingsUpdate:J3(e.GlobalTableGlobalSecondaryIndexSettingsUpdate,t)}),e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName}),e.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate!==void 0&&e.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate!==null&&{GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate:wr(e.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate,t)}),e.GlobalTableProvisionedWriteCapacityUnits!==void 0&&e.GlobalTableProvisionedWriteCapacityUnits!==null&&{GlobalTableProvisionedWriteCapacityUnits:e.GlobalTableProvisionedWriteCapacityUnits}),e.ReplicaSettingsUpdate!==void 0&&e.ReplicaSettingsUpdate!==null&&{ReplicaSettingsUpdate:DH(e.ReplicaSettingsUpdate,t)}),nW=(e,t)=>a(a(a(a(a(a(a(a(a(a(a(a({},e.AttributeUpdates!==void 0&&e.AttributeUpdates!==null&&{AttributeUpdates:e3(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:dy(e.Expected,t)}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Vt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:Vn(e.ExpressionAttributeValues,t)}),e.Key!==void 0&&e.Key!==null&&{Key:en(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}),rW=(e,t)=>a(a(a(a(a({},e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null&&{GlobalSecondaryIndexes:XA(e.GlobalSecondaryIndexes,t)}),e.KMSMasterKeyId!==void 0&&e.KMSMasterKeyId!==null&&{KMSMasterKeyId:e.KMSMasterKeyId}),e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:_y(e.ProvisionedThroughputOverride,t)}),e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),e.TableClassOverride!==void 0&&e.TableClassOverride!==null&&{TableClassOverride:e.TableClassOverride}),iW=(e,t)=>a(a(a(a(a(a(a(a(a({},e.AttributeDefinitions!==void 0&&e.AttributeDefinitions!==null&&{AttributeDefinitions:HA(e.AttributeDefinitions,t)}),e.BillingMode!==void 0&&e.BillingMode!==null&&{BillingMode:e.BillingMode}),e.GlobalSecondaryIndexUpdates!==void 0&&e.GlobalSecondaryIndexUpdates!==null&&{GlobalSecondaryIndexUpdates:W3(e.GlobalSecondaryIndexUpdates,t)}),e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:si(e.ProvisionedThroughput,t)}),e.ReplicaUpdates!==void 0&&e.ReplicaUpdates!==null&&{ReplicaUpdates:PH(e.ReplicaUpdates,t)}),e.SSESpecification!==void 0&&e.SSESpecification!==null&&{SSESpecification:El(e.SSESpecification,t)}),e.StreamSpecification!==void 0&&e.StreamSpecification!==null&&{StreamSpecification:ZA(e.StreamSpecification,t)}),e.TableClass!==void 0&&e.TableClass!==null&&{TableClass:e.TableClass}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),sW=(e,t)=>a(a(a(a({},e.GlobalSecondaryIndexUpdates!==void 0&&e.GlobalSecondaryIndexUpdates!==null&&{GlobalSecondaryIndexUpdates:K3(e.GlobalSecondaryIndexUpdates,t)}),e.ProvisionedWriteCapacityAutoScalingUpdate!==void 0&&e.ProvisionedWriteCapacityAutoScalingUpdate!==null&&{ProvisionedWriteCapacityAutoScalingUpdate:wr(e.ProvisionedWriteCapacityAutoScalingUpdate,t)}),e.ReplicaUpdates!==void 0&&e.ReplicaUpdates!==null&&{ReplicaUpdates:bH(e.ReplicaUpdates,t)}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),oW=(e,t)=>a(a({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),e.TimeToLiveSpecification!==void 0&&e.TimeToLiveSpecification!==null&&{TimeToLiveSpecification:BH(e.TimeToLiveSpecification,t)}),aW=(e,t)=>a(a({},e.DeleteRequest!==void 0&&e.DeleteRequest!==null&&{DeleteRequest:A3(e.DeleteRequest,t)}),e.PutRequest!==void 0&&e.PutRequest!==null&&{PutRequest:gH(e.PutRequest,t)}),cW=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:aW(n,t)),lW=(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)}),uW=(e,t)=>({AttributeName:(0,p.expectString)(e.AttributeName),AttributeType:(0,p.expectString)(e.AttributeType)}),dW=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:uW(r,t)),br=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:g(a({},n),{[r]:Qi((0,p.expectUnion)(i),t)}),{}),fW=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:(0,p.expectString)(r)),Qi=(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:IW(e.BS,t)}:e.L!==void 0&&e.L!==null?{L:k8(e.L,t)}:e.M!==void 0&&e.M!==null?{M:J8(e.M,t)}:(0,p.expectString)(e.N)!==void 0?{N:(0,p.expectString)(e.N)}:e.NS!==void 0&&e.NS!==null?{NS:X8(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:D6(e.SS,t)}:{$unknown:Object.entries(e)[0]},mW=(e,t)=>({PolicyName:(0,p.expectString)(e.PolicyName),TargetTrackingScalingPolicyConfiguration:e.TargetTrackingScalingPolicyConfiguration!==void 0&&e.TargetTrackingScalingPolicyConfiguration!==null?hW(e.TargetTrackingScalingPolicyConfiguration,t):void 0}),pW=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:mW(r,t)),vr=(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?pW(e.ScalingPolicies,t):void 0}),hW=(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)}),tT=(e,t)=>({BackupDetails:e.BackupDetails!==void 0&&e.BackupDetails!==null?nT(e.BackupDetails,t):void 0,SourceTableDetails:e.SourceTableDetails!==void 0&&e.SourceTableDetails!==null?I6(e.SourceTableDetails,t):void 0,SourceTableFeatureDetails:e.SourceTableFeatureDetails!==void 0&&e.SourceTableFeatureDetails!==null?R6(e.SourceTableFeatureDetails,t):void 0}),nT=(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)}),_W=(e,t)=>({message:(0,p.expectString)(e.message)}),yW=(e,t)=>({message:(0,p.expectString)(e.message)}),gW=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:SW(r,t)),SW=(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)}),vW=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Xi(e.ConsumedCapacity,t):void 0,Responses:e.Responses!==void 0&&e.Responses!==null?Z8(e.Responses,t):void 0}),wW=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Xi(e.ConsumedCapacity,t):void 0,Responses:e.Responses!==void 0&&e.Responses!==null?EW(e.Responses,t):void 0,UnprocessedKeys:e.UnprocessedKeys!==void 0&&e.UnprocessedKeys!==null?bW(e.UnprocessedKeys,t):void 0}),bW=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:g(a({},n),{[r]:L8(i,t)}),{}),EW=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:g(a({},n),{[r]:Tl(i,t)}),{}),AW=(e,t)=>({Code:(0,p.expectString)(e.Code),Message:(0,p.expectString)(e.Message)}),TW=(e,t)=>({Error:e.Error!==void 0&&e.Error!==null?AW(e.Error,t):void 0,Item:e.Item!==void 0&&e.Item!==null?br(e.Item,t):void 0,TableName:(0,p.expectString)(e.TableName)}),CW=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Xi(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?aT(e.ItemCollectionMetrics,t):void 0,UnprocessedItems:e.UnprocessedItems!==void 0&&e.UnprocessedItems!==null?xW(e.UnprocessedItems,t):void 0}),xW=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:g(a({},n),{[r]:X6(i,t)}),{}),rT=(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}),IW=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:t.base64Decoder(r)),RW=(e,t)=>({Code:(0,p.expectString)(e.Code),Item:e.Item!==void 0&&e.Item!==null?br(e.Item,t):void 0,Message:(0,p.expectString)(e.Message)}),DW=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:RW(r,t)),iT=(e,t)=>({CapacityUnits:(0,p.limitedParseDouble)(e.CapacityUnits),ReadCapacityUnits:(0,p.limitedParseDouble)(e.ReadCapacityUnits),WriteCapacityUnits:(0,p.limitedParseDouble)(e.WriteCapacityUnits)}),NW=(e,t)=>({message:(0,p.expectString)(e.message)}),Er=(e,t)=>({CapacityUnits:(0,p.limitedParseDouble)(e.CapacityUnits),GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?FA(e.GlobalSecondaryIndexes,t):void 0,LocalSecondaryIndexes:e.LocalSecondaryIndexes!==void 0&&e.LocalSecondaryIndexes!==null?FA(e.LocalSecondaryIndexes,t):void 0,ReadCapacityUnits:(0,p.limitedParseDouble)(e.ReadCapacityUnits),Table:e.Table!==void 0&&e.Table!==null?iT(e.Table,t):void 0,TableName:(0,p.expectString)(e.TableName),WriteCapacityUnits:(0,p.limitedParseDouble)(e.WriteCapacityUnits)}),Xi=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:Er(r,t)),sT=(e,t)=>({ContinuousBackupsStatus:(0,p.expectString)(e.ContinuousBackupsStatus),PointInTimeRecoveryDescription:e.PointInTimeRecoveryDescription!==void 0&&e.PointInTimeRecoveryDescription!==null?e6(e.PointInTimeRecoveryDescription,t):void 0}),PW=(e,t)=>({message:(0,p.expectString)(e.message)}),OW=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:(0,p.expectString)(r)),LW=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:qW(r,t)),qW=(e,t)=>({ContributorInsightsStatus:(0,p.expectString)(e.ContributorInsightsStatus),IndexName:(0,p.expectString)(e.IndexName),TableName:(0,p.expectString)(e.TableName)}),MW=(e,t)=>({BackupDetails:e.BackupDetails!==void 0&&e.BackupDetails!==null?nT(e.BackupDetails,t):void 0}),zW=(e,t)=>({GlobalTableDescription:e.GlobalTableDescription!==void 0&&e.GlobalTableDescription!==null?gy(e.GlobalTableDescription,t):void 0}),jW=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?es(e.TableDescription,t):void 0}),kW=(e,t)=>({BackupDescription:e.BackupDescription!==void 0&&e.BackupDescription!==null?tT(e.BackupDescription,t):void 0}),FW=(e,t)=>({Attributes:e.Attributes!==void 0&&e.Attributes!==null?br(e.Attributes,t):void 0,ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Er(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?Al(e.ItemCollectionMetrics,t):void 0}),UW=(e,t)=>({Key:e.Key!==void 0&&e.Key!==null?$o(e.Key,t):void 0}),BW=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?es(e.TableDescription,t):void 0}),GW=(e,t)=>({BackupDescription:e.BackupDescription!==void 0&&e.BackupDescription!==null?tT(e.BackupDescription,t):void 0}),$W=(e,t)=>({ContinuousBackupsDescription:e.ContinuousBackupsDescription!==void 0&&e.ContinuousBackupsDescription!==null?sT(e.ContinuousBackupsDescription,t):void 0}),VW=(e,t)=>({ContributorInsightsRuleList:e.ContributorInsightsRuleList!==void 0&&e.ContributorInsightsRuleList!==null?OW(e.ContributorInsightsRuleList,t):void 0,ContributorInsightsStatus:(0,p.expectString)(e.ContributorInsightsStatus),FailureException:e.FailureException!==void 0&&e.FailureException!==null?f8(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)}),KW=(e,t)=>({Endpoints:e.Endpoints!==void 0&&e.Endpoints!==null?r8(e.Endpoints,t):void 0}),HW=(e,t)=>({ExportDescription:e.ExportDescription!==void 0&&e.ExportDescription!==null?oT(e.ExportDescription,t):void 0}),WW=(e,t)=>({GlobalTableDescription:e.GlobalTableDescription!==void 0&&e.GlobalTableDescription!==null?gy(e.GlobalTableDescription,t):void 0}),YW=(e,t)=>({GlobalTableName:(0,p.expectString)(e.GlobalTableName),ReplicaSettings:e.ReplicaSettings!==void 0&&e.ReplicaSettings!==null?pT(e.ReplicaSettings,t):void 0}),JW=(e,t)=>({KinesisDataStreamDestinations:e.KinesisDataStreamDestinations!==void 0&&e.KinesisDataStreamDestinations!==null?z8(e.KinesisDataStreamDestinations,t):void 0,TableName:(0,p.expectString)(e.TableName)}),QW=(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)}),XW=(e,t)=>({Table:e.Table!==void 0&&e.Table!==null?es(e.Table,t):void 0}),ZW=(e,t)=>({TableAutoScalingDescription:e.TableAutoScalingDescription!==void 0&&e.TableAutoScalingDescription!==null?yT(e.TableAutoScalingDescription,t):void 0}),e8=(e,t)=>({TimeToLiveDescription:e.TimeToLiveDescription!==void 0&&e.TimeToLiveDescription!==null?gT(e.TimeToLiveDescription,t):void 0}),t8=(e,t)=>({message:(0,p.expectString)(e.message)}),n8=(e,t)=>({Address:(0,p.expectString)(e.Address),CachePeriodInMinutes:(0,p.expectLong)(e.CachePeriodInMinutes)}),r8=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:n8(r,t)),i8=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Er(e.ConsumedCapacity,t):void 0,Items:e.Items!==void 0&&e.Items!==null?Tl(e.Items,t):void 0,LastEvaluatedKey:e.LastEvaluatedKey!==void 0&&e.LastEvaluatedKey!==null?$o(e.LastEvaluatedKey,t):void 0,NextToken:(0,p.expectString)(e.NextToken)}),s8=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Xi(e.ConsumedCapacity,t):void 0,Responses:e.Responses!==void 0&&e.Responses!==null?cT(e.Responses,t):void 0}),o8=(e,t)=>({message:(0,p.expectString)(e.message)}),oT=(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)}),a8=(e,t)=>({message:(0,p.expectString)(e.message)}),c8=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:l8(r,t)),l8=(e,t)=>({ExportArn:(0,p.expectString)(e.ExportArn),ExportStatus:(0,p.expectString)(e.ExportStatus)}),u8=(e,t)=>({ExportDescription:e.ExportDescription!==void 0&&e.ExportDescription!==null?oT(e.ExportDescription,t):void 0}),d8=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:g(a({},n),{[r]:(0,p.expectString)(i)}),{}),f8=(e,t)=>({ExceptionDescription:(0,p.expectString)(e.ExceptionDescription),ExceptionName:(0,p.expectString)(e.ExceptionName)}),m8=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Er(e.ConsumedCapacity,t):void 0,Item:e.Item!==void 0&&e.Item!==null?br(e.Item,t):void 0}),p8=(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?Zi(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?Cl(e.Projection,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?dT(e.ProvisionedThroughput,t):void 0}),h8=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:p8(r,t)),_8=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:y8(r,t)),y8=(e,t)=>({IndexName:(0,p.expectString)(e.IndexName),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?Zi(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?Cl(e.Projection,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?uT(e.ProvisionedThroughput,t):void 0}),g8=(e,t)=>({GlobalTableName:(0,p.expectString)(e.GlobalTableName),ReplicationGroup:e.ReplicationGroup!==void 0&&e.ReplicationGroup!==null?g6(e.ReplicationGroup,t):void 0}),S8=(e,t)=>({message:(0,p.expectString)(e.message)}),gy=(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?mT(e.ReplicationGroup,t):void 0}),v8=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:g8(r,t)),w8=(e,t)=>({message:(0,p.expectString)(e.message)}),b8=(e,t)=>({Message:(0,p.expectString)(e.Message)}),E8=(e,t)=>({message:(0,p.expectString)(e.message)}),A8=(e,t)=>({message:(0,p.expectString)(e.message)}),T8=(e,t)=>({Message:(0,p.expectString)(e.Message)}),C8=(e,t)=>({message:(0,p.expectString)(e.message)}),x8=(e,t)=>({message:(0,p.expectString)(e.message)}),I8=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:g(a({},n),{[r]:Qi((0,p.expectUnion)(i),t)}),{}),Al=(e,t)=>({ItemCollectionKey:e.ItemCollectionKey!==void 0&&e.ItemCollectionKey!==null?I8(e.ItemCollectionKey,t):void 0,SizeEstimateRangeGB:e.SizeEstimateRangeGB!==void 0&&e.SizeEstimateRangeGB!==null?D8(e.SizeEstimateRangeGB,t):void 0}),R8=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:Al(r,t)),aT=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:g(a({},n),{[r]:R8(i,t)}),{}),D8=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:(0,p.limitedParseDouble)(r)),N8=(e,t)=>({message:(0,p.expectString)(e.message)}),Tl=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:br(r,t)),P8=(e,t)=>({Item:e.Item!==void 0&&e.Item!==null?br(e.Item,t):void 0}),cT=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:P8(r,t)),$o=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:g(a({},n),{[r]:Qi((0,p.expectUnion)(i),t)}),{}),O8=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:$o(r,t)),L8=(e,t)=>({AttributesToGet:e.AttributesToGet!==void 0&&e.AttributesToGet!==null?fW(e.AttributesToGet,t):void 0,ConsistentRead:(0,p.expectBoolean)(e.ConsistentRead),ExpressionAttributeNames:e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null?d8(e.ExpressionAttributeNames,t):void 0,Keys:e.Keys!==void 0&&e.Keys!==null?O8(e.Keys,t):void 0,ProjectionExpression:(0,p.expectString)(e.ProjectionExpression)}),Zi=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:q8(r,t)),q8=(e,t)=>({AttributeName:(0,p.expectString)(e.AttributeName),KeyType:(0,p.expectString)(e.KeyType)}),M8=(e,t)=>({DestinationStatus:(0,p.expectString)(e.DestinationStatus),DestinationStatusDescription:(0,p.expectString)(e.DestinationStatusDescription),StreamArn:(0,p.expectString)(e.StreamArn)}),z8=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:M8(r,t)),lT=(e,t)=>({DestinationStatus:(0,p.expectString)(e.DestinationStatus),StreamArn:(0,p.expectString)(e.StreamArn),TableName:(0,p.expectString)(e.TableName)}),j8=(e,t)=>({message:(0,p.expectString)(e.message)}),k8=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:Qi((0,p.expectUnion)(r),t)),F8=(e,t)=>({BackupSummaries:e.BackupSummaries!==void 0&&e.BackupSummaries!==null?gW(e.BackupSummaries,t):void 0,LastEvaluatedBackupArn:(0,p.expectString)(e.LastEvaluatedBackupArn)}),U8=(e,t)=>({ContributorInsightsSummaries:e.ContributorInsightsSummaries!==void 0&&e.ContributorInsightsSummaries!==null?LW(e.ContributorInsightsSummaries,t):void 0,NextToken:(0,p.expectString)(e.NextToken)}),B8=(e,t)=>({ExportSummaries:e.ExportSummaries!==void 0&&e.ExportSummaries!==null?c8(e.ExportSummaries,t):void 0,NextToken:(0,p.expectString)(e.NextToken)}),G8=(e,t)=>({GlobalTables:e.GlobalTables!==void 0&&e.GlobalTables!==null?v8(e.GlobalTables,t):void 0,LastEvaluatedGlobalTableName:(0,p.expectString)(e.LastEvaluatedGlobalTableName)}),$8=(e,t)=>({LastEvaluatedTableName:(0,p.expectString)(e.LastEvaluatedTableName),TableNames:e.TableNames!==void 0&&e.TableNames!==null?O6(e.TableNames,t):void 0}),V8=(e,t)=>({NextToken:(0,p.expectString)(e.NextToken),Tags:e.Tags!==void 0&&e.Tags!==null?M6(e.Tags,t):void 0}),K8=(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?Zi(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?Cl(e.Projection,t):void 0}),H8=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:K8(r,t)),W8=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:Y8(r,t)),Y8=(e,t)=>({IndexName:(0,p.expectString)(e.IndexName),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?Zi(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?Cl(e.Projection,t):void 0}),J8=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:g(a({},n),{[r]:Qi((0,p.expectUnion)(i),t)}),{}),Q8=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:(0,p.expectString)(r)),X8=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:(0,p.expectString)(r)),Z8=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:TW(r,t)),e6=(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)}),t6=(e,t)=>({message:(0,p.expectString)(e.message)}),Cl=(e,t)=>({NonKeyAttributes:e.NonKeyAttributes!==void 0&&e.NonKeyAttributes!==null?Q8(e.NonKeyAttributes,t):void 0,ProjectionType:(0,p.expectString)(e.ProjectionType)}),uT=(e,t)=>({ReadCapacityUnits:(0,p.expectLong)(e.ReadCapacityUnits),WriteCapacityUnits:(0,p.expectLong)(e.WriteCapacityUnits)}),dT=(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)}),n6=(e,t)=>({message:(0,p.expectString)(e.message)}),fT=(e,t)=>({ReadCapacityUnits:(0,p.expectLong)(e.ReadCapacityUnits)}),r6=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:g(a({},n),{[r]:Qi((0,p.expectUnion)(i),t)}),{}),i6=(e,t)=>({Attributes:e.Attributes!==void 0&&e.Attributes!==null?br(e.Attributes,t):void 0,ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Er(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?Al(e.ItemCollectionMetrics,t):void 0}),s6=(e,t)=>({Item:e.Item!==void 0&&e.Item!==null?r6(e.Item,t):void 0}),o6=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Er(e.ConsumedCapacity,t):void 0,Count:(0,p.expectInt32)(e.Count),Items:e.Items!==void 0&&e.Items!==null?Tl(e.Items,t):void 0,LastEvaluatedKey:e.LastEvaluatedKey!==void 0&&e.LastEvaluatedKey!==null?$o(e.LastEvaluatedKey,t):void 0,ScannedCount:(0,p.expectInt32)(e.ScannedCount)}),a6=(e,t)=>({RegionName:(0,p.expectString)(e.RegionName)}),c6=(e,t)=>({message:(0,p.expectString)(e.message)}),l6=(e,t)=>({GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?m6(e.GlobalSecondaryIndexes,t):void 0,RegionName:(0,p.expectString)(e.RegionName),ReplicaProvisionedReadCapacityAutoScalingSettings:e.ReplicaProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedReadCapacityAutoScalingSettings!==null?vr(e.ReplicaProvisionedReadCapacityAutoScalingSettings,t):void 0,ReplicaProvisionedWriteCapacityAutoScalingSettings:e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==null?vr(e.ReplicaProvisionedWriteCapacityAutoScalingSettings,t):void 0,ReplicaStatus:(0,p.expectString)(e.ReplicaStatus)}),u6=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:l6(r,t)),d6=(e,t)=>({GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?h6(e.GlobalSecondaryIndexes,t):void 0,KMSMasterKeyId:(0,p.expectString)(e.KMSMasterKeyId),ProvisionedThroughputOverride:e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null?fT(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?Sy(e.ReplicaTableClassSummary,t):void 0}),mT=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:d6(r,t)),f6=(e,t)=>({IndexName:(0,p.expectString)(e.IndexName),IndexStatus:(0,p.expectString)(e.IndexStatus),ProvisionedReadCapacityAutoScalingSettings:e.ProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ProvisionedReadCapacityAutoScalingSettings!==null?vr(e.ProvisionedReadCapacityAutoScalingSettings,t):void 0,ProvisionedWriteCapacityAutoScalingSettings:e.ProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ProvisionedWriteCapacityAutoScalingSettings!==null?vr(e.ProvisionedWriteCapacityAutoScalingSettings,t):void 0}),m6=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:f6(r,t)),p6=(e,t)=>({IndexName:(0,p.expectString)(e.IndexName),ProvisionedThroughputOverride:e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null?fT(e.ProvisionedThroughputOverride,t):void 0}),h6=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:p6(r,t)),_6=(e,t)=>({IndexName:(0,p.expectString)(e.IndexName),IndexStatus:(0,p.expectString)(e.IndexStatus),ProvisionedReadCapacityAutoScalingSettings:e.ProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ProvisionedReadCapacityAutoScalingSettings!==null?vr(e.ProvisionedReadCapacityAutoScalingSettings,t):void 0,ProvisionedReadCapacityUnits:(0,p.expectLong)(e.ProvisionedReadCapacityUnits),ProvisionedWriteCapacityAutoScalingSettings:e.ProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ProvisionedWriteCapacityAutoScalingSettings!==null?vr(e.ProvisionedWriteCapacityAutoScalingSettings,t):void 0,ProvisionedWriteCapacityUnits:(0,p.expectLong)(e.ProvisionedWriteCapacityUnits)}),y6=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:_6(r,t)),g6=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:a6(r,t)),S6=(e,t)=>({message:(0,p.expectString)(e.message)}),v6=(e,t)=>({RegionName:(0,p.expectString)(e.RegionName),ReplicaBillingModeSummary:e.ReplicaBillingModeSummary!==void 0&&e.ReplicaBillingModeSummary!==null?rT(e.ReplicaBillingModeSummary,t):void 0,ReplicaGlobalSecondaryIndexSettings:e.ReplicaGlobalSecondaryIndexSettings!==void 0&&e.ReplicaGlobalSecondaryIndexSettings!==null?y6(e.ReplicaGlobalSecondaryIndexSettings,t):void 0,ReplicaProvisionedReadCapacityAutoScalingSettings:e.ReplicaProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedReadCapacityAutoScalingSettings!==null?vr(e.ReplicaProvisionedReadCapacityAutoScalingSettings,t):void 0,ReplicaProvisionedReadCapacityUnits:(0,p.expectLong)(e.ReplicaProvisionedReadCapacityUnits),ReplicaProvisionedWriteCapacityAutoScalingSettings:e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==null?vr(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?Sy(e.ReplicaTableClassSummary,t):void 0}),pT=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:v6(r,t)),w6=(e,t)=>({message:(0,p.expectString)(e.message)}),b6=(e,t)=>({message:(0,p.expectString)(e.message)}),E6=(e,t)=>({message:(0,p.expectString)(e.message)}),A6=(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)}),T6=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?es(e.TableDescription,t):void 0}),C6=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?es(e.TableDescription,t):void 0}),x6=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Er(e.ConsumedCapacity,t):void 0,Count:(0,p.expectInt32)(e.Count),Items:e.Items!==void 0&&e.Items!==null?Tl(e.Items,t):void 0,LastEvaluatedKey:e.LastEvaluatedKey!==void 0&&e.LastEvaluatedKey!==null?$o(e.LastEvaluatedKey,t):void 0,ScannedCount:(0,p.expectInt32)(e.ScannedCount)}),FA=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:g(a({},n),{[r]:iT(i,t)}),{}),I6=(e,t)=>({BillingMode:(0,p.expectString)(e.BillingMode),ItemCount:(0,p.expectLong)(e.ItemCount),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?Zi(e.KeySchema,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?uT(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)}),R6=(e,t)=>({GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?_8(e.GlobalSecondaryIndexes,t):void 0,LocalSecondaryIndexes:e.LocalSecondaryIndexes!==void 0&&e.LocalSecondaryIndexes!==null?W8(e.LocalSecondaryIndexes,t):void 0,SSEDescription:e.SSEDescription!==void 0&&e.SSEDescription!==null?hT(e.SSEDescription,t):void 0,StreamDescription:e.StreamDescription!==void 0&&e.StreamDescription!==null?_T(e.StreamDescription,t):void 0,TimeToLiveDescription:e.TimeToLiveDescription!==void 0&&e.TimeToLiveDescription!==null?gT(e.TimeToLiveDescription,t):void 0}),hT=(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)}),_T=(e,t)=>({StreamEnabled:(0,p.expectBoolean)(e.StreamEnabled),StreamViewType:(0,p.expectString)(e.StreamViewType)}),D6=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:(0,p.expectString)(r)),N6=(e,t)=>({message:(0,p.expectString)(e.message)}),yT=(e,t)=>({Replicas:e.Replicas!==void 0&&e.Replicas!==null?u6(e.Replicas,t):void 0,TableName:(0,p.expectString)(e.TableName),TableStatus:(0,p.expectString)(e.TableStatus)}),Sy=(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)}),es=(e,t)=>({ArchivalSummary:e.ArchivalSummary!==void 0&&e.ArchivalSummary!==null?lW(e.ArchivalSummary,t):void 0,AttributeDefinitions:e.AttributeDefinitions!==void 0&&e.AttributeDefinitions!==null?dW(e.AttributeDefinitions,t):void 0,BillingModeSummary:e.BillingModeSummary!==void 0&&e.BillingModeSummary!==null?rT(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?h8(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?Zi(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?H8(e.LocalSecondaryIndexes,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?dT(e.ProvisionedThroughput,t):void 0,Replicas:e.Replicas!==void 0&&e.Replicas!==null?mT(e.Replicas,t):void 0,RestoreSummary:e.RestoreSummary!==void 0&&e.RestoreSummary!==null?A6(e.RestoreSummary,t):void 0,SSEDescription:e.SSEDescription!==void 0&&e.SSEDescription!==null?hT(e.SSEDescription,t):void 0,StreamSpecification:e.StreamSpecification!==void 0&&e.StreamSpecification!==null?_T(e.StreamSpecification,t):void 0,TableArn:(0,p.expectString)(e.TableArn),TableClassSummary:e.TableClassSummary!==void 0&&e.TableClassSummary!==null?Sy(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)}),P6=(e,t)=>({message:(0,p.expectString)(e.message)}),O6=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:(0,p.expectString)(r)),L6=(e,t)=>({message:(0,p.expectString)(e.message)}),q6=(e,t)=>({Key:(0,p.expectString)(e.Key),Value:(0,p.expectString)(e.Value)}),M6=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:q6(r,t)),gT=(e,t)=>({AttributeName:(0,p.expectString)(e.AttributeName),TimeToLiveStatus:(0,p.expectString)(e.TimeToLiveStatus)}),z6=(e,t)=>({AttributeName:(0,p.expectString)(e.AttributeName),Enabled:(0,p.expectBoolean)(e.Enabled)}),j6=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Xi(e.ConsumedCapacity,t):void 0,Responses:e.Responses!==void 0&&e.Responses!==null?cT(e.Responses,t):void 0}),k6=(e,t)=>({CancellationReasons:e.CancellationReasons!==void 0&&e.CancellationReasons!==null?DW(e.CancellationReasons,t):void 0,Message:(0,p.expectString)(e.Message)}),F6=(e,t)=>({message:(0,p.expectString)(e.message)}),U6=(e,t)=>({Message:(0,p.expectString)(e.Message)}),B6=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Xi(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?aT(e.ItemCollectionMetrics,t):void 0}),G6=(e,t)=>({ContinuousBackupsDescription:e.ContinuousBackupsDescription!==void 0&&e.ContinuousBackupsDescription!==null?sT(e.ContinuousBackupsDescription,t):void 0}),$6=(e,t)=>({ContributorInsightsStatus:(0,p.expectString)(e.ContributorInsightsStatus),IndexName:(0,p.expectString)(e.IndexName),TableName:(0,p.expectString)(e.TableName)}),V6=(e,t)=>({GlobalTableDescription:e.GlobalTableDescription!==void 0&&e.GlobalTableDescription!==null?gy(e.GlobalTableDescription,t):void 0}),K6=(e,t)=>({GlobalTableName:(0,p.expectString)(e.GlobalTableName),ReplicaSettings:e.ReplicaSettings!==void 0&&e.ReplicaSettings!==null?pT(e.ReplicaSettings,t):void 0}),H6=(e,t)=>({Attributes:e.Attributes!==void 0&&e.Attributes!==null?br(e.Attributes,t):void 0,ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Er(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?Al(e.ItemCollectionMetrics,t):void 0}),W6=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?es(e.TableDescription,t):void 0}),Y6=(e,t)=>({TableAutoScalingDescription:e.TableAutoScalingDescription!==void 0&&e.TableAutoScalingDescription!==null?yT(e.TableAutoScalingDescription,t):void 0}),J6=(e,t)=>({TimeToLiveSpecification:e.TimeToLiveSpecification!==void 0&&e.TimeToLiveSpecification!==null?z6(e.TimeToLiveSpecification,t):void 0}),Q6=(e,t)=>({DeleteRequest:e.DeleteRequest!==void 0&&e.DeleteRequest!==null?UW(e.DeleteRequest,t):void 0,PutRequest:e.PutRequest!==void 0&&e.PutRequest!==null?s6(e.PutRequest,t):void 0}),X6=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:Q6(r,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"]}},vy=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),Z6=(e,t)=>vy(e,t).then(n=>t.utf8Encoder(n)),ne=async(e,t,n,r,i)=>{let{hostname:s,protocol:o="https",port:c,path:l}=await e.endpoint(),d={protocol:o,hostname:s,port:c,method:"POST",path:l.endsWith("/")?l.slice(0,-1)+n:l+n,headers:t};return r!==void 0&&(d.hostname=r),i!==void 0&&(d.body=i),new n2.HttpRequest(d)},N=(e,t)=>Z6(e,t).then(n=>n.length?JSON.parse(n):{}),re=(e,t)=>{let n=(s,o)=>Object.keys(s).find(c=>c.toLowerCase()===o.toLowerCase()),r=s=>{let o=s;return o.indexOf(":")>=0&&(o=o.split(":")[0]),o.indexOf("#")>=0&&(o=o.split("#")[1]),o},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 by=m(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});xl.BatchExecuteStatementCommand=void 0;var e4=$(),t4=q(),ST=J(),vT=Z(),wy=class extends t4.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,e4.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"BatchExecuteStatementCommand",inputFilterSensitiveLog:ST.BatchExecuteStatementInput.filterSensitiveLog,outputFilterSensitiveLog:ST.BatchExecuteStatementOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,vT.serializeAws_json1_0BatchExecuteStatementCommand)(t,n)}deserialize(t,n){return(0,vT.deserializeAws_json1_0BatchExecuteStatementCommand)(t,n)}};xl.BatchExecuteStatementCommand=wy});var Ay=m(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});Il.BatchGetItemCommand=void 0;var n4=$(),r4=q(),wT=J(),bT=Z(),Ey=class extends r4.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,n4.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"BatchGetItemCommand",inputFilterSensitiveLog:wT.BatchGetItemInput.filterSensitiveLog,outputFilterSensitiveLog:wT.BatchGetItemOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,bT.serializeAws_json1_0BatchGetItemCommand)(t,n)}deserialize(t,n){return(0,bT.deserializeAws_json1_0BatchGetItemCommand)(t,n)}};Il.BatchGetItemCommand=Ey});var Cy=m(Rl=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});Rl.BatchWriteItemCommand=void 0;var i4=$(),s4=q(),ET=J(),AT=Z(),Ty=class extends s4.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,i4.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"BatchWriteItemCommand",inputFilterSensitiveLog:ET.BatchWriteItemInput.filterSensitiveLog,outputFilterSensitiveLog:ET.BatchWriteItemOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,AT.serializeAws_json1_0BatchWriteItemCommand)(t,n)}deserialize(t,n){return(0,AT.deserializeAws_json1_0BatchWriteItemCommand)(t,n)}};Rl.BatchWriteItemCommand=Ty});var Iy=m(Dl=>{"use strict";Object.defineProperty(Dl,"__esModule",{value:!0});Dl.CreateBackupCommand=void 0;var o4=$(),a4=q(),TT=J(),CT=Z(),xy=class extends a4.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,o4.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"CreateBackupCommand",inputFilterSensitiveLog:TT.CreateBackupInput.filterSensitiveLog,outputFilterSensitiveLog:TT.CreateBackupOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,CT.serializeAws_json1_0CreateBackupCommand)(t,n)}deserialize(t,n){return(0,CT.deserializeAws_json1_0CreateBackupCommand)(t,n)}};Dl.CreateBackupCommand=xy});var Dy=m(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});Nl.CreateGlobalTableCommand=void 0;var c4=$(),l4=q(),xT=J(),IT=Z(),Ry=class extends l4.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,c4.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"CreateGlobalTableCommand",inputFilterSensitiveLog:xT.CreateGlobalTableInput.filterSensitiveLog,outputFilterSensitiveLog:xT.CreateGlobalTableOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,IT.serializeAws_json1_0CreateGlobalTableCommand)(t,n)}deserialize(t,n){return(0,IT.deserializeAws_json1_0CreateGlobalTableCommand)(t,n)}};Nl.CreateGlobalTableCommand=Ry});var Py=m(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});Pl.CreateTableCommand=void 0;var u4=$(),d4=q(),RT=J(),DT=Z(),Ny=class extends d4.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,u4.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"CreateTableCommand",inputFilterSensitiveLog:RT.CreateTableInput.filterSensitiveLog,outputFilterSensitiveLog:RT.CreateTableOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,DT.serializeAws_json1_0CreateTableCommand)(t,n)}deserialize(t,n){return(0,DT.deserializeAws_json1_0CreateTableCommand)(t,n)}};Pl.CreateTableCommand=Ny});var Ly=m(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});Ol.DeleteBackupCommand=void 0;var f4=$(),m4=q(),NT=J(),PT=Z(),Oy=class extends m4.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,f4.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"DeleteBackupCommand",inputFilterSensitiveLog:NT.DeleteBackupInput.filterSensitiveLog,outputFilterSensitiveLog:NT.DeleteBackupOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,PT.serializeAws_json1_0DeleteBackupCommand)(t,n)}deserialize(t,n){return(0,PT.deserializeAws_json1_0DeleteBackupCommand)(t,n)}};Ol.DeleteBackupCommand=Oy});var My=m(Ll=>{"use strict";Object.defineProperty(Ll,"__esModule",{value:!0});Ll.DeleteItemCommand=void 0;var p4=$(),h4=q(),OT=J(),LT=Z(),qy=class extends h4.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,p4.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"DeleteItemCommand",inputFilterSensitiveLog:OT.DeleteItemInput.filterSensitiveLog,outputFilterSensitiveLog:OT.DeleteItemOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,LT.serializeAws_json1_0DeleteItemCommand)(t,n)}deserialize(t,n){return(0,LT.deserializeAws_json1_0DeleteItemCommand)(t,n)}};Ll.DeleteItemCommand=qy});var jy=m(ql=>{"use strict";Object.defineProperty(ql,"__esModule",{value:!0});ql.DeleteTableCommand=void 0;var _4=$(),y4=q(),qT=J(),MT=Z(),zy=class extends y4.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,_4.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"DeleteTableCommand",inputFilterSensitiveLog:qT.DeleteTableInput.filterSensitiveLog,outputFilterSensitiveLog:qT.DeleteTableOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,MT.serializeAws_json1_0DeleteTableCommand)(t,n)}deserialize(t,n){return(0,MT.deserializeAws_json1_0DeleteTableCommand)(t,n)}};ql.DeleteTableCommand=zy});var Fy=m(Ml=>{"use strict";Object.defineProperty(Ml,"__esModule",{value:!0});Ml.DescribeBackupCommand=void 0;var g4=$(),S4=q(),zT=J(),jT=Z(),ky=class extends S4.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,g4.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"DescribeBackupCommand",inputFilterSensitiveLog:zT.DescribeBackupInput.filterSensitiveLog,outputFilterSensitiveLog:zT.DescribeBackupOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,jT.serializeAws_json1_0DescribeBackupCommand)(t,n)}deserialize(t,n){return(0,jT.deserializeAws_json1_0DescribeBackupCommand)(t,n)}};Ml.DescribeBackupCommand=ky});var By=m(zl=>{"use strict";Object.defineProperty(zl,"__esModule",{value:!0});zl.DescribeContinuousBackupsCommand=void 0;var v4=$(),w4=q(),kT=J(),FT=Z(),Uy=class extends w4.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,v4.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"DescribeContinuousBackupsCommand",inputFilterSensitiveLog:kT.DescribeContinuousBackupsInput.filterSensitiveLog,outputFilterSensitiveLog:kT.DescribeContinuousBackupsOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,FT.serializeAws_json1_0DescribeContinuousBackupsCommand)(t,n)}deserialize(t,n){return(0,FT.deserializeAws_json1_0DescribeContinuousBackupsCommand)(t,n)}};zl.DescribeContinuousBackupsCommand=Uy});var $y=m(jl=>{"use strict";Object.defineProperty(jl,"__esModule",{value:!0});jl.DescribeContributorInsightsCommand=void 0;var b4=$(),E4=q(),UT=J(),BT=Z(),Gy=class extends E4.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,b4.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"DescribeContributorInsightsCommand",inputFilterSensitiveLog:UT.DescribeContributorInsightsInput.filterSensitiveLog,outputFilterSensitiveLog:UT.DescribeContributorInsightsOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,BT.serializeAws_json1_0DescribeContributorInsightsCommand)(t,n)}deserialize(t,n){return(0,BT.deserializeAws_json1_0DescribeContributorInsightsCommand)(t,n)}};jl.DescribeContributorInsightsCommand=Gy});var Fl=m(kl=>{"use strict";Object.defineProperty(kl,"__esModule",{value:!0});kl.DescribeEndpointsCommand=void 0;var A4=$(),T4=q(),GT=J(),$T=Z(),Vy=class extends T4.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,A4.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"DescribeEndpointsCommand",inputFilterSensitiveLog:GT.DescribeEndpointsRequest.filterSensitiveLog,outputFilterSensitiveLog:GT.DescribeEndpointsResponse.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,$T.serializeAws_json1_0DescribeEndpointsCommand)(t,n)}deserialize(t,n){return(0,$T.deserializeAws_json1_0DescribeEndpointsCommand)(t,n)}};kl.DescribeEndpointsCommand=Vy});var Hy=m(Ul=>{"use strict";Object.defineProperty(Ul,"__esModule",{value:!0});Ul.DescribeExportCommand=void 0;var C4=$(),x4=q(),VT=J(),KT=Z(),Ky=class extends x4.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,C4.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"DescribeExportCommand",inputFilterSensitiveLog:VT.DescribeExportInput.filterSensitiveLog,outputFilterSensitiveLog:VT.DescribeExportOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,KT.serializeAws_json1_0DescribeExportCommand)(t,n)}deserialize(t,n){return(0,KT.deserializeAws_json1_0DescribeExportCommand)(t,n)}};Ul.DescribeExportCommand=Ky});var Yy=m(Bl=>{"use strict";Object.defineProperty(Bl,"__esModule",{value:!0});Bl.DescribeGlobalTableCommand=void 0;var I4=$(),R4=q(),HT=J(),WT=Z(),Wy=class extends R4.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,I4.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"DescribeGlobalTableCommand",inputFilterSensitiveLog:HT.DescribeGlobalTableInput.filterSensitiveLog,outputFilterSensitiveLog:HT.DescribeGlobalTableOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,WT.serializeAws_json1_0DescribeGlobalTableCommand)(t,n)}deserialize(t,n){return(0,WT.deserializeAws_json1_0DescribeGlobalTableCommand)(t,n)}};Bl.DescribeGlobalTableCommand=Wy});var Qy=m(Gl=>{"use strict";Object.defineProperty(Gl,"__esModule",{value:!0});Gl.DescribeGlobalTableSettingsCommand=void 0;var D4=$(),N4=q(),YT=J(),JT=Z(),Jy=class extends N4.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,D4.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"DescribeGlobalTableSettingsCommand",inputFilterSensitiveLog:YT.DescribeGlobalTableSettingsInput.filterSensitiveLog,outputFilterSensitiveLog:YT.DescribeGlobalTableSettingsOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,JT.serializeAws_json1_0DescribeGlobalTableSettingsCommand)(t,n)}deserialize(t,n){return(0,JT.deserializeAws_json1_0DescribeGlobalTableSettingsCommand)(t,n)}};Gl.DescribeGlobalTableSettingsCommand=Jy});var Zy=m($l=>{"use strict";Object.defineProperty($l,"__esModule",{value:!0});$l.DescribeKinesisStreamingDestinationCommand=void 0;var P4=$(),O4=q(),QT=J(),XT=Z(),Xy=class extends O4.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,P4.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"DescribeKinesisStreamingDestinationCommand",inputFilterSensitiveLog:QT.DescribeKinesisStreamingDestinationInput.filterSensitiveLog,outputFilterSensitiveLog:QT.DescribeKinesisStreamingDestinationOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,XT.serializeAws_json1_0DescribeKinesisStreamingDestinationCommand)(t,n)}deserialize(t,n){return(0,XT.deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand)(t,n)}};$l.DescribeKinesisStreamingDestinationCommand=Xy});var tg=m(Vl=>{"use strict";Object.defineProperty(Vl,"__esModule",{value:!0});Vl.DescribeLimitsCommand=void 0;var L4=$(),q4=q(),ZT=J(),eC=Z(),eg=class extends q4.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,L4.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"DescribeLimitsCommand",inputFilterSensitiveLog:ZT.DescribeLimitsInput.filterSensitiveLog,outputFilterSensitiveLog:ZT.DescribeLimitsOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,eC.serializeAws_json1_0DescribeLimitsCommand)(t,n)}deserialize(t,n){return(0,eC.deserializeAws_json1_0DescribeLimitsCommand)(t,n)}};Vl.DescribeLimitsCommand=eg});var Vo=m(Kl=>{"use strict";Object.defineProperty(Kl,"__esModule",{value:!0});Kl.DescribeTableCommand=void 0;var M4=$(),z4=q(),tC=J(),nC=Z(),ng=class extends z4.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,M4.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"DescribeTableCommand",inputFilterSensitiveLog:tC.DescribeTableInput.filterSensitiveLog,outputFilterSensitiveLog:tC.DescribeTableOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,nC.serializeAws_json1_0DescribeTableCommand)(t,n)}deserialize(t,n){return(0,nC.deserializeAws_json1_0DescribeTableCommand)(t,n)}};Kl.DescribeTableCommand=ng});var ig=m(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});Hl.DescribeTableReplicaAutoScalingCommand=void 0;var j4=$(),k4=q(),rC=J(),iC=Z(),rg=class extends k4.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,j4.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"DescribeTableReplicaAutoScalingCommand",inputFilterSensitiveLog:rC.DescribeTableReplicaAutoScalingInput.filterSensitiveLog,outputFilterSensitiveLog:rC.DescribeTableReplicaAutoScalingOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,iC.serializeAws_json1_0DescribeTableReplicaAutoScalingCommand)(t,n)}deserialize(t,n){return(0,iC.deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand)(t,n)}};Hl.DescribeTableReplicaAutoScalingCommand=rg});var og=m(Wl=>{"use strict";Object.defineProperty(Wl,"__esModule",{value:!0});Wl.DescribeTimeToLiveCommand=void 0;var F4=$(),U4=q(),sC=J(),oC=Z(),sg=class extends U4.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,F4.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"DescribeTimeToLiveCommand",inputFilterSensitiveLog:sC.DescribeTimeToLiveInput.filterSensitiveLog,outputFilterSensitiveLog:sC.DescribeTimeToLiveOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,oC.serializeAws_json1_0DescribeTimeToLiveCommand)(t,n)}deserialize(t,n){return(0,oC.deserializeAws_json1_0DescribeTimeToLiveCommand)(t,n)}};Wl.DescribeTimeToLiveCommand=sg});var cg=m(Yl=>{"use strict";Object.defineProperty(Yl,"__esModule",{value:!0});Yl.DisableKinesisStreamingDestinationCommand=void 0;var B4=$(),G4=q(),aC=J(),cC=Z(),ag=class extends G4.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,B4.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"DisableKinesisStreamingDestinationCommand",inputFilterSensitiveLog:aC.KinesisStreamingDestinationInput.filterSensitiveLog,outputFilterSensitiveLog:aC.KinesisStreamingDestinationOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,cC.serializeAws_json1_0DisableKinesisStreamingDestinationCommand)(t,n)}deserialize(t,n){return(0,cC.deserializeAws_json1_0DisableKinesisStreamingDestinationCommand)(t,n)}};Yl.DisableKinesisStreamingDestinationCommand=ag});var ug=m(Jl=>{"use strict";Object.defineProperty(Jl,"__esModule",{value:!0});Jl.EnableKinesisStreamingDestinationCommand=void 0;var $4=$(),V4=q(),lC=J(),uC=Z(),lg=class extends V4.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,$4.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"EnableKinesisStreamingDestinationCommand",inputFilterSensitiveLog:lC.KinesisStreamingDestinationInput.filterSensitiveLog,outputFilterSensitiveLog:lC.KinesisStreamingDestinationOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,uC.serializeAws_json1_0EnableKinesisStreamingDestinationCommand)(t,n)}deserialize(t,n){return(0,uC.deserializeAws_json1_0EnableKinesisStreamingDestinationCommand)(t,n)}};Jl.EnableKinesisStreamingDestinationCommand=lg});var fg=m(Ql=>{"use strict";Object.defineProperty(Ql,"__esModule",{value:!0});Ql.ExecuteStatementCommand=void 0;var K4=$(),H4=q(),dC=J(),fC=Z(),dg=class extends H4.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,K4.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"ExecuteStatementCommand",inputFilterSensitiveLog:dC.ExecuteStatementInput.filterSensitiveLog,outputFilterSensitiveLog:dC.ExecuteStatementOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,fC.serializeAws_json1_0ExecuteStatementCommand)(t,n)}deserialize(t,n){return(0,fC.deserializeAws_json1_0ExecuteStatementCommand)(t,n)}};Ql.ExecuteStatementCommand=dg});var pg=m(Xl=>{"use strict";Object.defineProperty(Xl,"__esModule",{value:!0});Xl.ExecuteTransactionCommand=void 0;var W4=$(),Y4=q(),mC=J(),pC=Z(),mg=class extends Y4.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,W4.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"ExecuteTransactionCommand",inputFilterSensitiveLog:mC.ExecuteTransactionInput.filterSensitiveLog,outputFilterSensitiveLog:mC.ExecuteTransactionOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,pC.serializeAws_json1_0ExecuteTransactionCommand)(t,n)}deserialize(t,n){return(0,pC.deserializeAws_json1_0ExecuteTransactionCommand)(t,n)}};Xl.ExecuteTransactionCommand=mg});var _g=m(Zl=>{"use strict";Object.defineProperty(Zl,"__esModule",{value:!0});Zl.ExportTableToPointInTimeCommand=void 0;var J4=$(),Q4=q(),hC=J(),_C=Z(),hg=class extends Q4.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,J4.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"ExportTableToPointInTimeCommand",inputFilterSensitiveLog:hC.ExportTableToPointInTimeInput.filterSensitiveLog,outputFilterSensitiveLog:hC.ExportTableToPointInTimeOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,_C.serializeAws_json1_0ExportTableToPointInTimeCommand)(t,n)}deserialize(t,n){return(0,_C.deserializeAws_json1_0ExportTableToPointInTimeCommand)(t,n)}};Zl.ExportTableToPointInTimeCommand=hg});var gg=m(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});eu.GetItemCommand=void 0;var X4=$(),Z4=q(),yC=J(),gC=Z(),yg=class extends Z4.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,X4.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"GetItemCommand",inputFilterSensitiveLog:yC.GetItemInput.filterSensitiveLog,outputFilterSensitiveLog:yC.GetItemOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,gC.serializeAws_json1_0GetItemCommand)(t,n)}deserialize(t,n){return(0,gC.deserializeAws_json1_0GetItemCommand)(t,n)}};eu.GetItemCommand=yg});var vg=m(tu=>{"use strict";Object.defineProperty(tu,"__esModule",{value:!0});tu.ListBackupsCommand=void 0;var e5=$(),t5=q(),SC=J(),vC=Z(),Sg=class extends t5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,e5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"ListBackupsCommand",inputFilterSensitiveLog:SC.ListBackupsInput.filterSensitiveLog,outputFilterSensitiveLog:SC.ListBackupsOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,vC.serializeAws_json1_0ListBackupsCommand)(t,n)}deserialize(t,n){return(0,vC.deserializeAws_json1_0ListBackupsCommand)(t,n)}};tu.ListBackupsCommand=Sg});var ru=m(nu=>{"use strict";Object.defineProperty(nu,"__esModule",{value:!0});nu.ListContributorInsightsCommand=void 0;var n5=$(),r5=q(),wC=J(),bC=Z(),wg=class extends r5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,n5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"ListContributorInsightsCommand",inputFilterSensitiveLog:wC.ListContributorInsightsInput.filterSensitiveLog,outputFilterSensitiveLog:wC.ListContributorInsightsOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,bC.serializeAws_json1_0ListContributorInsightsCommand)(t,n)}deserialize(t,n){return(0,bC.deserializeAws_json1_0ListContributorInsightsCommand)(t,n)}};nu.ListContributorInsightsCommand=wg});var su=m(iu=>{"use strict";Object.defineProperty(iu,"__esModule",{value:!0});iu.ListExportsCommand=void 0;var i5=$(),s5=q(),EC=J(),AC=Z(),bg=class extends s5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,i5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"ListExportsCommand",inputFilterSensitiveLog:EC.ListExportsInput.filterSensitiveLog,outputFilterSensitiveLog:EC.ListExportsOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,AC.serializeAws_json1_0ListExportsCommand)(t,n)}deserialize(t,n){return(0,AC.deserializeAws_json1_0ListExportsCommand)(t,n)}};iu.ListExportsCommand=bg});var Ag=m(ou=>{"use strict";Object.defineProperty(ou,"__esModule",{value:!0});ou.ListGlobalTablesCommand=void 0;var o5=$(),a5=q(),TC=J(),CC=Z(),Eg=class extends a5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,o5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"ListGlobalTablesCommand",inputFilterSensitiveLog:TC.ListGlobalTablesInput.filterSensitiveLog,outputFilterSensitiveLog:TC.ListGlobalTablesOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,CC.serializeAws_json1_0ListGlobalTablesCommand)(t,n)}deserialize(t,n){return(0,CC.deserializeAws_json1_0ListGlobalTablesCommand)(t,n)}};ou.ListGlobalTablesCommand=Eg});var cu=m(au=>{"use strict";Object.defineProperty(au,"__esModule",{value:!0});au.ListTablesCommand=void 0;var c5=$(),l5=q(),xC=J(),IC=Z(),Tg=class extends l5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,c5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"ListTablesCommand",inputFilterSensitiveLog:xC.ListTablesInput.filterSensitiveLog,outputFilterSensitiveLog:xC.ListTablesOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,IC.serializeAws_json1_0ListTablesCommand)(t,n)}deserialize(t,n){return(0,IC.deserializeAws_json1_0ListTablesCommand)(t,n)}};au.ListTablesCommand=Tg});var xg=m(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});lu.ListTagsOfResourceCommand=void 0;var u5=$(),d5=q(),RC=J(),DC=Z(),Cg=class extends d5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,u5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"ListTagsOfResourceCommand",inputFilterSensitiveLog:RC.ListTagsOfResourceInput.filterSensitiveLog,outputFilterSensitiveLog:RC.ListTagsOfResourceOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,DC.serializeAws_json1_0ListTagsOfResourceCommand)(t,n)}deserialize(t,n){return(0,DC.deserializeAws_json1_0ListTagsOfResourceCommand)(t,n)}};lu.ListTagsOfResourceCommand=Cg});var Rg=m(uu=>{"use strict";Object.defineProperty(uu,"__esModule",{value:!0});uu.PutItemCommand=void 0;var f5=$(),m5=q(),NC=J(),PC=Z(),Ig=class extends m5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,f5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"PutItemCommand",inputFilterSensitiveLog:NC.PutItemInput.filterSensitiveLog,outputFilterSensitiveLog:NC.PutItemOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,PC.serializeAws_json1_0PutItemCommand)(t,n)}deserialize(t,n){return(0,PC.deserializeAws_json1_0PutItemCommand)(t,n)}};uu.PutItemCommand=Ig});var fu=m(du=>{"use strict";Object.defineProperty(du,"__esModule",{value:!0});du.QueryCommand=void 0;var p5=$(),h5=q(),OC=J(),LC=Z(),Dg=class extends h5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,p5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"QueryCommand",inputFilterSensitiveLog:OC.QueryInput.filterSensitiveLog,outputFilterSensitiveLog:OC.QueryOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,LC.serializeAws_json1_0QueryCommand)(t,n)}deserialize(t,n){return(0,LC.deserializeAws_json1_0QueryCommand)(t,n)}};du.QueryCommand=Dg});var Pg=m(mu=>{"use strict";Object.defineProperty(mu,"__esModule",{value:!0});mu.RestoreTableFromBackupCommand=void 0;var _5=$(),y5=q(),qC=J(),MC=Z(),Ng=class extends y5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,_5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"RestoreTableFromBackupCommand",inputFilterSensitiveLog:qC.RestoreTableFromBackupInput.filterSensitiveLog,outputFilterSensitiveLog:qC.RestoreTableFromBackupOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,MC.serializeAws_json1_0RestoreTableFromBackupCommand)(t,n)}deserialize(t,n){return(0,MC.deserializeAws_json1_0RestoreTableFromBackupCommand)(t,n)}};mu.RestoreTableFromBackupCommand=Ng});var Lg=m(pu=>{"use strict";Object.defineProperty(pu,"__esModule",{value:!0});pu.RestoreTableToPointInTimeCommand=void 0;var g5=$(),S5=q(),zC=J(),jC=Z(),Og=class extends S5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,g5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"RestoreTableToPointInTimeCommand",inputFilterSensitiveLog:zC.RestoreTableToPointInTimeInput.filterSensitiveLog,outputFilterSensitiveLog:zC.RestoreTableToPointInTimeOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,jC.serializeAws_json1_0RestoreTableToPointInTimeCommand)(t,n)}deserialize(t,n){return(0,jC.deserializeAws_json1_0RestoreTableToPointInTimeCommand)(t,n)}};pu.RestoreTableToPointInTimeCommand=Og});var _u=m(hu=>{"use strict";Object.defineProperty(hu,"__esModule",{value:!0});hu.ScanCommand=void 0;var v5=$(),w5=q(),kC=J(),FC=Z(),qg=class extends w5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,v5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"ScanCommand",inputFilterSensitiveLog:kC.ScanInput.filterSensitiveLog,outputFilterSensitiveLog:kC.ScanOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,FC.serializeAws_json1_0ScanCommand)(t,n)}deserialize(t,n){return(0,FC.deserializeAws_json1_0ScanCommand)(t,n)}};hu.ScanCommand=qg});var zg=m(yu=>{"use strict";Object.defineProperty(yu,"__esModule",{value:!0});yu.TagResourceCommand=void 0;var b5=$(),E5=q(),A5=J(),UC=Z(),Mg=class extends E5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,b5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"TagResourceCommand",inputFilterSensitiveLog:A5.TagResourceInput.filterSensitiveLog,outputFilterSensitiveLog:f=>f},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,UC.serializeAws_json1_0TagResourceCommand)(t,n)}deserialize(t,n){return(0,UC.deserializeAws_json1_0TagResourceCommand)(t,n)}};yu.TagResourceCommand=Mg});var kg=m(gu=>{"use strict";Object.defineProperty(gu,"__esModule",{value:!0});gu.TransactGetItemsCommand=void 0;var T5=$(),C5=q(),BC=J(),GC=Z(),jg=class extends C5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,T5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"TransactGetItemsCommand",inputFilterSensitiveLog:BC.TransactGetItemsInput.filterSensitiveLog,outputFilterSensitiveLog:BC.TransactGetItemsOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,GC.serializeAws_json1_0TransactGetItemsCommand)(t,n)}deserialize(t,n){return(0,GC.deserializeAws_json1_0TransactGetItemsCommand)(t,n)}};gu.TransactGetItemsCommand=jg});var Ug=m(Su=>{"use strict";Object.defineProperty(Su,"__esModule",{value:!0});Su.TransactWriteItemsCommand=void 0;var x5=$(),I5=q(),$C=J(),VC=Z(),Fg=class extends I5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,x5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"TransactWriteItemsCommand",inputFilterSensitiveLog:$C.TransactWriteItemsInput.filterSensitiveLog,outputFilterSensitiveLog:$C.TransactWriteItemsOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,VC.serializeAws_json1_0TransactWriteItemsCommand)(t,n)}deserialize(t,n){return(0,VC.deserializeAws_json1_0TransactWriteItemsCommand)(t,n)}};Su.TransactWriteItemsCommand=Fg});var Gg=m(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});vu.UntagResourceCommand=void 0;var R5=$(),D5=q(),N5=J(),KC=Z(),Bg=class extends D5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,R5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"UntagResourceCommand",inputFilterSensitiveLog:N5.UntagResourceInput.filterSensitiveLog,outputFilterSensitiveLog:f=>f},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,KC.serializeAws_json1_0UntagResourceCommand)(t,n)}deserialize(t,n){return(0,KC.deserializeAws_json1_0UntagResourceCommand)(t,n)}};vu.UntagResourceCommand=Bg});var Vg=m(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});wu.UpdateContinuousBackupsCommand=void 0;var P5=$(),O5=q(),HC=J(),WC=Z(),$g=class extends O5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,P5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"UpdateContinuousBackupsCommand",inputFilterSensitiveLog:HC.UpdateContinuousBackupsInput.filterSensitiveLog,outputFilterSensitiveLog:HC.UpdateContinuousBackupsOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,WC.serializeAws_json1_0UpdateContinuousBackupsCommand)(t,n)}deserialize(t,n){return(0,WC.deserializeAws_json1_0UpdateContinuousBackupsCommand)(t,n)}};wu.UpdateContinuousBackupsCommand=$g});var Hg=m(bu=>{"use strict";Object.defineProperty(bu,"__esModule",{value:!0});bu.UpdateContributorInsightsCommand=void 0;var L5=$(),q5=q(),YC=J(),JC=Z(),Kg=class extends q5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,L5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"UpdateContributorInsightsCommand",inputFilterSensitiveLog:YC.UpdateContributorInsightsInput.filterSensitiveLog,outputFilterSensitiveLog:YC.UpdateContributorInsightsOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,JC.serializeAws_json1_0UpdateContributorInsightsCommand)(t,n)}deserialize(t,n){return(0,JC.deserializeAws_json1_0UpdateContributorInsightsCommand)(t,n)}};bu.UpdateContributorInsightsCommand=Kg});var Yg=m(Eu=>{"use strict";Object.defineProperty(Eu,"__esModule",{value:!0});Eu.UpdateGlobalTableCommand=void 0;var M5=$(),z5=q(),QC=J(),XC=Z(),Wg=class extends z5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,M5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"UpdateGlobalTableCommand",inputFilterSensitiveLog:QC.UpdateGlobalTableInput.filterSensitiveLog,outputFilterSensitiveLog:QC.UpdateGlobalTableOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,XC.serializeAws_json1_0UpdateGlobalTableCommand)(t,n)}deserialize(t,n){return(0,XC.deserializeAws_json1_0UpdateGlobalTableCommand)(t,n)}};Eu.UpdateGlobalTableCommand=Wg});var Qg=m(Au=>{"use strict";Object.defineProperty(Au,"__esModule",{value:!0});Au.UpdateGlobalTableSettingsCommand=void 0;var j5=$(),k5=q(),ZC=J(),ex=Z(),Jg=class extends k5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,j5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"UpdateGlobalTableSettingsCommand",inputFilterSensitiveLog:ZC.UpdateGlobalTableSettingsInput.filterSensitiveLog,outputFilterSensitiveLog:ZC.UpdateGlobalTableSettingsOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,ex.serializeAws_json1_0UpdateGlobalTableSettingsCommand)(t,n)}deserialize(t,n){return(0,ex.deserializeAws_json1_0UpdateGlobalTableSettingsCommand)(t,n)}};Au.UpdateGlobalTableSettingsCommand=Jg});var Zg=m(Tu=>{"use strict";Object.defineProperty(Tu,"__esModule",{value:!0});Tu.UpdateItemCommand=void 0;var F5=$(),U5=q(),tx=J(),nx=Z(),Xg=class extends U5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,F5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"UpdateItemCommand",inputFilterSensitiveLog:tx.UpdateItemInput.filterSensitiveLog,outputFilterSensitiveLog:tx.UpdateItemOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,nx.serializeAws_json1_0UpdateItemCommand)(t,n)}deserialize(t,n){return(0,nx.deserializeAws_json1_0UpdateItemCommand)(t,n)}};Tu.UpdateItemCommand=Xg});var tS=m(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});Cu.UpdateTableCommand=void 0;var B5=$(),G5=q(),rx=J(),ix=Z(),eS=class extends G5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,B5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"UpdateTableCommand",inputFilterSensitiveLog:rx.UpdateTableInput.filterSensitiveLog,outputFilterSensitiveLog:rx.UpdateTableOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,ix.serializeAws_json1_0UpdateTableCommand)(t,n)}deserialize(t,n){return(0,ix.deserializeAws_json1_0UpdateTableCommand)(t,n)}};Cu.UpdateTableCommand=eS});var rS=m(xu=>{"use strict";Object.defineProperty(xu,"__esModule",{value:!0});xu.UpdateTableReplicaAutoScalingCommand=void 0;var $5=$(),V5=q(),sx=J(),ox=Z(),nS=class extends V5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,$5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"UpdateTableReplicaAutoScalingCommand",inputFilterSensitiveLog:sx.UpdateTableReplicaAutoScalingInput.filterSensitiveLog,outputFilterSensitiveLog:sx.UpdateTableReplicaAutoScalingOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,ox.serializeAws_json1_0UpdateTableReplicaAutoScalingCommand)(t,n)}deserialize(t,n){return(0,ox.deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand)(t,n)}};xu.UpdateTableReplicaAutoScalingCommand=nS});var sS=m(Iu=>{"use strict";Object.defineProperty(Iu,"__esModule",{value:!0});Iu.UpdateTimeToLiveCommand=void 0;var K5=$(),H5=q(),ax=J(),cx=Z(),iS=class extends H5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,K5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"UpdateTimeToLiveCommand",inputFilterSensitiveLog:ax.UpdateTimeToLiveInput.filterSensitiveLog,outputFilterSensitiveLog:ax.UpdateTimeToLiveOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,cx.serializeAws_json1_0UpdateTimeToLiveCommand)(t,n)}deserialize(t,n){return(0,cx.deserializeAws_json1_0UpdateTimeToLiveCommand)(t,n)}};Iu.UpdateTimeToLiveCommand=iS});var lx=m(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});oi.booleanSelector=oi.SelectorType=void 0;var W5;(function(e){e.ENV="env",e.CONFIG="shared config entry"})(W5=oi.SelectorType||(oi.SelectorType={}));var Y5=(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]}.`)}};oi.booleanSelector=Y5});var aS=m(oS=>{"use strict";Object.defineProperty(oS,"__esModule",{value:!0});var J5=Y();J5.__exportStar(lx(),oS)});var ux=m(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS=Kt.DEFAULT_USE_DUALSTACK_ENDPOINT=Kt.CONFIG_USE_DUALSTACK_ENDPOINT=Kt.ENV_USE_DUALSTACK_ENDPOINT=void 0;var Ru=aS();Kt.ENV_USE_DUALSTACK_ENDPOINT="AWS_USE_DUALSTACK_ENDPOINT";Kt.CONFIG_USE_DUALSTACK_ENDPOINT="use_dualstack_endpoint";Kt.DEFAULT_USE_DUALSTACK_ENDPOINT=!1;Kt.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>(0,Ru.booleanSelector)(e,Kt.ENV_USE_DUALSTACK_ENDPOINT,Ru.SelectorType.ENV),configFileSelector:e=>(0,Ru.booleanSelector)(e,Kt.CONFIG_USE_DUALSTACK_ENDPOINT,Ru.SelectorType.CONFIG),default:!1}});var dx=m(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS=Ht.DEFAULT_USE_FIPS_ENDPOINT=Ht.CONFIG_USE_FIPS_ENDPOINT=Ht.ENV_USE_FIPS_ENDPOINT=void 0;var Du=aS();Ht.ENV_USE_FIPS_ENDPOINT="AWS_USE_FIPS_ENDPOINT";Ht.CONFIG_USE_FIPS_ENDPOINT="use_fips_endpoint";Ht.DEFAULT_USE_FIPS_ENDPOINT=!1;Ht.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>(0,Du.booleanSelector)(e,Ht.ENV_USE_FIPS_ENDPOINT,Du.SelectorType.ENV),configFileSelector:e=>(0,Du.booleanSelector)(e,Ht.CONFIG_USE_FIPS_ENDPOINT,Du.SelectorType.CONFIG),default:!1}});var fx=m(Nu=>{"use strict";Object.defineProperty(Nu,"__esModule",{value:!0});Nu.normalizeProvider=void 0;var Q5=e=>{if(typeof e=="function")return e;let t=Promise.resolve(e);return()=>t};Nu.normalizeProvider=Q5});var Ko=m(cS=>{"use strict";Object.defineProperty(cS,"__esModule",{value:!0});var X5=Y();X5.__exportStar(fx(),cS)});var px=m(Pu=>{"use strict";Object.defineProperty(Pu,"__esModule",{value:!0});Pu.resolveCustomEndpointsConfig=void 0;var mx=Ko(),Z5=e=>{var t;let{endpoint:n,urlParser:r}=e;return g(a({},e),{tls:(t=e.tls)!==null&&t!==void 0?t:!0,endpoint:(0,mx.normalizeProvider)(typeof n=="string"?r(n):n),isCustomEndpoint:!0,useDualstackEndpoint:(0,mx.normalizeProvider)(e.useDualstackEndpoint)})};Pu.resolveCustomEndpointsConfig=Z5});var hx=m(Ou=>{"use strict";Object.defineProperty(Ou,"__esModule",{value:!0});Ou.getEndpointFromRegion=void 0;var eY=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(),o=await e.useFipsEndpoint(),{hostname:c}=(t=await e.regionInfoProvider(r,{useDualstackEndpoint:s,useFipsEndpoint:o}))!==null&&t!==void 0?t:{};if(!c)throw new Error("Cannot resolve hostname from client config");return e.urlParser(`${n?"https:":"http:"}//${c}`)};Ou.getEndpointFromRegion=eY});var yx=m(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});Lu.resolveEndpointsConfig=void 0;var _x=Ko(),tY=hx(),nY=e=>{var t;let n=(0,_x.normalizeProvider)(e.useDualstackEndpoint),{endpoint:r,useFipsEndpoint:i,urlParser:s}=e;return g(a({},e),{tls:(t=e.tls)!==null&&t!==void 0?t:!0,endpoint:r?(0,_x.normalizeProvider)(typeof r=="string"?s(r):r):()=>(0,tY.getEndpointFromRegion)(g(a({},e),{useDualstackEndpoint:n,useFipsEndpoint:i})),isCustomEndpoint:!!r,useDualstackEndpoint:n})};Lu.resolveEndpointsConfig=nY});var gx=m(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});var qu=Y();qu.__exportStar(ux(),ts);qu.__exportStar(dx(),ts);qu.__exportStar(px(),ts);qu.__exportStar(yx(),ts)});var Sx=m(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.NODE_REGION_CONFIG_FILE_OPTIONS=Wt.NODE_REGION_CONFIG_OPTIONS=Wt.REGION_INI_NAME=Wt.REGION_ENV_NAME=void 0;Wt.REGION_ENV_NAME="AWS_REGION";Wt.REGION_INI_NAME="region";Wt.NODE_REGION_CONFIG_OPTIONS={environmentVariableSelector:e=>e[Wt.REGION_ENV_NAME],configFileSelector:e=>e[Wt.REGION_INI_NAME],default:()=>{throw new Error("Region is missing")}};Wt.NODE_REGION_CONFIG_FILE_OPTIONS={preferredFile:"credentials"}});var lS=m(Mu=>{"use strict";Object.defineProperty(Mu,"__esModule",{value:!0});Mu.isFipsRegion=void 0;var rY=e=>typeof e=="string"&&(e.startsWith("fips-")||e.endsWith("-fips"));Mu.isFipsRegion=rY});var vx=m(zu=>{"use strict";Object.defineProperty(zu,"__esModule",{value:!0});zu.getRealRegion=void 0;var iY=lS(),sY=e=>(0,iY.isFipsRegion)(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e;zu.getRealRegion=sY});var bx=m(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});ju.resolveRegionConfig=void 0;var wx=vx(),oY=lS(),aY=e=>{let{region:t,useFipsEndpoint:n}=e;if(!t)throw new Error("Region is missing");return g(a({},e),{region:async()=>{if(typeof t=="string")return(0,wx.getRealRegion)(t);let r=await t();return(0,wx.getRealRegion)(r)},useFipsEndpoint:async()=>{let r=typeof t=="string"?t:await t();return(0,oY.isFipsRegion)(r)?!0:typeof n=="boolean"?Promise.resolve(n):n()}})};ju.resolveRegionConfig=aY});var Ax=m(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});var Ex=Y();Ex.__exportStar(Sx(),ku);Ex.__exportStar(bx(),ku)});var Cx=m(Tx=>{"use strict";Object.defineProperty(Tx,"__esModule",{value:!0})});var Ix=m(xx=>{"use strict";Object.defineProperty(xx,"__esModule",{value:!0})});var Rx=m(Fu=>{"use strict";Object.defineProperty(Fu,"__esModule",{value:!0});Fu.getHostnameFromVariants=void 0;var cY=(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};Fu.getHostnameFromVariants=cY});var Dx=m(Uu=>{"use strict";Object.defineProperty(Uu,"__esModule",{value:!0});Uu.getResolvedHostname=void 0;var lY=(e,{regionHostname:t,partitionHostname:n})=>t||(n?n.replace("{region}",e):void 0);Uu.getResolvedHostname=lY});var Nx=m(Bu=>{"use strict";Object.defineProperty(Bu,"__esModule",{value:!0});Bu.getResolvedPartition=void 0;var uY=(e,{partitionHash:t})=>{var n;return(n=Object.keys(t||{}).find(r=>t[r].regions.includes(e)))!==null&&n!==void 0?n:"aws"};Bu.getResolvedPartition=uY});var Px=m(Gu=>{"use strict";Object.defineProperty(Gu,"__esModule",{value:!0});Gu.getResolvedSigningRegion=void 0;var dY=(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)}};Gu.getResolvedSigningRegion=dY});var Lx=m($u=>{"use strict";Object.defineProperty($u,"__esModule",{value:!0});$u.getRegionInfo=void 0;var Ox=Rx(),fY=Dx(),mY=Nx(),pY=Px(),hY=(e,{useFipsEndpoint:t=!1,useDualstackEndpoint:n=!1,signingService:r,regionHash:i,partitionHash:s})=>{var o,c,l,d,f,h;let _=(0,mY.getResolvedPartition)(e,{partitionHash:s}),S=e in i?e:(c=(o=s[_])===null||o===void 0?void 0:o.endpoint)!==null&&c!==void 0?c:e,v={useFipsEndpoint:t,useDualstackEndpoint:n},y=(0,Ox.getHostnameFromVariants)((l=i[S])===null||l===void 0?void 0:l.variants,v),R=(0,Ox.getHostnameFromVariants)((d=s[_])===null||d===void 0?void 0:d.variants,v),P=(0,fY.getResolvedHostname)(S,{regionHostname:y,partitionHostname:R});if(P===void 0)throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:S,useFipsEndpoint:t,useDualstackEndpoint:n}}`);let C=(0,pY.getResolvedSigningRegion)(P,{signingRegion:(f=i[S])===null||f===void 0?void 0:f.signingRegion,regionRegex:s[_].regionRegex,useFipsEndpoint:t});return a(a({partition:_,signingService:r,hostname:P},C&&{signingRegion:C}),((h=i[S])===null||h===void 0?void 0:h.signingService)&&{signingService:i[S].signingService})};$u.getRegionInfo=hY});var qx=m(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});var uS=Y();uS.__exportStar(Cx(),Ho);uS.__exportStar(Ix(),Ho);uS.__exportStar(Lx(),Ho)});var tn=m(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});var dS=Y();dS.__exportStar(gx(),Wo);dS.__exportStar(Ax(),Wo);dS.__exportStar(qx(),Wo)});var Vu=m(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.getContentLengthPlugin=Kn.contentLengthMiddlewareOptions=Kn.contentLengthMiddleware=void 0;var _Y=qt(),Mx="content-length";function zx(e){return t=>async n=>{let r=n.request;if(_Y.HttpRequest.isInstance(r)){let{body:i,headers:s}=r;if(i&&Object.keys(s).map(o=>o.toLowerCase()).indexOf(Mx)===-1)try{let o=e(i);r.headers=g(a({},r.headers),{[Mx]:String(o)})}catch{}}return t(g(a({},n),{request:r}))}}Kn.contentLengthMiddleware=zx;Kn.contentLengthMiddlewareOptions={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0};var yY=e=>({applyToStack:t=>{t.add(zx(e.bodyLengthChecker),Kn.contentLengthMiddlewareOptions)}});Kn.getContentLengthPlugin=yY});var Fx=m(Ku=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});Ku.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS=void 0;var jx=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"],fS="endpoint_discovery_enabled",kx=e=>["false","0"].indexOf(e)>=0;Ku.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS={environmentVariableSelector:e=>{for(let t=0;t<jx.length;t++){let n=jx[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!kx(r)}}},configFileSelector:e=>{if(fS in e){let t=e[fS];if(t===void 0)throw Error(`Shared config entry ${fS} can't be undefined, got "${t}"`);return!kx(t)}},default:void 0}});var Ux=m(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{value:!0});Hu.getCacheKey=void 0;var gY=async(e,t,n)=>{let{accessKeyId:r}=await t.credentials(),{identifiers:i}=n;return JSON.stringify(a(a({},r&&{accessKeyId:r}),i&&{commandName:e,identifiers:Object.entries(i).sort().reduce((s,[o,c])=>g(a({},s),{[o]:c}),{})}))};Hu.getCacheKey=gY});var Bx=m(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});Wu.updateDiscoveredEndpointInCache=void 0;var Hn={},SY=async(e,t)=>new Promise((n,r)=>{let{endpointCache:i}=e,{cacheKey:s,commandName:o,identifiers:c}=t,l=i.get(s);if(l&&l.length===1&&l[0].Address==="")t.isDiscoveredEndpointRequired?(Hn[s]||(Hn[s]=[]),Hn[s].push({resolve:n,reject:r})):n();else if(l&&l.length>0)n();else{let d=[{Address:"",CachePeriodInMinutes:1}];i.set(s,d);let f=new t.endpointDiscoveryCommandCtor({Operation:o.slice(0,-7),Identifiers:c});f.resolveMiddleware(t.clientStack,e,t.options)(f).then(_=>{i.set(s,_.output.Endpoints),Hn[s]&&(Hn[s].forEach(({resolve:S})=>{S()}),delete Hn[s]),n()}).catch(_=>{var S;(_.name==="InvalidEndpointException"||((S=_.$metadata)===null||S===void 0?void 0:S.httpStatusCode)===421)&&i.delete(s);let v=Object.assign(new Error("The operation to discover endpoint failed. Please retry, or provide a custom endpoint and disable endpoint discovery to proceed."),{reason:_});Hn[s]&&(Hn[s].forEach(({reject:y})=>{y(v)}),delete Hn[s]),t.isDiscoveredEndpointRequired?r(v):(i.set(s,d),n())})}});Wu.updateDiscoveredEndpointInCache=SY});var $x=m(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});Yu.endpointDiscoveryMiddleware=void 0;var vY=qt(),wY=Ux(),Gx=Bx(),bY=(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:o,identifiers:c}=t,{clientName:l,commandName:d}=r,f=await e.endpointDiscoveryEnabled(),h=await(0,wY.getCacheKey)(d,e,{identifiers:c});if(o){if(f===!1)throw new Error(`Endpoint Discovery is disabled but ${d} on ${l} requires it. Please check your configurations.`);await(0,Gx.updateDiscoveredEndpointInCache)(e,g(a({},t),{commandName:d,cacheKey:h,endpointDiscoveryCommandCtor:s}))}else f&&(0,Gx.updateDiscoveredEndpointInCache)(e,g(a({},t),{commandName:d,cacheKey:h,endpointDiscoveryCommandCtor:s}));let{request:_}=i;if(h&&vY.HttpRequest.isInstance(_)){let S=e.endpointCache.getEndpoint(h);S&&(_.hostname=S)}return n(i)};Yu.endpointDiscoveryMiddleware=bY});var Vx=m(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.getEndpointDiscoveryOptionalPlugin=zt.getEndpointDiscoveryRequiredPlugin=zt.getEndpointDiscoveryPlugin=zt.endpointDiscoveryMiddlewareOptions=void 0;var mS=$x();zt.endpointDiscoveryMiddlewareOptions={name:"endpointDiscoveryMiddleware",step:"build",tags:["ENDPOINT_DISCOVERY"],override:!0};var EY=(e,t)=>({applyToStack:n=>{n.add((0,mS.endpointDiscoveryMiddleware)(e,t),zt.endpointDiscoveryMiddlewareOptions)}});zt.getEndpointDiscoveryPlugin=EY;var AY=(e,t)=>({applyToStack:n=>{n.add((0,mS.endpointDiscoveryMiddleware)(e,g(a({},t),{isDiscoveredEndpointRequired:!0})),zt.endpointDiscoveryMiddlewareOptions)}});zt.getEndpointDiscoveryRequiredPlugin=AY;var TY=(e,t)=>({applyToStack:n=>{n.add((0,mS.endpointDiscoveryMiddleware)(e,g(a({},t),{isDiscoveredEndpointRequired:!1})),zt.endpointDiscoveryMiddlewareOptions)}});zt.getEndpointDiscoveryOptionalPlugin=TY});var Hx=m(Kx=>{"use strict";Object.defineProperty(Kx,"__esModule",{value:!0})});var Yx=m((Bge,Wx)=>{function Wn(e){Object.defineProperty(this,"_next",{writable:!1,enumerable:!1,value:e}),this.done=!1}Wn.prototype.next=function(){if(this.done)return{done:!0};var e=this._next();return e.done&&(this.done=!0),e};typeof Symbol<"u"&&(Wn.prototype[Symbol.iterator]=function(){return this});Wn.of=function(){var e=arguments,t=e.length,n=0;return new Wn(function(){return n>=t?{done:!0}:{done:!1,value:e[n++]}})};Wn.empty=function(){var e=new Wn(null);return e.done=!0,e};Wn.is=function(e){return e instanceof Wn?!0:typeof e=="object"&&e!==null&&typeof e.next=="function"};Wx.exports=Wn});var pS=m((Gge,Zx)=>{var Jx=typeof ArrayBuffer<"u",Qx=typeof Symbol<"u";function Xx(e,t){var n,r,i,s,o;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)||Jx&&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(Qx&&Symbol.iterator in e&&typeof e.next!="function"&&(e=e[Symbol.iterator]()),typeof e.next=="function"){for(n=e,i=0;o=n.next(),o.done!==!0;)t(o.value,i),i++;return}for(r in e)e.hasOwnProperty(r)&&t(e[r],r)}Xx.forEachWithNullKeys=function(e,t){var n,r,i,s,o;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)||Jx&&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(Qx&&Symbol.iterator in e&&typeof e.next!="function"&&(e=e[Symbol.iterator]()),typeof e.next=="function"){for(n=e,i=0;o=n.next(),o.done!==!0;)t(o.value,null),i++;return}for(r in e)e.hasOwnProperty(r)&&t(e[r],r)};Zx.exports=Xx});var hS=m(_n=>{var CY=Math.pow(2,8)-1,xY=Math.pow(2,16)-1,IY=Math.pow(2,32)-1,RY=Math.pow(2,7)-1,DY=Math.pow(2,15)-1,NY=Math.pow(2,31)-1;_n.getPointerArray=function(e){var t=e-1;return t<=CY?Uint8Array:t<=xY?Uint16Array:t<=IY?Uint32Array:Float64Array};_n.getSignedPointerArray=function(e){var t=e-1;return t<=RY?Int8Array:t<=DY?Int16Array:t<=NY?Int32Array:Float64Array};_n.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 PY={Uint8Array:1,Int8Array:2,Uint16Array:3,Int16Array:4,Uint32Array:5,Int32Array:6,Float32Array:7,Float64Array:8};_n.getMinimalRepresentation=function(e,t){var n=null,r=0,i,s,o,c,l;for(c=0,l=e.length;c<l;c++)o=t?t(e[c]):e[c],s=_n.getNumberType(o),i=PY[s.name],i>r&&(r=i,n=s);return n};_n.isTypedArray=function(e){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView(e)};_n.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};_n.indices=function(e){for(var t=_n.getPointerArray(e),n=new t(e),r=0;r<e;r++)n[r]=r;return n}});var nI=m(Yo=>{var eI=pS(),tI=hS();function OY(e){return Array.isArray(e)||tI.isTypedArray(e)}function _S(e){if(typeof e.length=="number")return e.length;if(typeof e.size=="number")return e.size}function LY(e){var t=_S(e),n=typeof t=="number"?new Array(t):[],r=0;return eI(e,function(i){n[r++]=i}),n}function qY(e){var t=_S(e),n=typeof t=="number"?tI.getPointerArray(t):Array,r=typeof t=="number"?new Array(t):[],i=typeof t=="number"?new n(t):[],s=0;return eI(e,function(o){r[s]=o,i[s]=s++}),[r,i]}Yo.isArrayLike=OY;Yo.guessLength=_S;Yo.toArray=LY;Yo.toArrayWithIndices=qY});var iI=m((Kge,rI)=>{var yS=Yx(),MY=pS(),zY=hS(),jY=nI();function $e(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=zY.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={}}$e.prototype.clear=function(){this.size=0,this.head=0,this.tail=0,this.items={}};$e.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};$e.prototype.set=function(e,t){var n=this.items[e];if(typeof n<"u"){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};$e.prototype.setpop=function(e,t){var n=null,r=null,i=this.items[e];return typeof i<"u"?(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)};$e.prototype.has=function(e){return e in this.items};$e.prototype.get=function(e){var t=this.items[e];if(!(typeof t>"u"))return this.splayOnTop(t),this.V[t]};$e.prototype.peek=function(e){var t=this.items[e];if(!(typeof t>"u"))return this.V[t]};$e.prototype.forEach=function(e,t){t=arguments.length>1?t:this;for(var n=0,r=this.size,i=this.head,s=this.K,o=this.V,c=this.forward;n<r;)e.call(t,o[i],s[i],this),i=c[i],n++};$e.prototype.keys=function(){var e=0,t=this.size,n=this.head,r=this.K,i=this.forward;return new yS(function(){if(e>=t)return{done:!0};var s=r[n];return e++,e<t&&(n=i[n]),{done:!1,value:s}})};$e.prototype.values=function(){var e=0,t=this.size,n=this.head,r=this.V,i=this.forward;return new yS(function(){if(e>=t)return{done:!0};var s=r[n];return e++,e<t&&(n=i[n]),{done:!1,value:s}})};$e.prototype.entries=function(){var e=0,t=this.size,n=this.head,r=this.K,i=this.V,s=this.forward;return new yS(function(){if(e>=t)return{done:!0};var o=r[n],c=i[n];return e++,e<t&&(n=s[n]),{done:!1,value:[o,c]}})};typeof Symbol<"u"&&($e.prototype[Symbol.iterator]=$e.prototype.entries);$e.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:$e,enumerable:!1}),e};typeof Symbol<"u"&&($e.prototype[Symbol.for("nodejs.util.inspect.custom")]=$e.prototype.inspect);$e.from=function(e,t,n,r){if(arguments.length<2){if(r=jY.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 $e(t,n,r);return MY(e,function(s,o){i.set(o,s)}),i};rI.exports=$e});var sI=m(Ju=>{"use strict";Object.defineProperty(Ju,"__esModule",{value:!0});Ju.EndpointCache=void 0;var kY=Y(),FY=kY.__importDefault(iI()),gS=class{constructor(t){this.cache=new FY.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()}};Ju.EndpointCache=gS});var aI=m(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});var oI=Y();oI.__exportStar(Hx(),Qu);oI.__exportStar(sI(),Qu)});var cI=m(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});Xu.resolveEndpointDiscoveryConfig=void 0;var UY=aI(),BY=(e,{endpointDiscoveryCommandCtor:t})=>{var n;return g(a({},e),{endpointDiscoveryCommandCtor:t,endpointCache:new UY.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})};Xu.resolveEndpointDiscoveryConfig=BY});var vS=m(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});var SS=Y();SS.__exportStar(Fx(),Jo);SS.__exportStar(Vx(),Jo);SS.__exportStar(cI(),Jo)});var Zu=m(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.getHostHeaderPlugin=Yt.hostHeaderMiddlewareOptions=Yt.hostHeaderMiddleware=Yt.resolveHostHeaderConfig=void 0;var GY=qt();function $Y(e){return e}Yt.resolveHostHeaderConfig=$Y;var VY=e=>t=>async n=>{if(!GY.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)};Yt.hostHeaderMiddleware=VY;Yt.hostHeaderMiddlewareOptions={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0};var KY=e=>({applyToStack:t=>{t.add((0,Yt.hostHeaderMiddleware)(e),Yt.hostHeaderMiddlewareOptions)}});Yt.getHostHeaderPlugin=KY});var lI=m(yn=>{"use strict";Object.defineProperty(yn,"__esModule",{value:!0});yn.getLoggerPlugin=yn.loggerMiddlewareOptions=yn.loggerMiddleware=void 0;var HY=()=>(e,t)=>async n=>{let{clientName:r,commandName:i,inputFilterSensitiveLog:s,logger:o,outputFilterSensitiveLog:c}=t,l=await e(n);if(!o)return l;if(typeof o.info=="function"){let d=l.output,{$metadata:f}=d,h=_r(d,["$metadata"]);o.info({clientName:r,commandName:i,input:s(n.input),output:c(h),metadata:f})}return l};yn.loggerMiddleware=HY;yn.loggerMiddlewareOptions={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0};var WY=e=>({applyToStack:t=>{t.add((0,yn.loggerMiddleware)(),yn.loggerMiddlewareOptions)}});yn.getLoggerPlugin=WY});var ed=m(wS=>{"use strict";Object.defineProperty(wS,"__esModule",{value:!0});var YY=Y();YY.__exportStar(lI(),wS)});var Qo=m(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.DEFAULT_RETRY_MODE=Yn.DEFAULT_MAX_ATTEMPTS=Yn.RETRY_MODES=void 0;var uI;(function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"})(uI=Yn.RETRY_MODES||(Yn.RETRY_MODES={}));Yn.DEFAULT_MAX_ATTEMPTS=3;Yn.DEFAULT_RETRY_MODE=uI.STANDARD});var dI=m(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.TRANSIENT_ERROR_STATUS_CODES=gn.TRANSIENT_ERROR_CODES=gn.THROTTLING_ERROR_CODES=gn.CLOCK_SKEW_ERROR_CODES=void 0;gn.CLOCK_SKEW_ERROR_CODES=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"];gn.THROTTLING_ERROR_CODES=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"];gn.TRANSIENT_ERROR_CODES=["AbortError","TimeoutError","RequestTimeout","RequestTimeoutException"];gn.TRANSIENT_ERROR_STATUS_CODES=[500,502,503,504]});var nd=m(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.isTransientError=Sn.isThrottlingError=Sn.isClockSkewError=Sn.isRetryableByTrait=void 0;var td=dI(),JY=e=>e.$retryable!==void 0;Sn.isRetryableByTrait=JY;var QY=e=>td.CLOCK_SKEW_ERROR_CODES.includes(e.name);Sn.isClockSkewError=QY;var XY=e=>{var t,n;return((t=e.$metadata)===null||t===void 0?void 0:t.httpStatusCode)===429||td.THROTTLING_ERROR_CODES.includes(e.name)||((n=e.$retryable)===null||n===void 0?void 0:n.throttling)==!0};Sn.isThrottlingError=XY;var ZY=e=>{var t;return td.TRANSIENT_ERROR_CODES.includes(e.name)||td.TRANSIENT_ERROR_STATUS_CODES.includes(((t=e.$metadata)===null||t===void 0?void 0:t.httpStatusCode)||0)};Sn.isTransientError=ZY});var ES=m(rd=>{"use strict";Object.defineProperty(rd,"__esModule",{value:!0});rd.DefaultRateLimiter=void 0;var eJ=nd(),bS=class{constructor(t){var n,r,i,s,o;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=(o=t==null?void 0:t.smooth)!==null&&o!==void 0?o:.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 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(),(0,eJ.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))}};rd.DefaultRateLimiter=bS});var Xo=m(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});Ve.REQUEST_HEADER=Ve.INVOCATION_ID_HEADER=Ve.NO_RETRY_INCREMENT=Ve.TIMEOUT_RETRY_COST=Ve.RETRY_COST=Ve.INITIAL_RETRY_TOKENS=Ve.THROTTLING_RETRY_DELAY_BASE=Ve.MAXIMUM_RETRY_DELAY=Ve.DEFAULT_RETRY_DELAY_BASE=void 0;Ve.DEFAULT_RETRY_DELAY_BASE=100;Ve.MAXIMUM_RETRY_DELAY=20*1e3;Ve.THROTTLING_RETRY_DELAY_BASE=500;Ve.INITIAL_RETRY_TOKENS=500;Ve.RETRY_COST=5;Ve.TIMEOUT_RETRY_COST=10;Ve.NO_RETRY_INCREMENT=1;Ve.INVOCATION_ID_HEADER="amz-sdk-invocation-id";Ve.REQUEST_HEADER="amz-sdk-request"});var fI=m(id=>{"use strict";Object.defineProperty(id,"__esModule",{value:!0});id.getDefaultRetryQuota=void 0;var AS=Xo(),tJ=(e,t)=>{var n,r,i;let s=e,o=(n=t==null?void 0:t.noRetryIncrement)!==null&&n!==void 0?n:AS.NO_RETRY_INCREMENT,c=(r=t==null?void 0:t.retryCost)!==null&&r!==void 0?r:AS.RETRY_COST,l=(i=t==null?void 0:t.timeoutRetryCost)!==null&&i!==void 0?i:AS.TIMEOUT_RETRY_COST,d=e,f=v=>v.name==="TimeoutError"?l:c,h=v=>f(v)<=d;return Object.freeze({hasRetryTokens:h,retrieveRetryTokens:v=>{if(!h(v))throw new Error("No retry token available");let y=f(v);return d-=y,y},releaseRetryTokens:v=>{d+=v??o,d=Math.min(d,s)}})};id.getDefaultRetryQuota=tJ});var TS=m(sd=>{"use strict";Object.defineProperty(sd,"__esModule",{value:!0});sd.defaultDelayDecider=void 0;var nJ=Xo(),rJ=(e,t)=>Math.floor(Math.min(nJ.MAXIMUM_RETRY_DELAY,Math.random()*2**t*e));sd.defaultDelayDecider=rJ});var CS=m(ad=>{"use strict";Object.defineProperty(ad,"__esModule",{value:!0});ad.defaultRetryDecider=void 0;var od=nd(),iJ=e=>e?(0,od.isRetryableByTrait)(e)||(0,od.isClockSkewError)(e)||(0,od.isThrottlingError)(e)||(0,od.isTransientError)(e):!1;ad.defaultRetryDecider=iJ});var ld=m(cd=>{"use strict";Object.defineProperty(cd,"__esModule",{value:!0});cd.StandardRetryStrategy=void 0;var mI=qt(),sJ=nd(),oJ=sy(),pI=Qo(),Zo=Xo(),aJ=fI(),cJ=TS(),lJ=CS(),xS=class{constructor(t,n){var r,i,s;this.maxAttemptsProvider=t,this.mode=pI.RETRY_MODES.STANDARD,this.retryDecider=(r=n==null?void 0:n.retryDecider)!==null&&r!==void 0?r:lJ.defaultRetryDecider,this.delayDecider=(i=n==null?void 0:n.delayDecider)!==null&&i!==void 0?i:cJ.defaultDelayDecider,this.retryQuota=(s=n==null?void 0:n.retryQuota)!==null&&s!==void 0?s:(0,aJ.getDefaultRetryQuota)(Zo.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=pI.DEFAULT_MAX_ATTEMPTS}return t}async retry(t,n,r){let i,s=0,o=0,c=await this.getMaxAttempts(),{request:l}=n;for(mI.HttpRequest.isInstance(l)&&(l.headers[Zo.INVOCATION_ID_HEADER]=(0,oJ.v4)());;)try{mI.HttpRequest.isInstance(l)&&(l.headers[Zo.REQUEST_HEADER]=`attempt=${s+1}; max=${c}`),r!=null&&r.beforeRequest&&await r.beforeRequest();let{response:d,output:f}=await t(n);return r!=null&&r.afterRequest&&r.afterRequest(d),this.retryQuota.releaseRetryTokens(i),f.$metadata.attempts=s+1,f.$metadata.totalRetryDelay=o,{response:d,output:f}}catch(d){let f=uJ(d);if(s++,this.shouldRetry(f,s,c)){i=this.retryQuota.retrieveRetryTokens(f);let h=this.delayDecider((0,sJ.isThrottlingError)(f)?Zo.THROTTLING_RETRY_DELAY_BASE:Zo.DEFAULT_RETRY_DELAY_BASE,s);o+=h,await new Promise(_=>setTimeout(_,h));continue}throw f.$metadata||(f.$metadata={}),f.$metadata.attempts=s,f.$metadata.totalRetryDelay=o,f}}};cd.StandardRetryStrategy=xS;var uJ=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 RS=m(ud=>{"use strict";Object.defineProperty(ud,"__esModule",{value:!0});ud.AdaptiveRetryStrategy=void 0;var dJ=Qo(),fJ=ES(),mJ=ld(),IS=class extends mJ.StandardRetryStrategy{constructor(t,n){let s=n??{},{rateLimiter:r}=s,i=_r(s,["rateLimiter"]);super(t,i),this.rateLimiter=r??new fJ.DefaultRateLimiter,this.mode=dJ.RETRY_MODES.ADAPTIVE}async retry(t,n){return super.retry(t,n,{beforeRequest:async()=>this.rateLimiter.getSendToken(),afterRequest:r=>{this.rateLimiter.updateClientSendingRate(r)}})}};ud.AdaptiveRetryStrategy=IS});var _I=m(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.NODE_RETRY_MODE_CONFIG_OPTIONS=je.CONFIG_RETRY_MODE=je.ENV_RETRY_MODE=je.resolveRetryConfig=je.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=je.CONFIG_MAX_ATTEMPTS=je.ENV_MAX_ATTEMPTS=void 0;var hI=Ko(),pJ=RS(),dd=Qo(),hJ=ld();je.ENV_MAX_ATTEMPTS="AWS_MAX_ATTEMPTS";je.CONFIG_MAX_ATTEMPTS="max_attempts";je.NODE_MAX_ATTEMPT_CONFIG_OPTIONS={environmentVariableSelector:e=>{let t=e[je.ENV_MAX_ATTEMPTS];if(!t)return;let n=parseInt(t);if(Number.isNaN(n))throw new Error(`Environment variable ${je.ENV_MAX_ATTEMPTS} mast be a number, got "${t}"`);return n},configFileSelector:e=>{let t=e[je.CONFIG_MAX_ATTEMPTS];if(!t)return;let n=parseInt(t);if(Number.isNaN(n))throw new Error(`Shared config file entry ${je.CONFIG_MAX_ATTEMPTS} mast be a number, got "${t}"`);return n},default:dd.DEFAULT_MAX_ATTEMPTS};var _J=e=>{var t;let n=(0,hI.normalizeProvider)((t=e.maxAttempts)!==null&&t!==void 0?t:dd.DEFAULT_MAX_ATTEMPTS);return g(a({},e),{maxAttempts:n,retryStrategy:async()=>e.retryStrategy?e.retryStrategy:await(0,hI.normalizeProvider)(e.retryMode)()===dd.RETRY_MODES.ADAPTIVE?new pJ.AdaptiveRetryStrategy(n):new hJ.StandardRetryStrategy(n)})};je.resolveRetryConfig=_J;je.ENV_RETRY_MODE="AWS_RETRY_MODE";je.CONFIG_RETRY_MODE="retry_mode";je.NODE_RETRY_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[je.ENV_RETRY_MODE],configFileSelector:e=>e[je.CONFIG_RETRY_MODE],default:dd.DEFAULT_RETRY_MODE}});var gI=m(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.getOmitRetryHeadersPlugin=vn.omitRetryHeadersMiddlewareOptions=vn.omitRetryHeadersMiddleware=void 0;var yJ=qt(),yI=Xo(),gJ=()=>e=>async t=>{let{request:n}=t;return yJ.HttpRequest.isInstance(n)&&(delete n.headers[yI.INVOCATION_ID_HEADER],delete n.headers[yI.REQUEST_HEADER]),e(t)};vn.omitRetryHeadersMiddleware=gJ;vn.omitRetryHeadersMiddlewareOptions={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0};var SJ=e=>({applyToStack:t=>{t.addRelativeTo((0,vn.omitRetryHeadersMiddleware)(),vn.omitRetryHeadersMiddlewareOptions)}});vn.getOmitRetryHeadersPlugin=SJ});var SI=m(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.getRetryPlugin=wn.retryMiddlewareOptions=wn.retryMiddleware=void 0;var vJ=e=>(t,n)=>async r=>{let i=await e.retryStrategy();return i!=null&&i.mode&&(n.userAgent=[...n.userAgent||[],["cfg/retry-mode",i.mode]]),i.retry(t,r)};wn.retryMiddleware=vJ;wn.retryMiddlewareOptions={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0};var wJ=e=>({applyToStack:t=>{t.add((0,wn.retryMiddleware)(e),wn.retryMiddlewareOptions)}});wn.getRetryPlugin=wJ});var wI=m(vI=>{"use strict";Object.defineProperty(vI,"__esModule",{value:!0})});var ai=m(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});var bn=Y();bn.__exportStar(RS(),Jt);bn.__exportStar(ES(),Jt);bn.__exportStar(ld(),Jt);bn.__exportStar(Qo(),Jt);bn.__exportStar(_I(),Jt);bn.__exportStar(TS(),Jt);bn.__exportStar(gI(),Jt);bn.__exportStar(CS(),Jt);bn.__exportStar(SI(),Jt);bn.__exportStar(wI(),Jt)});var md=m(fd=>{"use strict";Object.defineProperty(fd,"__esModule",{value:!0});fd.ProviderError=void 0;var ea=class extends Error{constructor(t,n=!0){super(t),this.tryNextLink=n,this.name="ProviderError",Object.setPrototypeOf(this,ea.prototype)}static from(t,n=!0){return Object.assign(new this(t.message,n),t)}};fd.ProviderError=ea});var bI=m(pd=>{"use strict";Object.defineProperty(pd,"__esModule",{value:!0});pd.CredentialsProviderError=void 0;var bJ=md(),ta=class extends bJ.ProviderError{constructor(t,n=!0){super(t,n),this.tryNextLink=n,this.name="CredentialsProviderError",Object.setPrototypeOf(this,ta.prototype)}};pd.CredentialsProviderError=ta});var EI=m(hd=>{"use strict";Object.defineProperty(hd,"__esModule",{value:!0});hd.chain=void 0;var EJ=md();function AJ(...e){return()=>{let t=Promise.reject(new EJ.ProviderError("No providers in chain"));for(let n of e)t=t.catch(r=>{if(r!=null&&r.tryNextLink)return n();throw r});return t}}hd.chain=AJ});var AI=m(_d=>{"use strict";Object.defineProperty(_d,"__esModule",{value:!0});_d.fromStatic=void 0;var TJ=e=>()=>Promise.resolve(e);_d.fromStatic=TJ});var TI=m(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0});yd.memoize=void 0;var CJ=(e,t,n)=>{let r,i,s,o=!1,c=async()=>{i||(i=e());try{r=await i,s=!0,o=!1}finally{i=void 0}return r};return t===void 0?async l=>((!s||(l==null?void 0:l.forceRefresh))&&(r=await c()),r):async l=>((!s||(l==null?void 0:l.forceRefresh))&&(r=await c()),o?r:n&&!n(r)?(o=!0,r):(t(r)&&await c(),r))};yd.memoize=CJ});var ke=m(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});var na=Y();na.__exportStar(bI(),ci);na.__exportStar(md(),ci);na.__exportStar(EI(),ci);na.__exportStar(AI(),ci);na.__exportStar(TI(),ci)});var gd=m(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.toHex=ns.fromHex=void 0;var CI={},DS={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),CI[e]=t,DS[t]=e}function xJ(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.slice(n,n+2).toLowerCase();if(r in DS)t[n/2]=DS[r];else throw new Error(`Cannot decode unrecognized sequence ${r} as hexadecimal`)}return t}ns.fromHex=xJ;function IJ(e){let t="";for(let n=0;n<e.byteLength;n++)t+=CI[e[n]];return t}ns.toHex=IJ});var li=m(V=>{"use strict";Object.defineProperty(V,"__esModule",{value:!0});V.MAX_PRESIGNED_TTL=V.KEY_TYPE_IDENTIFIER=V.MAX_CACHE_SIZE=V.UNSIGNED_PAYLOAD=V.EVENT_ALGORITHM_IDENTIFIER=V.ALGORITHM_IDENTIFIER_V4A=V.ALGORITHM_IDENTIFIER=V.UNSIGNABLE_PATTERNS=V.SEC_HEADER_PATTERN=V.PROXY_HEADER_PATTERN=V.ALWAYS_UNSIGNABLE_HEADERS=V.HOST_HEADER=V.TOKEN_HEADER=V.SHA256_HEADER=V.SIGNATURE_HEADER=V.GENERATED_HEADERS=V.DATE_HEADER=V.AMZ_DATE_HEADER=V.AUTH_HEADER=V.REGION_SET_PARAM=V.TOKEN_QUERY_PARAM=V.SIGNATURE_QUERY_PARAM=V.EXPIRES_QUERY_PARAM=V.SIGNED_HEADERS_QUERY_PARAM=V.AMZ_DATE_QUERY_PARAM=V.CREDENTIAL_QUERY_PARAM=V.ALGORITHM_QUERY_PARAM=void 0;V.ALGORITHM_QUERY_PARAM="X-Amz-Algorithm";V.CREDENTIAL_QUERY_PARAM="X-Amz-Credential";V.AMZ_DATE_QUERY_PARAM="X-Amz-Date";V.SIGNED_HEADERS_QUERY_PARAM="X-Amz-SignedHeaders";V.EXPIRES_QUERY_PARAM="X-Amz-Expires";V.SIGNATURE_QUERY_PARAM="X-Amz-Signature";V.TOKEN_QUERY_PARAM="X-Amz-Security-Token";V.REGION_SET_PARAM="X-Amz-Region-Set";V.AUTH_HEADER="authorization";V.AMZ_DATE_HEADER=V.AMZ_DATE_QUERY_PARAM.toLowerCase();V.DATE_HEADER="date";V.GENERATED_HEADERS=[V.AUTH_HEADER,V.AMZ_DATE_HEADER,V.DATE_HEADER];V.SIGNATURE_HEADER=V.SIGNATURE_QUERY_PARAM.toLowerCase();V.SHA256_HEADER="x-amz-content-sha256";V.TOKEN_HEADER=V.TOKEN_QUERY_PARAM.toLowerCase();V.HOST_HEADER="host";V.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};V.PROXY_HEADER_PATTERN=/^proxy-/;V.SEC_HEADER_PATTERN=/^sec-/;V.UNSIGNABLE_PATTERNS=[/^proxy-/i,/^sec-/i];V.ALGORITHM_IDENTIFIER="AWS4-HMAC-SHA256";V.ALGORITHM_IDENTIFIER_V4A="AWS4-ECDSA-P256-SHA256";V.EVENT_ALGORITHM_IDENTIFIER="AWS4-HMAC-SHA256-PAYLOAD";V.UNSIGNED_PAYLOAD="UNSIGNED-PAYLOAD";V.MAX_CACHE_SIZE=50;V.KEY_TYPE_IDENTIFIER="aws4_request";V.MAX_PRESIGNED_TTL=60*60*24*7});var PS=m(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});Ar.clearCredentialCache=Ar.getSigningKey=Ar.createScope=void 0;var RJ=gd(),NS=li(),rs={},Sd=[],DJ=(e,t,n)=>`${e}/${t}/${n}/${NS.KEY_TYPE_IDENTIFIER}`;Ar.createScope=DJ;var NJ=async(e,t,n,r,i)=>{let s=await xI(e,t.secretAccessKey,t.accessKeyId),o=`${n}:${r}:${i}:${(0,RJ.toHex)(s)}:${t.sessionToken}`;if(o in rs)return rs[o];for(Sd.push(o);Sd.length>NS.MAX_CACHE_SIZE;)delete rs[Sd.shift()];let c=`AWS4${t.secretAccessKey}`;for(let l of[n,r,i,NS.KEY_TYPE_IDENTIFIER])c=await xI(e,c,l);return rs[o]=c};Ar.getSigningKey=NJ;var PJ=()=>{Sd.length=0,Object.keys(rs).forEach(e=>{delete rs[e]})};Ar.clearCredentialCache=PJ;var xI=(e,t,n)=>{let r=new e(t);return r.update(n),r.digest()}});var LS=m(vd=>{"use strict";Object.defineProperty(vd,"__esModule",{value:!0});vd.getCanonicalHeaders=void 0;var OS=li(),OJ=({headers:e},t,n)=>{let r={};for(let i of Object.keys(e).sort()){let s=i.toLowerCase();(s in OS.ALWAYS_UNSIGNABLE_HEADERS||(t==null?void 0:t.has(s))||OS.PROXY_HEADER_PATTERN.test(s)||OS.SEC_HEADER_PATTERN.test(s))&&(!n||n&&!n.has(s))||(r[s]=e[i].trim().replace(/\s+/g," "))}return r};vd.getCanonicalHeaders=OJ});var qS=m(wd=>{"use strict";Object.defineProperty(wd,"__esModule",{value:!0});wd.escapeUri=void 0;var LJ=e=>encodeURIComponent(e).replace(/[!'()*]/g,qJ);wd.escapeUri=LJ;var qJ=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`});var II=m(bd=>{"use strict";Object.defineProperty(bd,"__esModule",{value:!0});bd.escapeUriPath=void 0;var MJ=qS(),zJ=e=>e.split("/").map(MJ.escapeUri).join("/");bd.escapeUriPath=zJ});var MS=m(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0});var RI=Y();RI.__exportStar(qS(),Ed);RI.__exportStar(II(),Ed)});var zS=m(Td=>{"use strict";Object.defineProperty(Td,"__esModule",{value:!0});Td.getCanonicalQuery=void 0;var Ad=MS(),jJ=li(),kJ=({query:e={}})=>{let t=[],n={};for(let r of Object.keys(e).sort()){if(r.toLowerCase()===jJ.SIGNATURE_HEADER)continue;t.push(r);let i=e[r];typeof i=="string"?n[r]=`${(0,Ad.escapeUri)(r)}=${(0,Ad.escapeUri)(i)}`:Array.isArray(i)&&(n[r]=i.slice(0).sort().reduce((s,o)=>s.concat([`${(0,Ad.escapeUri)(r)}=${(0,Ad.escapeUri)(o)}`]),[]).join("&"))}return t.map(r=>n[r]).filter(r=>r).join("&")};Td.getCanonicalQuery=kJ});var jS=m(Cd=>{"use strict";Object.defineProperty(Cd,"__esModule",{value:!0});Cd.isArrayBuffer=void 0;var FJ=e=>typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]";Cd.isArrayBuffer=FJ});var kS=m(xd=>{"use strict";Object.defineProperty(xd,"__esModule",{value:!0});xd.getPayloadHash=void 0;var UJ=jS(),BJ=gd(),DI=li(),GJ=async({headers:e,body:t},n)=>{for(let r of Object.keys(e))if(r.toLowerCase()===DI.SHA256_HEADER)return e[r];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof t=="string"||ArrayBuffer.isView(t)||(0,UJ.isArrayBuffer)(t)){let r=new n;return r.update(t),(0,BJ.toHex)(await r.digest())}return DI.UNSIGNED_PAYLOAD};xd.getPayloadHash=GJ});var NI=m(Tr=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.deleteHeader=Tr.getHeaderValue=Tr.hasHeader=void 0;var $J=(e,t)=>{e=e.toLowerCase();for(let n of Object.keys(t))if(e===n.toLowerCase())return!0;return!1};Tr.hasHeader=$J;var VJ=(e,t)=>{e=e.toLowerCase();for(let n of Object.keys(t))if(e===n.toLowerCase())return t[n]};Tr.getHeaderValue=VJ;var KJ=(e,t)=>{e=e.toLowerCase();for(let n of Object.keys(t))e===n.toLowerCase()&&delete t[n]};Tr.deleteHeader=KJ});var FS=m(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.cloneQuery=ui.cloneRequest=void 0;var HJ=r=>{var i=r,{headers:e,query:t}=i,n=_r(i,["headers","query"]);return g(a({},n),{headers:a({},e),query:t?(0,ui.cloneQuery)(t):void 0})};ui.cloneRequest=HJ;var WJ=e=>Object.keys(e).reduce((t,n)=>{let r=e[n];return g(a({},t),{[n]:Array.isArray(r)?[...r]:r})},{});ui.cloneQuery=WJ});var US=m(Id=>{"use strict";Object.defineProperty(Id,"__esModule",{value:!0});Id.moveHeadersToQuery=void 0;var YJ=FS(),JJ=(e,t={})=>{var n;let{headers:r,query:i={}}=typeof e.clone=="function"?e.clone():(0,YJ.cloneRequest)(e);for(let s of Object.keys(r)){let o=s.toLowerCase();o.slice(0,6)==="x-amz-"&&!(!((n=t.unhoistableHeaders)===null||n===void 0)&&n.has(o))&&(i[s]=r[s],delete r[s])}return g(a({},e),{headers:r,query:i})};Id.moveHeadersToQuery=JJ});var BS=m(Rd=>{"use strict";Object.defineProperty(Rd,"__esModule",{value:!0});Rd.prepareRequest=void 0;var QJ=FS(),XJ=li(),ZJ=e=>{e=typeof e.clone=="function"?e.clone():(0,QJ.cloneRequest)(e);for(let t of Object.keys(e.headers))XJ.GENERATED_HEADERS.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e};Rd.prepareRequest=ZJ});var PI=m(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.toDate=di.iso8601=void 0;var e9=e=>(0,di.toDate)(e).toISOString().replace(/\.\d{3}Z$/,"Z");di.iso8601=e9;var t9=e=>typeof e=="number"?new Date(e*1e3):typeof e=="string"?Number(e)?new Date(Number(e)*1e3):new Date(e):e;di.toDate=t9});var zI=m(Od=>{"use strict";Object.defineProperty(Od,"__esModule",{value:!0});Od.SignatureV4=void 0;var Dd=gd(),OI=Ko(),st=li(),Nd=PS(),LI=LS(),n9=zS(),GS=kS(),r9=NI(),i9=US(),qI=BS(),s9=PI(),$S=class{constructor({applyChecksum:t,credentials:n,region:r,service:i,sha256:s,uriEscapePath:o=!0}){this.service=i,this.sha256=s,this.uriEscapePath=o,this.applyChecksum=typeof t=="boolean"?t:!0,this.regionProvider=(0,OI.normalizeProvider)(r),this.credentialProvider=(0,OI.normalizeProvider)(n)}async presign(t,n={}){let{signingDate:r=new Date,expiresIn:i=3600,unsignableHeaders:s,unhoistableHeaders:o,signableHeaders:c,signingRegion:l,signingService:d}=n,f=await this.credentialProvider(),h=l??await this.regionProvider(),{longDate:_,shortDate:S}=Pd(r);if(i>st.MAX_PRESIGNED_TTL)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let v=(0,Nd.createScope)(S,h,d??this.service),y=(0,i9.moveHeadersToQuery)((0,qI.prepareRequest)(t),{unhoistableHeaders:o});f.sessionToken&&(y.query[st.TOKEN_QUERY_PARAM]=f.sessionToken),y.query[st.ALGORITHM_QUERY_PARAM]=st.ALGORITHM_IDENTIFIER,y.query[st.CREDENTIAL_QUERY_PARAM]=`${f.accessKeyId}/${v}`,y.query[st.AMZ_DATE_QUERY_PARAM]=_,y.query[st.EXPIRES_QUERY_PARAM]=i.toString(10);let R=(0,LI.getCanonicalHeaders)(y,s,c);return y.query[st.SIGNED_HEADERS_QUERY_PARAM]=MI(R),y.query[st.SIGNATURE_QUERY_PARAM]=await this.getSignature(_,v,this.getSigningKey(f,h,S,d),this.createCanonicalRequest(y,R,await(0,GS.getPayloadHash)(t,this.sha256))),y}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:o}){let c=s??await this.regionProvider(),{shortDate:l,longDate:d}=Pd(r),f=(0,Nd.createScope)(l,c,o??this.service),h=await(0,GS.getPayloadHash)({headers:{},body:n},this.sha256),_=new this.sha256;_.update(t);let S=(0,Dd.toHex)(await _.digest()),v=[st.EVENT_ALGORITHM_IDENTIFIER,d,f,i,S,h].join(`
10
- `);return this.signString(v,{signingDate:r,signingRegion:c,signingService:o})}async signString(t,{signingDate:n=new Date,signingRegion:r,signingService:i}={}){let s=await this.credentialProvider(),o=r??await this.regionProvider(),{shortDate:c}=Pd(n),l=new this.sha256(await this.getSigningKey(s,o,c,i));return l.update(t),(0,Dd.toHex)(await l.digest())}async signRequest(t,{signingDate:n=new Date,signableHeaders:r,unsignableHeaders:i,signingRegion:s,signingService:o}={}){let c=await this.credentialProvider(),l=s??await this.regionProvider(),d=(0,qI.prepareRequest)(t),{longDate:f,shortDate:h}=Pd(n),_=(0,Nd.createScope)(h,l,o??this.service);d.headers[st.AMZ_DATE_HEADER]=f,c.sessionToken&&(d.headers[st.TOKEN_HEADER]=c.sessionToken);let S=await(0,GS.getPayloadHash)(d,this.sha256);!(0,r9.hasHeader)(st.SHA256_HEADER,d.headers)&&this.applyChecksum&&(d.headers[st.SHA256_HEADER]=S);let v=(0,LI.getCanonicalHeaders)(d,i,r),y=await this.getSignature(f,_,this.getSigningKey(c,l,h,o),this.createCanonicalRequest(d,v,S));return d.headers[st.AUTH_HEADER]=`${st.ALGORITHM_IDENTIFIER} Credential=${c.accessKeyId}/${_}, SignedHeaders=${MI(v)}, Signature=${y}`,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
- ${(0,n9.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`${st.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
- ${(0,Dd.toHex)(s)}`}getCanonicalPath({path:t}){if(this.uriEscapePath){let n=[];for(let s of t.split("/"))(s==null?void 0:s.length)!==0&&s!=="."&&(s===".."?n.pop():n.push(s));let r=`${t!=null&&t.startsWith("/")?"/":""}${n.join("/")}${n.length>0&&(t==null?void 0:t.endsWith("/"))?"/":""}`;return encodeURIComponent(r).replace(/%2F/g,"/")}return t}async getSignature(t,n,r,i){let s=await this.createStringToSign(t,n,i),o=new this.sha256(await r);return o.update(s),(0,Dd.toHex)(await o.digest())}getSigningKey(t,n,r,i){return(0,Nd.getSigningKey)(this.sha256,t,r,n,i||this.service)}};Od.SignatureV4=$S;var Pd=e=>{let t=(0,s9.iso8601)(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.slice(0,8)}},MI=e=>Object.keys(e).sort().join(";")});var kI=m(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.prepareRequest=bt.moveHeadersToQuery=bt.getPayloadHash=bt.getCanonicalQuery=bt.getCanonicalHeaders=void 0;var jI=Y();jI.__exportStar(zI(),bt);var o9=LS();Object.defineProperty(bt,"getCanonicalHeaders",{enumerable:!0,get:function(){return o9.getCanonicalHeaders}});var a9=zS();Object.defineProperty(bt,"getCanonicalQuery",{enumerable:!0,get:function(){return a9.getCanonicalQuery}});var c9=kS();Object.defineProperty(bt,"getPayloadHash",{enumerable:!0,get:function(){return c9.getPayloadHash}});var l9=US();Object.defineProperty(bt,"moveHeadersToQuery",{enumerable:!0,get:function(){return l9.moveHeadersToQuery}});var u9=BS();Object.defineProperty(bt,"prepareRequest",{enumerable:!0,get:function(){return u9.prepareRequest}});jI.__exportStar(PS(),bt)});var BI=m(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.resolveSigV4AuthConfig=is.resolveAwsAuthConfig=void 0;var d9=ke(),FI=kI(),f9=3e5,m9=e=>{let t=e.credentials?UI(e.credentials):e.credentialDefaultProvider(e),{signingEscapePath:n=!0,systemClockOffset:r=e.systemClockOffset||0,sha256:i}=e,s;return e.signer?s=ra(e.signer):s=()=>ra(e.region)().then(async o=>[await e.regionInfoProvider(o,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},o]).then(([o,c])=>{let{signingRegion:l,signingService:d}=o;e.signingRegion=e.signingRegion||l||c,e.signingName=e.signingName||d||e.serviceId;let f=g(a({},e),{credentials:t,region:e.signingRegion,service:e.signingName,sha256:i,uriEscapePath:n}),h=e.signerConstructor||FI.SignatureV4;return new h(f)}),g(a({},e),{systemClockOffset:r,signingEscapePath:n,credentials:t,signer:s})};is.resolveAwsAuthConfig=m9;var p9=e=>{let t=e.credentials?UI(e.credentials):e.credentialDefaultProvider(e),{signingEscapePath:n=!0,systemClockOffset:r=e.systemClockOffset||0,sha256:i}=e,s;return e.signer?s=ra(e.signer):s=ra(new FI.SignatureV4({credentials:t,region:e.region,service:e.signingName,sha256:i,uriEscapePath:n})),g(a({},e),{systemClockOffset:r,signingEscapePath:n,credentials:t,signer:s})};is.resolveSigV4AuthConfig=p9;var ra=e=>{if(typeof e=="object"){let t=Promise.resolve(e);return()=>t}return e},UI=e=>typeof e=="function"?(0,d9.memoize)(e,t=>t.expiration!==void 0&&t.expiration.getTime()-Date.now()<f9,t=>t.expiration!==void 0):ra(e)});var VS=m(Ld=>{"use strict";Object.defineProperty(Ld,"__esModule",{value:!0});Ld.getSkewCorrectedDate=void 0;var h9=e=>new Date(Date.now()+e);Ld.getSkewCorrectedDate=h9});var GI=m(qd=>{"use strict";Object.defineProperty(qd,"__esModule",{value:!0});qd.isClockSkewed=void 0;var _9=VS(),y9=(e,t)=>Math.abs((0,_9.getSkewCorrectedDate)(t).getTime()-e)>=3e5;qd.isClockSkewed=y9});var $I=m(Md=>{"use strict";Object.defineProperty(Md,"__esModule",{value:!0});Md.getUpdatedSystemClockOffset=void 0;var g9=GI(),S9=(e,t)=>{let n=Date.parse(e);return(0,g9.isClockSkewed)(n,t)?n-Date.now():t};Md.getUpdatedSystemClockOffset=S9});var WI=m(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.getSigV4AuthPlugin=jt.getAwsAuthPlugin=jt.awsAuthMiddlewareOptions=jt.awsAuthMiddleware=void 0;var HI=qt(),v9=VS(),VI=$I(),w9=e=>(t,n)=>async function(r){if(!HI.HttpRequest.isInstance(r.request))return t(r);let i=await e.signer(),s=await t(g(a({},r),{request:await i.sign(r.request,{signingDate:(0,v9.getSkewCorrectedDate)(e.systemClockOffset),signingRegion:n.signing_region,signingService:n.signing_service})})).catch(c=>{var l;let d=(l=c.ServerTime)!==null&&l!==void 0?l:KI(c.$response);throw d&&(e.systemClockOffset=(0,VI.getUpdatedSystemClockOffset)(d,e.systemClockOffset)),c}),o=KI(s.response);return o&&(e.systemClockOffset=(0,VI.getUpdatedSystemClockOffset)(o,e.systemClockOffset)),s};jt.awsAuthMiddleware=w9;var KI=e=>{var t,n,r;return HI.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};jt.awsAuthMiddlewareOptions={name:"awsAuthMiddleware",tags:["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware",override:!0};var b9=e=>({applyToStack:t=>{t.addRelativeTo((0,jt.awsAuthMiddleware)(e),jt.awsAuthMiddlewareOptions)}});jt.getAwsAuthPlugin=b9;jt.getSigV4AuthPlugin=jt.getAwsAuthPlugin});var Jn=m(zd=>{"use strict";Object.defineProperty(zd,"__esModule",{value:!0});var YI=Y();YI.__exportStar(BI(),zd);YI.__exportStar(WI(),zd)});var JI=m(jd=>{"use strict";Object.defineProperty(jd,"__esModule",{value:!0});jd.resolveUserAgentConfig=void 0;function E9(e){return g(a({},e),{customUserAgent:typeof e.customUserAgent=="string"?[[e.customUserAgent]]:e.customUserAgent})}jd.resolveUserAgentConfig=E9});var QI=m(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.UA_ESCAPE_REGEX=En.SPACE=En.X_AMZ_USER_AGENT=En.USER_AGENT=void 0;En.USER_AGENT="user-agent";En.X_AMZ_USER_AGENT="x-amz-user-agent";En.SPACE=" ";En.UA_ESCAPE_REGEX=/[^\!\#\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g});var XI=m(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.getUserAgentPlugin=An.getUserAgentMiddlewareOptions=An.userAgentMiddleware=void 0;var A9=qt(),Cr=QI(),T9=e=>(t,n)=>async r=>{var i,s;let{request:o}=r;if(!A9.HttpRequest.isInstance(o))return t(r);let{headers:c}=o,l=((i=n==null?void 0:n.userAgent)===null||i===void 0?void 0:i.map(KS))||[],d=(await e.defaultUserAgentProvider()).map(KS),f=((s=e==null?void 0:e.customUserAgent)===null||s===void 0?void 0:s.map(KS))||[],h=[...d,...l,...f].join(Cr.SPACE),_=[...d.filter(S=>S.startsWith("aws-sdk-")),...f].join(Cr.SPACE);return e.runtime!=="browser"?(_&&(c[Cr.X_AMZ_USER_AGENT]=c[Cr.X_AMZ_USER_AGENT]?`${c[Cr.USER_AGENT]} ${_}`:_),c[Cr.USER_AGENT]=h):c[Cr.X_AMZ_USER_AGENT]=h,t(g(a({},r),{request:o}))};An.userAgentMiddleware=T9;var KS=([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(Cr.UA_ESCAPE_REGEX,"_")).join("/")};An.getUserAgentMiddlewareOptions={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0};var C9=e=>({applyToStack:t=>{t.add((0,An.userAgentMiddleware)(e),An.getUserAgentMiddlewareOptions)}});An.getUserAgentPlugin=C9});var Fd=m(kd=>{"use strict";Object.defineProperty(kd,"__esModule",{value:!0});var ZI=Y();ZI.__exportStar(JI(),kd);ZI.__exportStar(XI(),kd)});var e1=m((WSe,x9)=>{x9.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 Bd=m(Ud=>{"use strict";Object.defineProperty(Ud,"__esModule",{value:!0});Ud.STSServiceException=void 0;var I9=q(),ia=class extends I9.ServiceException{constructor(t){super(t),Object.setPrototypeOf(this,ia.prototype)}};Ud.STSServiceException=ia});var nn=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 xr=Bd(),R9;(function(e){e.filterSensitiveLog=t=>a({},t)})(R9=M.AssumedRoleUser||(M.AssumedRoleUser={}));var D9;(function(e){e.filterSensitiveLog=t=>a({},t)})(D9=M.PolicyDescriptorType||(M.PolicyDescriptorType={}));var N9;(function(e){e.filterSensitiveLog=t=>a({},t)})(N9=M.Tag||(M.Tag={}));var P9;(function(e){e.filterSensitiveLog=t=>a({},t)})(P9=M.AssumeRoleRequest||(M.AssumeRoleRequest={}));var O9;(function(e){e.filterSensitiveLog=t=>a({},t)})(O9=M.Credentials||(M.Credentials={}));var L9;(function(e){e.filterSensitiveLog=t=>a({},t)})(L9=M.AssumeRoleResponse||(M.AssumeRoleResponse={}));var sa=class extends xr.STSServiceException{constructor(t){super(a({name:"ExpiredTokenException",$fault:"client"},t)),this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,sa.prototype)}};M.ExpiredTokenException=sa;var oa=class extends xr.STSServiceException{constructor(t){super(a({name:"MalformedPolicyDocumentException",$fault:"client"},t)),this.name="MalformedPolicyDocumentException",this.$fault="client",Object.setPrototypeOf(this,oa.prototype)}};M.MalformedPolicyDocumentException=oa;var aa=class extends xr.STSServiceException{constructor(t){super(a({name:"PackedPolicyTooLargeException",$fault:"client"},t)),this.name="PackedPolicyTooLargeException",this.$fault="client",Object.setPrototypeOf(this,aa.prototype)}};M.PackedPolicyTooLargeException=aa;var ca=class extends xr.STSServiceException{constructor(t){super(a({name:"RegionDisabledException",$fault:"client"},t)),this.name="RegionDisabledException",this.$fault="client",Object.setPrototypeOf(this,ca.prototype)}};M.RegionDisabledException=ca;var q9;(function(e){e.filterSensitiveLog=t=>a({},t)})(q9=M.AssumeRoleWithSAMLRequest||(M.AssumeRoleWithSAMLRequest={}));var M9;(function(e){e.filterSensitiveLog=t=>a({},t)})(M9=M.AssumeRoleWithSAMLResponse||(M.AssumeRoleWithSAMLResponse={}));var la=class extends xr.STSServiceException{constructor(t){super(a({name:"IDPRejectedClaimException",$fault:"client"},t)),this.name="IDPRejectedClaimException",this.$fault="client",Object.setPrototypeOf(this,la.prototype)}};M.IDPRejectedClaimException=la;var ua=class extends xr.STSServiceException{constructor(t){super(a({name:"InvalidIdentityTokenException",$fault:"client"},t)),this.name="InvalidIdentityTokenException",this.$fault="client",Object.setPrototypeOf(this,ua.prototype)}};M.InvalidIdentityTokenException=ua;var z9;(function(e){e.filterSensitiveLog=t=>a({},t)})(z9=M.AssumeRoleWithWebIdentityRequest||(M.AssumeRoleWithWebIdentityRequest={}));var j9;(function(e){e.filterSensitiveLog=t=>a({},t)})(j9=M.AssumeRoleWithWebIdentityResponse||(M.AssumeRoleWithWebIdentityResponse={}));var da=class extends xr.STSServiceException{constructor(t){super(a({name:"IDPCommunicationErrorException",$fault:"client"},t)),this.name="IDPCommunicationErrorException",this.$fault="client",Object.setPrototypeOf(this,da.prototype)}};M.IDPCommunicationErrorException=da;var k9;(function(e){e.filterSensitiveLog=t=>a({},t)})(k9=M.DecodeAuthorizationMessageRequest||(M.DecodeAuthorizationMessageRequest={}));var F9;(function(e){e.filterSensitiveLog=t=>a({},t)})(F9=M.DecodeAuthorizationMessageResponse||(M.DecodeAuthorizationMessageResponse={}));var fa=class extends xr.STSServiceException{constructor(t){super(a({name:"InvalidAuthorizationMessageException",$fault:"client"},t)),this.name="InvalidAuthorizationMessageException",this.$fault="client",Object.setPrototypeOf(this,fa.prototype)}};M.InvalidAuthorizationMessageException=fa;var U9;(function(e){e.filterSensitiveLog=t=>a({},t)})(U9=M.GetAccessKeyInfoRequest||(M.GetAccessKeyInfoRequest={}));var B9;(function(e){e.filterSensitiveLog=t=>a({},t)})(B9=M.GetAccessKeyInfoResponse||(M.GetAccessKeyInfoResponse={}));var G9;(function(e){e.filterSensitiveLog=t=>a({},t)})(G9=M.GetCallerIdentityRequest||(M.GetCallerIdentityRequest={}));var $9;(function(e){e.filterSensitiveLog=t=>a({},t)})($9=M.GetCallerIdentityResponse||(M.GetCallerIdentityResponse={}));var V9;(function(e){e.filterSensitiveLog=t=>a({},t)})(V9=M.GetFederationTokenRequest||(M.GetFederationTokenRequest={}));var K9;(function(e){e.filterSensitiveLog=t=>a({},t)})(K9=M.FederatedUser||(M.FederatedUser={}));var H9;(function(e){e.filterSensitiveLog=t=>a({},t)})(H9=M.GetFederationTokenResponse||(M.GetFederationTokenResponse={}));var W9;(function(e){e.filterSensitiveLog=t=>a({},t)})(W9=M.GetSessionTokenRequest||(M.GetSessionTokenRequest={}));var Y9;(function(e){e.filterSensitiveLog=t=>a({},t)})(Y9=M.GetSessionTokenResponse||(M.GetSessionTokenResponse={}))});var HS=m((QSe,J9)=>{J9.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 t1=m((XSe,Q9)=>{Q9.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 WS=m((ZSe,X9)=>{X9.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}});var n1=m((eve,Z9)=>{Z9.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 i1=m(ma=>{"use strict";var eQ=ma&&ma.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ma,"__esModule",{value:!0});var r1=eQ(n1()),tQ=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 nQ(e){return e>=55296&&e<=57343||e>1114111?"\uFFFD":(e in r1.default&&(e=r1.default[e]),tQ(e))}ma.default=nQ});var JS=m(Tn=>{"use strict";var Gd=Tn&&Tn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Tn,"__esModule",{value:!0});Tn.decodeHTML=Tn.decodeHTMLStrict=Tn.decodeXML=void 0;var YS=Gd(HS()),rQ=Gd(t1()),iQ=Gd(WS()),s1=Gd(i1()),sQ=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;Tn.decodeXML=a1(iQ.default);Tn.decodeHTMLStrict=a1(YS.default);function a1(e){var t=c1(e);return function(n){return String(n).replace(sQ,t)}}var o1=function(e,t){return e<t?1:-1};Tn.decodeHTML=function(){for(var e=Object.keys(rQ.default).sort(o1),t=Object.keys(YS.default).sort(o1),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=c1(YS.default);function o(c){return c.substr(-1)!==";"&&(c+=";"),s(c)}return function(c){return String(c).replace(i,o)}}();function c1(e){return function(n){if(n.charAt(1)==="#"){var r=n.charAt(2);return r==="X"||r==="x"?s1.default(parseInt(n.substr(3),16)):s1.default(parseInt(n.substr(2),10))}return e[n.slice(1,-1)]||n}}});var XS=m(Et=>{"use strict";var l1=Et&&Et.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Et,"__esModule",{value:!0});Et.escapeUTF8=Et.escape=Et.encodeNonAsciiHTML=Et.encodeHTML=Et.encodeXML=void 0;var oQ=l1(WS()),u1=f1(oQ.default),d1=m1(u1);Et.encodeXML=_1(u1);var aQ=l1(HS()),QS=f1(aQ.default),cQ=m1(QS);Et.encodeHTML=uQ(QS,cQ);Et.encodeNonAsciiHTML=_1(QS);function f1(e){return Object.keys(e).sort().reduce(function(t,n){return t[e[n]]="&"+n+";",t},{})}function m1(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 o=0;o<t.length-1;o++){for(var c=o;c<t.length-1&&t[c].charCodeAt(1)+1===t[c+1].charCodeAt(1);)c+=1;var l=1+c-o;l<3||t.splice(o,l,t[o]+"-"+t[c])}return n.unshift("["+t.join("")+"]"),new RegExp(n.join("|"),"g")}var p1=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,lQ=String.prototype.codePointAt!=null?function(e){return e.codePointAt(0)}:function(e){return(e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536};function $d(e){return"&#x"+(e.length>1?lQ(e):e.charCodeAt(0)).toString(16).toUpperCase()+";"}function uQ(e,t){return function(n){return n.replace(t,function(r){return e[r]}).replace(p1,$d)}}var h1=new RegExp(d1.source+"|"+p1.source,"g");function dQ(e){return e.replace(h1,$d)}Et.escape=dQ;function fQ(e){return e.replace(d1,$d)}Et.escapeUTF8=fQ;function _1(e){return function(t){return t.replace(h1,function(n){return e[n]||$d(n)})}}});var g1=m(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.decodeXMLStrict=fe.decodeHTML5Strict=fe.decodeHTML4Strict=fe.decodeHTML5=fe.decodeHTML4=fe.decodeHTMLStrict=fe.decodeHTML=fe.decodeXML=fe.encodeHTML5=fe.encodeHTML4=fe.escapeUTF8=fe.escape=fe.encodeNonAsciiHTML=fe.encodeHTML=fe.encodeXML=fe.encode=fe.decodeStrict=fe.decode=void 0;var Vd=JS(),y1=XS();function mQ(e,t){return(!t||t<=0?Vd.decodeXML:Vd.decodeHTML)(e)}fe.decode=mQ;function pQ(e,t){return(!t||t<=0?Vd.decodeXML:Vd.decodeHTMLStrict)(e)}fe.decodeStrict=pQ;function hQ(e,t){return(!t||t<=0?y1.encodeXML:y1.encodeHTML)(e)}fe.encode=hQ;var fi=XS();Object.defineProperty(fe,"encodeXML",{enumerable:!0,get:function(){return fi.encodeXML}});Object.defineProperty(fe,"encodeHTML",{enumerable:!0,get:function(){return fi.encodeHTML}});Object.defineProperty(fe,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return fi.encodeNonAsciiHTML}});Object.defineProperty(fe,"escape",{enumerable:!0,get:function(){return fi.escape}});Object.defineProperty(fe,"escapeUTF8",{enumerable:!0,get:function(){return fi.escapeUTF8}});Object.defineProperty(fe,"encodeHTML4",{enumerable:!0,get:function(){return fi.encodeHTML}});Object.defineProperty(fe,"encodeHTML5",{enumerable:!0,get:function(){return fi.encodeHTML}});var Ir=JS();Object.defineProperty(fe,"decodeXML",{enumerable:!0,get:function(){return Ir.decodeXML}});Object.defineProperty(fe,"decodeHTML",{enumerable:!0,get:function(){return Ir.decodeHTML}});Object.defineProperty(fe,"decodeHTMLStrict",{enumerable:!0,get:function(){return Ir.decodeHTMLStrict}});Object.defineProperty(fe,"decodeHTML4",{enumerable:!0,get:function(){return Ir.decodeHTML}});Object.defineProperty(fe,"decodeHTML5",{enumerable:!0,get:function(){return Ir.decodeHTML}});Object.defineProperty(fe,"decodeHTML4Strict",{enumerable:!0,get:function(){return Ir.decodeHTMLStrict}});Object.defineProperty(fe,"decodeHTML5Strict",{enumerable:!0,get:function(){return Ir.decodeHTMLStrict}});Object.defineProperty(fe,"decodeXMLStrict",{enumerable:!0,get:function(){return Ir.decodeXML}})});var Cn=m(rn=>{"use strict";var S1=":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",_Q=S1+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",v1="["+S1+"]["+_Q+"]*",yQ=new RegExp("^"+v1+"$"),gQ=function(e,t){let n=[],r=t.exec(e);for(;r;){let i=[],s=r.length;for(let o=0;o<s;o++)i.push(r[o]);n.push(i),r=t.exec(e)}return n},SQ=function(e){let t=yQ.exec(e);return!(t===null||typeof t>"u")};rn.isExist=function(e){return typeof e<"u"};rn.isEmptyObject=function(e){return Object.keys(e).length===0};rn.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]]}};rn.getValue=function(e){return rn.isExist(e)?e:""};rn.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};rn.isTagNameInArrayMode=function(e,t,n){return t===!1?!1:t instanceof RegExp?t.test(e):typeof t=="function"?!!t(e,n):t==="strict"};rn.isName=SQ;rn.getAllMatches=gQ;rn.nameRegexp=v1});var b1=m(w1=>{"use strict";var mi=Cn(),ZS=function(e,t,n){let r={};if((!e.child||mi.isEmptyObject(e.child))&&(!e.attrsMap||mi.isEmptyObject(e.attrsMap)))return mi.isExist(e.val)?e.val:"";if(mi.isExist(e.val)&&!(typeof e.val=="string"&&(e.val===""||e.val===t.cdataPositionChar))){let s=mi.isTagNameInArrayMode(e.tagname,t.arrayMode,n);r[t.textNodeName]=s?[e.val]:e.val}mi.merge(r,e.attrsMap,t.arrayMode);let i=Object.keys(e.child);for(let s=0;s<i.length;s++){let o=i[s];if(e.child[o]&&e.child[o].length>1){r[o]=[];for(let c in e.child[o])e.child[o].hasOwnProperty(c)&&r[o].push(ZS(e.child[o][c],t,o))}else{let c=ZS(e.child[o][0],t,o),l=t.arrayMode===!0&&typeof c=="object"||mi.isTagNameInArrayMode(o,t.arrayMode,n);r[o]=l?[c]:c}}return r};w1.convertToJson=ZS});var A1=m((ave,E1)=>{"use strict";E1.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 ha=m(Wd=>{"use strict";var pi=Cn(),vQ=Cn().buildOptions,Kd=A1(),cve="<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,pi.nameRegexp);!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt);!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);var C1={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:[]};Wd.defaultOptions=C1;var x1=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","ignoreNameSpace","allowBooleanAttributes","parseNodeValue","parseAttributeValue","arrayMode","trimValues","cdataTagName","cdataPositionChar","tagValueProcessor","attrValueProcessor","parseTrueNumberOnly","stopNodes"];Wd.props=x1;function Hd(e,t,n){return t&&(n.trimValues&&(t=t.trim()),t=n.tagValueProcessor(t,e),t=I1(t,n.parseNodeValue,n.parseTrueNumberOnly)),t}function wQ(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 I1(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 pi.isExist(e)?e:""}var bQ=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])(.*?)\\3)?`,"g");function T1(e,t){if(!t.ignoreAttributes&&typeof e=="string"){e=e.replace(/\r?\n/g," ");let n=pi.getAllMatches(e,bQ),r=n.length,i={};for(let s=0;s<r;s++){let o=wQ(n[s][1],t);o.length&&(n[s][4]!==void 0?(t.trimValues&&(n[s][4]=n[s][4].trim()),n[s][4]=t.attrValueProcessor(n[s][4],o),i[t.attributeNamePrefix+o]=I1(n[s][4],t.parseAttributeValue,t.parseTrueNumberOnly)):t.allowBooleanAttributes&&(i[t.attributeNamePrefix+o]=!0))}if(!Object.keys(i).length)return;if(t.attrNodeName){let s={};return s[t.attrNodeName]=i,s}return i}}var EQ=function(e,t){e=e.replace(/\r\n?/g,`
22
- `),t=vQ(t,C1,x1);let n=new Kd("!xml"),r=n,i="";for(let s=0;s<e.length;s++)if(e[s]==="<")if(e[s+1]==="/"){let c=pa(e,">",s,"Closing Tag is not closed."),l=e.substring(s+2,c).trim();if(t.ignoreNameSpace){let d=l.indexOf(":");d!==-1&&(l=l.substr(d+1))}r&&(r.val?r.val=pi.getValue(r.val)+""+Hd(l,i,t):r.val=Hd(l,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=c}else if(e[s+1]==="?")s=pa(e,"?>",s,"Pi Tag is not closed.");else if(e.substr(s+1,3)==="!--")s=pa(e,"-->",s,"Comment is not closed.");else if(e.substr(s+1,2)==="!D"){let c=pa(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=pa(e,"]]>",s,"CDATA is not closed.")-2,l=e.substring(s+9,c);if(i&&(r.val=pi.getValue(r.val)+""+Hd(r.tagname,i,t),i=""),t.cdataTagName){let d=new Kd(t.cdataTagName,r,l);r.addChild(d),r.val=pi.getValue(r.val)+t.cdataPositionChar,l&&(d.val=l)}else r.val=(r.val||"")+(l||"");s=c+2}else{let c=AQ(e,s+1),l=c.data,d=c.index,f=l.indexOf(" "),h=l,_=!0;if(f!==-1&&(h=l.substr(0,f).replace(/\s\s*$/,""),l=l.substr(f+1)),t.ignoreNameSpace){let S=h.indexOf(":");S!==-1&&(h=h.substr(S+1),_=h!==c.data.substr(S+1))}if(r&&i&&r.tagname!=="!xml"&&(r.val=pi.getValue(r.val)+""+Hd(r.tagname,i,t)),l.length>0&&l.lastIndexOf("/")===l.length-1){h[h.length-1]==="/"?(h=h.substr(0,h.length-1),l=h):l=l.substr(0,l.length-1);let S=new Kd(h,r,"");h!==l&&(S.attrsMap=T1(l,t)),r.addChild(S)}else{let S=new Kd(h,r);t.stopNodes.length&&t.stopNodes.includes(S.tagname)&&(S.startIndex=d),h!==l&&_&&(S.attrsMap=T1(l,t)),r.addChild(S),r=S}i="",s=d}else i+=e[s];return n};function AQ(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 pa(e,t,n,r){let i=e.indexOf(t,n);if(i===-1)throw new Error(r);return i+t.length-1}Wd.getTraversalObj=EQ});var O1=m(P1=>{"use strict";var Jd=Cn(),TQ={allowBooleanAttributes:!1},CQ=["allowBooleanAttributes"];P1.validate=function(e,t){t=Jd.buildOptions(t,TQ,CQ);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=R1(e,s),s.err)return s}else if(e[s]==="<")if(s++,e[s]==="!"){s=D1(e,s);continue}else{let o=!1;e[s]==="/"&&(o=!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--),!LQ(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.",ot("InvalidTag",f,sn(e,s))}let l=RQ(e,s);if(l===!1)return ot("InvalidAttr","Attributes for '"+c+"' have open quote.",sn(e,s));let d=l.value;if(s=l.index,d[d.length-1]==="/"){d=d.substring(0,d.length-1);let f=N1(d,t);if(f===!0)r=!0;else return ot(f.err.code,f.err.msg,sn(e,s-d.length+f.err.line))}else if(o)if(l.tagClosed){if(d.trim().length>0)return ot("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",sn(e,s));{let f=n.pop();if(c!==f)return ot("InvalidTag","Closing tag '"+f+"' is expected inplace of '"+c+"'.",sn(e,s));n.length==0&&(i=!0)}}else return ot("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",sn(e,s));else{let f=N1(d,t);if(f!==!0)return ot(f.err.code,f.err.msg,sn(e,s-d.length+f.err.line));if(i===!0)return ot("InvalidXml","Multiple possible root nodes found.",sn(e,s));n.push(c),r=!0}for(s++;s<e.length;s++)if(e[s]==="<")if(e[s+1]==="!"){s++,s=D1(e,s);continue}else if(e[s+1]==="?"){if(s=R1(e,++s),s.err)return s}else break;else if(e[s]==="&"){let f=PQ(e,s);if(f==-1)return ot("InvalidChar","char '&' is not expected.",sn(e,s));s=f}e[s]==="<"&&s--}else{if(e[s]===" "||e[s]===" "||e[s]===`
24
- `||e[s]==="\r")continue;return ot("InvalidChar","char '"+e[s]+"' is not expected.",sn(e,s))}if(r){if(n.length>0)return ot("InvalidXml","Invalid '"+JSON.stringify(n,null,4).replace(/\r?\n/g,"")+"' found.",1)}else return ot("InvalidXml","Start tag expected.",1);return!0};function R1(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 ot("InvalidXml","XML declaration allowed only at the start of the document.",sn(e,t));if(e[t]=="?"&&e[t+1]==">"){t++;break}else continue}return t}function D1(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 xQ='"',IQ="'";function RQ(e,t){let n="",r="",i=!1;for(;t<e.length;t++){if(e[t]===xQ||e[t]===IQ)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 DQ=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function N1(e,t){let n=Jd.getAllMatches(e,DQ),r={};for(let i=0;i<n.length;i++){if(n[i][1].length===0)return ot("InvalidAttr","Attribute '"+n[i][2]+"' has no space in starting.",Yd(e,n[i][0]));if(n[i][3]===void 0&&!t.allowBooleanAttributes)return ot("InvalidAttr","boolean attribute '"+n[i][2]+"' is not allowed.",Yd(e,n[i][0]));let s=n[i][2];if(!OQ(s))return ot("InvalidAttr","Attribute '"+s+"' is an invalid name.",Yd(e,n[i][0]));if(!r.hasOwnProperty(s))r[s]=1;else return ot("InvalidAttr","Attribute '"+s+"' is repeated.",Yd(e,n[i][0]))}return!0}function NQ(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 PQ(e,t){if(t++,e[t]===";")return-1;if(e[t]==="#")return t++,NQ(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 ot(e,t,n){return{err:{code:e,msg:t,line:n}}}function OQ(e){return Jd.isName(e)}function LQ(e){return Jd.isName(e)}function sn(e,t){var n=e.substring(0,t).split(/\r?\n/);return n.length}function Yd(e,t){return e.indexOf(t)+t.length}});var z1=m(M1=>{"use strict";var xn=function(e){return String.fromCharCode(e)},Ke={nilChar:xn(176),missingChar:xn(201),nilPremitive:xn(175),missingPremitive:xn(200),emptyChar:xn(178),emptyValue:xn(177),boundryChar:xn(179),objStart:xn(198),arrStart:xn(204),arrayEnd:xn(185)},qQ=[Ke.nilChar,Ke.nilPremitive,Ke.missingChar,Ke.missingPremitive,Ke.boundryChar,Ke.emptyChar,Ke.emptyValue,Ke.arrayEnd,Ke.objStart,Ke.arrStart],_a=function(e,t,n){if(typeof t=="string")return e&&e[0]&&e[0].val!==void 0?ev(e[0].val,t):ev(e,t);{let r=MQ(e);if(r===!0){let i="";if(Array.isArray(t)){i+=Ke.arrStart;let s=t[0],o=e.length;if(typeof s=="string")for(let c=0;c<o;c++){let l=ev(e[c].val,s);i=tv(i,l)}else for(let c=0;c<o;c++){let l=_a(e[c],s,n);i=tv(i,l)}i+=Ke.arrayEnd}else{i+=Ke.objStart;let s=Object.keys(t);Array.isArray(e)&&(e=e[0]);for(let o in s){let c=s[o],l;!n.ignoreAttributes&&e.attrsMap&&e.attrsMap[c]?l=_a(e.attrsMap[c],t[c],n):c===n.textNodeName?l=_a(e.val,t[c],n):l=_a(e.child[c],t[c],n),i=tv(i,l)}}return i}else return r}},ev=function(e){switch(e){case void 0:return Ke.missingPremitive;case null:return Ke.nilPremitive;case"":return Ke.emptyValue;default:return e}},tv=function(e,t){return!L1(t[0])&&!L1(e[e.length-1])&&(e+=Ke.boundryChar),e+t},L1=function(e){return qQ.indexOf(e)!==-1};function MQ(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 q1=ha(),zQ=Cn().buildOptions,jQ=function(e,t,n){return n=zQ(n,q1.defaultOptions,q1.props),_a(e,t,n)};M1.convert2nimn=jQ});var F1=m(k1=>{"use strict";var Qd=Cn(),kQ=Cn().buildOptions,j1=ha(),FQ=function(e,t){return t=kQ(t,j1.defaultOptions,j1.props),t.indentBy=t.indentBy||"",nv(e,t,0)},nv=function(e,t,n){let r="{",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){r+='"'+s+'" : [ ';for(var o in e.child[s])r+=nv(e.child[s][o],t)+" , ";r=r.substr(0,r.length-1)+" ] "}else r+='"'+s+'" : '+nv(e.child[s][0],t)+" ,"}return Qd.merge(r,e.attrsMap),Qd.isEmptyObject(r)?Qd.isExist(e.val)?e.val:"":(Qd.isExist(e.val)&&(typeof e.val=="string"&&(e.val===""||e.val===t.cdataPositionChar)||(r+='"'+t.textNodeName+'" : '+UQ(e.val))),r[r.length-1]===","&&(r=r.substr(0,r.length-2)),r+"}")};function UQ(e){return e===!0||e===!1||!isNaN(e)?e:'"'+e+'"'}k1.convertToJsonString=FQ});var $1=m((mve,G1)=>{"use strict";var BQ=Cn().buildOptions,GQ={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}},$Q=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","cdataTagName","cdataPositionChar","format","indentBy","supressEmptyNode","tagValueProcessor","attrValueProcessor"];function rv(e){this.options=BQ(e,GQ,$Q),this.options.ignoreAttributes||this.options.attrNodeName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=JQ),this.options.cdataTagName?this.isCDATA=QQ:this.isCDATA=function(){return!1},this.replaceCDATAstr=VQ,this.replaceCDATAarr=KQ,this.options.format?(this.indentate=YQ,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=WQ,this.buildObjNode=HQ):(this.buildTextNode=B1,this.buildObjNode=U1),this.buildTextValNode=B1,this.buildObjectNode=U1}rv.prototype.parse=function(e){return this.j2x(e,0).val};rv.prototype.j2x=function(e,t){let n="",r="",i=Object.keys(e),s=i.length;for(let o=0;o<s;o++){let c=i[o];if(!(typeof e[c]>"u"))if(e[c]===null)r+=this.indentate(t)+"<"+c+"/"+this.tagEndChar;else if(e[c]instanceof Date)r+=this.buildTextNode(e[c],c,"",t);else if(typeof e[c]!="object"){let l=this.isAttribute(c);l?n+=" "+l+'="'+this.options.attrValueProcessor(""+e[c])+'"':this.isCDATA(c)?e[this.options.textNodeName]?r+=this.replaceCDATAstr(e[this.options.textNodeName],e[c]):r+=this.replaceCDATAstr("",e[c]):c===this.options.textNodeName?e[this.options.cdataTagName]||(r+=this.options.tagValueProcessor(""+e[c])):r+=this.buildTextNode(e[c],c,"",t)}else if(Array.isArray(e[c]))if(this.isCDATA(c))r+=this.indentate(t),e[this.options.textNodeName]?r+=this.replaceCDATAarr(e[this.options.textNodeName],e[c]):r+=this.replaceCDATAarr("",e[c]);else{let l=e[c].length;for(let d=0;d<l;d++){let f=e[c][d];if(!(typeof f>"u"))if(f===null)r+=this.indentate(t)+"<"+c+"/"+this.tagEndChar;else if(typeof f=="object"){let h=this.j2x(f,t+1);r+=this.buildObjNode(h.val,c,h.attrStr,t)}else r+=this.buildTextNode(f,c,"",t)}}else if(this.options.attrNodeName&&c===this.options.attrNodeName){let l=Object.keys(e[c]),d=l.length;for(let f=0;f<d;f++)n+=" "+l[f]+'="'+this.options.attrValueProcessor(""+e[c][l[f]])+'"'}else{let l=this.j2x(e[c],t+1);r+=this.buildObjNode(l.val,c,l.attrStr,t)}}return{attrStr:n,val:r}};function VQ(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 KQ(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 U1(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 HQ(e,t,n,r){return e!==""?this.buildObjectNode(e,t,n,r):this.indentate(r)+"<"+t+n+"/"+this.tagEndChar}function B1(e,t,n,r){return this.indentate(r)+"<"+t+n+">"+this.options.tagValueProcessor(e)+"</"+t+this.tagEndChar}function WQ(e,t,n,r){return e!==""?this.buildTextValNode(e,t,n,r):this.indentate(r)+"<"+t+n+"/"+this.tagEndChar}function YQ(e){return this.options.indentBy.repeat(e)}function JQ(e){return e.startsWith(this.options.attributeNamePrefix)?e.substr(this.attrPrefixLen):!1}function QQ(e){return e===this.options.cdataTagName}G1.exports=rv});var Y1=m(on=>{"use strict";var K1=b1(),H1=ha(),V1=ha(),XQ=Cn().buildOptions,W1=O1();on.parse=function(e,t,n){if(n){n===!0&&(n={});let i=W1.validate(e,n);if(i!==!0)throw Error(i.err.msg)}t=XQ(t,V1.defaultOptions,V1.props);let r=H1.getTraversalObj(e,t);return K1.convertToJson(r,t)};on.convertTonimn=z1().convert2nimn;on.getTraversalObj=H1.getTraversalObj;on.convertToJson=K1.convertToJson;on.convertToJsonString=F1().convertToJsonString;on.validate=W1.validate;on.j2xParser=$1();on.parseToNimn=function(e,t,n){return on.convertTonimn(on.getTraversalObj(e,n),t,n)}});var Qn=m(_e=>{"use strict";Object.defineProperty(_e,"__esModule",{value:!0});_e.deserializeAws_queryGetSessionTokenCommand=_e.deserializeAws_queryGetFederationTokenCommand=_e.deserializeAws_queryGetCallerIdentityCommand=_e.deserializeAws_queryGetAccessKeyInfoCommand=_e.deserializeAws_queryDecodeAuthorizationMessageCommand=_e.deserializeAws_queryAssumeRoleWithWebIdentityCommand=_e.deserializeAws_queryAssumeRoleWithSAMLCommand=_e.deserializeAws_queryAssumeRoleCommand=_e.serializeAws_queryGetSessionTokenCommand=_e.serializeAws_queryGetFederationTokenCommand=_e.serializeAws_queryGetCallerIdentityCommand=_e.serializeAws_queryGetAccessKeyInfoCommand=_e.serializeAws_queryDecodeAuthorizationMessageCommand=_e.serializeAws_queryAssumeRoleWithWebIdentityCommand=_e.serializeAws_queryAssumeRoleWithSAMLCommand=_e.serializeAws_queryAssumeRoleCommand=void 0;var ZQ=qt(),K=q(),e7=g1(),t7=Y1(),Rr=nn(),Dr=Bd(),n7=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=Pr(g(a({},I7(e,t)),{Action:"AssumeRole",Version:"2011-06-15"})),Nr(t,n,"/",void 0,r)};_e.serializeAws_queryAssumeRoleCommand=n7;var r7=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=Pr(g(a({},R7(e,t)),{Action:"AssumeRoleWithSAML",Version:"2011-06-15"})),Nr(t,n,"/",void 0,r)};_e.serializeAws_queryAssumeRoleWithSAMLCommand=r7;var i7=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=Pr(g(a({},D7(e,t)),{Action:"AssumeRoleWithWebIdentity",Version:"2011-06-15"})),Nr(t,n,"/",void 0,r)};_e.serializeAws_queryAssumeRoleWithWebIdentityCommand=i7;var s7=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=Pr(g(a({},N7(e,t)),{Action:"DecodeAuthorizationMessage",Version:"2011-06-15"})),Nr(t,n,"/",void 0,r)};_e.serializeAws_queryDecodeAuthorizationMessageCommand=s7;var o7=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=Pr(g(a({},P7(e,t)),{Action:"GetAccessKeyInfo",Version:"2011-06-15"})),Nr(t,n,"/",void 0,r)};_e.serializeAws_queryGetAccessKeyInfoCommand=o7;var a7=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=Pr(g(a({},O7(e,t)),{Action:"GetCallerIdentity",Version:"2011-06-15"})),Nr(t,n,"/",void 0,r)};_e.serializeAws_queryGetCallerIdentityCommand=a7;var c7=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=Pr(g(a({},L7(e,t)),{Action:"GetFederationToken",Version:"2011-06-15"})),Nr(t,n,"/",void 0,r)};_e.serializeAws_queryGetFederationTokenCommand=c7;var l7=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=Pr(g(a({},q7(e,t)),{Action:"GetSessionToken",Version:"2011-06-15"})),Nr(t,n,"/",void 0,r)};_e.serializeAws_queryGetSessionTokenCommand=l7;var u7=async(e,t)=>{if(e.statusCode>=300)return d7(e,t);let n=await dt(e.body,t),r={};r=k7(n.AssumeRoleResult,t);let i=a({$metadata:Le(e)},r);return Promise.resolve(i)};_e.deserializeAws_queryAssumeRoleCommand=u7;var d7=async(e,t)=>{let n=g(a({},e),{body:await dt(e.body,t)}),r,i="UnknownError";switch(i=Or(e,n.body),i){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await iv(n,t);case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await Xd(n,t);case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await Zd(n,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await ya(n,t);default:let s=n.body;throw r=new Dr.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:Le(e)}),(0,K.decorateServiceException)(r,s.Error)}},f7=async(e,t)=>{if(e.statusCode>=300)return m7(e,t);let n=await dt(e.body,t),r={};r=F7(n.AssumeRoleWithSAMLResult,t);let i=a({$metadata:Le(e)},r);return Promise.resolve(i)};_e.deserializeAws_queryAssumeRoleWithSAMLCommand=f7;var m7=async(e,t)=>{let n=g(a({},e),{body:await dt(e.body,t)}),r,i="UnknownError";switch(i=Or(e,n.body),i){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await iv(n,t);case"IDPRejectedClaimException":case"com.amazonaws.sts#IDPRejectedClaimException":throw await J1(n,t);case"InvalidIdentityTokenException":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await Q1(n,t);case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await Xd(n,t);case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await Zd(n,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await ya(n,t);default:let s=n.body;throw r=new Dr.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:Le(e)}),(0,K.decorateServiceException)(r,s.Error)}},p7=async(e,t)=>{if(e.statusCode>=300)return h7(e,t);let n=await dt(e.body,t),r={};r=U7(n.AssumeRoleWithWebIdentityResult,t);let i=a({$metadata:Le(e)},r);return Promise.resolve(i)};_e.deserializeAws_queryAssumeRoleWithWebIdentityCommand=p7;var h7=async(e,t)=>{let n=g(a({},e),{body:await dt(e.body,t)}),r,i="UnknownError";switch(i=Or(e,n.body),i){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await iv(n,t);case"IDPCommunicationErrorException":case"com.amazonaws.sts#IDPCommunicationErrorException":throw await C7(n,t);case"IDPRejectedClaimException":case"com.amazonaws.sts#IDPRejectedClaimException":throw await J1(n,t);case"InvalidIdentityTokenException":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await Q1(n,t);case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await Xd(n,t);case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await Zd(n,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await ya(n,t);default:let s=n.body;throw r=new Dr.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:Le(e)}),(0,K.decorateServiceException)(r,s.Error)}},_7=async(e,t)=>{if(e.statusCode>=300)return y7(e,t);let n=await dt(e.body,t),r={};r=B7(n.DecodeAuthorizationMessageResult,t);let i=a({$metadata:Le(e)},r);return Promise.resolve(i)};_e.deserializeAws_queryDecodeAuthorizationMessageCommand=_7;var y7=async(e,t)=>{let n=g(a({},e),{body:await dt(e.body,t)}),r,i="UnknownError";switch(i=Or(e,n.body),i){case"InvalidAuthorizationMessageException":case"com.amazonaws.sts#InvalidAuthorizationMessageException":throw await x7(n,t);default:let s=n.body;throw r=new Dr.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:Le(e)}),(0,K.decorateServiceException)(r,s.Error)}},g7=async(e,t)=>{if(e.statusCode>=300)return S7(e,t);let n=await dt(e.body,t),r={};r=V7(n.GetAccessKeyInfoResult,t);let i=a({$metadata:Le(e)},r);return Promise.resolve(i)};_e.deserializeAws_queryGetAccessKeyInfoCommand=g7;var S7=async(e,t)=>{let n=g(a({},e),{body:await dt(e.body,t)}),r,i="UnknownError";switch(i=Or(e,n.body),i){default:let s=n.body;throw r=new Dr.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:Le(e)}),(0,K.decorateServiceException)(r,s.Error)}},v7=async(e,t)=>{if(e.statusCode>=300)return w7(e,t);let n=await dt(e.body,t),r={};r=K7(n.GetCallerIdentityResult,t);let i=a({$metadata:Le(e)},r);return Promise.resolve(i)};_e.deserializeAws_queryGetCallerIdentityCommand=v7;var w7=async(e,t)=>{let n=g(a({},e),{body:await dt(e.body,t)}),r,i="UnknownError";switch(i=Or(e,n.body),i){default:let s=n.body;throw r=new Dr.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:Le(e)}),(0,K.decorateServiceException)(r,s.Error)}},b7=async(e,t)=>{if(e.statusCode>=300)return E7(e,t);let n=await dt(e.body,t),r={};r=H7(n.GetFederationTokenResult,t);let i=a({$metadata:Le(e)},r);return Promise.resolve(i)};_e.deserializeAws_queryGetFederationTokenCommand=b7;var E7=async(e,t)=>{let n=g(a({},e),{body:await dt(e.body,t)}),r,i="UnknownError";switch(i=Or(e,n.body),i){case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await Xd(n,t);case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await Zd(n,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await ya(n,t);default:let s=n.body;throw r=new Dr.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:Le(e)}),(0,K.decorateServiceException)(r,s.Error)}},A7=async(e,t)=>{if(e.statusCode>=300)return T7(e,t);let n=await dt(e.body,t),r={};r=W7(n.GetSessionTokenResult,t);let i=a({$metadata:Le(e)},r);return Promise.resolve(i)};_e.deserializeAws_queryGetSessionTokenCommand=A7;var T7=async(e,t)=>{let n=g(a({},e),{body:await dt(e.body,t)}),r,i="UnknownError";switch(i=Or(e,n.body),i){case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await ya(n,t);default:let s=n.body;throw r=new Dr.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:Le(e)}),(0,K.decorateServiceException)(r,s.Error)}},iv=async(e,t)=>{let n=e.body,r=G7(n.Error,t),i=new Rr.ExpiredTokenException(a({$metadata:Le(e)},r));return(0,K.decorateServiceException)(i,n)},C7=async(e,t)=>{let n=e.body,r=Y7(n.Error,t),i=new Rr.IDPCommunicationErrorException(a({$metadata:Le(e)},r));return(0,K.decorateServiceException)(i,n)},J1=async(e,t)=>{let n=e.body,r=J7(n.Error,t),i=new Rr.IDPRejectedClaimException(a({$metadata:Le(e)},r));return(0,K.decorateServiceException)(i,n)},x7=async(e,t)=>{let n=e.body,r=Q7(n.Error,t),i=new Rr.InvalidAuthorizationMessageException(a({$metadata:Le(e)},r));return(0,K.decorateServiceException)(i,n)},Q1=async(e,t)=>{let n=e.body,r=X7(n.Error,t),i=new Rr.InvalidIdentityTokenException(a({$metadata:Le(e)},r));return(0,K.decorateServiceException)(i,n)},Xd=async(e,t)=>{let n=e.body,r=Z7(n.Error,t),i=new Rr.MalformedPolicyDocumentException(a({$metadata:Le(e)},r));return(0,K.decorateServiceException)(i,n)},Zd=async(e,t)=>{let n=e.body,r=eX(n.Error,t),i=new Rr.PackedPolicyTooLargeException(a({$metadata:Le(e)},r));return(0,K.decorateServiceException)(i,n)},ya=async(e,t)=>{let n=e.body,r=tX(n.Error,t),i=new Rr.RegionDisabledException(a({$metadata:Le(e)},r));return(0,K.decorateServiceException)(i,n)},I7=(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=ef(e.PolicyArns,t);Object.entries(r).forEach(([i,s])=>{let o=`PolicyArns.${i}`;n[o]=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=X1(e.Tags,t);Object.entries(r).forEach(([i,s])=>{let o=`Tags.${i}`;n[o]=s})}if(e.TransitiveTagKeys!==void 0&&e.TransitiveTagKeys!==null){let r=j7(e.TransitiveTagKeys,t);Object.entries(r).forEach(([i,s])=>{let o=`TransitiveTagKeys.${i}`;n[o]=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},R7=(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=ef(e.PolicyArns,t);Object.entries(r).forEach(([i,s])=>{let o=`PolicyArns.${i}`;n[o]=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},D7=(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=ef(e.PolicyArns,t);Object.entries(r).forEach(([i,s])=>{let o=`PolicyArns.${i}`;n[o]=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},N7=(e,t)=>{let n={};return e.EncodedMessage!==void 0&&e.EncodedMessage!==null&&(n.EncodedMessage=e.EncodedMessage),n},P7=(e,t)=>{let n={};return e.AccessKeyId!==void 0&&e.AccessKeyId!==null&&(n.AccessKeyId=e.AccessKeyId),n},O7=(e,t)=>({}),L7=(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=ef(e.PolicyArns,t);Object.entries(r).forEach(([i,s])=>{let o=`PolicyArns.${i}`;n[o]=s})}if(e.DurationSeconds!==void 0&&e.DurationSeconds!==null&&(n.DurationSeconds=e.DurationSeconds),e.Tags!==void 0&&e.Tags!==null){let r=X1(e.Tags,t);Object.entries(r).forEach(([i,s])=>{let o=`Tags.${i}`;n[o]=s})}return n},q7=(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},ef=(e,t)=>{let n={},r=1;for(let i of e){if(i===null)continue;let s=M7(i,t);Object.entries(s).forEach(([o,c])=>{n[`member.${r}.${o}`]=c}),r++}return n},M7=(e,t)=>{let n={};return e.arn!==void 0&&e.arn!==null&&(n.arn=e.arn),n},z7=(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},j7=(e,t)=>{let n={},r=1;for(let i of e)i!==null&&(n[`member.${r}`]=i,r++);return n},X1=(e,t)=>{let n={},r=1;for(let i of e){if(i===null)continue;let s=z7(i,t);Object.entries(s).forEach(([o,c])=>{n[`member.${r}.${o}`]=c}),r++}return n},sv=(e,t)=>{let n={AssumedRoleId:void 0,Arn:void 0};return e.AssumedRoleId!==void 0&&(n.AssumedRoleId=(0,K.expectString)(e.AssumedRoleId)),e.Arn!==void 0&&(n.Arn=(0,K.expectString)(e.Arn)),n},k7=(e,t)=>{let n={Credentials:void 0,AssumedRoleUser:void 0,PackedPolicySize:void 0,SourceIdentity:void 0};return e.Credentials!==void 0&&(n.Credentials=ga(e.Credentials,t)),e.AssumedRoleUser!==void 0&&(n.AssumedRoleUser=sv(e.AssumedRoleUser,t)),e.PackedPolicySize!==void 0&&(n.PackedPolicySize=(0,K.strictParseInt32)(e.PackedPolicySize)),e.SourceIdentity!==void 0&&(n.SourceIdentity=(0,K.expectString)(e.SourceIdentity)),n},F7=(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=ga(e.Credentials,t)),e.AssumedRoleUser!==void 0&&(n.AssumedRoleUser=sv(e.AssumedRoleUser,t)),e.PackedPolicySize!==void 0&&(n.PackedPolicySize=(0,K.strictParseInt32)(e.PackedPolicySize)),e.Subject!==void 0&&(n.Subject=(0,K.expectString)(e.Subject)),e.SubjectType!==void 0&&(n.SubjectType=(0,K.expectString)(e.SubjectType)),e.Issuer!==void 0&&(n.Issuer=(0,K.expectString)(e.Issuer)),e.Audience!==void 0&&(n.Audience=(0,K.expectString)(e.Audience)),e.NameQualifier!==void 0&&(n.NameQualifier=(0,K.expectString)(e.NameQualifier)),e.SourceIdentity!==void 0&&(n.SourceIdentity=(0,K.expectString)(e.SourceIdentity)),n},U7=(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=ga(e.Credentials,t)),e.SubjectFromWebIdentityToken!==void 0&&(n.SubjectFromWebIdentityToken=(0,K.expectString)(e.SubjectFromWebIdentityToken)),e.AssumedRoleUser!==void 0&&(n.AssumedRoleUser=sv(e.AssumedRoleUser,t)),e.PackedPolicySize!==void 0&&(n.PackedPolicySize=(0,K.strictParseInt32)(e.PackedPolicySize)),e.Provider!==void 0&&(n.Provider=(0,K.expectString)(e.Provider)),e.Audience!==void 0&&(n.Audience=(0,K.expectString)(e.Audience)),e.SourceIdentity!==void 0&&(n.SourceIdentity=(0,K.expectString)(e.SourceIdentity)),n},ga=(e,t)=>{let n={AccessKeyId:void 0,SecretAccessKey:void 0,SessionToken:void 0,Expiration:void 0};return e.AccessKeyId!==void 0&&(n.AccessKeyId=(0,K.expectString)(e.AccessKeyId)),e.SecretAccessKey!==void 0&&(n.SecretAccessKey=(0,K.expectString)(e.SecretAccessKey)),e.SessionToken!==void 0&&(n.SessionToken=(0,K.expectString)(e.SessionToken)),e.Expiration!==void 0&&(n.Expiration=(0,K.expectNonNull)((0,K.parseRfc3339DateTime)(e.Expiration))),n},B7=(e,t)=>{let n={DecodedMessage:void 0};return e.DecodedMessage!==void 0&&(n.DecodedMessage=(0,K.expectString)(e.DecodedMessage)),n},G7=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=(0,K.expectString)(e.message)),n},$7=(e,t)=>{let n={FederatedUserId:void 0,Arn:void 0};return e.FederatedUserId!==void 0&&(n.FederatedUserId=(0,K.expectString)(e.FederatedUserId)),e.Arn!==void 0&&(n.Arn=(0,K.expectString)(e.Arn)),n},V7=(e,t)=>{let n={Account:void 0};return e.Account!==void 0&&(n.Account=(0,K.expectString)(e.Account)),n},K7=(e,t)=>{let n={UserId:void 0,Account:void 0,Arn:void 0};return e.UserId!==void 0&&(n.UserId=(0,K.expectString)(e.UserId)),e.Account!==void 0&&(n.Account=(0,K.expectString)(e.Account)),e.Arn!==void 0&&(n.Arn=(0,K.expectString)(e.Arn)),n},H7=(e,t)=>{let n={Credentials:void 0,FederatedUser:void 0,PackedPolicySize:void 0};return e.Credentials!==void 0&&(n.Credentials=ga(e.Credentials,t)),e.FederatedUser!==void 0&&(n.FederatedUser=$7(e.FederatedUser,t)),e.PackedPolicySize!==void 0&&(n.PackedPolicySize=(0,K.strictParseInt32)(e.PackedPolicySize)),n},W7=(e,t)=>{let n={Credentials:void 0};return e.Credentials!==void 0&&(n.Credentials=ga(e.Credentials,t)),n},Y7=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=(0,K.expectString)(e.message)),n},J7=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=(0,K.expectString)(e.message)),n},Q7=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=(0,K.expectString)(e.message)),n},X7=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=(0,K.expectString)(e.message)),n},Z7=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=(0,K.expectString)(e.message)),n},eX=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=(0,K.expectString)(e.message)),n},tX=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=(0,K.expectString)(e.message)),n},Le=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"]}},nX=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),rX=(e,t)=>nX(e,t).then(n=>t.utf8Encoder(n)),Nr=async(e,t,n,r,i)=>{let{hostname:s,protocol:o="https",port:c,path:l}=await e.endpoint(),d={protocol:o,hostname:s,port:c,method:"POST",path:l.endsWith("/")?l.slice(0,-1)+n:l+n,headers:t};return r!==void 0&&(d.hostname=r),i!==void 0&&(d.body=i),new ZQ.HttpRequest(d)},dt=(e,t)=>rX(e,t).then(n=>{if(n.length){let r=(0,t7.parse)(n,{attributeNamePrefix:"",ignoreAttributes:!1,parseNodeValue:!1,trimValues:!1,tagValueProcessor:c=>c.trim()===""&&c.includes(`
27
- `)?"":(0,e7.decodeHTML)(c)}),i="#text",s=Object.keys(r)[0],o=r[s];return o[i]&&(o[s]=o[i],delete o[i]),(0,K.getValueFromTextNode)(o)}return{}}),Pr=e=>Object.entries(e).map(([t,n])=>(0,K.extendedEncodeURIComponent)(t)+"="+(0,K.extendedEncodeURIComponent)(n)).join("&"),Or=(e,t)=>t.Error.Code!==void 0?t.Error.Code:e.statusCode==404?"NotFound":""});var nf=m(tf=>{"use strict";Object.defineProperty(tf,"__esModule",{value:!0});tf.AssumeRoleCommand=void 0;var iX=$(),sX=Jn(),oX=q(),Z1=nn(),eR=Qn(),ov=class extends oX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,iX.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,sX.getAwsAuthPlugin)(n));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"STSClient",commandName:"AssumeRoleCommand",inputFilterSensitiveLog:Z1.AssumeRoleRequest.filterSensitiveLog,outputFilterSensitiveLog:Z1.AssumeRoleResponse.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,eR.serializeAws_queryAssumeRoleCommand)(t,n)}deserialize(t,n){return(0,eR.deserializeAws_queryAssumeRoleCommand)(t,n)}};tf.AssumeRoleCommand=ov});var cv=m(rf=>{"use strict";Object.defineProperty(rf,"__esModule",{value:!0});rf.AssumeRoleWithSAMLCommand=void 0;var aX=$(),cX=q(),tR=nn(),nR=Qn(),av=class extends cX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,aX.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"STSClient",commandName:"AssumeRoleWithSAMLCommand",inputFilterSensitiveLog:tR.AssumeRoleWithSAMLRequest.filterSensitiveLog,outputFilterSensitiveLog:tR.AssumeRoleWithSAMLResponse.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,nR.serializeAws_queryAssumeRoleWithSAMLCommand)(t,n)}deserialize(t,n){return(0,nR.deserializeAws_queryAssumeRoleWithSAMLCommand)(t,n)}};rf.AssumeRoleWithSAMLCommand=av});var of=m(sf=>{"use strict";Object.defineProperty(sf,"__esModule",{value:!0});sf.AssumeRoleWithWebIdentityCommand=void 0;var lX=$(),uX=q(),rR=nn(),iR=Qn(),lv=class extends uX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,lX.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"STSClient",commandName:"AssumeRoleWithWebIdentityCommand",inputFilterSensitiveLog:rR.AssumeRoleWithWebIdentityRequest.filterSensitiveLog,outputFilterSensitiveLog:rR.AssumeRoleWithWebIdentityResponse.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,iR.serializeAws_queryAssumeRoleWithWebIdentityCommand)(t,n)}deserialize(t,n){return(0,iR.deserializeAws_queryAssumeRoleWithWebIdentityCommand)(t,n)}};sf.AssumeRoleWithWebIdentityCommand=lv});var dv=m(af=>{"use strict";Object.defineProperty(af,"__esModule",{value:!0});af.DecodeAuthorizationMessageCommand=void 0;var dX=$(),fX=Jn(),mX=q(),sR=nn(),oR=Qn(),uv=class extends mX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,dX.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,fX.getAwsAuthPlugin)(n));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"STSClient",commandName:"DecodeAuthorizationMessageCommand",inputFilterSensitiveLog:sR.DecodeAuthorizationMessageRequest.filterSensitiveLog,outputFilterSensitiveLog:sR.DecodeAuthorizationMessageResponse.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,oR.serializeAws_queryDecodeAuthorizationMessageCommand)(t,n)}deserialize(t,n){return(0,oR.deserializeAws_queryDecodeAuthorizationMessageCommand)(t,n)}};af.DecodeAuthorizationMessageCommand=uv});var mv=m(cf=>{"use strict";Object.defineProperty(cf,"__esModule",{value:!0});cf.GetAccessKeyInfoCommand=void 0;var pX=$(),hX=Jn(),_X=q(),aR=nn(),cR=Qn(),fv=class extends _X.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,pX.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,hX.getAwsAuthPlugin)(n));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"STSClient",commandName:"GetAccessKeyInfoCommand",inputFilterSensitiveLog:aR.GetAccessKeyInfoRequest.filterSensitiveLog,outputFilterSensitiveLog:aR.GetAccessKeyInfoResponse.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,cR.serializeAws_queryGetAccessKeyInfoCommand)(t,n)}deserialize(t,n){return(0,cR.deserializeAws_queryGetAccessKeyInfoCommand)(t,n)}};cf.GetAccessKeyInfoCommand=fv});var hv=m(lf=>{"use strict";Object.defineProperty(lf,"__esModule",{value:!0});lf.GetCallerIdentityCommand=void 0;var yX=$(),gX=Jn(),SX=q(),lR=nn(),uR=Qn(),pv=class extends SX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,yX.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,gX.getAwsAuthPlugin)(n));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"STSClient",commandName:"GetCallerIdentityCommand",inputFilterSensitiveLog:lR.GetCallerIdentityRequest.filterSensitiveLog,outputFilterSensitiveLog:lR.GetCallerIdentityResponse.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,uR.serializeAws_queryGetCallerIdentityCommand)(t,n)}deserialize(t,n){return(0,uR.deserializeAws_queryGetCallerIdentityCommand)(t,n)}};lf.GetCallerIdentityCommand=pv});var yv=m(uf=>{"use strict";Object.defineProperty(uf,"__esModule",{value:!0});uf.GetFederationTokenCommand=void 0;var vX=$(),wX=Jn(),bX=q(),dR=nn(),fR=Qn(),_v=class extends bX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,vX.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,wX.getAwsAuthPlugin)(n));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"STSClient",commandName:"GetFederationTokenCommand",inputFilterSensitiveLog:dR.GetFederationTokenRequest.filterSensitiveLog,outputFilterSensitiveLog:dR.GetFederationTokenResponse.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,fR.serializeAws_queryGetFederationTokenCommand)(t,n)}deserialize(t,n){return(0,fR.deserializeAws_queryGetFederationTokenCommand)(t,n)}};uf.GetFederationTokenCommand=_v});var Sv=m(df=>{"use strict";Object.defineProperty(df,"__esModule",{value:!0});df.GetSessionTokenCommand=void 0;var EX=$(),AX=Jn(),TX=q(),mR=nn(),pR=Qn(),gv=class extends TX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,EX.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,AX.getAwsAuthPlugin)(n));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"STSClient",commandName:"GetSessionTokenCommand",inputFilterSensitiveLog:mR.GetSessionTokenRequest.filterSensitiveLog,outputFilterSensitiveLog:mR.GetSessionTokenResponse.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,pR.serializeAws_queryGetSessionTokenCommand)(t,n)}deserialize(t,n){return(0,pR.deserializeAws_queryGetSessionTokenCommand)(t,n)}};df.GetSessionTokenCommand=gv});var hR=m(ff=>{"use strict";Object.defineProperty(ff,"__esModule",{value:!0});ff.resolveStsAuthConfig=void 0;var CX=Jn(),xX=(e,{stsClientCtor:t})=>(0,CX.resolveAwsAuthConfig)(g(a({},e),{stsClientCtor:t}));ff.resolveStsAuthConfig=xX});var _R=m((Tve,IX)=>{IX.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 vv=m(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.decorateDefaultCredentialProvider=In.getDefaultRoleAssumerWithWebIdentity=In.getDefaultRoleAssumer=void 0;var RX=nf(),DX=of(),yR="us-east-1",gR=e=>typeof e!="function"?e===void 0?yR:e:async()=>{try{return await e()}catch{return yR}},NX=(e,t)=>{let n,r;return async(i,s)=>{if(r=i,!n){let{logger:c,region:l,requestHandler:d}=e;n=new t(a({logger:c,credentialDefaultProvider:()=>async()=>r,region:gR(l||e.region)},d?{requestHandler:d}:{}))}let{Credentials:o}=await n.send(new RX.AssumeRoleCommand(s));if(!o||!o.AccessKeyId||!o.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${s.RoleArn}`);return{accessKeyId:o.AccessKeyId,secretAccessKey:o.SecretAccessKey,sessionToken:o.SessionToken,expiration:o.Expiration}}};In.getDefaultRoleAssumer=NX;var PX=(e,t)=>{let n;return async r=>{if(!n){let{logger:s,region:o,requestHandler:c}=e;n=new t(a({logger:s,region:gR(o||e.region)},c?{requestHandler:c}:{}))}let{Credentials:i}=await n.send(new DX.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}}};In.getDefaultRoleAssumerWithWebIdentity=PX;var OX=e=>t=>e(a({roleAssumer:(0,In.getDefaultRoleAssumer)(t,t.stsClientCtor),roleAssumerWithWebIdentity:(0,In.getDefaultRoleAssumerWithWebIdentity)(t,t.stsClientCtor)},t));In.decorateDefaultCredentialProvider=OX});var SR=m(ft=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});ft.fromEnv=ft.ENV_EXPIRATION=ft.ENV_SESSION=ft.ENV_SECRET=ft.ENV_KEY=void 0;var LX=ke();ft.ENV_KEY="AWS_ACCESS_KEY_ID";ft.ENV_SECRET="AWS_SECRET_ACCESS_KEY";ft.ENV_SESSION="AWS_SESSION_TOKEN";ft.ENV_EXPIRATION="AWS_CREDENTIAL_EXPIRATION";var qX=()=>async()=>{let e=process.env[ft.ENV_KEY],t=process.env[ft.ENV_SECRET],n=process.env[ft.ENV_SESSION],r=process.env[ft.ENV_EXPIRATION];if(e&&t)return a(a({accessKeyId:e,secretAccessKey:t},n&&{sessionToken:n}),r&&{expiration:new Date(r)});throw new LX.CredentialsProviderError("Unable to find environment variable credentials.")};ft.fromEnv=qX});var bv=m(wv=>{"use strict";Object.defineProperty(wv,"__esModule",{value:!0});var MX=Y();MX.__exportStar(SR(),wv)});var Sa=m(mf=>{"use strict";Object.defineProperty(mf,"__esModule",{value:!0});mf.getHomeDir=void 0;var zX=require("os"),jX=require("path"),kX=()=>{let{HOME:e,USERPROFILE:t,HOMEPATH:n,HOMEDRIVE:r=`C:${jX.sep}`}=process.env;return e||t||(n?`${r}${n}`:(0,zX.homedir)())};mf.getHomeDir=kX});var vR=m(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.getProfileName=Rn.DEFAULT_PROFILE=Rn.ENV_PROFILE=void 0;Rn.ENV_PROFILE="AWS_PROFILE";Rn.DEFAULT_PROFILE="default";var FX=e=>e.profile||process.env[Rn.ENV_PROFILE]||Rn.DEFAULT_PROFILE;Rn.getProfileName=FX});var Ev=m(pf=>{"use strict";Object.defineProperty(pf,"__esModule",{value:!0});pf.getSSOTokenFilepath=void 0;var UX=require("crypto"),BX=require("path"),GX=Sa(),$X=e=>{let n=(0,UX.createHash)("sha1").update(e).digest("hex");return(0,BX.join)((0,GX.getHomeDir)(),".aws","sso","cache",`${n}.json`)};pf.getSSOTokenFilepath=$X});var wR=m(hf=>{"use strict";Object.defineProperty(hf,"__esModule",{value:!0});hf.getSSOTokenFromFile=void 0;var VX=require("fs"),KX=Ev(),{readFile:HX}=VX.promises,WX=async e=>{let t=(0,KX.getSSOTokenFilepath)(e),n=await HX(t,"utf8");return JSON.parse(n)};hf.getSSOTokenFromFile=WX});var bR=m(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.getConfigFilepath=hi.ENV_CONFIG_PATH=void 0;var YX=require("path"),JX=Sa();hi.ENV_CONFIG_PATH="AWS_CONFIG_FILE";var QX=()=>process.env[hi.ENV_CONFIG_PATH]||(0,YX.join)((0,JX.getHomeDir)(),".aws","config");hi.getConfigFilepath=QX});var ER=m(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});_i.getCredentialsFilepath=_i.ENV_CREDENTIALS_PATH=void 0;var XX=require("path"),ZX=Sa();_i.ENV_CREDENTIALS_PATH="AWS_SHARED_CREDENTIALS_FILE";var eZ=()=>process.env[_i.ENV_CREDENTIALS_PATH]||(0,XX.join)((0,ZX.getHomeDir)(),".aws","credentials");_i.getCredentialsFilepath=eZ});var TR=m(_f=>{"use strict";Object.defineProperty(_f,"__esModule",{value:!0});_f.getProfileData=void 0;var AR=/^profile\s(["'])?([^\1]+)\1$/,tZ=e=>Object.entries(e).filter(([t])=>AR.test(t)).reduce((t,[n,r])=>g(a({},t),{[AR.exec(n)[2]]:r}),a({},e.default&&{default:e.default}));_f.getProfileData=tZ});var CR=m(yf=>{"use strict";Object.defineProperty(yf,"__esModule",{value:!0});yf.parseIni=void 0;var nZ=["__proto__","profile __proto__"],rZ=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],nZ.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};yf.parseIni=rZ});var xR=m(gf=>{"use strict";Object.defineProperty(gf,"__esModule",{value:!0});gf.slurpFile=void 0;var iZ=require("fs"),{readFile:sZ}=iZ.promises,Av={},oZ=e=>(Av[e]||(Av[e]=sZ(e,"utf8")),Av[e]);gf.slurpFile=oZ});var Tv=m(Sf=>{"use strict";Object.defineProperty(Sf,"__esModule",{value:!0});Sf.loadSharedConfigFiles=void 0;var aZ=bR(),cZ=ER(),lZ=TR(),IR=CR(),RR=xR(),DR=()=>({}),uZ=async(e={})=>{let{filepath:t=(0,cZ.getCredentialsFilepath)(),configFilepath:n=(0,aZ.getConfigFilepath)()}=e,r=await Promise.all([(0,RR.slurpFile)(n).then(IR.parseIni).then(lZ.getProfileData).catch(DR),(0,RR.slurpFile)(t).then(IR.parseIni).catch(DR)]);return{configFile:r[0],credentialsFile:r[1]}};Sf.loadSharedConfigFiles=uZ});var NR=m(vf=>{"use strict";Object.defineProperty(vf,"__esModule",{value:!0});vf.parseKnownFiles=void 0;var dZ=Tv(),fZ=async e=>{let t=await(0,dZ.loadSharedConfigFiles)(e);return a(a({},t.configFile),t.credentialsFile)};vf.parseKnownFiles=fZ});var OR=m(PR=>{"use strict";Object.defineProperty(PR,"__esModule",{value:!0})});var Lr=m(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});var yi=Y();yi.__exportStar(Sa(),Xn);yi.__exportStar(vR(),Xn);yi.__exportStar(Ev(),Xn);yi.__exportStar(wR(),Xn);yi.__exportStar(Tv(),Xn);yi.__exportStar(NR(),Xn);yi.__exportStar(OR(),Xn)});var bf=m(wf=>{"use strict";Object.defineProperty(wf,"__esModule",{value:!0});wf.httpRequest=void 0;var Cv=ke(),mZ=require("buffer"),pZ=require("http");function hZ(e){return new Promise((t,n)=>{var r;let i=(0,pZ.request)(g(a({method:"GET"},e),{hostname:(r=e.hostname)===null||r===void 0?void 0:r.replace(/^\[(.+)\]$/,"$1")}));i.on("error",s=>{n(Object.assign(new Cv.ProviderError("Unable to connect to instance metadata service"),s)),i.destroy()}),i.on("timeout",()=>{n(new Cv.ProviderError("TimeoutError from instance metadata service")),i.destroy()}),i.on("response",s=>{let{statusCode:o=400}=s;(o<200||300<=o)&&(n(Object.assign(new Cv.ProviderError("Error response received from instance metadata service"),{statusCode:o})),i.destroy());let c=[];s.on("data",l=>{c.push(l)}),s.on("end",()=>{t(mZ.Buffer.concat(c)),i.destroy()})}),i.end()})}wf.httpRequest=hZ});var xv=m(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.fromImdsCredentials=ss.isImdsCredentials=void 0;var _Z=e=>Boolean(e)&&typeof e=="object"&&typeof e.AccessKeyId=="string"&&typeof e.SecretAccessKey=="string"&&typeof e.Token=="string"&&typeof e.Expiration=="string";ss.isImdsCredentials=_Z;var yZ=e=>({accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:new Date(e.Expiration)});ss.fromImdsCredentials=yZ});var Ef=m(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.providerConfigFromInit=Dn.DEFAULT_MAX_RETRIES=Dn.DEFAULT_TIMEOUT=void 0;Dn.DEFAULT_TIMEOUT=1e3;Dn.DEFAULT_MAX_RETRIES=0;var gZ=({maxRetries:e=Dn.DEFAULT_MAX_RETRIES,timeout:t=Dn.DEFAULT_TIMEOUT})=>({maxRetries:e,timeout:t});Dn.providerConfigFromInit=gZ});var Iv=m(Af=>{"use strict";Object.defineProperty(Af,"__esModule",{value:!0});Af.retry=void 0;var SZ=(e,t)=>{let n=e();for(let r=0;r<t;r++)n=n.catch(e);return n};Af.retry=SZ});var qR=m(Ze=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});Ze.fromContainerMetadata=Ze.ENV_CMDS_AUTH_TOKEN=Ze.ENV_CMDS_RELATIVE_URI=Ze.ENV_CMDS_FULL_URI=void 0;var Tf=ke(),vZ=require("url"),wZ=bf(),LR=xv(),bZ=Ef(),EZ=Iv();Ze.ENV_CMDS_FULL_URI="AWS_CONTAINER_CREDENTIALS_FULL_URI";Ze.ENV_CMDS_RELATIVE_URI="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";Ze.ENV_CMDS_AUTH_TOKEN="AWS_CONTAINER_AUTHORIZATION_TOKEN";var AZ=(e={})=>{let{timeout:t,maxRetries:n}=(0,bZ.providerConfigFromInit)(e);return()=>(0,EZ.retry)(async()=>{let r=await RZ(),i=JSON.parse(await TZ(t,r));if(!(0,LR.isImdsCredentials)(i))throw new Tf.CredentialsProviderError("Invalid response received from instance metadata service.");return(0,LR.fromImdsCredentials)(i)},n)};Ze.fromContainerMetadata=AZ;var TZ=async(e,t)=>(process.env[Ze.ENV_CMDS_AUTH_TOKEN]&&(t.headers=g(a({},t.headers),{Authorization:process.env[Ze.ENV_CMDS_AUTH_TOKEN]})),(await(0,wZ.httpRequest)(g(a({},t),{timeout:e}))).toString()),CZ="169.254.170.2",xZ={localhost:!0,"127.0.0.1":!0},IZ={"http:":!0,"https:":!0},RZ=async()=>{if(process.env[Ze.ENV_CMDS_RELATIVE_URI])return{hostname:CZ,path:process.env[Ze.ENV_CMDS_RELATIVE_URI]};if(process.env[Ze.ENV_CMDS_FULL_URI]){let e=(0,vZ.parse)(process.env[Ze.ENV_CMDS_FULL_URI]);if(!e.hostname||!(e.hostname in xZ))throw new Tf.CredentialsProviderError(`${e.hostname} is not a valid container metadata service hostname`,!1);if(!e.protocol||!(e.protocol in IZ))throw new Tf.CredentialsProviderError(`${e.protocol} is not a valid container metadata service protocol`,!1);return g(a({},e),{port:e.port?parseInt(e.port,10):void 0})}throw new Tf.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${Ze.ENV_CMDS_RELATIVE_URI} or ${Ze.ENV_CMDS_FULL_URI} environment variable is set`,!1)}});var MR=m(Cf=>{"use strict";Object.defineProperty(Cf,"__esModule",{value:!0});Cf.fromEnv=void 0;var DZ=ke(),NZ=e=>async()=>{try{let t=e(process.env);if(t===void 0)throw new Error;return t}catch(t){throw new DZ.CredentialsProviderError(t.message||`Cannot load config from environment variables with getter: ${e}`)}};Cf.fromEnv=NZ});var jR=m(xf=>{"use strict";Object.defineProperty(xf,"__esModule",{value:!0});xf.fromSharedConfigFiles=void 0;var PZ=ke(),zR=Lr(),OZ=(e,r={})=>{var i=r,{preferredFile:t="config"}=i,n=_r(i,["preferredFile"]);return async()=>{let s=(0,zR.getProfileName)(n),{configFile:o,credentialsFile:c}=await(0,zR.loadSharedConfigFiles)(n),l=c[s]||{},d=o[s]||{},f=t==="config"?a(a({},l),d):a(a({},d),l);try{let h=e(f);if(h===void 0)throw new Error;return h}catch(h){throw new PZ.CredentialsProviderError(h.message||`Cannot load config for profile ${s} in SDK configuration files with getter: ${e}`)}}};xf.fromSharedConfigFiles=OZ});var kR=m(If=>{"use strict";Object.defineProperty(If,"__esModule",{value:!0});If.fromStatic=void 0;var LZ=ke(),qZ=e=>typeof e=="function",MZ=e=>qZ(e)?async()=>await e():(0,LZ.fromStatic)(e);If.fromStatic=MZ});var UR=m(Rf=>{"use strict";Object.defineProperty(Rf,"__esModule",{value:!0});Rf.loadConfig=void 0;var FR=ke(),zZ=MR(),jZ=jR(),kZ=kR(),FZ=({environmentVariableSelector:e,configFileSelector:t,default:n},r={})=>(0,FR.memoize)((0,FR.chain)((0,zZ.fromEnv)(e),(0,jZ.fromSharedConfigFiles)(t,r),(0,kZ.fromStatic)(n)));Rf.loadConfig=FZ});var gi=m(Rv=>{"use strict";Object.defineProperty(Rv,"__esModule",{value:!0});var UZ=Y();UZ.__exportStar(UR(),Rv)});var BR=m(Df=>{"use strict";Object.defineProperty(Df,"__esModule",{value:!0});Df.parseQueryString=void 0;function BZ(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}Df.parseQueryString=BZ});var va=m(Nf=>{"use strict";Object.defineProperty(Nf,"__esModule",{value:!0});Nf.parseUrl=void 0;var GZ=BR(),$Z=e=>{let{hostname:t,pathname:n,port:r,protocol:i,search:s}=new URL(e),o;return s&&(o=(0,GZ.parseQueryString)(s)),{hostname:t,port:r?parseInt(r):void 0,protocol:i,path:n,query:o}};Nf.parseUrl=$Z});var GR=m(wa=>{"use strict";Object.defineProperty(wa,"__esModule",{value:!0});wa.Endpoint=void 0;var VZ;(function(e){e.IPv4="http://169.254.169.254",e.IPv6="http://[fd00:ec2::254]"})(VZ=wa.Endpoint||(wa.Endpoint={}))});var $R=m(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.ENDPOINT_CONFIG_OPTIONS=Nn.CONFIG_ENDPOINT_NAME=Nn.ENV_ENDPOINT_NAME=void 0;Nn.ENV_ENDPOINT_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT";Nn.CONFIG_ENDPOINT_NAME="ec2_metadata_service_endpoint";Nn.ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>e[Nn.ENV_ENDPOINT_NAME],configFileSelector:e=>e[Nn.CONFIG_ENDPOINT_NAME],default:void 0}});var Dv=m(ba=>{"use strict";Object.defineProperty(ba,"__esModule",{value:!0});ba.EndpointMode=void 0;var KZ;(function(e){e.IPv4="IPv4",e.IPv6="IPv6"})(KZ=ba.EndpointMode||(ba.EndpointMode={}))});var VR=m(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.ENDPOINT_MODE_CONFIG_OPTIONS=Pn.CONFIG_ENDPOINT_MODE_NAME=Pn.ENV_ENDPOINT_MODE_NAME=void 0;var HZ=Dv();Pn.ENV_ENDPOINT_MODE_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";Pn.CONFIG_ENDPOINT_MODE_NAME="ec2_metadata_service_endpoint_mode";Pn.ENDPOINT_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[Pn.ENV_ENDPOINT_MODE_NAME],configFileSelector:e=>e[Pn.CONFIG_ENDPOINT_MODE_NAME],default:HZ.EndpointMode.IPv4}});var Pv=m(Pf=>{"use strict";Object.defineProperty(Pf,"__esModule",{value:!0});Pf.getInstanceMetadataEndpoint=void 0;var HR=gi(),WZ=va(),KR=GR(),YZ=$R(),Nv=Dv(),JZ=VR(),QZ=async()=>(0,WZ.parseUrl)(await XZ()||await ZZ());Pf.getInstanceMetadataEndpoint=QZ;var XZ=async()=>(0,HR.loadConfig)(YZ.ENDPOINT_CONFIG_OPTIONS)(),ZZ=async()=>{let e=await(0,HR.loadConfig)(JZ.ENDPOINT_MODE_CONFIG_OPTIONS)();switch(e){case Nv.EndpointMode.IPv4:return KR.Endpoint.IPv4;case Nv.EndpointMode.IPv6:return KR.Endpoint.IPv6;default:throw new Error(`Unsupported endpoint mode: ${e}. Select from ${Object.values(Nv.EndpointMode)}`)}}});var WR=m(Of=>{"use strict";Object.defineProperty(Of,"__esModule",{value:!0});Of.getExtendedInstanceMetadataCredentials=void 0;var eee=5*60,tee=5*60,nee="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",ree=(e,t)=>{var n;let r=eee+Math.floor(Math.random()*tee),i=new Date(Date.now()+r*1e3);t.warn("Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(newExpiration)}.\nFor more information, please visit: "+nee);let s=(n=e.originalExpiration)!==null&&n!==void 0?n:e.expiration;return g(a(a({},e),s?{originalExpiration:s}:{}),{expiration:i})};Of.getExtendedInstanceMetadataCredentials=ree});var JR=m(Lf=>{"use strict";Object.defineProperty(Lf,"__esModule",{value:!0});Lf.staticStabilityProvider=void 0;var YR=WR(),iee=(e,t={})=>{let n=(t==null?void 0:t.logger)||console,r;return async()=>{let i;try{i=await e(),i.expiration&&i.expiration.getTime()<Date.now()&&(i=(0,YR.getExtendedInstanceMetadataCredentials)(i,n))}catch(s){if(r)n.warn("Credential renew failed: ",s),i=(0,YR.getExtendedInstanceMetadataCredentials)(r,n);else throw s}return r=i,i}};Lf.staticStabilityProvider=iee});var eD=m(qf=>{"use strict";Object.defineProperty(qf,"__esModule",{value:!0});qf.fromInstanceMetadata=void 0;var see=ke(),Ov=bf(),QR=xv(),oee=Ef(),XR=Iv(),aee=Pv(),cee=JR(),ZR="/latest/meta-data/iam/security-credentials/",lee="/latest/api/token",uee=(e={})=>(0,cee.staticStabilityProvider)(dee(e),{logger:e.logger});qf.fromInstanceMetadata=uee;var dee=e=>{let t=!1,{timeout:n,maxRetries:r}=(0,oee.providerConfigFromInit)(e),i=async(s,o)=>{let c=(await(0,XR.retry)(async()=>{let l;try{l=await mee(o)}catch(d){throw d.statusCode===401&&(t=!1),d}return l},s)).trim();return(0,XR.retry)(async()=>{let l;try{l=await pee(c,o)}catch(d){throw d.statusCode===401&&(t=!1),d}return l},s)};return async()=>{let s=await(0,aee.getInstanceMetadataEndpoint)();if(t)return i(r,g(a({},s),{timeout:n}));{let o;try{o=(await fee(g(a({},s),{timeout:n}))).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(r,g(a({},s),{timeout:n}))}return i(r,g(a({},s),{headers:{"x-aws-ec2-metadata-token":o},timeout:n}))}}},fee=async e=>(0,Ov.httpRequest)(g(a({},e),{path:lee,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}})),mee=async e=>(await(0,Ov.httpRequest)(g(a({},e),{path:ZR}))).toString(),pee=async(e,t)=>{let n=JSON.parse((await(0,Ov.httpRequest)(g(a({},t),{path:ZR+e}))).toString());if(!(0,QR.isImdsCredentials)(n))throw new see.CredentialsProviderError("Invalid response received from instance metadata service.");return(0,QR.fromImdsCredentials)(n)}});var nD=m(tD=>{"use strict";Object.defineProperty(tD,"__esModule",{value:!0})});var zf=m(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.getInstanceMetadataEndpoint=On.httpRequest=void 0;var Mf=Y();Mf.__exportStar(qR(),On);Mf.__exportStar(eD(),On);Mf.__exportStar(Ef(),On);Mf.__exportStar(nD(),On);var hee=bf();Object.defineProperty(On,"httpRequest",{enumerable:!0,get:function(){return hee.httpRequest}});var _ee=Pv();Object.defineProperty(On,"getInstanceMetadataEndpoint",{enumerable:!0,get:function(){return _ee.getInstanceMetadataEndpoint}})});var iD=m(jf=>{"use strict";Object.defineProperty(jf,"__esModule",{value:!0});jf.resolveCredentialSource=void 0;var yee=bv(),rD=zf(),gee=ke(),See=(e,t)=>{let n={EcsContainer:rD.fromContainerMetadata,Ec2InstanceMetadata:rD.fromInstanceMetadata,Environment:yee.fromEnv};if(e in n)return n[e]();throw new gee.CredentialsProviderError(`Unsupported credential source in profile ${t}. Got ${e}, expected EcsContainer or Ec2InstanceMetadata or Environment.`)};jf.resolveCredentialSource=See});var sD=m(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});os.resolveAssumeRoleCredentials=os.isAssumeRoleProfile=void 0;var Lv=ke(),vee=Lr(),wee=iD(),bee=qv(),Eee=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&&(Aee(e)||Tee(e));os.isAssumeRoleProfile=Eee;var Aee=e=>typeof e.source_profile=="string"&&typeof e.credential_source>"u",Tee=e=>typeof e.credential_source=="string"&&typeof e.source_profile>"u",Cee=async(e,t,n,r={})=>{let i=t[e];if(!n.roleAssumer)throw new Lv.CredentialsProviderError(`Profile ${e} requires a role to be assumed, but no role assumption callback was provided.`,!1);let{source_profile:s}=i;if(s&&s in r)throw new Lv.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${(0,vee.getProfileName)(n)}. Profiles visited: `+Object.keys(r).join(", "),!1);let o=s?(0,bee.resolveProfileData)(s,t,n,g(a({},r),{[s]:!0})):(0,wee.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(!n.mfaCodeProvider)throw new Lv.CredentialsProviderError(`Profile ${e} requires multi-factor authentication, but no MFA code callback was provided.`,!1);c.SerialNumber=l,c.TokenCode=await n.mfaCodeProvider(l)}let d=await o;return n.roleAssumer(d,c)};os.resolveAssumeRoleCredentials=Cee});var Mv=m(kf=>{"use strict";Object.defineProperty(kf,"__esModule",{value:!0});kf.isSsoProfile=void 0;var xee=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");kf.isSsoProfile=xee});var Uf=m(Ff=>{"use strict";Object.defineProperty(Ff,"__esModule",{value:!0});Ff.SSOServiceException=void 0;var Iee=q(),Ea=class extends Iee.ServiceException{constructor(t){super(t),Object.setPrototypeOf(this,Ea.prototype)}};Ff.SSOServiceException=Ea});var Si=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 as=q(),Bf=Uf(),Ree;(function(e){e.filterSensitiveLog=t=>a({},t)})(Ree=le.AccountInfo||(le.AccountInfo={}));var Dee;(function(e){e.filterSensitiveLog=t=>a(a({},t),t.accessToken&&{accessToken:as.SENSITIVE_STRING})})(Dee=le.GetRoleCredentialsRequest||(le.GetRoleCredentialsRequest={}));var oD;(function(e){e.filterSensitiveLog=t=>a(a(a({},t),t.secretAccessKey&&{secretAccessKey:as.SENSITIVE_STRING}),t.sessionToken&&{sessionToken:as.SENSITIVE_STRING})})(oD=le.RoleCredentials||(le.RoleCredentials={}));var Nee;(function(e){e.filterSensitiveLog=t=>a(a({},t),t.roleCredentials&&{roleCredentials:oD.filterSensitiveLog(t.roleCredentials)})})(Nee=le.GetRoleCredentialsResponse||(le.GetRoleCredentialsResponse={}));var Aa=class extends Bf.SSOServiceException{constructor(t){super(a({name:"InvalidRequestException",$fault:"client"},t)),this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,Aa.prototype)}};le.InvalidRequestException=Aa;var Ta=class extends Bf.SSOServiceException{constructor(t){super(a({name:"ResourceNotFoundException",$fault:"client"},t)),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,Ta.prototype)}};le.ResourceNotFoundException=Ta;var Ca=class extends Bf.SSOServiceException{constructor(t){super(a({name:"TooManyRequestsException",$fault:"client"},t)),this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,Ca.prototype)}};le.TooManyRequestsException=Ca;var xa=class extends Bf.SSOServiceException{constructor(t){super(a({name:"UnauthorizedException",$fault:"client"},t)),this.name="UnauthorizedException",this.$fault="client",Object.setPrototypeOf(this,xa.prototype)}};le.UnauthorizedException=xa;var Pee;(function(e){e.filterSensitiveLog=t=>a(a({},t),t.accessToken&&{accessToken:as.SENSITIVE_STRING})})(Pee=le.ListAccountRolesRequest||(le.ListAccountRolesRequest={}));var Oee;(function(e){e.filterSensitiveLog=t=>a({},t)})(Oee=le.RoleInfo||(le.RoleInfo={}));var Lee;(function(e){e.filterSensitiveLog=t=>a({},t)})(Lee=le.ListAccountRolesResponse||(le.ListAccountRolesResponse={}));var qee;(function(e){e.filterSensitiveLog=t=>a(a({},t),t.accessToken&&{accessToken:as.SENSITIVE_STRING})})(qee=le.ListAccountsRequest||(le.ListAccountsRequest={}));var Mee;(function(e){e.filterSensitiveLog=t=>a({},t)})(Mee=le.ListAccountsResponse||(le.ListAccountsResponse={}));var zee;(function(e){e.filterSensitiveLog=t=>a(a({},t),t.accessToken&&{accessToken:as.SENSITIVE_STRING})})(zee=le.LogoutRequest||(le.LogoutRequest={}))});var Ia=m(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.deserializeAws_restJson1LogoutCommand=et.deserializeAws_restJson1ListAccountsCommand=et.deserializeAws_restJson1ListAccountRolesCommand=et.deserializeAws_restJson1GetRoleCredentialsCommand=et.serializeAws_restJson1LogoutCommand=et.serializeAws_restJson1ListAccountsCommand=et.serializeAws_restJson1ListAccountRolesCommand=et.serializeAws_restJson1GetRoleCredentialsCommand=void 0;var Gf=qt(),Ee=q(),$f=Si(),Vf=Uf(),jee=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),o=a({},Yf(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}),c=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/federation/credentials`,l=a(a({},e.roleName!==void 0&&{role_name:e.roleName}),e.accountId!==void 0&&{account_id:e.accountId}),d;return new Gf.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:o,path:c,query:l,body:d})};et.serializeAws_restJson1GetRoleCredentialsCommand=jee;var kee=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),o=a({},Yf(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}),c=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/assignment/roles`,l=a(a(a({},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 Gf.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:o,path:c,query:l,body:d})};et.serializeAws_restJson1ListAccountRolesCommand=kee;var Fee=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),o=a({},Yf(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}),c=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/assignment/accounts`,l=a(a({},e.nextToken!==void 0&&{next_token:e.nextToken}),e.maxResults!==void 0&&{max_result:e.maxResults.toString()}),d;return new Gf.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:o,path:c,query:l,body:d})};et.serializeAws_restJson1ListAccountsCommand=Fee;var Uee=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),o=a({},Yf(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}),c=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/logout`,l;return new Gf.HttpRequest({protocol:r,hostname:n,port:i,method:"POST",headers:o,path:c,body:l})};et.serializeAws_restJson1LogoutCommand=Uee;var Bee=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Gee(e,t);let n={$metadata:Qt(e),roleCredentials:void 0},r=(0,Ee.expectNonNull)((0,Ee.expectObject)(await vi(e.body,t)),"body");return r.roleCredentials!==void 0&&r.roleCredentials!==null&&(n.roleCredentials=Xee(r.roleCredentials,t)),Promise.resolve(n)};et.deserializeAws_restJson1GetRoleCredentialsCommand=Bee;var Gee=async(e,t)=>{let n=g(a({},e),{body:await vi(e.body,t)}),r,i="UnknownError";switch(i=Jf(e,n.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await Kf(n,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await zv(n,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await Hf(n,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await Wf(n,t);default:let s=n.body;throw r=new Vf.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:Qt(e)}),(0,Ee.decorateServiceException)(r,s)}},$ee=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Vee(e,t);let n={$metadata:Qt(e),nextToken:void 0,roleList:void 0},r=(0,Ee.expectNonNull)((0,Ee.expectObject)(await vi(e.body,t)),"body");return r.nextToken!==void 0&&r.nextToken!==null&&(n.nextToken=(0,Ee.expectString)(r.nextToken)),r.roleList!==void 0&&r.roleList!==null&&(n.roleList=ete(r.roleList,t)),Promise.resolve(n)};et.deserializeAws_restJson1ListAccountRolesCommand=$ee;var Vee=async(e,t)=>{let n=g(a({},e),{body:await vi(e.body,t)}),r,i="UnknownError";switch(i=Jf(e,n.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await Kf(n,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await zv(n,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await Hf(n,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await Wf(n,t);default:let s=n.body;throw r=new Vf.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:Qt(e)}),(0,Ee.decorateServiceException)(r,s)}},Kee=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Hee(e,t);let n={$metadata:Qt(e),accountList:void 0,nextToken:void 0},r=(0,Ee.expectNonNull)((0,Ee.expectObject)(await vi(e.body,t)),"body");return r.accountList!==void 0&&r.accountList!==null&&(n.accountList=Qee(r.accountList,t)),r.nextToken!==void 0&&r.nextToken!==null&&(n.nextToken=(0,Ee.expectString)(r.nextToken)),Promise.resolve(n)};et.deserializeAws_restJson1ListAccountsCommand=Kee;var Hee=async(e,t)=>{let n=g(a({},e),{body:await vi(e.body,t)}),r,i="UnknownError";switch(i=Jf(e,n.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await Kf(n,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await zv(n,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await Hf(n,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await Wf(n,t);default:let s=n.body;throw r=new Vf.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:Qt(e)}),(0,Ee.decorateServiceException)(r,s)}},Wee=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Yee(e,t);let n={$metadata:Qt(e)};return await aD(e.body,t),Promise.resolve(n)};et.deserializeAws_restJson1LogoutCommand=Wee;var Yee=async(e,t)=>{let n=g(a({},e),{body:await vi(e.body,t)}),r,i="UnknownError";switch(i=Jf(e,n.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await Kf(n,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await Hf(n,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await Wf(n,t);default:let s=n.body;throw r=new Vf.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:Qt(e)}),(0,Ee.decorateServiceException)(r,s)}},Kf=async(e,t)=>{let n={},r=e.body;r.message!==void 0&&r.message!==null&&(n.message=(0,Ee.expectString)(r.message));let i=new $f.InvalidRequestException(a({$metadata:Qt(e)},n));return(0,Ee.decorateServiceException)(i,e.body)},zv=async(e,t)=>{let n={},r=e.body;r.message!==void 0&&r.message!==null&&(n.message=(0,Ee.expectString)(r.message));let i=new $f.ResourceNotFoundException(a({$metadata:Qt(e)},n));return(0,Ee.decorateServiceException)(i,e.body)},Hf=async(e,t)=>{let n={},r=e.body;r.message!==void 0&&r.message!==null&&(n.message=(0,Ee.expectString)(r.message));let i=new $f.TooManyRequestsException(a({$metadata:Qt(e)},n));return(0,Ee.decorateServiceException)(i,e.body)},Wf=async(e,t)=>{let n={},r=e.body;r.message!==void 0&&r.message!==null&&(n.message=(0,Ee.expectString)(r.message));let i=new $f.UnauthorizedException(a({$metadata:Qt(e)},n));return(0,Ee.decorateServiceException)(i,e.body)},Jee=(e,t)=>({accountId:(0,Ee.expectString)(e.accountId),accountName:(0,Ee.expectString)(e.accountName),emailAddress:(0,Ee.expectString)(e.emailAddress)}),Qee=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:Jee(r,t)),Xee=(e,t)=>({accessKeyId:(0,Ee.expectString)(e.accessKeyId),expiration:(0,Ee.expectLong)(e.expiration),secretAccessKey:(0,Ee.expectString)(e.secretAccessKey),sessionToken:(0,Ee.expectString)(e.sessionToken)}),Zee=(e,t)=>({accountId:(0,Ee.expectString)(e.accountId),roleName:(0,Ee.expectString)(e.roleName)}),ete=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:Zee(r,t)),Qt=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"]}},aD=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),tte=(e,t)=>aD(e,t).then(n=>t.utf8Encoder(n)),Yf=e=>e!=null&&e!==""&&(!Object.getOwnPropertyNames(e).includes("length")||e.length!=0)&&(!Object.getOwnPropertyNames(e).includes("size")||e.size!=0),vi=(e,t)=>tte(e,t).then(n=>n.length?JSON.parse(n):{}),Jf=(e,t)=>{let n=(s,o)=>Object.keys(s).find(c=>c.toLowerCase()===o.toLowerCase()),r=s=>{let o=s;return o.indexOf(":")>=0&&(o=o.split(":")[0]),o.indexOf("#")>=0&&(o=o.split("#")[1]),o},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 kv=m(Qf=>{"use strict";Object.defineProperty(Qf,"__esModule",{value:!0});Qf.GetRoleCredentialsCommand=void 0;var nte=$(),rte=q(),cD=Si(),lD=Ia(),jv=class extends rte.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,nte.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"SSOClient",commandName:"GetRoleCredentialsCommand",inputFilterSensitiveLog:cD.GetRoleCredentialsRequest.filterSensitiveLog,outputFilterSensitiveLog:cD.GetRoleCredentialsResponse.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,lD.serializeAws_restJson1GetRoleCredentialsCommand)(t,n)}deserialize(t,n){return(0,lD.deserializeAws_restJson1GetRoleCredentialsCommand)(t,n)}};Qf.GetRoleCredentialsCommand=jv});var Zf=m(Xf=>{"use strict";Object.defineProperty(Xf,"__esModule",{value:!0});Xf.ListAccountRolesCommand=void 0;var ite=$(),ste=q(),uD=Si(),dD=Ia(),Fv=class extends ste.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,ite.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"SSOClient",commandName:"ListAccountRolesCommand",inputFilterSensitiveLog:uD.ListAccountRolesRequest.filterSensitiveLog,outputFilterSensitiveLog:uD.ListAccountRolesResponse.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,dD.serializeAws_restJson1ListAccountRolesCommand)(t,n)}deserialize(t,n){return(0,dD.deserializeAws_restJson1ListAccountRolesCommand)(t,n)}};Xf.ListAccountRolesCommand=Fv});var tm=m(em=>{"use strict";Object.defineProperty(em,"__esModule",{value:!0});em.ListAccountsCommand=void 0;var ote=$(),ate=q(),fD=Si(),mD=Ia(),Uv=class extends ate.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,ote.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"SSOClient",commandName:"ListAccountsCommand",inputFilterSensitiveLog:fD.ListAccountsRequest.filterSensitiveLog,outputFilterSensitiveLog:fD.ListAccountsResponse.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,mD.serializeAws_restJson1ListAccountsCommand)(t,n)}deserialize(t,n){return(0,mD.deserializeAws_restJson1ListAccountsCommand)(t,n)}};em.ListAccountsCommand=Uv});var Gv=m(nm=>{"use strict";Object.defineProperty(nm,"__esModule",{value:!0});nm.LogoutCommand=void 0;var cte=$(),lte=q(),ute=Si(),pD=Ia(),Bv=class extends lte.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,cte.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"SSOClient",commandName:"LogoutCommand",inputFilterSensitiveLog:ute.LogoutRequest.filterSensitiveLog,outputFilterSensitiveLog:f=>f},{requestHandler:d}=n;return i.resolve(f=>d.handle(f.request,r||{}),l)}serialize(t,n){return(0,pD.serializeAws_restJson1LogoutCommand)(t,n)}deserialize(t,n){return(0,pD.deserializeAws_restJson1LogoutCommand)(t,n)}};nm.LogoutCommand=Bv});var hD=m((vwe,dte)=>{dte.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 rm=m(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.fromString=cs.fromArrayBuffer=void 0;var fte=jS(),$v=require("buffer"),mte=(e,t=0,n=e.byteLength-t)=>{if(!(0,fte.isArrayBuffer)(e))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`);return $v.Buffer.from(e,t,n)};cs.fromArrayBuffer=mte;var pte=(e,t)=>{if(typeof e!="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`);return t?$v.Buffer.from(e,t):$v.Buffer.from(e)};cs.fromString=pte});var sm=m(im=>{"use strict";Object.defineProperty(im,"__esModule",{value:!0});im.Hash=void 0;var Vv=rm(),hte=require("buffer"),_D=require("crypto"),Kv=class{constructor(t,n){this.hash=n?(0,_D.createHmac)(t,yD(n)):(0,_D.createHash)(t)}update(t,n){this.hash.update(yD(t,n))}digest(){return Promise.resolve(this.hash.digest())}};im.Hash=Kv;function yD(e,t){return hte.Buffer.isBuffer(e)?e:typeof e=="string"?(0,Vv.fromString)(e,t):ArrayBuffer.isView(e)?(0,Vv.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength):(0,Vv.fromArrayBuffer)(e)}});var Wv=m(om=>{"use strict";Object.defineProperty(om,"__esModule",{value:!0});om.buildQueryString=void 0;var Hv=MS();function _te(e){let t=[];for(let n of Object.keys(e).sort()){let r=e[n];if(n=(0,Hv.escapeUri)(n),Array.isArray(r))for(let i=0,s=r.length;i<s;i++)t.push(`${n}=${(0,Hv.escapeUri)(r[i])}`);else{let i=n;(r||typeof r=="string")&&(i+=`=${(0,Hv.escapeUri)(r)}`),t.push(i)}}return t.join("&")}om.buildQueryString=_te});var gD=m(am=>{"use strict";Object.defineProperty(am,"__esModule",{value:!0});am.NODEJS_TIMEOUT_ERROR_CODES=void 0;am.NODEJS_TIMEOUT_ERROR_CODES=["ECONNRESET","EPIPE","ETIMEDOUT"]});var Yv=m(cm=>{"use strict";Object.defineProperty(cm,"__esModule",{value:!0});cm.getTransformedHeaders=void 0;var yte=e=>{let t={};for(let n of Object.keys(e)){let r=e[n];t[n]=Array.isArray(r)?r.join(","):r}return t};cm.getTransformedHeaders=yte});var SD=m(lm=>{"use strict";Object.defineProperty(lm,"__esModule",{value:!0});lm.setConnectionTimeout=void 0;var gte=(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)})}})};lm.setConnectionTimeout=gte});var vD=m(um=>{"use strict";Object.defineProperty(um,"__esModule",{value:!0});um.setSocketTimeout=void 0;var Ste=(e,t,n=0)=>{e.setTimeout(n,()=>{e.destroy(),t(Object.assign(new Error(`Connection timed out after ${n} ms`),{name:"TimeoutError"}))})};um.setSocketTimeout=Ste});var Jv=m(dm=>{"use strict";Object.defineProperty(dm,"__esModule",{value:!0});dm.writeRequestBody=void 0;var vte=require("stream");function wte(e,t){(t.headers.Expect||t.headers.expect)==="100-continue"?e.on("continue",()=>{wD(e,t.body)}):wD(e,t.body)}dm.writeRequestBody=wte;function wD(e,t){t instanceof vte.Readable?t.pipe(e):t?e.end(Buffer.from(t)):e.end()}});var AD=m(fm=>{"use strict";Object.defineProperty(fm,"__esModule",{value:!0});fm.NodeHttpHandler=void 0;var bte=qt(),Ete=Wv(),bD=require("http"),ED=require("https"),Ate=gD(),Tte=Yv(),Cte=SD(),xte=vD(),Ite=Jv(),Qv=class{constructor(t){this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((n,r)=>{typeof t=="function"?t().then(i=>{n(this.resolveDefaultConfig(i))}).catch(r):n(this.resolveDefaultConfig(t))})}resolveDefaultConfig(t){let{connectionTimeout:n,socketTimeout:r,httpAgent:i,httpsAgent:s}=t||{},o=!0,c=50;return{connectionTimeout:n,socketTimeout:r,httpAgent:i||new bD.Agent({keepAlive:o,maxSockets:c}),httpsAgent:s||new ED.Agent({keepAlive:o,maxSockets:c})}}destroy(){var t,n,r,i;(n=(t=this.config)===null||t===void 0?void 0:t.httpAgent)===null||n===void 0||n.destroy(),(i=(r=this.config)===null||r===void 0?void 0:r.httpsAgent)===null||i===void 0||i.destroy()}async handle(t,{abortSignal:n}={}){return this.config||(this.config=await this.configProvider),new Promise((r,i)=>{if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(n!=null&&n.aborted){let f=new Error("Request aborted");f.name="AbortError",i(f);return}let s=t.protocol==="https:",o=(0,Ete.buildQueryString)(t.query||{}),c={headers:t.headers,host:t.hostname,method:t.method,path:o?`${t.path}?${o}`:t.path,port:t.port,agent:s?this.config.httpsAgent:this.config.httpAgent},d=(s?ED.request:bD.request)(c,f=>{let h=new bte.HttpResponse({statusCode:f.statusCode||-1,headers:(0,Tte.getTransformedHeaders)(f.headers),body:f});r({response:h})});d.on("error",f=>{Ate.NODEJS_TIMEOUT_ERROR_CODES.includes(f.code)?i(Object.assign(f,{name:"TimeoutError"})):i(f)}),(0,Cte.setConnectionTimeout)(d,i,this.config.connectionTimeout),(0,xte.setSocketTimeout)(d,i,this.config.socketTimeout),n&&(n.onabort=()=>{d.abort();let f=new Error("Request aborted");f.name="AbortError",i(f)}),(0,Ite.writeRequestBody)(d,t)})}};fm.NodeHttpHandler=Qv});var TD=m(mm=>{"use strict";Object.defineProperty(mm,"__esModule",{value:!0});mm.NodeHttp2Handler=void 0;var Rte=qt(),Dte=Wv(),Xv=require("http2"),Nte=Yv(),Pte=Jv(),Zv=class{constructor(t){this.metadata={handlerProtocol:"h2"},this.configProvider=new Promise((n,r)=>{typeof t=="function"?t().then(i=>{n(i||{})}).catch(r):n(t||{})}),this.sessionCache=new Map}destroy(){for(let t of this.sessionCache.values())t.forEach(n=>this.destroySession(n));this.sessionCache.clear()}async handle(t,{abortSignal:n}={}){this.config||(this.config=await this.configProvider);let{requestTimeout:r,disableConcurrentStreams:i}=this.config;return new Promise((s,o)=>{let c=!1;if(n!=null&&n.aborted){c=!0;let k=new Error("Request aborted");k.name="AbortError",o(k);return}let{hostname:l,method:d,port:f,protocol:h,path:_,query:S}=t,v=`${h}//${l}${f?`:${f}`:""}`,y=this.getSession(v,i||!1),R=k=>{i&&this.destroySession(y),c=!0,o(k)},P=(0,Dte.buildQueryString)(S||{}),C=y.request(g(a({},t.headers),{[Xv.constants.HTTP2_HEADER_PATH]:P?`${_}?${P}`:_,[Xv.constants.HTTP2_HEADER_METHOD]:d}));y.ref(),C.on("response",k=>{let pe=new Rte.HttpResponse({statusCode:k[":status"]||-1,headers:(0,Nte.getTransformedHeaders)(k),body:C});c=!0,s({response:pe}),i&&(y.close(),this.deleteSessionFromCache(v,y))}),r&&C.setTimeout(r,()=>{C.close();let k=new Error(`Stream timed out because of no activity for ${r} ms`);k.name="TimeoutError",R(k)}),n&&(n.onabort=()=>{C.close();let k=new Error("Request aborted");k.name="AbortError",R(k)}),C.on("frameError",(k,pe,Ot)=>{R(new Error(`Frame type id ${k} in stream id ${Ot} has failed with code ${pe}.`))}),C.on("error",R),C.on("aborted",()=>{R(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${C.rstCode}.`))}),C.on("close",()=>{y.unref(),i&&y.destroy(),c||R(new Error("Unexpected error: http2 request did not get a response"))}),(0,Pte.writeRequestBody)(C,t)})}getSession(t,n){var r;let i=this.sessionCache,s=i.get(t)||[];if(s.length>0&&!n)return s[0];let o=(0,Xv.connect)(t);o.unref();let c=()=>{this.destroySession(o),this.deleteSessionFromCache(t,o)};return o.on("goaway",c),o.on("error",c),o.on("frameError",c),o.on("close",()=>this.deleteSessionFromCache(t,o)),!((r=this.config)===null||r===void 0)&&r.sessionTimeout&&o.setTimeout(this.config.sessionTimeout,c),s.push(o),i.set(t,s),o}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))}};mm.NodeHttp2Handler=Zv});var CD=m(pm=>{"use strict";Object.defineProperty(pm,"__esModule",{value:!0});pm.Collector=void 0;var Ote=require("stream"),ew=class extends Ote.Writable{constructor(){super(...arguments),this.bufferedBytes=[]}_write(t,n,r){this.bufferedBytes.push(t),r()}};pm.Collector=ew});var xD=m(hm=>{"use strict";Object.defineProperty(hm,"__esModule",{value:!0});hm.streamCollector=void 0;var Lte=CD(),qte=e=>new Promise((t,n)=>{let r=new Lte.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)})});hm.streamCollector=qte});var _m=m(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});var tw=Y();tw.__exportStar(AD(),Ra);tw.__exportStar(TD(),Ra);tw.__exportStar(xD(),Ra)});var ym=m(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});ls.toBase64=ls.fromBase64=void 0;var ID=rm(),Mte=/^[A-Za-z0-9+/]*={0,2}$/;function zte(e){if(e.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!Mte.exec(e))throw new TypeError("Invalid base64 string.");let t=(0,ID.fromString)(e,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}ls.fromBase64=zte;function jte(e){return(0,ID.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString("base64")}ls.toBase64=jte});var DD=m(gm=>{"use strict";Object.defineProperty(gm,"__esModule",{value:!0});gm.calculateBodyLength=void 0;var RD=require("fs"),kte=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,RD.lstatSync)(e.path).size;if(typeof e.fd=="number")return(0,RD.fstatSync)(e.fd).size;throw new Error(`Body Length computation failed for ${e}`)};gm.calculateBodyLength=kte});var Sm=m(nw=>{"use strict";Object.defineProperty(nw,"__esModule",{value:!0});var Fte=Y();Fte.__exportStar(DD(),nw)});var ND=m((vm,rw)=>{"use strict";Object.defineProperty(vm,"__esModule",{value:!0});vm.isCrtAvailable=void 0;var Ute=()=>{try{return typeof require=="function"&&typeof rw<"u"&&rw.require&&require("aws-crt")?["md/crt-avail"]:null}catch{return null}};vm.isCrtAvailable=Ute});var wm=m(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.defaultUserAgent=Ln.UA_APP_ID_INI_NAME=Ln.UA_APP_ID_ENV_NAME=void 0;var Bte=gi(),PD=require("os"),iw=require("process"),Gte=ND();Ln.UA_APP_ID_ENV_NAME="AWS_SDK_UA_APP_ID";Ln.UA_APP_ID_INI_NAME="sdk-ua-app-id";var $te=({serviceId:e,clientVersion:t})=>{let n=[["aws-sdk-js",t],[`os/${(0,PD.platform)()}`,(0,PD.release)()],["lang/js"],["md/nodejs",`${iw.versions.node}`]],r=(0,Gte.isCrtAvailable)();r&&n.push(r),e&&n.push([`api/${e}`,t]),iw.env.AWS_EXECUTION_ENV&&n.push([`exec-env/${iw.env.AWS_EXECUTION_ENV}`]);let i=(0,Bte.loadConfig)({environmentVariableSelector:o=>o[Ln.UA_APP_ID_ENV_NAME],configFileSelector:o=>o[Ln.UA_APP_ID_INI_NAME],default:void 0})(),s;return async()=>{if(!s){let o=await i;s=o?[...n,[`app/${o}`]]:[...n]}return s}};Ln.defaultUserAgent=$te});var bm=m(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});us.toUtf8=us.fromUtf8=void 0;var OD=rm(),Vte=e=>{let t=(0,OD.fromString)(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)};us.fromUtf8=Vte;var Kte=e=>(0,OD.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString("utf8");us.toUtf8=Kte});var LD=m(Em=>{"use strict";Object.defineProperty(Em,"__esModule",{value:!0});Em.defaultRegionInfoProvider=void 0;var Hte=tn(),Wte={"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"}},Yte={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"]}]}},Jte=async(e,t)=>(0,Hte.getRegionInfo)(e,g(a({},t),{signingService:"awsssoportal",regionHash:Wte,partitionHash:Yte}));Em.defaultRegionInfoProvider=Jte});var qD=m(Am=>{"use strict";Object.defineProperty(Am,"__esModule",{value:!0});Am.getRuntimeConfig=void 0;var Qte=va(),Xte=LD(),Zte=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:Xte.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:Qte.parseUrl}};Am.getRuntimeConfig=Zte});var MD=m(At=>{"use strict";Object.defineProperty(At,"__esModule",{value:!0});At.IMDS_REGION_PATH=At.DEFAULTS_MODE_OPTIONS=At.ENV_IMDS_DISABLED=At.AWS_DEFAULT_REGION_ENV=At.AWS_REGION_ENV=At.AWS_EXECUTION_ENV=void 0;At.AWS_EXECUTION_ENV="AWS_EXECUTION_ENV";At.AWS_REGION_ENV="AWS_REGION";At.AWS_DEFAULT_REGION_ENV="AWS_DEFAULT_REGION";At.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";At.DEFAULTS_MODE_OPTIONS=["in-region","cross-region","mobile","standard","legacy"];At.IMDS_REGION_PATH="/latest/meta-data/placement/region"});var zD=m(Tm=>{"use strict";Object.defineProperty(Tm,"__esModule",{value:!0});Tm.NODE_DEFAULTS_MODE_CONFIG_OPTIONS=void 0;var ene="AWS_DEFAULTS_MODE",tne="defaults_mode";Tm.NODE_DEFAULTS_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[ene],configFileSelector:e=>e[tne],default:"legacy"}});var FD=m(Cm=>{"use strict";Object.defineProperty(Cm,"__esModule",{value:!0});Cm.resolveDefaultsModeConfig=void 0;var nne=tn(),jD=zf(),kD=gi(),rne=ke(),qr=MD(),ine=zD(),sne=({region:e=(0,kD.loadConfig)(nne.NODE_REGION_CONFIG_OPTIONS),defaultsMode:t=(0,kD.loadConfig)(ine.NODE_DEFAULTS_MODE_CONFIG_OPTIONS)}={})=>(0,rne.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 ${qr.DEFAULTS_MODE_OPTIONS.join(", ")}, got ${n}`)}});Cm.resolveDefaultsModeConfig=sne;var one=async e=>{if(e){let t=typeof e=="function"?await e():e,n=await ane();return n?t===n?"in-region":"cross-region":"standard"}return"standard"},ane=async()=>{var e;if(process.env[qr.AWS_EXECUTION_ENV]&&(process.env[qr.AWS_REGION_ENV]||process.env[qr.AWS_DEFAULT_REGION_ENV]))return(e=process.env[qr.AWS_REGION_ENV])!==null&&e!==void 0?e:process.env[qr.AWS_DEFAULT_REGION_ENV];if(!process.env[qr.ENV_IMDS_DISABLED])try{let t=await(0,jD.getInstanceMetadataEndpoint)();return(await(0,jD.httpRequest)(g(a({},t),{path:qr.IMDS_REGION_PATH}))).toString()}catch{}}});var xm=m(sw=>{"use strict";Object.defineProperty(sw,"__esModule",{value:!0});var cne=Y();cne.__exportStar(FD(),sw)});var $D=m(Rm=>{"use strict";Object.defineProperty(Rm,"__esModule",{value:!0});Rm.getRuntimeConfig=void 0;var lne=Y(),une=lne.__importDefault(hD()),Im=tn(),dne=sm(),ow=ai(),Da=gi(),UD=_m(),BD=ym(),fne=Sm(),mne=wm(),GD=bm(),pne=qD(),hne=q(),_ne=xm(),yne=e=>{var t,n,r,i,s,o,c,l,d,f,h,_,S,v;let y=(0,_ne.resolveDefaultsModeConfig)(e),R=()=>y().then(hne.loadConfigsForDefaultMode),P=(0,pne.getRuntimeConfig)(e);return g(a(a({},P),e),{runtime:"node",defaultsMode:y,base64Decoder:(t=e==null?void 0:e.base64Decoder)!==null&&t!==void 0?t:BD.fromBase64,base64Encoder:(n=e==null?void 0:e.base64Encoder)!==null&&n!==void 0?n:BD.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:(0,mne.defaultUserAgent)({serviceId:P.serviceId,clientVersion:une.default.version}),maxAttempts:(s=e==null?void 0:e.maxAttempts)!==null&&s!==void 0?s:(0,Da.loadConfig)(ow.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(o=e==null?void 0:e.region)!==null&&o!==void 0?o:(0,Da.loadConfig)(Im.NODE_REGION_CONFIG_OPTIONS,Im.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(c=e==null?void 0:e.requestHandler)!==null&&c!==void 0?c:new UD.NodeHttpHandler(R),retryMode:(l=e==null?void 0:e.retryMode)!==null&&l!==void 0?l:(0,Da.loadConfig)(g(a({},ow.NODE_RETRY_MODE_CONFIG_OPTIONS),{default:async()=>(await R()).retryMode||ow.DEFAULT_RETRY_MODE})),sha256:(d=e==null?void 0:e.sha256)!==null&&d!==void 0?d:dne.Hash.bind(null,"sha256"),streamCollector:(f=e==null?void 0:e.streamCollector)!==null&&f!==void 0?f:UD.streamCollector,useDualstackEndpoint:(h=e==null?void 0:e.useDualstackEndpoint)!==null&&h!==void 0?h:(0,Da.loadConfig)(Im.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(_=e==null?void 0:e.useFipsEndpoint)!==null&&_!==void 0?_:(0,Da.loadConfig)(Im.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:(S=e==null?void 0:e.utf8Decoder)!==null&&S!==void 0?S:GD.fromUtf8,utf8Encoder:(v=e==null?void 0:e.utf8Encoder)!==null&&v!==void 0?v:GD.toUtf8})};Rm.getRuntimeConfig=yne});var Na=m(Dm=>{"use strict";Object.defineProperty(Dm,"__esModule",{value:!0});Dm.SSOClient=void 0;var VD=tn(),gne=Vu(),KD=Zu(),Sne=ed(),HD=ai(),WD=Fd(),vne=q(),wne=$D(),aw=class extends vne.Client{constructor(t){let n=(0,wne.getRuntimeConfig)(t),r=(0,VD.resolveRegionConfig)(n),i=(0,VD.resolveEndpointsConfig)(r),s=(0,HD.resolveRetryConfig)(i),o=(0,KD.resolveHostHeaderConfig)(s),c=(0,WD.resolveUserAgentConfig)(o);super(c),this.config=c,this.middlewareStack.use((0,HD.getRetryPlugin)(this.config)),this.middlewareStack.use((0,gne.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,KD.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,Sne.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,WD.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};Dm.SSOClient=aw});var Pm=m(Nm=>{"use strict";Object.defineProperty(Nm,"__esModule",{value:!0});Nm.SSO=void 0;var bne=kv(),Ene=Zf(),Ane=tm(),Tne=Gv(),Cne=Na(),cw=class extends Cne.SSOClient{getRoleCredentials(t,n,r){let i=new bne.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 Ene.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 Ane.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)}};Nm.SSO=cw});var YD=m(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});var Om=Y();Om.__exportStar(kv(),ds);Om.__exportStar(Zf(),ds);Om.__exportStar(tm(),ds);Om.__exportStar(Gv(),ds)});var JD=m(lw=>{"use strict";Object.defineProperty(lw,"__esModule",{value:!0});var xne=Y();xne.__exportStar(Si(),lw)});var XD=m(QD=>{"use strict";Object.defineProperty(QD,"__esModule",{value:!0})});var ZD=m(Lm=>{"use strict";Object.defineProperty(Lm,"__esModule",{value:!0});Lm.paginateListAccountRoles=void 0;var Ine=Zf(),Rne=Pm(),Dne=Na(),Nne=async(e,t,...n)=>await e.send(new Ine.ListAccountRolesCommand(t),...n),Pne=async(e,t,...n)=>await e.listAccountRoles(t,...n);async function*One(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 Rne.SSO)s=await Pne(e.client,t,...n);else if(e.client instanceof Dne.SSOClient)s=await Nne(e.client,t,...n);else throw new Error("Invalid client, expected SSO | SSOClient");yield s;let o=r;r=s.nextToken,i=!!(r&&(!e.stopOnSameToken||r!==o))}return void 0}Lm.paginateListAccountRoles=One});var eN=m(qm=>{"use strict";Object.defineProperty(qm,"__esModule",{value:!0});qm.paginateListAccounts=void 0;var Lne=tm(),qne=Pm(),Mne=Na(),zne=async(e,t,...n)=>await e.send(new Lne.ListAccountsCommand(t),...n),jne=async(e,t,...n)=>await e.listAccounts(t,...n);async function*kne(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 qne.SSO)s=await jne(e.client,t,...n);else if(e.client instanceof Mne.SSOClient)s=await zne(e.client,t,...n);else throw new Error("Invalid client, expected SSO | SSOClient");yield s;let o=r;r=s.nextToken,i=!!(r&&(!e.stopOnSameToken||r!==o))}return void 0}qm.paginateListAccounts=kne});var tN=m(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});var uw=Y();uw.__exportStar(XD(),Pa);uw.__exportStar(ZD(),Pa);uw.__exportStar(eN(),Pa)});var nN=m(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.SSOServiceException=void 0;var Oa=Y();Oa.__exportStar(Pm(),Zn);Oa.__exportStar(Na(),Zn);Oa.__exportStar(YD(),Zn);Oa.__exportStar(JD(),Zn);Oa.__exportStar(tN(),Zn);var Fne=Uf();Object.defineProperty(Zn,"SSOServiceException",{enumerable:!0,get:function(){return Fne.SSOServiceException}})});var iN=m(jm=>{"use strict";Object.defineProperty(jm,"__esModule",{value:!0});jm.resolveSSOCredentials=void 0;var rN=nN(),Mm=ke(),Une=Lr(),Bne=15*60*1e3,zm=!1,Gne=async({ssoStartUrl:e,ssoAccountId:t,ssoRegion:n,ssoRoleName:r,ssoClient:i})=>{let s,o="To refresh this SSO session run aws sso login with the corresponding profile.";try{s=await(0,Une.getSSOTokenFromFile)(e)}catch{throw new Mm.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${o}`,zm)}if(new Date(s.expiresAt).getTime()-Date.now()<=Bne)throw new Mm.CredentialsProviderError(`The SSO session associated with this profile has expired. ${o}`,zm);let{accessToken:c}=s,l=i||new rN.SSOClient({region:n}),d;try{d=await l.send(new rN.GetRoleCredentialsCommand({accountId:t,roleName:r,accessToken:c}))}catch(v){throw Mm.CredentialsProviderError.from(v,zm)}let{roleCredentials:{accessKeyId:f,secretAccessKey:h,sessionToken:_,expiration:S}={}}=d;if(!f||!h||!_||!S)throw new Mm.CredentialsProviderError("SSO returns an invalid temporary credential.",zm);return{accessKeyId:f,secretAccessKey:h,sessionToken:_,expiration:new Date(S)}};jm.resolveSSOCredentials=Gne});var dw=m(km=>{"use strict";Object.defineProperty(km,"__esModule",{value:!0});km.validateSsoProfile=void 0;var $ne=ke(),Vne=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 $ne.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};km.validateSsoProfile=Vne});var cN=m(Fm=>{"use strict";Object.defineProperty(Fm,"__esModule",{value:!0});Fm.fromSSO=void 0;var sN=ke(),oN=Lr(),Kne=Mv(),aN=iN(),Hne=dw(),Wne=(e={})=>async()=>{let{ssoStartUrl:t,ssoAccountId:n,ssoRegion:r,ssoRoleName:i,ssoClient:s}=e;if(!t&&!n&&!r&&!i){let o=await(0,oN.parseKnownFiles)(e),c=(0,oN.getProfileName)(e),l=o[c];if(!(0,Kne.isSsoProfile)(l))throw new sN.CredentialsProviderError(`Profile ${c} is not configured with SSO credentials.`);let{sso_start_url:d,sso_account_id:f,sso_region:h,sso_role_name:_}=(0,Hne.validateSsoProfile)(l);return(0,aN.resolveSSOCredentials)({ssoStartUrl:d,ssoAccountId:f,ssoRegion:h,ssoRoleName:_,ssoClient:s})}else{if(!t||!n||!r||!i)throw new sN.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"');return(0,aN.resolveSSOCredentials)({ssoStartUrl:t,ssoAccountId:n,ssoRegion:r,ssoRoleName:i,ssoClient:s})}};Fm.fromSSO=Wne});var uN=m(lN=>{"use strict";Object.defineProperty(lN,"__esModule",{value:!0})});var Bm=m(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});var Um=Y();Um.__exportStar(cN(),fs);Um.__exportStar(Mv(),fs);Um.__exportStar(uN(),fs);Um.__exportStar(dw(),fs)});var fN=m(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});ms.resolveSsoCredentials=ms.isSsoProfile=void 0;var dN=Bm(),Yne=Bm();Object.defineProperty(ms,"isSsoProfile",{enumerable:!0,get:function(){return Yne.isSsoProfile}});var Jne=e=>{let{sso_start_url:t,sso_account_id:n,sso_region:r,sso_role_name:i}=(0,dN.validateSsoProfile)(e);return(0,dN.fromSSO)({ssoStartUrl:t,ssoAccountId:n,ssoRegion:r,ssoRoleName:i})()};ms.resolveSsoCredentials=Jne});var mN=m(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});ps.resolveStaticCredentials=ps.isStaticCredsProfile=void 0;var Qne=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;ps.isStaticCredsProfile=Qne;var Xne=e=>Promise.resolve({accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token});ps.resolveStaticCredentials=Xne});var fw=m(Gm=>{"use strict";Object.defineProperty(Gm,"__esModule",{value:!0});Gm.fromWebToken=void 0;var Zne=ke(),ere=e=>()=>{let{roleArn:t,roleSessionName:n,webIdentityToken:r,providerId:i,policyArns:s,policy:o,durationSeconds:c,roleAssumerWithWebIdentity:l}=e;if(!l)throw new Zne.CredentialsProviderError(`Role Arn '${t}' needs to be assumed with web identity, but no role assumption callback was provided.`,!1);return l({RoleArn:t,RoleSessionName:n??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:r,ProviderId:i,PolicyArns:s,Policy:o,DurationSeconds:c})};Gm.fromWebToken=ere});var pN=m($m=>{"use strict";Object.defineProperty($m,"__esModule",{value:!0});$m.fromTokenFile=void 0;var tre=ke(),nre=require("fs"),rre=fw(),ire="AWS_WEB_IDENTITY_TOKEN_FILE",sre="AWS_ROLE_ARN",ore="AWS_ROLE_SESSION_NAME",are=(e={})=>async()=>cre(e);$m.fromTokenFile=are;var cre=e=>{var t,n,r;let i=(t=e==null?void 0:e.webIdentityTokenFile)!==null&&t!==void 0?t:process.env[ire],s=(n=e==null?void 0:e.roleArn)!==null&&n!==void 0?n:process.env[sre],o=(r=e==null?void 0:e.roleSessionName)!==null&&r!==void 0?r:process.env[ore];if(!i||!s)throw new tre.CredentialsProviderError("Web identity configuration not specified");return(0,rre.fromWebToken)(g(a({},e),{webIdentityToken:(0,nre.readFileSync)(i,{encoding:"ascii"}),roleArn:s,roleSessionName:o}))()}});var mw=m(Vm=>{"use strict";Object.defineProperty(Vm,"__esModule",{value:!0});var hN=Y();hN.__exportStar(pN(),Vm);hN.__exportStar(fw(),Vm)});var _N=m(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});hs.resolveWebIdentityCredentials=hs.isWebIdentityProfile=void 0;var lre=mw(),ure=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;hs.isWebIdentityProfile=ure;var dre=async(e,t)=>(0,lre.fromTokenFile)({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:t.roleAssumerWithWebIdentity})();hs.resolveWebIdentityCredentials=dre});var qv=m(Hm=>{"use strict";Object.defineProperty(Hm,"__esModule",{value:!0});Hm.resolveProfileData=void 0;var fre=ke(),yN=sD(),gN=fN(),Km=mN(),SN=_N(),mre=async(e,t,n,r={})=>{let i=t[e];if(Object.keys(r).length>0&&(0,Km.isStaticCredsProfile)(i))return(0,Km.resolveStaticCredentials)(i);if((0,yN.isAssumeRoleProfile)(i))return(0,yN.resolveAssumeRoleCredentials)(e,t,n,r);if((0,Km.isStaticCredsProfile)(i))return(0,Km.resolveStaticCredentials)(i);if((0,SN.isWebIdentityProfile)(i))return(0,SN.resolveWebIdentityCredentials)(i,n);if((0,gN.isSsoProfile)(i))return(0,gN.resolveSsoCredentials)(i);throw new fre.CredentialsProviderError(`Profile ${e} could not be found or parsed in shared credentials file.`)};Hm.resolveProfileData=mre});var wN=m(Wm=>{"use strict";Object.defineProperty(Wm,"__esModule",{value:!0});Wm.fromIni=void 0;var vN=Lr(),pre=qv(),hre=(e={})=>async()=>{let t=await(0,vN.parseKnownFiles)(e);return(0,pre.resolveProfileData)((0,vN.getProfileName)(e),t,e)};Wm.fromIni=hre});var bN=m(pw=>{"use strict";Object.defineProperty(pw,"__esModule",{value:!0});var _re=Y();_re.__exportStar(wN(),pw)});var EN=m(Ym=>{"use strict";Object.defineProperty(Ym,"__esModule",{value:!0});Ym.getValidatedProcessCredentials=void 0;var yre=(e,t)=>{if(t.Version!==1)throw Error(`Profile ${e} credential_process did not return Version 1.`);if(t.AccessKeyId===void 0||t.SecretAccessKey===void 0)throw Error(`Profile ${e} credential_process returned invalid credentials.`);if(t.Expiration){let n=new Date;if(new Date(t.Expiration)<n)throw Error(`Profile ${e} credential_process returned expired credentials.`)}return a(a({accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey},t.SessionToken&&{sessionToken:t.SessionToken}),t.Expiration&&{expiration:new Date(t.Expiration)})};Ym.getValidatedProcessCredentials=yre});var AN=m(Jm=>{"use strict";Object.defineProperty(Jm,"__esModule",{value:!0});Jm.resolveProcessCredentials=void 0;var hw=ke(),gre=require("child_process"),Sre=require("util"),vre=EN(),wre=async(e,t)=>{let n=t[e];if(t[e]){let r=n.credential_process;if(r!==void 0){let i=(0,Sre.promisify)(gre.exec);try{let{stdout:s}=await i(r),o;try{o=JSON.parse(s.trim())}catch{throw Error(`Profile ${e} credential_process returned invalid JSON.`)}return(0,vre.getValidatedProcessCredentials)(e,o)}catch(s){throw new hw.CredentialsProviderError(s.message)}}else throw new hw.CredentialsProviderError(`Profile ${e} did not contain credential_process.`)}else throw new hw.CredentialsProviderError(`Profile ${e} could not be found in shared credentials file.`)};Jm.resolveProcessCredentials=wre});var CN=m(Qm=>{"use strict";Object.defineProperty(Qm,"__esModule",{value:!0});Qm.fromProcess=void 0;var TN=Lr(),bre=AN(),Ere=(e={})=>async()=>{let t=await(0,TN.parseKnownFiles)(e);return(0,bre.resolveProcessCredentials)((0,TN.getProfileName)(e),t)};Qm.fromProcess=Ere});var xN=m(_w=>{"use strict";Object.defineProperty(_w,"__esModule",{value:!0});var Are=Y();Are.__exportStar(CN(),_w)});var IN=m(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});wi.remoteProvider=wi.ENV_IMDS_DISABLED=void 0;var Xm=zf(),Tre=ke();wi.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";var Cre=e=>process.env[Xm.ENV_CMDS_RELATIVE_URI]||process.env[Xm.ENV_CMDS_FULL_URI]?(0,Xm.fromContainerMetadata)(e):process.env[wi.ENV_IMDS_DISABLED]?async()=>{throw new Tre.CredentialsProviderError("EC2 Instance Metadata Service access disabled")}:(0,Xm.fromInstanceMetadata)(e);wi.remoteProvider=Cre});var RN=m(Zm=>{"use strict";Object.defineProperty(Zm,"__esModule",{value:!0});Zm.defaultProvider=void 0;var xre=bv(),Ire=bN(),Rre=xN(),Dre=Bm(),Nre=mw(),yw=ke(),Pre=Lr(),Ore=IN(),Lre=(e={})=>(0,yw.memoize)((0,yw.chain)(...e.profile||process.env[Pre.ENV_PROFILE]?[]:[(0,xre.fromEnv)()],(0,Dre.fromSSO)(e),(0,Ire.fromIni)(e),(0,Rre.fromProcess)(e),(0,Nre.fromTokenFile)(e),(0,Ore.remoteProvider)(e),async()=>{throw new yw.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);Zm.defaultProvider=Lre});var Sw=m(gw=>{"use strict";Object.defineProperty(gw,"__esModule",{value:!0});var qre=Y();qre.__exportStar(RN(),gw)});var DN=m(ep=>{"use strict";Object.defineProperty(ep,"__esModule",{value:!0});ep.defaultRegionInfoProvider=void 0;var Mre=tn(),zre={"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"]}]}},jre={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"]}]}},kre=async(e,t)=>(0,Mre.getRegionInfo)(e,g(a({},t),{signingService:"sts",regionHash:zre,partitionHash:jre}));ep.defaultRegionInfoProvider=kre});var NN=m(tp=>{"use strict";Object.defineProperty(tp,"__esModule",{value:!0});tp.getRuntimeConfig=void 0;var Fre=va(),Ure=DN(),Bre=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:Ure.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:Fre.parseUrl}};tp.getRuntimeConfig=Bre});var qN=m(rp=>{"use strict";Object.defineProperty(rp,"__esModule",{value:!0});rp.getRuntimeConfig=void 0;var Gre=Y(),$re=Gre.__importDefault(_R()),Vre=vv(),np=tn(),Kre=Sw(),Hre=sm(),vw=ai(),La=gi(),PN=_m(),ON=ym(),Wre=Sm(),Yre=wm(),LN=bm(),Jre=NN(),Qre=q(),Xre=xm(),Zre=e=>{var t,n,r,i,s,o,c,l,d,f,h,_,S,v,y;let R=(0,Xre.resolveDefaultsModeConfig)(e),P=()=>R().then(Qre.loadConfigsForDefaultMode),C=(0,Jre.getRuntimeConfig)(e);return g(a(a({},C),e),{runtime:"node",defaultsMode:R,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:Wre.calculateBodyLength,credentialDefaultProvider:(i=e==null?void 0:e.credentialDefaultProvider)!==null&&i!==void 0?i:(0,Vre.decorateDefaultCredentialProvider)(Kre.defaultProvider),defaultUserAgentProvider:(s=e==null?void 0:e.defaultUserAgentProvider)!==null&&s!==void 0?s:(0,Yre.defaultUserAgent)({serviceId:C.serviceId,clientVersion:$re.default.version}),maxAttempts:(o=e==null?void 0:e.maxAttempts)!==null&&o!==void 0?o:(0,La.loadConfig)(vw.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(c=e==null?void 0:e.region)!==null&&c!==void 0?c:(0,La.loadConfig)(np.NODE_REGION_CONFIG_OPTIONS,np.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(l=e==null?void 0:e.requestHandler)!==null&&l!==void 0?l:new PN.NodeHttpHandler(P),retryMode:(d=e==null?void 0:e.retryMode)!==null&&d!==void 0?d:(0,La.loadConfig)(g(a({},vw.NODE_RETRY_MODE_CONFIG_OPTIONS),{default:async()=>(await P()).retryMode||vw.DEFAULT_RETRY_MODE})),sha256:(f=e==null?void 0:e.sha256)!==null&&f!==void 0?f:Hre.Hash.bind(null,"sha256"),streamCollector:(h=e==null?void 0:e.streamCollector)!==null&&h!==void 0?h:PN.streamCollector,useDualstackEndpoint:(_=e==null?void 0:e.useDualstackEndpoint)!==null&&_!==void 0?_:(0,La.loadConfig)(np.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(S=e==null?void 0:e.useFipsEndpoint)!==null&&S!==void 0?S:(0,La.loadConfig)(np.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:(v=e==null?void 0:e.utf8Decoder)!==null&&v!==void 0?v:LN.fromUtf8,utf8Encoder:(y=e==null?void 0:e.utf8Encoder)!==null&&y!==void 0?y:LN.toUtf8})};rp.getRuntimeConfig=Zre});var sp=m(ip=>{"use strict";Object.defineProperty(ip,"__esModule",{value:!0});ip.STSClient=void 0;var MN=tn(),eie=Vu(),zN=Zu(),tie=ed(),jN=ai(),nie=hR(),kN=Fd(),rie=q(),iie=qN(),qa=class extends rie.Client{constructor(t){let n=(0,iie.getRuntimeConfig)(t),r=(0,MN.resolveRegionConfig)(n),i=(0,MN.resolveEndpointsConfig)(r),s=(0,jN.resolveRetryConfig)(i),o=(0,zN.resolveHostHeaderConfig)(s),c=(0,nie.resolveStsAuthConfig)(o,{stsClientCtor:qa}),l=(0,kN.resolveUserAgentConfig)(c);super(l),this.config=l,this.middlewareStack.use((0,jN.getRetryPlugin)(this.config)),this.middlewareStack.use((0,eie.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,zN.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,tie.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,kN.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};ip.STSClient=qa});var FN=m(op=>{"use strict";Object.defineProperty(op,"__esModule",{value:!0});op.STS=void 0;var sie=nf(),oie=cv(),aie=of(),cie=dv(),lie=mv(),uie=hv(),die=yv(),fie=Sv(),mie=sp(),ww=class extends mie.STSClient{assumeRole(t,n,r){let i=new sie.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 oie.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 aie.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 cie.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 lie.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 uie.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 die.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 fie.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)}};op.STS=ww});var UN=m(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});var Mr=Y();Mr.__exportStar(nf(),qn);Mr.__exportStar(cv(),qn);Mr.__exportStar(of(),qn);Mr.__exportStar(dv(),qn);Mr.__exportStar(mv(),qn);Mr.__exportStar(hv(),qn);Mr.__exportStar(yv(),qn);Mr.__exportStar(Sv(),qn)});var $N=m(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});Mn.decorateDefaultCredentialProvider=Mn.getDefaultRoleAssumerWithWebIdentity=Mn.getDefaultRoleAssumer=void 0;var BN=vv(),GN=sp(),pie=(e={})=>(0,BN.getDefaultRoleAssumer)(e,GN.STSClient);Mn.getDefaultRoleAssumer=pie;var hie=(e={})=>(0,BN.getDefaultRoleAssumerWithWebIdentity)(e,GN.STSClient);Mn.getDefaultRoleAssumerWithWebIdentity=hie;var _ie=e=>t=>e(a({roleAssumer:(0,Mn.getDefaultRoleAssumer)(t),roleAssumerWithWebIdentity:(0,Mn.getDefaultRoleAssumerWithWebIdentity)(t)},t));Mn.decorateDefaultCredentialProvider=_ie});var VN=m(bw=>{"use strict";Object.defineProperty(bw,"__esModule",{value:!0});var yie=Y();yie.__exportStar(nn(),bw)});var KN=m(er=>{"use strict";Object.defineProperty(er,"__esModule",{value:!0});er.STSServiceException=void 0;var Ma=Y();Ma.__exportStar(FN(),er);Ma.__exportStar(sp(),er);Ma.__exportStar(UN(),er);Ma.__exportStar($N(),er);Ma.__exportStar(VN(),er);var gie=Bd();Object.defineProperty(er,"STSServiceException",{enumerable:!0,get:function(){return gie.STSServiceException}})});var HN=m(ap=>{"use strict";Object.defineProperty(ap,"__esModule",{value:!0});ap.defaultRegionInfoProvider=void 0;var Sie=tn(),vie={"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"]}]}},wie={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"]}]}},bie=async(e,t)=>(0,Sie.getRegionInfo)(e,g(a({},t),{signingService:"dynamodb",regionHash:vie,partitionHash:wie}));ap.defaultRegionInfoProvider=bie});var WN=m(cp=>{"use strict";Object.defineProperty(cp,"__esModule",{value:!0});cp.getRuntimeConfig=void 0;var Eie=va(),Aie=HN(),Tie=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:Aie.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:Eie.parseUrl}};cp.getRuntimeConfig=Tie});var XN=m(up=>{"use strict";Object.defineProperty(up,"__esModule",{value:!0});up.getRuntimeConfig=void 0;var Cie=Y(),xie=Cie.__importDefault(e1()),Iie=KN(),lp=tn(),Rie=Sw(),Die=sm(),Nie=vS(),Ew=ai(),_s=gi(),YN=_m(),JN=ym(),Pie=Sm(),Oie=wm(),QN=bm(),Lie=WN(),qie=q(),Mie=xm(),zie=e=>{var t,n,r,i,s,o,c,l,d,f,h,_,S,v,y,R;let P=(0,Mie.resolveDefaultsModeConfig)(e),C=()=>P().then(qie.loadConfigsForDefaultMode),k=(0,Lie.getRuntimeConfig)(e);return g(a(a({},k),e),{runtime:"node",defaultsMode:P,base64Decoder:(t=e==null?void 0:e.base64Decoder)!==null&&t!==void 0?t:JN.fromBase64,base64Encoder:(n=e==null?void 0:e.base64Encoder)!==null&&n!==void 0?n:JN.toBase64,bodyLengthChecker:(r=e==null?void 0:e.bodyLengthChecker)!==null&&r!==void 0?r:Pie.calculateBodyLength,credentialDefaultProvider:(i=e==null?void 0:e.credentialDefaultProvider)!==null&&i!==void 0?i:(0,Iie.decorateDefaultCredentialProvider)(Rie.defaultProvider),defaultUserAgentProvider:(s=e==null?void 0:e.defaultUserAgentProvider)!==null&&s!==void 0?s:(0,Oie.defaultUserAgent)({serviceId:k.serviceId,clientVersion:xie.default.version}),endpointDiscoveryEnabledProvider:(o=e==null?void 0:e.endpointDiscoveryEnabledProvider)!==null&&o!==void 0?o:(0,_s.loadConfig)(Nie.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS),maxAttempts:(c=e==null?void 0:e.maxAttempts)!==null&&c!==void 0?c:(0,_s.loadConfig)(Ew.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(l=e==null?void 0:e.region)!==null&&l!==void 0?l:(0,_s.loadConfig)(lp.NODE_REGION_CONFIG_OPTIONS,lp.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(d=e==null?void 0:e.requestHandler)!==null&&d!==void 0?d:new YN.NodeHttpHandler(C),retryMode:(f=e==null?void 0:e.retryMode)!==null&&f!==void 0?f:(0,_s.loadConfig)(g(a({},Ew.NODE_RETRY_MODE_CONFIG_OPTIONS),{default:async()=>(await C()).retryMode||Ew.DEFAULT_RETRY_MODE})),sha256:(h=e==null?void 0:e.sha256)!==null&&h!==void 0?h:Die.Hash.bind(null,"sha256"),streamCollector:(_=e==null?void 0:e.streamCollector)!==null&&_!==void 0?_:YN.streamCollector,useDualstackEndpoint:(S=e==null?void 0:e.useDualstackEndpoint)!==null&&S!==void 0?S:(0,_s.loadConfig)(lp.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(v=e==null?void 0:e.useFipsEndpoint)!==null&&v!==void 0?v:(0,_s.loadConfig)(lp.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:(y=e==null?void 0:e.utf8Decoder)!==null&&y!==void 0?y:QN.fromUtf8,utf8Encoder:(R=e==null?void 0:e.utf8Encoder)!==null&&R!==void 0?R:QN.toUtf8})};up.getRuntimeConfig=zie});var zr=m(dp=>{"use strict";Object.defineProperty(dp,"__esModule",{value:!0});dp.DynamoDBClient=void 0;var ZN=tn(),jie=Vu(),kie=vS(),eP=Zu(),Fie=ed(),tP=ai(),nP=Jn(),rP=Fd(),Uie=q(),Bie=Fl(),Gie=XN(),Aw=class extends Uie.Client{constructor(t){let n=(0,Gie.getRuntimeConfig)(t),r=(0,ZN.resolveRegionConfig)(n),i=(0,ZN.resolveEndpointsConfig)(r),s=(0,tP.resolveRetryConfig)(i),o=(0,eP.resolveHostHeaderConfig)(s),c=(0,nP.resolveAwsAuthConfig)(o),l=(0,rP.resolveUserAgentConfig)(c),d=(0,kie.resolveEndpointDiscoveryConfig)(l,{endpointDiscoveryCommandCtor:Bie.DescribeEndpointsCommand});super(d),this.config=d,this.middlewareStack.use((0,tP.getRetryPlugin)(this.config)),this.middlewareStack.use((0,jie.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,eP.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,Fie.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,nP.getAwsAuthPlugin)(this.config)),this.middlewareStack.use((0,rP.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};dp.DynamoDBClient=Aw});var bi=m(fp=>{"use strict";Object.defineProperty(fp,"__esModule",{value:!0});fp.DynamoDB=void 0;var $ie=by(),Vie=Ay(),Kie=Cy(),Hie=Iy(),Wie=Dy(),Yie=Py(),Jie=Ly(),Qie=My(),Xie=jy(),Zie=Fy(),ese=By(),tse=$y(),nse=Fl(),rse=Hy(),ise=Yy(),sse=Qy(),ose=Zy(),ase=tg(),cse=Vo(),lse=ig(),use=og(),dse=cg(),fse=ug(),mse=fg(),pse=pg(),hse=_g(),_se=gg(),yse=vg(),gse=ru(),Sse=su(),vse=Ag(),wse=cu(),bse=xg(),Ese=Rg(),Ase=fu(),Tse=Pg(),Cse=Lg(),xse=_u(),Ise=zg(),Rse=kg(),Dse=Ug(),Nse=Gg(),Pse=Vg(),Ose=Hg(),Lse=Yg(),qse=Qg(),Mse=Zg(),zse=tS(),jse=rS(),kse=sS(),Fse=zr(),Tw=class extends Fse.DynamoDBClient{batchExecuteStatement(t,n,r){let i=new $ie.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 Vie.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 Hie.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 Wie.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 Yie.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 Jie.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 Qie.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 Xie.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 Zie.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 ese.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 tse.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 nse.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 rse.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 ise.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 sse.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 ose.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 ase.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 cse.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 lse.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 use.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 dse.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 fse.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 mse.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 pse.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 hse.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 _se.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 yse.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 gse.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 Sse.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 vse.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 wse.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 bse.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 Ese.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 Ase.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 Tse.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 Cse.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 xse.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 Ise.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 Rse.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 Dse.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 Nse.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 Pse.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 Ose.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 Lse.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 qse.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 Mse.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 zse.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 jse.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 kse.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)}};fp.DynamoDB=Tw});var iP=m(Q=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});var ie=Y();ie.__exportStar(by(),Q);ie.__exportStar(Ay(),Q);ie.__exportStar(Cy(),Q);ie.__exportStar(Iy(),Q);ie.__exportStar(Dy(),Q);ie.__exportStar(Py(),Q);ie.__exportStar(Ly(),Q);ie.__exportStar(My(),Q);ie.__exportStar(jy(),Q);ie.__exportStar(Fy(),Q);ie.__exportStar(By(),Q);ie.__exportStar($y(),Q);ie.__exportStar(Fl(),Q);ie.__exportStar(Hy(),Q);ie.__exportStar(Yy(),Q);ie.__exportStar(Qy(),Q);ie.__exportStar(Zy(),Q);ie.__exportStar(tg(),Q);ie.__exportStar(Vo(),Q);ie.__exportStar(ig(),Q);ie.__exportStar(og(),Q);ie.__exportStar(cg(),Q);ie.__exportStar(ug(),Q);ie.__exportStar(fg(),Q);ie.__exportStar(pg(),Q);ie.__exportStar(_g(),Q);ie.__exportStar(gg(),Q);ie.__exportStar(vg(),Q);ie.__exportStar(ru(),Q);ie.__exportStar(su(),Q);ie.__exportStar(Ag(),Q);ie.__exportStar(cu(),Q);ie.__exportStar(xg(),Q);ie.__exportStar(Rg(),Q);ie.__exportStar(fu(),Q);ie.__exportStar(Pg(),Q);ie.__exportStar(Lg(),Q);ie.__exportStar(_u(),Q);ie.__exportStar(zg(),Q);ie.__exportStar(kg(),Q);ie.__exportStar(Ug(),Q);ie.__exportStar(Gg(),Q);ie.__exportStar(Vg(),Q);ie.__exportStar(Hg(),Q);ie.__exportStar(Yg(),Q);ie.__exportStar(Qg(),Q);ie.__exportStar(Zg(),Q);ie.__exportStar(tS(),Q);ie.__exportStar(rS(),Q);ie.__exportStar(sS(),Q)});var sP=m(Cw=>{"use strict";Object.defineProperty(Cw,"__esModule",{value:!0});var Use=Y();Use.__exportStar(J(),Cw)});var aP=m(oP=>{"use strict";Object.defineProperty(oP,"__esModule",{value:!0})});var cP=m(mp=>{"use strict";Object.defineProperty(mp,"__esModule",{value:!0});mp.paginateListContributorInsights=void 0;var Bse=ru(),Gse=bi(),$se=zr(),Vse=async(e,t,...n)=>await e.send(new Bse.ListContributorInsightsCommand(t),...n),Kse=async(e,t,...n)=>await e.listContributorInsights(t,...n);async function*Hse(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 Gse.DynamoDB)s=await Kse(e.client,t,...n);else if(e.client instanceof $se.DynamoDBClient)s=await Vse(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s;let o=r;r=s.NextToken,i=!!(r&&(!e.stopOnSameToken||r!==o))}return void 0}mp.paginateListContributorInsights=Hse});var lP=m(pp=>{"use strict";Object.defineProperty(pp,"__esModule",{value:!0});pp.paginateListExports=void 0;var Wse=su(),Yse=bi(),Jse=zr(),Qse=async(e,t,...n)=>await e.send(new Wse.ListExportsCommand(t),...n),Xse=async(e,t,...n)=>await e.listExports(t,...n);async function*Zse(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 Yse.DynamoDB)s=await Xse(e.client,t,...n);else if(e.client instanceof Jse.DynamoDBClient)s=await Qse(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s;let o=r;r=s.NextToken,i=!!(r&&(!e.stopOnSameToken||r!==o))}return void 0}pp.paginateListExports=Zse});var uP=m(hp=>{"use strict";Object.defineProperty(hp,"__esModule",{value:!0});hp.paginateListTables=void 0;var eoe=cu(),toe=bi(),noe=zr(),roe=async(e,t,...n)=>await e.send(new eoe.ListTablesCommand(t),...n),ioe=async(e,t,...n)=>await e.listTables(t,...n);async function*soe(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 toe.DynamoDB)s=await ioe(e.client,t,...n);else if(e.client instanceof noe.DynamoDBClient)s=await roe(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s;let o=r;r=s.LastEvaluatedTableName,i=!!(r&&(!e.stopOnSameToken||r!==o))}return void 0}hp.paginateListTables=soe});var dP=m(_p=>{"use strict";Object.defineProperty(_p,"__esModule",{value:!0});_p.paginateQuery=void 0;var ooe=fu(),aoe=bi(),coe=zr(),loe=async(e,t,...n)=>await e.send(new ooe.QueryCommand(t),...n),uoe=async(e,t,...n)=>await e.query(t,...n);async function*doe(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 aoe.DynamoDB)s=await uoe(e.client,t,...n);else if(e.client instanceof coe.DynamoDBClient)s=await loe(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s;let o=r;r=s.LastEvaluatedKey,i=!!(r&&(!e.stopOnSameToken||r!==o))}return void 0}_p.paginateQuery=doe});var fP=m(yp=>{"use strict";Object.defineProperty(yp,"__esModule",{value:!0});yp.paginateScan=void 0;var foe=_u(),moe=bi(),poe=zr(),hoe=async(e,t,...n)=>await e.send(new foe.ScanCommand(t),...n),_oe=async(e,t,...n)=>await e.scan(t,...n);async function*yoe(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 moe.DynamoDB)s=await _oe(e.client,t,...n);else if(e.client instanceof poe.DynamoDBClient)s=await hoe(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s;let o=r;r=s.LastEvaluatedKey,i=!!(r&&(!e.stopOnSameToken||r!==o))}return void 0}yp.paginateScan=yoe});var mP=m(jr=>{"use strict";Object.defineProperty(jr,"__esModule",{value:!0});var ys=Y();ys.__exportStar(aP(),jr);ys.__exportStar(cP(),jr);ys.__exportStar(lP(),jr);ys.__exportStar(uP(),jr);ys.__exportStar(dP(),jr);ys.__exportStar(fP(),jr)});var xw=m(gp=>{"use strict";Object.defineProperty(gp,"__esModule",{value:!0});gp.sleep=void 0;var goe=e=>new Promise(t=>setTimeout(t,e*1e3));gp.sleep=goe});var vp=m(tr=>{"use strict";Object.defineProperty(tr,"__esModule",{value:!0});tr.checkExceptions=tr.WaiterState=tr.waiterServiceDefaults=void 0;tr.waiterServiceDefaults={minDelay:2,maxDelay:120};var Sp;(function(e){e.ABORTED="ABORTED",e.FAILURE="FAILURE",e.SUCCESS="SUCCESS",e.RETRY="RETRY",e.TIMEOUT="TIMEOUT"})(Sp=tr.WaiterState||(tr.WaiterState={}));var Soe=e=>{if(e.state===Sp.ABORTED){let t=new Error(`${JSON.stringify(g(a({},e),{reason:"Request was aborted"}))}`);throw t.name="AbortError",t}else if(e.state===Sp.TIMEOUT){let t=new Error(`${JSON.stringify(g(a({},e),{reason:"Waiter has timed out"}))}`);throw t.name="TimeoutError",t}else if(e.state!==Sp.SUCCESS)throw new Error(`${JSON.stringify({result:e})}`);return e};tr.checkExceptions=Soe});var pP=m(bp=>{"use strict";Object.defineProperty(bp,"__esModule",{value:!0});bp.runPolling=void 0;var voe=xw(),wp=vp(),woe=(e,t,n,r)=>{if(r>n)return t;let i=e*2**(r-1);return boe(e,i)},boe=(e,t)=>e+Math.random()*(t-e),Eoe=async({minDelay:e,maxDelay:t,maxWaitTime:n,abortController:r,client:i,abortSignal:s},o,c)=>{var l;let{state:d}=await c(i,o);if(d!==wp.WaiterState.RETRY)return{state:d};let f=1,h=Date.now()+n*1e3,_=Math.log(t/e)/Math.log(2)+1;for(;;){if(((l=r==null?void 0:r.signal)===null||l===void 0?void 0:l.aborted)||(s==null?void 0:s.aborted))return{state:wp.WaiterState.ABORTED};let S=woe(e,t,_,f);if(Date.now()+S*1e3>h)return{state:wp.WaiterState.TIMEOUT};await(0,voe.sleep)(S);let{state:v}=await c(i,o);if(v!==wp.WaiterState.RETRY)return{state:v};f+=1}};bp.runPolling=Eoe});var hP=m(Ep=>{"use strict";Object.defineProperty(Ep,"__esModule",{value:!0});Ep.validateWaiterOptions=void 0;var Aoe=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`)};Ep.validateWaiterOptions=Aoe});var yP=m(Ap=>{"use strict";Object.defineProperty(Ap,"__esModule",{value:!0});var _P=Y();_P.__exportStar(xw(),Ap);_P.__exportStar(hP(),Ap)});var vP=m(Tp=>{"use strict";Object.defineProperty(Tp,"__esModule",{value:!0});Tp.createWaiter=void 0;var Toe=pP(),Coe=yP(),SP=vp(),gP=async e=>new Promise(t=>{e.onabort=()=>t({state:SP.WaiterState.ABORTED})}),xoe=async(e,t,n)=>{let r=a(a({},SP.waiterServiceDefaults),e);(0,Coe.validateWaiterOptions)(r);let i=[(0,Toe.runPolling)(r,t,n)];return e.abortController&&i.push(gP(e.abortController.signal)),e.abortSignal&&i.push(gP(e.abortSignal)),Promise.race(i)};Tp.createWaiter=xoe});var Iw=m(Cp=>{"use strict";Object.defineProperty(Cp,"__esModule",{value:!0});var wP=Y();wP.__exportStar(vP(),Cp);wP.__exportStar(vp(),Cp)});var EP=m(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});Ss.waitUntilTableExists=Ss.waitForTableExists=void 0;var gs=Iw(),Ioe=Vo(),bP=async(e,t)=>{let n;try{let r=await e.send(new Ioe.DescribeTableCommand(t));n=r;try{if((()=>r.Table.TableStatus)()==="ACTIVE")return{state:gs.WaiterState.SUCCESS,reason:n}}catch{}}catch(r){if(n=r,r.name&&r.name=="ResourceNotFoundException")return{state:gs.WaiterState.RETRY,reason:n}}return{state:gs.WaiterState.RETRY,reason:n}},Roe=async(e,t)=>{let n={minDelay:20,maxDelay:120};return(0,gs.createWaiter)(a(a({},n),e),t,bP)};Ss.waitForTableExists=Roe;var Doe=async(e,t)=>{let n={minDelay:20,maxDelay:120},r=await(0,gs.createWaiter)(a(a({},n),e),t,bP);return(0,gs.checkExceptions)(r)};Ss.waitUntilTableExists=Doe});var TP=m(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});vs.waitUntilTableNotExists=vs.waitForTableNotExists=void 0;var za=Iw(),Noe=Vo(),AP=async(e,t)=>{let n;try{n=await e.send(new Noe.DescribeTableCommand(t))}catch(r){if(n=r,r.name&&r.name=="ResourceNotFoundException")return{state:za.WaiterState.SUCCESS,reason:n}}return{state:za.WaiterState.RETRY,reason:n}},Poe=async(e,t)=>{let n={minDelay:20,maxDelay:120};return(0,za.createWaiter)(a(a({},n),e),t,AP)};vs.waitForTableNotExists=Poe;var Ooe=async(e,t)=>{let n={minDelay:20,maxDelay:120},r=await(0,za.createWaiter)(a(a({},n),e),t,AP);return(0,za.checkExceptions)(r)};vs.waitUntilTableNotExists=Ooe});var xP=m(xp=>{"use strict";Object.defineProperty(xp,"__esModule",{value:!0});var CP=Y();CP.__exportStar(EP(),xp);CP.__exportStar(TP(),xp)});var yt=m(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});zn.DynamoDBServiceException=void 0;var ws=Y();ws.__exportStar(bi(),zn);ws.__exportStar(zr(),zn);ws.__exportStar(iP(),zn);ws.__exportStar(sP(),zn);ws.__exportStar(mP(),zn);ws.__exportStar(xP(),zn);var Loe=Qc();Object.defineProperty(zn,"DynamoDBServiceException",{enumerable:!0,get:function(){return Loe.DynamoDBServiceException}})});var Rw=m(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});Ei.convertToAttr=void 0;var qoe=(e,t)=>{var n,r,i,s,o,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 Ip();if(Array.isArray(e))return Moe(e,t);if(((n=e==null?void 0:e.constructor)===null||n===void 0?void 0:n.name)==="Set")return zoe(e,t);if(((r=e==null?void 0:e.constructor)===null||r===void 0?void 0:r.name)==="Map")return joe(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 IP(e,t);if(LP(e))return e.length===0&&(t==null?void 0:t.convertEmptyValues)?Ip():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"||((o=e==null?void 0:e.constructor)===null||o===void 0?void 0:o.name)==="Number")return OP(e);if(typeof e=="bigint")return PP(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)?Ip():NP(e);if((t==null?void 0:t.convertClassInstanceToMap)&&typeof e=="object")return IP(e,t);throw new Error(`Unsupported type passed: ${e}. Pass options.convertClassInstanceToMap=true to marshall typeof object as map attribute.`)};Ei.convertToAttr=qoe;var Moe=(e,t)=>({L:e.filter(n=>!(t!=null&&t.removeUndefinedValues)||(t==null?void 0:t.removeUndefinedValues)&&n!==void 0).map(n=>(0,Ei.convertToAttr)(n,t))}),zoe=(e,t)=>{let n=t!=null&&t.removeUndefinedValues?new Set([...e].filter(i=>i!==void 0)):e;if(!(t!=null&&t.removeUndefinedValues)&&n.has(void 0))throw new Error("Pass options.removeUndefinedValues=true to remove undefined values from map/array/set.");if(n.size===0){if(t!=null&&t.convertEmptyValues)return Ip();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(OP).map(i=>i.N)};if(typeof r=="bigint")return{NS:Array.from(n).map(PP).map(i=>i.N)};if(typeof r=="string")return{SS:Array.from(n).map(NP).map(i=>i.S)};if(LP(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.")},joe=(e,t)=>({M:(n=>{let r={};for(let[i,s]of n)typeof s!="function"&&(s!==void 0||!(t!=null&&t.removeUndefinedValues))&&(r[i]=(0,Ei.convertToAttr)(s,t));return r})(e)}),IP=(e,t)=>({M:(n=>{let r={};for(let i in n){let s=n[i];typeof s!="function"&&(s!==void 0||!(t!=null&&t.removeUndefinedValues))&&(r[i]=(0,Ei.convertToAttr)(s,t))}return r})(e)}),Ip=()=>({NULL:!0}),DP=e=>({B:e}),NP=e=>({S:e.toString()}),PP=e=>({N:e.toString()}),RP=e=>{throw new Error(`${e} ${typeof BigInt=="function"?"Use BigInt.":"Pass string value instead."} `)},OP=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?RP(`Number ${e.toString()} is greater than Number.MAX_SAFE_INTEGER.`):e<Number.MIN_SAFE_INTEGER&&RP(`Number ${e.toString()} is lesser than Number.MIN_SAFE_INTEGER.`),{N:e.toString()}},LP=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 Dw=m(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});bs.convertToNative=void 0;var koe=(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 qP(r,t);case"B":return zP(r);case"S":return MP(r);case"L":return Foe(r,t);case"M":return Uoe(r,t);case"NS":return new Set(r.map(i=>qP(i,t)));case"BS":return new Set(r.map(zP));case"SS":return new Set(r.map(MP));default:throw new Error(`Unsupported type passed: ${n}`)}throw new Error(`No value defined: ${JSON.stringify(e)}`)};bs.convertToNative=koe;var qP=(e,t)=>{if(t!=null&&t.wrapNumbers)return{value:e};let n=Number(e),r=[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY];if((n>Number.MAX_SAFE_INTEGER||n<Number.MIN_SAFE_INTEGER)&&!r.includes(n))if(typeof BigInt=="function")try{return BigInt(e)}catch{throw new Error(`${e} can't be converted to BigInt. Set options.wrapNumbers to get string value.`)}else throw new Error(`${e} is outside SAFE_INTEGER bounds. Set options.wrapNumbers to get string value.`);return n},MP=e=>e,zP=e=>e,Foe=(e,t)=>e.map(n=>(0,bs.convertToNative)(n,t)),Uoe=(e,t)=>Object.entries(e).reduce((n,[r,i])=>g(a({},n),{[r]:(0,bs.convertToNative)(i,t)}),{})});var jP=m(Rp=>{"use strict";Object.defineProperty(Rp,"__esModule",{value:!0});Rp.marshall=void 0;var Boe=Rw();function Goe(e,t){let n=(0,Boe.convertToAttr)(e,t),[r,i]=Object.entries(n)[0];switch(r){case"M":case"L":return i;case"SS":case"NS":case"BS":case"S":case"N":case"B":case"NULL":case"BOOL":case"$unknown":default:return n}}Rp.marshall=Goe});var FP=m(kP=>{"use strict";Object.defineProperty(kP,"__esModule",{value:!0})});var UP=m(Dp=>{"use strict";Object.defineProperty(Dp,"__esModule",{value:!0});Dp.unmarshall=void 0;var $oe=Dw(),Voe=(e,t)=>(0,$oe.convertToNative)({M:e},t);Dp.unmarshall=Voe});var BP=m(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});var ja=Y();ja.__exportStar(Rw(),Ai);ja.__exportStar(Dw(),Ai);ja.__exportStar(jP(),Ai);ja.__exportStar(FP(),Ai);ja.__exportStar(UP(),Ai)});var Tt=m(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.unmarshallOutput=Es.marshallInput=void 0;var $P=BP(),GP=(e,t,n)=>{if(e!==void 0)return!n||Array.isArray(n)&&n.length===0?t(e):Array.isArray(n)?Nw(e,t,n):Koe(e,t,n.children)},VP=(e,t,n)=>Array.isArray(e)?e.map(r=>GP(r,t,n)):GP(e,t,n),Nw=(e,t,n)=>n.reduce((r,{key:i,children:s})=>g(a({},r),{[i]:VP(r[i],t,s)}),e),Koe=(e,t,n)=>Object.entries(e).reduce((r,[i,s])=>g(a({},r),{[i]:VP(s,t,n)}),{}),Hoe=(e,t,n)=>Nw(e,i=>(0,$P.marshall)(i,n),t);Es.marshallInput=Hoe;var Woe=(e,t,n)=>Nw(e,i=>(0,$P.unmarshall)(i,n),t);Es.unmarshallOutput=Woe});var Ow=m(Np=>{"use strict";Object.defineProperty(Np,"__esModule",{value:!0});Np.BatchExecuteStatementCommand=void 0;var Yoe=yt(),Joe=q(),KP=Tt(),Pw=class extends Joe.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||{},o=new Yoe.BatchExecuteStatementCommand((0,KP.marshallInput)(this.input,this.inputKeyNodes,i)),c=o.resolveMiddleware(t,n,r);return async()=>{let l=await c(o);return g(a({},l),{output:(0,KP.unmarshallOutput)(l.output,this.outputKeyNodes,s)})}}};Np.BatchExecuteStatementCommand=Pw});var qw=m(Pp=>{"use strict";Object.defineProperty(Pp,"__esModule",{value:!0});Pp.BatchGetCommand=void 0;var Qoe=yt(),Xoe=q(),HP=Tt(),Lw=class extends Xoe.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||{},o=new Qoe.BatchGetItemCommand((0,HP.marshallInput)(this.input,this.inputKeyNodes,i)),c=o.resolveMiddleware(t,n,r);return async()=>{let l=await c(o);return g(a({},l),{output:(0,HP.unmarshallOutput)(l.output,this.outputKeyNodes,s)})}}};Pp.BatchGetCommand=Lw});var zw=m(Op=>{"use strict";Object.defineProperty(Op,"__esModule",{value:!0});Op.BatchWriteCommand=void 0;var Zoe=yt(),eae=q(),WP=Tt(),Mw=class extends eae.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||{},o=new Zoe.BatchWriteItemCommand((0,WP.marshallInput)(this.input,this.inputKeyNodes,i)),c=o.resolveMiddleware(t,n,r);return async()=>{let l=await c(o);return g(a({},l),{output:(0,WP.unmarshallOutput)(l.output,this.outputKeyNodes,s)})}}};Op.BatchWriteCommand=Mw});var kw=m(Lp=>{"use strict";Object.defineProperty(Lp,"__esModule",{value:!0});Lp.DeleteCommand=void 0;var tae=yt(),nae=q(),YP=Tt(),jw=class extends nae.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||{},o=new tae.DeleteItemCommand((0,YP.marshallInput)(this.input,this.inputKeyNodes,i)),c=o.resolveMiddleware(t,n,r);return async()=>{let l=await c(o);return g(a({},l),{output:(0,YP.unmarshallOutput)(l.output,this.outputKeyNodes,s)})}}};Lp.DeleteCommand=jw});var Uw=m(qp=>{"use strict";Object.defineProperty(qp,"__esModule",{value:!0});qp.ExecuteStatementCommand=void 0;var rae=yt(),iae=q(),JP=Tt(),Fw=class extends iae.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"Parameters"}],this.outputKeyNodes=[{key:"Items"},{key:"LastEvaluatedKey"}]}resolveMiddleware(t,n,r){let{marshallOptions:i,unmarshallOptions:s}=n.translateConfig||{},o=new rae.ExecuteStatementCommand((0,JP.marshallInput)(this.input,this.inputKeyNodes,i)),c=o.resolveMiddleware(t,n,r);return async()=>{let l=await c(o);return g(a({},l),{output:(0,JP.unmarshallOutput)(l.output,this.outputKeyNodes,s)})}}};qp.ExecuteStatementCommand=Fw});var Gw=m(Mp=>{"use strict";Object.defineProperty(Mp,"__esModule",{value:!0});Mp.ExecuteTransactionCommand=void 0;var sae=yt(),oae=q(),QP=Tt(),Bw=class extends oae.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||{},o=new sae.ExecuteTransactionCommand((0,QP.marshallInput)(this.input,this.inputKeyNodes,i)),c=o.resolveMiddleware(t,n,r);return async()=>{let l=await c(o);return g(a({},l),{output:(0,QP.unmarshallOutput)(l.output,this.outputKeyNodes,s)})}}};Mp.ExecuteTransactionCommand=Bw});var Vw=m(zp=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0});zp.GetCommand=void 0;var aae=yt(),cae=q(),XP=Tt(),$w=class extends cae.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||{},o=new aae.GetItemCommand((0,XP.marshallInput)(this.input,this.inputKeyNodes,i)),c=o.resolveMiddleware(t,n,r);return async()=>{let l=await c(o);return g(a({},l),{output:(0,XP.unmarshallOutput)(l.output,this.outputKeyNodes,s)})}}};zp.GetCommand=$w});var Hw=m(jp=>{"use strict";Object.defineProperty(jp,"__esModule",{value:!0});jp.PutCommand=void 0;var lae=yt(),uae=q(),ZP=Tt(),Kw=class extends uae.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||{},o=new lae.PutItemCommand((0,ZP.marshallInput)(this.input,this.inputKeyNodes,i)),c=o.resolveMiddleware(t,n,r);return async()=>{let l=await c(o);return g(a({},l),{output:(0,ZP.unmarshallOutput)(l.output,this.outputKeyNodes,s)})}}};jp.PutCommand=Kw});var Fp=m(kp=>{"use strict";Object.defineProperty(kp,"__esModule",{value:!0});kp.QueryCommand=void 0;var dae=yt(),fae=q(),eO=Tt(),Ww=class extends fae.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||{},o=new dae.QueryCommand((0,eO.marshallInput)(this.input,this.inputKeyNodes,i)),c=o.resolveMiddleware(t,n,r);return async()=>{let l=await c(o);return g(a({},l),{output:(0,eO.unmarshallOutput)(l.output,this.outputKeyNodes,s)})}}};kp.QueryCommand=Ww});var Bp=m(Up=>{"use strict";Object.defineProperty(Up,"__esModule",{value:!0});Up.ScanCommand=void 0;var mae=yt(),pae=q(),tO=Tt(),Yw=class extends pae.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||{},o=new mae.ScanCommand((0,tO.marshallInput)(this.input,this.inputKeyNodes,i)),c=o.resolveMiddleware(t,n,r);return async()=>{let l=await c(o);return g(a({},l),{output:(0,tO.unmarshallOutput)(l.output,this.outputKeyNodes,s)})}}};Up.ScanCommand=Yw});var Qw=m(Gp=>{"use strict";Object.defineProperty(Gp,"__esModule",{value:!0});Gp.TransactGetCommand=void 0;var hae=yt(),_ae=q(),nO=Tt(),Jw=class extends _ae.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||{},o=new hae.TransactGetItemsCommand((0,nO.marshallInput)(this.input,this.inputKeyNodes,i)),c=o.resolveMiddleware(t,n,r);return async()=>{let l=await c(o);return g(a({},l),{output:(0,nO.unmarshallOutput)(l.output,this.outputKeyNodes,s)})}}};Gp.TransactGetCommand=Jw});var Zw=m($p=>{"use strict";Object.defineProperty($p,"__esModule",{value:!0});$p.TransactWriteCommand=void 0;var yae=yt(),gae=q(),rO=Tt(),Xw=class extends gae.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||{},o=new yae.TransactWriteItemsCommand((0,rO.marshallInput)(this.input,this.inputKeyNodes,i)),c=o.resolveMiddleware(t,n,r);return async()=>{let l=await c(o);return g(a({},l),{output:(0,rO.unmarshallOutput)(l.output,this.outputKeyNodes,s)})}}};$p.TransactWriteCommand=Xw});var t0=m(Vp=>{"use strict";Object.defineProperty(Vp,"__esModule",{value:!0});Vp.UpdateCommand=void 0;var Sae=yt(),vae=q(),iO=Tt(),e0=class extends vae.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||{},o=new Sae.UpdateItemCommand((0,iO.marshallInput)(this.input,this.inputKeyNodes,i)),c=o.resolveMiddleware(t,n,r);return async()=>{let l=await c(o);return g(a({},l),{output:(0,iO.unmarshallOutput)(l.output,this.outputKeyNodes,s)})}}};Vp.UpdateCommand=e0});var Fa=m(Kp=>{"use strict";Object.defineProperty(Kp,"__esModule",{value:!0});Kp.DynamoDBDocumentClient=void 0;var wae=q(),ka=class extends wae.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 ka(t,n)}destroy(){}};Kp.DynamoDBDocumentClient=ka});var Wp=m(Hp=>{"use strict";Object.defineProperty(Hp,"__esModule",{value:!0});Hp.DynamoDBDocument=void 0;var bae=Ow(),Eae=qw(),Aae=zw(),Tae=kw(),Cae=Uw(),xae=Gw(),Iae=Vw(),Rae=Hw(),Dae=Fp(),Nae=Bp(),Pae=Qw(),Oae=Zw(),Lae=t0(),qae=Fa(),Ua=class extends qae.DynamoDBDocumentClient{static from(t,n){return new Ua(t,n)}batchExecuteStatement(t,n,r){let i=new bae.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 Eae.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 Aae.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 Tae.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 Cae.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 xae.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 Iae.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 Rae.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 Dae.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 Nae.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 Pae.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 Oae.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 Lae.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)}};Hp.DynamoDBDocument=Ua});var sO=m(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});var kt=Y();kt.__exportStar(Ow(),gt);kt.__exportStar(qw(),gt);kt.__exportStar(zw(),gt);kt.__exportStar(kw(),gt);kt.__exportStar(Uw(),gt);kt.__exportStar(Gw(),gt);kt.__exportStar(Vw(),gt);kt.__exportStar(Hw(),gt);kt.__exportStar(Fp(),gt);kt.__exportStar(Bp(),gt);kt.__exportStar(Qw(),gt);kt.__exportStar(Zw(),gt);kt.__exportStar(t0(),gt)});var aO=m(oO=>{"use strict";Object.defineProperty(oO,"__esModule",{value:!0})});var cO=m(Yp=>{"use strict";Object.defineProperty(Yp,"__esModule",{value:!0});Yp.paginateQuery=void 0;var Mae=Fp(),zae=Wp(),jae=Fa(),kae=async(e,t,...n)=>await e.send(new Mae.QueryCommand(t),...n),Fae=async(e,t,...n)=>await e.query(t,...n);async function*Uae(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 zae.DynamoDBDocument)s=await Fae(e.client,t,...n);else if(e.client instanceof jae.DynamoDBDocumentClient)s=await kae(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDBDocument | DynamoDBDocumentClient");yield s,r=s.LastEvaluatedKey,i=!!r}return void 0}Yp.paginateQuery=Uae});var lO=m(Jp=>{"use strict";Object.defineProperty(Jp,"__esModule",{value:!0});Jp.paginateScan=void 0;var Bae=Bp(),Gae=Wp(),$ae=Fa(),Vae=async(e,t,...n)=>await e.send(new Bae.ScanCommand(t),...n),Kae=async(e,t,...n)=>await e.scan(t,...n);async function*Hae(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 Gae.DynamoDBDocument)s=await Kae(e.client,t,...n);else if(e.client instanceof $ae.DynamoDBDocumentClient)s=await Vae(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDBDocument | DynamoDBDocumentClient");yield s,r=s.LastEvaluatedKey,i=!!r}return void 0}Jp.paginateScan=Hae});var uO=m(Ba=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});var n0=Y();n0.__exportStar(aO(),Ba);n0.__exportStar(cO(),Ba);n0.__exportStar(lO(),Ba)});var dO=m(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});var Qp=Y();Qp.__exportStar(Wp(),As);Qp.__exportStar(Fa(),As);Qp.__exportStar(sO(),As);Qp.__exportStar(uO(),As)});var fO=m(Xp=>{"use strict";Object.defineProperty(Xp,"__esModule",{value:!0});Xp.DBManager=void 0;var Wae=dO(),r0=class{constructor(t){let{dynamoClient:n,tableName:r}=t;this._tableName=r,this._client=n,this._ddbDocClient=Wae.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}};Xp.DBManager=r0});var mO=m(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});Ga.TransformationType=void 0;var Yae;(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"})(Yae=Ga.TransformationType||(Ga.TransformationType={}))});var $a=m(Ti=>{"use strict";var Jae=Ti&&Ti.__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]}),Qae=Ti&&Ti.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Jae(t,e,n)};Object.defineProperty(Ti,"__esModule",{value:!0});Qae(mO(),Ti)});var pO=m(Zp=>{"use strict";Object.defineProperty(Zp,"__esModule",{value:!0});Zp.MetadataStorage=void 0;var nr=$a(),i0=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===nr.TransformationType.CLASS_TO_CLASS||r===nr.TransformationType.PLAIN_TO_CLASS:i.options.toPlainOnly===!0?r===nr.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===nr.TransformationType.CLASS_TO_CLASS||n===nr.TransformationType.PLAIN_TO_CLASS:r.options.toPlainOnly===!0?n===nr.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===nr.TransformationType.CLASS_TO_CLASS||n===nr.TransformationType.PLAIN_TO_CLASS:r.options.toPlainOnly===!0?n===nr.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(o=>o.propertyName!==void 0));let s=[];for(let o of this.getAncestors(n)){let c=t.get(o);if(c){let l=Array.from(c.values()).filter(d=>d.propertyName!==void 0);s.push(...l)}}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 o=t.get(s);if(o){let c=o.get(r);if(c)return c}}}findMetadatas(t,n,r){let i=t.get(n),s;i&&(s=i.get(r));let o=[];for(let c of this.getAncestors(n)){let l=t.get(c);l&&l.has(r)&&o.push(...l.get(r))}return o.slice().reverse().concat((s||[]).slice().reverse())}getAncestors(t){if(!t)return[];if(!this._ancestorsMap.has(t)){let n=[];for(let r=Object.getPrototypeOf(t.prototype.constructor);typeof r.prototype<"u";r=Object.getPrototypeOf(r.prototype.constructor))n.push(r);this._ancestorsMap.set(t,n)}return this._ancestorsMap.get(t)}};Zp.MetadataStorage=i0});var Ts=m(eh=>{"use strict";Object.defineProperty(eh,"__esModule",{value:!0});eh.defaultMetadataStorage=void 0;var Xae=pO();eh.defaultMetadataStorage=new Xae.MetadataStorage});var hO=m(th=>{"use strict";Object.defineProperty(th,"__esModule",{value:!0});th.getGlobal=void 0;function Zae(){if(typeof globalThis<"u")return globalThis;if(typeof global<"u")return global;if(typeof window<"u")return window;if(typeof self<"u")return self}th.getGlobal=Zae});var _O=m(nh=>{"use strict";Object.defineProperty(nh,"__esModule",{value:!0});nh.isPromise=void 0;function ece(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}nh.isPromise=ece});var gO=m(kr=>{"use strict";var tce=kr&&kr.__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]}),yO=kr&&kr.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&tce(t,e,n)};Object.defineProperty(kr,"__esModule",{value:!0});yO(hO(),kr);yO(_O(),kr)});var vO=m(rh=>{"use strict";Object.defineProperty(rh,"__esModule",{value:!0});rh.TransformOperationExecutor=void 0;var Ct=Ts(),Ue=$a(),SO=gO();function nce(e){let t=new e;return!(t instanceof Set)&&!("push"in t)?[]:t}var s0=class{constructor(t,n){this.transformationType=t,this.options=n,this.recursionStack=new Set}transform(t,n,r,i,s,o=0){if(Array.isArray(n)||n instanceof Set){let c=i&&this.transformationType===Ue.TransformationType.PLAIN_TO_CLASS?nce(i):[];return n.forEach((l,d)=>{let f=t?t[d]:void 0;if(!this.options.enableCircularCheck||!this.isCircular(l)){let h;if(typeof r!="function"&&r&&r.options&&r.options.discriminator&&r.options.discriminator.property&&r.options.discriminator.subTypes){if(this.transformationType===Ue.TransformationType.PLAIN_TO_CLASS){h=r.options.discriminator.subTypes.find(y=>y.name===l[r.options.discriminator.property]);let S={newObject:c,object:l,property:void 0},v=r.typeFunction(S);h===void 0?h=v:h=h.value,r.options.keepDiscriminatorProperty||delete l[r.options.discriminator.property]}this.transformationType===Ue.TransformationType.CLASS_TO_CLASS&&(h=l.constructor),this.transformationType===Ue.TransformationType.CLASS_TO_PLAIN&&(l[r.options.discriminator.property]=r.options.discriminator.subTypes.find(S=>S.value===l.constructor).name)}else h=r;let _=this.transform(f,l,h,void 0,l instanceof Map,o+1);c instanceof Set?c.add(_):c.push(_)}else this.transformationType===Ue.TransformationType.CLASS_TO_CLASS&&(c instanceof Set?c.add(l):c.push(l))}),c}else{if(r===String&&!s)return n==null?n:String(n);if(r===Number&&!s)return n==null?n:Number(n);if(r===Boolean&&!s)return n==null?n:Boolean(n);if((r===Date||n instanceof Date)&&!s)return n instanceof Date?new Date(n.valueOf()):n==null?n:new Date(n);if(!!(0,SO.getGlobal)().Buffer&&(r===Buffer||n instanceof Buffer)&&!s)return n==null?n:Buffer.from(n);if((0,SO.isPromise)(n)&&!s)return new Promise((c,l)=>{n.then(d=>c(this.transform(void 0,d,r,void 0,void 0,o+1)),l)});if(!s&&n!==null&&typeof n=="object"&&typeof n.then=="function")return n;if(typeof n=="object"&&n!==null){!r&&n.constructor!==Object&&(!Array.isArray(n)&&n.constructor===Array||(r=n.constructor)),!r&&t&&(r=t.constructor),this.options.enableCircularCheck&&this.recursionStack.add(n);let c=this.getKeys(r,n,s),l=t||{};!t&&(this.transformationType===Ue.TransformationType.PLAIN_TO_CLASS||this.transformationType===Ue.TransformationType.CLASS_TO_CLASS)&&(s?l=new Map:r?l=new r:l={});for(let d of c){if(d==="__proto__"||d==="constructor")continue;let f=d,h=d,_=d;if(!this.options.ignoreDecorators&&r){if(this.transformationType===Ue.TransformationType.PLAIN_TO_CLASS){let C=Ct.defaultMetadataStorage.findExposeMetadataByCustomName(r,d);C&&(_=C.propertyName,h=C.propertyName)}else if(this.transformationType===Ue.TransformationType.CLASS_TO_PLAIN||this.transformationType===Ue.TransformationType.CLASS_TO_CLASS){let C=Ct.defaultMetadataStorage.findExposeMetadata(r,d);C&&C.options&&C.options.name&&(h=C.options.name)}}let S;this.transformationType===Ue.TransformationType.PLAIN_TO_CLASS?S=n[f]:n instanceof Map?S=n.get(f):n[f]instanceof Function?S=n[f]():S=n[f];let v,y=S instanceof Map;if(r&&s)v=r;else if(r){let C=Ct.defaultMetadataStorage.findTypeMetadata(r,_);if(C){let k={newObject:l,object:n,property:_},pe=C.typeFunction?C.typeFunction(k):C.reflectedType;C.options&&C.options.discriminator&&C.options.discriminator.property&&C.options.discriminator.subTypes?n[f]instanceof Array?v=C:(this.transformationType===Ue.TransformationType.PLAIN_TO_CLASS&&(v=C.options.discriminator.subTypes.find(Ot=>{if(S&&S instanceof Object&&C.options.discriminator.property in S)return Ot.name===S[C.options.discriminator.property]}),v===void 0?v=pe:v=v.value,C.options.keepDiscriminatorProperty||S&&S instanceof Object&&C.options.discriminator.property in S&&delete S[C.options.discriminator.property]),this.transformationType===Ue.TransformationType.CLASS_TO_CLASS&&(v=S.constructor),this.transformationType===Ue.TransformationType.CLASS_TO_PLAIN&&S&&(S[C.options.discriminator.property]=C.options.discriminator.subTypes.find(Ot=>Ot.value===S.constructor).name)):v=pe,y=y||C.reflectedType===Map}else if(this.options.targetMaps)this.options.targetMaps.filter(k=>k.target===r&&!!k.properties[_]).forEach(k=>v=k.properties[_]);else if(this.options.enableImplicitConversion&&this.transformationType===Ue.TransformationType.PLAIN_TO_CLASS){let k=Reflect.getMetadata("design:type",r.prototype,_);k&&(v=k)}}let R=Array.isArray(n[f])?this.getReflectedType(r,_):void 0,P=t?t[f]:void 0;if(l.constructor.prototype){let C=Object.getOwnPropertyDescriptor(l.constructor.prototype,h);if((this.transformationType===Ue.TransformationType.PLAIN_TO_CLASS||this.transformationType===Ue.TransformationType.CLASS_TO_CLASS)&&(C&&!C.set||l[h]instanceof Function))continue}if(!this.options.enableCircularCheck||!this.isCircular(S)){let C=this.transformationType===Ue.TransformationType.PLAIN_TO_CLASS?h:d,k;this.transformationType===Ue.TransformationType.CLASS_TO_PLAIN?(k=n[C],k=this.applyCustomTransformations(k,r,C,n,this.transformationType),k=n[C]===k?S:k,k=this.transform(P,k,v,R,y,o+1)):S===void 0&&this.options.exposeDefaultValues?k=l[h]:(k=this.transform(P,S,v,R,y,o+1),k=this.applyCustomTransformations(k,r,C,n,this.transformationType)),(k!==void 0||this.options.exposeUnsetFields)&&(l instanceof Map?l.set(h,k):l[h]=k)}else if(this.transformationType===Ue.TransformationType.CLASS_TO_CLASS){let C=S;C=this.applyCustomTransformations(C,r,d,n,this.transformationType),(C!==void 0||this.options.exposeUnsetFields)&&(l instanceof Map?l.set(h,C):l[h]=C)}}return this.options.enableCircularCheck&&this.recursionStack.delete(n),l}else return n}}applyCustomTransformations(t,n,r,i,s){let o=Ct.defaultMetadataStorage.findTransformMetadatas(n,r,this.transformationType);return this.options.version!==void 0&&(o=o.filter(c=>c.options?this.checkVersion(c.options.since,c.options.until):!0)),this.options.groups&&this.options.groups.length?o=o.filter(c=>c.options?this.checkGroups(c.options.groups):!0):o=o.filter(c=>!c.options||!c.options.groups||!c.options.groups.length),o.forEach(c=>{t=c.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=Ct.defaultMetadataStorage.findTypeMetadata(t,n);return r?r.reflectedType:void 0}getKeys(t,n,r){let i=Ct.defaultMetadataStorage.getStrategy(t);i==="none"&&(i=this.options.strategy||"exposeAll");let s=[];if((i==="exposeAll"||r)&&(n instanceof Map?s=Array.from(n.keys()):s=Object.keys(n)),r)return s;if(this.options.ignoreDecorators&&this.options.excludeExtraneousValues&&t){let o=Ct.defaultMetadataStorage.getExposedProperties(t,this.transformationType),c=Ct.defaultMetadataStorage.getExcludedProperties(t,this.transformationType);s=[...o,...c]}if(!this.options.ignoreDecorators&&t){let o=Ct.defaultMetadataStorage.getExposedProperties(t,this.transformationType);this.transformationType===Ue.TransformationType.PLAIN_TO_CLASS&&(o=o.map(l=>{let d=Ct.defaultMetadataStorage.findExposeMetadata(t,l);return d&&d.options&&d.options.name?d.options.name:l})),this.options.excludeExtraneousValues?s=o:s=s.concat(o);let c=Ct.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 d=Ct.defaultMetadataStorage.findExposeMetadata(t,l);return!d||!d.options?!0:this.checkVersion(d.options.since,d.options.until)})),this.options.groups&&this.options.groups.length?s=s.filter(l=>{let d=Ct.defaultMetadataStorage.findExposeMetadata(t,l);return!d||!d.options?!0:this.checkGroups(d.options.groups)}):s=s.filter(l=>{let d=Ct.defaultMetadataStorage.findExposeMetadata(t,l);return!d||!d.options||!d.options.groups||!d.options.groups.length})}return this.options.excludePrefixes&&this.options.excludePrefixes.length&&(s=s.filter(o=>this.options.excludePrefixes.every(c=>o.substr(0,c.length)!==c))),s=s.filter((o,c,l)=>l.indexOf(o)===c),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}};rh.TransformOperationExecutor=s0});var wO=m(ih=>{"use strict";Object.defineProperty(ih,"__esModule",{value:!0});ih.defaultOptions=void 0;ih.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 Rs=m(sh=>{"use strict";Object.defineProperty(sh,"__esModule",{value:!0});sh.ClassTransformer=void 0;var Cs=vO(),xs=$a(),Is=wO(),o0=class{instanceToPlain(t,n){return new Cs.TransformOperationExecutor(xs.TransformationType.CLASS_TO_PLAIN,a(a({},Is.defaultOptions),n)).transform(void 0,t,void 0,void 0,void 0,void 0)}classToPlainFromExist(t,n,r){return new Cs.TransformOperationExecutor(xs.TransformationType.CLASS_TO_PLAIN,a(a({},Is.defaultOptions),r)).transform(n,t,void 0,void 0,void 0,void 0)}plainToInstance(t,n,r){return new Cs.TransformOperationExecutor(xs.TransformationType.PLAIN_TO_CLASS,a(a({},Is.defaultOptions),r)).transform(void 0,n,t,void 0,void 0,void 0)}plainToClassFromExist(t,n,r){return new Cs.TransformOperationExecutor(xs.TransformationType.PLAIN_TO_CLASS,a(a({},Is.defaultOptions),r)).transform(t,n,void 0,void 0,void 0,void 0)}instanceToInstance(t,n){return new Cs.TransformOperationExecutor(xs.TransformationType.CLASS_TO_CLASS,a(a({},Is.defaultOptions),n)).transform(void 0,t,void 0,void 0,void 0,void 0)}classToClassFromExist(t,n,r){return new Cs.TransformOperationExecutor(xs.TransformationType.CLASS_TO_CLASS,a(a({},Is.defaultOptions),r)).transform(n,t,void 0,void 0,void 0,void 0)}serialize(t,n){return JSON.stringify(this.instanceToPlain(t,n))}deserialize(t,n,r){let i=JSON.parse(n);return this.plainToInstance(t,i,r)}deserializeArray(t,n,r){let i=JSON.parse(n);return this.plainToInstance(t,i,r)}};sh.ClassTransformer=o0});var bO=m(oh=>{"use strict";Object.defineProperty(oh,"__esModule",{value:!0});oh.Exclude=void 0;var rce=Ts();function ice(e={}){return function(t,n){rce.defaultMetadataStorage.addExcludeMetadata({target:t instanceof Function?t:t.constructor,propertyName:n,options:e})}}oh.Exclude=ice});var EO=m(ah=>{"use strict";Object.defineProperty(ah,"__esModule",{value:!0});ah.Expose=void 0;var sce=Ts();function oce(e={}){return function(t,n){sce.defaultMetadataStorage.addExposeMetadata({target:t instanceof Function?t:t.constructor,propertyName:n,options:e})}}ah.Expose=oce});var AO=m(ch=>{"use strict";Object.defineProperty(ch,"__esModule",{value:!0});ch.TransformInstanceToInstance=void 0;var ace=Rs();function cce(e){return function(t,n,r){let i=new ace.ClassTransformer,s=r.value;r.value=function(...o){let c=s.apply(this,o);return!!c&&(typeof c=="object"||typeof c=="function")&&typeof c.then=="function"?c.then(d=>i.instanceToInstance(d,e)):i.instanceToInstance(c,e)}}}ch.TransformInstanceToInstance=cce});var TO=m(lh=>{"use strict";Object.defineProperty(lh,"__esModule",{value:!0});lh.TransformInstanceToPlain=void 0;var lce=Rs();function uce(e){return function(t,n,r){let i=new lce.ClassTransformer,s=r.value;r.value=function(...o){let c=s.apply(this,o);return!!c&&(typeof c=="object"||typeof c=="function")&&typeof c.then=="function"?c.then(d=>i.instanceToPlain(d,e)):i.instanceToPlain(c,e)}}}lh.TransformInstanceToPlain=uce});var CO=m(uh=>{"use strict";Object.defineProperty(uh,"__esModule",{value:!0});uh.TransformPlainToInstance=void 0;var dce=Rs();function fce(e,t){return function(n,r,i){let s=new dce.ClassTransformer,o=i.value;i.value=function(...c){let l=o.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)}}}uh.TransformPlainToInstance=fce});var xO=m(dh=>{"use strict";Object.defineProperty(dh,"__esModule",{value:!0});dh.Transform=void 0;var mce=Ts();function pce(e,t={}){return function(n,r){mce.defaultMetadataStorage.addTransformMetadata({target:n.constructor,propertyName:r,transformFn:e,options:t})}}dh.Transform=pce});var IO=m(fh=>{"use strict";Object.defineProperty(fh,"__esModule",{value:!0});fh.Type=void 0;var hce=Ts();function _ce(e,t={}){return function(n,r){let i=Reflect.getMetadata("design:type",n,r);hce.defaultMetadataStorage.addTypeMetadata({target:n.constructor,propertyName:r,reflectedType:i,typeFunction:e,options:t})}}fh.Type=_ce});var RO=m(Ft=>{"use strict";var yce=Ft&&Ft.__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]}),Ci=Ft&&Ft.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&yce(t,e,n)};Object.defineProperty(Ft,"__esModule",{value:!0});Ci(bO(),Ft);Ci(EO(),Ft);Ci(AO(),Ft);Ci(TO(),Ft);Ci(CO(),Ft);Ci(xO(),Ft);Ci(IO(),Ft)});var NO=m(DO=>{"use strict";Object.defineProperty(DO,"__esModule",{value:!0})});var OO=m(PO=>{"use strict";Object.defineProperty(PO,"__esModule",{value:!0})});var qO=m(LO=>{"use strict";Object.defineProperty(LO,"__esModule",{value:!0})});var zO=m(MO=>{"use strict";Object.defineProperty(MO,"__esModule",{value:!0})});var kO=m(jO=>{"use strict";Object.defineProperty(jO,"__esModule",{value:!0})});var UO=m(FO=>{"use strict";Object.defineProperty(FO,"__esModule",{value:!0})});var GO=m(BO=>{"use strict";Object.defineProperty(BO,"__esModule",{value:!0})});var VO=m($O=>{"use strict";Object.defineProperty($O,"__esModule",{value:!0})});var HO=m(KO=>{"use strict";Object.defineProperty(KO,"__esModule",{value:!0})});var YO=m(WO=>{"use strict";Object.defineProperty(WO,"__esModule",{value:!0})});var QO=m(JO=>{"use strict";Object.defineProperty(JO,"__esModule",{value:!0})});var ZO=m(XO=>{"use strict";Object.defineProperty(XO,"__esModule",{value:!0})});var tL=m(eL=>{"use strict";Object.defineProperty(eL,"__esModule",{value:!0})});var rL=m(nL=>{"use strict";Object.defineProperty(nL,"__esModule",{value:!0})});var iL=m(He=>{"use strict";var gce=He&&He.__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]}),xt=He&&He.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&gce(t,e,n)};Object.defineProperty(He,"__esModule",{value:!0});xt(NO(),He);xt(OO(),He);xt(qO(),He);xt(zO(),He);xt(kO(),He);xt(UO(),He);xt(GO(),He);xt(VO(),He);xt(HO(),He);xt(YO(),He);xt(QO(),He);xt(ZO(),He);xt(tL(),He);xt(rL(),He)});var mh=m(Ae=>{"use strict";var Sce=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]}),a0=Ae&&Ae.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Sce(t,e,n)};Object.defineProperty(Ae,"__esModule",{value:!0});Ae.deserializeArray=Ae.deserialize=Ae.serialize=Ae.classToClassFromExist=Ae.instanceToInstance=Ae.plainToClassFromExist=Ae.plainToInstance=Ae.classToPlainFromExist=Ae.instanceToPlain=Ae.ClassTransformer=void 0;var vce=Rs(),wce=Rs();Object.defineProperty(Ae,"ClassTransformer",{enumerable:!0,get:function(){return wce.ClassTransformer}});a0(RO(),Ae);a0(iL(),Ae);a0($a(),Ae);var rr=new vce.ClassTransformer;function bce(e,t){return rr.instanceToPlain(e,t)}Ae.instanceToPlain=bce;function Ece(e,t,n){return rr.classToPlainFromExist(e,t,n)}Ae.classToPlainFromExist=Ece;function Ace(e,t,n){return rr.plainToInstance(e,t,n)}Ae.plainToInstance=Ace;function Tce(e,t,n){return rr.plainToClassFromExist(e,t,n)}Ae.plainToClassFromExist=Tce;function Cce(e,t){return rr.instanceToInstance(e,t)}Ae.instanceToInstance=Cce;function xce(e,t,n){return rr.classToClassFromExist(e,t,n)}Ae.classToClassFromExist=xce;function Ice(e,t){return rr.serialize(e,t)}Ae.serialize=Ice;function Rce(e,t,n){return rr.deserialize(e,t,n)}Ae.deserialize=Rce;function Dce(e,t,n){return rr.deserializeArray(e,t,n)}Ae.deserializeArray=Dce});var c0=m(ph=>{"use strict";Object.defineProperty(ph,"__esModule",{value:!0});ph.Rules=void 0;var Nce=mh(),Va=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 Nce.plainToInstance(Va,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}};ph.Rules=Va});var l0=m(hh=>{"use strict";Object.defineProperty(hh,"__esModule",{value:!0});hh.Version=void 0;var sL=mh(),Ds;(function(e){e[e.AppName=0]="AppName"})(Ds||(Ds={}));var Ns=class{constructor(t){this._keyBy=Ds.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 o of i){let c=sL.plainToInstance(Ns,o);s.push(c)}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 sL.plainToInstance(Ns,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 Ds.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=Ds.AppName,await t.ddbDocClient.put({TableName:t.tableName,Item:this.DbStruct})}get SK(){switch(this._keyBy){case Ds.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}};hh.Version=Ns});var cL=m(_h=>{"use strict";Object.defineProperty(_h,"__esModule",{value:!0});_h.Application=void 0;var oL=mh(),aL=c0(),Pce=l0(),ir;(function(e){e[e.AppName=0]="AppName",e[e.Applications=1]="Applications"})(ir||(ir={}));var Ps=class{constructor(t){Object.assign(this,t),this._keyBy=ir.AppName}static async UpdateDefaultRule(t){let{dbManager:n,key:r}=t,i=await aL.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=Pce.Version.LoadVersions({dbManager:r,key:n}),s=aL.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 oL.plainToInstance(Ps,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=oL.plainToInstance(Ps,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=ir.AppName;let n=t.ddbDocClient.put({TableName:t.tableName,Item:this.DbStruct});this._keyBy=ir.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 ir.Applications:return"applications";case ir.AppName:return`appName#${this.AppName}`.toLowerCase();default:throw new Error("Missing SaveBy handler")}}get SK(){switch(this._keyBy){case ir.Applications:return`appName#${this.AppName}`.toLowerCase();case ir.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}};_h.Application=Ps});var lL=m(jn=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});jn.Rules=jn.Version=jn.DBManager=jn.Application=void 0;var Oce=fO();Object.defineProperty(jn,"DBManager",{enumerable:!0,get:function(){return Oce.DBManager}});var Lce=cL();Object.defineProperty(jn,"Application",{enumerable:!0,get:function(){return Lce.Application}});var qce=c0();Object.defineProperty(jn,"Rules",{enumerable:!0,get:function(){return qce.Rules}});var Mce=l0();Object.defineProperty(jn,"Version",{enumerable:!0,get:function(){return Mce.Version}})});var It=m(u0=>{"use strict";u0.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})};u0.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 dL=m((_Ee,uL)=>{var Fr=require("constants"),zce=process.cwd,yh=null,jce=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return yh||(yh=zce.call(process)),yh};try{process.cwd()}catch{}typeof process.chdir=="function"&&(d0=process.chdir,process.chdir=function(e){yh=null,d0.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,d0));var d0;uL.exports=kce;function kce(e){Fr.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=o(e.chownSync),e.fchownSync=o(e.fchownSync),e.lchownSync=o(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,_){_&&process.nextTick(_)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(f,h,_,S){S&&process.nextTick(S)},e.lchownSync=function(){}),jce==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(f){function h(_,S,v){var y=Date.now(),R=0;f(_,S,function P(C){if(C&&(C.code==="EACCES"||C.code==="EPERM")&&Date.now()-y<6e4){setTimeout(function(){e.stat(S,function(k,pe){k&&k.code==="ENOENT"?f(_,S,P):v(C)})},R),R<100&&(R+=10);return}v&&v(C)})}return Object.setPrototypeOf&&Object.setPrototypeOf(h,f),h}(e.rename)),e.read=typeof e.read!="function"?e.read:function(f){function h(_,S,v,y,R,P){var C;if(P&&typeof P=="function"){var k=0;C=function(pe,Ot,dr){if(pe&&pe.code==="EAGAIN"&&k<10)return k++,f.call(e,_,S,v,y,R,C);P.apply(this,arguments)}}return f.call(e,_,S,v,y,R,C)}return Object.setPrototypeOf&&Object.setPrototypeOf(h,f),h}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(f){return function(h,_,S,v,y){for(var R=0;;)try{return f.call(e,h,_,S,v,y)}catch(P){if(P.code==="EAGAIN"&&R<10){R++;continue}throw P}}}(e.readSync);function t(f){f.lchmod=function(h,_,S){f.open(h,Fr.O_WRONLY|Fr.O_SYMLINK,_,function(v,y){if(v){S&&S(v);return}f.fchmod(y,_,function(R){f.close(y,function(P){S&&S(R||P)})})})},f.lchmodSync=function(h,_){var S=f.openSync(h,Fr.O_WRONLY|Fr.O_SYMLINK,_),v=!0,y;try{y=f.fchmodSync(S,_),v=!1}finally{if(v)try{f.closeSync(S)}catch{}else f.closeSync(S)}return y}}function n(f){Fr.hasOwnProperty("O_SYMLINK")&&f.futimes?(f.lutimes=function(h,_,S,v){f.open(h,Fr.O_SYMLINK,function(y,R){if(y){v&&v(y);return}f.futimes(R,_,S,function(P){f.close(R,function(C){v&&v(P||C)})})})},f.lutimesSync=function(h,_,S){var v=f.openSync(h,Fr.O_SYMLINK),y,R=!0;try{y=f.futimesSync(v,_,S),R=!1}finally{if(R)try{f.closeSync(v)}catch{}else f.closeSync(v)}return y}):f.futimes&&(f.lutimes=function(h,_,S,v){v&&process.nextTick(v)},f.lutimesSync=function(){})}function r(f){return f&&function(h,_,S){return f.call(e,h,_,function(v){d(v)&&(v=null),S&&S.apply(this,arguments)})}}function i(f){return f&&function(h,_){try{return f.call(e,h,_)}catch(S){if(!d(S))throw S}}}function s(f){return f&&function(h,_,S,v){return f.call(e,h,_,S,function(y){d(y)&&(y=null),v&&v.apply(this,arguments)})}}function o(f){return f&&function(h,_,S){try{return f.call(e,h,_,S)}catch(v){if(!d(v))throw v}}}function c(f){return f&&function(h,_,S){typeof _=="function"&&(S=_,_=null);function v(y,R){R&&(R.uid<0&&(R.uid+=4294967296),R.gid<0&&(R.gid+=4294967296)),S&&S.apply(this,arguments)}return _?f.call(e,h,_,v):f.call(e,h,v)}}function l(f){return f&&function(h,_){var S=_?f.call(e,h,_):f.call(e,h);return S&&(S.uid<0&&(S.uid+=4294967296),S.gid<0&&(S.gid+=4294967296)),S}}function d(f){if(!f||f.code==="ENOSYS")return!0;var h=!process.getuid||process.getuid()!==0;return!!(h&&(f.code==="EINVAL"||f.code==="EPERM"))}}});var pL=m((yEe,mL)=>{var fL=require("stream").Stream;mL.exports=Fce;function Fce(e){return{ReadStream:t,WriteStream:n};function t(r,i){if(!(this instanceof t))return new t(r,i);fL.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 o=Object.keys(i),c=0,l=o.length;c<l;c++){var d=o[c];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(f,h){if(f){s.emit("error",f),s.readable=!1;return}s.fd=h,s.emit("open",h),s._read()})}function n(r,i){if(!(this instanceof n))return new n(r,i);fL.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),o=0,c=s.length;o<c;o++){var l=s[o];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 _L=m((gEe,hL)=>{"use strict";hL.exports=Bce;var Uce=Object.getPrototypeOf||function(e){return e.__proto__};function Bce(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:Uce(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}});var mt=m((SEe,p0)=>{var qe=require("fs"),Gce=dL(),$ce=pL(),Vce=_L(),gh=require("util"),at,vh;typeof Symbol=="function"&&typeof Symbol.for=="function"?(at=Symbol.for("graceful-fs.queue"),vh=Symbol.for("graceful-fs.previous")):(at="___graceful-fs.queue",vh="___graceful-fs.previous");function Kce(){}function SL(e,t){Object.defineProperty(e,at,{get:function(){return t}})}var xi=Kce;gh.debuglog?xi=gh.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(xi=function(){var e=gh.format.apply(gh,arguments);e="GFS4: "+e.split(/\n/).join(`
29
- GFS4: `),console.error(e)});qe[at]||(yL=global[at]||[],SL(qe,yL),qe.close=function(e){function t(n,r){return e.call(qe,n,function(i){i||gL(),typeof r=="function"&&r.apply(this,arguments)})}return Object.defineProperty(t,vh,{value:e}),t}(qe.close),qe.closeSync=function(e){function t(n){e.apply(qe,arguments),gL()}return Object.defineProperty(t,vh,{value:e}),t}(qe.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){xi(qe[at]),require("assert").equal(qe[at].length,0)}));var yL;global[at]||SL(global,qe[at]);p0.exports=f0(Vce(qe));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!qe.__patched&&(p0.exports=f0(qe),qe.__patched=!0);function f0(e){Gce(e),e.gracefulify=f0,e.createReadStream=Ot,e.createWriteStream=dr;var t=e.readFile;e.readFile=n;function n(F,he,me){return typeof he=="function"&&(me=he,he=null),Te(F,he,me);function Te(Me,De,Ce,xe){return t(Me,De,function(Se){Se&&(Se.code==="EMFILE"||Se.code==="ENFILE")?Os([Te,[Me,De,Ce],Se,xe||Date.now(),Date.now()]):typeof Ce=="function"&&Ce.apply(this,arguments)})}}var r=e.writeFile;e.writeFile=i;function i(F,he,me,Te){return typeof me=="function"&&(Te=me,me=null),Me(F,he,me,Te);function Me(De,Ce,xe,Se,ze){return r(De,Ce,xe,function(we){we&&(we.code==="EMFILE"||we.code==="ENFILE")?Os([Me,[De,Ce,xe,Se],we,ze||Date.now(),Date.now()]):typeof Se=="function"&&Se.apply(this,arguments)})}}var s=e.appendFile;s&&(e.appendFile=o);function o(F,he,me,Te){return typeof me=="function"&&(Te=me,me=null),Me(F,he,me,Te);function Me(De,Ce,xe,Se,ze){return s(De,Ce,xe,function(we){we&&(we.code==="EMFILE"||we.code==="ENFILE")?Os([Me,[De,Ce,xe,Se],we,ze||Date.now(),Date.now()]):typeof Se=="function"&&Se.apply(this,arguments)})}}var c=e.copyFile;c&&(e.copyFile=l);function l(F,he,me,Te){return typeof me=="function"&&(Te=me,me=0),Me(F,he,me,Te);function Me(De,Ce,xe,Se,ze){return c(De,Ce,xe,function(we){we&&(we.code==="EMFILE"||we.code==="ENFILE")?Os([Me,[De,Ce,xe,Se],we,ze||Date.now(),Date.now()]):typeof Se=="function"&&Se.apply(this,arguments)})}}var d=e.readdir;e.readdir=h;var f=/^v[0-5]\./;function h(F,he,me){typeof he=="function"&&(me=he,he=null);var Te=f.test(process.version)?function(Ce,xe,Se,ze){return d(Ce,Me(Ce,xe,Se,ze))}:function(Ce,xe,Se,ze){return d(Ce,xe,Me(Ce,xe,Se,ze))};return Te(F,he,me);function Me(De,Ce,xe,Se){return function(ze,we){ze&&(ze.code==="EMFILE"||ze.code==="ENFILE")?Os([Te,[De,Ce,xe],ze,Se||Date.now(),Date.now()]):(we&&we.sort&&we.sort(),typeof xe=="function"&&xe.call(this,ze,we))}}}if(process.version.substr(0,4)==="v0.8"){var _=$ce(e);P=_.ReadStream,k=_.WriteStream}var S=e.ReadStream;S&&(P.prototype=Object.create(S.prototype),P.prototype.open=C);var v=e.WriteStream;v&&(k.prototype=Object.create(v.prototype),k.prototype.open=pe),Object.defineProperty(e,"ReadStream",{get:function(){return P},set:function(F){P=F},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return k},set:function(F){k=F},enumerable:!0,configurable:!0});var y=P;Object.defineProperty(e,"FileReadStream",{get:function(){return y},set:function(F){y=F},enumerable:!0,configurable:!0});var R=k;Object.defineProperty(e,"FileWriteStream",{get:function(){return R},set:function(F){R=F},enumerable:!0,configurable:!0});function P(F,he){return this instanceof P?(S.apply(this,arguments),this):P.apply(Object.create(P.prototype),arguments)}function C(){var F=this;ln(F.path,F.flags,F.mode,function(he,me){he?(F.autoClose&&F.destroy(),F.emit("error",he)):(F.fd=me,F.emit("open",me),F.read())})}function k(F,he){return this instanceof k?(v.apply(this,arguments),this):k.apply(Object.create(k.prototype),arguments)}function pe(){var F=this;ln(F.path,F.flags,F.mode,function(he,me){he?(F.destroy(),F.emit("error",he)):(F.fd=me,F.emit("open",me))})}function Ot(F,he){return new e.ReadStream(F,he)}function dr(F,he){return new e.WriteStream(F,he)}var fr=e.open;e.open=ln;function ln(F,he,me,Te){return typeof me=="function"&&(Te=me,me=null),Me(F,he,me,Te);function Me(De,Ce,xe,Se,ze){return fr(De,Ce,xe,function(we,Un){we&&(we.code==="EMFILE"||we.code==="ENFILE")?Os([Me,[De,Ce,xe,Se],we,ze||Date.now(),Date.now()]):typeof Se=="function"&&Se.apply(this,arguments)})}}return e}function Os(e){xi("ENQUEUE",e[0].name,e[1]),qe[at].push(e),m0()}var Sh;function gL(){for(var e=Date.now(),t=0;t<qe[at].length;++t)qe[at][t].length>2&&(qe[at][t][3]=e,qe[at][t][4]=e);m0()}function m0(){if(clearTimeout(Sh),Sh=void 0,qe[at].length!==0){var e=qe[at].shift(),t=e[0],n=e[1],r=e[2],i=e[3],s=e[4];if(i===void 0)xi("RETRY",t.name,n),t.apply(null,n);else if(Date.now()-i>=6e4){xi("TIMEOUT",t.name,n);var o=n.pop();typeof o=="function"&&o.call(null,r)}else{var c=Date.now()-s,l=Math.max(s-i,1),d=Math.min(l*1.2,100);c>=d?(xi("RETRY",t.name,n),t.apply(null,n.concat([i]))):qe[at].push(e)}Sh===void 0&&(Sh=setTimeout(m0,0))}}});var Ka=m(Ur=>{"use strict";var vL=It().fromCallback,St=mt(),Hce=["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 St[e]=="function");Object.keys(St).forEach(e=>{e!=="promises"&&(Ur[e]=St[e])});Hce.forEach(e=>{Ur[e]=vL(St[e])});Ur.exists=function(e,t){return typeof t=="function"?St.exists(e,t):new Promise(n=>St.exists(e,n))};Ur.read=function(e,t,n,r,i,s){return typeof s=="function"?St.read(e,t,n,r,i,s):new Promise((o,c)=>{St.read(e,t,n,r,i,(l,d,f)=>{if(l)return c(l);o({bytesRead:d,buffer:f})})})};Ur.write=function(e,t,...n){return typeof n[n.length-1]=="function"?St.write(e,t,...n):new Promise((r,i)=>{St.write(e,t,...n,(s,o,c)=>{if(s)return i(s);r({bytesWritten:o,buffer:c})})})};typeof St.writev=="function"&&(Ur.writev=function(e,t,...n){return typeof n[n.length-1]=="function"?St.writev(e,t,...n):new Promise((r,i)=>{St.writev(e,t,...n,(s,o,c)=>{if(s)return i(s);r({bytesWritten:o,buffers:c})})})});typeof St.realpath.native=="function"&&(Ur.realpath.native=vL(St.realpath.native))});var h0=m((wEe,wL)=>{wL.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 CL=m((bEe,_0)=>{"use strict";var Ls=Ka(),sr=require("path"),Wce=h0(),bL=Wce("10.12.0"),EL=e=>{if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(sr.parse(e).root,""))){let n=new Error(`Path contains invalid characters: ${e}`);throw n.code="EINVAL",n}},AL=e=>{let t={mode:511};return typeof e=="number"&&(e={mode:e}),a(a({},t),e)},TL=e=>{let t=new Error(`operation not permitted, mkdir '${e}'`);return t.code="EPERM",t.errno=-4048,t.path=e,t.syscall="mkdir",t};_0.exports.makeDir=async(e,t)=>{if(EL(e),t=AL(t),bL){let r=sr.resolve(e);return Ls.mkdir(r,{mode:t.mode,recursive:!0})}let n=async r=>{try{await Ls.mkdir(r,t.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(sr.dirname(r)===r)throw TL(r);if(i.message.includes("null bytes"))throw i;return await n(sr.dirname(r)),n(r)}try{if(!(await Ls.stat(r)).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return n(sr.resolve(e))};_0.exports.makeDirSync=(e,t)=>{if(EL(e),t=AL(t),bL){let r=sr.resolve(e);return Ls.mkdirSync(r,{mode:t.mode,recursive:!0})}let n=r=>{try{Ls.mkdirSync(r,t.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(sr.dirname(r)===r)throw TL(r);if(i.message.includes("null bytes"))throw i;return n(sr.dirname(r)),n(r)}try{if(!Ls.statSync(r).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return n(sr.resolve(e))}});var an=m((EEe,xL)=>{"use strict";var Yce=It().fromPromise,{makeDir:Jce,makeDirSync:y0}=CL(),g0=Yce(Jce);xL.exports={mkdirs:g0,mkdirsSync:y0,mkdirp:g0,mkdirpSync:y0,ensureDir:g0,ensureDirSync:y0}});var S0=m((AEe,IL)=>{"use strict";var qs=mt();function Qce(e,t,n,r){qs.open(e,"r+",(i,s)=>{if(i)return r(i);qs.futimes(s,t,n,o=>{qs.close(s,c=>{r&&r(o||c)})})})}function Xce(e,t,n){let r=qs.openSync(e,"r+");return qs.futimesSync(r,t,n),qs.closeSync(r)}IL.exports={utimesMillis:Qce,utimesMillisSync:Xce}});var Ha=m((TEe,PL)=>{"use strict";var Ms=Ka(),Rt=require("path"),Zce=require("util"),ele=h0(),wh=ele("10.5.0"),RL=e=>wh?Ms.stat(e,{bigint:!0}):Ms.stat(e),v0=e=>wh?Ms.statSync(e,{bigint:!0}):Ms.statSync(e);function tle(e,t){return Promise.all([RL(e),RL(t).catch(n=>{if(n.code==="ENOENT")return null;throw n})]).then(([n,r])=>({srcStat:n,destStat:r}))}function nle(e,t){let n,r=v0(e);try{n=v0(t)}catch(i){if(i.code==="ENOENT")return{srcStat:r,destStat:null};throw i}return{srcStat:r,destStat:n}}function rle(e,t,n,r){Zce.callbackify(tle)(e,t,(i,s)=>{if(i)return r(i);let{srcStat:o,destStat:c}=s;return c&&bh(o,c)?r(new Error("Source and destination must not be the same.")):o.isDirectory()&&w0(e,t)?r(new Error(Eh(e,t,n))):r(null,{srcStat:o,destStat:c})})}function ile(e,t,n){let{srcStat:r,destStat:i}=nle(e,t);if(i&&bh(r,i))throw new Error("Source and destination must not be the same.");if(r.isDirectory()&&w0(e,t))throw new Error(Eh(e,t,n));return{srcStat:r,destStat:i}}function DL(e,t,n,r,i){let s=Rt.resolve(Rt.dirname(e)),o=Rt.resolve(Rt.dirname(n));if(o===s||o===Rt.parse(o).root)return i();let c=(l,d)=>l?l.code==="ENOENT"?i():i(l):bh(t,d)?i(new Error(Eh(e,n,r))):DL(e,t,o,r,i);wh?Ms.stat(o,{bigint:!0},c):Ms.stat(o,c)}function NL(e,t,n,r){let i=Rt.resolve(Rt.dirname(e)),s=Rt.resolve(Rt.dirname(n));if(s===i||s===Rt.parse(s).root)return;let o;try{o=v0(s)}catch(c){if(c.code==="ENOENT")return;throw c}if(bh(t,o))throw new Error(Eh(e,n,r));return NL(e,t,s,r)}function bh(e,t){return!!(t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev&&(wh||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 w0(e,t){let n=Rt.resolve(e).split(Rt.sep).filter(i=>i),r=Rt.resolve(t).split(Rt.sep).filter(i=>i);return n.reduce((i,s,o)=>i&&r[o]===s,!0)}function Eh(e,t,n){return`Cannot ${n} '${e}' to a subdirectory of itself, '${t}'.`}PL.exports={checkPaths:rle,checkPathsSync:ile,checkParentPaths:DL,checkParentPathsSync:NL,isSrcSubdir:w0}});var zL=m((CEe,ML)=>{"use strict";var pt=mt(),Wa=require("path"),sle=an().mkdirsSync,ole=S0().utimesMillisSync,Ya=Ha();function ale(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;
30
31
 
31
- see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:r,destStat:i}=Ya.checkPathsSync(e,t,"copy");return Ya.checkParentPathsSync(e,r,t,"copy"),cle(i,e,t,n)}function cle(e,t,n,r){if(r.filter&&!r.filter(t,n))return;let i=Wa.dirname(n);return pt.existsSync(i)||sle(i),OL(e,t,n,r)}function OL(e,t,n,r){if(!(r.filter&&!r.filter(t,n)))return lle(e,t,n,r)}function lle(e,t,n,r){let s=(r.dereference?pt.statSync:pt.lstatSync)(t);if(s.isDirectory())return _le(s,e,t,n,r);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return ule(s,e,t,n,r);if(s.isSymbolicLink())return Sle(e,t,n,r)}function ule(e,t,n,r,i){return t?dle(e,n,r,i):LL(e,n,r,i)}function dle(e,t,n,r){if(r.overwrite)return pt.unlinkSync(n),LL(e,t,n,r);if(r.errorOnExist)throw new Error(`'${n}' already exists`)}function LL(e,t,n,r){return pt.copyFileSync(t,n),r.preserveTimestamps&&fle(e.mode,t,n),b0(n,e.mode)}function fle(e,t,n){return mle(e)&&ple(n,e),hle(t,n)}function mle(e){return(e&128)===0}function ple(e,t){return b0(e,t|128)}function b0(e,t){return pt.chmodSync(e,t)}function hle(e,t){let n=pt.statSync(e);return ole(t,n.atime,n.mtime)}function _le(e,t,n,r,i){if(!t)return yle(e.mode,n,r,i);if(t&&!t.isDirectory())throw new Error(`Cannot overwrite non-directory '${r}' with directory '${n}'.`);return qL(n,r,i)}function yle(e,t,n,r){return pt.mkdirSync(n),qL(t,n,r),b0(n,e)}function qL(e,t,n){pt.readdirSync(e).forEach(r=>gle(r,e,t,n))}function gle(e,t,n,r){let i=Wa.join(t,e),s=Wa.join(n,e),{destStat:o}=Ya.checkPathsSync(i,s,"copy");return OL(o,i,s,r)}function Sle(e,t,n,r){let i=pt.readlinkSync(t);if(r.dereference&&(i=Wa.resolve(process.cwd(),i)),e){let s;try{s=pt.readlinkSync(n)}catch(o){if(o.code==="EINVAL"||o.code==="UNKNOWN")return pt.symlinkSync(i,n);throw o}if(r.dereference&&(s=Wa.resolve(process.cwd(),s)),Ya.isSrcSubdir(i,s))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${s}'.`);if(pt.statSync(n).isDirectory()&&Ya.isSrcSubdir(s,i))throw new Error(`Cannot overwrite '${s}' with '${i}'.`);return vle(i,n)}else return pt.symlinkSync(i,n)}function vle(e,t){return pt.unlinkSync(t),pt.symlinkSync(e,t)}ML.exports=ale});var E0=m((xEe,jL)=>{"use strict";jL.exports={copySync:zL()}});var Br=m((IEe,FL)=>{"use strict";var wle=It().fromPromise,kL=Ka();function ble(e){return kL.access(e).then(()=>!0).catch(()=>!1)}FL.exports={pathExists:wle(ble),pathExistsSync:kL.existsSync}});var YL=m((REe,WL)=>{"use strict";var Dt=mt(),Ja=require("path"),Ele=an().mkdirs,Ale=Br().pathExists,Tle=S0().utimesMillis,Qa=Ha();function Cle(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;
32
33
 
33
- see https://github.com/jprichardson/node-fs-extra/issues/269`),Qa.checkPaths(e,t,"copy",(i,s)=>{if(i)return r(i);let{srcStat:o,destStat:c}=s;Qa.checkParentPaths(e,o,t,"copy",l=>l?r(l):n.filter?$L(UL,c,e,t,n,r):UL(c,e,t,n,r))})}function UL(e,t,n,r,i){let s=Ja.dirname(n);Ale(s,(o,c)=>{if(o)return i(o);if(c)return A0(e,t,n,r,i);Ele(s,l=>l?i(l):A0(e,t,n,r,i))})}function $L(e,t,n,r,i,s){Promise.resolve(i.filter(n,r)).then(o=>o?e(t,n,r,i,s):s(),o=>s(o))}function A0(e,t,n,r,i){return r.filter?$L(BL,e,t,n,r,i):BL(e,t,n,r,i)}function BL(e,t,n,r,i){(r.dereference?Dt.stat:Dt.lstat)(t,(o,c)=>{if(o)return i(o);if(c.isDirectory())return Ole(c,e,t,n,r,i);if(c.isFile()||c.isCharacterDevice()||c.isBlockDevice())return xle(c,e,t,n,r,i);if(c.isSymbolicLink())return Mle(e,t,n,r,i)})}function xle(e,t,n,r,i,s){return t?Ile(e,n,r,i,s):VL(e,n,r,i,s)}function Ile(e,t,n,r,i){if(r.overwrite)Dt.unlink(n,s=>s?i(s):VL(e,t,n,r,i));else return r.errorOnExist?i(new Error(`'${n}' already exists`)):i()}function VL(e,t,n,r,i){Dt.copyFile(t,n,s=>s?i(s):r.preserveTimestamps?Rle(e.mode,t,n,i):Ah(n,e.mode,i))}function Rle(e,t,n,r){return Dle(e)?Nle(n,e,i=>i?r(i):GL(e,t,n,r)):GL(e,t,n,r)}function Dle(e){return(e&128)===0}function Nle(e,t,n){return Ah(e,t|128,n)}function GL(e,t,n,r){Ple(t,n,i=>i?r(i):Ah(n,e,r))}function Ah(e,t,n){return Dt.chmod(e,t,n)}function Ple(e,t,n){Dt.stat(e,(r,i)=>r?n(r):Tle(t,i.atime,i.mtime,n))}function Ole(e,t,n,r,i,s){return t?t&&!t.isDirectory()?s(new Error(`Cannot overwrite non-directory '${r}' with directory '${n}'.`)):KL(n,r,i,s):Lle(e.mode,n,r,i,s)}function Lle(e,t,n,r,i){Dt.mkdir(n,s=>{if(s)return i(s);KL(t,n,r,o=>o?i(o):Ah(n,e,i))})}function KL(e,t,n,r){Dt.readdir(e,(i,s)=>i?r(i):HL(s,e,t,n,r))}function HL(e,t,n,r,i){let s=e.pop();return s?qle(e,s,t,n,r,i):i()}function qle(e,t,n,r,i,s){let o=Ja.join(n,t),c=Ja.join(r,t);Qa.checkPaths(o,c,"copy",(l,d)=>{if(l)return s(l);let{destStat:f}=d;A0(f,o,c,i,h=>h?s(h):HL(e,n,r,i,s))})}function Mle(e,t,n,r,i){Dt.readlink(t,(s,o)=>{if(s)return i(s);if(r.dereference&&(o=Ja.resolve(process.cwd(),o)),e)Dt.readlink(n,(c,l)=>c?c.code==="EINVAL"||c.code==="UNKNOWN"?Dt.symlink(o,n,i):i(c):(r.dereference&&(l=Ja.resolve(process.cwd(),l)),Qa.isSrcSubdir(o,l)?i(new Error(`Cannot copy '${o}' to a subdirectory of itself, '${l}'.`)):e.isDirectory()&&Qa.isSrcSubdir(l,o)?i(new Error(`Cannot overwrite '${l}' with '${o}'.`)):zle(o,n,i)));else return Dt.symlink(o,n,i)})}function zle(e,t,n){Dt.unlink(t,r=>r?n(r):Dt.symlink(e,t,n))}WL.exports=Cle});var T0=m((DEe,JL)=>{"use strict";var jle=It().fromCallback;JL.exports={copy:jle(YL())}});var sq=m((NEe,iq)=>{"use strict";var QL=mt(),tq=require("path"),Re=require("assert"),Xa=process.platform==="win32";function nq(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(n=>{e[n]=e[n]||QL[n],n=n+"Sync",e[n]=e[n]||QL[n]}),e.maxBusyTries=e.maxBusyTries||3}function C0(e,t,n){let r=0;typeof t=="function"&&(n=t,t={}),Re(e,"rimraf: missing path"),Re.strictEqual(typeof e,"string","rimraf: path should be a string"),Re.strictEqual(typeof n,"function","rimraf: callback function required"),Re(t,"rimraf: invalid options argument provided"),Re.strictEqual(typeof t,"object","rimraf: options should be object"),nq(t),XL(e,t,function i(s){if(s){if((s.code==="EBUSY"||s.code==="ENOTEMPTY"||s.code==="EPERM")&&r<t.maxBusyTries){r++;let o=r*100;return setTimeout(()=>XL(e,t,i),o)}s.code==="ENOENT"&&(s=null)}n(s)})}function XL(e,t,n){Re(e),Re(t),Re(typeof n=="function"),t.lstat(e,(r,i)=>{if(r&&r.code==="ENOENT")return n(null);if(r&&r.code==="EPERM"&&Xa)return ZL(e,t,r,n);if(i&&i.isDirectory())return Th(e,t,r,n);t.unlink(e,s=>{if(s){if(s.code==="ENOENT")return n(null);if(s.code==="EPERM")return Xa?ZL(e,t,s,n):Th(e,t,s,n);if(s.code==="EISDIR")return Th(e,t,s,n)}return n(s)})})}function ZL(e,t,n,r){Re(e),Re(t),Re(typeof r=="function"),t.chmod(e,438,i=>{i?r(i.code==="ENOENT"?null:n):t.stat(e,(s,o)=>{s?r(s.code==="ENOENT"?null:n):o.isDirectory()?Th(e,t,n,r):t.unlink(e,r)})})}function eq(e,t,n){let r;Re(e),Re(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()?Ch(e,t,n):t.unlinkSync(e)}function Th(e,t,n,r){Re(e),Re(t),Re(typeof r=="function"),t.rmdir(e,i=>{i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?kle(e,t,r):i&&i.code==="ENOTDIR"?r(n):r(i)})}function kle(e,t,n){Re(e),Re(t),Re(typeof n=="function"),t.readdir(e,(r,i)=>{if(r)return n(r);let s=i.length,o;if(s===0)return t.rmdir(e,n);i.forEach(c=>{C0(tq.join(e,c),t,l=>{if(!o){if(l)return n(o=l);--s===0&&t.rmdir(e,n)}})})})}function rq(e,t){let n;t=t||{},nq(t),Re(e,"rimraf: missing path"),Re.strictEqual(typeof e,"string","rimraf: path should be a string"),Re(t,"rimraf: missing options"),Re.strictEqual(typeof t,"object","rimraf: options should be object");try{n=t.lstatSync(e)}catch(r){if(r.code==="ENOENT")return;r.code==="EPERM"&&Xa&&eq(e,t,r)}try{n&&n.isDirectory()?Ch(e,t,null):t.unlinkSync(e)}catch(r){if(r.code==="ENOENT")return;if(r.code==="EPERM")return Xa?eq(e,t,r):Ch(e,t,r);if(r.code!=="EISDIR")throw r;Ch(e,t,r)}}function Ch(e,t,n){Re(e),Re(t);try{t.rmdirSync(e)}catch(r){if(r.code==="ENOTDIR")throw n;if(r.code==="ENOTEMPTY"||r.code==="EEXIST"||r.code==="EPERM")Fle(e,t);else if(r.code!=="ENOENT")throw r}}function Fle(e,t){if(Re(e),Re(t),t.readdirSync(e).forEach(n=>rq(tq.join(e,n),t)),Xa){let n=Date.now();do try{return t.rmdirSync(e,t)}catch{}while(Date.now()-n<500)}else return t.rmdirSync(e,t)}iq.exports=C0;C0.sync=rq});var Za=m((PEe,aq)=>{"use strict";var Ule=It().fromCallback,oq=sq();aq.exports={remove:Ule(oq),removeSync:oq.sync}});var hq=m((OEe,pq)=>{"use strict";var Ble=It().fromCallback,uq=mt(),dq=require("path"),fq=an(),mq=Za(),cq=Ble(function(t,n){n=n||function(){},uq.readdir(t,(r,i)=>{if(r)return fq.mkdirs(t,n);i=i.map(o=>dq.join(t,o)),s();function s(){let o=i.pop();if(!o)return n();mq.remove(o,c=>{if(c)return n(c);s()})}})});function lq(e){let t;try{t=uq.readdirSync(e)}catch{return fq.mkdirsSync(e)}t.forEach(n=>{n=dq.join(e,n),mq.removeSync(n)})}pq.exports={emptyDirSync:lq,emptydirSync:lq,emptyDir:cq,emptydir:cq}});var Sq=m((LEe,gq)=>{"use strict";var Gle=It().fromCallback,_q=require("path"),Gr=mt(),yq=an();function $le(e,t){function n(){Gr.writeFile(e,"",r=>{if(r)return t(r);t()})}Gr.stat(e,(r,i)=>{if(!r&&i.isFile())return t();let s=_q.dirname(e);Gr.stat(s,(o,c)=>{if(o)return o.code==="ENOENT"?yq.mkdirs(s,l=>{if(l)return t(l);n()}):t(o);c.isDirectory()?n():Gr.readdir(s,l=>{if(l)return t(l)})})})}function Vle(e){let t;try{t=Gr.statSync(e)}catch{}if(t&&t.isFile())return;let n=_q.dirname(e);try{Gr.statSync(n).isDirectory()||Gr.readdirSync(n)}catch(r){if(r&&r.code==="ENOENT")yq.mkdirsSync(n);else throw r}Gr.writeFileSync(e,"")}gq.exports={createFile:Gle($le),createFileSync:Vle}});var Aq=m((qEe,Eq)=>{"use strict";var Kle=It().fromCallback,wq=require("path"),Ii=mt(),bq=an(),vq=Br().pathExists;function Hle(e,t,n){function r(i,s){Ii.link(i,s,o=>{if(o)return n(o);n(null)})}vq(t,(i,s)=>{if(i)return n(i);if(s)return n(null);Ii.lstat(e,o=>{if(o)return o.message=o.message.replace("lstat","ensureLink"),n(o);let c=wq.dirname(t);vq(c,(l,d)=>{if(l)return n(l);if(d)return r(e,t);bq.mkdirs(c,f=>{if(f)return n(f);r(e,t)})})})})}function Wle(e,t){if(Ii.existsSync(t))return;try{Ii.lstatSync(e)}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}let r=wq.dirname(t);return Ii.existsSync(r)||bq.mkdirsSync(r),Ii.linkSync(e,t)}Eq.exports={createLink:Kle(Hle),createLinkSync:Wle}});var Cq=m((MEe,Tq)=>{"use strict";var $r=require("path"),ec=mt(),Yle=Br().pathExists;function Jle(e,t,n){if($r.isAbsolute(e))return ec.lstat(e,r=>r?(r.message=r.message.replace("lstat","ensureSymlink"),n(r)):n(null,{toCwd:e,toDst:e}));{let r=$r.dirname(t),i=$r.join(r,e);return Yle(i,(s,o)=>s?n(s):o?n(null,{toCwd:i,toDst:e}):ec.lstat(e,c=>c?(c.message=c.message.replace("lstat","ensureSymlink"),n(c)):n(null,{toCwd:e,toDst:$r.relative(r,e)})))}}function Qle(e,t){let n;if($r.isAbsolute(e)){if(n=ec.existsSync(e),!n)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{let r=$r.dirname(t),i=$r.join(r,e);if(n=ec.existsSync(i),n)return{toCwd:i,toDst:e};if(n=ec.existsSync(e),!n)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:$r.relative(r,e)}}}Tq.exports={symlinkPaths:Jle,symlinkPathsSync:Qle}});var Rq=m((zEe,Iq)=>{"use strict";var xq=mt();function Xle(e,t,n){if(n=typeof t=="function"?t:n,t=typeof t=="function"?!1:t,t)return n(null,t);xq.lstat(e,(r,i)=>{if(r)return n(null,"file");t=i&&i.isDirectory()?"dir":"file",n(null,t)})}function Zle(e,t){let n;if(t)return t;try{n=xq.lstatSync(e)}catch{return"file"}return n&&n.isDirectory()?"dir":"file"}Iq.exports={symlinkType:Xle,symlinkTypeSync:Zle}});var Mq=m((jEe,qq)=>{"use strict";var eue=It().fromCallback,Nq=require("path"),zs=mt(),Pq=an(),tue=Pq.mkdirs,nue=Pq.mkdirsSync,Oq=Cq(),rue=Oq.symlinkPaths,iue=Oq.symlinkPathsSync,Lq=Rq(),sue=Lq.symlinkType,oue=Lq.symlinkTypeSync,Dq=Br().pathExists;function aue(e,t,n,r){r=typeof n=="function"?n:r,n=typeof n=="function"?!1:n,Dq(t,(i,s)=>{if(i)return r(i);if(s)return r(null);rue(e,t,(o,c)=>{if(o)return r(o);e=c.toDst,sue(c.toCwd,n,(l,d)=>{if(l)return r(l);let f=Nq.dirname(t);Dq(f,(h,_)=>{if(h)return r(h);if(_)return zs.symlink(e,t,d,r);tue(f,S=>{if(S)return r(S);zs.symlink(e,t,d,r)})})})})})}function cue(e,t,n){if(zs.existsSync(t))return;let i=iue(e,t);e=i.toDst,n=oue(i.toCwd,n);let s=Nq.dirname(t);return zs.existsSync(s)||nue(s),zs.symlinkSync(e,t,n)}qq.exports={createSymlink:eue(aue),createSymlinkSync:cue}});var jq=m((kEe,zq)=>{"use strict";var xh=Sq(),Ih=Aq(),Rh=Mq();zq.exports={createFile:xh.createFile,createFileSync:xh.createFileSync,ensureFile:xh.createFile,ensureFileSync:xh.createFileSync,createLink:Ih.createLink,createLinkSync:Ih.createLinkSync,ensureLink:Ih.createLink,ensureLinkSync:Ih.createLinkSync,createSymlink:Rh.createSymlink,createSymlinkSync:Rh.createSymlinkSync,ensureSymlink:Rh.createSymlink,ensureSymlinkSync:Rh.createSymlinkSync}});var Dh=m((FEe,kq)=>{function lue(e,{EOL:t=`
34
- `,finalEOL:n=!0,replacer:r=null,spaces:i}={}){let s=n?t:"";return JSON.stringify(e,r,i).replace(/\n/g,t)+s}function uue(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}kq.exports={stringify:lue,stripBom:uue}});var Gq=m((UEe,Bq)=>{var js;try{js=mt()}catch{js=require("fs")}var Nh=It(),{stringify:Fq,stripBom:Uq}=Dh();async function due(e,t={}){typeof t=="string"&&(t={encoding:t});let n=t.fs||js,r="throws"in t?t.throws:!0,i=await Nh.fromCallback(n.readFile)(e,t);i=Uq(i);let s;try{s=JSON.parse(i,t?t.reviver:null)}catch(o){if(r)throw o.message=`${e}: ${o.message}`,o;return null}return s}var fue=Nh.fromPromise(due);function mue(e,t={}){typeof t=="string"&&(t={encoding:t});let n=t.fs||js,r="throws"in t?t.throws:!0;try{let i=n.readFileSync(e,t);return i=Uq(i),JSON.parse(i,t.reviver)}catch(i){if(r)throw i.message=`${e}: ${i.message}`,i;return null}}async function pue(e,t,n={}){let r=n.fs||js,i=Fq(t,n);await Nh.fromCallback(r.writeFile)(e,i,n)}var hue=Nh.fromPromise(pue);function _ue(e,t,n={}){let r=n.fs||js,i=Fq(t,n);return r.writeFileSync(e,i,n)}var yue={readFile:fue,readFileSync:mue,writeFile:hue,writeFileSync:_ue};Bq.exports=yue});var Vq=m((BEe,$q)=>{"use strict";var Ph=Gq();$q.exports={readJson:Ph.readFile,readJsonSync:Ph.readFileSync,writeJson:Ph.writeFile,writeJsonSync:Ph.writeFileSync}});var Oh=m((GEe,Wq)=>{"use strict";var gue=It().fromCallback,tc=mt(),Kq=require("path"),Hq=an(),Sue=Br().pathExists;function vue(e,t,n,r){typeof n=="function"&&(r=n,n="utf8");let i=Kq.dirname(e);Sue(i,(s,o)=>{if(s)return r(s);if(o)return tc.writeFile(e,t,n,r);Hq.mkdirs(i,c=>{if(c)return r(c);tc.writeFile(e,t,n,r)})})}function wue(e,...t){let n=Kq.dirname(e);if(tc.existsSync(n))return tc.writeFileSync(e,...t);Hq.mkdirsSync(n),tc.writeFileSync(e,...t)}Wq.exports={outputFile:gue(vue),outputFileSync:wue}});var Jq=m(($Ee,Yq)=>{"use strict";var{stringify:bue}=Dh(),{outputFile:Eue}=Oh();async function Aue(e,t,n={}){let r=bue(t,n);await Eue(e,r,n)}Yq.exports=Aue});var Xq=m((VEe,Qq)=>{"use strict";var{stringify:Tue}=Dh(),{outputFileSync:Cue}=Oh();function xue(e,t,n){let r=Tue(t,n);Cue(e,r,n)}Qq.exports=xue});var eM=m((KEe,Zq)=>{"use strict";var Iue=It().fromPromise,vt=Vq();vt.outputJson=Iue(Jq());vt.outputJsonSync=Xq();vt.outputJSON=vt.outputJson;vt.outputJSONSync=vt.outputJsonSync;vt.writeJSON=vt.writeJson;vt.writeJSONSync=vt.writeJsonSync;vt.readJSON=vt.readJson;vt.readJSONSync=vt.readJsonSync;Zq.exports=vt});var oM=m((HEe,sM)=>{"use strict";var rM=mt(),Rue=require("path"),Due=E0().copySync,iM=Za().removeSync,Nue=an().mkdirpSync,tM=Ha();function Pue(e,t,n){n=n||{};let r=n.overwrite||n.clobber||!1,{srcStat:i}=tM.checkPathsSync(e,t,"move");return tM.checkParentPathsSync(e,i,t,"move"),Nue(Rue.dirname(t)),Oue(e,t,r)}function Oue(e,t,n){if(n)return iM(t),nM(e,t,n);if(rM.existsSync(t))throw new Error("dest already exists.");return nM(e,t,n)}function nM(e,t,n){try{rM.renameSync(e,t)}catch(r){if(r.code!=="EXDEV")throw r;return Lue(e,t,n)}}function Lue(e,t,n){return Due(e,t,{overwrite:n,errorOnExist:!0}),iM(e)}sM.exports=Pue});var cM=m((WEe,aM)=>{"use strict";aM.exports={moveSync:oM()}});var mM=m((YEe,fM)=>{"use strict";var que=mt(),Mue=require("path"),zue=T0().copy,dM=Za().remove,jue=an().mkdirp,kue=Br().pathExists,lM=Ha();function Fue(e,t,n,r){typeof n=="function"&&(r=n,n={});let i=n.overwrite||n.clobber||!1;lM.checkPaths(e,t,"move",(s,o)=>{if(s)return r(s);let{srcStat:c}=o;lM.checkParentPaths(e,c,t,"move",l=>{if(l)return r(l);jue(Mue.dirname(t),d=>d?r(d):Uue(e,t,i,r))})})}function Uue(e,t,n,r){if(n)return dM(t,i=>i?r(i):uM(e,t,n,r));kue(t,(i,s)=>i?r(i):s?r(new Error("dest already exists.")):uM(e,t,n,r))}function uM(e,t,n,r){que.rename(e,t,i=>i?i.code!=="EXDEV"?r(i):Bue(e,t,n,r):r())}function Bue(e,t,n,r){zue(e,t,{overwrite:n,errorOnExist:!0},s=>s?r(s):dM(e,r))}fM.exports=Fue});var hM=m((JEe,pM)=>{"use strict";var Gue=It().fromCallback;pM.exports={move:Gue(mM())}});var I0=m((QEe,x0)=>{"use strict";x0.exports=a(a(a(a(a(a(a(a(a(a(a(a({},Ka()),E0()),T0()),hq()),jq()),eM()),an()),cM()),hM()),Oh()),Br()),Za());var _M=require("fs");Object.getOwnPropertyDescriptor(_M,"promises")&&Object.defineProperty(x0.exports,"promises",{get(){return _M.promises}})});var bM=m((XEe,wM)=>{wM.exports=nc;nc.default=nc;nc.stable=SM;nc.stableStringify=SM;var Lh="[...]",yM="[Circular]",Di=[],Ri=[];function gM(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function nc(e,t,n,r){typeof r>"u"&&(r=gM()),R0(e,"",0,[],void 0,0,r);var i;try{Ri.length===0?i=JSON.stringify(e,t,n):i=JSON.stringify(e,vM(t),n)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;Di.length!==0;){var s=Di.pop();s.length===4?Object.defineProperty(s[0],s[1],s[3]):s[0][s[1]]=s[2]}}return i}function ks(e,t,n,r){var i=Object.getOwnPropertyDescriptor(r,n);i.get!==void 0?i.configurable?(Object.defineProperty(r,n,{value:e}),Di.push([r,n,t,i])):Ri.push([t,n,e]):(r[n]=e,Di.push([r,n,t]))}function R0(e,t,n,r,i,s,o){s+=1;var c;if(typeof e=="object"&&e!==null){for(c=0;c<r.length;c++)if(r[c]===e){ks(yM,e,t,i);return}if(typeof o.depthLimit<"u"&&s>o.depthLimit){ks(Lh,e,t,i);return}if(typeof o.edgesLimit<"u"&&n+1>o.edgesLimit){ks(Lh,e,t,i);return}if(r.push(e),Array.isArray(e))for(c=0;c<e.length;c++)R0(e[c],c,c,r,e,s,o);else{var l=Object.keys(e);for(c=0;c<l.length;c++){var d=l[c];R0(e[d],d,c,r,e,s,o)}}r.pop()}}function $ue(e,t){return e<t?-1:e>t?1:0}function SM(e,t,n,r){typeof r>"u"&&(r=gM());var i=D0(e,"",0,[],void 0,0,r)||e,s;try{Ri.length===0?s=JSON.stringify(i,t,n):s=JSON.stringify(i,vM(t),n)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;Di.length!==0;){var o=Di.pop();o.length===4?Object.defineProperty(o[0],o[1],o[3]):o[0][o[1]]=o[2]}}return s}function D0(e,t,n,r,i,s,o){s+=1;var c;if(typeof e=="object"&&e!==null){for(c=0;c<r.length;c++)if(r[c]===e){ks(yM,e,t,i);return}try{if(typeof e.toJSON=="function")return}catch{return}if(typeof o.depthLimit<"u"&&s>o.depthLimit){ks(Lh,e,t,i);return}if(typeof o.edgesLimit<"u"&&n+1>o.edgesLimit){ks(Lh,e,t,i);return}if(r.push(e),Array.isArray(e))for(c=0;c<e.length;c++)D0(e[c],c,c,r,e,s,o);else{var l={},d=Object.keys(e).sort($ue);for(c=0;c<d.length;c++){var f=d[c];D0(e[f],f,c,r,e,s,o),l[f]=e[f]}if(typeof i<"u")Di.push([i,t,e]),i[t]=l;else return l}r.pop()}}function vM(e){return e=typeof e<"u"?e:function(t,n){return n},function(t,n){if(Ri.length>0)for(var r=0;r<Ri.length;r++){var i=Ri[r];if(i[1]===t&&i[0]===n){n=i[2],Ri.splice(r,1);break}}return e.call(this,t,n)}}});var AM=m((ZEe,EM)=>{"use strict";var Vue=bM(),rc=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 o={};if(rc.isError(n)&&(this._error=n,o.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,o),s.dynamicMeta&&typeof s.dynamicMeta=="function"){let c=s.dynamicMeta(this,s);typeof c=="object"&&(this.meta=Object.assign(this.meta,c))}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 Vue(this.value,this._replacer,t?4:0)}static isError(t){return!!t&&typeof t=="object"&&(t instanceof Error||t.hasOwnProperty("message")&&t.hasOwnProperty("stack"))}};EM.exports=rc});var CM=m((eAe,TM)=>{"use strict";var Kue=require("events"),Hue=AM(),ic=class extends Kue{constructor(t={},n={}){super(),this.LambdaLog=ic,this.LogMessage=Hue,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={},o=[])=>this.log(r,i,s,o)})}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),o=this._logLevels[t];return typeof o=="function"&&(o=o.call(this,s)),o?(this.options.silent||this.console[o](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(o=>s(this.log("info",o,n,r))).catch(o=>s(this.log("error",o,n,r)))})}};TM.exports=ic});var IM=m((tAe,xM)=>{"use strict";var Wue=CM(),Yue=new Wue;xM.exports=Yue});var Fs=m((sc,N0)=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});sc.default=Jue;function qh(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?qh=function(n){return typeof n}:qh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},qh(e)}function Jue(e){var t=typeof e=="string"||e instanceof String;if(!t){var n=qh(e);throw e===null?n="null":n==="object"&&(n=e.constructor.name),new TypeError("Expected a string but received a ".concat(n))}}N0.exports=sc.default;N0.exports.default=sc.default});var Mh=m((oc,P0)=>{"use strict";Object.defineProperty(oc,"__esModule",{value:!0});oc.default=Que;function Que(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var n in t)typeof e[n]>"u"&&(e[n]=t[n]);return e}P0.exports=oc.default;P0.exports.default=oc.default});var RM=m((ac,O0)=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});ac.default=ede;var Xue=Zue(Fs());function Zue(e){return e&&e.__esModule?e:{default:e}}function zh(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?zh=function(n){return typeof n}:zh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},zh(e)}function ede(e,t){(0,Xue.default)(e);var n,r;zh(t)==="object"?(n=t.min||0,r=t.max):(n=arguments[1],r=arguments[2]);var i=encodeURI(e).split(/%..|./).length-1;return i>=n&&(typeof r>"u"||i<=r)}O0.exports=ac.default;O0.exports.default=ac.default});var q0=m((cc,L0)=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});cc.default=ide;var tde=DM(Fs()),nde=DM(Mh());function DM(e){return e&&e.__esModule?e:{default:e}}var rde={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1};function ide(e,t){(0,tde.default)(e),t=(0,nde.default)(t,rde),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))})}L0.exports=cc.default;L0.exports.default=cc.default});var jh=m((lc,z0)=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});lc.default=M0;var sde=ode(Fs());function ode(e){return e&&e.__esModule?e:{default:e}}var NM="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",Vr="(".concat(NM,"[.]){3}").concat(NM),ade=new RegExp("^".concat(Vr,"$")),We="(?:[0-9a-fA-F]{1,4})",cde=new RegExp("^("+"(?:".concat(We,":){7}(?:").concat(We,"|:)|")+"(?:".concat(We,":){6}(?:").concat(Vr,"|:").concat(We,"|:)|")+"(?:".concat(We,":){5}(?::").concat(Vr,"|(:").concat(We,"){1,2}|:)|")+"(?:".concat(We,":){4}(?:(:").concat(We,"){0,1}:").concat(Vr,"|(:").concat(We,"){1,3}|:)|")+"(?:".concat(We,":){3}(?:(:").concat(We,"){0,2}:").concat(Vr,"|(:").concat(We,"){1,4}|:)|")+"(?:".concat(We,":){2}(?:(:").concat(We,"){0,3}:").concat(Vr,"|(:").concat(We,"){1,5}|:)|")+"(?:".concat(We,":){1}(?:(:").concat(We,"){0,4}:").concat(Vr,"|(:").concat(We,"){1,6}|:)|")+"(?::((?::".concat(We,"){0,5}:").concat(Vr,"|(?::").concat(We,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");function M0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if((0,sde.default)(e),t=String(t),!t)return M0(e,4)||M0(e,6);if(t==="4"){if(!ade.test(e))return!1;var n=e.split(".").sort(function(r,i){return r-i});return n[3]<=255}return t==="6"?!!cde.test(e):!1}z0.exports=lc.default;z0.exports.default=lc.default});var OM=m((dc,k0)=>{"use strict";Object.defineProperty(dc,"__esModule",{value:!0});dc.default=wde;var lde=uc(Fs()),ude=uc(Mh()),j0=uc(RM()),dde=uc(q0()),PM=uc(jh());function uc(e){return e&&e.__esModule?e:{default:e}}var fde={allow_display_name:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[]},mde=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,pde=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,hde=/^[a-z\d]+$/,_de=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,yde=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,gde=/^([\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,Sde=254;function vde(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 wde(e,t){if((0,lde.default)(e),t=(0,ude.default)(t,fde),t.require_display_name||t.allow_display_name){var n=e.match(mde);if(n){var r=n[1];if(e=e.replace(r,"").replace(/(^<|>$)/g,""),r.endsWith(" ")&&(r=r.substr(0,r.length-1)),!vde(r))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>Sde)return!1;var i=e.split("@"),s=i.pop(),o=s.toLowerCase();if(t.host_blacklist.includes(o))return!1;var c=i.join("@");if(t.domain_specific_validation&&(o==="gmail.com"||o==="googlemail.com")){c=c.toLowerCase();var l=c.split("+")[0];if(!(0,j0.default)(l.replace(/\./g,""),{min:6,max:30}))return!1;for(var d=l.split("."),f=0;f<d.length;f++)if(!hde.test(d[f]))return!1}if(t.ignore_max_length===!1&&(!(0,j0.default)(c,{max:64})||!(0,j0.default)(s,{max:254})))return!1;if(!(0,dde.default)(s,{require_tld:t.require_tld})){if(!t.allow_ip_domain)return!1;if(!(0,PM.default)(s)){if(!s.startsWith("[")||!s.endsWith("]"))return!1;var h=s.substr(1,s.length-2);if(h.length===0||!(0,PM.default)(h))return!1}}if(c[0]==='"')return c=c.slice(1,c.length-1),t.allow_utf8_local_part?gde.test(c):_de.test(c);for(var _=t.allow_utf8_local_part?yde:pde,S=c.split("."),v=0;v<S.length;v++)if(!_.test(S[v]))return!1;return!(t.blacklisted_chars&&c.search(new RegExp("[".concat(t.blacklisted_chars,"]+"),"g"))!==-1)}k0.exports=dc.default;k0.exports.default=dc.default});var zM=m((fc,F0)=>{"use strict";Object.defineProperty(fc,"__esModule",{value:!0});fc.default=Ode;var bde=kh(Fs()),Ede=kh(q0()),LM=kh(jh()),Ade=kh(Mh());function kh(e){return e&&e.__esModule?e:{default:e}}function Tde(e,t){return Rde(e)||Ide(e,t)||xde(e,t)||Cde()}function Cde(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
35
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xde(e,t){if(!!e){if(typeof e=="string")return qM(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 qM(e,t)}}function qM(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 Ide(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,s=void 0;try{for(var o=e[Symbol.iterator](),c;!(r=(c=o.next()).done)&&(n.push(c.value),!(t&&n.length===t));r=!0);}catch(l){i=!0,s=l}finally{try{!r&&o.return!=null&&o.return()}finally{if(i)throw s}}return n}}function Rde(e){if(Array.isArray(e))return e}var Dde={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},Nde=/^\[([^\]]+)\](?::([0-9]+))?$/;function Pde(e){return Object.prototype.toString.call(e)==="[object RegExp]"}function MM(e,t){for(var n=0;n<t.length;n++){var r=t[n];if(e===r||Pde(r)&&r.test(e))return!0}return!1}function Ode(e,t){if((0,bde.default)(e),!e||/[\s<>]/.test(e)||e.indexOf("mailto:")===0||(t=(0,Ade.default)(t,Dde),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,o,c,l,d;if(l=e.split("#"),e=l.shift(),l=e.split("?"),e=l.shift(),l=e.split("://"),l.length>1){if(n=l.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;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]===""||(r=l.shift(),r.indexOf(":")>=0&&r.split(":").length>2))return!1;var f=r.split(":"),h=Tde(f,2),_=h[0],S=h[1];if(_===""&&S==="")return!1}s=l.join("@"),c=null,d=null;var v=s.match(Nde);if(v?(i="",d=v[1],c=v[2]||null):(l=s.split(":"),i=l.shift(),l.length&&(c=l.join(":"))),c!==null&&c.length>0){if(o=parseInt(c,10),!/^[0-9]+$/.test(c)||o<=0||o>65535)return!1}else if(t.require_port)return!1;return t.host_whitelist?MM(i,t.host_whitelist):!(!(0,LM.default)(i)&&!(0,Ede.default)(i,t)&&(!d||!(0,LM.default)(d,6))||(i=i||d,t.host_blacklist&&MM(i,t.host_blacklist)))}F0.exports=fc.default;F0.exports.default=fc.default});var kM=m((nAe,jM)=>{"use strict";var Lde=OM(),qde=zM(),Mde=jh();function U0(e,t){if(!e)throw new Error(t)}var zde={name:"email",coerce:e=>e.toString(),validate:function(e){U0(Lde(e),"must be an email address")}},jde={name:"ipaddress",coerce:e=>e.toString(),validate:function(e){U0(Mde(e),"must be an IP address")}},kde={name:"url",coerce:e=>e.toString(),validate:function(e){U0(qde(e,{require_tld:!1}),"must be a URL")}};jM.exports={email:zde,ipaddress:jde,url:kde}});var Iz=m(xz=>{"use strict";Object.defineProperty(xz,"__esModule",{value:!0})});var rb=m(nb=>{"use strict";Object.defineProperty(nb,"__esModule",{value:!0});var tb=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)||[]}};nb.default=new tb});var Rz=m(Wr=>{"use strict";var lpe=Wr&&Wr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Wr,"__esModule",{value:!0});Wr.Property=Wr.Config=void 0;var Kh=lpe(rb());function upe(e={}){return t=>{Kh.default.setConvictMetaForClass(e,t)}}Wr.Config=upe;function dpe(e){return(t,n)=>{if(typeof e=="object"&&typeof e.format>"u"){let r=Kh.default.getTsType(t,n);r&&(e.format=r)}Kh.default.setConvictMetaForProperty(e,t,n),Kh.default.setPropertyForClass(t,n)}}Wr.Property=dpe});var zz=m((dAe,Mz)=>{"use strict";var fpe=require("util"),mpe=require("fs"),Dz=require("path");function gc(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 o=e.charAt(s);r&&(r=!1,o=o.toUpperCase()),s!==0&&(o==="-"||o==="_")?r=!0:o!=="-"&&o!=="_"&&(n+=o)}return n}}function Oz(e,t){let n=e.toLowerCase();t=t||"-";let r="";for(let i=0;i<e.length;i++){let s=n.charAt(i),o=e.charAt(i);s!==o&&i>0?r+=`${t}${n.charAt(i)}`:r+=o}return r}function Lz(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 ppe(e){if(Array.isArray(e))return e.map(o=>typeof o!="string"?o+"":o);e=e.trim();let t=0,n=null,r=null,i=null,s=[];for(let o=0;o<e.length;o++){if(n=r,r=e.charAt(o),r===" "&&!i){n!==" "&&t++;continue}r===i?i=null:(r==="'"||r==='"')&&!i&&(i=r),s[t]||(s[t]=""),s[t]+=r}return s}var cn;(function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"})(cn||(cn={}));var ar,sb=class{constructor(t){ar=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=ppe(t),s=hpe(Object.assign(Object.create(null),r.alias)),o=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),c=Object.assign(Object.create(null),r.default),l=r.configObjects||[],d=r.envPrefix,f=o["populate--"],h=f?"--":"_",_=Object.create(null),S=Object.create(null),v=r.__||ar.format,y={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:[]},R=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,P=new RegExp("^--"+o["negation-prefix"]+"(.+)");[].concat(r.array||[]).filter(Boolean).forEach(function(b){let E=typeof b=="object"?b.key:b,L=Object.keys(b).map(function(I){return{boolean:"bools",string:"strings",number:"numbers"}[I]}).filter(Boolean).pop();L&&(y[L][E]=!0),y.arrays[E]=!0,y.keys.push(E)}),[].concat(r.boolean||[]).filter(Boolean).forEach(function(b){y.bools[b]=!0,y.keys.push(b)}),[].concat(r.string||[]).filter(Boolean).forEach(function(b){y.strings[b]=!0,y.keys.push(b)}),[].concat(r.number||[]).filter(Boolean).forEach(function(b){y.numbers[b]=!0,y.keys.push(b)}),[].concat(r.count||[]).filter(Boolean).forEach(function(b){y.counts[b]=!0,y.keys.push(b)}),[].concat(r.normalize||[]).filter(Boolean).forEach(function(b){y.normalize[b]=!0,y.keys.push(b)}),typeof r.narg=="object"&&Object.entries(r.narg).forEach(([b,E])=>{typeof E=="number"&&(y.nargs[b]=E,y.keys.push(b))}),typeof r.coerce=="object"&&Object.entries(r.coerce).forEach(([b,E])=>{typeof E=="function"&&(y.coercions[b]=E,y.keys.push(b))}),typeof r.config<"u"&&(Array.isArray(r.config)||typeof r.config=="string"?[].concat(r.config).filter(Boolean).forEach(function(b){y.configs[b]=!0}):typeof r.config=="object"&&Object.entries(r.config).forEach(([b,E])=>{(typeof E=="boolean"||typeof E=="function")&&(y.configs[b]=E)})),mr(r.key,s,r.default,y.arrays),Object.keys(c).forEach(function(b){(y.aliases[b]||[]).forEach(function(E){c[E]=c[b]})});let C=null;f_();let k=[],pe=Object.assign(Object.create(null),{_:[]}),Ot={};for(let b=0;b<i.length;b++){let E=i[b],L=E.replace(/^-{3,}/,"---"),I,A,U,B,X,Be;if(E!=="--"&&zi(E))dr(E);else if(L.match(/---+(=|$)/)){dr(E);continue}else if(E.match(/^--.+=/)||!o["short-option-groups"]&&E.match(/^-.+=/))B=E.match(/^--?([^=]+)=([\s\S]*)$/),B!==null&&Array.isArray(B)&&B.length>=3&&(oe(B[1],y.arrays)?b=ln(b,B[1],i,B[2]):oe(B[1],y.nargs)!==!1?b=fr(b,B[1],i,B[2]):F(B[1],B[2]));else if(E.match(P)&&o["boolean-negation"])B=E.match(P),B!==null&&Array.isArray(B)&&B.length>=2&&(A=B[1],F(A,oe(A,y.arrays)?[!1]:!1));else if(E.match(/^--.+/)||!o["short-option-groups"]&&E.match(/^-[^-]+/))B=E.match(/^--?(.+)/),B!==null&&Array.isArray(B)&&B.length>=2&&(A=B[1],oe(A,y.arrays)?b=ln(b,A,i):oe(A,y.nargs)!==!1?b=fr(b,A,i):(X=i[b+1],X!==void 0&&(!X.match(/^-/)||X.match(R))&&!oe(A,y.bools)&&!oe(A,y.counts)||/^(true|false)$/.test(X)?(F(A,X),b++):F(A,ct(A))));else if(E.match(/^-.\..+=/))B=E.match(/^-([^=]+)=([\s\S]*)$/),B!==null&&Array.isArray(B)&&B.length>=3&&F(B[1],B[2]);else if(E.match(/^-.\..+/)&&!E.match(R))X=i[b+1],B=E.match(/^-(.\..+)/),B!==null&&Array.isArray(B)&&B.length>=2&&(A=B[1],X!==void 0&&!X.match(/^-/)&&!oe(A,y.bools)&&!oe(A,y.counts)?(F(A,X),b++):F(A,ct(A)));else if(E.match(/^-[^-]+/)&&!E.match(R)){U=E.slice(1,-1).split(""),I=!1;for(let Je=0;Je<U.length;Je++){if(X=E.slice(Je+2),U[Je+1]&&U[Je+1]==="="){Be=E.slice(Je+3),A=U[Je],oe(A,y.arrays)?b=ln(b,A,i,Be):oe(A,y.nargs)!==!1?b=fr(b,A,i,Be):F(A,Be),I=!0;break}if(X==="-"){F(U[Je],X);continue}if(/[A-Za-z]/.test(U[Je])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(X)&&oe(X,y.bools)===!1){F(U[Je],X),I=!0;break}if(U[Je+1]&&U[Je+1].match(/\W/)){F(U[Je],X),I=!0;break}else F(U[Je],ct(U[Je]))}A=E.slice(-1)[0],!I&&A!=="-"&&(oe(A,y.arrays)?b=ln(b,A,i):oe(A,y.nargs)!==!1?b=fr(b,A,i):(X=i[b+1],X!==void 0&&(!/^(-|--)[^-]/.test(X)||X.match(R))&&!oe(A,y.bools)&&!oe(A,y.counts)||/^(true|false)$/.test(X)?(F(A,X),b++):F(A,ct(A))))}else if(E.match(/^-[0-9]$/)&&E.match(R)&&oe(E.slice(1),y.bools))A=E.slice(1),F(A,ct(A));else if(E==="--"){k=i.slice(b+1);break}else if(o["halt-at-non-option"]){k=i.slice(b);break}else dr(E)}xe(pe,!0),xe(pe,!1),Me(pe),Ce(),we(pe,y.aliases,c,!0),Se(pe),o["set-placeholder-key"]&&ze(pe),Object.keys(y.counts).forEach(function(b){Un(pe,b.split("."))||F(b,0)}),f&&k.length&&(pe[h]=[]),k.forEach(function(b){pe[h].push(b)}),o["camel-case-expansion"]&&o["strip-dashed"]&&Object.keys(pe).filter(b=>b!=="--"&&b.includes("-")).forEach(b=>{delete pe[b]}),o["strip-aliased"]&&[].concat(...Object.keys(s).map(b=>s[b])).forEach(b=>{o["camel-case-expansion"]&&b.includes("-")&&delete pe[b.split(".").map(E=>gc(E)).join(".")],delete pe[b]});function dr(b){let E=Te("_",b);(typeof E=="string"||typeof E=="number")&&pe._.push(E)}function fr(b,E,L,I){let A,U=oe(E,y.nargs);if(U=typeof U!="number"||isNaN(U)?1:U,U===0)return Bt(I)||(C=Error(v("Argument unexpected for: %s",E))),F(E,ct(E)),b;let B=Bt(I)?0:1;if(o["nargs-eats-options"])L.length-(b+1)+B<U&&(C=Error(v("Not enough arguments following: %s",E))),B=U;else{for(A=b+1;A<L.length&&(!L[A].match(/^-[^0-9]/)||L[A].match(R)||zi(L[A]));A++)B++;B<U&&(C=Error(v("Not enough arguments following: %s",E)))}let X=Math.min(B,U);for(!Bt(I)&&X>0&&(F(E,I),X--),A=b+1;A<X+b+1;A++)F(E,L[A]);return b+X}function ln(b,E,L,I){let A=[],U=I||L[b+1],B=oe(E,y.nargs);if(oe(E,y.bools)&&!/^(true|false)$/.test(U))A.push(!0);else if(Bt(U)||Bt(I)&&/^-/.test(U)&&!R.test(U)&&!zi(U)){if(c[E]!==void 0){let X=c[E];A=Array.isArray(X)?X:[X]}}else{Bt(I)||A.push(me(E,I));for(let X=b+1;X<L.length&&!(!o["greedy-arrays"]&&A.length>0||B&&typeof B=="number"&&A.length>=B||(U=L[X],/^-/.test(U)&&!R.test(U)&&!zi(U)));X++)b=X,A.push(me(E,U))}return typeof B=="number"&&(B&&A.length<B||isNaN(B)&&A.length===0)&&(C=Error(v("Not enough arguments following: %s",E))),F(E,A),b}function F(b,E){if(/-/.test(b)&&o["camel-case-expansion"]){let A=b.split(".").map(function(U){return gc(U)}).join(".");he(b,A)}let L=me(b,E),I=b.split(".");Pe(pe,I,L),y.aliases[b]&&y.aliases[b].forEach(function(A){let U=A.split(".");Pe(pe,U,L)}),I.length>1&&o["dot-notation"]&&(y.aliases[I[0]]||[]).forEach(function(A){let U=A.split("."),B=[].concat(I);B.shift(),U=U.concat(B),(y.aliases[b]||[]).includes(U.join("."))||Pe(pe,U,L)}),oe(b,y.normalize)&&!oe(b,y.arrays)&&[b].concat(y.aliases[b]||[]).forEach(function(U){Object.defineProperty(Ot,U,{enumerable:!0,get(){return E},set(B){E=typeof B=="string"?ar.normalize(B):B}})})}function he(b,E){y.aliases[b]&&y.aliases[b].length||(y.aliases[b]=[E],_[E]=!0),y.aliases[E]&&y.aliases[E].length||he(E,b)}function me(b,E){typeof E=="string"&&(E[0]==="'"||E[0]==='"')&&E[E.length-1]===E[0]&&(E=E.substring(1,E.length-1)),(oe(b,y.bools)||oe(b,y.counts))&&typeof E=="string"&&(E=E==="true");let L=Array.isArray(E)?E.map(function(I){return Te(b,I)}):Te(b,E);return oe(b,y.counts)&&(Bt(L)||typeof L=="boolean")&&(L=ib()),oe(b,y.normalize)&&oe(b,y.arrays)&&(Array.isArray(E)?L=E.map(I=>ar.normalize(I)):L=ar.normalize(E)),L}function Te(b,E){return!o["parse-positional-numbers"]&&b==="_"||!oe(b,y.strings)&&!oe(b,y.bools)&&!Array.isArray(E)&&(Lz(E)&&o["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${E}`)))||!Bt(E)&&oe(b,y.numbers))&&(E=Number(E)),E}function Me(b){let E=Object.create(null);we(E,y.aliases,c),Object.keys(y.configs).forEach(function(L){let I=b[L]||E[L];if(I)try{let A=null,U=ar.resolve(ar.cwd(),I),B=y.configs[L];if(typeof B=="function"){try{A=B(U)}catch(X){A=X}if(A instanceof Error){C=A;return}}else A=ar.require(U);De(A)}catch(A){A.name==="PermissionDenied"?C=A:b[L]&&(C=Error(v("Invalid JSON config file: %s",I)))}})}function De(b,E){Object.keys(b).forEach(function(L){let I=b[L],A=E?E+"."+L:L;typeof I=="object"&&I!==null&&!Array.isArray(I)&&o["dot-notation"]?De(I,A):(!Un(pe,A.split("."))||oe(A,y.arrays)&&o["combine-arrays"])&&F(A,I)})}function Ce(){typeof l<"u"&&l.forEach(function(b){De(b)})}function xe(b,E){if(typeof d>"u")return;let L=typeof d=="string"?d:"",I=ar.env();Object.keys(I).forEach(function(A){if(L===""||A.lastIndexOf(L,0)===0){let U=A.split("__").map(function(B,X){return X===0&&(B=B.substring(L.length)),gc(B)});(E&&y.configs[U.join(".")]||!E)&&!Un(b,U)&&F(U.join("."),I[A])}})}function Se(b){let E,L=new Set;Object.keys(b).forEach(function(I){if(!L.has(I)&&(E=oe(I,y.coercions),typeof E=="function"))try{let A=Te(I,E(b[I]));[].concat(y.aliases[I]||[],I).forEach(U=>{L.add(U),b[U]=A})}catch(A){C=A}})}function ze(b){return y.keys.forEach(E=>{~E.indexOf(".")||typeof b[E]>"u"&&(b[E]=void 0)}),b}function we(b,E,L,I=!1){Object.keys(L).forEach(function(A){Un(b,A.split("."))||(Pe(b,A.split("."),L[A]),I&&(S[A]=!0),(E[A]||[]).forEach(function(U){Un(b,U.split("."))||Pe(b,U.split("."),L[A])}))})}function Un(b,E){let L=b;o["dot-notation"]||(E=[E.join(".")]),E.slice(0,-1).forEach(function(A){L=L[A]||{}});let I=E[E.length-1];return typeof L!="object"?!1:I in L}function Pe(b,E,L){let I=b;o["dot-notation"]||(E=[E.join(".")]),E.slice(0,-1).forEach(function(Be){Be=Nz(Be),typeof I=="object"&&I[Be]===void 0&&(I[Be]={}),typeof I[Be]!="object"||Array.isArray(I[Be])?(Array.isArray(I[Be])?I[Be].push({}):I[Be]=[I[Be],{}],I=I[Be][I[Be].length-1]):I=I[Be]});let A=Nz(E[E.length-1]),U=oe(E.join("."),y.arrays),B=Array.isArray(L),X=o["duplicate-arguments-array"];!X&&oe(A,y.nargs)&&(X=!0,(!Bt(I[A])&&y.nargs[A]===1||Array.isArray(I[A])&&I[A].length===y.nargs[A])&&(I[A]=void 0)),L===ib()?I[A]=ib(I[A]):Array.isArray(I[A])?X&&U&&B?I[A]=o["flatten-duplicate-arrays"]?I[A].concat(L):(Array.isArray(I[A][0])?I[A]:[I[A]]).concat([L]):!X&&Boolean(U)===Boolean(B)?I[A]=L:I[A]=I[A].concat([L]):I[A]===void 0&&U?I[A]=B?L:[L]:X&&!(I[A]===void 0||oe(A,y.counts)||oe(A,y.bools))?I[A]=[I[A],L]:I[A]=L}function mr(...b){b.forEach(function(E){Object.keys(E||{}).forEach(function(L){y.aliases[L]||(y.aliases[L]=[].concat(s[L]||[]),y.aliases[L].concat(L).forEach(function(I){if(/-/.test(I)&&o["camel-case-expansion"]){let A=gc(I);A!==L&&y.aliases[L].indexOf(A)===-1&&(y.aliases[L].push(A),_[A]=!0)}}),y.aliases[L].concat(L).forEach(function(I){if(I.length>1&&/[A-Z]/.test(I)&&o["camel-case-expansion"]){let A=Oz(I,"-");A!==L&&y.aliases[L].indexOf(A)===-1&&(y.aliases[L].push(A),_[A]=!0)}}),y.aliases[L].forEach(function(I){y.aliases[I]=[L].concat(y.aliases[L].filter(function(A){return I!==A}))}))})})}function oe(b,E){let L=[].concat(y.aliases[b]||[],b),I=Object.keys(E),A=L.find(U=>I.includes(U));return A?E[A]:!1}function Fe(b){let E=Object.keys(y);return[].concat(E.map(I=>y[I])).some(function(I){return Array.isArray(I)?I.includes(b):I[b]})}function l_(b,...E){return[].concat(...E).some(function(I){let A=b.match(I);return A&&Fe(A[1])})}function u_(b){if(b.match(R)||!b.match(/^-[^-]+/))return!1;let E=!0,L,I=b.slice(1).split("");for(let A=0;A<I.length;A++){if(L=b.slice(A+2),!Fe(I[A])){E=!1;break}if(I[A+1]&&I[A+1]==="="||L==="-"||/[A-Za-z]/.test(I[A])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(L)||I[A+1]&&I[A+1].match(/\W/))break}return E}function zi(b){return o["unknown-options-as-args"]&&d_(b)}function d_(b){return b=b.replace(/^-{3,}/,"--"),b.match(R)||u_(b)?!1:!l_(b,/^-+([^=]+?)=[\s\S]*$/,P,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function ct(b){return!oe(b,y.bools)&&!oe(b,y.counts)&&`${b}`in c?c[b]:xc(pr(b))}function xc(b){return{[cn.BOOLEAN]:!0,[cn.STRING]:"",[cn.NUMBER]:void 0,[cn.ARRAY]:[]}[b]}function pr(b){let E=cn.BOOLEAN;return oe(b,y.strings)?E=cn.STRING:oe(b,y.numbers)?E=cn.NUMBER:oe(b,y.bools)?E=cn.BOOLEAN:oe(b,y.arrays)&&(E=cn.ARRAY),E}function Bt(b){return b===void 0}function f_(){Object.keys(y.counts).find(b=>oe(b,y.arrays)?(C=Error(v("Invalid configuration: %s, opts.count excludes opts.array.",b)),!0):oe(b,y.nargs)?(C=Error(v("Invalid configuration: %s, opts.count excludes opts.narg.",b)),!0):!1)}return{aliases:Object.assign({},y.aliases),argv:Object.assign(Ot,pe),configuration:o,defaulted:Object.assign({},S),error:C,newAliases:Object.assign({},_)}}};function hpe(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(c){return t[s].indexOf(c)!==-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(o,c,l){return l.indexOf(o)===c});let s=i.pop();s!==void 0&&typeof s=="string"&&(n[s]=i)}),n}function ib(e){return e!==void 0?e+1:1}function Nz(e){return e==="__proto__"?"___proto___":e}var Pz=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])<Pz)throw Error(`yargs parser supports a minimum Node.js version of ${Pz}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var _pe=process?process.env:{},qz=new sb({cwd:process.cwd,env:()=>_pe,format:fpe.format,normalize:Dz.normalize,resolve:Dz.resolve,require:e=>{if(typeof require<"u")return require(e);if(e.match(/\.json$/))return mpe.readFileSync(e,"utf8");throw Error("only .json config files are supported in ESM")}}),Sc=function(t,n){return qz.parse(t.slice(),n).argv};Sc.detailed=function(e,t){return qz.parse(e.slice(),t)};Sc.camelCase=gc;Sc.decamelize=Oz;Sc.looksLikeNumber=Lz;Mz.exports=Sc});var Tj=m((vc,Vs)=>{var ype=200,Yz="__lodash_hash_undefined__",Jz=9007199254740991,mb="[object Arguments]",gpe="[object Array]",Qz="[object Boolean]",Xz="[object Date]",Spe="[object Error]",pb="[object Function]",Zz="[object GeneratorFunction]",Hh="[object Map]",ej="[object Number]",hb="[object Object]",jz="[object Promise]",tj="[object RegExp]",Wh="[object Set]",nj="[object String]",rj="[object Symbol]",ab="[object WeakMap]",ij="[object ArrayBuffer]",Yh="[object DataView]",sj="[object Float32Array]",oj="[object Float64Array]",aj="[object Int8Array]",cj="[object Int16Array]",lj="[object Int32Array]",uj="[object Uint8Array]",dj="[object Uint8ClampedArray]",fj="[object Uint16Array]",mj="[object Uint32Array]",vpe=/[\\^$.*+?()[\]{}|]/g,wpe=/\w*$/,bpe=/^\[object .+?Constructor\]$/,Epe=/^(?:0|[1-9]\d*)$/,Ne={};Ne[mb]=Ne[gpe]=Ne[ij]=Ne[Yh]=Ne[Qz]=Ne[Xz]=Ne[sj]=Ne[oj]=Ne[aj]=Ne[cj]=Ne[lj]=Ne[Hh]=Ne[ej]=Ne[hb]=Ne[tj]=Ne[Wh]=Ne[nj]=Ne[rj]=Ne[uj]=Ne[dj]=Ne[fj]=Ne[mj]=!0;Ne[Spe]=Ne[pb]=Ne[ab]=!1;var Ape=typeof global=="object"&&global&&global.Object===Object&&global,Tpe=typeof self=="object"&&self&&self.Object===Object&&self,cr=Ape||Tpe||Function("return this")(),pj=typeof vc=="object"&&vc&&!vc.nodeType&&vc,kz=pj&&typeof Vs=="object"&&Vs&&!Vs.nodeType&&Vs,Cpe=kz&&kz.exports===pj;function xpe(e,t){return e.set(t[0],t[1]),e}function Ipe(e,t){return e.add(t),e}function Rpe(e,t){for(var n=-1,r=e?e.length:0;++n<r&&t(e[n],n,e)!==!1;);return e}function Dpe(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function hj(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 Npe(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Ppe(e,t){return e==null?void 0:e[t]}function _j(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function Fz(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}function _b(e,t){return function(n){return e(t(n))}}function Uz(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Ope=Array.prototype,Lpe=Function.prototype,Jh=Object.prototype,ob=cr["__core-js_shared__"],Bz=function(){var e=/[^.]+$/.exec(ob&&ob.keys&&ob.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),yj=Lpe.toString,Yr=Jh.hasOwnProperty,Qh=Jh.toString,qpe=RegExp("^"+yj.call(Yr).replace(vpe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Gz=Cpe?cr.Buffer:void 0,$z=cr.Symbol,Vz=cr.Uint8Array,Mpe=_b(Object.getPrototypeOf,Object),zpe=Object.create,jpe=Jh.propertyIsEnumerable,kpe=Ope.splice,Kz=Object.getOwnPropertySymbols,Fpe=Gz?Gz.isBuffer:void 0,Upe=_b(Object.keys,Object),cb=Ws(cr,"DataView"),wc=Ws(cr,"Map"),lb=Ws(cr,"Promise"),ub=Ws(cr,"Set"),db=Ws(cr,"WeakMap"),bc=Ws(Object,"create"),Bpe=qi(cb),Gpe=qi(wc),$pe=qi(lb),Vpe=qi(ub),Kpe=qi(db),Hz=$z?$z.prototype:void 0,Wz=Hz?Hz.valueOf:void 0;function Li(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__=bc?bc(null):{}}function Wpe(e){return this.has(e)&&delete this.__data__[e]}function Ype(e){var t=this.__data__;if(bc){var n=t[e];return n===Yz?void 0:n}return Yr.call(t,e)?t[e]:void 0}function Jpe(e){var t=this.__data__;return bc?t[e]!==void 0:Yr.call(t,e)}function Qpe(e,t){var n=this.__data__;return n[e]=bc&&t===void 0?Yz:t,this}Li.prototype.clear=Hpe;Li.prototype.delete=Wpe;Li.prototype.get=Ype;Li.prototype.has=Jpe;Li.prototype.set=Qpe;function lr(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 Xpe(){this.__data__=[]}function Zpe(e){var t=this.__data__,n=Xh(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():kpe.call(t,n,1),!0}function ehe(e){var t=this.__data__,n=Xh(t,e);return n<0?void 0:t[n][1]}function the(e){return Xh(this.__data__,e)>-1}function nhe(e,t){var n=this.__data__,r=Xh(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}lr.prototype.clear=Xpe;lr.prototype.delete=Zpe;lr.prototype.get=ehe;lr.prototype.has=the;lr.prototype.set=nhe;function Ks(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 rhe(){this.__data__={hash:new Li,map:new(wc||lr),string:new Li}}function ihe(e){return Zh(this,e).delete(e)}function she(e){return Zh(this,e).get(e)}function ohe(e){return Zh(this,e).has(e)}function ahe(e,t){return Zh(this,e).set(e,t),this}Ks.prototype.clear=rhe;Ks.prototype.delete=ihe;Ks.prototype.get=she;Ks.prototype.has=ohe;Ks.prototype.set=ahe;function Hs(e){this.__data__=new lr(e)}function che(){this.__data__=new lr}function lhe(e){return this.__data__.delete(e)}function uhe(e){return this.__data__.get(e)}function dhe(e){return this.__data__.has(e)}function fhe(e,t){var n=this.__data__;if(n instanceof lr){var r=n.__data__;if(!wc||r.length<ype-1)return r.push([e,t]),this;n=this.__data__=new Ks(r)}return n.set(e,t),this}Hs.prototype.clear=che;Hs.prototype.delete=lhe;Hs.prototype.get=uhe;Hs.prototype.has=dhe;Hs.prototype.set=fhe;function mhe(e,t){var n=gb(e)||zhe(e)?Npe(e.length,String):[],r=n.length,i=!!r;for(var s in e)(t||Yr.call(e,s))&&!(i&&(s=="length"||Ohe(s,r)))&&n.push(s);return n}function gj(e,t,n){var r=e[t];(!(Yr.call(e,t)&&bj(r,n))||n===void 0&&!(t in e))&&(e[t]=n)}function Xh(e,t){for(var n=e.length;n--;)if(bj(e[n][0],t))return n;return-1}function phe(e,t){return e&&Sj(t,Sb(t),e)}function fb(e,t,n,r,i,s,o){var c;if(r&&(c=s?r(e,i,s,o):r(e)),c!==void 0)return c;if(!e_(e))return e;var l=gb(e);if(l){if(c=Dhe(e),!t)return xhe(e,c)}else{var d=Oi(e),f=d==pb||d==Zz;if(khe(e))return vhe(e,t);if(d==hb||d==mb||f&&!s){if(_j(e))return s?e:{};if(c=Nhe(f?{}:e),!t)return Ihe(e,phe(c,e))}else{if(!Ne[d])return s?e:{};c=Phe(e,d,fb,t)}}o||(o=new Hs);var h=o.get(e);if(h)return h;if(o.set(e,c),!l)var _=n?Rhe(e):Sb(e);return Rpe(_||e,function(S,v){_&&(v=S,S=e[v]),gj(c,v,fb(S,t,n,r,v,e,o))}),c}function hhe(e){return e_(e)?zpe(e):{}}function _he(e,t,n){var r=t(e);return gb(e)?r:Dpe(r,n(e))}function yhe(e){return Qh.call(e)}function ghe(e){if(!e_(e)||qhe(e))return!1;var t=Aj(e)||_j(e)?qpe:bpe;return t.test(qi(e))}function She(e){if(!wj(e))return Upe(e);var t=[];for(var n in Object(e))Yr.call(e,n)&&n!="constructor"&&t.push(n);return t}function vhe(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}function yb(e){var t=new e.constructor(e.byteLength);return new Vz(t).set(new Vz(e)),t}function whe(e,t){var n=t?yb(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function bhe(e,t,n){var r=t?n(Fz(e),!0):Fz(e);return hj(r,xpe,new e.constructor)}function Ehe(e){var t=new e.constructor(e.source,wpe.exec(e));return t.lastIndex=e.lastIndex,t}function Ahe(e,t,n){var r=t?n(Uz(e),!0):Uz(e);return hj(r,Ipe,new e.constructor)}function The(e){return Wz?Object(Wz.call(e)):{}}function Che(e,t){var n=t?yb(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function xhe(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function Sj(e,t,n,r){n||(n={});for(var i=-1,s=t.length;++i<s;){var o=t[i],c=r?r(n[o],e[o],o,n,e):void 0;gj(n,o,c===void 0?e[o]:c)}return n}function Ihe(e,t){return Sj(e,vj(e),t)}function Rhe(e){return _he(e,Sb,vj)}function Zh(e,t){var n=e.__data__;return Lhe(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Ws(e,t){var n=Ppe(e,t);return ghe(n)?n:void 0}var vj=Kz?_b(Kz,Object):Bhe,Oi=yhe;(cb&&Oi(new cb(new ArrayBuffer(1)))!=Yh||wc&&Oi(new wc)!=Hh||lb&&Oi(lb.resolve())!=jz||ub&&Oi(new ub)!=Wh||db&&Oi(new db)!=ab)&&(Oi=function(e){var t=Qh.call(e),n=t==hb?e.constructor:void 0,r=n?qi(n):void 0;if(r)switch(r){case Bpe:return Yh;case Gpe:return Hh;case $pe:return jz;case Vpe:return Wh;case Kpe:return ab}return t});function Dhe(e){var t=e.length,n=e.constructor(t);return t&&typeof e[0]=="string"&&Yr.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function Nhe(e){return typeof e.constructor=="function"&&!wj(e)?hhe(Mpe(e)):{}}function Phe(e,t,n,r){var i=e.constructor;switch(t){case ij:return yb(e);case Qz:case Xz:return new i(+e);case Yh:return whe(e,r);case sj:case oj:case aj:case cj:case lj:case uj:case dj:case fj:case mj:return Che(e,r);case Hh:return bhe(e,r,n);case ej:case nj:return new i(e);case tj:return Ehe(e);case Wh:return Ahe(e,r,n);case rj:return The(e)}}function Ohe(e,t){return t=t??Jz,!!t&&(typeof e=="number"||Epe.test(e))&&e>-1&&e%1==0&&e<t}function Lhe(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function qhe(e){return!!Bz&&Bz in e}function wj(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Jh;return e===n}function qi(e){if(e!=null){try{return yj.call(e)}catch{}try{return e+""}catch{}}return""}function Mhe(e){return fb(e,!0,!0)}function bj(e,t){return e===t||e!==e&&t!==t}function zhe(e){return jhe(e)&&Yr.call(e,"callee")&&(!jpe.call(e,"callee")||Qh.call(e)==mb)}var gb=Array.isArray;function Ej(e){return e!=null&&Fhe(e.length)&&!Aj(e)}function jhe(e){return Uhe(e)&&Ej(e)}var khe=Fpe||Ghe;function Aj(e){var t=e_(e)?Qh.call(e):"";return t==pb||t==Zz}function Fhe(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Jz}function e_(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Uhe(e){return!!e&&typeof e=="object"}function Sb(e){return Ej(e)?mhe(e):She(e)}function Bhe(){return[]}function Ghe(){return!1}Vs.exports=Mhe});var qj=m((fAe,Lj)=>{"use strict";var $he=require("fs"),Vhe=zz(),Ys=Tj(),Khe=["__proto__.","this.constructor.prototype."],Hhe="strict",Cj="warn";function Jr(e,t){if(!e)throw new Error(t)}function xj(e){return Number.isInteger(e)&&e>=0&&e<=65535}function bb(e){return String(e).includes("\\\\.\\pipe\\")}var Ec={"*":function(){},int:function(e){Jr(Number.isInteger(e),"must be an integer")},nat:function(e){Jr(Number.isInteger(e)&&e>=0,"must be a positive integer")},port:function(e){Jr(xj(e),"ports must be within range 0 - 65535")},windows_named_pipe:function(e){Jr(bb(e),"must be a valid pipe")},port_or_windows_named_pipe:function(e){bb(e)||Jr(xj(e),"must be a windows named pipe or a number within range 0 - 65535")}};Ec.integer=Ec.int;var Eb=new Map,Ab={"*":JSON.parse};function Ij(e,t){let n=Object.keys(e),r,i=[];for(;n.length;){r=n.shift();let o=Js(e,r);if(typeof o=="object"&&!Array.isArray(o)&&o!=null){if(t)if("_cvtProperties"in o)o=o._cvtProperties,r=r+"._cvtProperties";else{i.push([r,o]);continue}let c=Object.keys(o);if(c.length>0){c.forEach(function(l){n.push(r+"."+l)});continue}}i.push([r,o])}let s={};return i.forEach(function(o){let c=o[0];t&&(c=c.replace(/\._cvtProperties/g,""));let l=o[1];s[c]=l}),s}function Whe(e,t,n){let r={undeclared:[],invalid_type:[],missing:[]},i=Ij(e),s=Ij(t._cvtProperties,!0);return Object.keys(s).forEach(function(o){let c=s[o],l=i[o];if(!(o in i))try{if(typeof c.default=="object"&&!Array.isArray(c.default))l=Js(e,o);else throw new Error("missing")}catch{let f=new Error("configuration param '"+o+"' missing from config, did you override its parent?");r.missing.push(f);return}if(delete i[o],(c.format==="object"||typeof c.default=="object")&&Object.keys(i).filter(function(d){return d.lastIndexOf(o+".",0)===0}).forEach(function(d){delete i[d]}),!(typeof c.default>"u"&&l===c.default))try{c._format(l)}catch(d){r.invalid_type.push(d)}}),n&&Object.keys(i).forEach(function(o){let c=new Error("configuration param '"+o+"' not declared in the schema");r.undeclared.push(c)}),r}function Yhe(e,t){Jr(e.indexOf(t)!==-1,"must be one of the possible values: "+JSON.stringify(e))}var Cb={Object,Array,String,Number,Boolean,RegExp},Nj=Object.keys(Cb),Jhe=Nj.map(function(e){return Cb[e]});function Pj(e,t,n,r,i,s,o){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(f){Pj(f,t[f],n[e]._cvtProperties,r+"."+f,i,s,o)});return}else(typeof t!="object"||Array.isArray(t)||t===null||Object.keys(t).length==0)&&(t={default:t});let c=Ys(t);if(n[e]=c,c.env&&(i[c.env]||(i[c.env]=[]),i[c.env].push(r)),c.arg){if(s[c.arg])throw new Error("'"+r+"' reuses a command-line argument: "+c.arg);s[c.arg]=r}c.sensitive===!0&&o.add(r);let l=c.format,d;if(Jhe.indexOf(l)>=0||Nj.indexOf(l)>=0){let f=typeof l=="string"?Cb[l]:l;d=function(h){Jr(Object.prototype.toString.call(h)==Object.prototype.toString.call(new f),"must be of type "+f.name)},c.format=f.name.toLowerCase()}else if(typeof l=="string"){if(!Ec[l])throw new Error("'"+r+"' uses an unknown format type: "+l);d=Ec[l]}else if(Array.isArray(l))d=Yhe.bind(null,l);else if(typeof l=="function")d=l;else if(l&&typeof l!="function")throw new Error("'"+r+"': `format` must be a function or a known format type.");if(!d&&!l){let f=Object.prototype.toString.call(c.default);d=function(h){Jr(Object.prototype.toString.call(h)==f," should be of type "+f.replace(/\[.* |]/g,""))}}c._format=function(f){if(!(this.nullable&&f===null))try{d(f,this)}catch(h){throw h.fullName=r,h.value=f,h}}}function vb(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 wb(e){let t=Vhe(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 Oj(e,t,n){Object.keys(e._cvtProperties).forEach(function(r){let i=e._cvtProperties[r];if(i._cvtProperties){let s=t[r]||{};Oj(i,s,n),t[r]=s}else t[r]=xb(r,Ys(i.default),e,n)})}function Rj(e){return typeof e=="object"&&e!==null}function Tb(e,t,n){Object.keys(e).forEach(function(r){Array.isArray(e[r])||!Rj(e[r])||!n||n.format==="object"?t[r]=xb(r,e[r],n):(Rj(t[r])||(t[r]={}),Tb(e[r],t[r],n._cvtProperties[r]))})}function Qhe(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 Xhe(e,t){let n=Qhe(e,t);return n==null?null:typeof n.format=="string"?n.format:n.default!=null?typeof n.default:null}function xb(e,t,n,r){let i=Xhe(n,e);if(typeof t=="string"){if(Eb.has(i))return Eb.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=bb(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 Dj(e){let t=e.split("."),n=t.length>1?t.pop():"";return(Ab[n]||Ab["*"])($he.readFileSync(e,"utf-8"))}function Js(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 Ac=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 Ys(this._instance)},toString:function(){let i=Ys(this._instance);return this._sensitive.forEach(function(s){let o=s.split("."),c=o.pop(),l=o.join("."),d=Js(i,l);d[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=Js(this._instance,i);return Ys(s)},default:function(i){i=i.split(".").join("._cvtProperties.")+".default";let s=Js(this._schema._cvtProperties,i);return Ys(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 Khe)if(i.startsWith(f)||i.includes(`.${f}`))return this;s=xb(i,s,this._schema,this);let o=i.split("."),c=o.pop(),l=o.join("."),d=Js(this._instance,l,!0);return d[c]=s,this},load:function(i){return Tb(i,this._instance,this._schema),vb(r),wb(r),this},loadFile:function(i){let s=this;return Array.isArray(i)||(i=[i]),i.forEach(function(o){let c=Dj(o);c&&Tb(c,s._instance,s._schema)}),vb(r),wb(r),this},validate:function(i){if(i=i||{},i.allowed=i.allowed||Cj,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,o=Whe(this._instance,this._schema,i.allowed);if(o.invalid_type.length+o.undeclared.length+o.missing.length){let c=this._sensitive,l=function(v){let y="";for(let R=0;R<v.length;R++){y.length&&(y+=`
36
- `);let P=v[R];P.fullName&&(y+=P.fullName+": "),P.message&&(y+=P.message),P.value&&!c.has(P.fullName)&&(y+=": value was "+JSON.stringify(P.value))}return y},d=l(o.invalid_type),f=l(o.undeclared),h=l(o.missing),_=[d,h];if(i.allowed===Cj&&f.length){let v="Warning:";if(process.stdout.isTTY){let y="\x1B[33;1m",R="\x1B[0m";v=y+v+R}s(v+" "+f)}else i.allowed===Hhe&&_.push(f);let S=_.filter(function(v){return v.length}).join(`
37
- `);if(S.length)throw new Error(S)}return this}};return typeof t=="string"?r._def=Dj(t):r._def=t,r._schema={_cvtProperties:{}},r._env={},r._argv={},r._sensitive=new Set,Object.keys(r._def).forEach(function(i){Pj(i,r._def[i],r._schema._cvtProperties,i,r._env,r._argv,r._sensitive)}),r._instance={},Oj(r._schema,r._instance,r),vb(r),wb(r),r};Ac.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.");Ec[e]=t,n&&Eb.set(e,n)};Ac.addFormats=function(e){Object.keys(e).forEach(function(t){Ac.addFormat(t,e[t].validate,e[t].coerce)})};Ac.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");Ab[r]=t.parse})})};Lj.exports=Ac});var Mj=m(Qs=>{"use strict";var t_=Qs&&Qs.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Qs,"__esModule",{value:!0});Qs.TSConvict=void 0;var Fn=t_(rb()),Ib=t_(qj()),Zhe=t_(require("fs")),e_e=t_(require("path")),Rb=class{constructor(t){if(this.opts={},!Fn.default.isConfigClass)throw new Error("A class must be decorated with Config or at least one Property");let n=Fn.default.getConvictMetaForClass(t);n!==null&&(typeof n.parser<"u"&&Ib.default.addParser(n.parser),typeof n.formats<"u"&&Ib.default.addFormats(n.formats),this.opts=n),this.baseModel=new t,this.schema=this.getSchemaFor(this.baseModel),this.client=Ib.default(this.schema)}load(t=null){let n=null;if(typeof this.opts.file<"u"&&Zhe.default.existsSync(e_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 Fn.default.getClassProperties(t)){let i=Fn.default.getConvictMetaForProperty(t,r);if(Fn.default.isConstructor(i)&&Fn.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 Fn.default.getClassProperties(t)){let i=Fn.default.getConvictMetaForProperty(t,r);Fn.default.isConstructor(i)&&Fn.default.isConfigClass(i)?this.applyDataToModel(t[r],n[r]||{}):r in n&&(t[r]=n[r])}return t}};Qs.TSConvict=Rb});var n_=m(ur=>{"use strict";var t_e=ur&&ur.__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]}),Db=ur&&ur.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&t_e(t,e,n)};Object.defineProperty(ur,"__esModule",{value:!0});Db(Iz(),ur);Db(Rz(),ur);Db(Mj(),ur)});var u_e={};Vj(u_e,{handler:()=>a_e,overrideDBManager:()=>r_e});module.exports=Kj(u_e);yE().install();var gE;(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>"u"?n.Reflect=e:r=i(n.Reflect,r),t(r);function i(s,o){return function(c,l){typeof s[c]!="function"&&Object.defineProperty(s,c,{configurable:!0,writable:!0,value:l}),o&&o(c,l)}}})(function(t){var n=Object.prototype.hasOwnProperty,r=typeof Symbol=="function",i=r&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",s=r&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",o=typeof Object.create=="function",c={__proto__:[]}instanceof Array,l=!o&&!c,d={create:o?function(){return Je(Object.create(null))}:c?function(){return Je({__proto__:null})}:function(){return Je({})},has:l?function(T,D){return n.call(T,D)}:function(T,D){return D in T},get:l?function(T,D){return n.call(T,D)?T[D]:void 0}:function(T,D){return T[D]}},f=Object.getPrototypeOf(Function),h=typeof process=="object"&&process.env&&process.env.REFLECT_METADATA_USE_MAP_POLYFILL==="true",_=!h&&typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:B(),S=!h&&typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:X(),v=!h&&typeof WeakMap=="function"?WeakMap:Be(),y=new v;function R(T,D,O,j){if(Pe(O)){if(!xc(T))throw new TypeError;if(!Bt(D))throw new TypeError;return he(T,D)}else{if(!xc(T))throw new TypeError;if(!Fe(D))throw new TypeError;if(!Fe(j)&&!Pe(j)&&!mr(j))throw new TypeError;return mr(j)&&(j=void 0),O=ct(O),me(T,D,O,j)}}t("decorate",R);function P(T,D){function O(j,W){if(!Fe(j))throw new TypeError;if(!Pe(W)&&!f_(W))throw new TypeError;Se(T,D,j,W)}return O}t("metadata",P);function C(T,D,O,j){if(!Fe(O))throw new TypeError;return Pe(j)||(j=ct(j)),Se(T,D,O,j)}t("defineMetadata",C);function k(T,D,O){if(!Fe(D))throw new TypeError;return Pe(O)||(O=ct(O)),Me(T,D,O)}t("hasMetadata",k);function pe(T,D,O){if(!Fe(D))throw new TypeError;return Pe(O)||(O=ct(O)),De(T,D,O)}t("hasOwnMetadata",pe);function Ot(T,D,O){if(!Fe(D))throw new TypeError;return Pe(O)||(O=ct(O)),Ce(T,D,O)}t("getMetadata",Ot);function dr(T,D,O){if(!Fe(D))throw new TypeError;return Pe(O)||(O=ct(O)),xe(T,D,O)}t("getOwnMetadata",dr);function fr(T,D){if(!Fe(T))throw new TypeError;return Pe(D)||(D=ct(D)),ze(T,D)}t("getMetadataKeys",fr);function ln(T,D){if(!Fe(T))throw new TypeError;return Pe(D)||(D=ct(D)),we(T,D)}t("getOwnMetadataKeys",ln);function F(T,D,O){if(!Fe(D))throw new TypeError;Pe(O)||(O=ct(O));var j=Te(D,O,!1);if(Pe(j)||!j.delete(T))return!1;if(j.size>0)return!0;var W=y.get(D);return W.delete(O),W.size>0||y.delete(D),!0}t("deleteMetadata",F);function he(T,D){for(var O=T.length-1;O>=0;--O){var j=T[O],W=j(D);if(!Pe(W)&&!mr(W)){if(!Bt(W))throw new TypeError;D=W}}return D}function me(T,D,O,j){for(var W=T.length-1;W>=0;--W){var nt=T[W],ce=nt(D,O,j);if(!Pe(ce)&&!mr(ce)){if(!Fe(ce))throw new TypeError;j=ce}}return j}function Te(T,D,O){var j=y.get(T);if(Pe(j)){if(!O)return;j=new _,y.set(T,j)}var W=j.get(D);if(Pe(W)){if(!O)return;W=new _,j.set(D,W)}return W}function Me(T,D,O){var j=De(T,D,O);if(j)return!0;var W=U(D);return mr(W)?!1:Me(T,W,O)}function De(T,D,O){var j=Te(D,O,!1);return Pe(j)?!1:zi(j.has(T))}function Ce(T,D,O){var j=De(T,D,O);if(j)return xe(T,D,O);var W=U(D);if(!mr(W))return Ce(T,W,O)}function xe(T,D,O){var j=Te(D,O,!1);if(!Pe(j))return j.get(T)}function Se(T,D,O,j){var W=Te(O,j,!0);W.set(T,D)}function ze(T,D){var O=we(T,D),j=U(T);if(j===null)return O;var W=ze(j,D);if(W.length<=0)return O;if(O.length<=0)return W;for(var nt=new S,ce=[],ue=0,ee=O;ue<ee.length;ue++){var ye=ee[ue],ge=nt.has(ye);ge||(nt.add(ye),ce.push(ye))}for(var hr=0,Ob=W;hr<Ob.length;hr++){var ye=Ob[hr],ge=nt.has(ye);ge||(nt.add(ye),ce.push(ye))}return ce}function we(T,D){var O=[],j=Te(T,D,!1);if(Pe(j))return O;for(var W=j.keys(),nt=E(W),ce=0;;){var ue=I(nt);if(!ue)return O.length=ce,O;var ee=L(ue);try{O[ce]=ee}catch(ye){try{A(nt)}finally{throw ye}}ce++}}function Un(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 Pe(T){return T===void 0}function mr(T){return T===null}function oe(T){return typeof T=="symbol"}function Fe(T){return typeof T=="object"?T!==null:typeof T=="function"}function l_(T,D){switch(Un(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 O=D===3?"string":D===5?"number":"default",j=b(T,i);if(j!==void 0){var W=j.call(T,O);if(Fe(W))throw new TypeError;return W}return u_(T,O==="default"?"number":O)}function u_(T,D){if(D==="string"){var O=T.toString;if(pr(O)){var j=O.call(T);if(!Fe(j))return j}var W=T.valueOf;if(pr(W)){var j=W.call(T);if(!Fe(j))return j}}else{var W=T.valueOf;if(pr(W)){var j=W.call(T);if(!Fe(j))return j}var nt=T.toString;if(pr(nt)){var j=nt.call(T);if(!Fe(j))return j}}throw new TypeError}function zi(T){return!!T}function d_(T){return""+T}function ct(T){var D=l_(T,3);return oe(D)?D:d_(D)}function xc(T){return Array.isArray?Array.isArray(T):T instanceof Object?T instanceof Array:Object.prototype.toString.call(T)==="[object Array]"}function pr(T){return typeof T=="function"}function Bt(T){return typeof T=="function"}function f_(T){switch(Un(T)){case 3:return!0;case 4:return!0;default:return!1}}function b(T,D){var O=T[D];if(O!=null){if(!pr(O))throw new TypeError;return O}}function E(T){var D=b(T,s);if(!pr(D))throw new TypeError;var O=D.call(T);if(!Fe(O))throw new TypeError;return O}function L(T){return T.value}function I(T){var D=T.next();return D.done?!1:D}function A(T){var D=T.return;D&&D.call(T)}function U(T){var D=Object.getPrototypeOf(T);if(typeof T!="function"||T===f||D!==f)return D;var O=T.prototype,j=O&&Object.getPrototypeOf(O);if(j==null||j===Object.prototype)return D;var W=j.constructor;return typeof W!="function"||W===T?D:W}function B(){var T={},D=[],O=function(){function ce(ue,ee,ye){this._index=0,this._keys=ue,this._values=ee,this._selector=ye}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=D,this._values=D):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=D,this._values=D),ue},ce.prototype.return=function(ue){return this._index>=0&&(this._index=-1,this._keys=D,this._values=D),{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 ye=this._find(ue,!0);return this._values[ye]=ee,this},ce.prototype.delete=function(ue){var ee=this._find(ue,!1);if(ee>=0){for(var ye=this._keys.length,ge=ee+1;ge<ye;ge++)this._keys[ge-1]=this._keys[ge],this._values[ge-1]=this._values[ge];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 O(this._keys,this._values,j)},ce.prototype.values=function(){return new O(this._keys,this._values,W)},ce.prototype.entries=function(){return new O(this._keys,this._values,nt)},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 W(ce,ue){return ue}function nt(ce,ue){return[ce,ue]}}function X(){return function(){function T(){this._map=new _}return Object.defineProperty(T.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),T.prototype.has=function(D){return this._map.has(D)},T.prototype.add=function(D){return this._map.set(D,D),this},T.prototype.delete=function(D){return this._map.delete(D)},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 Be(){var T=16,D=d.create(),O=j();return function(){function ee(){this._key=j()}return ee.prototype.has=function(ye){var ge=W(ye,!1);return ge!==void 0?d.has(ge,this._key):!1},ee.prototype.get=function(ye){var ge=W(ye,!1);return ge!==void 0?d.get(ge,this._key):void 0},ee.prototype.set=function(ye,ge){var hr=W(ye,!0);return hr[this._key]=ge,this},ee.prototype.delete=function(ye){var ge=W(ye,!1);return ge!==void 0?delete ge[this._key]:!1},ee.prototype.clear=function(){this._key=j()},ee}();function j(){var ee;do ee="@@WeakMap@@"+ue();while(d.has(D,ee));return D[ee]=!0,ee}function W(ee,ye){if(!n.call(ee,O)){if(!ye)return;Object.defineProperty(ee,O,{value:d.create()})}return ee[O]}function nt(ee,ye){for(var ge=0;ge<ye;++ge)ee[ge]=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)):nt(new Uint8Array(ee),ee):nt(new Array(ee),ee)}function ue(){var ee=ce(T);ee[6]=ee[6]&79|64,ee[8]=ee[8]&191|128;for(var ye="",ge=0;ge<T;++ge){var hr=ee[ge];(ge===4||ge===6||ge===8)&&(ye+="-"),hr<16&&(ye+="0"),ye+=hr.toString(16).toLowerCase()}return ye}}function Je(T){return T.__=void 0,delete T.__,T}})})(gE||(gE={}));var a_=un(require("path")),kj=un(yt()),Mi=un(lL()),c_=un(I0()),Nb=un(IM());var s_=un(kM());function tz(e){return typeof e>"u"||e===null}function Fde(e){return typeof e=="object"&&e!==null}function Ude(e){return Array.isArray(e)?e:tz(e)?[]:[e]}function Bde(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 Gde(e,t){var n="",r;for(r=0;r<t;r+=1)n+=e;return n}function $de(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Vde=tz,Kde=Fde,Hde=Ude,Wde=Gde,Yde=$de,Jde=Bde,Qe={isNothing:Vde,isObject:Kde,toArray:Hde,repeat:Wde,isNegativeZero:Yde,extend:Jde};function nz(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+=`
38
39
 
39
- `+e.mark.snippet),r+" "+n):r}function pc(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=nz(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}pc.prototype=Object.create(Error.prototype);pc.prototype.constructor=pc;pc.prototype.toString=function(t){return this.name+": "+nz(this,t)};var Nt=pc;function B0(e,t,n,r,i){var s="",o="",c=Math.floor(i/2)-1;return r-t>c&&(s=" ... ",t=r-c+s.length),n-r>c&&(o=" ...",n=r+c-o.length),{str:s+e.slice(t,n).replace(/\t/g,"\u2192")+o,pos:r-t+s.length}}function G0(e,t){return Qe.repeat(" ",t-e.length)+e}function Qde(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,o=-1;s=n.exec(e.buffer);)i.push(s.index),r.push(s.index+s[0].length),e.position<=s.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var c="",l,d,f=Math.min(e.line+t.linesAfter,i.length).toString().length,h=t.maxLength-(t.indent+f+3);for(l=1;l<=t.linesBefore&&!(o-l<0);l++)d=B0(e.buffer,r[o-l],i[o-l],e.position-(r[o]-r[o-l]),h),c=Qe.repeat(" ",t.indent)+G0((e.line-l+1).toString(),f)+" | "+d.str+`
40
- `+c;for(d=B0(e.buffer,r[o],i[o],e.position,h),c+=Qe.repeat(" ",t.indent)+G0((e.line+1).toString(),f)+" | "+d.str+`
41
- `,c+=Qe.repeat("-",t.indent+f+3+d.pos)+`^
42
- `,l=1;l<=t.linesAfter&&!(o+l>=i.length);l++)d=B0(e.buffer,r[o+l],i[o+l],e.position-(r[o]-r[o+l]),h),c+=Qe.repeat(" ",t.indent)+G0((e.line+l+1).toString(),f)+" | "+d.str+`
43
- `;return c.replace(/\n$/,"")}var Xde=Qde,Zde=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],efe=["scalar","sequence","mapping"];function tfe(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}function nfe(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(Zde.indexOf(n)===-1)throw new Nt('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=tfe(t.styleAliases||null),efe.indexOf(this.kind)===-1)throw new Nt('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var ht=nfe;function FM(e,t){var n=[];return e[t].forEach(function(r){var i=n.length;n.forEach(function(s,o){s.tag===r.tag&&s.kind===r.kind&&s.multi===r.multi&&(i=o)}),n[i]=r}),n}function rfe(){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 V0(e){return this.extend(e)}V0.prototype.extend=function(t){var n=[],r=[];if(t instanceof ht)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 Nt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(s){if(!(s instanceof ht))throw new Nt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new Nt("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 Nt("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 ht))throw new Nt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(V0.prototype);return i.implicit=(this.implicit||[]).concat(n),i.explicit=(this.explicit||[]).concat(r),i.compiledImplicit=FM(i,"implicit"),i.compiledExplicit=FM(i,"explicit"),i.compiledTypeMap=rfe(i.compiledImplicit,i.compiledExplicit),i};var ife=V0,sfe=new ht("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),ofe=new ht("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),afe=new ht("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),cfe=new ife({explicit:[sfe,ofe,afe]});function lfe(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function ufe(){return null}function dfe(e){return e===null}var ffe=new ht("tag:yaml.org,2002:null",{kind:"scalar",resolve:lfe,construct:ufe,predicate:dfe,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function mfe(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 pfe(e){return e==="true"||e==="True"||e==="TRUE"}function hfe(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var _fe=new ht("tag:yaml.org,2002:bool",{kind:"scalar",resolve:mfe,construct:pfe,predicate:hfe,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 yfe(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function gfe(e){return 48<=e&&e<=55}function Sfe(e){return 48<=e&&e<=57}function vfe(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(!yfe(e.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}if(i==="o"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(!gfe(e.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}}if(i==="_")return!1;for(;n<t;n++)if(i=e[n],i!=="_"){if(!Sfe(e.charCodeAt(n)))return!1;r=!0}return!(!r||i==="_")}function wfe(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 bfe(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Qe.isNegativeZero(e)}var Efe=new ht("tag:yaml.org,2002:int",{kind:"scalar",resolve:vfe,construct:wfe,predicate:bfe,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"]}}),Afe=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Tfe(e){return!(e===null||!Afe.test(e)||e[e.length-1]==="_")}function Cfe(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 xfe=/^[-+]?[0-9]+e/;function Ife(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(Qe.isNegativeZero(e))return"-0.0";return n=e.toString(10),xfe.test(n)?n.replace("e",".e"):n}function Rfe(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Qe.isNegativeZero(e))}var Dfe=new ht("tag:yaml.org,2002:float",{kind:"scalar",resolve:Tfe,construct:Cfe,predicate:Rfe,represent:Ife,defaultStyle:"lowercase"}),Nfe=cfe.extend({implicit:[ffe,_fe,Efe,Dfe]}),Pfe=Nfe,rz=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),iz=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 Ofe(e){return e===null?!1:rz.exec(e)!==null||iz.exec(e)!==null}function Lfe(e){var t,n,r,i,s,o,c,l=0,d=null,f,h,_;if(t=rz.exec(e),t===null&&(t=iz.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],o=+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],h=+(t[11]||0),d=(f*60+h)*6e4,t[9]==="-"&&(d=-d)),_=new Date(Date.UTC(n,r,i,s,o,c,l)),d&&_.setTime(_.getTime()-d),_}function qfe(e){return e.toISOString()}var Mfe=new ht("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Ofe,construct:Lfe,instanceOf:Date,represent:qfe});function zfe(e){return e==="<<"||e===null}var jfe=new ht("tag:yaml.org,2002:merge",{kind:"scalar",resolve:zfe}),J0=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
44
- \r`;function kfe(e){if(e===null)return!1;var t,n,r=0,i=e.length,s=J0;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 Ffe(e){var t,n,r=e.replace(/[\r\n=]/g,""),i=r.length,s=J0,o=0,c=[];for(t=0;t<i;t++)t%4===0&&t&&(c.push(o>>16&255),c.push(o>>8&255),c.push(o&255)),o=o<<6|s.indexOf(r.charAt(t));return n=i%4*6,n===0?(c.push(o>>16&255),c.push(o>>8&255),c.push(o&255)):n===18?(c.push(o>>10&255),c.push(o>>2&255)):n===12&&c.push(o>>4&255),new Uint8Array(c)}function Ufe(e){var t="",n=0,r,i,s=e.length,o=J0;for(r=0;r<s;r++)r%3===0&&r&&(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]),n=(n<<8)+e[r];return i=s%3,i===0?(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]):i===2?(t+=o[n>>10&63],t+=o[n>>4&63],t+=o[n<<2&63],t+=o[64]):i===1&&(t+=o[n>>2&63],t+=o[n<<4&63],t+=o[64],t+=o[64]),t}function Bfe(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var Gfe=new ht("tag:yaml.org,2002:binary",{kind:"scalar",resolve:kfe,construct:Ffe,predicate:Bfe,represent:Ufe}),$fe=Object.prototype.hasOwnProperty,Vfe=Object.prototype.toString;function Kfe(e){if(e===null)return!0;var t=[],n,r,i,s,o,c=e;for(n=0,r=c.length;n<r;n+=1){if(i=c[n],o=!1,Vfe.call(i)!=="[object Object]")return!1;for(s in i)if($fe.call(i,s))if(!o)o=!0;else return!1;if(!o)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}function Hfe(e){return e!==null?e:[]}var Wfe=new ht("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Kfe,construct:Hfe}),Yfe=Object.prototype.toString;function Jfe(e){if(e===null)return!0;var t,n,r,i,s,o=e;for(s=new Array(o.length),t=0,n=o.length;t<n;t+=1){if(r=o[t],Yfe.call(r)!=="[object Object]"||(i=Object.keys(r),i.length!==1))return!1;s[t]=[i[0],r[i[0]]]}return!0}function Qfe(e){if(e===null)return[];var t,n,r,i,s,o=e;for(s=new Array(o.length),t=0,n=o.length;t<n;t+=1)r=o[t],i=Object.keys(r),s[t]=[i[0],r[i[0]]];return s}var Xfe=new ht("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Jfe,construct:Qfe}),Zfe=Object.prototype.hasOwnProperty;function eme(e){if(e===null)return!0;var t,n=e;for(t in n)if(Zfe.call(n,t)&&n[t]!==null)return!1;return!0}function tme(e){return e!==null?e:{}}var nme=new ht("tag:yaml.org,2002:set",{kind:"mapping",resolve:eme,construct:tme}),sz=Pfe.extend({implicit:[Mfe,jfe],explicit:[Gfe,Wfe,Xfe,nme]}),Hr=Object.prototype.hasOwnProperty,Fh=1,oz=2,az=3,Uh=4,$0=1,rme=2,UM=3,ime=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,sme=/[\x85\u2028\u2029]/,ome=/[,\[\]\{\}]/,cz=/^(?:!|!!|![a-z\-]+!)$/i,lz=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function BM(e){return Object.prototype.toString.call(e)}function kn(e){return e===10||e===13}function Pi(e){return e===9||e===32}function Pt(e){return e===9||e===32||e===10||e===13}function Bs(e){return e===44||e===91||e===93||e===123||e===125}function ame(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function cme(e){return e===120?2:e===117?4:e===85?8:0}function lme(e){return 48<=e&&e<=57?e-48:-1}function GM(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
45
- `: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 ume(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var uz=new Array(256),dz=new Array(256);for(Ni=0;Ni<256;Ni++)uz[Ni]=GM(Ni)?1:0,dz[Ni]=GM(Ni);var Ni;function dme(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||sz,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 fz(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=Xde(n),new Nt(t,n)}function H(e,t){throw fz(e,t)}function Bh(e,t){e.onWarning&&e.onWarning.call(null,fz(e,t))}var $M={YAML:function(t,n,r){var i,s,o;t.version!==null&&H(t,"duplication of %YAML directive"),r.length!==1&&H(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),i===null&&H(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),o=parseInt(i[2],10),s!==1&&H(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=o<2,o!==1&&o!==2&&Bh(t,"unsupported YAML version of the document")},TAG:function(t,n,r){var i,s;r.length!==2&&H(t,"TAG directive accepts exactly two arguments"),i=r[0],s=r[1],cz.test(i)||H(t,"ill-formed tag handle (first argument) of the TAG directive"),Hr.call(t.tagMap,i)&&H(t,'there is a previously declared suffix for "'+i+'" tag handle'),lz.test(s)||H(t,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{H(t,"tag prefix is malformed: "+s)}t.tagMap[i]=s}};function Kr(e,t,n,r){var i,s,o,c;if(t<n){if(c=e.input.slice(t,n),r)for(i=0,s=c.length;i<s;i+=1)o=c.charCodeAt(i),o===9||32<=o&&o<=1114111||H(e,"expected valid JSON character");else ime.test(c)&&H(e,"the stream contains non-printable characters");e.result+=c}}function VM(e,t,n,r){var i,s,o,c;for(Qe.isObject(n)||H(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(n),o=0,c=i.length;o<c;o+=1)s=i[o],Hr.call(t,s)||(t[s]=n[s],r[s]=!0)}function Gs(e,t,n,r,i,s,o,c,l){var d,f;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),d=0,f=i.length;d<f;d+=1)Array.isArray(i[d])&&H(e,"nested arrays are not supported inside keys"),typeof i=="object"&&BM(i[d])==="[object Object]"&&(i[d]="[object Object]");if(typeof i=="object"&&BM(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,f=s.length;d<f;d+=1)VM(e,t,s[d],n);else VM(e,t,s,n);else!e.json&&!Hr.call(n,i)&&Hr.call(t,i)&&(e.line=o||e.line,e.lineStart=c||e.lineStart,e.position=l||e.position,H(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 Q0(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++):H(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Ye(e,t,n){for(var r=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Pi(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(kn(i))for(Q0(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&&Bh(e,"deficient indentation"),r}function Vh(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||Pt(n)))}function X0(e,t){t===1?e.result+=" ":t>1&&(e.result+=Qe.repeat(`
46
- `,t-1))}function fme(e,t,n){var r,i,s,o,c,l,d,f,h=e.kind,_=e.result,S;if(S=e.input.charCodeAt(e.position),Pt(S)||Bs(S)||S===35||S===38||S===42||S===33||S===124||S===62||S===39||S===34||S===37||S===64||S===96||(S===63||S===45)&&(i=e.input.charCodeAt(e.position+1),Pt(i)||n&&Bs(i)))return!1;for(e.kind="scalar",e.result="",s=o=e.position,c=!1;S!==0;){if(S===58){if(i=e.input.charCodeAt(e.position+1),Pt(i)||n&&Bs(i))break}else if(S===35){if(r=e.input.charCodeAt(e.position-1),Pt(r))break}else{if(e.position===e.lineStart&&Vh(e)||n&&Bs(S))break;if(kn(S))if(l=e.line,d=e.lineStart,f=e.lineIndent,Ye(e,!1,-1),e.lineIndent>=t){c=!0,S=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=l,e.lineStart=d,e.lineIndent=f;break}}c&&(Kr(e,s,o,!1),X0(e,e.line-l),s=o=e.position,c=!1),Pi(S)||(o=e.position+1),S=e.input.charCodeAt(++e.position)}return Kr(e,s,o,!1),e.result?!0:(e.kind=h,e.result=_,!1)}function mme(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(Kr(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 kn(n)?(Kr(e,r,i,!0),X0(e,Ye(e,!1,t)),r=i=e.position):e.position===e.lineStart&&Vh(e)?H(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);H(e,"unexpected end of the stream within a single quoted scalar")}function pme(e,t){var n,r,i,s,o,c;if(c=e.input.charCodeAt(e.position),c!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;(c=e.input.charCodeAt(e.position))!==0;){if(c===34)return Kr(e,n,e.position,!0),e.position++,!0;if(c===92){if(Kr(e,n,e.position,!0),c=e.input.charCodeAt(++e.position),kn(c))Ye(e,!1,t);else if(c<256&&uz[c])e.result+=dz[c],e.position++;else if((o=cme(c))>0){for(i=o,s=0;i>0;i--)c=e.input.charCodeAt(++e.position),(o=ame(c))>=0?s=(s<<4)+o:H(e,"expected hexadecimal character");e.result+=ume(s),e.position++}else H(e,"unknown escape sequence");n=r=e.position}else kn(c)?(Kr(e,n,r,!0),X0(e,Ye(e,!1,t)),n=r=e.position):e.position===e.lineStart&&Vh(e)?H(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}H(e,"unexpected end of the stream within a double quoted scalar")}function hme(e,t){var n=!0,r,i,s,o=e.tag,c,l=e.anchor,d,f,h,_,S,v=Object.create(null),y,R,P,C;if(C=e.input.charCodeAt(e.position),C===91)f=93,S=!1,c=[];else if(C===123)f=125,S=!0,c={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=c),C=e.input.charCodeAt(++e.position);C!==0;){if(Ye(e,!0,t),C=e.input.charCodeAt(e.position),C===f)return e.position++,e.tag=o,e.anchor=l,e.kind=S?"mapping":"sequence",e.result=c,!0;n?C===44&&H(e,"expected the node content, but found ','"):H(e,"missed comma between flow collection entries"),R=y=P=null,h=_=!1,C===63&&(d=e.input.charCodeAt(e.position+1),Pt(d)&&(h=_=!0,e.position++,Ye(e,!0,t))),r=e.line,i=e.lineStart,s=e.position,$s(e,t,Fh,!1,!0),R=e.tag,y=e.result,Ye(e,!0,t),C=e.input.charCodeAt(e.position),(_||e.line===r)&&C===58&&(h=!0,C=e.input.charCodeAt(++e.position),Ye(e,!0,t),$s(e,t,Fh,!1,!0),P=e.result),S?Gs(e,c,v,R,y,P,r,i,s):h?c.push(Gs(e,null,v,R,y,P,r,i,s)):c.push(y),Ye(e,!0,t),C=e.input.charCodeAt(e.position),C===44?(n=!0,C=e.input.charCodeAt(++e.position)):n=!1}H(e,"unexpected end of the stream within a flow collection")}function _me(e,t){var n,r,i=$0,s=!1,o=!1,c=t,l=0,d=!1,f,h;if(h=e.input.charCodeAt(e.position),h===124)r=!1;else if(h===62)r=!0;else return!1;for(e.kind="scalar",e.result="";h!==0;)if(h=e.input.charCodeAt(++e.position),h===43||h===45)$0===i?i=h===43?UM:rme:H(e,"repeat of a chomping mode identifier");else if((f=lme(h))>=0)f===0?H(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?H(e,"repeat of an indentation width identifier"):(c=t+f-1,o=!0);else break;if(Pi(h)){do h=e.input.charCodeAt(++e.position);while(Pi(h));if(h===35)do h=e.input.charCodeAt(++e.position);while(!kn(h)&&h!==0)}for(;h!==0;){for(Q0(e),e.lineIndent=0,h=e.input.charCodeAt(e.position);(!o||e.lineIndent<c)&&h===32;)e.lineIndent++,h=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>c&&(c=e.lineIndent),kn(h)){l++;continue}if(e.lineIndent<c){i===UM?e.result+=Qe.repeat(`
47
- `,s?1+l:l):i===$0&&s&&(e.result+=`
48
- `);break}for(r?Pi(h)?(d=!0,e.result+=Qe.repeat(`
49
- `,s?1+l:l)):d?(d=!1,e.result+=Qe.repeat(`
50
- `,l+1)):l===0?s&&(e.result+=" "):e.result+=Qe.repeat(`
51
- `,l):e.result+=Qe.repeat(`
52
- `,s?1+l:l),s=!0,o=!0,l=0,n=e.position;!kn(h)&&h!==0;)h=e.input.charCodeAt(++e.position);Kr(e,n,e.position,!1)}return!0}function KM(e,t){var n,r=e.tag,i=e.anchor,s=[],o,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,H(e,"tab characters must not be used in indentation")),!(l!==45||(o=e.input.charCodeAt(e.position+1),!Pt(o))));){if(c=!0,e.position++,Ye(e,!0,-1)&&e.lineIndent<=t){s.push(null),l=e.input.charCodeAt(e.position);continue}if(n=e.line,$s(e,t,az,!1,!0),s.push(e.result),Ye(e,!0,-1),l=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&l!==0)H(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return c?(e.tag=r,e.anchor=i,e.kind="sequence",e.result=s,!0):!1}function yme(e,t,n){var r,i,s,o,c,l,d=e.tag,f=e.anchor,h={},_=Object.create(null),S=null,v=null,y=null,R=!1,P=!1,C;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=h),C=e.input.charCodeAt(e.position);C!==0;){if(!R&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,H(e,"tab characters must not be used in indentation")),r=e.input.charCodeAt(e.position+1),s=e.line,(C===63||C===58)&&Pt(r))C===63?(R&&(Gs(e,h,_,S,v,null,o,c,l),S=v=y=null),P=!0,R=!0,i=!0):R?(R=!1,i=!0):H(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,C=r;else{if(o=e.line,c=e.lineStart,l=e.position,!$s(e,n,oz,!1,!0))break;if(e.line===s){for(C=e.input.charCodeAt(e.position);Pi(C);)C=e.input.charCodeAt(++e.position);if(C===58)C=e.input.charCodeAt(++e.position),Pt(C)||H(e,"a whitespace character is expected after the key-value separator within a block mapping"),R&&(Gs(e,h,_,S,v,null,o,c,l),S=v=y=null),P=!0,R=!1,i=!1,S=e.tag,v=e.result;else if(P)H(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=d,e.anchor=f,!0}else if(P)H(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=d,e.anchor=f,!0}if((e.line===s||e.lineIndent>t)&&(R&&(o=e.line,c=e.lineStart,l=e.position),$s(e,t,Uh,!0,i)&&(R?v=e.result:y=e.result),R||(Gs(e,h,_,S,v,y,o,c,l),S=v=y=null),Ye(e,!0,-1),C=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&C!==0)H(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return R&&Gs(e,h,_,S,v,null,o,c,l),P&&(e.tag=d,e.anchor=f,e.kind="mapping",e.result=h),P}function gme(e){var t,n=!1,r=!1,i,s,o;if(o=e.input.charCodeAt(e.position),o!==33)return!1;if(e.tag!==null&&H(e,"duplication of a tag property"),o=e.input.charCodeAt(++e.position),o===60?(n=!0,o=e.input.charCodeAt(++e.position)):o===33?(r=!0,i="!!",o=e.input.charCodeAt(++e.position)):i="!",t=e.position,n){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(s=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):H(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!Pt(o);)o===33&&(r?H(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),cz.test(i)||H(e,"named tag handle cannot contain such characters"),r=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),ome.test(s)&&H(e,"tag suffix cannot contain flow indicator characters")}s&&!lz.test(s)&&H(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{H(e,"tag name is malformed: "+s)}return n?e.tag=s:Hr.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:H(e,'undeclared tag handle "'+i+'"'),!0}function Sme(e){var t,n;if(n=e.input.charCodeAt(e.position),n!==38)return!1;for(e.anchor!==null&&H(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!Pt(n)&&!Bs(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&H(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function vme(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&&!Pt(r)&&!Bs(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&H(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),Hr.call(e.anchorMap,n)||H(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],Ye(e,!0,-1),!0}function $s(e,t,n,r,i){var s,o,c,l=1,d=!1,f=!1,h,_,S,v,y,R;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=o=c=Uh===n||az===n,r&&Ye(e,!0,-1)&&(d=!0,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)),l===1)for(;gme(e)||Sme(e);)Ye(e,!0,-1)?(d=!0,c=s,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)):c=!1;if(c&&(c=d||i),(l===1||Uh===n)&&(Fh===n||oz===n?y=t:y=t+1,R=e.position-e.lineStart,l===1?c&&(KM(e,R)||yme(e,R,y))||hme(e,y)?f=!0:(o&&_me(e,y)||mme(e,y)||pme(e,y)?f=!0:vme(e)?(f=!0,(e.tag!==null||e.anchor!==null)&&H(e,"alias node should not have any properties")):fme(e,y,Fh===n)&&(f=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):l===0&&(f=c&&KM(e,R))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&H(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),h=0,_=e.implicitTypes.length;h<_;h+=1)if(v=e.implicitTypes[h],v.resolve(e.result)){e.result=v.construct(e.result),e.tag=v.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(Hr.call(e.typeMap[e.kind||"fallback"],e.tag))v=e.typeMap[e.kind||"fallback"][e.tag];else for(v=null,S=e.typeMap.multi[e.kind||"fallback"],h=0,_=S.length;h<_;h+=1)if(e.tag.slice(0,S[h].tag.length)===S[h].tag){v=S[h];break}v||H(e,"unknown tag !<"+e.tag+">"),e.result!==null&&v.kind!==e.kind&&H(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+v.kind+'", not "'+e.kind+'"'),v.resolve(e.result,e.tag)?(e.result=v.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):H(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 wme(e){var t=e.position,n,r,i,s=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(Ye(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(s=!0,o=e.input.charCodeAt(++e.position),n=e.position;o!==0&&!Pt(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),i=[],r.length<1&&H(e,"directive name must not be less than one character in length");o!==0;){for(;Pi(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!kn(o));break}if(kn(o))break;for(n=e.position;o!==0&&!Pt(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}o!==0&&Q0(e),Hr.call($M,r)?$M[r](e,r,i):Bh(e,'unknown document directive "'+r+'"')}if(Ye(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,Ye(e,!0,-1)):s&&H(e,"directives end mark is expected"),$s(e,e.lineIndent-1,Uh,!1,!0),Ye(e,!0,-1),e.checkLineBreaks&&sme.test(e.input.slice(t,e.position))&&Bh(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Vh(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Ye(e,!0,-1));return}if(e.position<e.length-1)H(e,"end of the stream or a document separator is expected");else return}function mz(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
53
- `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new dme(e,t),r=e.indexOf("\0");for(r!==-1&&(n.position=r,H(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;)wme(n);return n.documents}function bme(e,t,n){t!==null&&typeof t=="object"&&typeof n>"u"&&(n=t,t=null);var r=mz(e,n);if(typeof t!="function")return r;for(var i=0,s=r.length;i<s;i+=1)t(r[i])}function Eme(e,t){var n=mz(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new Nt("expected a single document in the stream, but found more")}}var Ame=bme,Tme=Eme,pz={loadAll:Ame,load:Tme},hz=Object.prototype.toString,_z=Object.prototype.hasOwnProperty,Z0=65279,Cme=9,hc=10,xme=13,Ime=32,Rme=33,Dme=34,K0=35,Nme=37,Pme=38,Ome=39,Lme=42,yz=44,qme=45,Gh=58,Mme=61,zme=62,jme=63,kme=64,gz=91,Sz=93,Fme=96,vz=123,Ume=124,wz=125,_t={};_t[0]="\\0";_t[7]="\\a";_t[8]="\\b";_t[9]="\\t";_t[10]="\\n";_t[11]="\\v";_t[12]="\\f";_t[13]="\\r";_t[27]="\\e";_t[34]='\\"';_t[92]="\\\\";_t[133]="\\N";_t[160]="\\_";_t[8232]="\\L";_t[8233]="\\P";var Bme=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Gme=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function $me(e,t){var n,r,i,s,o,c,l;if(t===null)return{};for(n={},r=Object.keys(t),i=0,s=r.length;i<s;i+=1)o=r[i],c=String(t[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),l=e.compiledTypeMap.fallback[o],l&&_z.call(l.styleAliases,c)&&(c=l.styleAliases[c]),n[o]=c;return n}function Vme(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 Nt("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+Qe.repeat("0",r-t.length)+t}var Kme=1,_c=2;function Hme(e){this.schema=e.schema||sz,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Qe.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=$me(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==='"'?_c:Kme,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 HM(e,t){for(var n=Qe.repeat(" ",t),r=0,i=-1,s="",o,c=e.length;r<c;)i=e.indexOf(`
54
- `,r),i===-1?(o=e.slice(r),r=c):(o=e.slice(r,i+1),r=i+1),o.length&&o!==`
55
- `&&(s+=n),s+=o;return s}function H0(e,t){return`
56
- `+Qe.repeat(" ",e.indent*t)}function Wme(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 $h(e){return e===Ime||e===Cme}function yc(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Z0||65536<=e&&e<=1114111}function WM(e){return yc(e)&&e!==Z0&&e!==xme&&e!==hc}function YM(e,t,n){var r=WM(e),i=r&&!$h(e);return(n?r:r&&e!==yz&&e!==gz&&e!==Sz&&e!==vz&&e!==wz)&&e!==K0&&!(t===Gh&&!i)||WM(t)&&!$h(t)&&e===K0||t===Gh&&i}function Yme(e){return yc(e)&&e!==Z0&&!$h(e)&&e!==qme&&e!==jme&&e!==Gh&&e!==yz&&e!==gz&&e!==Sz&&e!==vz&&e!==wz&&e!==K0&&e!==Pme&&e!==Lme&&e!==Rme&&e!==Ume&&e!==Mme&&e!==zme&&e!==Ome&&e!==Dme&&e!==Nme&&e!==kme&&e!==Fme}function Jme(e){return!$h(e)&&e!==Gh}function mc(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 bz(e){var t=/^\n* /;return t.test(e)}var Ez=1,W0=2,Az=3,Tz=4,Us=5;function Qme(e,t,n,r,i,s,o,c){var l,d=0,f=null,h=!1,_=!1,S=r!==-1,v=-1,y=Yme(mc(e,0))&&Jme(mc(e,e.length-1));if(t||o)for(l=0;l<e.length;d>=65536?l+=2:l++){if(d=mc(e,l),!yc(d))return Us;y=y&&YM(d,f,c),f=d}else{for(l=0;l<e.length;d>=65536?l+=2:l++){if(d=mc(e,l),d===hc)h=!0,S&&(_=_||l-v-1>r&&e[v+1]!==" ",v=l);else if(!yc(d))return Us;y=y&&YM(d,f,c),f=d}_=_||S&&l-v-1>r&&e[v+1]!==" "}return!h&&!_?y&&!o&&!i(e)?Ez:s===_c?Us:W0:n>9&&bz(e)?Us:o?s===_c?Us:W0:_?Tz:Az}function Xme(e,t,n,r,i){e.dump=function(){if(t.length===0)return e.quotingType===_c?'""':"''";if(!e.noCompatMode&&(Bme.indexOf(t)!==-1||Gme.test(t)))return e.quotingType===_c?'"'+t+'"':"'"+t+"'";var s=e.indent*Math.max(1,n),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s),c=r||e.flowLevel>-1&&n>=e.flowLevel;function l(d){return Wme(e,d)}switch(Qme(t,c,e.indent,o,l,e.quotingType,e.forceQuotes&&!r,i)){case Ez:return t;case W0:return"'"+t.replace(/'/g,"''")+"'";case Az:return"|"+JM(t,e.indent)+QM(HM(t,s));case Tz:return">"+JM(t,e.indent)+QM(HM(Zme(t,o),s));case Us:return'"'+epe(t)+'"';default:throw new Nt("impossible error: invalid scalar style")}}()}function JM(e,t){var n=bz(e)?String(t):"",r=e[e.length-1]===`
57
- `,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]===`
58
59
  `||e===`
59
- `),s=i?"+":r?"":"-";return n+s+`
60
- `}function QM(e){return e[e.length-1]===`
61
- `?e.slice(0,-1):e}function Zme(e,t){for(var n=/(\n+)([^\n]*)/g,r=function(){var d=e.indexOf(`
62
- `);return d=d!==-1?d:e.length,n.lastIndex=d,XM(e.slice(0,d),t)}(),i=e[0]===`
63
- `||e[0]===" ",s,o;o=n.exec(e);){var c=o[1],l=o[2];s=l[0]===" ",r+=c+(!i&&!s&&l!==""?`
64
- `:"")+XM(l,t),i=s}return r}function XM(e,t){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,r,i=0,s,o=0,c=0,l="";r=n.exec(e);)c=r.index,c-i>t&&(s=o>i?o:c,l+=`
65
- `+e.slice(i,s),i=s+1),o=c;return l+=`
66
- `,e.length-i>t&&o>i?l+=e.slice(i,o)+`
67
- `+e.slice(o+1):l+=e.slice(i),l.slice(1)}function epe(e){for(var t="",n=0,r,i=0;i<e.length;n>=65536?i+=2:i++)n=mc(e,i),r=_t[n],!r&&yc(n)?(t+=e[i],n>=65536&&(t+=e[i+1])):t+=r||Vme(n);return t}function tpe(e,t,n){var r="",i=e.tag,s,o,c;for(s=0,o=n.length;s<o;s+=1)c=n[s],e.replacer&&(c=e.replacer.call(n,String(s),c)),(or(e,t,c,!1,!1)||typeof c>"u"&&or(e,t,null,!1,!1))&&(r!==""&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=i,e.dump="["+r+"]"}function ZM(e,t,n,r){var i="",s=e.tag,o,c,l;for(o=0,c=n.length;o<c;o+=1)l=n[o],e.replacer&&(l=e.replacer.call(n,String(o),l)),(or(e,t+1,l,!0,!0,!1,!0)||typeof l>"u"&&or(e,t+1,null,!0,!0,!1,!0))&&((!r||i!=="")&&(i+=H0(e,t)),e.dump&&hc===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}function npe(e,t,n){var r="",i=e.tag,s=Object.keys(n),o,c,l,d,f;for(o=0,c=s.length;o<c;o+=1)f="",r!==""&&(f+=", "),e.condenseFlow&&(f+='"'),l=s[o],d=n[l],e.replacer&&(d=e.replacer.call(n,l,d)),or(e,t,l,!1,!1)&&(e.dump.length>1024&&(f+="? "),f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),or(e,t,d,!1,!1)&&(f+=e.dump,r+=f));e.tag=i,e.dump="{"+r+"}"}function rpe(e,t,n,r){var i="",s=e.tag,o=Object.keys(n),c,l,d,f,h,_;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new Nt("sortKeys must be a boolean or a function");for(c=0,l=o.length;c<l;c+=1)_="",(!r||i!=="")&&(_+=H0(e,t)),d=o[c],f=n[d],e.replacer&&(f=e.replacer.call(n,d,f)),or(e,t+1,d,!0,!0,!0)&&(h=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,h&&(e.dump&&hc===e.dump.charCodeAt(0)?_+="?":_+="? "),_+=e.dump,h&&(_+=H0(e,t)),or(e,t+1,f,!0,h)&&(e.dump&&hc===e.dump.charCodeAt(0)?_+=":":_+=": ",_+=e.dump,i+=_));e.tag=s,e.dump=i||"{}"}function ez(e,t,n){var r,i,s,o,c,l;for(i=n?e.explicitTypes:e.implicitTypes,s=0,o=i.length;s<o;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(n?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,hz.call(c.represent)==="[object Function]")r=c.represent(t,l);else if(_z.call(c.represent,l))r=c.represent[l](t,l);else throw new Nt("!<"+c.tag+'> tag resolver accepts not "'+l+'" style');e.dump=r}return!0}return!1}function or(e,t,n,r,i,s,o){e.tag=null,e.dump=n,ez(e,n,!1)||ez(e,n,!0);var c=hz.call(e.dump),l=r,d;r&&(r=e.flowLevel<0||e.flowLevel>t);var f=c==="[object Object]"||c==="[object Array]",h,_;if(f&&(h=e.duplicates.indexOf(n),_=h!==-1),(e.tag!==null&&e.tag!=="?"||_||e.indent!==2&&t>0)&&(i=!1),_&&e.usedDuplicates[h])e.dump="*ref_"+h;else{if(f&&_&&!e.usedDuplicates[h]&&(e.usedDuplicates[h]=!0),c==="[object Object]")r&&Object.keys(e.dump).length!==0?(rpe(e,t,e.dump,i),_&&(e.dump="&ref_"+h+e.dump)):(npe(e,t,e.dump),_&&(e.dump="&ref_"+h+" "+e.dump));else if(c==="[object Array]")r&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?ZM(e,t-1,e.dump,i):ZM(e,t,e.dump,i),_&&(e.dump="&ref_"+h+e.dump)):(tpe(e,t,e.dump),_&&(e.dump="&ref_"+h+" "+e.dump));else if(c==="[object String]")e.tag!=="?"&&Xme(e,e.dump,t,s,l);else{if(c==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Nt("unacceptable kind of an object to dump "+c)}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 ipe(e,t){var n=[],r=[],i,s;for(Y0(e,n,r),i=0,s=r.length;i<s;i+=1)t.duplicates.push(n[r[i]]);t.usedDuplicates=new Array(s)}function Y0(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)Y0(e[i],t,n);else for(r=Object.keys(e),i=0,s=r.length;i<s;i+=1)Y0(e[r[i]],t,n)}function spe(e,t){t=t||{};var n=new Hme(t);n.noRefs||ipe(e,n);var r=e;return n.replacer&&(r=n.replacer.call({"":r},"",r)),or(n,0,r,!0,!0)?n.dump+`
68
- `:""}var ope=spe,ape={dump:ope};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 Cz=pz.load,rAe=pz.loadAll,iAe=ape.dump;var sAe=eb("safeLoad","load"),oAe=eb("safeLoadAll","loadAll"),aAe=eb("safeDump","dump");var Cc=un(n_()),jj=un(n_());var i_=un(I0()),r_=class{static async getExistingFiles(t){let n=[];for(let r of t)await(0,i_.pathExists)(r)&&n.push(r);return n}static getExistingFilesSync(t){let n=[];for(let r of t)(0,i_.pathExistsSync)(r)&&n.push(r);return n}};var zj=un(n_()),Tc=class{};ki([(0,zj.Property)({doc:"DynamoDB Table Name",default:"MicroApps",env:"DATABASE_TABLE_NAME"})],Tc.prototype,"tableName",2);var tt=class{static configFiles(){let t=["./configs/config.yaml","./configs/config.yml",`./configs/config-${tt.envLevel}.yaml`,`./configs/config-${tt.envLevel}.yml`];return r_.getExistingFilesSync(t)}static get instance(){if(tt._instance===void 0){let t=new jj.TSConvict(tt);tt._instance=t.load(tt.configFiles())}return tt._instance}static get envLevel(){let t=process.env.NODE_ENV||"dev";return t.startsWith("prod")?"prod":t==="qa"?"qa":t==="local"?"local":"dev"}};ki([Cc.Property(Tc)],tt.prototype,"db",2),ki([Cc.Property({doc:"Path prefix for this deployment",default:"",env:"ROOT_PATH_PREFIX"})],tt.prototype,"rootPathPrefix",2),tt=ki([Cc.Config({file:"config.yml",validationMethod:"strict",parser:{extension:["yml","yaml"],parse:Cz},formats:{url:s_.url,ipaddress:s_.ipaddress}})],tt);var n_e=!!process.env.DEBUG,Xs,Pb=new kj.DynamoDBClient({maxAttempts:8});function r_e(e){Xs=e.dbManager,Pb=e.dynamoClient}Xs=new Mi.DBManager({dynamoClient:Pb,tableName:tt.instance.db.tableName});function i_e(e){let t=e;return t!==""&&!t.startsWith("/")&&(t="/"+e),t.endsWith("/")&&t.substring(0,t.length-1),t}function s_e(){let e=[__dirname,a_.default.join(__dirname,".."),a_.default.join(__dirname,"templates"),"/opt","/opt/templates"],t=new Nb.LambdaLog({meta:{source:"microapps-router"},dynamicMeta:n=>({timestamp:new Date().toISOString()})});for(let n of e){let r=a_.default.join(n,"appFrame.html");try{if((0,c_.pathExistsSync)(r))return t.info("found html file",{fullPath:r}),(0,c_.readFileSync)(r,"utf-8")}catch{}}throw t.error("appFrame.html not found"),new Error("appFrame.html not found")}var o_e=s_e(),Ut=i_e(tt.instance.rootPathPrefix),o_=new Nb.LambdaLog({dev:n_e,dynamicMeta:e=>({timestamp:new Date().toISOString()})});async function a_e(e,t){Xs===void 0&&(Xs=new Mi.DBManager({dynamoClient:Pb,tableName:tt.instance.db.tableName}));let n={statusCode:200,headers:{},isBase64Encoded:!1};o_.options={meta:{source:"microapps-router",awsRequestId:t.awsRequestId,rawPath:e.rawPath}};try{if(Ut!==""&&!e.rawPath.startsWith(Ut))return n.statusCode=404,n;let i=(Ut!==""&&e.rawPath.startsWith(Ut)?e.rawPath.slice(Ut.length-1):e.rawPath).split("/"),s="";if(i.length>=3&&i[2]!==""&&(s=i.slice(2).join("/")),(i.length===3||i.length===4)&&await l_e({response:n,appName:i[1],semVer:i[2],log:o_}))return n;if(i.length>=2)await c_e({event:e,response:n,appName:i[1],additionalParts:s,log:o_});else throw new Error("Unmatched route")}catch(r){o_.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 c_e(e){var h,_;let{event:t,response:n,appName:r,additionalParts:i,log:s}=e,o;if(n.headers===void 0)throw new Error("do not call me with undefined headers");try{o=await Mi.Application.GetVersionsAndRules({dbManager:Xs,key:{AppName:r}})}catch(S){s.info(`GetVersionsAndRules threw for '${r}', assuming not found - returning 404`,{appName:r,statusCode:404,error:S}),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=(_=(h=o.Rules)==null?void 0:h.RuleSet.default)==null?void 0:_.SemVer;if(c==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 l=o.Versions.find(S=>S.SemVer===c),d;(l==null?void 0:l.Type)!=="static"&&((l==null?void 0:l.DefaultFile)===void 0||(l==null?void 0:l.DefaultFile)===""||i!=="")?(d=`${Ut}/${r}/${c}`,i!==""&&(d+=`/${i}`)):d=`${Ut}/${r}/${c}/${l.DefaultFile}`;let f=o_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=f,s.info(`found app ${r}, for path ${t.rawPath} - returning 200`,{statusCode:200,routedPath:d})}async function l_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 Mi.Version.LoadVersion({dbManager:Xs,key:{AppName:n,SemVer:r}})}catch(o){return i.info(`LoadVersion threw for '${Ut}/${n}/${r}' - falling through to app routing'`,{appName:n,semVer:r,error:o}),!1}return s===void 0?(i.info(`LoadVersion returned undefined for '${Ut}/${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=`${Ut}/${n}/${r}/${s.DefaultFile}`,i.info(`found '${Ut}/${n}/${r}' - returning 302 to ${Ut}/${n}/${r}/${s.DefaultFile}`,{statusCode:302,routedPath:`${Ut}/${n}/${r}/${s.DefaultFile}`}),!0)}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});
69
70
  /*! *****************************************************************************
70
71
  Copyright (C) Microsoft. All rights reserved.
71
72
  Licensed under the Apache License, Version 2.0 (the "License"); you may not use