mirror of
https://github.com/docker/login-action
synced 2024-11-14 01:41:42 +00:00
cccd53a808
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
17 lines
No EOL
724 KiB
JavaScript
Generated
17 lines
No EOL
724 KiB
JavaScript
Generated
require('./sourcemap-register.js');(()=>{var __webpack_modules__={87351:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;Object.defineProperty(e,o,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))o(t,e,n);r(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issue=t.issueCommand=void 0;const i=s(n(22037));const a=n(5278);function issueCommand(e,t,n){const o=new Command(e,t,n);process.stdout.write(o.toString()+i.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const c="::";class Command{constructor(e,t,n){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=n}toString(){let e=c+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const n in this.properties){if(this.properties.hasOwnProperty(n)){const o=this.properties[n];if(o){if(t){t=false}else{e+=","}e+=`${n}=${escapeProperty(o)}`}}}}e+=`${c}${escapeData(this.message)}`;return e}}function escapeData(e){return a.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return a.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},42186:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;Object.defineProperty(e,o,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))o(t,e,n);r(t,e);return t};var i=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function fulfilled(e){try{step(o.next(e))}catch(e){r(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){r(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getIDToken=t.getState=t.saveState=t.group=t.endGroup=t.startGroup=t.info=t.notice=t.warning=t.error=t.debug=t.isDebug=t.setFailed=t.setCommandEcho=t.setOutput=t.getBooleanInput=t.getMultilineInput=t.getInput=t.addPath=t.setSecret=t.exportVariable=t.ExitCode=void 0;const a=n(87351);const c=n(717);const d=n(5278);const u=s(n(22037));const l=s(n(71017));const p=n(98041);var m;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(m=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const n=d.toCommandValue(t);process.env[e]=n;const o=process.env["GITHUB_ENV"]||"";if(o){return c.issueFileCommand("ENV",c.prepareKeyValueMessage(e,t))}a.issueCommand("set-env",{name:e},n)}t.exportVariable=exportVariable;function setSecret(e){a.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){c.issueFileCommand("PATH",e)}else{a.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${l.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const n=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!n){throw new Error(`Input required and not supplied: ${e}`)}if(t&&t.trimWhitespace===false){return n}return n.trim()}t.getInput=getInput;function getMultilineInput(e,t){const n=getInput(e,t).split("\n").filter((e=>e!==""));if(t&&t.trimWhitespace===false){return n}return n.map((e=>e.trim()))}t.getMultilineInput=getMultilineInput;function getBooleanInput(e,t){const n=["true","True","TRUE"];const o=["false","False","FALSE"];const r=getInput(e,t);if(n.includes(r))return true;if(o.includes(r))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}t.getBooleanInput=getBooleanInput;function setOutput(e,t){const n=process.env["GITHUB_OUTPUT"]||"";if(n){return c.issueFileCommand("OUTPUT",c.prepareKeyValueMessage(e,t))}process.stdout.write(u.EOL);a.issueCommand("set-output",{name:e},d.toCommandValue(t))}t.setOutput=setOutput;function setCommandEcho(e){a.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=m.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){a.issueCommand("debug",{},e)}t.debug=debug;function error(e,t={}){a.issueCommand("error",d.toCommandProperties(t),e instanceof Error?e.toString():e)}t.error=error;function warning(e,t={}){a.issueCommand("warning",d.toCommandProperties(t),e instanceof Error?e.toString():e)}t.warning=warning;function notice(e,t={}){a.issueCommand("notice",d.toCommandProperties(t),e instanceof Error?e.toString():e)}t.notice=notice;function info(e){process.stdout.write(e+u.EOL)}t.info=info;function startGroup(e){a.issue("group",e)}t.startGroup=startGroup;function endGroup(){a.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return i(this,void 0,void 0,(function*(){startGroup(e);let n;try{n=yield t()}finally{endGroup()}return n}))}t.group=group;function saveState(e,t){const n=process.env["GITHUB_STATE"]||"";if(n){return c.issueFileCommand("STATE",c.prepareKeyValueMessage(e,t))}a.issueCommand("save-state",{name:e},d.toCommandValue(t))}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState;function getIDToken(e){return i(this,void 0,void 0,(function*(){return yield p.OidcClient.getIDToken(e)}))}t.getIDToken=getIDToken;var f=n(81327);Object.defineProperty(t,"summary",{enumerable:true,get:function(){return f.summary}});var y=n(81327);Object.defineProperty(t,"markdownSummary",{enumerable:true,get:function(){return y.markdownSummary}});var g=n(2981);Object.defineProperty(t,"toPosixPath",{enumerable:true,get:function(){return g.toPosixPath}});Object.defineProperty(t,"toWin32Path",{enumerable:true,get:function(){return g.toWin32Path}});Object.defineProperty(t,"toPlatformPath",{enumerable:true,get:function(){return g.toPlatformPath}})},717:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;Object.defineProperty(e,o,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))o(t,e,n);r(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.prepareKeyValueMessage=t.issueFileCommand=void 0;const i=s(n(57147));const a=s(n(22037));const c=n(75840);const d=n(5278);function issueFileCommand(e,t){const n=process.env[`GITHUB_${e}`];if(!n){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!i.existsSync(n)){throw new Error(`Missing file at path: ${n}`)}i.appendFileSync(n,`${d.toCommandValue(t)}${a.EOL}`,{encoding:"utf8"})}t.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(e,t){const n=`ghadelimiter_${c.v4()}`;const o=d.toCommandValue(t);if(e.includes(n)){throw new Error(`Unexpected input: name should not contain the delimiter "${n}"`)}if(o.includes(n)){throw new Error(`Unexpected input: value should not contain the delimiter "${n}"`)}return`${e}<<${n}${a.EOL}${o}${a.EOL}${n}`}t.prepareKeyValueMessage=prepareKeyValueMessage},98041:function(e,t,n){"use strict";var o=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function fulfilled(e){try{step(o.next(e))}catch(e){r(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){r(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.OidcClient=void 0;const r=n(96255);const s=n(35526);const i=n(42186);class OidcClient{static createHttpClient(e=true,t=10){const n={allowRetries:e,maxRetries:t};return new r.HttpClient("actions/oidc-client",[new s.BearerCredentialHandler(OidcClient.getRequestToken())],n)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return e}static getIDTokenUrl(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){var t;return o(this,void 0,void 0,(function*(){const n=OidcClient.createHttpClient();const o=yield n.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.result.message}`)}));const r=(t=o.result)===null||t===void 0?void 0:t.value;if(!r){throw new Error("Response json body do not have ID Token field")}return r}))}static getIDToken(e){return o(this,void 0,void 0,(function*(){try{let t=OidcClient.getIDTokenUrl();if(e){const n=encodeURIComponent(e);t=`${t}&audience=${n}`}i.debug(`ID token url is ${t}`);const n=yield OidcClient.getCall(t);i.setSecret(n);return n}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}t.OidcClient=OidcClient},2981:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;Object.defineProperty(e,o,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))o(t,e,n);r(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.toPlatformPath=t.toWin32Path=t.toPosixPath=void 0;const i=s(n(71017));function toPosixPath(e){return e.replace(/[\\]/g,"/")}t.toPosixPath=toPosixPath;function toWin32Path(e){return e.replace(/[/]/g,"\\")}t.toWin32Path=toWin32Path;function toPlatformPath(e){return e.replace(/[/\\]/g,i.sep)}t.toPlatformPath=toPlatformPath},81327:function(e,t,n){"use strict";var o=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function fulfilled(e){try{step(o.next(e))}catch(e){r(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){r(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.summary=t.markdownSummary=t.SUMMARY_DOCS_URL=t.SUMMARY_ENV_VAR=void 0;const r=n(22037);const s=n(57147);const{access:i,appendFile:a,writeFile:c}=s.promises;t.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";t.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Summary{constructor(){this._buffer=""}filePath(){return o(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const e=process.env[t.SUMMARY_ENV_VAR];if(!e){throw new Error(`Unable to find environment variable for $${t.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield i(e,s.constants.R_OK|s.constants.W_OK)}catch(t){throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}this._filePath=e;return this._filePath}))}wrap(e,t,n={}){const o=Object.entries(n).map((([e,t])=>` ${e}="${t}"`)).join("");if(!t){return`<${e}${o}>`}return`<${e}${o}>${t}</${e}>`}write(e){return o(this,void 0,void 0,(function*(){const t=!!(e===null||e===void 0?void 0:e.overwrite);const n=yield this.filePath();const o=t?c:a;yield o(n,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return o(this,void 0,void 0,(function*(){return this.emptyBuffer().write({overwrite:true})}))}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){this._buffer="";return this}addRaw(e,t=false){this._buffer+=e;return t?this.addEOL():this}addEOL(){return this.addRaw(r.EOL)}addCodeBlock(e,t){const n=Object.assign({},t&&{lang:t});const o=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(o).addEOL()}addList(e,t=false){const n=t?"ol":"ul";const o=e.map((e=>this.wrap("li",e))).join("");const r=this.wrap(n,o);return this.addRaw(r).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if(typeof e==="string"){return this.wrap("td",e)}const{header:t,data:n,colspan:o,rowspan:r}=e;const s=t?"th":"td";const i=Object.assign(Object.assign({},o&&{colspan:o}),r&&{rowspan:r});return this.wrap(s,n,i)})).join("");return this.wrap("tr",t)})).join("");const n=this.wrap("table",t);return this.addRaw(n).addEOL()}addDetails(e,t){const n=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(n).addEOL()}addImage(e,t,n){const{width:o,height:r}=n||{};const s=Object.assign(Object.assign({},o&&{width:o}),r&&{height:r});const i=this.wrap("img",null,Object.assign({src:e,alt:t},s));return this.addRaw(i).addEOL()}addHeading(e,t){const n=`h${t}`;const o=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1";const r=this.wrap(o,e);return this.addRaw(r).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const n=Object.assign({},t&&{cite:t});const o=this.wrap("blockquote",e,n);return this.addRaw(o).addEOL()}addLink(e,t){const n=this.wrap("a",e,{href:t});return this.addRaw(n).addEOL()}}const d=new Summary;t.markdownSummary=d;t.summary=d},5278:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toCommandProperties=t.toCommandValue=void 0;function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}t.toCommandProperties=toCommandProperties},71514:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;Object.defineProperty(e,o,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))o(t,e,n);r(t,e);return t};var i=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function fulfilled(e){try{step(o.next(e))}catch(e){r(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){r(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getExecOutput=t.exec=void 0;const a=n(71576);const c=s(n(88159));function exec(e,t,n){return i(this,void 0,void 0,(function*(){const o=c.argStringToArray(e);if(o.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const r=o[0];t=o.slice(1).concat(t||[]);const s=new c.ToolRunner(r,t,n);return s.exec()}))}t.exec=exec;function getExecOutput(e,t,n){var o,r;return i(this,void 0,void 0,(function*(){let s="";let i="";const c=new a.StringDecoder("utf8");const d=new a.StringDecoder("utf8");const u=(o=n===null||n===void 0?void 0:n.listeners)===null||o===void 0?void 0:o.stdout;const l=(r=n===null||n===void 0?void 0:n.listeners)===null||r===void 0?void 0:r.stderr;const stdErrListener=e=>{i+=d.write(e);if(l){l(e)}};const stdOutListener=e=>{s+=c.write(e);if(u){u(e)}};const p=Object.assign(Object.assign({},n===null||n===void 0?void 0:n.listeners),{stdout:stdOutListener,stderr:stdErrListener});const m=yield exec(e,t,Object.assign(Object.assign({},n),{listeners:p}));s+=c.end();i+=d.end();return{exitCode:m,stdout:s,stderr:i}}))}t.getExecOutput=getExecOutput},88159:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;Object.defineProperty(e,o,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))o(t,e,n);r(t,e);return t};var i=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function fulfilled(e){try{step(o.next(e))}catch(e){r(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){r(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.argStringToArray=t.ToolRunner=void 0;const a=s(n(22037));const c=s(n(82361));const d=s(n(32081));const u=s(n(71017));const l=s(n(47351));const p=s(n(81962));const m=n(39512);const f=process.platform==="win32";class ToolRunner extends c.EventEmitter{constructor(e,t,n){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=t||[];this.options=n||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,t){const n=this._getSpawnFileName();const o=this._getSpawnArgs(e);let r=t?"":"[command]";if(f){if(this._isCmdFile()){r+=n;for(const e of o){r+=` ${e}`}}else if(e.windowsVerbatimArguments){r+=`"${n}"`;for(const e of o){r+=` ${e}`}}else{r+=this._windowsQuoteCmdArg(n);for(const e of o){r+=` ${this._windowsQuoteCmdArg(e)}`}}}else{r+=n;for(const e of o){r+=` ${e}`}}return r}_processLineBuffer(e,t,n){try{let o=t+e.toString();let r=o.indexOf(a.EOL);while(r>-1){const e=o.substring(0,r);n(e);o=o.substring(r+a.EOL.length);r=o.indexOf(a.EOL)}return o}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(f){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(f){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const n of this.args){t+=" ";t+=e.windowsVerbatimArguments?n:this._windowsQuoteCmdArg(n)}t+='"';return[t]}}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile()){return this._uvQuoteCmdArg(e)}if(!e){return'""'}const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let n=false;for(const o of e){if(t.some((e=>e===o))){n=true;break}}if(!n){return e}let o='"';let r=true;for(let t=e.length;t>0;t--){o+=e[t-1];if(r&&e[t-1]==="\\"){o+="\\"}else if(e[t-1]==='"'){r=true;o+='"'}else{r=false}}o+='"';return o.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let t='"';let n=true;for(let o=e.length;o>0;o--){t+=e[o-1];if(n&&e[o-1]==="\\"){t+="\\"}else if(e[o-1]==='"'){n=true;t+="\\"}else{n=false}}t+='"';return t.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const t={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};t.outStream=e.outStream||process.stdout;t.errStream=e.errStream||process.stderr;return t}_getSpawnOptions(e,t){e=e||{};const n={};n.cwd=e.cwd;n.env=e.env;n["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){n.argv0=`"${t}"`}return n}exec(){return i(this,void 0,void 0,(function*(){if(!p.isRooted(this.toolPath)&&(this.toolPath.includes("/")||f&&this.toolPath.includes("\\"))){this.toolPath=u.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield l.which(this.toolPath,true);return new Promise(((e,t)=>i(this,void 0,void 0,(function*(){this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const n=this._cloneExecOptions(this.options);if(!n.silent&&n.outStream){n.outStream.write(this._getCommandString(n)+a.EOL)}const o=new ExecState(n,this.toolPath);o.on("debug",(e=>{this._debug(e)}));if(this.options.cwd&&!(yield p.exists(this.options.cwd))){return t(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const r=this._getSpawnFileName();const s=d.spawn(r,this._getSpawnArgs(n),this._getSpawnOptions(this.options,r));let i="";if(s.stdout){s.stdout.on("data",(e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!n.silent&&n.outStream){n.outStream.write(e)}i=this._processLineBuffer(e,i,(e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}}))}))}let c="";if(s.stderr){s.stderr.on("data",(e=>{o.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!n.silent&&n.errStream&&n.outStream){const t=n.failOnStdErr?n.errStream:n.outStream;t.write(e)}c=this._processLineBuffer(e,c,(e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}}))}))}s.on("error",(e=>{o.processError=e.message;o.processExited=true;o.processClosed=true;o.CheckComplete()}));s.on("exit",(e=>{o.processExitCode=e;o.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);o.CheckComplete()}));s.on("close",(e=>{o.processExitCode=e;o.processExited=true;o.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);o.CheckComplete()}));o.on("done",((n,o)=>{if(i.length>0){this.emit("stdline",i)}if(c.length>0){this.emit("errline",c)}s.removeAllListeners();if(n){t(n)}else{e(o)}}));if(this.options.input){if(!s.stdin){throw new Error("child process missing stdin")}s.stdin.end(this.options.input)}}))))}))}}t.ToolRunner=ToolRunner;function argStringToArray(e){const t=[];let n=false;let o=false;let r="";function append(e){if(o&&e!=='"'){r+="\\"}r+=e;o=false}for(let s=0;s<e.length;s++){const i=e.charAt(s);if(i==='"'){if(!o){n=!n}else{append(i)}continue}if(i==="\\"&&o){append(i);continue}if(i==="\\"&&n){o=true;continue}if(i===" "&&!n){if(r.length>0){t.push(r);r=""}continue}append(i)}if(r.length>0){t.push(r.trim())}return t}t.argStringToArray=argStringToArray;class ExecState extends c.EventEmitter{constructor(e,t){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!t){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=t;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=m.setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(this.processError){e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const t=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(t)}e._setResult()}}},35526:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function fulfilled(e){try{step(o.next(e))}catch(e){r(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){r(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.PersonalAccessTokenCredentialHandler=t.BearerCredentialHandler=t.BasicCredentialHandler=void 0;class BasicCredentialHandler{constructor(e,t){this.username=e;this.password=t}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return n(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Bearer ${this.token}`}canHandleAuthentication(){return false}handleAuthentication(){return n(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return n(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},96255:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;Object.defineProperty(e,o,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))o(t,e,n);r(t,e);return t};var i=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function fulfilled(e){try{step(o.next(e))}catch(e){r(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){r(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.HttpClient=t.isHttps=t.HttpClientResponse=t.HttpClientError=t.getProxyUrl=t.MediaTypes=t.Headers=t.HttpCodes=void 0;const a=s(n(13685));const c=s(n(95687));const d=s(n(19835));const u=s(n(74294));var l;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(l=t.HttpCodes||(t.HttpCodes={}));var p;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(p=t.Headers||(t.Headers={}));var m;(function(e){e["ApplicationJson"]="application/json"})(m=t.MediaTypes||(t.MediaTypes={}));function getProxyUrl(e){const t=d.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const f=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect];const y=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout];const g=["OPTIONS","GET","DELETE","HEAD"];const h=10;const E=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}t.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return i(this,void 0,void 0,(function*(){return new Promise((e=>i(this,void 0,void 0,(function*(){let t=Buffer.alloc(0);this.message.on("data",(e=>{t=Buffer.concat([t,e])}));this.message.on("end",(()=>{e(t.toString())}))}))))}))}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){const t=new URL(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,n){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=t||[];this.requestOptions=n;if(n){if(n.ignoreSslError!=null){this._ignoreSslError=n.ignoreSslError}this._socketTimeout=n.socketTimeout;if(n.allowRedirects!=null){this._allowRedirects=n.allowRedirects}if(n.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=n.allowRedirectDowngrade}if(n.maxRedirects!=null){this._maxRedirects=Math.max(n.maxRedirects,0)}if(n.keepAlive!=null){this._keepAlive=n.keepAlive}if(n.allowRetries!=null){this._allowRetries=n.allowRetries}if(n.maxRetries!=null){this._maxRetries=n.maxRetries}}}options(e,t){return i(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,t||{})}))}get(e,t){return i(this,void 0,void 0,(function*(){return this.request("GET",e,null,t||{})}))}del(e,t){return i(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,t||{})}))}post(e,t,n){return i(this,void 0,void 0,(function*(){return this.request("POST",e,t,n||{})}))}patch(e,t,n){return i(this,void 0,void 0,(function*(){return this.request("PATCH",e,t,n||{})}))}put(e,t,n){return i(this,void 0,void 0,(function*(){return this.request("PUT",e,t,n||{})}))}head(e,t){return i(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,t||{})}))}sendStream(e,t,n,o){return i(this,void 0,void 0,(function*(){return this.request(e,t,n,o)}))}getJson(e,t={}){return i(this,void 0,void 0,(function*(){t[p.Accept]=this._getExistingOrDefaultHeader(t,p.Accept,m.ApplicationJson);const n=yield this.get(e,t);return this._processResponse(n,this.requestOptions)}))}postJson(e,t,n={}){return i(this,void 0,void 0,(function*(){const o=JSON.stringify(t,null,2);n[p.Accept]=this._getExistingOrDefaultHeader(n,p.Accept,m.ApplicationJson);n[p.ContentType]=this._getExistingOrDefaultHeader(n,p.ContentType,m.ApplicationJson);const r=yield this.post(e,o,n);return this._processResponse(r,this.requestOptions)}))}putJson(e,t,n={}){return i(this,void 0,void 0,(function*(){const o=JSON.stringify(t,null,2);n[p.Accept]=this._getExistingOrDefaultHeader(n,p.Accept,m.ApplicationJson);n[p.ContentType]=this._getExistingOrDefaultHeader(n,p.ContentType,m.ApplicationJson);const r=yield this.put(e,o,n);return this._processResponse(r,this.requestOptions)}))}patchJson(e,t,n={}){return i(this,void 0,void 0,(function*(){const o=JSON.stringify(t,null,2);n[p.Accept]=this._getExistingOrDefaultHeader(n,p.Accept,m.ApplicationJson);n[p.ContentType]=this._getExistingOrDefaultHeader(n,p.ContentType,m.ApplicationJson);const r=yield this.patch(e,o,n);return this._processResponse(r,this.requestOptions)}))}request(e,t,n,o){return i(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const r=new URL(t);let s=this._prepareRequest(e,r,o);const i=this._allowRetries&&g.includes(e)?this._maxRetries+1:1;let a=0;let c;do{c=yield this.requestRaw(s,n);if(c&&c.message&&c.message.statusCode===l.Unauthorized){let e;for(const t of this.handlers){if(t.canHandleAuthentication(c)){e=t;break}}if(e){return e.handleAuthentication(this,s,n)}else{return c}}let t=this._maxRedirects;while(c.message.statusCode&&f.includes(c.message.statusCode)&&this._allowRedirects&&t>0){const i=c.message.headers["location"];if(!i){break}const a=new URL(i);if(r.protocol==="https:"&&r.protocol!==a.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}yield c.readBody();if(a.hostname!==r.hostname){for(const e in o){if(e.toLowerCase()==="authorization"){delete o[e]}}}s=this._prepareRequest(e,a,o);c=yield this.requestRaw(s,n);t--}if(!c.message.statusCode||!y.includes(c.message.statusCode)){return c}a+=1;if(a<i){yield c.readBody();yield this._performExponentialBackoff(a)}}while(a<i);return c}))}dispose(){if(this._agent){this._agent.destroy()}this._disposed=true}requestRaw(e,t){return i(this,void 0,void 0,(function*(){return new Promise(((n,o)=>{function callbackForResult(e,t){if(e){o(e)}else if(!t){o(new Error("Unknown error"))}else{n(t)}}this.requestRawWithCallback(e,t,callbackForResult)}))}))}requestRawWithCallback(e,t,n){if(typeof t==="string"){if(!e.options.headers){e.options.headers={}}e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let o=false;function handleResult(e,t){if(!o){o=true;n(e,t)}}const r=e.httpModule.request(e.options,(e=>{const t=new HttpClientResponse(e);handleResult(undefined,t)}));let s;r.on("socket",(e=>{s=e}));r.setTimeout(this._socketTimeout||3*6e4,(()=>{if(s){s.end()}handleResult(new Error(`Request timeout: ${e.options.path}`))}));r.on("error",(function(e){handleResult(e)}));if(t&&typeof t==="string"){r.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){r.end()}));t.pipe(r)}else{r.end()}}getAgent(e){const t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,n){const o={};o.parsedUrl=t;const r=o.parsedUrl.protocol==="https:";o.httpModule=r?c:a;const s=r?443:80;o.options={};o.options.host=o.parsedUrl.hostname;o.options.port=o.parsedUrl.port?parseInt(o.parsedUrl.port):s;o.options.path=(o.parsedUrl.pathname||"")+(o.parsedUrl.search||"");o.options.method=e;o.options.headers=this._mergeHeaders(n);if(this.userAgent!=null){o.options.headers["user-agent"]=this.userAgent}o.options.agent=this._getAgent(o.parsedUrl);if(this.handlers){for(const e of this.handlers){e.prepareRequest(o.options)}}return o}_mergeHeaders(e){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e||{}))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,n){let o;if(this.requestOptions&&this.requestOptions.headers){o=lowercaseKeys(this.requestOptions.headers)[t]}return e[t]||o||n}_getAgent(e){let t;const n=d.getProxyUrl(e);const o=n&&n.hostname;if(this._keepAlive&&o){t=this._proxyAgent}if(this._keepAlive&&!o){t=this._agent}if(t){return t}const r=e.protocol==="https:";let s=100;if(this.requestOptions){s=this.requestOptions.maxSockets||a.globalAgent.maxSockets}if(n&&n.hostname){const e={maxSockets:s,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`}),{host:n.hostname,port:n.port})};let o;const i=n.protocol==="https:";if(r){o=i?u.httpsOverHttps:u.httpsOverHttp}else{o=i?u.httpOverHttps:u.httpOverHttp}t=o(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:s};t=r?new c.Agent(e):new a.Agent(e);this._agent=t}if(!t){t=r?c.globalAgent:a.globalAgent}if(r&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_performExponentialBackoff(e){return i(this,void 0,void 0,(function*(){e=Math.min(h,e);const t=E*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}))}_processResponse(e,t){return i(this,void 0,void 0,(function*(){return new Promise(((n,o)=>i(this,void 0,void 0,(function*(){const r=e.message.statusCode||0;const s={statusCode:r,result:null,headers:{}};if(r===l.NotFound){n(s)}function dateTimeDeserializer(e,t){if(typeof t==="string"){const e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}let i;let a;try{a=yield e.readBody();if(a&&a.length>0){if(t&&t.deserializeDates){i=JSON.parse(a,dateTimeDeserializer)}else{i=JSON.parse(a)}s.result=i}s.headers=e.message.headers}catch(e){}if(r>299){let e;if(i&&i.message){e=i.message}else if(a&&a.length>0){e=a}else{e=`Failed request: (${r})`}const t=new HttpClientError(e,r);t.result=s.result;o(t)}else{n(s)}}))))}))}}t.HttpClient=HttpClient;const lowercaseKeys=e=>Object.keys(e).reduce(((t,n)=>(t[n.toLowerCase()]=e[n],t)),{})},19835:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.checkBypass=t.getProxyUrl=void 0;function getProxyUrl(e){const t=e.protocol==="https:";if(checkBypass(e)){return undefined}const n=(()=>{if(t){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(n){return new URL(n)}else{return undefined}}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}const t=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!t){return false}let n;if(e.port){n=Number(e.port)}else if(e.protocol==="http:"){n=80}else if(e.protocol==="https:"){n=443}const o=[e.hostname.toUpperCase()];if(typeof n==="number"){o.push(`${o[0]}:${n}`)}for(const e of t.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(o.some((t=>t===e))){return true}}return false}t.checkBypass=checkBypass},81962:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;Object.defineProperty(e,o,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))o(t,e,n);r(t,e);return t};var i=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function fulfilled(e){try{step(o.next(e))}catch(e){r(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){r(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};var a;Object.defineProperty(t,"__esModule",{value:true});t.getCmdPath=t.tryGetExecutablePath=t.isRooted=t.isDirectory=t.exists=t.IS_WINDOWS=t.unlink=t.symlink=t.stat=t.rmdir=t.rename=t.readlink=t.readdir=t.mkdir=t.lstat=t.copyFile=t.chmod=void 0;const c=s(n(57147));const d=s(n(71017));a=c.promises,t.chmod=a.chmod,t.copyFile=a.copyFile,t.lstat=a.lstat,t.mkdir=a.mkdir,t.readdir=a.readdir,t.readlink=a.readlink,t.rename=a.rename,t.rmdir=a.rmdir,t.stat=a.stat,t.symlink=a.symlink,t.unlink=a.unlink;t.IS_WINDOWS=process.platform==="win32";function exists(e){return i(this,void 0,void 0,(function*(){try{yield t.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true}))}t.exists=exists;function isDirectory(e,n=false){return i(this,void 0,void 0,(function*(){const o=n?yield t.stat(e):yield t.lstat(e);return o.isDirectory()}))}t.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(t.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.isRooted=isRooted;function tryGetExecutablePath(e,n){return i(this,void 0,void 0,(function*(){let o=undefined;try{o=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(o&&o.isFile()){if(t.IS_WINDOWS){const t=d.extname(e).toUpperCase();if(n.some((e=>e.toUpperCase()===t))){return e}}else{if(isUnixExecutable(o)){return e}}}const r=e;for(const s of n){e=r+s;o=undefined;try{o=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(o&&o.isFile()){if(t.IS_WINDOWS){try{const n=d.dirname(e);const o=d.basename(e).toUpperCase();for(const r of yield t.readdir(n)){if(o===r.toUpperCase()){e=d.join(n,r);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(o)){return e}}}}return""}))}t.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(t.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}function getCmdPath(){var e;return(e=process.env["COMSPEC"])!==null&&e!==void 0?e:`cmd.exe`}t.getCmdPath=getCmdPath},47351:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;Object.defineProperty(e,o,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))o(t,e,n);r(t,e);return t};var i=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function fulfilled(e){try{step(o.next(e))}catch(e){r(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){r(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.findInPath=t.which=t.mkdirP=t.rmRF=t.mv=t.cp=void 0;const a=n(39491);const c=s(n(32081));const d=s(n(71017));const u=n(73837);const l=s(n(81962));const p=u.promisify(c.exec);const m=u.promisify(c.execFile);function cp(e,t,n={}){return i(this,void 0,void 0,(function*(){const{force:o,recursive:r,copySourceDirectory:s}=readCopyOptions(n);const i=(yield l.exists(t))?yield l.stat(t):null;if(i&&i.isFile()&&!o){return}const a=i&&i.isDirectory()&&s?d.join(t,d.basename(e)):t;if(!(yield l.exists(e))){throw new Error(`no such file or directory: ${e}`)}const c=yield l.stat(e);if(c.isDirectory()){if(!r){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,a,0,o)}}else{if(d.relative(e,a)===""){throw new Error(`'${a}' and '${e}' are the same file`)}yield copyFile(e,a,o)}}))}t.cp=cp;function mv(e,t,n={}){return i(this,void 0,void 0,(function*(){if(yield l.exists(t)){let o=true;if(yield l.isDirectory(t)){t=d.join(t,d.basename(e));o=yield l.exists(t)}if(o){if(n.force==null||n.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(d.dirname(t));yield l.rename(e,t)}))}t.mv=mv;function rmRF(e){return i(this,void 0,void 0,(function*(){if(l.IS_WINDOWS){if(/[*"<>|]/.test(e)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}try{const t=l.getCmdPath();if(yield l.isDirectory(e,true)){yield p(`${t} /s /c "rd /s /q "%inputPath%""`,{env:{inputPath:e}})}else{yield p(`${t} /s /c "del /f /a "%inputPath%""`,{env:{inputPath:e}})}}catch(e){if(e.code!=="ENOENT")throw e}try{yield l.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let t=false;try{t=yield l.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(t){yield m(`rm`,[`-rf`,`${e}`])}else{yield l.unlink(e)}}}))}t.rmRF=rmRF;function mkdirP(e){return i(this,void 0,void 0,(function*(){a.ok(e,"a path argument must be provided");yield l.mkdir(e,{recursive:true})}))}t.mkdirP=mkdirP;function which(e,t){return i(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}if(t){const t=yield which(e,false);if(!t){if(l.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`)}else{throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}return t}const n=yield findInPath(e);if(n&&n.length>0){return n[0]}return""}))}t.which=which;function findInPath(e){return i(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}const t=[];if(l.IS_WINDOWS&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(d.delimiter)){if(e){t.push(e)}}}if(l.isRooted(e)){const n=yield l.tryGetExecutablePath(e,t);if(n){return[n]}return[]}if(e.includes(d.sep)){return[]}const n=[];if(process.env.PATH){for(const e of process.env.PATH.split(d.delimiter)){if(e){n.push(e)}}}const o=[];for(const r of n){const n=yield l.tryGetExecutablePath(d.join(r,e),t);if(n){o.push(n)}}return o}))}t.findInPath=findInPath;function readCopyOptions(e){const t=e.force==null?true:e.force;const n=Boolean(e.recursive);const o=e.copySourceDirectory==null?true:Boolean(e.copySourceDirectory);return{force:t,recursive:n,copySourceDirectory:o}}function cpDirRecursive(e,t,n,o){return i(this,void 0,void 0,(function*(){if(n>=255)return;n++;yield mkdirP(t);const r=yield l.readdir(e);for(const s of r){const r=`${e}/${s}`;const i=`${t}/${s}`;const a=yield l.lstat(r);if(a.isDirectory()){yield cpDirRecursive(r,i,n,o)}else{yield copyFile(r,i,o)}}yield l.chmod(t,(yield l.stat(e)).mode)}))}function copyFile(e,t,n){return i(this,void 0,void 0,(function*(){if((yield l.lstat(e)).isSymbolicLink()){try{yield l.lstat(t);yield l.unlink(t)}catch(e){if(e.code==="EPERM"){yield l.chmod(t,"0666");yield l.unlink(t)}}const n=yield l.readlink(e);yield l.symlink(n,t,l.IS_WINDOWS?"junction":null)}else if(!(yield l.exists(t))||n){yield l.copyFile(e,t)}}))}},32374:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AwsCrc32=void 0;var o=n(5066);var r=n(41236);var s=n(47327);var i=function(){function AwsCrc32(){this.crc32=new s.Crc32}AwsCrc32.prototype.update=function(e){if((0,r.isEmptyData)(e))return;this.crc32.update((0,r.convertToBuffer)(e))};AwsCrc32.prototype.digest=function(){return o.__awaiter(this,void 0,void 0,(function(){return o.__generator(this,(function(e){return[2,(0,r.numToUint8)(this.crc32.digest())]}))}))};AwsCrc32.prototype.reset=function(){this.crc32=new s.Crc32};return AwsCrc32}();t.AwsCrc32=i},47327:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AwsCrc32=t.Crc32=t.crc32=void 0;var o=n(5066);var r=n(41236);function crc32(e){return(new s).update(e).digest()}t.crc32=crc32;var s=function(){function Crc32(){this.checksum=4294967295}Crc32.prototype.update=function(e){var t,n;try{for(var r=o.__values(e),s=r.next();!s.done;s=r.next()){var i=s.value;this.checksum=this.checksum>>>8^a[(this.checksum^i)&255]}}catch(e){t={error:e}}finally{try{if(s&&!s.done&&(n=r.return))n.call(r)}finally{if(t)throw t.error}}return this};Crc32.prototype.digest=function(){return(this.checksum^4294967295)>>>0};return Crc32}();t.Crc32=s;var i=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];var a=(0,r.uint32ArrayFrom)(i);var c=n(32374);Object.defineProperty(t,"AwsCrc32",{enumerable:true,get:function(){return c.AwsCrc32}})},5066:e=>{
|
||
/*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation.
|
||
|
||
Permission to use, copy, modify, and/or distribute this software for any
|
||
purpose with or without fee is hereby granted.
|
||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
PERFORMANCE OF THIS SOFTWARE.
|
||
***************************************************************************** */
|
||
var t;var n;var o;var r;var s;var i;var a;var c;var d;var u;var l;var p;var m;var f;var y;var g;var h;var E;var _;var v;var S;var C;var b;(function(t){var n=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd){define("tslib",["exports"],(function(e){t(createExporter(n,createExporter(e)))}))}else if(true&&typeof e.exports==="object"){t(createExporter(n,createExporter(e.exports)))}else{t(createExporter(n))}function createExporter(e,t){if(e!==n){if(typeof Object.create==="function"){Object.defineProperty(e,"__esModule",{value:true})}else{e.__esModule=true}}return function(n,o){return e[n]=t?t(n,o):o}}})((function(e){var P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(t.hasOwnProperty(n))e[n]=t[n]};t=function(e,t){P(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)};n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++){t=arguments[n];for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]}return e};o=function(e,t){var n={};for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0)n[o]=e[o];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++){if(t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r]))n[o[r]]=e[o[r]]}return n};r=function(e,t,n,o){var r=arguments.length,s=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,n):o,i;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)if(i=e[a])s=(r<3?i(s):r>3?i(t,n,s):i(t,n))||s;return r>3&&s&&Object.defineProperty(t,n,s),s};s=function(e,t){return function(n,o){t(n,o,e)}};i=function(e,t){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,t)};a=function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function fulfilled(e){try{step(o.next(e))}catch(e){r(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){r(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};c=function(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},o,r,s,i;return i={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function verb(e){return function(t){return step([e,t])}}function step(i){if(o)throw new TypeError("Generator is already executing.");while(n)try{if(o=1,r&&(s=i[0]&2?r["return"]:i[0]?r["throw"]||((s=r["return"])&&s.call(r),0):r.next)&&!(s=s.call(r,i[1])).done)return s;if(r=0,s)i=[i[0]&2,s.value];switch(i[0]){case 0:case 1:s=i;break;case 4:n.label++;return{value:i[1],done:false};case 5:n.label++;r=i[1];i=[0];continue;case 7:i=n.ops.pop();n.trys.pop();continue;default:if(!(s=n.trys,s=s.length>0&&s[s.length-1])&&(i[0]===6||i[0]===2)){n=0;continue}if(i[0]===3&&(!s||i[1]>s[0]&&i[1]<s[3])){n.label=i[1];break}if(i[0]===6&&n.label<s[1]){n.label=s[1];s=i;break}if(s&&n.label<s[2]){n.label=s[2];n.ops.push(i);break}if(s[2])n.ops.pop();n.trys.pop();continue}i=t.call(e,n)}catch(e){i=[6,e];r=0}finally{o=s=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:true}}};b=function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]};d=function(e,t){for(var n in e)if(n!=="default"&&!t.hasOwnProperty(n))t[n]=e[n]};u=function(e){var t=typeof Symbol==="function"&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&o>=e.length)e=void 0;return{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};l=function(e,t){var n=typeof Symbol==="function"&&e[Symbol.iterator];if(!n)return e;var o=n.call(e),r,s=[],i;try{while((t===void 0||t-- >0)&&!(r=o.next()).done)s.push(r.value)}catch(e){i={error:e}}finally{try{if(r&&!r.done&&(n=o["return"]))n.call(o)}finally{if(i)throw i.error}}return s};p=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(l(arguments[t]));return e};m=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var o=Array(e),r=0,t=0;t<n;t++)for(var s=arguments[t],i=0,a=s.length;i<a;i++,r++)o[r]=s[i];return o};f=function(e){return this instanceof f?(this.v=e,this):new f(e)};y=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=n.apply(e,t||[]),r,s=[];return r={},verb("next"),verb("throw"),verb("return"),r[Symbol.asyncIterator]=function(){return this},r;function verb(e){if(o[e])r[e]=function(t){return new Promise((function(n,o){s.push([e,t,n,o])>1||resume(e,t)}))}}function resume(e,t){try{step(o[e](t))}catch(e){settle(s[0][3],e)}}function step(e){e.value instanceof f?Promise.resolve(e.value.v).then(fulfill,reject):settle(s[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),s.shift(),s.length)resume(s[0][0],s[0][1])}};g=function(e){var t,n;return t={},verb("next"),verb("throw",(function(e){throw e})),verb("return"),t[Symbol.iterator]=function(){return this},t;function verb(o,r){t[o]=e[o]?function(t){return(n=!n)?{value:f(e[o](t)),done:o==="return"}:r?r(t):t}:r}};h=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof u==="function"?u(e):e[Symbol.iterator](),n={},verb("next"),verb("throw"),verb("return"),n[Symbol.asyncIterator]=function(){return this},n);function verb(t){n[t]=e[t]&&function(n){return new Promise((function(o,r){n=e[t](n),settle(o,r,n.done,n.value)}))}}function settle(e,t,n,o){Promise.resolve(o).then((function(t){e({value:t,done:n})}),t)}};E=function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};_=function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(Object.hasOwnProperty.call(e,n))t[n]=e[n];t["default"]=e;return t};v=function(e){return e&&e.__esModule?e:{default:e}};S=function(e,t){if(!t.has(e)){throw new TypeError("attempted to get private field on non-instance")}return t.get(e)};C=function(e,t,n){if(!t.has(e)){throw new TypeError("attempted to set private field on non-instance")}t.set(e,n);return n};e("__extends",t);e("__assign",n);e("__rest",o);e("__decorate",r);e("__param",s);e("__metadata",i);e("__awaiter",a);e("__generator",c);e("__exportStar",d);e("__createBinding",b);e("__values",u);e("__read",l);e("__spread",p);e("__spreadArrays",m);e("__await",f);e("__asyncGenerator",y);e("__asyncDelegator",g);e("__asyncValues",h);e("__makeTemplateObject",E);e("__importStar",_);e("__importDefault",v);e("__classPrivateFieldGet",S);e("__classPrivateFieldSet",C)}))},43228:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.convertToBuffer=void 0;var o=n(28172);var r=typeof Buffer!=="undefined"&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:o.fromUtf8;function convertToBuffer(e){if(e instanceof Uint8Array)return e;if(typeof e==="string"){return r(e)}if(ArrayBuffer.isView(e)){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT)}return new Uint8Array(e)}t.convertToBuffer=convertToBuffer},41236:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.uint32ArrayFrom=t.numToUint8=t.isEmptyData=t.convertToBuffer=void 0;var o=n(43228);Object.defineProperty(t,"convertToBuffer",{enumerable:true,get:function(){return o.convertToBuffer}});var r=n(18275);Object.defineProperty(t,"isEmptyData",{enumerable:true,get:function(){return r.isEmptyData}});var s=n(93775);Object.defineProperty(t,"numToUint8",{enumerable:true,get:function(){return s.numToUint8}});var i=n(39404);Object.defineProperty(t,"uint32ArrayFrom",{enumerable:true,get:function(){return i.uint32ArrayFrom}})},18275:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isEmptyData=void 0;function isEmptyData(e){if(typeof e==="string"){return e.length===0}return e.byteLength===0}t.isEmptyData=isEmptyData},93775:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.numToUint8=void 0;function numToUint8(e){return new Uint8Array([(e&4278190080)>>24,(e&16711680)>>16,(e&65280)>>8,e&255])}t.numToUint8=numToUint8},39404:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.uint32ArrayFrom=void 0;function uint32ArrayFrom(e){if(!Uint32Array.from){var t=new Uint32Array(e.length);var n=0;while(n<e.length){t[n]=e[n];n+=1}return t}return Uint32Array.from(e)}t.uint32ArrayFrom=uint32ArrayFrom},86087:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ECRPUBLIC=void 0;const o=n(63570);const r=n(25356);const s=n(56517);const i=n(55490);const a=n(39633);const c=n(60467);const d=n(62528);const u=n(22776);const l=n(47670);const p=n(78696);const m=n(82218);const f=n(92674);const y=n(26518);const g=n(53189);const h=n(8562);const E=n(83675);const _=n(80575);const v=n(86486);const S=n(46805);const C=n(83753);const b=n(79838);const P=n(39869);const w=n(66689);const x=n(97429);const R=n(30608);const I={BatchCheckLayerAvailabilityCommand:r.BatchCheckLayerAvailabilityCommand,BatchDeleteImageCommand:s.BatchDeleteImageCommand,CompleteLayerUploadCommand:i.CompleteLayerUploadCommand,CreateRepositoryCommand:a.CreateRepositoryCommand,DeleteRepositoryCommand:c.DeleteRepositoryCommand,DeleteRepositoryPolicyCommand:d.DeleteRepositoryPolicyCommand,DescribeImagesCommand:u.DescribeImagesCommand,DescribeImageTagsCommand:l.DescribeImageTagsCommand,DescribeRegistriesCommand:p.DescribeRegistriesCommand,DescribeRepositoriesCommand:m.DescribeRepositoriesCommand,GetAuthorizationTokenCommand:f.GetAuthorizationTokenCommand,GetRegistryCatalogDataCommand:y.GetRegistryCatalogDataCommand,GetRepositoryCatalogDataCommand:g.GetRepositoryCatalogDataCommand,GetRepositoryPolicyCommand:h.GetRepositoryPolicyCommand,InitiateLayerUploadCommand:E.InitiateLayerUploadCommand,ListTagsForResourceCommand:_.ListTagsForResourceCommand,PutImageCommand:v.PutImageCommand,PutRegistryCatalogDataCommand:S.PutRegistryCatalogDataCommand,PutRepositoryCatalogDataCommand:C.PutRepositoryCatalogDataCommand,SetRepositoryPolicyCommand:b.SetRepositoryPolicyCommand,TagResourceCommand:P.TagResourceCommand,UntagResourceCommand:w.UntagResourceCommand,UploadLayerPartCommand:x.UploadLayerPartCommand};class ECRPUBLIC extends R.ECRPUBLICClient{}t.ECRPUBLIC=ECRPUBLIC;(0,o.createAggregatedClient)(I,ECRPUBLIC)},30608:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ECRPUBLICClient=t.__Client=void 0;const o=n(22545);const r=n(20014);const s=n(85525);const i=n(14935);const a=n(64688);const c=n(53098);const d=n(82800);const u=n(82918);const l=n(96039);const p=n(63570);Object.defineProperty(t,"__Client",{enumerable:true,get:function(){return p.Client}});const m=n(78258);const f=n(49324);class ECRPUBLICClient extends p.Client{constructor(e){const t=(0,f.getRuntimeConfig)(e);const n=(0,m.resolveClientEndpointParameters)(t);const p=(0,c.resolveRegionConfig)(n);const y=(0,u.resolveEndpointConfig)(p);const g=(0,l.resolveRetryConfig)(y);const h=(0,o.resolveHostHeaderConfig)(g);const E=(0,i.resolveAwsAuthConfig)(h);const _=(0,a.resolveUserAgentConfig)(E);super(_);this.config=_;this.middlewareStack.use((0,l.getRetryPlugin)(this.config));this.middlewareStack.use((0,d.getContentLengthPlugin)(this.config));this.middlewareStack.use((0,o.getHostHeaderPlugin)(this.config));this.middlewareStack.use((0,r.getLoggerPlugin)(this.config));this.middlewareStack.use((0,s.getRecursionDetectionPlugin)(this.config));this.middlewareStack.use((0,i.getAwsAuthPlugin)(this.config));this.middlewareStack.use((0,a.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}}t.ECRPUBLICClient=ECRPUBLICClient},25356:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BatchCheckLayerAvailabilityCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(64170);class BatchCheckLayerAvailabilityCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,BatchCheckLayerAvailabilityCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRPUBLICClient";const c="BatchCheckLayerAvailabilityCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_BatchCheckLayerAvailabilityCommand)(e,t)}deserialize(e,t){return(0,i.de_BatchCheckLayerAvailabilityCommand)(e,t)}}t.BatchCheckLayerAvailabilityCommand=BatchCheckLayerAvailabilityCommand},56517:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BatchDeleteImageCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(64170);class BatchDeleteImageCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,BatchDeleteImageCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRPUBLICClient";const c="BatchDeleteImageCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_BatchDeleteImageCommand)(e,t)}deserialize(e,t){return(0,i.de_BatchDeleteImageCommand)(e,t)}}t.BatchDeleteImageCommand=BatchDeleteImageCommand},55490:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CompleteLayerUploadCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(64170);class CompleteLayerUploadCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,CompleteLayerUploadCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRPUBLICClient";const c="CompleteLayerUploadCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_CompleteLayerUploadCommand)(e,t)}deserialize(e,t){return(0,i.de_CompleteLayerUploadCommand)(e,t)}}t.CompleteLayerUploadCommand=CompleteLayerUploadCommand},39633:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CreateRepositoryCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(64170);class CreateRepositoryCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,CreateRepositoryCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRPUBLICClient";const c="CreateRepositoryCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_CreateRepositoryCommand)(e,t)}deserialize(e,t){return(0,i.de_CreateRepositoryCommand)(e,t)}}t.CreateRepositoryCommand=CreateRepositoryCommand},60467:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DeleteRepositoryCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(64170);class DeleteRepositoryCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,DeleteRepositoryCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRPUBLICClient";const c="DeleteRepositoryCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_DeleteRepositoryCommand)(e,t)}deserialize(e,t){return(0,i.de_DeleteRepositoryCommand)(e,t)}}t.DeleteRepositoryCommand=DeleteRepositoryCommand},62528:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DeleteRepositoryPolicyCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(64170);class DeleteRepositoryPolicyCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,DeleteRepositoryPolicyCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRPUBLICClient";const c="DeleteRepositoryPolicyCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_DeleteRepositoryPolicyCommand)(e,t)}deserialize(e,t){return(0,i.de_DeleteRepositoryPolicyCommand)(e,t)}}t.DeleteRepositoryPolicyCommand=DeleteRepositoryPolicyCommand},47670:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribeImageTagsCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(64170);class DescribeImageTagsCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,DescribeImageTagsCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRPUBLICClient";const c="DescribeImageTagsCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_DescribeImageTagsCommand)(e,t)}deserialize(e,t){return(0,i.de_DescribeImageTagsCommand)(e,t)}}t.DescribeImageTagsCommand=DescribeImageTagsCommand},22776:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribeImagesCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(64170);class DescribeImagesCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,DescribeImagesCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRPUBLICClient";const c="DescribeImagesCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_DescribeImagesCommand)(e,t)}deserialize(e,t){return(0,i.de_DescribeImagesCommand)(e,t)}}t.DescribeImagesCommand=DescribeImagesCommand},78696:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribeRegistriesCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(64170);class DescribeRegistriesCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,DescribeRegistriesCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRPUBLICClient";const c="DescribeRegistriesCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_DescribeRegistriesCommand)(e,t)}deserialize(e,t){return(0,i.de_DescribeRegistriesCommand)(e,t)}}t.DescribeRegistriesCommand=DescribeRegistriesCommand},82218:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribeRepositoriesCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(64170);class DescribeRepositoriesCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,DescribeRepositoriesCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRPUBLICClient";const c="DescribeRepositoriesCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_DescribeRepositoriesCommand)(e,t)}deserialize(e,t){return(0,i.de_DescribeRepositoriesCommand)(e,t)}}t.DescribeRepositoriesCommand=DescribeRepositoriesCommand},92674:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetAuthorizationTokenCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(64170);class GetAuthorizationTokenCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,GetAuthorizationTokenCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRPUBLICClient";const c="GetAuthorizationTokenCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_GetAuthorizationTokenCommand)(e,t)}deserialize(e,t){return(0,i.de_GetAuthorizationTokenCommand)(e,t)}}t.GetAuthorizationTokenCommand=GetAuthorizationTokenCommand},26518:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetRegistryCatalogDataCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(64170);class GetRegistryCatalogDataCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,GetRegistryCatalogDataCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRPUBLICClient";const c="GetRegistryCatalogDataCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_GetRegistryCatalogDataCommand)(e,t)}deserialize(e,t){return(0,i.de_GetRegistryCatalogDataCommand)(e,t)}}t.GetRegistryCatalogDataCommand=GetRegistryCatalogDataCommand},53189:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetRepositoryCatalogDataCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(64170);class GetRepositoryCatalogDataCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,GetRepositoryCatalogDataCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRPUBLICClient";const c="GetRepositoryCatalogDataCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_GetRepositoryCatalogDataCommand)(e,t)}deserialize(e,t){return(0,i.de_GetRepositoryCatalogDataCommand)(e,t)}}t.GetRepositoryCatalogDataCommand=GetRepositoryCatalogDataCommand},8562:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetRepositoryPolicyCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(64170);class GetRepositoryPolicyCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,GetRepositoryPolicyCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRPUBLICClient";const c="GetRepositoryPolicyCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_GetRepositoryPolicyCommand)(e,t)}deserialize(e,t){return(0,i.de_GetRepositoryPolicyCommand)(e,t)}}t.GetRepositoryPolicyCommand=GetRepositoryPolicyCommand},83675:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.InitiateLayerUploadCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(64170);class InitiateLayerUploadCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,InitiateLayerUploadCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRPUBLICClient";const c="InitiateLayerUploadCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_InitiateLayerUploadCommand)(e,t)}deserialize(e,t){return(0,i.de_InitiateLayerUploadCommand)(e,t)}}t.InitiateLayerUploadCommand=InitiateLayerUploadCommand},80575:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ListTagsForResourceCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(64170);class ListTagsForResourceCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,ListTagsForResourceCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRPUBLICClient";const c="ListTagsForResourceCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_ListTagsForResourceCommand)(e,t)}deserialize(e,t){return(0,i.de_ListTagsForResourceCommand)(e,t)}}t.ListTagsForResourceCommand=ListTagsForResourceCommand},86486:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutImageCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(64170);class PutImageCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,PutImageCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRPUBLICClient";const c="PutImageCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_PutImageCommand)(e,t)}deserialize(e,t){return(0,i.de_PutImageCommand)(e,t)}}t.PutImageCommand=PutImageCommand},46805:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutRegistryCatalogDataCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(64170);class PutRegistryCatalogDataCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,PutRegistryCatalogDataCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRPUBLICClient";const c="PutRegistryCatalogDataCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_PutRegistryCatalogDataCommand)(e,t)}deserialize(e,t){return(0,i.de_PutRegistryCatalogDataCommand)(e,t)}}t.PutRegistryCatalogDataCommand=PutRegistryCatalogDataCommand},83753:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutRepositoryCatalogDataCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(64170);class PutRepositoryCatalogDataCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,PutRepositoryCatalogDataCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRPUBLICClient";const c="PutRepositoryCatalogDataCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_PutRepositoryCatalogDataCommand)(e,t)}deserialize(e,t){return(0,i.de_PutRepositoryCatalogDataCommand)(e,t)}}t.PutRepositoryCatalogDataCommand=PutRepositoryCatalogDataCommand},79838:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SetRepositoryPolicyCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(64170);class SetRepositoryPolicyCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,SetRepositoryPolicyCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRPUBLICClient";const c="SetRepositoryPolicyCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_SetRepositoryPolicyCommand)(e,t)}deserialize(e,t){return(0,i.de_SetRepositoryPolicyCommand)(e,t)}}t.SetRepositoryPolicyCommand=SetRepositoryPolicyCommand},39869:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TagResourceCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(64170);class TagResourceCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,TagResourceCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRPUBLICClient";const c="TagResourceCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_TagResourceCommand)(e,t)}deserialize(e,t){return(0,i.de_TagResourceCommand)(e,t)}}t.TagResourceCommand=TagResourceCommand},66689:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UntagResourceCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(64170);class UntagResourceCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,UntagResourceCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRPUBLICClient";const c="UntagResourceCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_UntagResourceCommand)(e,t)}deserialize(e,t){return(0,i.de_UntagResourceCommand)(e,t)}}t.UntagResourceCommand=UntagResourceCommand},97429:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UploadLayerPartCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(64170);class UploadLayerPartCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,UploadLayerPartCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRPUBLICClient";const c="UploadLayerPartCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_UploadLayerPartCommand)(e,t)}deserialize(e,t){return(0,i.de_UploadLayerPartCommand)(e,t)}}t.UploadLayerPartCommand=UploadLayerPartCommand},65442:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(25356),t);o.__exportStar(n(56517),t);o.__exportStar(n(55490),t);o.__exportStar(n(39633),t);o.__exportStar(n(60467),t);o.__exportStar(n(62528),t);o.__exportStar(n(47670),t);o.__exportStar(n(22776),t);o.__exportStar(n(78696),t);o.__exportStar(n(82218),t);o.__exportStar(n(92674),t);o.__exportStar(n(26518),t);o.__exportStar(n(53189),t);o.__exportStar(n(8562),t);o.__exportStar(n(83675),t);o.__exportStar(n(80575),t);o.__exportStar(n(86486),t);o.__exportStar(n(46805),t);o.__exportStar(n(83753),t);o.__exportStar(n(79838),t);o.__exportStar(n(39869),t);o.__exportStar(n(66689),t);o.__exportStar(n(97429),t)},78258:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveClientEndpointParameters=void 0;const resolveClientEndpointParameters=e=>({...e,useDualstackEndpoint:e.useDualstackEndpoint??false,useFipsEndpoint:e.useFipsEndpoint??false,defaultSigningName:"ecr-public"});t.resolveClientEndpointParameters=resolveClientEndpointParameters},87377:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultEndpointResolver=void 0;const o=n(13350);const r=n(888);const defaultEndpointResolver=(e,t={})=>(0,o.resolveEndpoint)(r.ruleSet,{endpointParams:e,logger:t.logger});t.defaultEndpointResolver=defaultEndpointResolver},888:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ruleSet=void 0;const n="required",o="fn",r="argv",s="ref";const i="isSet",a="tree",c="error",d="endpoint",u="PartitionResult",l={[n]:false,type:"String"},p={[n]:true,default:false,type:"Boolean"},m={[s]:"Endpoint"},f={[o]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]},y={[o]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]},g={},h={[o]:"booleanEquals",[r]:[true,{[o]:"getAttr",[r]:[{[s]:u},"supportsFIPS"]}]},E={[o]:"booleanEquals",[r]:[true,{[o]:"getAttr",[r]:[{[s]:u},"supportsDualStack"]}]},_=[f],v=[y],S=[{[s]:"Region"}];const C={version:"1.0",parameters:{Region:l,UseDualStack:p,UseFIPS:p,Endpoint:l},rules:[{conditions:[{[o]:i,[r]:[m]}],type:a,rules:[{conditions:_,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:a,rules:[{conditions:v,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:m,properties:g,headers:g},type:d}]}]},{type:a,rules:[{conditions:[{[o]:i,[r]:S}],type:a,rules:[{conditions:[{[o]:"aws.partition",[r]:S,assign:u}],type:a,rules:[{conditions:[f,y],type:a,rules:[{conditions:[h,E],type:a,rules:[{type:a,rules:[{endpoint:{url:"https://api.ecr-public-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:g,headers:g},type:d}]}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:_,type:a,rules:[{conditions:[h],type:a,rules:[{type:a,rules:[{endpoint:{url:"https://api.ecr-public-fips.{Region}.{PartitionResult#dnsSuffix}",properties:g,headers:g},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:v,type:a,rules:[{conditions:[E],type:a,rules:[{type:a,rules:[{endpoint:{url:"https://api.ecr-public.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:g,headers:g},type:d}]}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{type:a,rules:[{endpoint:{url:"https://api.ecr-public.{Region}.{PartitionResult#dnsSuffix}",properties:g,headers:g},type:d}]}]}]},{error:"Invalid Configuration: Missing Region",type:c}]}]};t.ruleSet=C},42308:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ECRPUBLICServiceException=void 0;const o=n(4351);o.__exportStar(n(30608),t);o.__exportStar(n(86087),t);o.__exportStar(n(65442),t);o.__exportStar(n(75945),t);o.__exportStar(n(30183),t);var r=n(48278);Object.defineProperty(t,"ECRPUBLICServiceException",{enumerable:true,get:function(){return r.ECRPUBLICServiceException}})},48278:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ECRPUBLICServiceException=t.__ServiceException=void 0;const o=n(63570);Object.defineProperty(t,"__ServiceException",{enumerable:true,get:function(){return o.ServiceException}});class ECRPUBLICServiceException extends o.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,ECRPUBLICServiceException.prototype)}}t.ECRPUBLICServiceException=ECRPUBLICServiceException},30183:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(38818),t)},38818:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ReferencedImagesNotFoundException=t.LayersNotFoundException=t.InvalidLayerPartException=t.ImageTagAlreadyExistsException=t.ImageDigestDoesNotMatchException=t.ImageAlreadyExistsException=t.RepositoryCatalogDataNotFoundException=t.RegistryAliasStatus=t.ImageNotFoundException=t.RepositoryPolicyNotFoundException=t.RepositoryNotEmptyException=t.TooManyTagsException=t.RepositoryAlreadyExistsException=t.LimitExceededException=t.InvalidTagParameterException=t.UploadNotFoundException=t.LayerPartTooSmallException=t.LayerAlreadyExistsException=t.InvalidLayerException=t.EmptyUploadException=t.ImageFailureCode=t.UnsupportedCommandException=t.ServerException=t.RepositoryNotFoundException=t.RegistryNotFoundException=t.InvalidParameterException=t.LayerAvailability=t.LayerFailureCode=void 0;const o=n(48278);t.LayerFailureCode={InvalidLayerDigest:"InvalidLayerDigest",MissingLayerDigest:"MissingLayerDigest"};t.LayerAvailability={AVAILABLE:"AVAILABLE",UNAVAILABLE:"UNAVAILABLE"};class InvalidParameterException extends o.ECRPUBLICServiceException{constructor(e){super({name:"InvalidParameterException",$fault:"client",...e});this.name="InvalidParameterException";this.$fault="client";Object.setPrototypeOf(this,InvalidParameterException.prototype)}}t.InvalidParameterException=InvalidParameterException;class RegistryNotFoundException extends o.ECRPUBLICServiceException{constructor(e){super({name:"RegistryNotFoundException",$fault:"client",...e});this.name="RegistryNotFoundException";this.$fault="client";Object.setPrototypeOf(this,RegistryNotFoundException.prototype)}}t.RegistryNotFoundException=RegistryNotFoundException;class RepositoryNotFoundException extends o.ECRPUBLICServiceException{constructor(e){super({name:"RepositoryNotFoundException",$fault:"client",...e});this.name="RepositoryNotFoundException";this.$fault="client";Object.setPrototypeOf(this,RepositoryNotFoundException.prototype)}}t.RepositoryNotFoundException=RepositoryNotFoundException;class ServerException extends o.ECRPUBLICServiceException{constructor(e){super({name:"ServerException",$fault:"server",...e});this.name="ServerException";this.$fault="server";Object.setPrototypeOf(this,ServerException.prototype)}}t.ServerException=ServerException;class UnsupportedCommandException extends o.ECRPUBLICServiceException{constructor(e){super({name:"UnsupportedCommandException",$fault:"client",...e});this.name="UnsupportedCommandException";this.$fault="client";Object.setPrototypeOf(this,UnsupportedCommandException.prototype)}}t.UnsupportedCommandException=UnsupportedCommandException;t.ImageFailureCode={ImageNotFound:"ImageNotFound",ImageReferencedByManifestList:"ImageReferencedByManifestList",ImageTagDoesNotMatchDigest:"ImageTagDoesNotMatchDigest",InvalidImageDigest:"InvalidImageDigest",InvalidImageTag:"InvalidImageTag",KmsError:"KmsError",MissingDigestAndTag:"MissingDigestAndTag"};class EmptyUploadException extends o.ECRPUBLICServiceException{constructor(e){super({name:"EmptyUploadException",$fault:"client",...e});this.name="EmptyUploadException";this.$fault="client";Object.setPrototypeOf(this,EmptyUploadException.prototype)}}t.EmptyUploadException=EmptyUploadException;class InvalidLayerException extends o.ECRPUBLICServiceException{constructor(e){super({name:"InvalidLayerException",$fault:"client",...e});this.name="InvalidLayerException";this.$fault="client";Object.setPrototypeOf(this,InvalidLayerException.prototype)}}t.InvalidLayerException=InvalidLayerException;class LayerAlreadyExistsException extends o.ECRPUBLICServiceException{constructor(e){super({name:"LayerAlreadyExistsException",$fault:"client",...e});this.name="LayerAlreadyExistsException";this.$fault="client";Object.setPrototypeOf(this,LayerAlreadyExistsException.prototype)}}t.LayerAlreadyExistsException=LayerAlreadyExistsException;class LayerPartTooSmallException extends o.ECRPUBLICServiceException{constructor(e){super({name:"LayerPartTooSmallException",$fault:"client",...e});this.name="LayerPartTooSmallException";this.$fault="client";Object.setPrototypeOf(this,LayerPartTooSmallException.prototype)}}t.LayerPartTooSmallException=LayerPartTooSmallException;class UploadNotFoundException extends o.ECRPUBLICServiceException{constructor(e){super({name:"UploadNotFoundException",$fault:"client",...e});this.name="UploadNotFoundException";this.$fault="client";Object.setPrototypeOf(this,UploadNotFoundException.prototype)}}t.UploadNotFoundException=UploadNotFoundException;class InvalidTagParameterException extends o.ECRPUBLICServiceException{constructor(e){super({name:"InvalidTagParameterException",$fault:"client",...e});this.name="InvalidTagParameterException";this.$fault="client";Object.setPrototypeOf(this,InvalidTagParameterException.prototype)}}t.InvalidTagParameterException=InvalidTagParameterException;class LimitExceededException extends o.ECRPUBLICServiceException{constructor(e){super({name:"LimitExceededException",$fault:"client",...e});this.name="LimitExceededException";this.$fault="client";Object.setPrototypeOf(this,LimitExceededException.prototype)}}t.LimitExceededException=LimitExceededException;class RepositoryAlreadyExistsException extends o.ECRPUBLICServiceException{constructor(e){super({name:"RepositoryAlreadyExistsException",$fault:"client",...e});this.name="RepositoryAlreadyExistsException";this.$fault="client";Object.setPrototypeOf(this,RepositoryAlreadyExistsException.prototype)}}t.RepositoryAlreadyExistsException=RepositoryAlreadyExistsException;class TooManyTagsException extends o.ECRPUBLICServiceException{constructor(e){super({name:"TooManyTagsException",$fault:"client",...e});this.name="TooManyTagsException";this.$fault="client";Object.setPrototypeOf(this,TooManyTagsException.prototype)}}t.TooManyTagsException=TooManyTagsException;class RepositoryNotEmptyException extends o.ECRPUBLICServiceException{constructor(e){super({name:"RepositoryNotEmptyException",$fault:"client",...e});this.name="RepositoryNotEmptyException";this.$fault="client";Object.setPrototypeOf(this,RepositoryNotEmptyException.prototype)}}t.RepositoryNotEmptyException=RepositoryNotEmptyException;class RepositoryPolicyNotFoundException extends o.ECRPUBLICServiceException{constructor(e){super({name:"RepositoryPolicyNotFoundException",$fault:"client",...e});this.name="RepositoryPolicyNotFoundException";this.$fault="client";Object.setPrototypeOf(this,RepositoryPolicyNotFoundException.prototype)}}t.RepositoryPolicyNotFoundException=RepositoryPolicyNotFoundException;class ImageNotFoundException extends o.ECRPUBLICServiceException{constructor(e){super({name:"ImageNotFoundException",$fault:"client",...e});this.name="ImageNotFoundException";this.$fault="client";Object.setPrototypeOf(this,ImageNotFoundException.prototype)}}t.ImageNotFoundException=ImageNotFoundException;t.RegistryAliasStatus={ACTIVE:"ACTIVE",PENDING:"PENDING",REJECTED:"REJECTED"};class RepositoryCatalogDataNotFoundException extends o.ECRPUBLICServiceException{constructor(e){super({name:"RepositoryCatalogDataNotFoundException",$fault:"client",...e});this.name="RepositoryCatalogDataNotFoundException";this.$fault="client";Object.setPrototypeOf(this,RepositoryCatalogDataNotFoundException.prototype)}}t.RepositoryCatalogDataNotFoundException=RepositoryCatalogDataNotFoundException;class ImageAlreadyExistsException extends o.ECRPUBLICServiceException{constructor(e){super({name:"ImageAlreadyExistsException",$fault:"client",...e});this.name="ImageAlreadyExistsException";this.$fault="client";Object.setPrototypeOf(this,ImageAlreadyExistsException.prototype)}}t.ImageAlreadyExistsException=ImageAlreadyExistsException;class ImageDigestDoesNotMatchException extends o.ECRPUBLICServiceException{constructor(e){super({name:"ImageDigestDoesNotMatchException",$fault:"client",...e});this.name="ImageDigestDoesNotMatchException";this.$fault="client";Object.setPrototypeOf(this,ImageDigestDoesNotMatchException.prototype)}}t.ImageDigestDoesNotMatchException=ImageDigestDoesNotMatchException;class ImageTagAlreadyExistsException extends o.ECRPUBLICServiceException{constructor(e){super({name:"ImageTagAlreadyExistsException",$fault:"client",...e});this.name="ImageTagAlreadyExistsException";this.$fault="client";Object.setPrototypeOf(this,ImageTagAlreadyExistsException.prototype)}}t.ImageTagAlreadyExistsException=ImageTagAlreadyExistsException;class InvalidLayerPartException extends o.ECRPUBLICServiceException{constructor(e){super({name:"InvalidLayerPartException",$fault:"client",...e});this.name="InvalidLayerPartException";this.$fault="client";Object.setPrototypeOf(this,InvalidLayerPartException.prototype);this.registryId=e.registryId;this.repositoryName=e.repositoryName;this.uploadId=e.uploadId;this.lastValidByteReceived=e.lastValidByteReceived}}t.InvalidLayerPartException=InvalidLayerPartException;class LayersNotFoundException extends o.ECRPUBLICServiceException{constructor(e){super({name:"LayersNotFoundException",$fault:"client",...e});this.name="LayersNotFoundException";this.$fault="client";Object.setPrototypeOf(this,LayersNotFoundException.prototype)}}t.LayersNotFoundException=LayersNotFoundException;class ReferencedImagesNotFoundException extends o.ECRPUBLICServiceException{constructor(e){super({name:"ReferencedImagesNotFoundException",$fault:"client",...e});this.name="ReferencedImagesNotFoundException";this.$fault="client";Object.setPrototypeOf(this,ReferencedImagesNotFoundException.prototype)}}t.ReferencedImagesNotFoundException=ReferencedImagesNotFoundException},99634:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateDescribeImageTags=void 0;const o=n(47670);const r=n(30608);const makePagedClientRequest=async(e,t,...n)=>await e.send(new o.DescribeImageTagsCommand(t),...n);async function*paginateDescribeImageTags(e,t,...n){let o=e.startingToken||undefined;let s=true;let i;while(s){t.nextToken=o;t["maxResults"]=e.pageSize;if(e.client instanceof r.ECRPUBLICClient){i=await makePagedClientRequest(e.client,t,...n)}else{throw new Error("Invalid client, expected ECRPUBLIC | ECRPUBLICClient")}yield i;const a=o;o=i.nextToken;s=!!(o&&(!e.stopOnSameToken||o!==a))}return undefined}t.paginateDescribeImageTags=paginateDescribeImageTags},74128:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateDescribeImages=void 0;const o=n(22776);const r=n(30608);const makePagedClientRequest=async(e,t,...n)=>await e.send(new o.DescribeImagesCommand(t),...n);async function*paginateDescribeImages(e,t,...n){let o=e.startingToken||undefined;let s=true;let i;while(s){t.nextToken=o;t["maxResults"]=e.pageSize;if(e.client instanceof r.ECRPUBLICClient){i=await makePagedClientRequest(e.client,t,...n)}else{throw new Error("Invalid client, expected ECRPUBLIC | ECRPUBLICClient")}yield i;const a=o;o=i.nextToken;s=!!(o&&(!e.stopOnSameToken||o!==a))}return undefined}t.paginateDescribeImages=paginateDescribeImages},11720:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateDescribeRegistries=void 0;const o=n(78696);const r=n(30608);const makePagedClientRequest=async(e,t,...n)=>await e.send(new o.DescribeRegistriesCommand(t),...n);async function*paginateDescribeRegistries(e,t,...n){let o=e.startingToken||undefined;let s=true;let i;while(s){t.nextToken=o;t["maxResults"]=e.pageSize;if(e.client instanceof r.ECRPUBLICClient){i=await makePagedClientRequest(e.client,t,...n)}else{throw new Error("Invalid client, expected ECRPUBLIC | ECRPUBLICClient")}yield i;const a=o;o=i.nextToken;s=!!(o&&(!e.stopOnSameToken||o!==a))}return undefined}t.paginateDescribeRegistries=paginateDescribeRegistries},65474:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateDescribeRepositories=void 0;const o=n(82218);const r=n(30608);const makePagedClientRequest=async(e,t,...n)=>await e.send(new o.DescribeRepositoriesCommand(t),...n);async function*paginateDescribeRepositories(e,t,...n){let o=e.startingToken||undefined;let s=true;let i;while(s){t.nextToken=o;t["maxResults"]=e.pageSize;if(e.client instanceof r.ECRPUBLICClient){i=await makePagedClientRequest(e.client,t,...n)}else{throw new Error("Invalid client, expected ECRPUBLIC | ECRPUBLICClient")}yield i;const a=o;o=i.nextToken;s=!!(o&&(!e.stopOnSameToken||o!==a))}return undefined}t.paginateDescribeRepositories=paginateDescribeRepositories},93463:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},75945:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(99634),t);o.__exportStar(n(74128),t);o.__exportStar(n(11720),t);o.__exportStar(n(65474),t);o.__exportStar(n(93463),t)},64170:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.de_UploadLayerPartCommand=t.de_UntagResourceCommand=t.de_TagResourceCommand=t.de_SetRepositoryPolicyCommand=t.de_PutRepositoryCatalogDataCommand=t.de_PutRegistryCatalogDataCommand=t.de_PutImageCommand=t.de_ListTagsForResourceCommand=t.de_InitiateLayerUploadCommand=t.de_GetRepositoryPolicyCommand=t.de_GetRepositoryCatalogDataCommand=t.de_GetRegistryCatalogDataCommand=t.de_GetAuthorizationTokenCommand=t.de_DescribeRepositoriesCommand=t.de_DescribeRegistriesCommand=t.de_DescribeImageTagsCommand=t.de_DescribeImagesCommand=t.de_DeleteRepositoryPolicyCommand=t.de_DeleteRepositoryCommand=t.de_CreateRepositoryCommand=t.de_CompleteLayerUploadCommand=t.de_BatchDeleteImageCommand=t.de_BatchCheckLayerAvailabilityCommand=t.se_UploadLayerPartCommand=t.se_UntagResourceCommand=t.se_TagResourceCommand=t.se_SetRepositoryPolicyCommand=t.se_PutRepositoryCatalogDataCommand=t.se_PutRegistryCatalogDataCommand=t.se_PutImageCommand=t.se_ListTagsForResourceCommand=t.se_InitiateLayerUploadCommand=t.se_GetRepositoryPolicyCommand=t.se_GetRepositoryCatalogDataCommand=t.se_GetRegistryCatalogDataCommand=t.se_GetAuthorizationTokenCommand=t.se_DescribeRepositoriesCommand=t.se_DescribeRegistriesCommand=t.se_DescribeImageTagsCommand=t.se_DescribeImagesCommand=t.se_DeleteRepositoryPolicyCommand=t.se_DeleteRepositoryCommand=t.se_CreateRepositoryCommand=t.se_CompleteLayerUploadCommand=t.se_BatchDeleteImageCommand=t.se_BatchCheckLayerAvailabilityCommand=void 0;const o=n(64418);const r=n(63570);const s=n(48278);const i=n(38818);const se_BatchCheckLayerAvailabilityCommand=async(e,t)=>{const n=sharedHeaders("BatchCheckLayerAvailability");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_BatchCheckLayerAvailabilityCommand=se_BatchCheckLayerAvailabilityCommand;const se_BatchDeleteImageCommand=async(e,t)=>{const n=sharedHeaders("BatchDeleteImage");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_BatchDeleteImageCommand=se_BatchDeleteImageCommand;const se_CompleteLayerUploadCommand=async(e,t)=>{const n=sharedHeaders("CompleteLayerUpload");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_CompleteLayerUploadCommand=se_CompleteLayerUploadCommand;const se_CreateRepositoryCommand=async(e,t)=>{const n=sharedHeaders("CreateRepository");let o;o=JSON.stringify(se_CreateRepositoryRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_CreateRepositoryCommand=se_CreateRepositoryCommand;const se_DeleteRepositoryCommand=async(e,t)=>{const n=sharedHeaders("DeleteRepository");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_DeleteRepositoryCommand=se_DeleteRepositoryCommand;const se_DeleteRepositoryPolicyCommand=async(e,t)=>{const n=sharedHeaders("DeleteRepositoryPolicy");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_DeleteRepositoryPolicyCommand=se_DeleteRepositoryPolicyCommand;const se_DescribeImagesCommand=async(e,t)=>{const n=sharedHeaders("DescribeImages");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_DescribeImagesCommand=se_DescribeImagesCommand;const se_DescribeImageTagsCommand=async(e,t)=>{const n=sharedHeaders("DescribeImageTags");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_DescribeImageTagsCommand=se_DescribeImageTagsCommand;const se_DescribeRegistriesCommand=async(e,t)=>{const n=sharedHeaders("DescribeRegistries");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_DescribeRegistriesCommand=se_DescribeRegistriesCommand;const se_DescribeRepositoriesCommand=async(e,t)=>{const n=sharedHeaders("DescribeRepositories");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_DescribeRepositoriesCommand=se_DescribeRepositoriesCommand;const se_GetAuthorizationTokenCommand=async(e,t)=>{const n=sharedHeaders("GetAuthorizationToken");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_GetAuthorizationTokenCommand=se_GetAuthorizationTokenCommand;const se_GetRegistryCatalogDataCommand=async(e,t)=>{const n=sharedHeaders("GetRegistryCatalogData");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_GetRegistryCatalogDataCommand=se_GetRegistryCatalogDataCommand;const se_GetRepositoryCatalogDataCommand=async(e,t)=>{const n=sharedHeaders("GetRepositoryCatalogData");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_GetRepositoryCatalogDataCommand=se_GetRepositoryCatalogDataCommand;const se_GetRepositoryPolicyCommand=async(e,t)=>{const n=sharedHeaders("GetRepositoryPolicy");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_GetRepositoryPolicyCommand=se_GetRepositoryPolicyCommand;const se_InitiateLayerUploadCommand=async(e,t)=>{const n=sharedHeaders("InitiateLayerUpload");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_InitiateLayerUploadCommand=se_InitiateLayerUploadCommand;const se_ListTagsForResourceCommand=async(e,t)=>{const n=sharedHeaders("ListTagsForResource");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_ListTagsForResourceCommand=se_ListTagsForResourceCommand;const se_PutImageCommand=async(e,t)=>{const n=sharedHeaders("PutImage");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_PutImageCommand=se_PutImageCommand;const se_PutRegistryCatalogDataCommand=async(e,t)=>{const n=sharedHeaders("PutRegistryCatalogData");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_PutRegistryCatalogDataCommand=se_PutRegistryCatalogDataCommand;const se_PutRepositoryCatalogDataCommand=async(e,t)=>{const n=sharedHeaders("PutRepositoryCatalogData");let o;o=JSON.stringify(se_PutRepositoryCatalogDataRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_PutRepositoryCatalogDataCommand=se_PutRepositoryCatalogDataCommand;const se_SetRepositoryPolicyCommand=async(e,t)=>{const n=sharedHeaders("SetRepositoryPolicy");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_SetRepositoryPolicyCommand=se_SetRepositoryPolicyCommand;const se_TagResourceCommand=async(e,t)=>{const n=sharedHeaders("TagResource");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_TagResourceCommand=se_TagResourceCommand;const se_UntagResourceCommand=async(e,t)=>{const n=sharedHeaders("UntagResource");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_UntagResourceCommand=se_UntagResourceCommand;const se_UploadLayerPartCommand=async(e,t)=>{const n=sharedHeaders("UploadLayerPart");let o;o=JSON.stringify(se_UploadLayerPartRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_UploadLayerPartCommand=se_UploadLayerPartCommand;const de_BatchCheckLayerAvailabilityCommand=async(e,t)=>{if(e.statusCode>=300){return de_BatchCheckLayerAvailabilityCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=(0,r._json)(n);const s={$metadata:deserializeMetadata(e),...o};return s};t.de_BatchCheckLayerAvailabilityCommand=de_BatchCheckLayerAvailabilityCommand;const de_BatchCheckLayerAvailabilityCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"RegistryNotFoundException":case"com.amazonaws.ecrpublic#RegistryNotFoundException":throw await de_RegistryNotFoundExceptionRes(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await de_ServerExceptionRes(n,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await de_UnsupportedCommandExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_BatchDeleteImageCommand=async(e,t)=>{if(e.statusCode>=300){return de_BatchDeleteImageCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=(0,r._json)(n);const s={$metadata:deserializeMetadata(e),...o};return s};t.de_BatchDeleteImageCommand=de_BatchDeleteImageCommand;const de_BatchDeleteImageCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await de_ServerExceptionRes(n,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await de_UnsupportedCommandExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_CompleteLayerUploadCommand=async(e,t)=>{if(e.statusCode>=300){return de_CompleteLayerUploadCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=(0,r._json)(n);const s={$metadata:deserializeMetadata(e),...o};return s};t.de_CompleteLayerUploadCommand=de_CompleteLayerUploadCommand;const de_CompleteLayerUploadCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"EmptyUploadException":case"com.amazonaws.ecrpublic#EmptyUploadException":throw await de_EmptyUploadExceptionRes(n,t);case"InvalidLayerException":case"com.amazonaws.ecrpublic#InvalidLayerException":throw await de_InvalidLayerExceptionRes(n,t);case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"LayerAlreadyExistsException":case"com.amazonaws.ecrpublic#LayerAlreadyExistsException":throw await de_LayerAlreadyExistsExceptionRes(n,t);case"LayerPartTooSmallException":case"com.amazonaws.ecrpublic#LayerPartTooSmallException":throw await de_LayerPartTooSmallExceptionRes(n,t);case"RegistryNotFoundException":case"com.amazonaws.ecrpublic#RegistryNotFoundException":throw await de_RegistryNotFoundExceptionRes(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await de_ServerExceptionRes(n,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await de_UnsupportedCommandExceptionRes(n,t);case"UploadNotFoundException":case"com.amazonaws.ecrpublic#UploadNotFoundException":throw await de_UploadNotFoundExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_CreateRepositoryCommand=async(e,t)=>{if(e.statusCode>=300){return de_CreateRepositoryCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=de_CreateRepositoryResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return r};t.de_CreateRepositoryCommand=de_CreateRepositoryCommand;const de_CreateRepositoryCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"InvalidTagParameterException":case"com.amazonaws.ecrpublic#InvalidTagParameterException":throw await de_InvalidTagParameterExceptionRes(n,t);case"LimitExceededException":case"com.amazonaws.ecrpublic#LimitExceededException":throw await de_LimitExceededExceptionRes(n,t);case"RepositoryAlreadyExistsException":case"com.amazonaws.ecrpublic#RepositoryAlreadyExistsException":throw await de_RepositoryAlreadyExistsExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await de_ServerExceptionRes(n,t);case"TooManyTagsException":case"com.amazonaws.ecrpublic#TooManyTagsException":throw await de_TooManyTagsExceptionRes(n,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await de_UnsupportedCommandExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_DeleteRepositoryCommand=async(e,t)=>{if(e.statusCode>=300){return de_DeleteRepositoryCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=de_DeleteRepositoryResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return r};t.de_DeleteRepositoryCommand=de_DeleteRepositoryCommand;const de_DeleteRepositoryCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"RepositoryNotEmptyException":case"com.amazonaws.ecrpublic#RepositoryNotEmptyException":throw await de_RepositoryNotEmptyExceptionRes(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await de_ServerExceptionRes(n,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await de_UnsupportedCommandExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_DeleteRepositoryPolicyCommand=async(e,t)=>{if(e.statusCode>=300){return de_DeleteRepositoryPolicyCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=(0,r._json)(n);const s={$metadata:deserializeMetadata(e),...o};return s};t.de_DeleteRepositoryPolicyCommand=de_DeleteRepositoryPolicyCommand;const de_DeleteRepositoryPolicyCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(n,t);case"RepositoryPolicyNotFoundException":case"com.amazonaws.ecrpublic#RepositoryPolicyNotFoundException":throw await de_RepositoryPolicyNotFoundExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await de_ServerExceptionRes(n,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await de_UnsupportedCommandExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_DescribeImagesCommand=async(e,t)=>{if(e.statusCode>=300){return de_DescribeImagesCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=de_DescribeImagesResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return r};t.de_DescribeImagesCommand=de_DescribeImagesCommand;const de_DescribeImagesCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"ImageNotFoundException":case"com.amazonaws.ecrpublic#ImageNotFoundException":throw await de_ImageNotFoundExceptionRes(n,t);case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await de_ServerExceptionRes(n,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await de_UnsupportedCommandExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_DescribeImageTagsCommand=async(e,t)=>{if(e.statusCode>=300){return de_DescribeImageTagsCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=de_DescribeImageTagsResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return r};t.de_DescribeImageTagsCommand=de_DescribeImageTagsCommand;const de_DescribeImageTagsCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await de_ServerExceptionRes(n,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await de_UnsupportedCommandExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_DescribeRegistriesCommand=async(e,t)=>{if(e.statusCode>=300){return de_DescribeRegistriesCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=(0,r._json)(n);const s={$metadata:deserializeMetadata(e),...o};return s};t.de_DescribeRegistriesCommand=de_DescribeRegistriesCommand;const de_DescribeRegistriesCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await de_ServerExceptionRes(n,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await de_UnsupportedCommandExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_DescribeRepositoriesCommand=async(e,t)=>{if(e.statusCode>=300){return de_DescribeRepositoriesCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=de_DescribeRepositoriesResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return r};t.de_DescribeRepositoriesCommand=de_DescribeRepositoriesCommand;const de_DescribeRepositoriesCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await de_ServerExceptionRes(n,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await de_UnsupportedCommandExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_GetAuthorizationTokenCommand=async(e,t)=>{if(e.statusCode>=300){return de_GetAuthorizationTokenCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=de_GetAuthorizationTokenResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return r};t.de_GetAuthorizationTokenCommand=de_GetAuthorizationTokenCommand;const de_GetAuthorizationTokenCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await de_ServerExceptionRes(n,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await de_UnsupportedCommandExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_GetRegistryCatalogDataCommand=async(e,t)=>{if(e.statusCode>=300){return de_GetRegistryCatalogDataCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=(0,r._json)(n);const s={$metadata:deserializeMetadata(e),...o};return s};t.de_GetRegistryCatalogDataCommand=de_GetRegistryCatalogDataCommand;const de_GetRegistryCatalogDataCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await de_ServerExceptionRes(n,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await de_UnsupportedCommandExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_GetRepositoryCatalogDataCommand=async(e,t)=>{if(e.statusCode>=300){return de_GetRepositoryCatalogDataCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=(0,r._json)(n);const s={$metadata:deserializeMetadata(e),...o};return s};t.de_GetRepositoryCatalogDataCommand=de_GetRepositoryCatalogDataCommand;const de_GetRepositoryCatalogDataCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"RepositoryCatalogDataNotFoundException":case"com.amazonaws.ecrpublic#RepositoryCatalogDataNotFoundException":throw await de_RepositoryCatalogDataNotFoundExceptionRes(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await de_ServerExceptionRes(n,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await de_UnsupportedCommandExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_GetRepositoryPolicyCommand=async(e,t)=>{if(e.statusCode>=300){return de_GetRepositoryPolicyCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=(0,r._json)(n);const s={$metadata:deserializeMetadata(e),...o};return s};t.de_GetRepositoryPolicyCommand=de_GetRepositoryPolicyCommand;const de_GetRepositoryPolicyCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(n,t);case"RepositoryPolicyNotFoundException":case"com.amazonaws.ecrpublic#RepositoryPolicyNotFoundException":throw await de_RepositoryPolicyNotFoundExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await de_ServerExceptionRes(n,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await de_UnsupportedCommandExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_InitiateLayerUploadCommand=async(e,t)=>{if(e.statusCode>=300){return de_InitiateLayerUploadCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=(0,r._json)(n);const s={$metadata:deserializeMetadata(e),...o};return s};t.de_InitiateLayerUploadCommand=de_InitiateLayerUploadCommand;const de_InitiateLayerUploadCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"RegistryNotFoundException":case"com.amazonaws.ecrpublic#RegistryNotFoundException":throw await de_RegistryNotFoundExceptionRes(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await de_ServerExceptionRes(n,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await de_UnsupportedCommandExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_ListTagsForResourceCommand=async(e,t)=>{if(e.statusCode>=300){return de_ListTagsForResourceCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=(0,r._json)(n);const s={$metadata:deserializeMetadata(e),...o};return s};t.de_ListTagsForResourceCommand=de_ListTagsForResourceCommand;const de_ListTagsForResourceCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await de_ServerExceptionRes(n,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await de_UnsupportedCommandExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_PutImageCommand=async(e,t)=>{if(e.statusCode>=300){return de_PutImageCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=(0,r._json)(n);const s={$metadata:deserializeMetadata(e),...o};return s};t.de_PutImageCommand=de_PutImageCommand;const de_PutImageCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"ImageAlreadyExistsException":case"com.amazonaws.ecrpublic#ImageAlreadyExistsException":throw await de_ImageAlreadyExistsExceptionRes(n,t);case"ImageDigestDoesNotMatchException":case"com.amazonaws.ecrpublic#ImageDigestDoesNotMatchException":throw await de_ImageDigestDoesNotMatchExceptionRes(n,t);case"ImageTagAlreadyExistsException":case"com.amazonaws.ecrpublic#ImageTagAlreadyExistsException":throw await de_ImageTagAlreadyExistsExceptionRes(n,t);case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"LayersNotFoundException":case"com.amazonaws.ecrpublic#LayersNotFoundException":throw await de_LayersNotFoundExceptionRes(n,t);case"LimitExceededException":case"com.amazonaws.ecrpublic#LimitExceededException":throw await de_LimitExceededExceptionRes(n,t);case"ReferencedImagesNotFoundException":case"com.amazonaws.ecrpublic#ReferencedImagesNotFoundException":throw await de_ReferencedImagesNotFoundExceptionRes(n,t);case"RegistryNotFoundException":case"com.amazonaws.ecrpublic#RegistryNotFoundException":throw await de_RegistryNotFoundExceptionRes(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await de_ServerExceptionRes(n,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await de_UnsupportedCommandExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_PutRegistryCatalogDataCommand=async(e,t)=>{if(e.statusCode>=300){return de_PutRegistryCatalogDataCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=(0,r._json)(n);const s={$metadata:deserializeMetadata(e),...o};return s};t.de_PutRegistryCatalogDataCommand=de_PutRegistryCatalogDataCommand;const de_PutRegistryCatalogDataCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await de_ServerExceptionRes(n,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await de_UnsupportedCommandExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_PutRepositoryCatalogDataCommand=async(e,t)=>{if(e.statusCode>=300){return de_PutRepositoryCatalogDataCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=(0,r._json)(n);const s={$metadata:deserializeMetadata(e),...o};return s};t.de_PutRepositoryCatalogDataCommand=de_PutRepositoryCatalogDataCommand;const de_PutRepositoryCatalogDataCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await de_ServerExceptionRes(n,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await de_UnsupportedCommandExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_SetRepositoryPolicyCommand=async(e,t)=>{if(e.statusCode>=300){return de_SetRepositoryPolicyCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=(0,r._json)(n);const s={$metadata:deserializeMetadata(e),...o};return s};t.de_SetRepositoryPolicyCommand=de_SetRepositoryPolicyCommand;const de_SetRepositoryPolicyCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await de_ServerExceptionRes(n,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await de_UnsupportedCommandExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_TagResourceCommand=async(e,t)=>{if(e.statusCode>=300){return de_TagResourceCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=(0,r._json)(n);const s={$metadata:deserializeMetadata(e),...o};return s};t.de_TagResourceCommand=de_TagResourceCommand;const de_TagResourceCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"InvalidTagParameterException":case"com.amazonaws.ecrpublic#InvalidTagParameterException":throw await de_InvalidTagParameterExceptionRes(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await de_ServerExceptionRes(n,t);case"TooManyTagsException":case"com.amazonaws.ecrpublic#TooManyTagsException":throw await de_TooManyTagsExceptionRes(n,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await de_UnsupportedCommandExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_UntagResourceCommand=async(e,t)=>{if(e.statusCode>=300){return de_UntagResourceCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=(0,r._json)(n);const s={$metadata:deserializeMetadata(e),...o};return s};t.de_UntagResourceCommand=de_UntagResourceCommand;const de_UntagResourceCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"InvalidTagParameterException":case"com.amazonaws.ecrpublic#InvalidTagParameterException":throw await de_InvalidTagParameterExceptionRes(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await de_ServerExceptionRes(n,t);case"TooManyTagsException":case"com.amazonaws.ecrpublic#TooManyTagsException":throw await de_TooManyTagsExceptionRes(n,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await de_UnsupportedCommandExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_UploadLayerPartCommand=async(e,t)=>{if(e.statusCode>=300){return de_UploadLayerPartCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=(0,r._json)(n);const s={$metadata:deserializeMetadata(e),...o};return s};t.de_UploadLayerPartCommand=de_UploadLayerPartCommand;const de_UploadLayerPartCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidLayerPartException":case"com.amazonaws.ecrpublic#InvalidLayerPartException":throw await de_InvalidLayerPartExceptionRes(n,t);case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"LimitExceededException":case"com.amazonaws.ecrpublic#LimitExceededException":throw await de_LimitExceededExceptionRes(n,t);case"RegistryNotFoundException":case"com.amazonaws.ecrpublic#RegistryNotFoundException":throw await de_RegistryNotFoundExceptionRes(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await de_ServerExceptionRes(n,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await de_UnsupportedCommandExceptionRes(n,t);case"UploadNotFoundException":case"com.amazonaws.ecrpublic#UploadNotFoundException":throw await de_UploadNotFoundExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_EmptyUploadExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.EmptyUploadException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_ImageAlreadyExistsExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.ImageAlreadyExistsException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_ImageDigestDoesNotMatchExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.ImageDigestDoesNotMatchException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_ImageNotFoundExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.ImageNotFoundException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_ImageTagAlreadyExistsExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.ImageTagAlreadyExistsException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_InvalidLayerExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.InvalidLayerException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_InvalidLayerPartExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.InvalidLayerPartException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_InvalidParameterExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.InvalidParameterException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_InvalidTagParameterExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.InvalidTagParameterException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_LayerAlreadyExistsExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.LayerAlreadyExistsException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_LayerPartTooSmallExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.LayerPartTooSmallException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_LayersNotFoundExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.LayersNotFoundException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_LimitExceededExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.LimitExceededException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_ReferencedImagesNotFoundExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.ReferencedImagesNotFoundException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_RegistryNotFoundExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.RegistryNotFoundException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_RepositoryAlreadyExistsExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.RepositoryAlreadyExistsException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_RepositoryCatalogDataNotFoundExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.RepositoryCatalogDataNotFoundException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_RepositoryNotEmptyExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.RepositoryNotEmptyException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_RepositoryNotFoundExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.RepositoryNotFoundException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_RepositoryPolicyNotFoundExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.RepositoryPolicyNotFoundException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_ServerExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.ServerException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_TooManyTagsExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.TooManyTagsException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_UnsupportedCommandExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.UnsupportedCommandException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_UploadNotFoundExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.UploadNotFoundException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const se_CreateRepositoryRequest=(e,t)=>(0,r.take)(e,{catalogData:e=>se_RepositoryCatalogDataInput(e,t),repositoryName:[],tags:r._json});const se_PutRepositoryCatalogDataRequest=(e,t)=>(0,r.take)(e,{catalogData:e=>se_RepositoryCatalogDataInput(e,t),registryId:[],repositoryName:[]});const se_RepositoryCatalogDataInput=(e,t)=>(0,r.take)(e,{aboutText:[],architectures:r._json,description:[],logoImageBlob:t.base64Encoder,operatingSystems:r._json,usageText:[]});const se_UploadLayerPartRequest=(e,t)=>(0,r.take)(e,{layerPartBlob:t.base64Encoder,partFirstByte:[],partLastByte:[],registryId:[],repositoryName:[],uploadId:[]});const de_AuthorizationData=(e,t)=>(0,r.take)(e,{authorizationToken:r.expectString,expiresAt:e=>(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e)))});const de_CreateRepositoryResponse=(e,t)=>(0,r.take)(e,{catalogData:r._json,repository:e=>de_Repository(e,t)});const de_DeleteRepositoryResponse=(e,t)=>(0,r.take)(e,{repository:e=>de_Repository(e,t)});const de_DescribeImagesResponse=(e,t)=>(0,r.take)(e,{imageDetails:e=>de_ImageDetailList(e,t),nextToken:r.expectString});const de_DescribeImageTagsResponse=(e,t)=>(0,r.take)(e,{imageTagDetails:e=>de_ImageTagDetailList(e,t),nextToken:r.expectString});const de_DescribeRepositoriesResponse=(e,t)=>(0,r.take)(e,{nextToken:r.expectString,repositories:e=>de_RepositoryList(e,t)});const de_GetAuthorizationTokenResponse=(e,t)=>(0,r.take)(e,{authorizationData:e=>de_AuthorizationData(e,t)});const de_ImageDetail=(e,t)=>(0,r.take)(e,{artifactMediaType:r.expectString,imageDigest:r.expectString,imageManifestMediaType:r.expectString,imagePushedAt:e=>(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e))),imageSizeInBytes:r.expectLong,imageTags:r._json,registryId:r.expectString,repositoryName:r.expectString});const de_ImageDetailList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>de_ImageDetail(e,t)));return n};const de_ImageTagDetail=(e,t)=>(0,r.take)(e,{createdAt:e=>(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e))),imageDetail:e=>de_ReferencedImageDetail(e,t),imageTag:r.expectString});const de_ImageTagDetailList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>de_ImageTagDetail(e,t)));return n};const de_ReferencedImageDetail=(e,t)=>(0,r.take)(e,{artifactMediaType:r.expectString,imageDigest:r.expectString,imageManifestMediaType:r.expectString,imagePushedAt:e=>(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e))),imageSizeInBytes:r.expectLong});const de_Repository=(e,t)=>(0,r.take)(e,{createdAt:e=>(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e))),registryId:r.expectString,repositoryArn:r.expectString,repositoryName:r.expectString,repositoryUri:r.expectString});const de_RepositoryList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>de_Repository(e,t)));return n};const deserializeMetadata=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]});const collectBodyString=(e,t)=>(0,r.collectBody)(e,t).then((e=>t.utf8Encoder(e)));const a=(0,r.withBaseException)(s.ECRPUBLICServiceException);const buildHttpRpcRequest=async(e,t,n,r,s)=>{const{hostname:i,protocol:a="https",port:c,path:d}=await e.endpoint();const u={protocol:a,hostname:i,port:c,method:"POST",path:d.endsWith("/")?d.slice(0,-1)+n:d+n,headers:t};if(r!==undefined){u.hostname=r}if(s!==undefined){u.body=s}return new o.HttpRequest(u)};function sharedHeaders(e){return{"content-type":"application/x-amz-json-1.1","x-amz-target":`SpencerFrontendService.${e}`}}const parseBody=(e,t)=>collectBodyString(e,t).then((e=>{if(e.length){return JSON.parse(e)}return{}}));const parseErrorBody=async(e,t)=>{const n=await parseBody(e,t);n.message=n.message??n.Message;return n};const loadRestJsonErrorCode=(e,t)=>{const findKey=(e,t)=>Object.keys(e).find((e=>e.toLowerCase()===t.toLowerCase()));const sanitizeErrorCode=e=>{let t=e;if(typeof t==="number"){t=t.toString()}if(t.indexOf(",")>=0){t=t.split(",")[0]}if(t.indexOf(":")>=0){t=t.split(":")[0]}if(t.indexOf("#")>=0){t=t.split("#")[1]}return t};const n=findKey(e.headers,"x-amzn-errortype");if(n!==undefined){return sanitizeErrorCode(e.headers[n])}if(t.code!==undefined){return sanitizeErrorCode(t.code)}if(t["__type"]!==undefined){return sanitizeErrorCode(t["__type"])}}},49324:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const o=n(4351);const r=o.__importDefault(n(25929));const s=n(52209);const i=n(75531);const a=n(98095);const c=n(53098);const d=n(3081);const u=n(96039);const l=n(33461);const p=n(20258);const m=n(68075);const f=n(84902);const y=n(76746);const g=n(63570);const h=n(72429);const E=n(63570);const getRuntimeConfig=e=>{(0,E.emitWarningIfUnsupportedVersion)(process.version);const t=(0,h.resolveDefaultsModeConfig)(e);const defaultConfigProvider=()=>t().then(g.loadConfigsForDefaultMode);const n=(0,y.getRuntimeConfig)(e);return{...n,...e,runtime:"node",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??m.calculateBodyLength,credentialDefaultProvider:e?.credentialDefaultProvider??(0,s.decorateDefaultCredentialProvider)(i.defaultProvider),defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,a.defaultUserAgent)({serviceId:n.serviceId,clientVersion:r.default.version}),maxAttempts:e?.maxAttempts??(0,l.loadConfig)(u.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:e?.region??(0,l.loadConfig)(c.NODE_REGION_CONFIG_OPTIONS,c.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:e?.requestHandler??new p.NodeHttpHandler(defaultConfigProvider),retryMode:e?.retryMode??(0,l.loadConfig)({...u.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await defaultConfigProvider()).retryMode||f.DEFAULT_RETRY_MODE}),sha256:e?.sha256??d.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??p.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,l.loadConfig)(c.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:e?.useFipsEndpoint??(0,l.loadConfig)(c.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)}};t.getRuntimeConfig=getRuntimeConfig},76746:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const o=n(63570);const r=n(14681);const s=n(75600);const i=n(41895);const a=n(87377);const getRuntimeConfig=e=>({apiVersion:"2020-10-30",base64Decoder:e?.base64Decoder??s.fromBase64,base64Encoder:e?.base64Encoder??s.toBase64,disableHostPrefix:e?.disableHostPrefix??false,endpointProvider:e?.endpointProvider??a.defaultEndpointResolver,logger:e?.logger??new o.NoOpLogger,serviceId:e?.serviceId??"ECR PUBLIC",urlParser:e?.urlParser??r.parseUrl,utf8Decoder:e?.utf8Decoder??i.fromUtf8,utf8Encoder:e?.utf8Encoder??i.toUtf8});t.getRuntimeConfig=getRuntimeConfig},59167:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ECR=void 0;const o=n(63570);const r=n(63804);const s=n(15511);const i=n(78859);const a=n(79728);const c=n(49003);const d=n(71454);const u=n(5074);const l=n(48981);const p=n(83793);const m=n(31424);const f=n(88651);const y=n(36828);const g=n(39694);const h=n(72987);const E=n(95353);const _=n(31484);const v=n(26166);const S=n(21200);const C=n(35828);const b=n(51401);const P=n(48469);const w=n(17006);const x=n(33685);const R=n(82741);const I=n(46330);const O=n(6936);const T=n(3854);const A=n(97403);const D=n(66844);const N=n(87935);const M=n(66495);const j=n(33854);const k=n(97928);const F=n(29529);const L=n(14030);const U=n(78300);const $=n(47984);const z=n(35905);const H=n(82665);const B=n(37225);const q=n(55825);const G=n(83391);const V={BatchCheckLayerAvailabilityCommand:r.BatchCheckLayerAvailabilityCommand,BatchDeleteImageCommand:s.BatchDeleteImageCommand,BatchGetImageCommand:i.BatchGetImageCommand,BatchGetRepositoryScanningConfigurationCommand:a.BatchGetRepositoryScanningConfigurationCommand,CompleteLayerUploadCommand:c.CompleteLayerUploadCommand,CreatePullThroughCacheRuleCommand:d.CreatePullThroughCacheRuleCommand,CreateRepositoryCommand:u.CreateRepositoryCommand,DeleteLifecyclePolicyCommand:l.DeleteLifecyclePolicyCommand,DeletePullThroughCacheRuleCommand:p.DeletePullThroughCacheRuleCommand,DeleteRegistryPolicyCommand:m.DeleteRegistryPolicyCommand,DeleteRepositoryCommand:f.DeleteRepositoryCommand,DeleteRepositoryPolicyCommand:y.DeleteRepositoryPolicyCommand,DescribeImageReplicationStatusCommand:g.DescribeImageReplicationStatusCommand,DescribeImagesCommand:E.DescribeImagesCommand,DescribeImageScanFindingsCommand:h.DescribeImageScanFindingsCommand,DescribePullThroughCacheRulesCommand:_.DescribePullThroughCacheRulesCommand,DescribeRegistryCommand:v.DescribeRegistryCommand,DescribeRepositoriesCommand:S.DescribeRepositoriesCommand,GetAuthorizationTokenCommand:C.GetAuthorizationTokenCommand,GetDownloadUrlForLayerCommand:b.GetDownloadUrlForLayerCommand,GetLifecyclePolicyCommand:P.GetLifecyclePolicyCommand,GetLifecyclePolicyPreviewCommand:w.GetLifecyclePolicyPreviewCommand,GetRegistryPolicyCommand:x.GetRegistryPolicyCommand,GetRegistryScanningConfigurationCommand:R.GetRegistryScanningConfigurationCommand,GetRepositoryPolicyCommand:I.GetRepositoryPolicyCommand,InitiateLayerUploadCommand:O.InitiateLayerUploadCommand,ListImagesCommand:T.ListImagesCommand,ListTagsForResourceCommand:A.ListTagsForResourceCommand,PutImageCommand:D.PutImageCommand,PutImageScanningConfigurationCommand:N.PutImageScanningConfigurationCommand,PutImageTagMutabilityCommand:M.PutImageTagMutabilityCommand,PutLifecyclePolicyCommand:j.PutLifecyclePolicyCommand,PutRegistryPolicyCommand:k.PutRegistryPolicyCommand,PutRegistryScanningConfigurationCommand:F.PutRegistryScanningConfigurationCommand,PutReplicationConfigurationCommand:L.PutReplicationConfigurationCommand,SetRepositoryPolicyCommand:U.SetRepositoryPolicyCommand,StartImageScanCommand:$.StartImageScanCommand,StartLifecyclePolicyPreviewCommand:z.StartLifecyclePolicyPreviewCommand,TagResourceCommand:H.TagResourceCommand,UntagResourceCommand:B.UntagResourceCommand,UploadLayerPartCommand:q.UploadLayerPartCommand};class ECR extends G.ECRClient{}t.ECR=ECR;(0,o.createAggregatedClient)(V,ECR)},83391:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ECRClient=t.__Client=void 0;const o=n(22545);const r=n(20014);const s=n(85525);const i=n(14935);const a=n(64688);const c=n(53098);const d=n(82800);const u=n(82918);const l=n(96039);const p=n(63570);Object.defineProperty(t,"__Client",{enumerable:true,get:function(){return p.Client}});const m=n(49729);const f=n(869);class ECRClient extends p.Client{constructor(e){const t=(0,f.getRuntimeConfig)(e);const n=(0,m.resolveClientEndpointParameters)(t);const p=(0,c.resolveRegionConfig)(n);const y=(0,u.resolveEndpointConfig)(p);const g=(0,l.resolveRetryConfig)(y);const h=(0,o.resolveHostHeaderConfig)(g);const E=(0,i.resolveAwsAuthConfig)(h);const _=(0,a.resolveUserAgentConfig)(E);super(_);this.config=_;this.middlewareStack.use((0,l.getRetryPlugin)(this.config));this.middlewareStack.use((0,d.getContentLengthPlugin)(this.config));this.middlewareStack.use((0,o.getHostHeaderPlugin)(this.config));this.middlewareStack.use((0,r.getLoggerPlugin)(this.config));this.middlewareStack.use((0,s.getRecursionDetectionPlugin)(this.config));this.middlewareStack.use((0,i.getAwsAuthPlugin)(this.config));this.middlewareStack.use((0,a.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}}t.ECRClient=ECRClient},63804:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BatchCheckLayerAvailabilityCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(56704);class BatchCheckLayerAvailabilityCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,BatchCheckLayerAvailabilityCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRClient";const c="BatchCheckLayerAvailabilityCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_BatchCheckLayerAvailabilityCommand)(e,t)}deserialize(e,t){return(0,i.de_BatchCheckLayerAvailabilityCommand)(e,t)}}t.BatchCheckLayerAvailabilityCommand=BatchCheckLayerAvailabilityCommand},15511:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BatchDeleteImageCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(56704);class BatchDeleteImageCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,BatchDeleteImageCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRClient";const c="BatchDeleteImageCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_BatchDeleteImageCommand)(e,t)}deserialize(e,t){return(0,i.de_BatchDeleteImageCommand)(e,t)}}t.BatchDeleteImageCommand=BatchDeleteImageCommand},78859:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BatchGetImageCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(56704);class BatchGetImageCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,BatchGetImageCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRClient";const c="BatchGetImageCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_BatchGetImageCommand)(e,t)}deserialize(e,t){return(0,i.de_BatchGetImageCommand)(e,t)}}t.BatchGetImageCommand=BatchGetImageCommand},79728:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BatchGetRepositoryScanningConfigurationCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(56704);class BatchGetRepositoryScanningConfigurationCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,BatchGetRepositoryScanningConfigurationCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRClient";const c="BatchGetRepositoryScanningConfigurationCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_BatchGetRepositoryScanningConfigurationCommand)(e,t)}deserialize(e,t){return(0,i.de_BatchGetRepositoryScanningConfigurationCommand)(e,t)}}t.BatchGetRepositoryScanningConfigurationCommand=BatchGetRepositoryScanningConfigurationCommand},49003:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CompleteLayerUploadCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(56704);class CompleteLayerUploadCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,CompleteLayerUploadCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRClient";const c="CompleteLayerUploadCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_CompleteLayerUploadCommand)(e,t)}deserialize(e,t){return(0,i.de_CompleteLayerUploadCommand)(e,t)}}t.CompleteLayerUploadCommand=CompleteLayerUploadCommand},71454:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CreatePullThroughCacheRuleCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(56704);class CreatePullThroughCacheRuleCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,CreatePullThroughCacheRuleCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRClient";const c="CreatePullThroughCacheRuleCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_CreatePullThroughCacheRuleCommand)(e,t)}deserialize(e,t){return(0,i.de_CreatePullThroughCacheRuleCommand)(e,t)}}t.CreatePullThroughCacheRuleCommand=CreatePullThroughCacheRuleCommand},5074:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CreateRepositoryCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(56704);class CreateRepositoryCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,CreateRepositoryCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRClient";const c="CreateRepositoryCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_CreateRepositoryCommand)(e,t)}deserialize(e,t){return(0,i.de_CreateRepositoryCommand)(e,t)}}t.CreateRepositoryCommand=CreateRepositoryCommand},48981:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DeleteLifecyclePolicyCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(56704);class DeleteLifecyclePolicyCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,DeleteLifecyclePolicyCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRClient";const c="DeleteLifecyclePolicyCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_DeleteLifecyclePolicyCommand)(e,t)}deserialize(e,t){return(0,i.de_DeleteLifecyclePolicyCommand)(e,t)}}t.DeleteLifecyclePolicyCommand=DeleteLifecyclePolicyCommand},83793:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DeletePullThroughCacheRuleCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(56704);class DeletePullThroughCacheRuleCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,DeletePullThroughCacheRuleCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRClient";const c="DeletePullThroughCacheRuleCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_DeletePullThroughCacheRuleCommand)(e,t)}deserialize(e,t){return(0,i.de_DeletePullThroughCacheRuleCommand)(e,t)}}t.DeletePullThroughCacheRuleCommand=DeletePullThroughCacheRuleCommand},31424:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DeleteRegistryPolicyCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(56704);class DeleteRegistryPolicyCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,DeleteRegistryPolicyCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRClient";const c="DeleteRegistryPolicyCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_DeleteRegistryPolicyCommand)(e,t)}deserialize(e,t){return(0,i.de_DeleteRegistryPolicyCommand)(e,t)}}t.DeleteRegistryPolicyCommand=DeleteRegistryPolicyCommand},88651:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DeleteRepositoryCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(56704);class DeleteRepositoryCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,DeleteRepositoryCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRClient";const c="DeleteRepositoryCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_DeleteRepositoryCommand)(e,t)}deserialize(e,t){return(0,i.de_DeleteRepositoryCommand)(e,t)}}t.DeleteRepositoryCommand=DeleteRepositoryCommand},36828:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DeleteRepositoryPolicyCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(56704);class DeleteRepositoryPolicyCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,DeleteRepositoryPolicyCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRClient";const c="DeleteRepositoryPolicyCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_DeleteRepositoryPolicyCommand)(e,t)}deserialize(e,t){return(0,i.de_DeleteRepositoryPolicyCommand)(e,t)}}t.DeleteRepositoryPolicyCommand=DeleteRepositoryPolicyCommand},39694:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribeImageReplicationStatusCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(56704);class DescribeImageReplicationStatusCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,DescribeImageReplicationStatusCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRClient";const c="DescribeImageReplicationStatusCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_DescribeImageReplicationStatusCommand)(e,t)}deserialize(e,t){return(0,i.de_DescribeImageReplicationStatusCommand)(e,t)}}t.DescribeImageReplicationStatusCommand=DescribeImageReplicationStatusCommand},72987:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribeImageScanFindingsCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(56704);class DescribeImageScanFindingsCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,DescribeImageScanFindingsCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRClient";const c="DescribeImageScanFindingsCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_DescribeImageScanFindingsCommand)(e,t)}deserialize(e,t){return(0,i.de_DescribeImageScanFindingsCommand)(e,t)}}t.DescribeImageScanFindingsCommand=DescribeImageScanFindingsCommand},95353:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribeImagesCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(56704);class DescribeImagesCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,DescribeImagesCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRClient";const c="DescribeImagesCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_DescribeImagesCommand)(e,t)}deserialize(e,t){return(0,i.de_DescribeImagesCommand)(e,t)}}t.DescribeImagesCommand=DescribeImagesCommand},31484:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribePullThroughCacheRulesCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(56704);class DescribePullThroughCacheRulesCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,DescribePullThroughCacheRulesCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRClient";const c="DescribePullThroughCacheRulesCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_DescribePullThroughCacheRulesCommand)(e,t)}deserialize(e,t){return(0,i.de_DescribePullThroughCacheRulesCommand)(e,t)}}t.DescribePullThroughCacheRulesCommand=DescribePullThroughCacheRulesCommand},26166:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribeRegistryCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(56704);class DescribeRegistryCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,DescribeRegistryCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRClient";const c="DescribeRegistryCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_DescribeRegistryCommand)(e,t)}deserialize(e,t){return(0,i.de_DescribeRegistryCommand)(e,t)}}t.DescribeRegistryCommand=DescribeRegistryCommand},21200:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribeRepositoriesCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(56704);class DescribeRepositoriesCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,DescribeRepositoriesCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRClient";const c="DescribeRepositoriesCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_DescribeRepositoriesCommand)(e,t)}deserialize(e,t){return(0,i.de_DescribeRepositoriesCommand)(e,t)}}t.DescribeRepositoriesCommand=DescribeRepositoriesCommand},35828:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetAuthorizationTokenCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(56704);class GetAuthorizationTokenCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,GetAuthorizationTokenCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRClient";const c="GetAuthorizationTokenCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_GetAuthorizationTokenCommand)(e,t)}deserialize(e,t){return(0,i.de_GetAuthorizationTokenCommand)(e,t)}}t.GetAuthorizationTokenCommand=GetAuthorizationTokenCommand},51401:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetDownloadUrlForLayerCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(56704);class GetDownloadUrlForLayerCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,GetDownloadUrlForLayerCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRClient";const c="GetDownloadUrlForLayerCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_GetDownloadUrlForLayerCommand)(e,t)}deserialize(e,t){return(0,i.de_GetDownloadUrlForLayerCommand)(e,t)}}t.GetDownloadUrlForLayerCommand=GetDownloadUrlForLayerCommand},48469:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetLifecyclePolicyCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(56704);class GetLifecyclePolicyCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,GetLifecyclePolicyCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRClient";const c="GetLifecyclePolicyCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_GetLifecyclePolicyCommand)(e,t)}deserialize(e,t){return(0,i.de_GetLifecyclePolicyCommand)(e,t)}}t.GetLifecyclePolicyCommand=GetLifecyclePolicyCommand},17006:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetLifecyclePolicyPreviewCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(56704);class GetLifecyclePolicyPreviewCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,GetLifecyclePolicyPreviewCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRClient";const c="GetLifecyclePolicyPreviewCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_GetLifecyclePolicyPreviewCommand)(e,t)}deserialize(e,t){return(0,i.de_GetLifecyclePolicyPreviewCommand)(e,t)}}t.GetLifecyclePolicyPreviewCommand=GetLifecyclePolicyPreviewCommand},33685:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetRegistryPolicyCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(56704);class GetRegistryPolicyCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,GetRegistryPolicyCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRClient";const c="GetRegistryPolicyCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_GetRegistryPolicyCommand)(e,t)}deserialize(e,t){return(0,i.de_GetRegistryPolicyCommand)(e,t)}}t.GetRegistryPolicyCommand=GetRegistryPolicyCommand},82741:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetRegistryScanningConfigurationCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(56704);class GetRegistryScanningConfigurationCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,GetRegistryScanningConfigurationCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRClient";const c="GetRegistryScanningConfigurationCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_GetRegistryScanningConfigurationCommand)(e,t)}deserialize(e,t){return(0,i.de_GetRegistryScanningConfigurationCommand)(e,t)}}t.GetRegistryScanningConfigurationCommand=GetRegistryScanningConfigurationCommand},46330:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetRepositoryPolicyCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(56704);class GetRepositoryPolicyCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,GetRepositoryPolicyCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRClient";const c="GetRepositoryPolicyCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_GetRepositoryPolicyCommand)(e,t)}deserialize(e,t){return(0,i.de_GetRepositoryPolicyCommand)(e,t)}}t.GetRepositoryPolicyCommand=GetRepositoryPolicyCommand},6936:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.InitiateLayerUploadCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(56704);class InitiateLayerUploadCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,InitiateLayerUploadCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRClient";const c="InitiateLayerUploadCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_InitiateLayerUploadCommand)(e,t)}deserialize(e,t){return(0,i.de_InitiateLayerUploadCommand)(e,t)}}t.InitiateLayerUploadCommand=InitiateLayerUploadCommand},3854:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ListImagesCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(56704);class ListImagesCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,ListImagesCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRClient";const c="ListImagesCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_ListImagesCommand)(e,t)}deserialize(e,t){return(0,i.de_ListImagesCommand)(e,t)}}t.ListImagesCommand=ListImagesCommand},97403:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ListTagsForResourceCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(56704);class ListTagsForResourceCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,ListTagsForResourceCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRClient";const c="ListTagsForResourceCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_ListTagsForResourceCommand)(e,t)}deserialize(e,t){return(0,i.de_ListTagsForResourceCommand)(e,t)}}t.ListTagsForResourceCommand=ListTagsForResourceCommand},66844:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutImageCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(56704);class PutImageCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,PutImageCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRClient";const c="PutImageCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_PutImageCommand)(e,t)}deserialize(e,t){return(0,i.de_PutImageCommand)(e,t)}}t.PutImageCommand=PutImageCommand},87935:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutImageScanningConfigurationCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(56704);class PutImageScanningConfigurationCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,PutImageScanningConfigurationCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRClient";const c="PutImageScanningConfigurationCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_PutImageScanningConfigurationCommand)(e,t)}deserialize(e,t){return(0,i.de_PutImageScanningConfigurationCommand)(e,t)}}t.PutImageScanningConfigurationCommand=PutImageScanningConfigurationCommand},66495:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutImageTagMutabilityCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(56704);class PutImageTagMutabilityCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,PutImageTagMutabilityCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRClient";const c="PutImageTagMutabilityCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_PutImageTagMutabilityCommand)(e,t)}deserialize(e,t){return(0,i.de_PutImageTagMutabilityCommand)(e,t)}}t.PutImageTagMutabilityCommand=PutImageTagMutabilityCommand},33854:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutLifecyclePolicyCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(56704);class PutLifecyclePolicyCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,PutLifecyclePolicyCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRClient";const c="PutLifecyclePolicyCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_PutLifecyclePolicyCommand)(e,t)}deserialize(e,t){return(0,i.de_PutLifecyclePolicyCommand)(e,t)}}t.PutLifecyclePolicyCommand=PutLifecyclePolicyCommand},97928:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutRegistryPolicyCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(56704);class PutRegistryPolicyCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,PutRegistryPolicyCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRClient";const c="PutRegistryPolicyCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_PutRegistryPolicyCommand)(e,t)}deserialize(e,t){return(0,i.de_PutRegistryPolicyCommand)(e,t)}}t.PutRegistryPolicyCommand=PutRegistryPolicyCommand},29529:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutRegistryScanningConfigurationCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(56704);class PutRegistryScanningConfigurationCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,PutRegistryScanningConfigurationCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRClient";const c="PutRegistryScanningConfigurationCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_PutRegistryScanningConfigurationCommand)(e,t)}deserialize(e,t){return(0,i.de_PutRegistryScanningConfigurationCommand)(e,t)}}t.PutRegistryScanningConfigurationCommand=PutRegistryScanningConfigurationCommand},14030:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutReplicationConfigurationCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(56704);class PutReplicationConfigurationCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,PutReplicationConfigurationCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRClient";const c="PutReplicationConfigurationCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_PutReplicationConfigurationCommand)(e,t)}deserialize(e,t){return(0,i.de_PutReplicationConfigurationCommand)(e,t)}}t.PutReplicationConfigurationCommand=PutReplicationConfigurationCommand},78300:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SetRepositoryPolicyCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(56704);class SetRepositoryPolicyCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,SetRepositoryPolicyCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRClient";const c="SetRepositoryPolicyCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_SetRepositoryPolicyCommand)(e,t)}deserialize(e,t){return(0,i.de_SetRepositoryPolicyCommand)(e,t)}}t.SetRepositoryPolicyCommand=SetRepositoryPolicyCommand},47984:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StartImageScanCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(56704);class StartImageScanCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,StartImageScanCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRClient";const c="StartImageScanCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_StartImageScanCommand)(e,t)}deserialize(e,t){return(0,i.de_StartImageScanCommand)(e,t)}}t.StartImageScanCommand=StartImageScanCommand},35905:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StartLifecyclePolicyPreviewCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(56704);class StartLifecyclePolicyPreviewCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,StartLifecyclePolicyPreviewCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRClient";const c="StartLifecyclePolicyPreviewCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_StartLifecyclePolicyPreviewCommand)(e,t)}deserialize(e,t){return(0,i.de_StartLifecyclePolicyPreviewCommand)(e,t)}}t.StartLifecyclePolicyPreviewCommand=StartLifecyclePolicyPreviewCommand},82665:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TagResourceCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(56704);class TagResourceCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,TagResourceCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRClient";const c="TagResourceCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_TagResourceCommand)(e,t)}deserialize(e,t){return(0,i.de_TagResourceCommand)(e,t)}}t.TagResourceCommand=TagResourceCommand},37225:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UntagResourceCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(56704);class UntagResourceCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,UntagResourceCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRClient";const c="UntagResourceCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_UntagResourceCommand)(e,t)}deserialize(e,t){return(0,i.de_UntagResourceCommand)(e,t)}}t.UntagResourceCommand=UntagResourceCommand},55825:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UploadLayerPartCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(56704);class UploadLayerPartCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,UploadLayerPartCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="ECRClient";const c="UploadLayerPartCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_UploadLayerPartCommand)(e,t)}deserialize(e,t){return(0,i.de_UploadLayerPartCommand)(e,t)}}t.UploadLayerPartCommand=UploadLayerPartCommand},67407:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(63804),t);o.__exportStar(n(15511),t);o.__exportStar(n(78859),t);o.__exportStar(n(79728),t);o.__exportStar(n(49003),t);o.__exportStar(n(71454),t);o.__exportStar(n(5074),t);o.__exportStar(n(48981),t);o.__exportStar(n(83793),t);o.__exportStar(n(31424),t);o.__exportStar(n(88651),t);o.__exportStar(n(36828),t);o.__exportStar(n(39694),t);o.__exportStar(n(72987),t);o.__exportStar(n(95353),t);o.__exportStar(n(31484),t);o.__exportStar(n(26166),t);o.__exportStar(n(21200),t);o.__exportStar(n(35828),t);o.__exportStar(n(51401),t);o.__exportStar(n(48469),t);o.__exportStar(n(17006),t);o.__exportStar(n(33685),t);o.__exportStar(n(82741),t);o.__exportStar(n(46330),t);o.__exportStar(n(6936),t);o.__exportStar(n(3854),t);o.__exportStar(n(97403),t);o.__exportStar(n(66844),t);o.__exportStar(n(87935),t);o.__exportStar(n(66495),t);o.__exportStar(n(33854),t);o.__exportStar(n(97928),t);o.__exportStar(n(29529),t);o.__exportStar(n(14030),t);o.__exportStar(n(78300),t);o.__exportStar(n(47984),t);o.__exportStar(n(35905),t);o.__exportStar(n(82665),t);o.__exportStar(n(37225),t);o.__exportStar(n(55825),t)},49729:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveClientEndpointParameters=void 0;const resolveClientEndpointParameters=e=>({...e,useDualstackEndpoint:e.useDualstackEndpoint??false,useFipsEndpoint:e.useFipsEndpoint??false,defaultSigningName:"ecr"});t.resolveClientEndpointParameters=resolveClientEndpointParameters},61610:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultEndpointResolver=void 0;const o=n(13350);const r=n(64053);const defaultEndpointResolver=(e,t={})=>(0,o.resolveEndpoint)(r.ruleSet,{endpointParams:e,logger:t.logger});t.defaultEndpointResolver=defaultEndpointResolver},64053:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ruleSet=void 0;const n="required",o="fn",r="argv",s="ref";const i="PartitionResult",a="tree",c="error",d="endpoint",u="stringEquals",l={[n]:false,type:"String"},p={[n]:true,default:false,type:"Boolean"},m={[s]:"Region"},f={[s]:"Endpoint"},y={[o]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]},g={[o]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]},h={},E={[o]:"booleanEquals",[r]:[true,{[o]:"getAttr",[r]:[{[s]:i},"supportsFIPS"]}]},_={[o]:"booleanEquals",[r]:[true,{[o]:"getAttr",[r]:[{[s]:i},"supportsDualStack"]}]},v={[o]:"getAttr",[r]:[{[s]:i},"name"]},S={url:"https://ecr-fips.{Region}.{PartitionResult#dnsSuffix}",properties:{},headers:{}},C=[f],b=[y],P=[g];const w={version:"1.0",parameters:{Region:l,UseDualStack:p,UseFIPS:p,Endpoint:l},rules:[{conditions:[{[o]:"aws.partition",[r]:[m],assign:i}],type:a,rules:[{conditions:[{[o]:"isSet",[r]:C},{[o]:"parseURL",[r]:C,assign:"url"}],type:a,rules:[{conditions:b,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:a,rules:[{conditions:P,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:f,properties:h,headers:h},type:d}]}]},{conditions:[y,g],type:a,rules:[{conditions:[E,_],type:a,rules:[{endpoint:{url:"https://api.ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:h,headers:h},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:b,type:a,rules:[{conditions:[E],type:a,rules:[{type:a,rules:[{conditions:[{[o]:u,[r]:[m,"dkr-us-east-2"]}],endpoint:{url:"https://ecr-fips.us-east-2.amazonaws.com",properties:h,headers:h},type:d},{conditions:[{[o]:u,[r]:[m,"dkr-us-east-1"]}],endpoint:{url:"https://ecr-fips.us-east-1.amazonaws.com",properties:h,headers:h},type:d},{conditions:[{[o]:u,[r]:[m,"dkr-us-west-2"]}],endpoint:{url:"https://ecr-fips.us-west-2.amazonaws.com",properties:h,headers:h},type:d},{conditions:[{[o]:u,[r]:[m,"dkr-us-west-1"]}],endpoint:{url:"https://ecr-fips.us-west-1.amazonaws.com",properties:h,headers:h},type:d},{conditions:[{[o]:u,[r]:["aws",v]}],endpoint:S,type:d},{conditions:[{[o]:u,[r]:[m,"dkr-us-gov-east-1"]}],endpoint:{url:"https://ecr-fips.us-gov-east-1.amazonaws.com",properties:h,headers:h},type:d},{conditions:[{[o]:u,[r]:[m,"dkr-us-gov-west-1"]}],endpoint:{url:"https://ecr-fips.us-gov-west-1.amazonaws.com",properties:h,headers:h},type:d},{conditions:[{[o]:u,[r]:["aws-us-gov",v]}],endpoint:S,type:d},{endpoint:{url:"https://api.ecr-fips.{Region}.{PartitionResult#dnsSuffix}",properties:h,headers:h},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:P,type:a,rules:[{conditions:[_],type:a,rules:[{endpoint:{url:"https://api.ecr.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:h,headers:h},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://api.ecr.{Region}.{PartitionResult#dnsSuffix}",properties:h,headers:h},type:d}]}]};t.ruleSet=w},8923:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ECRServiceException=void 0;const o=n(4351);o.__exportStar(n(83391),t);o.__exportStar(n(59167),t);o.__exportStar(n(67407),t);o.__exportStar(n(35356),t);o.__exportStar(n(28406),t);o.__exportStar(n(57451),t);var r=n(11610);Object.defineProperty(t,"ECRServiceException",{enumerable:true,get:function(){return r.ECRServiceException}})},11610:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ECRServiceException=t.__ServiceException=void 0;const o=n(63570);Object.defineProperty(t,"__ServiceException",{enumerable:true,get:function(){return o.ServiceException}});class ECRServiceException extends o.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,ECRServiceException.prototype)}}t.ECRServiceException=ECRServiceException},57451:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(79088),t)},79088:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.InvalidLayerPartException=t.LifecyclePolicyPreviewInProgressException=t.UnsupportedImageTypeException=t.ReferencedImagesNotFoundException=t.ImageTagAlreadyExistsException=t.ImageDigestDoesNotMatchException=t.ImageAlreadyExistsException=t.ScanType=t.LifecyclePolicyPreviewNotFoundException=t.LifecyclePolicyPreviewStatus=t.ImageActionType=t.LayersNotFoundException=t.LayerInaccessibleException=t.RepositoryFilterType=t.ScanNotFoundException=t.ScanStatus=t.FindingSeverity=t.TagStatus=t.ImageNotFoundException=t.ReplicationStatus=t.RepositoryPolicyNotFoundException=t.RepositoryNotEmptyException=t.RegistryPolicyNotFoundException=t.PullThroughCacheRuleNotFoundException=t.LifecyclePolicyNotFoundException=t.TooManyTagsException=t.RepositoryAlreadyExistsException=t.InvalidTagParameterException=t.ImageTagMutability=t.EncryptionType=t.UnsupportedUpstreamRegistryException=t.PullThroughCacheRuleAlreadyExistsException=t.LimitExceededException=t.UploadNotFoundException=t.LayerPartTooSmallException=t.LayerAlreadyExistsException=t.KmsException=t.InvalidLayerException=t.EmptyUploadException=t.ValidationException=t.ScanFrequency=t.ScanningRepositoryFilterType=t.ScanningConfigurationFailureCode=t.ImageFailureCode=t.ServerException=t.RepositoryNotFoundException=t.InvalidParameterException=t.LayerAvailability=t.LayerFailureCode=void 0;const o=n(11610);t.LayerFailureCode={InvalidLayerDigest:"InvalidLayerDigest",MissingLayerDigest:"MissingLayerDigest"};t.LayerAvailability={AVAILABLE:"AVAILABLE",UNAVAILABLE:"UNAVAILABLE"};class InvalidParameterException extends o.ECRServiceException{constructor(e){super({name:"InvalidParameterException",$fault:"client",...e});this.name="InvalidParameterException";this.$fault="client";Object.setPrototypeOf(this,InvalidParameterException.prototype)}}t.InvalidParameterException=InvalidParameterException;class RepositoryNotFoundException extends o.ECRServiceException{constructor(e){super({name:"RepositoryNotFoundException",$fault:"client",...e});this.name="RepositoryNotFoundException";this.$fault="client";Object.setPrototypeOf(this,RepositoryNotFoundException.prototype)}}t.RepositoryNotFoundException=RepositoryNotFoundException;class ServerException extends o.ECRServiceException{constructor(e){super({name:"ServerException",$fault:"server",...e});this.name="ServerException";this.$fault="server";Object.setPrototypeOf(this,ServerException.prototype)}}t.ServerException=ServerException;t.ImageFailureCode={ImageNotFound:"ImageNotFound",ImageReferencedByManifestList:"ImageReferencedByManifestList",ImageTagDoesNotMatchDigest:"ImageTagDoesNotMatchDigest",InvalidImageDigest:"InvalidImageDigest",InvalidImageTag:"InvalidImageTag",KmsError:"KmsError",MissingDigestAndTag:"MissingDigestAndTag"};t.ScanningConfigurationFailureCode={REPOSITORY_NOT_FOUND:"REPOSITORY_NOT_FOUND"};t.ScanningRepositoryFilterType={WILDCARD:"WILDCARD"};t.ScanFrequency={CONTINUOUS_SCAN:"CONTINUOUS_SCAN",MANUAL:"MANUAL",SCAN_ON_PUSH:"SCAN_ON_PUSH"};class ValidationException extends o.ECRServiceException{constructor(e){super({name:"ValidationException",$fault:"client",...e});this.name="ValidationException";this.$fault="client";Object.setPrototypeOf(this,ValidationException.prototype)}}t.ValidationException=ValidationException;class EmptyUploadException extends o.ECRServiceException{constructor(e){super({name:"EmptyUploadException",$fault:"client",...e});this.name="EmptyUploadException";this.$fault="client";Object.setPrototypeOf(this,EmptyUploadException.prototype)}}t.EmptyUploadException=EmptyUploadException;class InvalidLayerException extends o.ECRServiceException{constructor(e){super({name:"InvalidLayerException",$fault:"client",...e});this.name="InvalidLayerException";this.$fault="client";Object.setPrototypeOf(this,InvalidLayerException.prototype)}}t.InvalidLayerException=InvalidLayerException;class KmsException extends o.ECRServiceException{constructor(e){super({name:"KmsException",$fault:"client",...e});this.name="KmsException";this.$fault="client";Object.setPrototypeOf(this,KmsException.prototype);this.kmsError=e.kmsError}}t.KmsException=KmsException;class LayerAlreadyExistsException extends o.ECRServiceException{constructor(e){super({name:"LayerAlreadyExistsException",$fault:"client",...e});this.name="LayerAlreadyExistsException";this.$fault="client";Object.setPrototypeOf(this,LayerAlreadyExistsException.prototype)}}t.LayerAlreadyExistsException=LayerAlreadyExistsException;class LayerPartTooSmallException extends o.ECRServiceException{constructor(e){super({name:"LayerPartTooSmallException",$fault:"client",...e});this.name="LayerPartTooSmallException";this.$fault="client";Object.setPrototypeOf(this,LayerPartTooSmallException.prototype)}}t.LayerPartTooSmallException=LayerPartTooSmallException;class UploadNotFoundException extends o.ECRServiceException{constructor(e){super({name:"UploadNotFoundException",$fault:"client",...e});this.name="UploadNotFoundException";this.$fault="client";Object.setPrototypeOf(this,UploadNotFoundException.prototype)}}t.UploadNotFoundException=UploadNotFoundException;class LimitExceededException extends o.ECRServiceException{constructor(e){super({name:"LimitExceededException",$fault:"client",...e});this.name="LimitExceededException";this.$fault="client";Object.setPrototypeOf(this,LimitExceededException.prototype)}}t.LimitExceededException=LimitExceededException;class PullThroughCacheRuleAlreadyExistsException extends o.ECRServiceException{constructor(e){super({name:"PullThroughCacheRuleAlreadyExistsException",$fault:"client",...e});this.name="PullThroughCacheRuleAlreadyExistsException";this.$fault="client";Object.setPrototypeOf(this,PullThroughCacheRuleAlreadyExistsException.prototype)}}t.PullThroughCacheRuleAlreadyExistsException=PullThroughCacheRuleAlreadyExistsException;class UnsupportedUpstreamRegistryException extends o.ECRServiceException{constructor(e){super({name:"UnsupportedUpstreamRegistryException",$fault:"client",...e});this.name="UnsupportedUpstreamRegistryException";this.$fault="client";Object.setPrototypeOf(this,UnsupportedUpstreamRegistryException.prototype)}}t.UnsupportedUpstreamRegistryException=UnsupportedUpstreamRegistryException;t.EncryptionType={AES256:"AES256",KMS:"KMS"};t.ImageTagMutability={IMMUTABLE:"IMMUTABLE",MUTABLE:"MUTABLE"};class InvalidTagParameterException extends o.ECRServiceException{constructor(e){super({name:"InvalidTagParameterException",$fault:"client",...e});this.name="InvalidTagParameterException";this.$fault="client";Object.setPrototypeOf(this,InvalidTagParameterException.prototype)}}t.InvalidTagParameterException=InvalidTagParameterException;class RepositoryAlreadyExistsException extends o.ECRServiceException{constructor(e){super({name:"RepositoryAlreadyExistsException",$fault:"client",...e});this.name="RepositoryAlreadyExistsException";this.$fault="client";Object.setPrototypeOf(this,RepositoryAlreadyExistsException.prototype)}}t.RepositoryAlreadyExistsException=RepositoryAlreadyExistsException;class TooManyTagsException extends o.ECRServiceException{constructor(e){super({name:"TooManyTagsException",$fault:"client",...e});this.name="TooManyTagsException";this.$fault="client";Object.setPrototypeOf(this,TooManyTagsException.prototype)}}t.TooManyTagsException=TooManyTagsException;class LifecyclePolicyNotFoundException extends o.ECRServiceException{constructor(e){super({name:"LifecyclePolicyNotFoundException",$fault:"client",...e});this.name="LifecyclePolicyNotFoundException";this.$fault="client";Object.setPrototypeOf(this,LifecyclePolicyNotFoundException.prototype)}}t.LifecyclePolicyNotFoundException=LifecyclePolicyNotFoundException;class PullThroughCacheRuleNotFoundException extends o.ECRServiceException{constructor(e){super({name:"PullThroughCacheRuleNotFoundException",$fault:"client",...e});this.name="PullThroughCacheRuleNotFoundException";this.$fault="client";Object.setPrototypeOf(this,PullThroughCacheRuleNotFoundException.prototype)}}t.PullThroughCacheRuleNotFoundException=PullThroughCacheRuleNotFoundException;class RegistryPolicyNotFoundException extends o.ECRServiceException{constructor(e){super({name:"RegistryPolicyNotFoundException",$fault:"client",...e});this.name="RegistryPolicyNotFoundException";this.$fault="client";Object.setPrototypeOf(this,RegistryPolicyNotFoundException.prototype)}}t.RegistryPolicyNotFoundException=RegistryPolicyNotFoundException;class RepositoryNotEmptyException extends o.ECRServiceException{constructor(e){super({name:"RepositoryNotEmptyException",$fault:"client",...e});this.name="RepositoryNotEmptyException";this.$fault="client";Object.setPrototypeOf(this,RepositoryNotEmptyException.prototype)}}t.RepositoryNotEmptyException=RepositoryNotEmptyException;class RepositoryPolicyNotFoundException extends o.ECRServiceException{constructor(e){super({name:"RepositoryPolicyNotFoundException",$fault:"client",...e});this.name="RepositoryPolicyNotFoundException";this.$fault="client";Object.setPrototypeOf(this,RepositoryPolicyNotFoundException.prototype)}}t.RepositoryPolicyNotFoundException=RepositoryPolicyNotFoundException;t.ReplicationStatus={COMPLETE:"COMPLETE",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"};class ImageNotFoundException extends o.ECRServiceException{constructor(e){super({name:"ImageNotFoundException",$fault:"client",...e});this.name="ImageNotFoundException";this.$fault="client";Object.setPrototypeOf(this,ImageNotFoundException.prototype)}}t.ImageNotFoundException=ImageNotFoundException;t.TagStatus={ANY:"ANY",TAGGED:"TAGGED",UNTAGGED:"UNTAGGED"};t.FindingSeverity={CRITICAL:"CRITICAL",HIGH:"HIGH",INFORMATIONAL:"INFORMATIONAL",LOW:"LOW",MEDIUM:"MEDIUM",UNDEFINED:"UNDEFINED"};t.ScanStatus={ACTIVE:"ACTIVE",COMPLETE:"COMPLETE",FAILED:"FAILED",FINDINGS_UNAVAILABLE:"FINDINGS_UNAVAILABLE",IN_PROGRESS:"IN_PROGRESS",PENDING:"PENDING",SCAN_ELIGIBILITY_EXPIRED:"SCAN_ELIGIBILITY_EXPIRED",UNSUPPORTED_IMAGE:"UNSUPPORTED_IMAGE"};class ScanNotFoundException extends o.ECRServiceException{constructor(e){super({name:"ScanNotFoundException",$fault:"client",...e});this.name="ScanNotFoundException";this.$fault="client";Object.setPrototypeOf(this,ScanNotFoundException.prototype)}}t.ScanNotFoundException=ScanNotFoundException;t.RepositoryFilterType={PREFIX_MATCH:"PREFIX_MATCH"};class LayerInaccessibleException extends o.ECRServiceException{constructor(e){super({name:"LayerInaccessibleException",$fault:"client",...e});this.name="LayerInaccessibleException";this.$fault="client";Object.setPrototypeOf(this,LayerInaccessibleException.prototype)}}t.LayerInaccessibleException=LayerInaccessibleException;class LayersNotFoundException extends o.ECRServiceException{constructor(e){super({name:"LayersNotFoundException",$fault:"client",...e});this.name="LayersNotFoundException";this.$fault="client";Object.setPrototypeOf(this,LayersNotFoundException.prototype)}}t.LayersNotFoundException=LayersNotFoundException;t.ImageActionType={EXPIRE:"EXPIRE"};t.LifecyclePolicyPreviewStatus={COMPLETE:"COMPLETE",EXPIRED:"EXPIRED",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"};class LifecyclePolicyPreviewNotFoundException extends o.ECRServiceException{constructor(e){super({name:"LifecyclePolicyPreviewNotFoundException",$fault:"client",...e});this.name="LifecyclePolicyPreviewNotFoundException";this.$fault="client";Object.setPrototypeOf(this,LifecyclePolicyPreviewNotFoundException.prototype)}}t.LifecyclePolicyPreviewNotFoundException=LifecyclePolicyPreviewNotFoundException;t.ScanType={BASIC:"BASIC",ENHANCED:"ENHANCED"};class ImageAlreadyExistsException extends o.ECRServiceException{constructor(e){super({name:"ImageAlreadyExistsException",$fault:"client",...e});this.name="ImageAlreadyExistsException";this.$fault="client";Object.setPrototypeOf(this,ImageAlreadyExistsException.prototype)}}t.ImageAlreadyExistsException=ImageAlreadyExistsException;class ImageDigestDoesNotMatchException extends o.ECRServiceException{constructor(e){super({name:"ImageDigestDoesNotMatchException",$fault:"client",...e});this.name="ImageDigestDoesNotMatchException";this.$fault="client";Object.setPrototypeOf(this,ImageDigestDoesNotMatchException.prototype)}}t.ImageDigestDoesNotMatchException=ImageDigestDoesNotMatchException;class ImageTagAlreadyExistsException extends o.ECRServiceException{constructor(e){super({name:"ImageTagAlreadyExistsException",$fault:"client",...e});this.name="ImageTagAlreadyExistsException";this.$fault="client";Object.setPrototypeOf(this,ImageTagAlreadyExistsException.prototype)}}t.ImageTagAlreadyExistsException=ImageTagAlreadyExistsException;class ReferencedImagesNotFoundException extends o.ECRServiceException{constructor(e){super({name:"ReferencedImagesNotFoundException",$fault:"client",...e});this.name="ReferencedImagesNotFoundException";this.$fault="client";Object.setPrototypeOf(this,ReferencedImagesNotFoundException.prototype)}}t.ReferencedImagesNotFoundException=ReferencedImagesNotFoundException;class UnsupportedImageTypeException extends o.ECRServiceException{constructor(e){super({name:"UnsupportedImageTypeException",$fault:"client",...e});this.name="UnsupportedImageTypeException";this.$fault="client";Object.setPrototypeOf(this,UnsupportedImageTypeException.prototype)}}t.UnsupportedImageTypeException=UnsupportedImageTypeException;class LifecyclePolicyPreviewInProgressException extends o.ECRServiceException{constructor(e){super({name:"LifecyclePolicyPreviewInProgressException",$fault:"client",...e});this.name="LifecyclePolicyPreviewInProgressException";this.$fault="client";Object.setPrototypeOf(this,LifecyclePolicyPreviewInProgressException.prototype)}}t.LifecyclePolicyPreviewInProgressException=LifecyclePolicyPreviewInProgressException;class InvalidLayerPartException extends o.ECRServiceException{constructor(e){super({name:"InvalidLayerPartException",$fault:"client",...e});this.name="InvalidLayerPartException";this.$fault="client";Object.setPrototypeOf(this,InvalidLayerPartException.prototype);this.registryId=e.registryId;this.repositoryName=e.repositoryName;this.uploadId=e.uploadId;this.lastValidByteReceived=e.lastValidByteReceived}}t.InvalidLayerPartException=InvalidLayerPartException},30862:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateDescribeImageScanFindings=void 0;const o=n(72987);const r=n(83391);const makePagedClientRequest=async(e,t,...n)=>await e.send(new o.DescribeImageScanFindingsCommand(t),...n);async function*paginateDescribeImageScanFindings(e,t,...n){let o=e.startingToken||undefined;let s=true;let i;while(s){t.nextToken=o;t["maxResults"]=e.pageSize;if(e.client instanceof r.ECRClient){i=await makePagedClientRequest(e.client,t,...n)}else{throw new Error("Invalid client, expected ECR | ECRClient")}yield i;const a=o;o=i.nextToken;s=!!(o&&(!e.stopOnSameToken||o!==a))}return undefined}t.paginateDescribeImageScanFindings=paginateDescribeImageScanFindings},51351:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateDescribeImages=void 0;const o=n(95353);const r=n(83391);const makePagedClientRequest=async(e,t,...n)=>await e.send(new o.DescribeImagesCommand(t),...n);async function*paginateDescribeImages(e,t,...n){let o=e.startingToken||undefined;let s=true;let i;while(s){t.nextToken=o;t["maxResults"]=e.pageSize;if(e.client instanceof r.ECRClient){i=await makePagedClientRequest(e.client,t,...n)}else{throw new Error("Invalid client, expected ECR | ECRClient")}yield i;const a=o;o=i.nextToken;s=!!(o&&(!e.stopOnSameToken||o!==a))}return undefined}t.paginateDescribeImages=paginateDescribeImages},59589:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateDescribePullThroughCacheRules=void 0;const o=n(31484);const r=n(83391);const makePagedClientRequest=async(e,t,...n)=>await e.send(new o.DescribePullThroughCacheRulesCommand(t),...n);async function*paginateDescribePullThroughCacheRules(e,t,...n){let o=e.startingToken||undefined;let s=true;let i;while(s){t.nextToken=o;t["maxResults"]=e.pageSize;if(e.client instanceof r.ECRClient){i=await makePagedClientRequest(e.client,t,...n)}else{throw new Error("Invalid client, expected ECR | ECRClient")}yield i;const a=o;o=i.nextToken;s=!!(o&&(!e.stopOnSameToken||o!==a))}return undefined}t.paginateDescribePullThroughCacheRules=paginateDescribePullThroughCacheRules},16404:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateDescribeRepositories=void 0;const o=n(21200);const r=n(83391);const makePagedClientRequest=async(e,t,...n)=>await e.send(new o.DescribeRepositoriesCommand(t),...n);async function*paginateDescribeRepositories(e,t,...n){let o=e.startingToken||undefined;let s=true;let i;while(s){t.nextToken=o;t["maxResults"]=e.pageSize;if(e.client instanceof r.ECRClient){i=await makePagedClientRequest(e.client,t,...n)}else{throw new Error("Invalid client, expected ECR | ECRClient")}yield i;const a=o;o=i.nextToken;s=!!(o&&(!e.stopOnSameToken||o!==a))}return undefined}t.paginateDescribeRepositories=paginateDescribeRepositories},50987:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateGetLifecyclePolicyPreview=void 0;const o=n(17006);const r=n(83391);const makePagedClientRequest=async(e,t,...n)=>await e.send(new o.GetLifecyclePolicyPreviewCommand(t),...n);async function*paginateGetLifecyclePolicyPreview(e,t,...n){let o=e.startingToken||undefined;let s=true;let i;while(s){t.nextToken=o;t["maxResults"]=e.pageSize;if(e.client instanceof r.ECRClient){i=await makePagedClientRequest(e.client,t,...n)}else{throw new Error("Invalid client, expected ECR | ECRClient")}yield i;const a=o;o=i.nextToken;s=!!(o&&(!e.stopOnSameToken||o!==a))}return undefined}t.paginateGetLifecyclePolicyPreview=paginateGetLifecyclePolicyPreview},9010:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},1066:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateListImages=void 0;const o=n(3854);const r=n(83391);const makePagedClientRequest=async(e,t,...n)=>await e.send(new o.ListImagesCommand(t),...n);async function*paginateListImages(e,t,...n){let o=e.startingToken||undefined;let s=true;let i;while(s){t.nextToken=o;t["maxResults"]=e.pageSize;if(e.client instanceof r.ECRClient){i=await makePagedClientRequest(e.client,t,...n)}else{throw new Error("Invalid client, expected ECR | ECRClient")}yield i;const a=o;o=i.nextToken;s=!!(o&&(!e.stopOnSameToken||o!==a))}return undefined}t.paginateListImages=paginateListImages},35356:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(30862),t);o.__exportStar(n(51351),t);o.__exportStar(n(59589),t);o.__exportStar(n(16404),t);o.__exportStar(n(50987),t);o.__exportStar(n(9010),t);o.__exportStar(n(1066),t)},56704:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.de_DeletePullThroughCacheRuleCommand=t.de_DeleteLifecyclePolicyCommand=t.de_CreateRepositoryCommand=t.de_CreatePullThroughCacheRuleCommand=t.de_CompleteLayerUploadCommand=t.de_BatchGetRepositoryScanningConfigurationCommand=t.de_BatchGetImageCommand=t.de_BatchDeleteImageCommand=t.de_BatchCheckLayerAvailabilityCommand=t.se_UploadLayerPartCommand=t.se_UntagResourceCommand=t.se_TagResourceCommand=t.se_StartLifecyclePolicyPreviewCommand=t.se_StartImageScanCommand=t.se_SetRepositoryPolicyCommand=t.se_PutReplicationConfigurationCommand=t.se_PutRegistryScanningConfigurationCommand=t.se_PutRegistryPolicyCommand=t.se_PutLifecyclePolicyCommand=t.se_PutImageTagMutabilityCommand=t.se_PutImageScanningConfigurationCommand=t.se_PutImageCommand=t.se_ListTagsForResourceCommand=t.se_ListImagesCommand=t.se_InitiateLayerUploadCommand=t.se_GetRepositoryPolicyCommand=t.se_GetRegistryScanningConfigurationCommand=t.se_GetRegistryPolicyCommand=t.se_GetLifecyclePolicyPreviewCommand=t.se_GetLifecyclePolicyCommand=t.se_GetDownloadUrlForLayerCommand=t.se_GetAuthorizationTokenCommand=t.se_DescribeRepositoriesCommand=t.se_DescribeRegistryCommand=t.se_DescribePullThroughCacheRulesCommand=t.se_DescribeImageScanFindingsCommand=t.se_DescribeImagesCommand=t.se_DescribeImageReplicationStatusCommand=t.se_DeleteRepositoryPolicyCommand=t.se_DeleteRepositoryCommand=t.se_DeleteRegistryPolicyCommand=t.se_DeletePullThroughCacheRuleCommand=t.se_DeleteLifecyclePolicyCommand=t.se_CreateRepositoryCommand=t.se_CreatePullThroughCacheRuleCommand=t.se_CompleteLayerUploadCommand=t.se_BatchGetRepositoryScanningConfigurationCommand=t.se_BatchGetImageCommand=t.se_BatchDeleteImageCommand=t.se_BatchCheckLayerAvailabilityCommand=void 0;t.de_UploadLayerPartCommand=t.de_UntagResourceCommand=t.de_TagResourceCommand=t.de_StartLifecyclePolicyPreviewCommand=t.de_StartImageScanCommand=t.de_SetRepositoryPolicyCommand=t.de_PutReplicationConfigurationCommand=t.de_PutRegistryScanningConfigurationCommand=t.de_PutRegistryPolicyCommand=t.de_PutLifecyclePolicyCommand=t.de_PutImageTagMutabilityCommand=t.de_PutImageScanningConfigurationCommand=t.de_PutImageCommand=t.de_ListTagsForResourceCommand=t.de_ListImagesCommand=t.de_InitiateLayerUploadCommand=t.de_GetRepositoryPolicyCommand=t.de_GetRegistryScanningConfigurationCommand=t.de_GetRegistryPolicyCommand=t.de_GetLifecyclePolicyPreviewCommand=t.de_GetLifecyclePolicyCommand=t.de_GetDownloadUrlForLayerCommand=t.de_GetAuthorizationTokenCommand=t.de_DescribeRepositoriesCommand=t.de_DescribeRegistryCommand=t.de_DescribePullThroughCacheRulesCommand=t.de_DescribeImageScanFindingsCommand=t.de_DescribeImagesCommand=t.de_DescribeImageReplicationStatusCommand=t.de_DeleteRepositoryPolicyCommand=t.de_DeleteRepositoryCommand=t.de_DeleteRegistryPolicyCommand=void 0;const o=n(64418);const r=n(63570);const s=n(11610);const i=n(79088);const se_BatchCheckLayerAvailabilityCommand=async(e,t)=>{const n=sharedHeaders("BatchCheckLayerAvailability");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_BatchCheckLayerAvailabilityCommand=se_BatchCheckLayerAvailabilityCommand;const se_BatchDeleteImageCommand=async(e,t)=>{const n=sharedHeaders("BatchDeleteImage");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_BatchDeleteImageCommand=se_BatchDeleteImageCommand;const se_BatchGetImageCommand=async(e,t)=>{const n=sharedHeaders("BatchGetImage");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_BatchGetImageCommand=se_BatchGetImageCommand;const se_BatchGetRepositoryScanningConfigurationCommand=async(e,t)=>{const n=sharedHeaders("BatchGetRepositoryScanningConfiguration");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_BatchGetRepositoryScanningConfigurationCommand=se_BatchGetRepositoryScanningConfigurationCommand;const se_CompleteLayerUploadCommand=async(e,t)=>{const n=sharedHeaders("CompleteLayerUpload");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_CompleteLayerUploadCommand=se_CompleteLayerUploadCommand;const se_CreatePullThroughCacheRuleCommand=async(e,t)=>{const n=sharedHeaders("CreatePullThroughCacheRule");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_CreatePullThroughCacheRuleCommand=se_CreatePullThroughCacheRuleCommand;const se_CreateRepositoryCommand=async(e,t)=>{const n=sharedHeaders("CreateRepository");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_CreateRepositoryCommand=se_CreateRepositoryCommand;const se_DeleteLifecyclePolicyCommand=async(e,t)=>{const n=sharedHeaders("DeleteLifecyclePolicy");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_DeleteLifecyclePolicyCommand=se_DeleteLifecyclePolicyCommand;const se_DeletePullThroughCacheRuleCommand=async(e,t)=>{const n=sharedHeaders("DeletePullThroughCacheRule");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_DeletePullThroughCacheRuleCommand=se_DeletePullThroughCacheRuleCommand;const se_DeleteRegistryPolicyCommand=async(e,t)=>{const n=sharedHeaders("DeleteRegistryPolicy");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_DeleteRegistryPolicyCommand=se_DeleteRegistryPolicyCommand;const se_DeleteRepositoryCommand=async(e,t)=>{const n=sharedHeaders("DeleteRepository");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_DeleteRepositoryCommand=se_DeleteRepositoryCommand;const se_DeleteRepositoryPolicyCommand=async(e,t)=>{const n=sharedHeaders("DeleteRepositoryPolicy");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_DeleteRepositoryPolicyCommand=se_DeleteRepositoryPolicyCommand;const se_DescribeImageReplicationStatusCommand=async(e,t)=>{const n=sharedHeaders("DescribeImageReplicationStatus");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_DescribeImageReplicationStatusCommand=se_DescribeImageReplicationStatusCommand;const se_DescribeImagesCommand=async(e,t)=>{const n=sharedHeaders("DescribeImages");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_DescribeImagesCommand=se_DescribeImagesCommand;const se_DescribeImageScanFindingsCommand=async(e,t)=>{const n=sharedHeaders("DescribeImageScanFindings");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_DescribeImageScanFindingsCommand=se_DescribeImageScanFindingsCommand;const se_DescribePullThroughCacheRulesCommand=async(e,t)=>{const n=sharedHeaders("DescribePullThroughCacheRules");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_DescribePullThroughCacheRulesCommand=se_DescribePullThroughCacheRulesCommand;const se_DescribeRegistryCommand=async(e,t)=>{const n=sharedHeaders("DescribeRegistry");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_DescribeRegistryCommand=se_DescribeRegistryCommand;const se_DescribeRepositoriesCommand=async(e,t)=>{const n=sharedHeaders("DescribeRepositories");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_DescribeRepositoriesCommand=se_DescribeRepositoriesCommand;const se_GetAuthorizationTokenCommand=async(e,t)=>{const n=sharedHeaders("GetAuthorizationToken");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_GetAuthorizationTokenCommand=se_GetAuthorizationTokenCommand;const se_GetDownloadUrlForLayerCommand=async(e,t)=>{const n=sharedHeaders("GetDownloadUrlForLayer");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_GetDownloadUrlForLayerCommand=se_GetDownloadUrlForLayerCommand;const se_GetLifecyclePolicyCommand=async(e,t)=>{const n=sharedHeaders("GetLifecyclePolicy");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_GetLifecyclePolicyCommand=se_GetLifecyclePolicyCommand;const se_GetLifecyclePolicyPreviewCommand=async(e,t)=>{const n=sharedHeaders("GetLifecyclePolicyPreview");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_GetLifecyclePolicyPreviewCommand=se_GetLifecyclePolicyPreviewCommand;const se_GetRegistryPolicyCommand=async(e,t)=>{const n=sharedHeaders("GetRegistryPolicy");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_GetRegistryPolicyCommand=se_GetRegistryPolicyCommand;const se_GetRegistryScanningConfigurationCommand=async(e,t)=>{const n=sharedHeaders("GetRegistryScanningConfiguration");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_GetRegistryScanningConfigurationCommand=se_GetRegistryScanningConfigurationCommand;const se_GetRepositoryPolicyCommand=async(e,t)=>{const n=sharedHeaders("GetRepositoryPolicy");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_GetRepositoryPolicyCommand=se_GetRepositoryPolicyCommand;const se_InitiateLayerUploadCommand=async(e,t)=>{const n=sharedHeaders("InitiateLayerUpload");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_InitiateLayerUploadCommand=se_InitiateLayerUploadCommand;const se_ListImagesCommand=async(e,t)=>{const n=sharedHeaders("ListImages");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_ListImagesCommand=se_ListImagesCommand;const se_ListTagsForResourceCommand=async(e,t)=>{const n=sharedHeaders("ListTagsForResource");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_ListTagsForResourceCommand=se_ListTagsForResourceCommand;const se_PutImageCommand=async(e,t)=>{const n=sharedHeaders("PutImage");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_PutImageCommand=se_PutImageCommand;const se_PutImageScanningConfigurationCommand=async(e,t)=>{const n=sharedHeaders("PutImageScanningConfiguration");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_PutImageScanningConfigurationCommand=se_PutImageScanningConfigurationCommand;const se_PutImageTagMutabilityCommand=async(e,t)=>{const n=sharedHeaders("PutImageTagMutability");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_PutImageTagMutabilityCommand=se_PutImageTagMutabilityCommand;const se_PutLifecyclePolicyCommand=async(e,t)=>{const n=sharedHeaders("PutLifecyclePolicy");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_PutLifecyclePolicyCommand=se_PutLifecyclePolicyCommand;const se_PutRegistryPolicyCommand=async(e,t)=>{const n=sharedHeaders("PutRegistryPolicy");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_PutRegistryPolicyCommand=se_PutRegistryPolicyCommand;const se_PutRegistryScanningConfigurationCommand=async(e,t)=>{const n=sharedHeaders("PutRegistryScanningConfiguration");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_PutRegistryScanningConfigurationCommand=se_PutRegistryScanningConfigurationCommand;const se_PutReplicationConfigurationCommand=async(e,t)=>{const n=sharedHeaders("PutReplicationConfiguration");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_PutReplicationConfigurationCommand=se_PutReplicationConfigurationCommand;const se_SetRepositoryPolicyCommand=async(e,t)=>{const n=sharedHeaders("SetRepositoryPolicy");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_SetRepositoryPolicyCommand=se_SetRepositoryPolicyCommand;const se_StartImageScanCommand=async(e,t)=>{const n=sharedHeaders("StartImageScan");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_StartImageScanCommand=se_StartImageScanCommand;const se_StartLifecyclePolicyPreviewCommand=async(e,t)=>{const n=sharedHeaders("StartLifecyclePolicyPreview");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_StartLifecyclePolicyPreviewCommand=se_StartLifecyclePolicyPreviewCommand;const se_TagResourceCommand=async(e,t)=>{const n=sharedHeaders("TagResource");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_TagResourceCommand=se_TagResourceCommand;const se_UntagResourceCommand=async(e,t)=>{const n=sharedHeaders("UntagResource");let o;o=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_UntagResourceCommand=se_UntagResourceCommand;const se_UploadLayerPartCommand=async(e,t)=>{const n=sharedHeaders("UploadLayerPart");let o;o=JSON.stringify(se_UploadLayerPartRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_UploadLayerPartCommand=se_UploadLayerPartCommand;const de_BatchCheckLayerAvailabilityCommand=async(e,t)=>{if(e.statusCode>=300){return de_BatchCheckLayerAvailabilityCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=(0,r._json)(n);const s={$metadata:deserializeMetadata(e),...o};return s};t.de_BatchCheckLayerAvailabilityCommand=de_BatchCheckLayerAvailabilityCommand;const de_BatchCheckLayerAvailabilityCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_BatchDeleteImageCommand=async(e,t)=>{if(e.statusCode>=300){return de_BatchDeleteImageCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=(0,r._json)(n);const s={$metadata:deserializeMetadata(e),...o};return s};t.de_BatchDeleteImageCommand=de_BatchDeleteImageCommand;const de_BatchDeleteImageCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_BatchGetImageCommand=async(e,t)=>{if(e.statusCode>=300){return de_BatchGetImageCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=(0,r._json)(n);const s={$metadata:deserializeMetadata(e),...o};return s};t.de_BatchGetImageCommand=de_BatchGetImageCommand;const de_BatchGetImageCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_BatchGetRepositoryScanningConfigurationCommand=async(e,t)=>{if(e.statusCode>=300){return de_BatchGetRepositoryScanningConfigurationCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=(0,r._json)(n);const s={$metadata:deserializeMetadata(e),...o};return s};t.de_BatchGetRepositoryScanningConfigurationCommand=de_BatchGetRepositoryScanningConfigurationCommand;const de_BatchGetRepositoryScanningConfigurationCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(n,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await de_ValidationExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_CompleteLayerUploadCommand=async(e,t)=>{if(e.statusCode>=300){return de_CompleteLayerUploadCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=(0,r._json)(n);const s={$metadata:deserializeMetadata(e),...o};return s};t.de_CompleteLayerUploadCommand=de_CompleteLayerUploadCommand;const de_CompleteLayerUploadCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"EmptyUploadException":case"com.amazonaws.ecr#EmptyUploadException":throw await de_EmptyUploadExceptionRes(n,t);case"InvalidLayerException":case"com.amazonaws.ecr#InvalidLayerException":throw await de_InvalidLayerExceptionRes(n,t);case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"KmsException":case"com.amazonaws.ecr#KmsException":throw await de_KmsExceptionRes(n,t);case"LayerAlreadyExistsException":case"com.amazonaws.ecr#LayerAlreadyExistsException":throw await de_LayerAlreadyExistsExceptionRes(n,t);case"LayerPartTooSmallException":case"com.amazonaws.ecr#LayerPartTooSmallException":throw await de_LayerPartTooSmallExceptionRes(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(n,t);case"UploadNotFoundException":case"com.amazonaws.ecr#UploadNotFoundException":throw await de_UploadNotFoundExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_CreatePullThroughCacheRuleCommand=async(e,t)=>{if(e.statusCode>=300){return de_CreatePullThroughCacheRuleCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=de_CreatePullThroughCacheRuleResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return r};t.de_CreatePullThroughCacheRuleCommand=de_CreatePullThroughCacheRuleCommand;const de_CreatePullThroughCacheRuleCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"LimitExceededException":case"com.amazonaws.ecr#LimitExceededException":throw await de_LimitExceededExceptionRes(n,t);case"PullThroughCacheRuleAlreadyExistsException":case"com.amazonaws.ecr#PullThroughCacheRuleAlreadyExistsException":throw await de_PullThroughCacheRuleAlreadyExistsExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(n,t);case"UnsupportedUpstreamRegistryException":case"com.amazonaws.ecr#UnsupportedUpstreamRegistryException":throw await de_UnsupportedUpstreamRegistryExceptionRes(n,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await de_ValidationExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_CreateRepositoryCommand=async(e,t)=>{if(e.statusCode>=300){return de_CreateRepositoryCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=de_CreateRepositoryResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return r};t.de_CreateRepositoryCommand=de_CreateRepositoryCommand;const de_CreateRepositoryCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"InvalidTagParameterException":case"com.amazonaws.ecr#InvalidTagParameterException":throw await de_InvalidTagParameterExceptionRes(n,t);case"KmsException":case"com.amazonaws.ecr#KmsException":throw await de_KmsExceptionRes(n,t);case"LimitExceededException":case"com.amazonaws.ecr#LimitExceededException":throw await de_LimitExceededExceptionRes(n,t);case"RepositoryAlreadyExistsException":case"com.amazonaws.ecr#RepositoryAlreadyExistsException":throw await de_RepositoryAlreadyExistsExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(n,t);case"TooManyTagsException":case"com.amazonaws.ecr#TooManyTagsException":throw await de_TooManyTagsExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_DeleteLifecyclePolicyCommand=async(e,t)=>{if(e.statusCode>=300){return de_DeleteLifecyclePolicyCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=de_DeleteLifecyclePolicyResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return r};t.de_DeleteLifecyclePolicyCommand=de_DeleteLifecyclePolicyCommand;const de_DeleteLifecyclePolicyCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"LifecyclePolicyNotFoundException":case"com.amazonaws.ecr#LifecyclePolicyNotFoundException":throw await de_LifecyclePolicyNotFoundExceptionRes(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_DeletePullThroughCacheRuleCommand=async(e,t)=>{if(e.statusCode>=300){return de_DeletePullThroughCacheRuleCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=de_DeletePullThroughCacheRuleResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return r};t.de_DeletePullThroughCacheRuleCommand=de_DeletePullThroughCacheRuleCommand;const de_DeletePullThroughCacheRuleCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"PullThroughCacheRuleNotFoundException":case"com.amazonaws.ecr#PullThroughCacheRuleNotFoundException":throw await de_PullThroughCacheRuleNotFoundExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(n,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await de_ValidationExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_DeleteRegistryPolicyCommand=async(e,t)=>{if(e.statusCode>=300){return de_DeleteRegistryPolicyCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=(0,r._json)(n);const s={$metadata:deserializeMetadata(e),...o};return s};t.de_DeleteRegistryPolicyCommand=de_DeleteRegistryPolicyCommand;const de_DeleteRegistryPolicyCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"RegistryPolicyNotFoundException":case"com.amazonaws.ecr#RegistryPolicyNotFoundException":throw await de_RegistryPolicyNotFoundExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(n,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await de_ValidationExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_DeleteRepositoryCommand=async(e,t)=>{if(e.statusCode>=300){return de_DeleteRepositoryCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=de_DeleteRepositoryResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return r};t.de_DeleteRepositoryCommand=de_DeleteRepositoryCommand;const de_DeleteRepositoryCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"KmsException":case"com.amazonaws.ecr#KmsException":throw await de_KmsExceptionRes(n,t);case"RepositoryNotEmptyException":case"com.amazonaws.ecr#RepositoryNotEmptyException":throw await de_RepositoryNotEmptyExceptionRes(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_DeleteRepositoryPolicyCommand=async(e,t)=>{if(e.statusCode>=300){return de_DeleteRepositoryPolicyCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=(0,r._json)(n);const s={$metadata:deserializeMetadata(e),...o};return s};t.de_DeleteRepositoryPolicyCommand=de_DeleteRepositoryPolicyCommand;const de_DeleteRepositoryPolicyCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(n,t);case"RepositoryPolicyNotFoundException":case"com.amazonaws.ecr#RepositoryPolicyNotFoundException":throw await de_RepositoryPolicyNotFoundExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_DescribeImageReplicationStatusCommand=async(e,t)=>{if(e.statusCode>=300){return de_DescribeImageReplicationStatusCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=(0,r._json)(n);const s={$metadata:deserializeMetadata(e),...o};return s};t.de_DescribeImageReplicationStatusCommand=de_DescribeImageReplicationStatusCommand;const de_DescribeImageReplicationStatusCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"ImageNotFoundException":case"com.amazonaws.ecr#ImageNotFoundException":throw await de_ImageNotFoundExceptionRes(n,t);case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(n,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await de_ValidationExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_DescribeImagesCommand=async(e,t)=>{if(e.statusCode>=300){return de_DescribeImagesCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=de_DescribeImagesResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return r};t.de_DescribeImagesCommand=de_DescribeImagesCommand;const de_DescribeImagesCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"ImageNotFoundException":case"com.amazonaws.ecr#ImageNotFoundException":throw await de_ImageNotFoundExceptionRes(n,t);case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_DescribeImageScanFindingsCommand=async(e,t)=>{if(e.statusCode>=300){return de_DescribeImageScanFindingsCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=de_DescribeImageScanFindingsResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return r};t.de_DescribeImageScanFindingsCommand=de_DescribeImageScanFindingsCommand;const de_DescribeImageScanFindingsCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"ImageNotFoundException":case"com.amazonaws.ecr#ImageNotFoundException":throw await de_ImageNotFoundExceptionRes(n,t);case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(n,t);case"ScanNotFoundException":case"com.amazonaws.ecr#ScanNotFoundException":throw await de_ScanNotFoundExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(n,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await de_ValidationExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_DescribePullThroughCacheRulesCommand=async(e,t)=>{if(e.statusCode>=300){return de_DescribePullThroughCacheRulesCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=de_DescribePullThroughCacheRulesResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return r};t.de_DescribePullThroughCacheRulesCommand=de_DescribePullThroughCacheRulesCommand;const de_DescribePullThroughCacheRulesCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"PullThroughCacheRuleNotFoundException":case"com.amazonaws.ecr#PullThroughCacheRuleNotFoundException":throw await de_PullThroughCacheRuleNotFoundExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(n,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await de_ValidationExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_DescribeRegistryCommand=async(e,t)=>{if(e.statusCode>=300){return de_DescribeRegistryCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=(0,r._json)(n);const s={$metadata:deserializeMetadata(e),...o};return s};t.de_DescribeRegistryCommand=de_DescribeRegistryCommand;const de_DescribeRegistryCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(n,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await de_ValidationExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_DescribeRepositoriesCommand=async(e,t)=>{if(e.statusCode>=300){return de_DescribeRepositoriesCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=de_DescribeRepositoriesResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return r};t.de_DescribeRepositoriesCommand=de_DescribeRepositoriesCommand;const de_DescribeRepositoriesCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_GetAuthorizationTokenCommand=async(e,t)=>{if(e.statusCode>=300){return de_GetAuthorizationTokenCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=de_GetAuthorizationTokenResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return r};t.de_GetAuthorizationTokenCommand=de_GetAuthorizationTokenCommand;const de_GetAuthorizationTokenCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_GetDownloadUrlForLayerCommand=async(e,t)=>{if(e.statusCode>=300){return de_GetDownloadUrlForLayerCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=(0,r._json)(n);const s={$metadata:deserializeMetadata(e),...o};return s};t.de_GetDownloadUrlForLayerCommand=de_GetDownloadUrlForLayerCommand;const de_GetDownloadUrlForLayerCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"LayerInaccessibleException":case"com.amazonaws.ecr#LayerInaccessibleException":throw await de_LayerInaccessibleExceptionRes(n,t);case"LayersNotFoundException":case"com.amazonaws.ecr#LayersNotFoundException":throw await de_LayersNotFoundExceptionRes(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_GetLifecyclePolicyCommand=async(e,t)=>{if(e.statusCode>=300){return de_GetLifecyclePolicyCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=de_GetLifecyclePolicyResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return r};t.de_GetLifecyclePolicyCommand=de_GetLifecyclePolicyCommand;const de_GetLifecyclePolicyCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"LifecyclePolicyNotFoundException":case"com.amazonaws.ecr#LifecyclePolicyNotFoundException":throw await de_LifecyclePolicyNotFoundExceptionRes(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_GetLifecyclePolicyPreviewCommand=async(e,t)=>{if(e.statusCode>=300){return de_GetLifecyclePolicyPreviewCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=de_GetLifecyclePolicyPreviewResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return r};t.de_GetLifecyclePolicyPreviewCommand=de_GetLifecyclePolicyPreviewCommand;const de_GetLifecyclePolicyPreviewCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"LifecyclePolicyPreviewNotFoundException":case"com.amazonaws.ecr#LifecyclePolicyPreviewNotFoundException":throw await de_LifecyclePolicyPreviewNotFoundExceptionRes(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_GetRegistryPolicyCommand=async(e,t)=>{if(e.statusCode>=300){return de_GetRegistryPolicyCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=(0,r._json)(n);const s={$metadata:deserializeMetadata(e),...o};return s};t.de_GetRegistryPolicyCommand=de_GetRegistryPolicyCommand;const de_GetRegistryPolicyCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"RegistryPolicyNotFoundException":case"com.amazonaws.ecr#RegistryPolicyNotFoundException":throw await de_RegistryPolicyNotFoundExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(n,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await de_ValidationExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_GetRegistryScanningConfigurationCommand=async(e,t)=>{if(e.statusCode>=300){return de_GetRegistryScanningConfigurationCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=(0,r._json)(n);const s={$metadata:deserializeMetadata(e),...o};return s};t.de_GetRegistryScanningConfigurationCommand=de_GetRegistryScanningConfigurationCommand;const de_GetRegistryScanningConfigurationCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(n,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await de_ValidationExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_GetRepositoryPolicyCommand=async(e,t)=>{if(e.statusCode>=300){return de_GetRepositoryPolicyCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=(0,r._json)(n);const s={$metadata:deserializeMetadata(e),...o};return s};t.de_GetRepositoryPolicyCommand=de_GetRepositoryPolicyCommand;const de_GetRepositoryPolicyCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(n,t);case"RepositoryPolicyNotFoundException":case"com.amazonaws.ecr#RepositoryPolicyNotFoundException":throw await de_RepositoryPolicyNotFoundExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_InitiateLayerUploadCommand=async(e,t)=>{if(e.statusCode>=300){return de_InitiateLayerUploadCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=(0,r._json)(n);const s={$metadata:deserializeMetadata(e),...o};return s};t.de_InitiateLayerUploadCommand=de_InitiateLayerUploadCommand;const de_InitiateLayerUploadCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"KmsException":case"com.amazonaws.ecr#KmsException":throw await de_KmsExceptionRes(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_ListImagesCommand=async(e,t)=>{if(e.statusCode>=300){return de_ListImagesCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=(0,r._json)(n);const s={$metadata:deserializeMetadata(e),...o};return s};t.de_ListImagesCommand=de_ListImagesCommand;const de_ListImagesCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_ListTagsForResourceCommand=async(e,t)=>{if(e.statusCode>=300){return de_ListTagsForResourceCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=(0,r._json)(n);const s={$metadata:deserializeMetadata(e),...o};return s};t.de_ListTagsForResourceCommand=de_ListTagsForResourceCommand;const de_ListTagsForResourceCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_PutImageCommand=async(e,t)=>{if(e.statusCode>=300){return de_PutImageCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=(0,r._json)(n);const s={$metadata:deserializeMetadata(e),...o};return s};t.de_PutImageCommand=de_PutImageCommand;const de_PutImageCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"ImageAlreadyExistsException":case"com.amazonaws.ecr#ImageAlreadyExistsException":throw await de_ImageAlreadyExistsExceptionRes(n,t);case"ImageDigestDoesNotMatchException":case"com.amazonaws.ecr#ImageDigestDoesNotMatchException":throw await de_ImageDigestDoesNotMatchExceptionRes(n,t);case"ImageTagAlreadyExistsException":case"com.amazonaws.ecr#ImageTagAlreadyExistsException":throw await de_ImageTagAlreadyExistsExceptionRes(n,t);case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"KmsException":case"com.amazonaws.ecr#KmsException":throw await de_KmsExceptionRes(n,t);case"LayersNotFoundException":case"com.amazonaws.ecr#LayersNotFoundException":throw await de_LayersNotFoundExceptionRes(n,t);case"LimitExceededException":case"com.amazonaws.ecr#LimitExceededException":throw await de_LimitExceededExceptionRes(n,t);case"ReferencedImagesNotFoundException":case"com.amazonaws.ecr#ReferencedImagesNotFoundException":throw await de_ReferencedImagesNotFoundExceptionRes(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_PutImageScanningConfigurationCommand=async(e,t)=>{if(e.statusCode>=300){return de_PutImageScanningConfigurationCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=(0,r._json)(n);const s={$metadata:deserializeMetadata(e),...o};return s};t.de_PutImageScanningConfigurationCommand=de_PutImageScanningConfigurationCommand;const de_PutImageScanningConfigurationCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(n,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await de_ValidationExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_PutImageTagMutabilityCommand=async(e,t)=>{if(e.statusCode>=300){return de_PutImageTagMutabilityCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=(0,r._json)(n);const s={$metadata:deserializeMetadata(e),...o};return s};t.de_PutImageTagMutabilityCommand=de_PutImageTagMutabilityCommand;const de_PutImageTagMutabilityCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_PutLifecyclePolicyCommand=async(e,t)=>{if(e.statusCode>=300){return de_PutLifecyclePolicyCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=(0,r._json)(n);const s={$metadata:deserializeMetadata(e),...o};return s};t.de_PutLifecyclePolicyCommand=de_PutLifecyclePolicyCommand;const de_PutLifecyclePolicyCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_PutRegistryPolicyCommand=async(e,t)=>{if(e.statusCode>=300){return de_PutRegistryPolicyCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=(0,r._json)(n);const s={$metadata:deserializeMetadata(e),...o};return s};t.de_PutRegistryPolicyCommand=de_PutRegistryPolicyCommand;const de_PutRegistryPolicyCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(n,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await de_ValidationExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_PutRegistryScanningConfigurationCommand=async(e,t)=>{if(e.statusCode>=300){return de_PutRegistryScanningConfigurationCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=(0,r._json)(n);const s={$metadata:deserializeMetadata(e),...o};return s};t.de_PutRegistryScanningConfigurationCommand=de_PutRegistryScanningConfigurationCommand;const de_PutRegistryScanningConfigurationCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(n,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await de_ValidationExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_PutReplicationConfigurationCommand=async(e,t)=>{if(e.statusCode>=300){return de_PutReplicationConfigurationCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=(0,r._json)(n);const s={$metadata:deserializeMetadata(e),...o};return s};t.de_PutReplicationConfigurationCommand=de_PutReplicationConfigurationCommand;const de_PutReplicationConfigurationCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(n,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await de_ValidationExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_SetRepositoryPolicyCommand=async(e,t)=>{if(e.statusCode>=300){return de_SetRepositoryPolicyCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=(0,r._json)(n);const s={$metadata:deserializeMetadata(e),...o};return s};t.de_SetRepositoryPolicyCommand=de_SetRepositoryPolicyCommand;const de_SetRepositoryPolicyCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_StartImageScanCommand=async(e,t)=>{if(e.statusCode>=300){return de_StartImageScanCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=(0,r._json)(n);const s={$metadata:deserializeMetadata(e),...o};return s};t.de_StartImageScanCommand=de_StartImageScanCommand;const de_StartImageScanCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"ImageNotFoundException":case"com.amazonaws.ecr#ImageNotFoundException":throw await de_ImageNotFoundExceptionRes(n,t);case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"LimitExceededException":case"com.amazonaws.ecr#LimitExceededException":throw await de_LimitExceededExceptionRes(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(n,t);case"UnsupportedImageTypeException":case"com.amazonaws.ecr#UnsupportedImageTypeException":throw await de_UnsupportedImageTypeExceptionRes(n,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await de_ValidationExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_StartLifecyclePolicyPreviewCommand=async(e,t)=>{if(e.statusCode>=300){return de_StartLifecyclePolicyPreviewCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=(0,r._json)(n);const s={$metadata:deserializeMetadata(e),...o};return s};t.de_StartLifecyclePolicyPreviewCommand=de_StartLifecyclePolicyPreviewCommand;const de_StartLifecyclePolicyPreviewCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"LifecyclePolicyNotFoundException":case"com.amazonaws.ecr#LifecyclePolicyNotFoundException":throw await de_LifecyclePolicyNotFoundExceptionRes(n,t);case"LifecyclePolicyPreviewInProgressException":case"com.amazonaws.ecr#LifecyclePolicyPreviewInProgressException":throw await de_LifecyclePolicyPreviewInProgressExceptionRes(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_TagResourceCommand=async(e,t)=>{if(e.statusCode>=300){return de_TagResourceCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=(0,r._json)(n);const s={$metadata:deserializeMetadata(e),...o};return s};t.de_TagResourceCommand=de_TagResourceCommand;const de_TagResourceCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"InvalidTagParameterException":case"com.amazonaws.ecr#InvalidTagParameterException":throw await de_InvalidTagParameterExceptionRes(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(n,t);case"TooManyTagsException":case"com.amazonaws.ecr#TooManyTagsException":throw await de_TooManyTagsExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_UntagResourceCommand=async(e,t)=>{if(e.statusCode>=300){return de_UntagResourceCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=(0,r._json)(n);const s={$metadata:deserializeMetadata(e),...o};return s};t.de_UntagResourceCommand=de_UntagResourceCommand;const de_UntagResourceCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"InvalidTagParameterException":case"com.amazonaws.ecr#InvalidTagParameterException":throw await de_InvalidTagParameterExceptionRes(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(n,t);case"TooManyTagsException":case"com.amazonaws.ecr#TooManyTagsException":throw await de_TooManyTagsExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_UploadLayerPartCommand=async(e,t)=>{if(e.statusCode>=300){return de_UploadLayerPartCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=(0,r._json)(n);const s={$metadata:deserializeMetadata(e),...o};return s};t.de_UploadLayerPartCommand=de_UploadLayerPartCommand;const de_UploadLayerPartCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidLayerPartException":case"com.amazonaws.ecr#InvalidLayerPartException":throw await de_InvalidLayerPartExceptionRes(n,t);case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(n,t);case"KmsException":case"com.amazonaws.ecr#KmsException":throw await de_KmsExceptionRes(n,t);case"LimitExceededException":case"com.amazonaws.ecr#LimitExceededException":throw await de_LimitExceededExceptionRes(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(n,t);case"UploadNotFoundException":case"com.amazonaws.ecr#UploadNotFoundException":throw await de_UploadNotFoundExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_EmptyUploadExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.EmptyUploadException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_ImageAlreadyExistsExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.ImageAlreadyExistsException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_ImageDigestDoesNotMatchExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.ImageDigestDoesNotMatchException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_ImageNotFoundExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.ImageNotFoundException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_ImageTagAlreadyExistsExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.ImageTagAlreadyExistsException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_InvalidLayerExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.InvalidLayerException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_InvalidLayerPartExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.InvalidLayerPartException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_InvalidParameterExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.InvalidParameterException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_InvalidTagParameterExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.InvalidTagParameterException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_KmsExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.KmsException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_LayerAlreadyExistsExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.LayerAlreadyExistsException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_LayerInaccessibleExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.LayerInaccessibleException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_LayerPartTooSmallExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.LayerPartTooSmallException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_LayersNotFoundExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.LayersNotFoundException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_LifecyclePolicyNotFoundExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.LifecyclePolicyNotFoundException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_LifecyclePolicyPreviewInProgressExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.LifecyclePolicyPreviewInProgressException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_LifecyclePolicyPreviewNotFoundExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.LifecyclePolicyPreviewNotFoundException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_LimitExceededExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.LimitExceededException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_PullThroughCacheRuleAlreadyExistsExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.PullThroughCacheRuleAlreadyExistsException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_PullThroughCacheRuleNotFoundExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.PullThroughCacheRuleNotFoundException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_ReferencedImagesNotFoundExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.ReferencedImagesNotFoundException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_RegistryPolicyNotFoundExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.RegistryPolicyNotFoundException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_RepositoryAlreadyExistsExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.RepositoryAlreadyExistsException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_RepositoryNotEmptyExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.RepositoryNotEmptyException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_RepositoryNotFoundExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.RepositoryNotFoundException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_RepositoryPolicyNotFoundExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.RepositoryPolicyNotFoundException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_ScanNotFoundExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.ScanNotFoundException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_ServerExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.ServerException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_TooManyTagsExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.TooManyTagsException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_UnsupportedImageTypeExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.UnsupportedImageTypeException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_UnsupportedUpstreamRegistryExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.UnsupportedUpstreamRegistryException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_UploadNotFoundExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.UploadNotFoundException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_ValidationExceptionRes=async(e,t)=>{const n=e.body;const o=(0,r._json)(n);const s=new i.ValidationException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const se_UploadLayerPartRequest=(e,t)=>(0,r.take)(e,{layerPartBlob:t.base64Encoder,partFirstByte:[],partLastByte:[],registryId:[],repositoryName:[],uploadId:[]});const de_AuthorizationData=(e,t)=>(0,r.take)(e,{authorizationToken:r.expectString,expiresAt:e=>(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e))),proxyEndpoint:r.expectString});const de_AuthorizationDataList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>de_AuthorizationData(e,t)));return n};const de_AwsEcrContainerImageDetails=(e,t)=>(0,r.take)(e,{architecture:r.expectString,author:r.expectString,imageHash:r.expectString,imageTags:r._json,platform:r.expectString,pushedAt:e=>(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e))),registry:r.expectString,repositoryName:r.expectString});const de_CreatePullThroughCacheRuleResponse=(e,t)=>(0,r.take)(e,{createdAt:e=>(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e))),ecrRepositoryPrefix:r.expectString,registryId:r.expectString,upstreamRegistryUrl:r.expectString});const de_CreateRepositoryResponse=(e,t)=>(0,r.take)(e,{repository:e=>de_Repository(e,t)});const de_CvssScore=(e,t)=>(0,r.take)(e,{baseScore:r.limitedParseDouble,scoringVector:r.expectString,source:r.expectString,version:r.expectString});const de_CvssScoreDetails=(e,t)=>(0,r.take)(e,{adjustments:r._json,score:r.limitedParseDouble,scoreSource:r.expectString,scoringVector:r.expectString,version:r.expectString});const de_CvssScoreList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>de_CvssScore(e,t)));return n};const de_DeleteLifecyclePolicyResponse=(e,t)=>(0,r.take)(e,{lastEvaluatedAt:e=>(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e))),lifecyclePolicyText:r.expectString,registryId:r.expectString,repositoryName:r.expectString});const de_DeletePullThroughCacheRuleResponse=(e,t)=>(0,r.take)(e,{createdAt:e=>(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e))),ecrRepositoryPrefix:r.expectString,registryId:r.expectString,upstreamRegistryUrl:r.expectString});const de_DeleteRepositoryResponse=(e,t)=>(0,r.take)(e,{repository:e=>de_Repository(e,t)});const de_DescribeImageScanFindingsResponse=(e,t)=>(0,r.take)(e,{imageId:r._json,imageScanFindings:e=>de_ImageScanFindings(e,t),imageScanStatus:r._json,nextToken:r.expectString,registryId:r.expectString,repositoryName:r.expectString});const de_DescribeImagesResponse=(e,t)=>(0,r.take)(e,{imageDetails:e=>de_ImageDetailList(e,t),nextToken:r.expectString});const de_DescribePullThroughCacheRulesResponse=(e,t)=>(0,r.take)(e,{nextToken:r.expectString,pullThroughCacheRules:e=>de_PullThroughCacheRuleList(e,t)});const de_DescribeRepositoriesResponse=(e,t)=>(0,r.take)(e,{nextToken:r.expectString,repositories:e=>de_RepositoryList(e,t)});const de_EnhancedImageScanFinding=(e,t)=>(0,r.take)(e,{awsAccountId:r.expectString,description:r.expectString,findingArn:r.expectString,firstObservedAt:e=>(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e))),lastObservedAt:e=>(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e))),packageVulnerabilityDetails:e=>de_PackageVulnerabilityDetails(e,t),remediation:r._json,resources:e=>de_ResourceList(e,t),score:r.limitedParseDouble,scoreDetails:e=>de_ScoreDetails(e,t),severity:r.expectString,status:r.expectString,title:r.expectString,type:r.expectString,updatedAt:e=>(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e)))});const de_EnhancedImageScanFindingList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>de_EnhancedImageScanFinding(e,t)));return n};const de_GetAuthorizationTokenResponse=(e,t)=>(0,r.take)(e,{authorizationData:e=>de_AuthorizationDataList(e,t)});const de_GetLifecyclePolicyPreviewResponse=(e,t)=>(0,r.take)(e,{lifecyclePolicyText:r.expectString,nextToken:r.expectString,previewResults:e=>de_LifecyclePolicyPreviewResultList(e,t),registryId:r.expectString,repositoryName:r.expectString,status:r.expectString,summary:r._json});const de_GetLifecyclePolicyResponse=(e,t)=>(0,r.take)(e,{lastEvaluatedAt:e=>(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e))),lifecyclePolicyText:r.expectString,registryId:r.expectString,repositoryName:r.expectString});const de_ImageDetail=(e,t)=>(0,r.take)(e,{artifactMediaType:r.expectString,imageDigest:r.expectString,imageManifestMediaType:r.expectString,imagePushedAt:e=>(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e))),imageScanFindingsSummary:e=>de_ImageScanFindingsSummary(e,t),imageScanStatus:r._json,imageSizeInBytes:r.expectLong,imageTags:r._json,lastRecordedPullTime:e=>(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e))),registryId:r.expectString,repositoryName:r.expectString});const de_ImageDetailList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>de_ImageDetail(e,t)));return n};const de_ImageScanFindings=(e,t)=>(0,r.take)(e,{enhancedFindings:e=>de_EnhancedImageScanFindingList(e,t),findingSeverityCounts:r._json,findings:r._json,imageScanCompletedAt:e=>(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e))),vulnerabilitySourceUpdatedAt:e=>(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e)))});const de_ImageScanFindingsSummary=(e,t)=>(0,r.take)(e,{findingSeverityCounts:r._json,imageScanCompletedAt:e=>(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e))),vulnerabilitySourceUpdatedAt:e=>(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e)))});const de_LifecyclePolicyPreviewResult=(e,t)=>(0,r.take)(e,{action:r._json,appliedRulePriority:r.expectInt32,imageDigest:r.expectString,imagePushedAt:e=>(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e))),imageTags:r._json});const de_LifecyclePolicyPreviewResultList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>de_LifecyclePolicyPreviewResult(e,t)));return n};const de_PackageVulnerabilityDetails=(e,t)=>(0,r.take)(e,{cvss:e=>de_CvssScoreList(e,t),referenceUrls:r._json,relatedVulnerabilities:r._json,source:r.expectString,sourceUrl:r.expectString,vendorCreatedAt:e=>(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e))),vendorSeverity:r.expectString,vendorUpdatedAt:e=>(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e))),vulnerabilityId:r.expectString,vulnerablePackages:r._json});const de_PullThroughCacheRule=(e,t)=>(0,r.take)(e,{createdAt:e=>(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e))),ecrRepositoryPrefix:r.expectString,registryId:r.expectString,upstreamRegistryUrl:r.expectString});const de_PullThroughCacheRuleList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>de_PullThroughCacheRule(e,t)));return n};const de_Repository=(e,t)=>(0,r.take)(e,{createdAt:e=>(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e))),encryptionConfiguration:r._json,imageScanningConfiguration:r._json,imageTagMutability:r.expectString,registryId:r.expectString,repositoryArn:r.expectString,repositoryName:r.expectString,repositoryUri:r.expectString});const de_RepositoryList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>de_Repository(e,t)));return n};const de_Resource=(e,t)=>(0,r.take)(e,{details:e=>de_ResourceDetails(e,t),id:r.expectString,tags:r._json,type:r.expectString});const de_ResourceDetails=(e,t)=>(0,r.take)(e,{awsEcrContainerImage:e=>de_AwsEcrContainerImageDetails(e,t)});const de_ResourceList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>de_Resource(e,t)));return n};const de_ScoreDetails=(e,t)=>(0,r.take)(e,{cvss:e=>de_CvssScoreDetails(e,t)});const deserializeMetadata=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]});const collectBodyString=(e,t)=>(0,r.collectBody)(e,t).then((e=>t.utf8Encoder(e)));const a=(0,r.withBaseException)(s.ECRServiceException);const buildHttpRpcRequest=async(e,t,n,r,s)=>{const{hostname:i,protocol:a="https",port:c,path:d}=await e.endpoint();const u={protocol:a,hostname:i,port:c,method:"POST",path:d.endsWith("/")?d.slice(0,-1)+n:d+n,headers:t};if(r!==undefined){u.hostname=r}if(s!==undefined){u.body=s}return new o.HttpRequest(u)};function sharedHeaders(e){return{"content-type":"application/x-amz-json-1.1","x-amz-target":`AmazonEC2ContainerRegistry_V20150921.${e}`}}const parseBody=(e,t)=>collectBodyString(e,t).then((e=>{if(e.length){return JSON.parse(e)}return{}}));const parseErrorBody=async(e,t)=>{const n=await parseBody(e,t);n.message=n.message??n.Message;return n};const loadRestJsonErrorCode=(e,t)=>{const findKey=(e,t)=>Object.keys(e).find((e=>e.toLowerCase()===t.toLowerCase()));const sanitizeErrorCode=e=>{let t=e;if(typeof t==="number"){t=t.toString()}if(t.indexOf(",")>=0){t=t.split(",")[0]}if(t.indexOf(":")>=0){t=t.split(":")[0]}if(t.indexOf("#")>=0){t=t.split("#")[1]}return t};const n=findKey(e.headers,"x-amzn-errortype");if(n!==undefined){return sanitizeErrorCode(e.headers[n])}if(t.code!==undefined){return sanitizeErrorCode(t.code)}if(t["__type"]!==undefined){return sanitizeErrorCode(t["__type"])}}},869:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const o=n(4351);const r=o.__importDefault(n(4289));const s=n(52209);const i=n(75531);const a=n(98095);const c=n(53098);const d=n(3081);const u=n(96039);const l=n(33461);const p=n(20258);const m=n(68075);const f=n(84902);const y=n(70542);const g=n(63570);const h=n(72429);const E=n(63570);const getRuntimeConfig=e=>{(0,E.emitWarningIfUnsupportedVersion)(process.version);const t=(0,h.resolveDefaultsModeConfig)(e);const defaultConfigProvider=()=>t().then(g.loadConfigsForDefaultMode);const n=(0,y.getRuntimeConfig)(e);return{...n,...e,runtime:"node",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??m.calculateBodyLength,credentialDefaultProvider:e?.credentialDefaultProvider??(0,s.decorateDefaultCredentialProvider)(i.defaultProvider),defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,a.defaultUserAgent)({serviceId:n.serviceId,clientVersion:r.default.version}),maxAttempts:e?.maxAttempts??(0,l.loadConfig)(u.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:e?.region??(0,l.loadConfig)(c.NODE_REGION_CONFIG_OPTIONS,c.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:e?.requestHandler??new p.NodeHttpHandler(defaultConfigProvider),retryMode:e?.retryMode??(0,l.loadConfig)({...u.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await defaultConfigProvider()).retryMode||f.DEFAULT_RETRY_MODE}),sha256:e?.sha256??d.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??p.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,l.loadConfig)(c.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:e?.useFipsEndpoint??(0,l.loadConfig)(c.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)}};t.getRuntimeConfig=getRuntimeConfig},70542:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const o=n(63570);const r=n(14681);const s=n(75600);const i=n(41895);const a=n(61610);const getRuntimeConfig=e=>({apiVersion:"2015-09-21",base64Decoder:e?.base64Decoder??s.fromBase64,base64Encoder:e?.base64Encoder??s.toBase64,disableHostPrefix:e?.disableHostPrefix??false,endpointProvider:e?.endpointProvider??a.defaultEndpointResolver,logger:e?.logger??new o.NoOpLogger,serviceId:e?.serviceId??"ECR",urlParser:e?.urlParser??r.parseUrl,utf8Decoder:e?.utf8Decoder??i.fromUtf8,utf8Encoder:e?.utf8Encoder??i.toUtf8});t.getRuntimeConfig=getRuntimeConfig},28406:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(78547),t);o.__exportStar(n(45723),t)},78547:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.waitUntilImageScanComplete=t.waitForImageScanComplete=void 0;const o=n(78011);const r=n(72987);const checkState=async(e,t)=>{let n;try{const s=await e.send(new r.DescribeImageScanFindingsCommand(t));n=s;try{const returnComparator=()=>s.imageScanStatus.status;if(returnComparator()==="COMPLETE"){return{state:o.WaiterState.SUCCESS,reason:n}}}catch(e){}try{const returnComparator=()=>s.imageScanStatus.status;if(returnComparator()==="FAILED"){return{state:o.WaiterState.FAILURE,reason:n}}}catch(e){}}catch(e){n=e}return{state:o.WaiterState.RETRY,reason:n}};const waitForImageScanComplete=async(e,t)=>{const n={minDelay:5,maxDelay:120};return(0,o.createWaiter)({...n,...e},t,checkState)};t.waitForImageScanComplete=waitForImageScanComplete;const waitUntilImageScanComplete=async(e,t)=>{const n={minDelay:5,maxDelay:120};const r=await(0,o.createWaiter)({...n,...e},t,checkState);return(0,o.checkExceptions)(r)};t.waitUntilImageScanComplete=waitUntilImageScanComplete},45723:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.waitUntilLifecyclePolicyPreviewComplete=t.waitForLifecyclePolicyPreviewComplete=void 0;const o=n(78011);const r=n(17006);const checkState=async(e,t)=>{let n;try{const s=await e.send(new r.GetLifecyclePolicyPreviewCommand(t));n=s;try{const returnComparator=()=>s.status;if(returnComparator()==="COMPLETE"){return{state:o.WaiterState.SUCCESS,reason:n}}}catch(e){}try{const returnComparator=()=>s.status;if(returnComparator()==="FAILED"){return{state:o.WaiterState.FAILURE,reason:n}}}catch(e){}}catch(e){n=e}return{state:o.WaiterState.RETRY,reason:n}};const waitForLifecyclePolicyPreviewComplete=async(e,t)=>{const n={minDelay:5,maxDelay:120};return(0,o.createWaiter)({...n,...e},t,checkState)};t.waitForLifecyclePolicyPreviewComplete=waitForLifecyclePolicyPreviewComplete;const waitUntilLifecyclePolicyPreviewComplete=async(e,t)=>{const n={minDelay:5,maxDelay:120};const r=await(0,o.createWaiter)({...n,...e},t,checkState);return(0,o.checkExceptions)(r)};t.waitUntilLifecyclePolicyPreviewComplete=waitUntilLifecyclePolicyPreviewComplete},17124:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SSOOIDC=void 0;const o=n(63570);const r=n(62853);const s=n(36677);const i=n(38359);const a=n(70139);const c={CreateTokenCommand:r.CreateTokenCommand,RegisterClientCommand:s.RegisterClientCommand,StartDeviceAuthorizationCommand:i.StartDeviceAuthorizationCommand};class SSOOIDC extends a.SSOOIDCClient{}t.SSOOIDC=SSOOIDC;(0,o.createAggregatedClient)(c,SSOOIDC)},70139:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SSOOIDCClient=t.__Client=void 0;const o=n(22545);const r=n(20014);const s=n(85525);const i=n(64688);const a=n(53098);const c=n(82800);const d=n(82918);const u=n(96039);const l=n(63570);Object.defineProperty(t,"__Client",{enumerable:true,get:function(){return l.Client}});const p=n(61426);const m=n(25524);class SSOOIDCClient extends l.Client{constructor(e){const t=(0,m.getRuntimeConfig)(e);const n=(0,p.resolveClientEndpointParameters)(t);const l=(0,a.resolveRegionConfig)(n);const f=(0,d.resolveEndpointConfig)(l);const y=(0,u.resolveRetryConfig)(f);const g=(0,o.resolveHostHeaderConfig)(y);const h=(0,i.resolveUserAgentConfig)(g);super(h);this.config=h;this.middlewareStack.use((0,u.getRetryPlugin)(this.config));this.middlewareStack.use((0,c.getContentLengthPlugin)(this.config));this.middlewareStack.use((0,o.getHostHeaderPlugin)(this.config));this.middlewareStack.use((0,r.getLoggerPlugin)(this.config));this.middlewareStack.use((0,s.getRecursionDetectionPlugin)(this.config));this.middlewareStack.use((0,i.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}}t.SSOOIDCClient=SSOOIDCClient},62853:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CreateTokenCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(21518);class CreateTokenCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,CreateTokenCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="SSOOIDCClient";const c="CreateTokenCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_CreateTokenCommand)(e,t)}deserialize(e,t){return(0,i.de_CreateTokenCommand)(e,t)}}t.CreateTokenCommand=CreateTokenCommand},36677:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RegisterClientCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(21518);class RegisterClientCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,RegisterClientCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="SSOOIDCClient";const c="RegisterClientCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_RegisterClientCommand)(e,t)}deserialize(e,t){return(0,i.de_RegisterClientCommand)(e,t)}}t.RegisterClientCommand=RegisterClientCommand},38359:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StartDeviceAuthorizationCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(21518);class StartDeviceAuthorizationCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,StartDeviceAuthorizationCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const a="SSOOIDCClient";const c="StartDeviceAuthorizationCommand";const d={logger:i,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,n||{})),d)}serialize(e,t){return(0,i.se_StartDeviceAuthorizationCommand)(e,t)}deserialize(e,t){return(0,i.de_StartDeviceAuthorizationCommand)(e,t)}}t.StartDeviceAuthorizationCommand=StartDeviceAuthorizationCommand},50447:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(62853),t);o.__exportStar(n(36677),t);o.__exportStar(n(38359),t)},61426:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveClientEndpointParameters=void 0;const resolveClientEndpointParameters=e=>({...e,useDualstackEndpoint:e.useDualstackEndpoint??false,useFipsEndpoint:e.useFipsEndpoint??false,defaultSigningName:"awsssooidc"});t.resolveClientEndpointParameters=resolveClientEndpointParameters},97604:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultEndpointResolver=void 0;const o=n(13350);const r=n(51756);const defaultEndpointResolver=(e,t={})=>(0,o.resolveEndpoint)(r.ruleSet,{endpointParams:e,logger:t.logger});t.defaultEndpointResolver=defaultEndpointResolver},51756:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ruleSet=void 0;const n="required",o="fn",r="argv",s="ref";const i="PartitionResult",a="tree",c="error",d="endpoint",u={[n]:false,type:"String"},l={[n]:true,default:false,type:"Boolean"},p={[s]:"Endpoint"},m={[o]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]},f={[o]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]},y={},g={[o]:"booleanEquals",[r]:[true,{[o]:"getAttr",[r]:[{[s]:i},"supportsFIPS"]}]},h={[o]:"booleanEquals",[r]:[true,{[o]:"getAttr",[r]:[{[s]:i},"supportsDualStack"]}]},E=[p],_=[m],v=[f];const S={version:"1.0",parameters:{Region:u,UseDualStack:l,UseFIPS:l,Endpoint:u},rules:[{conditions:[{[o]:"aws.partition",[r]:[{[s]:"Region"}],assign:i}],type:a,rules:[{conditions:[{[o]:"isSet",[r]:E},{[o]:"parseURL",[r]:E,assign:"url"}],type:a,rules:[{conditions:_,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:a,rules:[{conditions:v,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:p,properties:y,headers:y},type:d}]}]},{conditions:[m,f],type:a,rules:[{conditions:[g,h],type:a,rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:y,headers:y},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:_,type:a,rules:[{conditions:[g],type:a,rules:[{type:a,rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",properties:y,headers:y},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:v,type:a,rules:[{conditions:[h],type:a,rules:[{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:y,headers:y},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dnsSuffix}",properties:y,headers:y},type:d}]}]};t.ruleSet=S},54527:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SSOOIDCServiceException=void 0;const o=n(4351);o.__exportStar(n(70139),t);o.__exportStar(n(17124),t);o.__exportStar(n(50447),t);o.__exportStar(n(35973),t);var r=n(43026);Object.defineProperty(t,"SSOOIDCServiceException",{enumerable:true,get:function(){return r.SSOOIDCServiceException}})},43026:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SSOOIDCServiceException=t.__ServiceException=void 0;const o=n(63570);Object.defineProperty(t,"__ServiceException",{enumerable:true,get:function(){return o.ServiceException}});class SSOOIDCServiceException extends o.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,SSOOIDCServiceException.prototype)}}t.SSOOIDCServiceException=SSOOIDCServiceException},35973:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(69374),t)},69374:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.InvalidClientMetadataException=t.UnsupportedGrantTypeException=t.UnauthorizedClientException=t.SlowDownException=t.InvalidScopeException=t.InvalidRequestException=t.InvalidGrantException=t.InvalidClientException=t.InternalServerException=t.ExpiredTokenException=t.AuthorizationPendingException=t.AccessDeniedException=void 0;const o=n(43026);class AccessDeniedException extends o.SSOOIDCServiceException{constructor(e){super({name:"AccessDeniedException",$fault:"client",...e});this.name="AccessDeniedException";this.$fault="client";Object.setPrototypeOf(this,AccessDeniedException.prototype);this.error=e.error;this.error_description=e.error_description}}t.AccessDeniedException=AccessDeniedException;class AuthorizationPendingException extends o.SSOOIDCServiceException{constructor(e){super({name:"AuthorizationPendingException",$fault:"client",...e});this.name="AuthorizationPendingException";this.$fault="client";Object.setPrototypeOf(this,AuthorizationPendingException.prototype);this.error=e.error;this.error_description=e.error_description}}t.AuthorizationPendingException=AuthorizationPendingException;class ExpiredTokenException extends o.SSOOIDCServiceException{constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e});this.name="ExpiredTokenException";this.$fault="client";Object.setPrototypeOf(this,ExpiredTokenException.prototype);this.error=e.error;this.error_description=e.error_description}}t.ExpiredTokenException=ExpiredTokenException;class InternalServerException extends o.SSOOIDCServiceException{constructor(e){super({name:"InternalServerException",$fault:"server",...e});this.name="InternalServerException";this.$fault="server";Object.setPrototypeOf(this,InternalServerException.prototype);this.error=e.error;this.error_description=e.error_description}}t.InternalServerException=InternalServerException;class InvalidClientException extends o.SSOOIDCServiceException{constructor(e){super({name:"InvalidClientException",$fault:"client",...e});this.name="InvalidClientException";this.$fault="client";Object.setPrototypeOf(this,InvalidClientException.prototype);this.error=e.error;this.error_description=e.error_description}}t.InvalidClientException=InvalidClientException;class InvalidGrantException extends o.SSOOIDCServiceException{constructor(e){super({name:"InvalidGrantException",$fault:"client",...e});this.name="InvalidGrantException";this.$fault="client";Object.setPrototypeOf(this,InvalidGrantException.prototype);this.error=e.error;this.error_description=e.error_description}}t.InvalidGrantException=InvalidGrantException;class InvalidRequestException extends o.SSOOIDCServiceException{constructor(e){super({name:"InvalidRequestException",$fault:"client",...e});this.name="InvalidRequestException";this.$fault="client";Object.setPrototypeOf(this,InvalidRequestException.prototype);this.error=e.error;this.error_description=e.error_description}}t.InvalidRequestException=InvalidRequestException;class InvalidScopeException extends o.SSOOIDCServiceException{constructor(e){super({name:"InvalidScopeException",$fault:"client",...e});this.name="InvalidScopeException";this.$fault="client";Object.setPrototypeOf(this,InvalidScopeException.prototype);this.error=e.error;this.error_description=e.error_description}}t.InvalidScopeException=InvalidScopeException;class SlowDownException extends o.SSOOIDCServiceException{constructor(e){super({name:"SlowDownException",$fault:"client",...e});this.name="SlowDownException";this.$fault="client";Object.setPrototypeOf(this,SlowDownException.prototype);this.error=e.error;this.error_description=e.error_description}}t.SlowDownException=SlowDownException;class UnauthorizedClientException extends o.SSOOIDCServiceException{constructor(e){super({name:"UnauthorizedClientException",$fault:"client",...e});this.name="UnauthorizedClientException";this.$fault="client";Object.setPrototypeOf(this,UnauthorizedClientException.prototype);this.error=e.error;this.error_description=e.error_description}}t.UnauthorizedClientException=UnauthorizedClientException;class UnsupportedGrantTypeException extends o.SSOOIDCServiceException{constructor(e){super({name:"UnsupportedGrantTypeException",$fault:"client",...e});this.name="UnsupportedGrantTypeException";this.$fault="client";Object.setPrototypeOf(this,UnsupportedGrantTypeException.prototype);this.error=e.error;this.error_description=e.error_description}}t.UnsupportedGrantTypeException=UnsupportedGrantTypeException;class InvalidClientMetadataException extends o.SSOOIDCServiceException{constructor(e){super({name:"InvalidClientMetadataException",$fault:"client",...e});this.name="InvalidClientMetadataException";this.$fault="client";Object.setPrototypeOf(this,InvalidClientMetadataException.prototype);this.error=e.error;this.error_description=e.error_description}}t.InvalidClientMetadataException=InvalidClientMetadataException},21518:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.de_StartDeviceAuthorizationCommand=t.de_RegisterClientCommand=t.de_CreateTokenCommand=t.se_StartDeviceAuthorizationCommand=t.se_RegisterClientCommand=t.se_CreateTokenCommand=void 0;const o=n(64418);const r=n(63570);const s=n(69374);const i=n(43026);const se_CreateTokenCommand=async(e,t)=>{const{hostname:n,protocol:s="https",port:i,path:a}=await t.endpoint();const c={"content-type":"application/json"};const d=`${a?.endsWith("/")?a.slice(0,-1):a||""}`+"/token";let u;u=JSON.stringify((0,r.take)(e,{clientId:[],clientSecret:[],code:[],deviceCode:[],grantType:[],redirectUri:[],refreshToken:[],scope:e=>(0,r._json)(e)}));return new o.HttpRequest({protocol:s,hostname:n,port:i,method:"POST",headers:c,path:d,body:u})};t.se_CreateTokenCommand=se_CreateTokenCommand;const se_RegisterClientCommand=async(e,t)=>{const{hostname:n,protocol:s="https",port:i,path:a}=await t.endpoint();const c={"content-type":"application/json"};const d=`${a?.endsWith("/")?a.slice(0,-1):a||""}`+"/client/register";let u;u=JSON.stringify((0,r.take)(e,{clientName:[],clientType:[],scopes:e=>(0,r._json)(e)}));return new o.HttpRequest({protocol:s,hostname:n,port:i,method:"POST",headers:c,path:d,body:u})};t.se_RegisterClientCommand=se_RegisterClientCommand;const se_StartDeviceAuthorizationCommand=async(e,t)=>{const{hostname:n,protocol:s="https",port:i,path:a}=await t.endpoint();const c={"content-type":"application/json"};const d=`${a?.endsWith("/")?a.slice(0,-1):a||""}`+"/device_authorization";let u;u=JSON.stringify((0,r.take)(e,{clientId:[],clientSecret:[],startUrl:[]}));return new o.HttpRequest({protocol:s,hostname:n,port:i,method:"POST",headers:c,path:d,body:u})};t.se_StartDeviceAuthorizationCommand=se_StartDeviceAuthorizationCommand;const de_CreateTokenCommand=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300){return de_CreateTokenCommandError(e,t)}const n=(0,r.map)({$metadata:deserializeMetadata(e)});const o=(0,r.expectNonNull)((0,r.expectObject)(await parseBody(e.body,t)),"body");const s=(0,r.take)(o,{accessToken:r.expectString,expiresIn:r.expectInt32,idToken:r.expectString,refreshToken:r.expectString,tokenType:r.expectString});Object.assign(n,s);return n};t.de_CreateTokenCommand=de_CreateTokenCommand;const de_CreateTokenCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"AccessDeniedException":case"com.amazonaws.ssooidc#AccessDeniedException":throw await de_AccessDeniedExceptionRes(n,t);case"AuthorizationPendingException":case"com.amazonaws.ssooidc#AuthorizationPendingException":throw await de_AuthorizationPendingExceptionRes(n,t);case"ExpiredTokenException":case"com.amazonaws.ssooidc#ExpiredTokenException":throw await de_ExpiredTokenExceptionRes(n,t);case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await de_InternalServerExceptionRes(n,t);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await de_InvalidClientExceptionRes(n,t);case"InvalidGrantException":case"com.amazonaws.ssooidc#InvalidGrantException":throw await de_InvalidGrantExceptionRes(n,t);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await de_InvalidRequestExceptionRes(n,t);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await de_InvalidScopeExceptionRes(n,t);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await de_SlowDownExceptionRes(n,t);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await de_UnauthorizedClientExceptionRes(n,t);case"UnsupportedGrantTypeException":case"com.amazonaws.ssooidc#UnsupportedGrantTypeException":throw await de_UnsupportedGrantTypeExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_RegisterClientCommand=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300){return de_RegisterClientCommandError(e,t)}const n=(0,r.map)({$metadata:deserializeMetadata(e)});const o=(0,r.expectNonNull)((0,r.expectObject)(await parseBody(e.body,t)),"body");const s=(0,r.take)(o,{authorizationEndpoint:r.expectString,clientId:r.expectString,clientIdIssuedAt:r.expectLong,clientSecret:r.expectString,clientSecretExpiresAt:r.expectLong,tokenEndpoint:r.expectString});Object.assign(n,s);return n};t.de_RegisterClientCommand=de_RegisterClientCommand;const de_RegisterClientCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await de_InternalServerExceptionRes(n,t);case"InvalidClientMetadataException":case"com.amazonaws.ssooidc#InvalidClientMetadataException":throw await de_InvalidClientMetadataExceptionRes(n,t);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await de_InvalidRequestExceptionRes(n,t);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await de_InvalidScopeExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_StartDeviceAuthorizationCommand=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300){return de_StartDeviceAuthorizationCommandError(e,t)}const n=(0,r.map)({$metadata:deserializeMetadata(e)});const o=(0,r.expectNonNull)((0,r.expectObject)(await parseBody(e.body,t)),"body");const s=(0,r.take)(o,{deviceCode:r.expectString,expiresIn:r.expectInt32,interval:r.expectInt32,userCode:r.expectString,verificationUri:r.expectString,verificationUriComplete:r.expectString});Object.assign(n,s);return n};t.de_StartDeviceAuthorizationCommand=de_StartDeviceAuthorizationCommand;const de_StartDeviceAuthorizationCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await de_InternalServerExceptionRes(n,t);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await de_InvalidClientExceptionRes(n,t);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await de_InvalidRequestExceptionRes(n,t);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await de_SlowDownExceptionRes(n,t);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await de_UnauthorizedClientExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const a=(0,r.withBaseException)(i.SSOOIDCServiceException);const de_AccessDeniedExceptionRes=async(e,t)=>{const n=(0,r.map)({});const o=e.body;const i=(0,r.take)(o,{error:r.expectString,error_description:r.expectString});Object.assign(n,i);const a=new s.AccessDeniedException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(a,e.body)};const de_AuthorizationPendingExceptionRes=async(e,t)=>{const n=(0,r.map)({});const o=e.body;const i=(0,r.take)(o,{error:r.expectString,error_description:r.expectString});Object.assign(n,i);const a=new s.AuthorizationPendingException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(a,e.body)};const de_ExpiredTokenExceptionRes=async(e,t)=>{const n=(0,r.map)({});const o=e.body;const i=(0,r.take)(o,{error:r.expectString,error_description:r.expectString});Object.assign(n,i);const a=new s.ExpiredTokenException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(a,e.body)};const de_InternalServerExceptionRes=async(e,t)=>{const n=(0,r.map)({});const o=e.body;const i=(0,r.take)(o,{error:r.expectString,error_description:r.expectString});Object.assign(n,i);const a=new s.InternalServerException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(a,e.body)};const de_InvalidClientExceptionRes=async(e,t)=>{const n=(0,r.map)({});const o=e.body;const i=(0,r.take)(o,{error:r.expectString,error_description:r.expectString});Object.assign(n,i);const a=new s.InvalidClientException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(a,e.body)};const de_InvalidClientMetadataExceptionRes=async(e,t)=>{const n=(0,r.map)({});const o=e.body;const i=(0,r.take)(o,{error:r.expectString,error_description:r.expectString});Object.assign(n,i);const a=new s.InvalidClientMetadataException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(a,e.body)};const de_InvalidGrantExceptionRes=async(e,t)=>{const n=(0,r.map)({});const o=e.body;const i=(0,r.take)(o,{error:r.expectString,error_description:r.expectString});Object.assign(n,i);const a=new s.InvalidGrantException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(a,e.body)};const de_InvalidRequestExceptionRes=async(e,t)=>{const n=(0,r.map)({});const o=e.body;const i=(0,r.take)(o,{error:r.expectString,error_description:r.expectString});Object.assign(n,i);const a=new s.InvalidRequestException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(a,e.body)};const de_InvalidScopeExceptionRes=async(e,t)=>{const n=(0,r.map)({});const o=e.body;const i=(0,r.take)(o,{error:r.expectString,error_description:r.expectString});Object.assign(n,i);const a=new s.InvalidScopeException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(a,e.body)};const de_SlowDownExceptionRes=async(e,t)=>{const n=(0,r.map)({});const o=e.body;const i=(0,r.take)(o,{error:r.expectString,error_description:r.expectString});Object.assign(n,i);const a=new s.SlowDownException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(a,e.body)};const de_UnauthorizedClientExceptionRes=async(e,t)=>{const n=(0,r.map)({});const o=e.body;const i=(0,r.take)(o,{error:r.expectString,error_description:r.expectString});Object.assign(n,i);const a=new s.UnauthorizedClientException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(a,e.body)};const de_UnsupportedGrantTypeExceptionRes=async(e,t)=>{const n=(0,r.map)({});const o=e.body;const i=(0,r.take)(o,{error:r.expectString,error_description:r.expectString});Object.assign(n,i);const a=new s.UnsupportedGrantTypeException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(a,e.body)};const deserializeMetadata=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]});const collectBodyString=(e,t)=>(0,r.collectBody)(e,t).then((e=>t.utf8Encoder(e)));const isSerializableHeaderValue=e=>e!==undefined&&e!==null&&e!==""&&(!Object.getOwnPropertyNames(e).includes("length")||e.length!=0)&&(!Object.getOwnPropertyNames(e).includes("size")||e.size!=0);const parseBody=(e,t)=>collectBodyString(e,t).then((e=>{if(e.length){return JSON.parse(e)}return{}}));const parseErrorBody=async(e,t)=>{const n=await parseBody(e,t);n.message=n.message??n.Message;return n};const loadRestJsonErrorCode=(e,t)=>{const findKey=(e,t)=>Object.keys(e).find((e=>e.toLowerCase()===t.toLowerCase()));const sanitizeErrorCode=e=>{let t=e;if(typeof t==="number"){t=t.toString()}if(t.indexOf(",")>=0){t=t.split(",")[0]}if(t.indexOf(":")>=0){t=t.split(":")[0]}if(t.indexOf("#")>=0){t=t.split("#")[1]}return t};const n=findKey(e.headers,"x-amzn-errortype");if(n!==undefined){return sanitizeErrorCode(e.headers[n])}if(t.code!==undefined){return sanitizeErrorCode(t.code)}if(t["__type"]!==undefined){return sanitizeErrorCode(t["__type"])}}},25524:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const o=n(4351);const r=o.__importDefault(n(69722));const s=n(98095);const i=n(53098);const a=n(3081);const c=n(96039);const d=n(33461);const u=n(20258);const l=n(68075);const p=n(84902);const m=n(68005);const f=n(63570);const y=n(72429);const g=n(63570);const getRuntimeConfig=e=>{(0,g.emitWarningIfUnsupportedVersion)(process.version);const t=(0,y.resolveDefaultsModeConfig)(e);const defaultConfigProvider=()=>t().then(f.loadConfigsForDefaultMode);const n=(0,m.getRuntimeConfig)(e);return{...n,...e,runtime:"node",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??l.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,s.defaultUserAgent)({serviceId:n.serviceId,clientVersion:r.default.version}),maxAttempts:e?.maxAttempts??(0,d.loadConfig)(c.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:e?.region??(0,d.loadConfig)(i.NODE_REGION_CONFIG_OPTIONS,i.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:e?.requestHandler??new u.NodeHttpHandler(defaultConfigProvider),retryMode:e?.retryMode??(0,d.loadConfig)({...c.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await defaultConfigProvider()).retryMode||p.DEFAULT_RETRY_MODE}),sha256:e?.sha256??a.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??u.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,d.loadConfig)(i.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:e?.useFipsEndpoint??(0,d.loadConfig)(i.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)}};t.getRuntimeConfig=getRuntimeConfig},68005:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const o=n(63570);const r=n(14681);const s=n(75600);const i=n(41895);const a=n(97604);const getRuntimeConfig=e=>({apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??s.fromBase64,base64Encoder:e?.base64Encoder??s.toBase64,disableHostPrefix:e?.disableHostPrefix??false,endpointProvider:e?.endpointProvider??a.defaultEndpointResolver,logger:e?.logger??new o.NoOpLogger,serviceId:e?.serviceId??"SSO OIDC",urlParser:e?.urlParser??r.parseUrl,utf8Decoder:e?.utf8Decoder??i.fromUtf8,utf8Encoder:e?.utf8Encoder??i.toUtf8});t.getRuntimeConfig=getRuntimeConfig},69838:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SSO=void 0;const o=n(63570);const r=n(18972);const s=n(1513);const i=n(64296);const a=n(12586);const c=n(71057);const d={GetRoleCredentialsCommand:r.GetRoleCredentialsCommand,ListAccountRolesCommand:s.ListAccountRolesCommand,ListAccountsCommand:i.ListAccountsCommand,LogoutCommand:a.LogoutCommand};class SSO extends c.SSOClient{}t.SSO=SSO;(0,o.createAggregatedClient)(d,SSO)},71057:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SSOClient=t.__Client=void 0;const o=n(22545);const r=n(20014);const s=n(85525);const i=n(64688);const a=n(53098);const c=n(82800);const d=n(82918);const u=n(96039);const l=n(63570);Object.defineProperty(t,"__Client",{enumerable:true,get:function(){return l.Client}});const p=n(34214);const m=n(19756);class SSOClient extends l.Client{constructor(e){const t=(0,m.getRuntimeConfig)(e);const n=(0,p.resolveClientEndpointParameters)(t);const l=(0,a.resolveRegionConfig)(n);const f=(0,d.resolveEndpointConfig)(l);const y=(0,u.resolveRetryConfig)(f);const g=(0,o.resolveHostHeaderConfig)(y);const h=(0,i.resolveUserAgentConfig)(g);super(h);this.config=h;this.middlewareStack.use((0,u.getRetryPlugin)(this.config));this.middlewareStack.use((0,c.getContentLengthPlugin)(this.config));this.middlewareStack.use((0,o.getHostHeaderPlugin)(this.config));this.middlewareStack.use((0,r.getLoggerPlugin)(this.config));this.middlewareStack.use((0,s.getRecursionDetectionPlugin)(this.config));this.middlewareStack.use((0,i.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}}t.SSOClient=SSOClient},18972:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetRoleCredentialsCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(66390);const a=n(98507);class GetRoleCredentialsCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,GetRoleCredentialsCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="SSOClient";const d="GetRoleCredentialsCommand";const u={logger:a,clientName:c,commandName:d,inputFilterSensitiveLog:i.GetRoleCredentialsRequestFilterSensitiveLog,outputFilterSensitiveLog:i.GetRoleCredentialsResponseFilterSensitiveLog};const{requestHandler:l}=t;return s.resolve((e=>l.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.se_GetRoleCredentialsCommand)(e,t)}deserialize(e,t){return(0,a.de_GetRoleCredentialsCommand)(e,t)}}t.GetRoleCredentialsCommand=GetRoleCredentialsCommand},1513:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ListAccountRolesCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(66390);const a=n(98507);class ListAccountRolesCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,ListAccountRolesCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="SSOClient";const d="ListAccountRolesCommand";const u={logger:a,clientName:c,commandName:d,inputFilterSensitiveLog:i.ListAccountRolesRequestFilterSensitiveLog,outputFilterSensitiveLog:e=>e};const{requestHandler:l}=t;return s.resolve((e=>l.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.se_ListAccountRolesCommand)(e,t)}deserialize(e,t){return(0,a.de_ListAccountRolesCommand)(e,t)}}t.ListAccountRolesCommand=ListAccountRolesCommand},64296:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ListAccountsCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(66390);const a=n(98507);class ListAccountsCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,ListAccountsCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="SSOClient";const d="ListAccountsCommand";const u={logger:a,clientName:c,commandName:d,inputFilterSensitiveLog:i.ListAccountsRequestFilterSensitiveLog,outputFilterSensitiveLog:e=>e};const{requestHandler:l}=t;return s.resolve((e=>l.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.se_ListAccountsCommand)(e,t)}deserialize(e,t){return(0,a.de_ListAccountsCommand)(e,t)}}t.ListAccountsCommand=ListAccountsCommand},12586:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.LogoutCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(66390);const a=n(98507);class LogoutCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,LogoutCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="SSOClient";const d="LogoutCommand";const u={logger:a,clientName:c,commandName:d,inputFilterSensitiveLog:i.LogoutRequestFilterSensitiveLog,outputFilterSensitiveLog:e=>e};const{requestHandler:l}=t;return s.resolve((e=>l.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.se_LogoutCommand)(e,t)}deserialize(e,t){return(0,a.de_LogoutCommand)(e,t)}}t.LogoutCommand=LogoutCommand},65706:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(18972),t);o.__exportStar(n(1513),t);o.__exportStar(n(64296),t);o.__exportStar(n(12586),t)},34214:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveClientEndpointParameters=void 0;const resolveClientEndpointParameters=e=>({...e,useDualstackEndpoint:e.useDualstackEndpoint??false,useFipsEndpoint:e.useFipsEndpoint??false,defaultSigningName:"awsssoportal"});t.resolveClientEndpointParameters=resolveClientEndpointParameters},30898:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultEndpointResolver=void 0;const o=n(13350);const r=n(13341);const defaultEndpointResolver=(e,t={})=>(0,o.resolveEndpoint)(r.ruleSet,{endpointParams:e,logger:t.logger});t.defaultEndpointResolver=defaultEndpointResolver},13341:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ruleSet=void 0;const n="required",o="fn",r="argv",s="ref";const i="PartitionResult",a="tree",c="error",d="endpoint",u={[n]:false,type:"String"},l={[n]:true,default:false,type:"Boolean"},p={[s]:"Endpoint"},m={[o]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]},f={[o]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]},y={},g={[o]:"booleanEquals",[r]:[true,{[o]:"getAttr",[r]:[{[s]:i},"supportsFIPS"]}]},h={[o]:"booleanEquals",[r]:[true,{[o]:"getAttr",[r]:[{[s]:i},"supportsDualStack"]}]},E=[p],_=[m],v=[f];const S={version:"1.0",parameters:{Region:u,UseDualStack:l,UseFIPS:l,Endpoint:u},rules:[{conditions:[{[o]:"aws.partition",[r]:[{[s]:"Region"}],assign:i}],type:a,rules:[{conditions:[{[o]:"isSet",[r]:E},{[o]:"parseURL",[r]:E,assign:"url"}],type:a,rules:[{conditions:_,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:a,rules:[{conditions:v,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:p,properties:y,headers:y},type:d}]}]},{conditions:[m,f],type:a,rules:[{conditions:[g,h],type:a,rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:y,headers:y},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:_,type:a,rules:[{conditions:[g],type:a,rules:[{type:a,rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",properties:y,headers:y},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:v,type:a,rules:[{conditions:[h],type:a,rules:[{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:y,headers:y},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",properties:y,headers:y},type:d}]}]};t.ruleSet=S},82666:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SSOServiceException=void 0;const o=n(4351);o.__exportStar(n(71057),t);o.__exportStar(n(69838),t);o.__exportStar(n(65706),t);o.__exportStar(n(36773),t);o.__exportStar(n(14952),t);var r=n(81517);Object.defineProperty(t,"SSOServiceException",{enumerable:true,get:function(){return r.SSOServiceException}})},81517:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SSOServiceException=t.__ServiceException=void 0;const o=n(63570);Object.defineProperty(t,"__ServiceException",{enumerable:true,get:function(){return o.ServiceException}});class SSOServiceException extends o.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,SSOServiceException.prototype)}}t.SSOServiceException=SSOServiceException},14952:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(66390),t)},66390:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.LogoutRequestFilterSensitiveLog=t.ListAccountsRequestFilterSensitiveLog=t.ListAccountRolesRequestFilterSensitiveLog=t.GetRoleCredentialsResponseFilterSensitiveLog=t.RoleCredentialsFilterSensitiveLog=t.GetRoleCredentialsRequestFilterSensitiveLog=t.UnauthorizedException=t.TooManyRequestsException=t.ResourceNotFoundException=t.InvalidRequestException=void 0;const o=n(63570);const r=n(81517);class InvalidRequestException extends r.SSOServiceException{constructor(e){super({name:"InvalidRequestException",$fault:"client",...e});this.name="InvalidRequestException";this.$fault="client";Object.setPrototypeOf(this,InvalidRequestException.prototype)}}t.InvalidRequestException=InvalidRequestException;class ResourceNotFoundException extends r.SSOServiceException{constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e});this.name="ResourceNotFoundException";this.$fault="client";Object.setPrototypeOf(this,ResourceNotFoundException.prototype)}}t.ResourceNotFoundException=ResourceNotFoundException;class TooManyRequestsException extends r.SSOServiceException{constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e});this.name="TooManyRequestsException";this.$fault="client";Object.setPrototypeOf(this,TooManyRequestsException.prototype)}}t.TooManyRequestsException=TooManyRequestsException;class UnauthorizedException extends r.SSOServiceException{constructor(e){super({name:"UnauthorizedException",$fault:"client",...e});this.name="UnauthorizedException";this.$fault="client";Object.setPrototypeOf(this,UnauthorizedException.prototype)}}t.UnauthorizedException=UnauthorizedException;const GetRoleCredentialsRequestFilterSensitiveLog=e=>({...e,...e.accessToken&&{accessToken:o.SENSITIVE_STRING}});t.GetRoleCredentialsRequestFilterSensitiveLog=GetRoleCredentialsRequestFilterSensitiveLog;const RoleCredentialsFilterSensitiveLog=e=>({...e,...e.secretAccessKey&&{secretAccessKey:o.SENSITIVE_STRING},...e.sessionToken&&{sessionToken:o.SENSITIVE_STRING}});t.RoleCredentialsFilterSensitiveLog=RoleCredentialsFilterSensitiveLog;const GetRoleCredentialsResponseFilterSensitiveLog=e=>({...e,...e.roleCredentials&&{roleCredentials:(0,t.RoleCredentialsFilterSensitiveLog)(e.roleCredentials)}});t.GetRoleCredentialsResponseFilterSensitiveLog=GetRoleCredentialsResponseFilterSensitiveLog;const ListAccountRolesRequestFilterSensitiveLog=e=>({...e,...e.accessToken&&{accessToken:o.SENSITIVE_STRING}});t.ListAccountRolesRequestFilterSensitiveLog=ListAccountRolesRequestFilterSensitiveLog;const ListAccountsRequestFilterSensitiveLog=e=>({...e,...e.accessToken&&{accessToken:o.SENSITIVE_STRING}});t.ListAccountsRequestFilterSensitiveLog=ListAccountsRequestFilterSensitiveLog;const LogoutRequestFilterSensitiveLog=e=>({...e,...e.accessToken&&{accessToken:o.SENSITIVE_STRING}});t.LogoutRequestFilterSensitiveLog=LogoutRequestFilterSensitiveLog},80849:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},88460:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateListAccountRoles=void 0;const o=n(1513);const r=n(71057);const makePagedClientRequest=async(e,t,...n)=>await e.send(new o.ListAccountRolesCommand(t),...n);async function*paginateListAccountRoles(e,t,...n){let o=e.startingToken||undefined;let s=true;let i;while(s){t.nextToken=o;t["maxResults"]=e.pageSize;if(e.client instanceof r.SSOClient){i=await makePagedClientRequest(e.client,t,...n)}else{throw new Error("Invalid client, expected SSO | SSOClient")}yield i;const a=o;o=i.nextToken;s=!!(o&&(!e.stopOnSameToken||o!==a))}return undefined}t.paginateListAccountRoles=paginateListAccountRoles},50938:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateListAccounts=void 0;const o=n(64296);const r=n(71057);const makePagedClientRequest=async(e,t,...n)=>await e.send(new o.ListAccountsCommand(t),...n);async function*paginateListAccounts(e,t,...n){let o=e.startingToken||undefined;let s=true;let i;while(s){t.nextToken=o;t["maxResults"]=e.pageSize;if(e.client instanceof r.SSOClient){i=await makePagedClientRequest(e.client,t,...n)}else{throw new Error("Invalid client, expected SSO | SSOClient")}yield i;const a=o;o=i.nextToken;s=!!(o&&(!e.stopOnSameToken||o!==a))}return undefined}t.paginateListAccounts=paginateListAccounts},36773:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(80849),t);o.__exportStar(n(88460),t);o.__exportStar(n(50938),t)},98507:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.de_LogoutCommand=t.de_ListAccountsCommand=t.de_ListAccountRolesCommand=t.de_GetRoleCredentialsCommand=t.se_LogoutCommand=t.se_ListAccountsCommand=t.se_ListAccountRolesCommand=t.se_GetRoleCredentialsCommand=void 0;const o=n(64418);const r=n(63570);const s=n(66390);const i=n(81517);const se_GetRoleCredentialsCommand=async(e,t)=>{const{hostname:n,protocol:s="https",port:i,path:a}=await t.endpoint();const c=(0,r.map)({},isSerializableHeaderValue,{"x-amz-sso_bearer_token":e.accessToken});const d=`${a?.endsWith("/")?a.slice(0,-1):a||""}`+"/federation/credentials";const u=(0,r.map)({role_name:[,(0,r.expectNonNull)(e.roleName,`roleName`)],account_id:[,(0,r.expectNonNull)(e.accountId,`accountId`)]});let l;return new o.HttpRequest({protocol:s,hostname:n,port:i,method:"GET",headers:c,path:d,query:u,body:l})};t.se_GetRoleCredentialsCommand=se_GetRoleCredentialsCommand;const se_ListAccountRolesCommand=async(e,t)=>{const{hostname:n,protocol:s="https",port:i,path:a}=await t.endpoint();const c=(0,r.map)({},isSerializableHeaderValue,{"x-amz-sso_bearer_token":e.accessToken});const d=`${a?.endsWith("/")?a.slice(0,-1):a||""}`+"/assignment/roles";const u=(0,r.map)({next_token:[,e.nextToken],max_result:[()=>e.maxResults!==void 0,()=>e.maxResults.toString()],account_id:[,(0,r.expectNonNull)(e.accountId,`accountId`)]});let l;return new o.HttpRequest({protocol:s,hostname:n,port:i,method:"GET",headers:c,path:d,query:u,body:l})};t.se_ListAccountRolesCommand=se_ListAccountRolesCommand;const se_ListAccountsCommand=async(e,t)=>{const{hostname:n,protocol:s="https",port:i,path:a}=await t.endpoint();const c=(0,r.map)({},isSerializableHeaderValue,{"x-amz-sso_bearer_token":e.accessToken});const d=`${a?.endsWith("/")?a.slice(0,-1):a||""}`+"/assignment/accounts";const u=(0,r.map)({next_token:[,e.nextToken],max_result:[()=>e.maxResults!==void 0,()=>e.maxResults.toString()]});let l;return new o.HttpRequest({protocol:s,hostname:n,port:i,method:"GET",headers:c,path:d,query:u,body:l})};t.se_ListAccountsCommand=se_ListAccountsCommand;const se_LogoutCommand=async(e,t)=>{const{hostname:n,protocol:s="https",port:i,path:a}=await t.endpoint();const c=(0,r.map)({},isSerializableHeaderValue,{"x-amz-sso_bearer_token":e.accessToken});const d=`${a?.endsWith("/")?a.slice(0,-1):a||""}`+"/logout";let u;return new o.HttpRequest({protocol:s,hostname:n,port:i,method:"POST",headers:c,path:d,body:u})};t.se_LogoutCommand=se_LogoutCommand;const de_GetRoleCredentialsCommand=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300){return de_GetRoleCredentialsCommandError(e,t)}const n=(0,r.map)({$metadata:deserializeMetadata(e)});const o=(0,r.expectNonNull)((0,r.expectObject)(await parseBody(e.body,t)),"body");const s=(0,r.take)(o,{roleCredentials:r._json});Object.assign(n,s);return n};t.de_GetRoleCredentialsCommand=de_GetRoleCredentialsCommand;const de_GetRoleCredentialsCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await de_InvalidRequestExceptionRes(n,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await de_ResourceNotFoundExceptionRes(n,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await de_TooManyRequestsExceptionRes(n,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await de_UnauthorizedExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_ListAccountRolesCommand=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300){return de_ListAccountRolesCommandError(e,t)}const n=(0,r.map)({$metadata:deserializeMetadata(e)});const o=(0,r.expectNonNull)((0,r.expectObject)(await parseBody(e.body,t)),"body");const s=(0,r.take)(o,{nextToken:r.expectString,roleList:r._json});Object.assign(n,s);return n};t.de_ListAccountRolesCommand=de_ListAccountRolesCommand;const de_ListAccountRolesCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await de_InvalidRequestExceptionRes(n,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await de_ResourceNotFoundExceptionRes(n,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await de_TooManyRequestsExceptionRes(n,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await de_UnauthorizedExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_ListAccountsCommand=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300){return de_ListAccountsCommandError(e,t)}const n=(0,r.map)({$metadata:deserializeMetadata(e)});const o=(0,r.expectNonNull)((0,r.expectObject)(await parseBody(e.body,t)),"body");const s=(0,r.take)(o,{accountList:r._json,nextToken:r.expectString});Object.assign(n,s);return n};t.de_ListAccountsCommand=de_ListAccountsCommand;const de_ListAccountsCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await de_InvalidRequestExceptionRes(n,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await de_ResourceNotFoundExceptionRes(n,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await de_TooManyRequestsExceptionRes(n,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await de_UnauthorizedExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const de_LogoutCommand=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300){return de_LogoutCommandError(e,t)}const n=(0,r.map)({$metadata:deserializeMetadata(e)});await(0,r.collectBody)(e.body,t);return n};t.de_LogoutCommand=de_LogoutCommand;const de_LogoutCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadRestJsonErrorCode(e,n.body);switch(o){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await de_InvalidRequestExceptionRes(n,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await de_TooManyRequestsExceptionRes(n,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await de_UnauthorizedExceptionRes(n,t);default:const r=n.body;return a({output:e,parsedBody:r,errorCode:o})}};const a=(0,r.withBaseException)(i.SSOServiceException);const de_InvalidRequestExceptionRes=async(e,t)=>{const n=(0,r.map)({});const o=e.body;const i=(0,r.take)(o,{message:r.expectString});Object.assign(n,i);const a=new s.InvalidRequestException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(a,e.body)};const de_ResourceNotFoundExceptionRes=async(e,t)=>{const n=(0,r.map)({});const o=e.body;const i=(0,r.take)(o,{message:r.expectString});Object.assign(n,i);const a=new s.ResourceNotFoundException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(a,e.body)};const de_TooManyRequestsExceptionRes=async(e,t)=>{const n=(0,r.map)({});const o=e.body;const i=(0,r.take)(o,{message:r.expectString});Object.assign(n,i);const a=new s.TooManyRequestsException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(a,e.body)};const de_UnauthorizedExceptionRes=async(e,t)=>{const n=(0,r.map)({});const o=e.body;const i=(0,r.take)(o,{message:r.expectString});Object.assign(n,i);const a=new s.UnauthorizedException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(a,e.body)};const deserializeMetadata=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]});const collectBodyString=(e,t)=>(0,r.collectBody)(e,t).then((e=>t.utf8Encoder(e)));const isSerializableHeaderValue=e=>e!==undefined&&e!==null&&e!==""&&(!Object.getOwnPropertyNames(e).includes("length")||e.length!=0)&&(!Object.getOwnPropertyNames(e).includes("size")||e.size!=0);const parseBody=(e,t)=>collectBodyString(e,t).then((e=>{if(e.length){return JSON.parse(e)}return{}}));const parseErrorBody=async(e,t)=>{const n=await parseBody(e,t);n.message=n.message??n.Message;return n};const loadRestJsonErrorCode=(e,t)=>{const findKey=(e,t)=>Object.keys(e).find((e=>e.toLowerCase()===t.toLowerCase()));const sanitizeErrorCode=e=>{let t=e;if(typeof t==="number"){t=t.toString()}if(t.indexOf(",")>=0){t=t.split(",")[0]}if(t.indexOf(":")>=0){t=t.split(":")[0]}if(t.indexOf("#")>=0){t=t.split("#")[1]}return t};const n=findKey(e.headers,"x-amzn-errortype");if(n!==undefined){return sanitizeErrorCode(e.headers[n])}if(t.code!==undefined){return sanitizeErrorCode(t.code)}if(t["__type"]!==undefined){return sanitizeErrorCode(t["__type"])}}},19756:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const o=n(4351);const r=o.__importDefault(n(91092));const s=n(98095);const i=n(53098);const a=n(3081);const c=n(96039);const d=n(33461);const u=n(20258);const l=n(68075);const p=n(84902);const m=n(44809);const f=n(63570);const y=n(72429);const g=n(63570);const getRuntimeConfig=e=>{(0,g.emitWarningIfUnsupportedVersion)(process.version);const t=(0,y.resolveDefaultsModeConfig)(e);const defaultConfigProvider=()=>t().then(f.loadConfigsForDefaultMode);const n=(0,m.getRuntimeConfig)(e);return{...n,...e,runtime:"node",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??l.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,s.defaultUserAgent)({serviceId:n.serviceId,clientVersion:r.default.version}),maxAttempts:e?.maxAttempts??(0,d.loadConfig)(c.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:e?.region??(0,d.loadConfig)(i.NODE_REGION_CONFIG_OPTIONS,i.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:e?.requestHandler??new u.NodeHttpHandler(defaultConfigProvider),retryMode:e?.retryMode??(0,d.loadConfig)({...c.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await defaultConfigProvider()).retryMode||p.DEFAULT_RETRY_MODE}),sha256:e?.sha256??a.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??u.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,d.loadConfig)(i.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:e?.useFipsEndpoint??(0,d.loadConfig)(i.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)}};t.getRuntimeConfig=getRuntimeConfig},44809:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const o=n(63570);const r=n(14681);const s=n(75600);const i=n(41895);const a=n(30898);const getRuntimeConfig=e=>({apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??s.fromBase64,base64Encoder:e?.base64Encoder??s.toBase64,disableHostPrefix:e?.disableHostPrefix??false,endpointProvider:e?.endpointProvider??a.defaultEndpointResolver,logger:e?.logger??new o.NoOpLogger,serviceId:e?.serviceId??"SSO",urlParser:e?.urlParser??r.parseUrl,utf8Decoder:e?.utf8Decoder??i.fromUtf8,utf8Encoder:e?.utf8Encoder??i.toUtf8});t.getRuntimeConfig=getRuntimeConfig},32605:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.STS=void 0;const o=n(63570);const r=n(59802);const s=n(72865);const i=n(37451);const a=n(74150);const c=n(49804);const d=n(24278);const u=n(57552);const l=n(43285);const p=n(64195);const m={AssumeRoleCommand:r.AssumeRoleCommand,AssumeRoleWithSAMLCommand:s.AssumeRoleWithSAMLCommand,AssumeRoleWithWebIdentityCommand:i.AssumeRoleWithWebIdentityCommand,DecodeAuthorizationMessageCommand:a.DecodeAuthorizationMessageCommand,GetAccessKeyInfoCommand:c.GetAccessKeyInfoCommand,GetCallerIdentityCommand:d.GetCallerIdentityCommand,GetFederationTokenCommand:u.GetFederationTokenCommand,GetSessionTokenCommand:l.GetSessionTokenCommand};class STS extends p.STSClient{}t.STS=STS;(0,o.createAggregatedClient)(m,STS)},64195:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.STSClient=t.__Client=void 0;const o=n(22545);const r=n(20014);const s=n(85525);const i=n(55959);const a=n(64688);const c=n(53098);const d=n(82800);const u=n(82918);const l=n(96039);const p=n(63570);Object.defineProperty(t,"__Client",{enumerable:true,get:function(){return p.Client}});const m=n(20510);const f=n(83405);class STSClient extends p.Client{constructor(e){const t=(0,f.getRuntimeConfig)(e);const n=(0,m.resolveClientEndpointParameters)(t);const p=(0,c.resolveRegionConfig)(n);const y=(0,u.resolveEndpointConfig)(p);const g=(0,l.resolveRetryConfig)(y);const h=(0,o.resolveHostHeaderConfig)(g);const E=(0,i.resolveStsAuthConfig)(h,{stsClientCtor:STSClient});const _=(0,a.resolveUserAgentConfig)(E);super(_);this.config=_;this.middlewareStack.use((0,l.getRetryPlugin)(this.config));this.middlewareStack.use((0,d.getContentLengthPlugin)(this.config));this.middlewareStack.use((0,o.getHostHeaderPlugin)(this.config));this.middlewareStack.use((0,r.getLoggerPlugin)(this.config));this.middlewareStack.use((0,s.getRecursionDetectionPlugin)(this.config));this.middlewareStack.use((0,a.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}}t.STSClient=STSClient},59802:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AssumeRoleCommand=t.$Command=void 0;const o=n(14935);const r=n(82918);const s=n(81238);const i=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return i.Command}});const a=n(21780);const c=n(10740);class AssumeRoleCommand extends i.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,s.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,AssumeRoleCommand.getEndpointParameterInstructions()));this.middlewareStack.use((0,o.getAwsAuthPlugin)(t));const i=e.concat(this.middlewareStack);const{logger:c}=t;const d="STSClient";const u="AssumeRoleCommand";const l={logger:c,clientName:d,commandName:u,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:a.AssumeRoleResponseFilterSensitiveLog};const{requestHandler:p}=t;return i.resolve((e=>p.handle(e.request,n||{})),l)}serialize(e,t){return(0,c.se_AssumeRoleCommand)(e,t)}deserialize(e,t){return(0,c.de_AssumeRoleCommand)(e,t)}}t.AssumeRoleCommand=AssumeRoleCommand},72865:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AssumeRoleWithSAMLCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(21780);const a=n(10740);class AssumeRoleWithSAMLCommand extends s.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,AssumeRoleWithSAMLCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="STSClient";const d="AssumeRoleWithSAMLCommand";const u={logger:a,clientName:c,commandName:d,inputFilterSensitiveLog:i.AssumeRoleWithSAMLRequestFilterSensitiveLog,outputFilterSensitiveLog:i.AssumeRoleWithSAMLResponseFilterSensitiveLog};const{requestHandler:l}=t;return s.resolve((e=>l.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.se_AssumeRoleWithSAMLCommand)(e,t)}deserialize(e,t){return(0,a.de_AssumeRoleWithSAMLCommand)(e,t)}}t.AssumeRoleWithSAMLCommand=AssumeRoleWithSAMLCommand},37451:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AssumeRoleWithWebIdentityCommand=t.$Command=void 0;const o=n(82918);const r=n(81238);const s=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=n(21780);const a=n(10740);class AssumeRoleWithWebIdentityCommand extends s.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,AssumeRoleWithWebIdentityCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:a}=t;const c="STSClient";const d="AssumeRoleWithWebIdentityCommand";const u={logger:a,clientName:c,commandName:d,inputFilterSensitiveLog:i.AssumeRoleWithWebIdentityRequestFilterSensitiveLog,outputFilterSensitiveLog:i.AssumeRoleWithWebIdentityResponseFilterSensitiveLog};const{requestHandler:l}=t;return s.resolve((e=>l.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.se_AssumeRoleWithWebIdentityCommand)(e,t)}deserialize(e,t){return(0,a.de_AssumeRoleWithWebIdentityCommand)(e,t)}}t.AssumeRoleWithWebIdentityCommand=AssumeRoleWithWebIdentityCommand},74150:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DecodeAuthorizationMessageCommand=t.$Command=void 0;const o=n(14935);const r=n(82918);const s=n(81238);const i=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return i.Command}});const a=n(10740);class DecodeAuthorizationMessageCommand extends i.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,s.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,DecodeAuthorizationMessageCommand.getEndpointParameterInstructions()));this.middlewareStack.use((0,o.getAwsAuthPlugin)(t));const i=e.concat(this.middlewareStack);const{logger:a}=t;const c="STSClient";const d="DecodeAuthorizationMessageCommand";const u={logger:a,clientName:c,commandName:d,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:l}=t;return i.resolve((e=>l.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.se_DecodeAuthorizationMessageCommand)(e,t)}deserialize(e,t){return(0,a.de_DecodeAuthorizationMessageCommand)(e,t)}}t.DecodeAuthorizationMessageCommand=DecodeAuthorizationMessageCommand},49804:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetAccessKeyInfoCommand=t.$Command=void 0;const o=n(14935);const r=n(82918);const s=n(81238);const i=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return i.Command}});const a=n(10740);class GetAccessKeyInfoCommand extends i.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,s.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,GetAccessKeyInfoCommand.getEndpointParameterInstructions()));this.middlewareStack.use((0,o.getAwsAuthPlugin)(t));const i=e.concat(this.middlewareStack);const{logger:a}=t;const c="STSClient";const d="GetAccessKeyInfoCommand";const u={logger:a,clientName:c,commandName:d,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:l}=t;return i.resolve((e=>l.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.se_GetAccessKeyInfoCommand)(e,t)}deserialize(e,t){return(0,a.de_GetAccessKeyInfoCommand)(e,t)}}t.GetAccessKeyInfoCommand=GetAccessKeyInfoCommand},24278:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetCallerIdentityCommand=t.$Command=void 0;const o=n(14935);const r=n(82918);const s=n(81238);const i=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return i.Command}});const a=n(10740);class GetCallerIdentityCommand extends i.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,s.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,GetCallerIdentityCommand.getEndpointParameterInstructions()));this.middlewareStack.use((0,o.getAwsAuthPlugin)(t));const i=e.concat(this.middlewareStack);const{logger:a}=t;const c="STSClient";const d="GetCallerIdentityCommand";const u={logger:a,clientName:c,commandName:d,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:l}=t;return i.resolve((e=>l.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.se_GetCallerIdentityCommand)(e,t)}deserialize(e,t){return(0,a.de_GetCallerIdentityCommand)(e,t)}}t.GetCallerIdentityCommand=GetCallerIdentityCommand},57552:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetFederationTokenCommand=t.$Command=void 0;const o=n(14935);const r=n(82918);const s=n(81238);const i=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return i.Command}});const a=n(21780);const c=n(10740);class GetFederationTokenCommand extends i.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,s.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,GetFederationTokenCommand.getEndpointParameterInstructions()));this.middlewareStack.use((0,o.getAwsAuthPlugin)(t));const i=e.concat(this.middlewareStack);const{logger:c}=t;const d="STSClient";const u="GetFederationTokenCommand";const l={logger:c,clientName:d,commandName:u,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:a.GetFederationTokenResponseFilterSensitiveLog};const{requestHandler:p}=t;return i.resolve((e=>p.handle(e.request,n||{})),l)}serialize(e,t){return(0,c.se_GetFederationTokenCommand)(e,t)}deserialize(e,t){return(0,c.de_GetFederationTokenCommand)(e,t)}}t.GetFederationTokenCommand=GetFederationTokenCommand},43285:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetSessionTokenCommand=t.$Command=void 0;const o=n(14935);const r=n(82918);const s=n(81238);const i=n(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return i.Command}});const a=n(21780);const c=n(10740);class GetSessionTokenCommand extends i.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,n){this.middlewareStack.use((0,s.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,GetSessionTokenCommand.getEndpointParameterInstructions()));this.middlewareStack.use((0,o.getAwsAuthPlugin)(t));const i=e.concat(this.middlewareStack);const{logger:c}=t;const d="STSClient";const u="GetSessionTokenCommand";const l={logger:c,clientName:d,commandName:u,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:a.GetSessionTokenResponseFilterSensitiveLog};const{requestHandler:p}=t;return i.resolve((e=>p.handle(e.request,n||{})),l)}serialize(e,t){return(0,c.se_GetSessionTokenCommand)(e,t)}deserialize(e,t){return(0,c.de_GetSessionTokenCommand)(e,t)}}t.GetSessionTokenCommand=GetSessionTokenCommand},55716:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(59802),t);o.__exportStar(n(72865),t);o.__exportStar(n(37451),t);o.__exportStar(n(74150),t);o.__exportStar(n(49804),t);o.__exportStar(n(24278),t);o.__exportStar(n(57552),t);o.__exportStar(n(43285),t)},88028:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.decorateDefaultCredentialProvider=t.getDefaultRoleAssumerWithWebIdentity=t.getDefaultRoleAssumer=void 0;const o=n(90048);const r=n(64195);const getCustomizableStsClientCtor=(e,t)=>{if(!t)return e;else return class CustomizableSTSClient extends e{constructor(e){super(e);for(const e of t){this.middlewareStack.use(e)}}}};const getDefaultRoleAssumer=(e={},t)=>(0,o.getDefaultRoleAssumer)(e,getCustomizableStsClientCtor(r.STSClient,t));t.getDefaultRoleAssumer=getDefaultRoleAssumer;const getDefaultRoleAssumerWithWebIdentity=(e={},t)=>(0,o.getDefaultRoleAssumerWithWebIdentity)(e,getCustomizableStsClientCtor(r.STSClient,t));t.getDefaultRoleAssumerWithWebIdentity=getDefaultRoleAssumerWithWebIdentity;const decorateDefaultCredentialProvider=e=>n=>e({roleAssumer:(0,t.getDefaultRoleAssumer)(n),roleAssumerWithWebIdentity:(0,t.getDefaultRoleAssumerWithWebIdentity)(n),...n});t.decorateDefaultCredentialProvider=decorateDefaultCredentialProvider},90048:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.decorateDefaultCredentialProvider=t.getDefaultRoleAssumerWithWebIdentity=t.getDefaultRoleAssumer=void 0;const o=n(59802);const r=n(37451);const s="us-east-1";const decorateDefaultRegion=e=>{if(typeof e!=="function"){return e===undefined?s:e}return async()=>{try{return await e()}catch(e){return s}}};const getDefaultRoleAssumer=(e,t)=>{let n;let r;return async(s,i)=>{r=s;if(!n){const{logger:o,region:s,requestHandler:i}=e;n=new t({logger:o,credentialDefaultProvider:()=>async()=>r,region:decorateDefaultRegion(s||e.region),...i?{requestHandler:i}:{}})}const{Credentials:a}=await n.send(new o.AssumeRoleCommand(i));if(!a||!a.AccessKeyId||!a.SecretAccessKey){throw new Error(`Invalid response from STS.assumeRole call with role ${i.RoleArn}`)}return{accessKeyId:a.AccessKeyId,secretAccessKey:a.SecretAccessKey,sessionToken:a.SessionToken,expiration:a.Expiration}}};t.getDefaultRoleAssumer=getDefaultRoleAssumer;const getDefaultRoleAssumerWithWebIdentity=(e,t)=>{let n;return async o=>{if(!n){const{logger:o,region:r,requestHandler:s}=e;n=new t({logger:o,region:decorateDefaultRegion(r||e.region),...s?{requestHandler:s}:{}})}const{Credentials:s}=await n.send(new r.AssumeRoleWithWebIdentityCommand(o));if(!s||!s.AccessKeyId||!s.SecretAccessKey){throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${o.RoleArn}`)}return{accessKeyId:s.AccessKeyId,secretAccessKey:s.SecretAccessKey,sessionToken:s.SessionToken,expiration:s.Expiration}}};t.getDefaultRoleAssumerWithWebIdentity=getDefaultRoleAssumerWithWebIdentity;const decorateDefaultCredentialProvider=e=>n=>e({roleAssumer:(0,t.getDefaultRoleAssumer)(n,n.stsClientCtor),roleAssumerWithWebIdentity:(0,t.getDefaultRoleAssumerWithWebIdentity)(n,n.stsClientCtor),...n});t.decorateDefaultCredentialProvider=decorateDefaultCredentialProvider},20510:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveClientEndpointParameters=void 0;const resolveClientEndpointParameters=e=>({...e,useDualstackEndpoint:e.useDualstackEndpoint??false,useFipsEndpoint:e.useFipsEndpoint??false,useGlobalEndpoint:e.useGlobalEndpoint??false,defaultSigningName:"sts"});t.resolveClientEndpointParameters=resolveClientEndpointParameters},41203:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultEndpointResolver=void 0;const o=n(13350);const r=n(86882);const defaultEndpointResolver=(e,t={})=>(0,o.resolveEndpoint)(r.ruleSet,{endpointParams:e,logger:t.logger});t.defaultEndpointResolver=defaultEndpointResolver},86882:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ruleSet=void 0;const n="required",o="type",r="fn",s="argv",i="ref";const a=false,c=true,d="booleanEquals",u="tree",l="stringEquals",p="sigv4",m="sts",f="us-east-1",y="endpoint",g="https://sts.{Region}.{PartitionResult#dnsSuffix}",h="error",E="getAttr",_={[n]:false,[o]:"String"},v={[n]:true,default:false,[o]:"Boolean"},S={[i]:"Endpoint"},C={[r]:"isSet",[s]:[{[i]:"Region"}]},b={[i]:"Region"},P={[r]:"aws.partition",[s]:[b],assign:"PartitionResult"},w={[i]:"UseFIPS"},x={[i]:"UseDualStack"},R={url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:p,signingName:m,signingRegion:f}]},headers:{}},I={},O={conditions:[{[r]:l,[s]:[b,"aws-global"]}],[y]:R,[o]:y},T={[r]:d,[s]:[w,true]},A={[r]:d,[s]:[x,true]},D={[r]:d,[s]:[true,{[r]:E,[s]:[{[i]:"PartitionResult"},"supportsFIPS"]}]},N={[i]:"PartitionResult"},M={[r]:d,[s]:[true,{[r]:E,[s]:[N,"supportsDualStack"]}]},j=[{[r]:"isSet",[s]:[S]}],k=[T],F=[A];const L={version:"1.0",parameters:{Region:_,UseDualStack:v,UseFIPS:v,Endpoint:_,UseGlobalEndpoint:v},rules:[{conditions:[{[r]:d,[s]:[{[i]:"UseGlobalEndpoint"},c]},{[r]:"not",[s]:j},C,P,{[r]:d,[s]:[w,a]},{[r]:d,[s]:[x,a]}],[o]:u,rules:[{conditions:[{[r]:l,[s]:[b,"ap-northeast-1"]}],endpoint:R,[o]:y},{conditions:[{[r]:l,[s]:[b,"ap-south-1"]}],endpoint:R,[o]:y},{conditions:[{[r]:l,[s]:[b,"ap-southeast-1"]}],endpoint:R,[o]:y},{conditions:[{[r]:l,[s]:[b,"ap-southeast-2"]}],endpoint:R,[o]:y},O,{conditions:[{[r]:l,[s]:[b,"ca-central-1"]}],endpoint:R,[o]:y},{conditions:[{[r]:l,[s]:[b,"eu-central-1"]}],endpoint:R,[o]:y},{conditions:[{[r]:l,[s]:[b,"eu-north-1"]}],endpoint:R,[o]:y},{conditions:[{[r]:l,[s]:[b,"eu-west-1"]}],endpoint:R,[o]:y},{conditions:[{[r]:l,[s]:[b,"eu-west-2"]}],endpoint:R,[o]:y},{conditions:[{[r]:l,[s]:[b,"eu-west-3"]}],endpoint:R,[o]:y},{conditions:[{[r]:l,[s]:[b,"sa-east-1"]}],endpoint:R,[o]:y},{conditions:[{[r]:l,[s]:[b,f]}],endpoint:R,[o]:y},{conditions:[{[r]:l,[s]:[b,"us-east-2"]}],endpoint:R,[o]:y},{conditions:[{[r]:l,[s]:[b,"us-west-1"]}],endpoint:R,[o]:y},{conditions:[{[r]:l,[s]:[b,"us-west-2"]}],endpoint:R,[o]:y},{endpoint:{url:g,properties:{authSchemes:[{name:p,signingName:m,signingRegion:"{Region}"}]},headers:I},[o]:y}]},{conditions:j,[o]:u,rules:[{conditions:k,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[o]:h},{[o]:u,rules:[{conditions:F,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[o]:h},{endpoint:{url:S,properties:I,headers:I},[o]:y}]}]},{[o]:u,rules:[{conditions:[C],[o]:u,rules:[{conditions:[P],[o]:u,rules:[{conditions:[T,A],[o]:u,rules:[{conditions:[D,M],[o]:u,rules:[{[o]:u,rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:I,headers:I},[o]:y}]}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",[o]:h}]},{conditions:k,[o]:u,rules:[{conditions:[D],[o]:u,rules:[{[o]:u,rules:[{conditions:[{[r]:l,[s]:["aws-us-gov",{[r]:E,[s]:[N,"name"]}]}],endpoint:{url:"https://sts.{Region}.amazonaws.com",properties:I,headers:I},[o]:y},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:I,headers:I},[o]:y}]}]},{error:"FIPS is enabled but this partition does not support FIPS",[o]:h}]},{conditions:F,[o]:u,rules:[{conditions:[M],[o]:u,rules:[{[o]:u,rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:I,headers:I},[o]:y}]}]},{error:"DualStack is enabled but this partition does not support DualStack",[o]:h}]},{[o]:u,rules:[O,{endpoint:{url:g,properties:I,headers:I},[o]:y}]}]}]},{error:"Invalid Configuration: Missing Region",[o]:h}]}]};t.ruleSet=L},52209:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.STSServiceException=void 0;const o=n(4351);o.__exportStar(n(64195),t);o.__exportStar(n(32605),t);o.__exportStar(n(55716),t);o.__exportStar(n(20106),t);o.__exportStar(n(88028),t);var r=n(15770);Object.defineProperty(t,"STSServiceException",{enumerable:true,get:function(){return r.STSServiceException}})},15770:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.STSServiceException=t.__ServiceException=void 0;const o=n(63570);Object.defineProperty(t,"__ServiceException",{enumerable:true,get:function(){return o.ServiceException}});class STSServiceException extends o.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,STSServiceException.prototype)}}t.STSServiceException=STSServiceException},20106:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(21780),t)},21780:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetSessionTokenResponseFilterSensitiveLog=t.GetFederationTokenResponseFilterSensitiveLog=t.AssumeRoleWithWebIdentityResponseFilterSensitiveLog=t.AssumeRoleWithWebIdentityRequestFilterSensitiveLog=t.AssumeRoleWithSAMLResponseFilterSensitiveLog=t.AssumeRoleWithSAMLRequestFilterSensitiveLog=t.AssumeRoleResponseFilterSensitiveLog=t.CredentialsFilterSensitiveLog=t.InvalidAuthorizationMessageException=t.IDPCommunicationErrorException=t.InvalidIdentityTokenException=t.IDPRejectedClaimException=t.RegionDisabledException=t.PackedPolicyTooLargeException=t.MalformedPolicyDocumentException=t.ExpiredTokenException=void 0;const o=n(63570);const r=n(15770);class ExpiredTokenException extends r.STSServiceException{constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e});this.name="ExpiredTokenException";this.$fault="client";Object.setPrototypeOf(this,ExpiredTokenException.prototype)}}t.ExpiredTokenException=ExpiredTokenException;class MalformedPolicyDocumentException extends r.STSServiceException{constructor(e){super({name:"MalformedPolicyDocumentException",$fault:"client",...e});this.name="MalformedPolicyDocumentException";this.$fault="client";Object.setPrototypeOf(this,MalformedPolicyDocumentException.prototype)}}t.MalformedPolicyDocumentException=MalformedPolicyDocumentException;class PackedPolicyTooLargeException extends r.STSServiceException{constructor(e){super({name:"PackedPolicyTooLargeException",$fault:"client",...e});this.name="PackedPolicyTooLargeException";this.$fault="client";Object.setPrototypeOf(this,PackedPolicyTooLargeException.prototype)}}t.PackedPolicyTooLargeException=PackedPolicyTooLargeException;class RegionDisabledException extends r.STSServiceException{constructor(e){super({name:"RegionDisabledException",$fault:"client",...e});this.name="RegionDisabledException";this.$fault="client";Object.setPrototypeOf(this,RegionDisabledException.prototype)}}t.RegionDisabledException=RegionDisabledException;class IDPRejectedClaimException extends r.STSServiceException{constructor(e){super({name:"IDPRejectedClaimException",$fault:"client",...e});this.name="IDPRejectedClaimException";this.$fault="client";Object.setPrototypeOf(this,IDPRejectedClaimException.prototype)}}t.IDPRejectedClaimException=IDPRejectedClaimException;class InvalidIdentityTokenException extends r.STSServiceException{constructor(e){super({name:"InvalidIdentityTokenException",$fault:"client",...e});this.name="InvalidIdentityTokenException";this.$fault="client";Object.setPrototypeOf(this,InvalidIdentityTokenException.prototype)}}t.InvalidIdentityTokenException=InvalidIdentityTokenException;class IDPCommunicationErrorException extends r.STSServiceException{constructor(e){super({name:"IDPCommunicationErrorException",$fault:"client",...e});this.name="IDPCommunicationErrorException";this.$fault="client";Object.setPrototypeOf(this,IDPCommunicationErrorException.prototype)}}t.IDPCommunicationErrorException=IDPCommunicationErrorException;class InvalidAuthorizationMessageException extends r.STSServiceException{constructor(e){super({name:"InvalidAuthorizationMessageException",$fault:"client",...e});this.name="InvalidAuthorizationMessageException";this.$fault="client";Object.setPrototypeOf(this,InvalidAuthorizationMessageException.prototype)}}t.InvalidAuthorizationMessageException=InvalidAuthorizationMessageException;const CredentialsFilterSensitiveLog=e=>({...e,...e.SecretAccessKey&&{SecretAccessKey:o.SENSITIVE_STRING}});t.CredentialsFilterSensitiveLog=CredentialsFilterSensitiveLog;const AssumeRoleResponseFilterSensitiveLog=e=>({...e,...e.Credentials&&{Credentials:(0,t.CredentialsFilterSensitiveLog)(e.Credentials)}});t.AssumeRoleResponseFilterSensitiveLog=AssumeRoleResponseFilterSensitiveLog;const AssumeRoleWithSAMLRequestFilterSensitiveLog=e=>({...e,...e.SAMLAssertion&&{SAMLAssertion:o.SENSITIVE_STRING}});t.AssumeRoleWithSAMLRequestFilterSensitiveLog=AssumeRoleWithSAMLRequestFilterSensitiveLog;const AssumeRoleWithSAMLResponseFilterSensitiveLog=e=>({...e,...e.Credentials&&{Credentials:(0,t.CredentialsFilterSensitiveLog)(e.Credentials)}});t.AssumeRoleWithSAMLResponseFilterSensitiveLog=AssumeRoleWithSAMLResponseFilterSensitiveLog;const AssumeRoleWithWebIdentityRequestFilterSensitiveLog=e=>({...e,...e.WebIdentityToken&&{WebIdentityToken:o.SENSITIVE_STRING}});t.AssumeRoleWithWebIdentityRequestFilterSensitiveLog=AssumeRoleWithWebIdentityRequestFilterSensitiveLog;const AssumeRoleWithWebIdentityResponseFilterSensitiveLog=e=>({...e,...e.Credentials&&{Credentials:(0,t.CredentialsFilterSensitiveLog)(e.Credentials)}});t.AssumeRoleWithWebIdentityResponseFilterSensitiveLog=AssumeRoleWithWebIdentityResponseFilterSensitiveLog;const GetFederationTokenResponseFilterSensitiveLog=e=>({...e,...e.Credentials&&{Credentials:(0,t.CredentialsFilterSensitiveLog)(e.Credentials)}});t.GetFederationTokenResponseFilterSensitiveLog=GetFederationTokenResponseFilterSensitiveLog;const GetSessionTokenResponseFilterSensitiveLog=e=>({...e,...e.Credentials&&{Credentials:(0,t.CredentialsFilterSensitiveLog)(e.Credentials)}});t.GetSessionTokenResponseFilterSensitiveLog=GetSessionTokenResponseFilterSensitiveLog},10740:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.de_GetSessionTokenCommand=t.de_GetFederationTokenCommand=t.de_GetCallerIdentityCommand=t.de_GetAccessKeyInfoCommand=t.de_DecodeAuthorizationMessageCommand=t.de_AssumeRoleWithWebIdentityCommand=t.de_AssumeRoleWithSAMLCommand=t.de_AssumeRoleCommand=t.se_GetSessionTokenCommand=t.se_GetFederationTokenCommand=t.se_GetCallerIdentityCommand=t.se_GetAccessKeyInfoCommand=t.se_DecodeAuthorizationMessageCommand=t.se_AssumeRoleWithWebIdentityCommand=t.se_AssumeRoleWithSAMLCommand=t.se_AssumeRoleCommand=void 0;const o=n(64418);const r=n(63570);const s=n(12603);const i=n(21780);const a=n(15770);const se_AssumeRoleCommand=async(e,t)=>{const n=d;let o;o=buildFormUrlencodedString({...se_AssumeRoleRequest(e,t),Action:"AssumeRole",Version:"2011-06-15"});return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_AssumeRoleCommand=se_AssumeRoleCommand;const se_AssumeRoleWithSAMLCommand=async(e,t)=>{const n=d;let o;o=buildFormUrlencodedString({...se_AssumeRoleWithSAMLRequest(e,t),Action:"AssumeRoleWithSAML",Version:"2011-06-15"});return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_AssumeRoleWithSAMLCommand=se_AssumeRoleWithSAMLCommand;const se_AssumeRoleWithWebIdentityCommand=async(e,t)=>{const n=d;let o;o=buildFormUrlencodedString({...se_AssumeRoleWithWebIdentityRequest(e,t),Action:"AssumeRoleWithWebIdentity",Version:"2011-06-15"});return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_AssumeRoleWithWebIdentityCommand=se_AssumeRoleWithWebIdentityCommand;const se_DecodeAuthorizationMessageCommand=async(e,t)=>{const n=d;let o;o=buildFormUrlencodedString({...se_DecodeAuthorizationMessageRequest(e,t),Action:"DecodeAuthorizationMessage",Version:"2011-06-15"});return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_DecodeAuthorizationMessageCommand=se_DecodeAuthorizationMessageCommand;const se_GetAccessKeyInfoCommand=async(e,t)=>{const n=d;let o;o=buildFormUrlencodedString({...se_GetAccessKeyInfoRequest(e,t),Action:"GetAccessKeyInfo",Version:"2011-06-15"});return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_GetAccessKeyInfoCommand=se_GetAccessKeyInfoCommand;const se_GetCallerIdentityCommand=async(e,t)=>{const n=d;let o;o=buildFormUrlencodedString({...se_GetCallerIdentityRequest(e,t),Action:"GetCallerIdentity",Version:"2011-06-15"});return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_GetCallerIdentityCommand=se_GetCallerIdentityCommand;const se_GetFederationTokenCommand=async(e,t)=>{const n=d;let o;o=buildFormUrlencodedString({...se_GetFederationTokenRequest(e,t),Action:"GetFederationToken",Version:"2011-06-15"});return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_GetFederationTokenCommand=se_GetFederationTokenCommand;const se_GetSessionTokenCommand=async(e,t)=>{const n=d;let o;o=buildFormUrlencodedString({...se_GetSessionTokenRequest(e,t),Action:"GetSessionToken",Version:"2011-06-15"});return buildHttpRpcRequest(t,n,"/",undefined,o)};t.se_GetSessionTokenCommand=se_GetSessionTokenCommand;const de_AssumeRoleCommand=async(e,t)=>{if(e.statusCode>=300){return de_AssumeRoleCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=de_AssumeRoleResponse(n.AssumeRoleResult,t);const r={$metadata:deserializeMetadata(e),...o};return r};t.de_AssumeRoleCommand=de_AssumeRoleCommand;const de_AssumeRoleCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadQueryErrorCode(e,n.body);switch(o){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await de_ExpiredTokenExceptionRes(n,t);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await de_MalformedPolicyDocumentExceptionRes(n,t);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await de_PackedPolicyTooLargeExceptionRes(n,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await de_RegionDisabledExceptionRes(n,t);default:const r=n.body;return c({output:e,parsedBody:r.Error,errorCode:o})}};const de_AssumeRoleWithSAMLCommand=async(e,t)=>{if(e.statusCode>=300){return de_AssumeRoleWithSAMLCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=de_AssumeRoleWithSAMLResponse(n.AssumeRoleWithSAMLResult,t);const r={$metadata:deserializeMetadata(e),...o};return r};t.de_AssumeRoleWithSAMLCommand=de_AssumeRoleWithSAMLCommand;const de_AssumeRoleWithSAMLCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadQueryErrorCode(e,n.body);switch(o){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await de_ExpiredTokenExceptionRes(n,t);case"IDPRejectedClaim":case"com.amazonaws.sts#IDPRejectedClaimException":throw await de_IDPRejectedClaimExceptionRes(n,t);case"InvalidIdentityToken":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await de_InvalidIdentityTokenExceptionRes(n,t);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await de_MalformedPolicyDocumentExceptionRes(n,t);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await de_PackedPolicyTooLargeExceptionRes(n,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await de_RegionDisabledExceptionRes(n,t);default:const r=n.body;return c({output:e,parsedBody:r.Error,errorCode:o})}};const de_AssumeRoleWithWebIdentityCommand=async(e,t)=>{if(e.statusCode>=300){return de_AssumeRoleWithWebIdentityCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=de_AssumeRoleWithWebIdentityResponse(n.AssumeRoleWithWebIdentityResult,t);const r={$metadata:deserializeMetadata(e),...o};return r};t.de_AssumeRoleWithWebIdentityCommand=de_AssumeRoleWithWebIdentityCommand;const de_AssumeRoleWithWebIdentityCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadQueryErrorCode(e,n.body);switch(o){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await de_ExpiredTokenExceptionRes(n,t);case"IDPCommunicationError":case"com.amazonaws.sts#IDPCommunicationErrorException":throw await de_IDPCommunicationErrorExceptionRes(n,t);case"IDPRejectedClaim":case"com.amazonaws.sts#IDPRejectedClaimException":throw await de_IDPRejectedClaimExceptionRes(n,t);case"InvalidIdentityToken":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await de_InvalidIdentityTokenExceptionRes(n,t);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await de_MalformedPolicyDocumentExceptionRes(n,t);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await de_PackedPolicyTooLargeExceptionRes(n,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await de_RegionDisabledExceptionRes(n,t);default:const r=n.body;return c({output:e,parsedBody:r.Error,errorCode:o})}};const de_DecodeAuthorizationMessageCommand=async(e,t)=>{if(e.statusCode>=300){return de_DecodeAuthorizationMessageCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=de_DecodeAuthorizationMessageResponse(n.DecodeAuthorizationMessageResult,t);const r={$metadata:deserializeMetadata(e),...o};return r};t.de_DecodeAuthorizationMessageCommand=de_DecodeAuthorizationMessageCommand;const de_DecodeAuthorizationMessageCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadQueryErrorCode(e,n.body);switch(o){case"InvalidAuthorizationMessageException":case"com.amazonaws.sts#InvalidAuthorizationMessageException":throw await de_InvalidAuthorizationMessageExceptionRes(n,t);default:const r=n.body;return c({output:e,parsedBody:r.Error,errorCode:o})}};const de_GetAccessKeyInfoCommand=async(e,t)=>{if(e.statusCode>=300){return de_GetAccessKeyInfoCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=de_GetAccessKeyInfoResponse(n.GetAccessKeyInfoResult,t);const r={$metadata:deserializeMetadata(e),...o};return r};t.de_GetAccessKeyInfoCommand=de_GetAccessKeyInfoCommand;const de_GetAccessKeyInfoCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadQueryErrorCode(e,n.body);const r=n.body;return c({output:e,parsedBody:r.Error,errorCode:o})};const de_GetCallerIdentityCommand=async(e,t)=>{if(e.statusCode>=300){return de_GetCallerIdentityCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=de_GetCallerIdentityResponse(n.GetCallerIdentityResult,t);const r={$metadata:deserializeMetadata(e),...o};return r};t.de_GetCallerIdentityCommand=de_GetCallerIdentityCommand;const de_GetCallerIdentityCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadQueryErrorCode(e,n.body);const r=n.body;return c({output:e,parsedBody:r.Error,errorCode:o})};const de_GetFederationTokenCommand=async(e,t)=>{if(e.statusCode>=300){return de_GetFederationTokenCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=de_GetFederationTokenResponse(n.GetFederationTokenResult,t);const r={$metadata:deserializeMetadata(e),...o};return r};t.de_GetFederationTokenCommand=de_GetFederationTokenCommand;const de_GetFederationTokenCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadQueryErrorCode(e,n.body);switch(o){case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await de_MalformedPolicyDocumentExceptionRes(n,t);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await de_PackedPolicyTooLargeExceptionRes(n,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await de_RegionDisabledExceptionRes(n,t);default:const r=n.body;return c({output:e,parsedBody:r.Error,errorCode:o})}};const de_GetSessionTokenCommand=async(e,t)=>{if(e.statusCode>=300){return de_GetSessionTokenCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=de_GetSessionTokenResponse(n.GetSessionTokenResult,t);const r={$metadata:deserializeMetadata(e),...o};return r};t.de_GetSessionTokenCommand=de_GetSessionTokenCommand;const de_GetSessionTokenCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadQueryErrorCode(e,n.body);switch(o){case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await de_RegionDisabledExceptionRes(n,t);default:const r=n.body;return c({output:e,parsedBody:r.Error,errorCode:o})}};const de_ExpiredTokenExceptionRes=async(e,t)=>{const n=e.body;const o=de_ExpiredTokenException(n.Error,t);const s=new i.ExpiredTokenException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_IDPCommunicationErrorExceptionRes=async(e,t)=>{const n=e.body;const o=de_IDPCommunicationErrorException(n.Error,t);const s=new i.IDPCommunicationErrorException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_IDPRejectedClaimExceptionRes=async(e,t)=>{const n=e.body;const o=de_IDPRejectedClaimException(n.Error,t);const s=new i.IDPRejectedClaimException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_InvalidAuthorizationMessageExceptionRes=async(e,t)=>{const n=e.body;const o=de_InvalidAuthorizationMessageException(n.Error,t);const s=new i.InvalidAuthorizationMessageException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_InvalidIdentityTokenExceptionRes=async(e,t)=>{const n=e.body;const o=de_InvalidIdentityTokenException(n.Error,t);const s=new i.InvalidIdentityTokenException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_MalformedPolicyDocumentExceptionRes=async(e,t)=>{const n=e.body;const o=de_MalformedPolicyDocumentException(n.Error,t);const s=new i.MalformedPolicyDocumentException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_PackedPolicyTooLargeExceptionRes=async(e,t)=>{const n=e.body;const o=de_PackedPolicyTooLargeException(n.Error,t);const s=new i.PackedPolicyTooLargeException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const de_RegionDisabledExceptionRes=async(e,t)=>{const n=e.body;const o=de_RegionDisabledException(n.Error,t);const s=new i.RegionDisabledException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(s,n)};const se_AssumeRoleRequest=(e,t)=>{const n={};if(e.RoleArn!=null){n["RoleArn"]=e.RoleArn}if(e.RoleSessionName!=null){n["RoleSessionName"]=e.RoleSessionName}if(e.PolicyArns!=null){const o=se_policyDescriptorListType(e.PolicyArns,t);if(e.PolicyArns?.length===0){n.PolicyArns=[]}Object.entries(o).forEach((([e,t])=>{const o=`PolicyArns.${e}`;n[o]=t}))}if(e.Policy!=null){n["Policy"]=e.Policy}if(e.DurationSeconds!=null){n["DurationSeconds"]=e.DurationSeconds}if(e.Tags!=null){const o=se_tagListType(e.Tags,t);if(e.Tags?.length===0){n.Tags=[]}Object.entries(o).forEach((([e,t])=>{const o=`Tags.${e}`;n[o]=t}))}if(e.TransitiveTagKeys!=null){const o=se_tagKeyListType(e.TransitiveTagKeys,t);if(e.TransitiveTagKeys?.length===0){n.TransitiveTagKeys=[]}Object.entries(o).forEach((([e,t])=>{const o=`TransitiveTagKeys.${e}`;n[o]=t}))}if(e.ExternalId!=null){n["ExternalId"]=e.ExternalId}if(e.SerialNumber!=null){n["SerialNumber"]=e.SerialNumber}if(e.TokenCode!=null){n["TokenCode"]=e.TokenCode}if(e.SourceIdentity!=null){n["SourceIdentity"]=e.SourceIdentity}return n};const se_AssumeRoleWithSAMLRequest=(e,t)=>{const n={};if(e.RoleArn!=null){n["RoleArn"]=e.RoleArn}if(e.PrincipalArn!=null){n["PrincipalArn"]=e.PrincipalArn}if(e.SAMLAssertion!=null){n["SAMLAssertion"]=e.SAMLAssertion}if(e.PolicyArns!=null){const o=se_policyDescriptorListType(e.PolicyArns,t);if(e.PolicyArns?.length===0){n.PolicyArns=[]}Object.entries(o).forEach((([e,t])=>{const o=`PolicyArns.${e}`;n[o]=t}))}if(e.Policy!=null){n["Policy"]=e.Policy}if(e.DurationSeconds!=null){n["DurationSeconds"]=e.DurationSeconds}return n};const se_AssumeRoleWithWebIdentityRequest=(e,t)=>{const n={};if(e.RoleArn!=null){n["RoleArn"]=e.RoleArn}if(e.RoleSessionName!=null){n["RoleSessionName"]=e.RoleSessionName}if(e.WebIdentityToken!=null){n["WebIdentityToken"]=e.WebIdentityToken}if(e.ProviderId!=null){n["ProviderId"]=e.ProviderId}if(e.PolicyArns!=null){const o=se_policyDescriptorListType(e.PolicyArns,t);if(e.PolicyArns?.length===0){n.PolicyArns=[]}Object.entries(o).forEach((([e,t])=>{const o=`PolicyArns.${e}`;n[o]=t}))}if(e.Policy!=null){n["Policy"]=e.Policy}if(e.DurationSeconds!=null){n["DurationSeconds"]=e.DurationSeconds}return n};const se_DecodeAuthorizationMessageRequest=(e,t)=>{const n={};if(e.EncodedMessage!=null){n["EncodedMessage"]=e.EncodedMessage}return n};const se_GetAccessKeyInfoRequest=(e,t)=>{const n={};if(e.AccessKeyId!=null){n["AccessKeyId"]=e.AccessKeyId}return n};const se_GetCallerIdentityRequest=(e,t)=>{const n={};return n};const se_GetFederationTokenRequest=(e,t)=>{const n={};if(e.Name!=null){n["Name"]=e.Name}if(e.Policy!=null){n["Policy"]=e.Policy}if(e.PolicyArns!=null){const o=se_policyDescriptorListType(e.PolicyArns,t);if(e.PolicyArns?.length===0){n.PolicyArns=[]}Object.entries(o).forEach((([e,t])=>{const o=`PolicyArns.${e}`;n[o]=t}))}if(e.DurationSeconds!=null){n["DurationSeconds"]=e.DurationSeconds}if(e.Tags!=null){const o=se_tagListType(e.Tags,t);if(e.Tags?.length===0){n.Tags=[]}Object.entries(o).forEach((([e,t])=>{const o=`Tags.${e}`;n[o]=t}))}return n};const se_GetSessionTokenRequest=(e,t)=>{const n={};if(e.DurationSeconds!=null){n["DurationSeconds"]=e.DurationSeconds}if(e.SerialNumber!=null){n["SerialNumber"]=e.SerialNumber}if(e.TokenCode!=null){n["TokenCode"]=e.TokenCode}return n};const se_policyDescriptorListType=(e,t)=>{const n={};let o=1;for(const r of e){if(r===null){continue}const e=se_PolicyDescriptorType(r,t);Object.entries(e).forEach((([e,t])=>{n[`member.${o}.${e}`]=t}));o++}return n};const se_PolicyDescriptorType=(e,t)=>{const n={};if(e.arn!=null){n["arn"]=e.arn}return n};const se_Tag=(e,t)=>{const n={};if(e.Key!=null){n["Key"]=e.Key}if(e.Value!=null){n["Value"]=e.Value}return n};const se_tagKeyListType=(e,t)=>{const n={};let o=1;for(const t of e){if(t===null){continue}n[`member.${o}`]=t;o++}return n};const se_tagListType=(e,t)=>{const n={};let o=1;for(const r of e){if(r===null){continue}const e=se_Tag(r,t);Object.entries(e).forEach((([e,t])=>{n[`member.${o}.${e}`]=t}));o++}return n};const de_AssumedRoleUser=(e,t)=>{const n={};if(e["AssumedRoleId"]!==undefined){n.AssumedRoleId=(0,r.expectString)(e["AssumedRoleId"])}if(e["Arn"]!==undefined){n.Arn=(0,r.expectString)(e["Arn"])}return n};const de_AssumeRoleResponse=(e,t)=>{const n={};if(e["Credentials"]!==undefined){n.Credentials=de_Credentials(e["Credentials"],t)}if(e["AssumedRoleUser"]!==undefined){n.AssumedRoleUser=de_AssumedRoleUser(e["AssumedRoleUser"],t)}if(e["PackedPolicySize"]!==undefined){n.PackedPolicySize=(0,r.strictParseInt32)(e["PackedPolicySize"])}if(e["SourceIdentity"]!==undefined){n.SourceIdentity=(0,r.expectString)(e["SourceIdentity"])}return n};const de_AssumeRoleWithSAMLResponse=(e,t)=>{const n={};if(e["Credentials"]!==undefined){n.Credentials=de_Credentials(e["Credentials"],t)}if(e["AssumedRoleUser"]!==undefined){n.AssumedRoleUser=de_AssumedRoleUser(e["AssumedRoleUser"],t)}if(e["PackedPolicySize"]!==undefined){n.PackedPolicySize=(0,r.strictParseInt32)(e["PackedPolicySize"])}if(e["Subject"]!==undefined){n.Subject=(0,r.expectString)(e["Subject"])}if(e["SubjectType"]!==undefined){n.SubjectType=(0,r.expectString)(e["SubjectType"])}if(e["Issuer"]!==undefined){n.Issuer=(0,r.expectString)(e["Issuer"])}if(e["Audience"]!==undefined){n.Audience=(0,r.expectString)(e["Audience"])}if(e["NameQualifier"]!==undefined){n.NameQualifier=(0,r.expectString)(e["NameQualifier"])}if(e["SourceIdentity"]!==undefined){n.SourceIdentity=(0,r.expectString)(e["SourceIdentity"])}return n};const de_AssumeRoleWithWebIdentityResponse=(e,t)=>{const n={};if(e["Credentials"]!==undefined){n.Credentials=de_Credentials(e["Credentials"],t)}if(e["SubjectFromWebIdentityToken"]!==undefined){n.SubjectFromWebIdentityToken=(0,r.expectString)(e["SubjectFromWebIdentityToken"])}if(e["AssumedRoleUser"]!==undefined){n.AssumedRoleUser=de_AssumedRoleUser(e["AssumedRoleUser"],t)}if(e["PackedPolicySize"]!==undefined){n.PackedPolicySize=(0,r.strictParseInt32)(e["PackedPolicySize"])}if(e["Provider"]!==undefined){n.Provider=(0,r.expectString)(e["Provider"])}if(e["Audience"]!==undefined){n.Audience=(0,r.expectString)(e["Audience"])}if(e["SourceIdentity"]!==undefined){n.SourceIdentity=(0,r.expectString)(e["SourceIdentity"])}return n};const de_Credentials=(e,t)=>{const n={};if(e["AccessKeyId"]!==undefined){n.AccessKeyId=(0,r.expectString)(e["AccessKeyId"])}if(e["SecretAccessKey"]!==undefined){n.SecretAccessKey=(0,r.expectString)(e["SecretAccessKey"])}if(e["SessionToken"]!==undefined){n.SessionToken=(0,r.expectString)(e["SessionToken"])}if(e["Expiration"]!==undefined){n.Expiration=(0,r.expectNonNull)((0,r.parseRfc3339DateTimeWithOffset)(e["Expiration"]))}return n};const de_DecodeAuthorizationMessageResponse=(e,t)=>{const n={};if(e["DecodedMessage"]!==undefined){n.DecodedMessage=(0,r.expectString)(e["DecodedMessage"])}return n};const de_ExpiredTokenException=(e,t)=>{const n={};if(e["message"]!==undefined){n.message=(0,r.expectString)(e["message"])}return n};const de_FederatedUser=(e,t)=>{const n={};if(e["FederatedUserId"]!==undefined){n.FederatedUserId=(0,r.expectString)(e["FederatedUserId"])}if(e["Arn"]!==undefined){n.Arn=(0,r.expectString)(e["Arn"])}return n};const de_GetAccessKeyInfoResponse=(e,t)=>{const n={};if(e["Account"]!==undefined){n.Account=(0,r.expectString)(e["Account"])}return n};const de_GetCallerIdentityResponse=(e,t)=>{const n={};if(e["UserId"]!==undefined){n.UserId=(0,r.expectString)(e["UserId"])}if(e["Account"]!==undefined){n.Account=(0,r.expectString)(e["Account"])}if(e["Arn"]!==undefined){n.Arn=(0,r.expectString)(e["Arn"])}return n};const de_GetFederationTokenResponse=(e,t)=>{const n={};if(e["Credentials"]!==undefined){n.Credentials=de_Credentials(e["Credentials"],t)}if(e["FederatedUser"]!==undefined){n.FederatedUser=de_FederatedUser(e["FederatedUser"],t)}if(e["PackedPolicySize"]!==undefined){n.PackedPolicySize=(0,r.strictParseInt32)(e["PackedPolicySize"])}return n};const de_GetSessionTokenResponse=(e,t)=>{const n={};if(e["Credentials"]!==undefined){n.Credentials=de_Credentials(e["Credentials"],t)}return n};const de_IDPCommunicationErrorException=(e,t)=>{const n={};if(e["message"]!==undefined){n.message=(0,r.expectString)(e["message"])}return n};const de_IDPRejectedClaimException=(e,t)=>{const n={};if(e["message"]!==undefined){n.message=(0,r.expectString)(e["message"])}return n};const de_InvalidAuthorizationMessageException=(e,t)=>{const n={};if(e["message"]!==undefined){n.message=(0,r.expectString)(e["message"])}return n};const de_InvalidIdentityTokenException=(e,t)=>{const n={};if(e["message"]!==undefined){n.message=(0,r.expectString)(e["message"])}return n};const de_MalformedPolicyDocumentException=(e,t)=>{const n={};if(e["message"]!==undefined){n.message=(0,r.expectString)(e["message"])}return n};const de_PackedPolicyTooLargeException=(e,t)=>{const n={};if(e["message"]!==undefined){n.message=(0,r.expectString)(e["message"])}return n};const de_RegionDisabledException=(e,t)=>{const n={};if(e["message"]!==undefined){n.message=(0,r.expectString)(e["message"])}return n};const deserializeMetadata=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]});const collectBodyString=(e,t)=>(0,r.collectBody)(e,t).then((e=>t.utf8Encoder(e)));const c=(0,r.withBaseException)(a.STSServiceException);const buildHttpRpcRequest=async(e,t,n,r,s)=>{const{hostname:i,protocol:a="https",port:c,path:d}=await e.endpoint();const u={protocol:a,hostname:i,port:c,method:"POST",path:d.endsWith("/")?d.slice(0,-1)+n:d+n,headers:t};if(r!==undefined){u.hostname=r}if(s!==undefined){u.body=s}return new o.HttpRequest(u)};const d={"content-type":"application/x-www-form-urlencoded"};const parseBody=(e,t)=>collectBodyString(e,t).then((e=>{if(e.length){const t=new s.XMLParser({attributeNamePrefix:"",htmlEntities:true,ignoreAttributes:false,ignoreDeclaration:true,parseTagValue:false,trimValues:false,tagValueProcessor:(e,t)=>t.trim()===""&&t.includes("\n")?"":undefined});t.addEntity("#xD","\r");t.addEntity("#10","\n");const n=t.parse(e);const o="#text";const i=Object.keys(n)[0];const a=n[i];if(a[o]){a[i]=a[o];delete a[o]}return(0,r.getValueFromTextNode)(a)}return{}}));const parseErrorBody=async(e,t)=>{const n=await parseBody(e,t);if(n.Error){n.Error.message=n.Error.message??n.Error.Message}return n};const buildFormUrlencodedString=e=>Object.entries(e).map((([e,t])=>(0,r.extendedEncodeURIComponent)(e)+"="+(0,r.extendedEncodeURIComponent)(t))).join("&");const loadQueryErrorCode=(e,t)=>{if(t.Error?.Code!==undefined){return t.Error.Code}if(e.statusCode==404){return"NotFound"}}},83405:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const o=n(4351);const r=o.__importDefault(n(7947));const s=n(90048);const i=n(75531);const a=n(98095);const c=n(53098);const d=n(3081);const u=n(96039);const l=n(33461);const p=n(20258);const m=n(68075);const f=n(84902);const y=n(52642);const g=n(63570);const h=n(72429);const E=n(63570);const getRuntimeConfig=e=>{(0,E.emitWarningIfUnsupportedVersion)(process.version);const t=(0,h.resolveDefaultsModeConfig)(e);const defaultConfigProvider=()=>t().then(g.loadConfigsForDefaultMode);const n=(0,y.getRuntimeConfig)(e);return{...n,...e,runtime:"node",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??m.calculateBodyLength,credentialDefaultProvider:e?.credentialDefaultProvider??(0,s.decorateDefaultCredentialProvider)(i.defaultProvider),defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,a.defaultUserAgent)({serviceId:n.serviceId,clientVersion:r.default.version}),maxAttempts:e?.maxAttempts??(0,l.loadConfig)(u.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:e?.region??(0,l.loadConfig)(c.NODE_REGION_CONFIG_OPTIONS,c.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:e?.requestHandler??new p.NodeHttpHandler(defaultConfigProvider),retryMode:e?.retryMode??(0,l.loadConfig)({...u.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await defaultConfigProvider()).retryMode||f.DEFAULT_RETRY_MODE}),sha256:e?.sha256??d.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??p.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,l.loadConfig)(c.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:e?.useFipsEndpoint??(0,l.loadConfig)(c.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)}};t.getRuntimeConfig=getRuntimeConfig},52642:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const o=n(63570);const r=n(14681);const s=n(75600);const i=n(41895);const a=n(41203);const getRuntimeConfig=e=>({apiVersion:"2011-06-15",base64Decoder:e?.base64Decoder??s.fromBase64,base64Encoder:e?.base64Encoder??s.toBase64,disableHostPrefix:e?.disableHostPrefix??false,endpointProvider:e?.endpointProvider??a.defaultEndpointResolver,logger:e?.logger??new o.NoOpLogger,serviceId:e?.serviceId??"STS",urlParser:e?.urlParser??r.parseUrl,utf8Decoder:e?.utf8Decoder??i.fromUtf8,utf8Encoder:e?.utf8Encoder??i.toUtf8});t.getRuntimeConfig=getRuntimeConfig},80255:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromEnv=t.ENV_EXPIRATION=t.ENV_SESSION=t.ENV_SECRET=t.ENV_KEY=void 0;const o=n(79721);t.ENV_KEY="AWS_ACCESS_KEY_ID";t.ENV_SECRET="AWS_SECRET_ACCESS_KEY";t.ENV_SESSION="AWS_SESSION_TOKEN";t.ENV_EXPIRATION="AWS_CREDENTIAL_EXPIRATION";const fromEnv=()=>async()=>{const e=process.env[t.ENV_KEY];const n=process.env[t.ENV_SECRET];const r=process.env[t.ENV_SESSION];const s=process.env[t.ENV_EXPIRATION];if(e&&n){return{accessKeyId:e,secretAccessKey:n,...r&&{sessionToken:r},...s&&{expiration:new Date(s)}}}throw new o.CredentialsProviderError("Unable to find environment variable credentials.")};t.fromEnv=fromEnv},15972:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(80255),t)},55442:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromIni=void 0;const o=n(43507);const r=n(95653);const fromIni=(e={})=>async()=>{const t=await(0,o.parseKnownFiles)(e);return(0,r.resolveProfileData)((0,o.getProfileName)(e),t,e)};t.fromIni=fromIni},74203:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(55442),t)},60853:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveAssumeRoleCredentials=t.isAssumeRoleProfile=void 0;const o=n(79721);const r=n(43507);const s=n(82458);const i=n(95653);const isAssumeRoleProfile=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&&(isAssumeRoleWithSourceProfile(e)||isAssumeRoleWithProviderProfile(e));t.isAssumeRoleProfile=isAssumeRoleProfile;const isAssumeRoleWithSourceProfile=e=>typeof e.source_profile==="string"&&typeof e.credential_source==="undefined";const isAssumeRoleWithProviderProfile=e=>typeof e.credential_source==="string"&&typeof e.source_profile==="undefined";const resolveAssumeRoleCredentials=async(e,t,n,a={})=>{const c=t[e];if(!n.roleAssumer){throw new o.CredentialsProviderError(`Profile ${e} requires a role to be assumed, but no role assumption callback was provided.`,false)}const{source_profile:d}=c;if(d&&d in a){throw new o.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile`+` ${(0,r.getProfileName)(n)}. Profiles visited: `+Object.keys(a).join(", "),false)}const u=d?(0,i.resolveProfileData)(d,t,n,{...a,[d]:true}):(0,s.resolveCredentialSource)(c.credential_source,e)();const l={RoleArn:c.role_arn,RoleSessionName:c.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:c.external_id};const{mfa_serial:p}=c;if(p){if(!n.mfaCodeProvider){throw new o.CredentialsProviderError(`Profile ${e} requires multi-factor authentication, but no MFA code callback was provided.`,false)}l.SerialNumber=p;l.TokenCode=await n.mfaCodeProvider(p)}const m=await u;return n.roleAssumer(m,l)};t.resolveAssumeRoleCredentials=resolveAssumeRoleCredentials},82458:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveCredentialSource=void 0;const o=n(15972);const r=n(7477);const s=n(79721);const resolveCredentialSource=(e,t)=>{const n={EcsContainer:r.fromContainerMetadata,Ec2InstanceMetadata:r.fromInstanceMetadata,Environment:o.fromEnv};if(e in n){return n[e]()}else{throw new s.CredentialsProviderError(`Unsupported credential source in profile ${t}. Got ${e}, `+`expected EcsContainer or Ec2InstanceMetadata or Environment.`)}};t.resolveCredentialSource=resolveCredentialSource},69993:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveProcessCredentials=t.isProcessProfile=void 0;const o=n(89969);const isProcessProfile=e=>Boolean(e)&&typeof e==="object"&&typeof e.credential_process==="string";t.isProcessProfile=isProcessProfile;const resolveProcessCredentials=async(e,t)=>(0,o.fromProcess)({...e,profile:t})();t.resolveProcessCredentials=resolveProcessCredentials},95653:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveProfileData=void 0;const o=n(79721);const r=n(60853);const s=n(69993);const i=n(59867);const a=n(33071);const c=n(58342);const resolveProfileData=async(e,t,n,d={})=>{const u=t[e];if(Object.keys(d).length>0&&(0,a.isStaticCredsProfile)(u)){return(0,a.resolveStaticCredentials)(u)}if((0,r.isAssumeRoleProfile)(u)){return(0,r.resolveAssumeRoleCredentials)(e,t,n,d)}if((0,a.isStaticCredsProfile)(u)){return(0,a.resolveStaticCredentials)(u)}if((0,c.isWebIdentityProfile)(u)){return(0,c.resolveWebIdentityCredentials)(u,n)}if((0,s.isProcessProfile)(u)){return(0,s.resolveProcessCredentials)(n,e)}if((0,i.isSsoProfile)(u)){return(0,i.resolveSsoCredentials)(u)}throw new o.CredentialsProviderError(`Profile ${e} could not be found or parsed in shared credentials file.`)};t.resolveProfileData=resolveProfileData},59867:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveSsoCredentials=t.isSsoProfile=void 0;const o=n(26414);var r=n(26414);Object.defineProperty(t,"isSsoProfile",{enumerable:true,get:function(){return r.isSsoProfile}});const resolveSsoCredentials=e=>{const{sso_start_url:t,sso_account_id:n,sso_session:r,sso_region:s,sso_role_name:i}=(0,o.validateSsoProfile)(e);return(0,o.fromSSO)({ssoStartUrl:t,ssoAccountId:n,ssoSession:r,ssoRegion:s,ssoRoleName:i})()};t.resolveSsoCredentials=resolveSsoCredentials},33071:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveStaticCredentials=t.isStaticCredsProfile=void 0;const isStaticCredsProfile=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;t.isStaticCredsProfile=isStaticCredsProfile;const resolveStaticCredentials=e=>Promise.resolve({accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token});t.resolveStaticCredentials=resolveStaticCredentials},58342:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveWebIdentityCredentials=t.isWebIdentityProfile=void 0;const o=n(15646);const isWebIdentityProfile=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;t.isWebIdentityProfile=isWebIdentityProfile;const resolveWebIdentityCredentials=async(e,t)=>(0,o.fromTokenFile)({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:t.roleAssumerWithWebIdentity})();t.resolveWebIdentityCredentials=resolveWebIdentityCredentials},15560:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultProvider=void 0;const o=n(15972);const r=n(74203);const s=n(89969);const i=n(26414);const a=n(15646);const c=n(79721);const d=n(43507);const u=n(50626);const defaultProvider=(e={})=>(0,c.memoize)((0,c.chain)(...e.profile||process.env[d.ENV_PROFILE]?[]:[(0,o.fromEnv)()],(0,i.fromSSO)(e),(0,r.fromIni)(e),(0,s.fromProcess)(e),(0,a.fromTokenFile)(e),(0,u.remoteProvider)(e),(async()=>{throw new c.CredentialsProviderError("Could not load credentials from any providers",false)})),(e=>e.expiration!==undefined&&e.expiration.getTime()-Date.now()<3e5),(e=>e.expiration!==undefined));t.defaultProvider=defaultProvider},75531:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(15560),t)},50626:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.remoteProvider=t.ENV_IMDS_DISABLED=void 0;const o=n(7477);const r=n(79721);t.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";const remoteProvider=e=>{if(process.env[o.ENV_CMDS_RELATIVE_URI]||process.env[o.ENV_CMDS_FULL_URI]){return(0,o.fromContainerMetadata)(e)}if(process.env[t.ENV_IMDS_DISABLED]){return async()=>{throw new r.CredentialsProviderError("EC2 Instance Metadata Service access disabled")}}return(0,o.fromInstanceMetadata)(e)};t.remoteProvider=remoteProvider},72650:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromProcess=void 0;const o=n(43507);const r=n(74926);const fromProcess=(e={})=>async()=>{const t=await(0,o.parseKnownFiles)(e);return(0,r.resolveProcessCredentials)((0,o.getProfileName)(e),t)};t.fromProcess=fromProcess},41104:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getValidatedProcessCredentials=void 0;const getValidatedProcessCredentials=(e,t)=>{if(t.Version!==1){throw Error(`Profile ${e} credential_process did not return Version 1.`)}if(t.AccessKeyId===undefined||t.SecretAccessKey===undefined){throw Error(`Profile ${e} credential_process returned invalid credentials.`)}if(t.Expiration){const n=new Date;const o=new Date(t.Expiration);if(o<n){throw Error(`Profile ${e} credential_process returned expired credentials.`)}}return{accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,...t.SessionToken&&{sessionToken:t.SessionToken},...t.Expiration&&{expiration:new Date(t.Expiration)}}};t.getValidatedProcessCredentials=getValidatedProcessCredentials},89969:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(72650),t)},74926:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveProcessCredentials=void 0;const o=n(79721);const r=n(32081);const s=n(73837);const i=n(41104);const resolveProcessCredentials=async(e,t)=>{const n=t[e];if(t[e]){const t=n["credential_process"];if(t!==undefined){const n=(0,s.promisify)(r.exec);try{const{stdout:o}=await n(t);let r;try{r=JSON.parse(o.trim())}catch(t){throw Error(`Profile ${e} credential_process returned invalid JSON.`)}return(0,i.getValidatedProcessCredentials)(e,r)}catch(e){throw new o.CredentialsProviderError(e.message)}}else{throw new o.CredentialsProviderError(`Profile ${e} did not contain credential_process.`)}}else{throw new o.CredentialsProviderError(`Profile ${e} could not be found in shared credentials file.`)}};t.resolveProcessCredentials=resolveProcessCredentials},35959:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromSSO=void 0;const o=n(79721);const r=n(43507);const s=n(32572);const i=n(94729);const a=n(48098);const fromSSO=(e={})=>async()=>{const{ssoStartUrl:t,ssoAccountId:n,ssoRegion:c,ssoRoleName:d,ssoClient:u,ssoSession:l}=e;const p=(0,r.getProfileName)(e);if(!t&&!n&&!c&&!d&&!l){const n=await(0,r.parseKnownFiles)(e);const d=n[p];if(!d){throw new o.CredentialsProviderError(`Profile ${p} was not found.`)}if(!(0,s.isSsoProfile)(d)){throw new o.CredentialsProviderError(`Profile ${p} is not configured with SSO credentials.`)}if(d===null||d===void 0?void 0:d.sso_session){const n=await(0,r.loadSsoSessionData)(e);const s=n[d.sso_session];const i=` configurations in profile ${p} and sso-session ${d.sso_session}`;if(c&&c!==s.sso_region){throw new o.CredentialsProviderError(`Conflicting SSO region`+i,false)}if(t&&t!==s.sso_start_url){throw new o.CredentialsProviderError(`Conflicting SSO start_url`+i,false)}d.sso_region=s.sso_region;d.sso_start_url=s.sso_start_url}const{sso_start_url:l,sso_account_id:m,sso_region:f,sso_role_name:y,sso_session:g}=(0,a.validateSsoProfile)(d);return(0,i.resolveSSOCredentials)({ssoStartUrl:l,ssoSession:g,ssoAccountId:m,ssoRegion:f,ssoRoleName:y,ssoClient:u,profile:p})}else if(!t||!n||!c||!d){throw new o.CredentialsProviderError("Incomplete configuration. The fromSSO() argument hash must include "+'"ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"')}else{return(0,i.resolveSSOCredentials)({ssoStartUrl:t,ssoSession:l,ssoAccountId:n,ssoRegion:c,ssoRoleName:d,ssoClient:u,profile:p})}};t.fromSSO=fromSSO},26414:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(35959),t);o.__exportStar(n(32572),t);o.__exportStar(n(86623),t);o.__exportStar(n(48098),t)},32572:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isSsoProfile=void 0;const isSsoProfile=e=>e&&(typeof e.sso_start_url==="string"||typeof e.sso_account_id==="string"||typeof e.sso_session==="string"||typeof e.sso_region==="string"||typeof e.sso_role_name==="string");t.isSsoProfile=isSsoProfile},94729:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveSSOCredentials=void 0;const o=n(82666);const r=n(52843);const s=n(79721);const i=n(43507);const a=15*60*1e3;const c=false;const resolveSSOCredentials=async({ssoStartUrl:e,ssoSession:t,ssoAccountId:n,ssoRegion:d,ssoRoleName:u,ssoClient:l,profile:p})=>{let m;const f=`To refresh this SSO session run aws sso login with the corresponding profile.`;if(t){try{const e=await(0,r.fromSso)({profile:p})();m={accessToken:e.token,expiresAt:new Date(e.expiration).toISOString()}}catch(e){throw new s.CredentialsProviderError(e.message,c)}}else{try{m=await(0,i.getSSOTokenFromFile)(e)}catch(e){throw new s.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${f}`,c)}}if(new Date(m.expiresAt).getTime()-Date.now()<=a){throw new s.CredentialsProviderError(`The SSO session associated with this profile has expired. ${f}`,c)}const{accessToken:y}=m;const g=l||new o.SSOClient({region:d});let h;try{h=await g.send(new o.GetRoleCredentialsCommand({accountId:n,roleName:u,accessToken:y}))}catch(e){throw s.CredentialsProviderError.from(e,c)}const{roleCredentials:{accessKeyId:E,secretAccessKey:_,sessionToken:v,expiration:S}={}}=h;if(!E||!_||!v||!S){throw new s.CredentialsProviderError("SSO returns an invalid temporary credential.",c)}return{accessKeyId:E,secretAccessKey:_,sessionToken:v,expiration:new Date(S)}};t.resolveSSOCredentials=resolveSSOCredentials},86623:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},48098:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateSsoProfile=void 0;const o=n(79721);const validateSsoProfile=e=>{const{sso_start_url:t,sso_account_id:n,sso_region:r,sso_role_name:s}=e;if(!t||!n||!r||!s){throw new o.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(", ")}\nReference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,false)}return e};t.validateSsoProfile=validateSsoProfile},35614:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromTokenFile=void 0;const o=n(79721);const r=n(57147);const s=n(47905);const i="AWS_WEB_IDENTITY_TOKEN_FILE";const a="AWS_ROLE_ARN";const c="AWS_ROLE_SESSION_NAME";const fromTokenFile=(e={})=>async()=>{var t,n,d;const u=(t=e===null||e===void 0?void 0:e.webIdentityTokenFile)!==null&&t!==void 0?t:process.env[i];const l=(n=e===null||e===void 0?void 0:e.roleArn)!==null&&n!==void 0?n:process.env[a];const p=(d=e===null||e===void 0?void 0:e.roleSessionName)!==null&&d!==void 0?d:process.env[c];if(!u||!l){throw new o.CredentialsProviderError("Web identity configuration not specified")}return(0,s.fromWebToken)({...e,webIdentityToken:(0,r.readFileSync)(u,{encoding:"ascii"}),roleArn:l,roleSessionName:p})()};t.fromTokenFile=fromTokenFile},47905:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromWebToken=void 0;const o=n(79721);const fromWebToken=e=>()=>{const{roleArn:t,roleSessionName:n,webIdentityToken:r,providerId:s,policyArns:i,policy:a,durationSeconds:c,roleAssumerWithWebIdentity:d}=e;if(!d){throw new o.CredentialsProviderError(`Role Arn '${t}' needs to be assumed with web identity,`+` but no role assumption callback was provided.`,false)}return d({RoleArn:t,RoleSessionName:n!==null&&n!==void 0?n:`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:r,ProviderId:s,PolicyArns:i,Policy:a,DurationSeconds:c})};t.fromWebToken=fromWebToken},15646:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(35614),t);o.__exportStar(n(47905),t)},22545:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getHostHeaderPlugin=t.hostHeaderMiddlewareOptions=t.hostHeaderMiddleware=t.resolveHostHeaderConfig=void 0;const o=n(64418);function resolveHostHeaderConfig(e){return e}t.resolveHostHeaderConfig=resolveHostHeaderConfig;const hostHeaderMiddleware=e=>t=>async n=>{if(!o.HttpRequest.isInstance(n.request))return t(n);const{request:r}=n;const{handlerProtocol:s=""}=e.requestHandler.metadata||{};if(s.indexOf("h2")>=0&&!r.headers[":authority"]){delete r.headers["host"];r.headers[":authority"]=""}else if(!r.headers["host"]){let e=r.hostname;if(r.port!=null)e+=`:${r.port}`;r.headers["host"]=e}return t(n)};t.hostHeaderMiddleware=hostHeaderMiddleware;t.hostHeaderMiddlewareOptions={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:true};const getHostHeaderPlugin=e=>({applyToStack:n=>{n.add((0,t.hostHeaderMiddleware)(e),t.hostHeaderMiddlewareOptions)}});t.getHostHeaderPlugin=getHostHeaderPlugin},20014:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(9754),t)},9754:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getLoggerPlugin=t.loggerMiddlewareOptions=t.loggerMiddleware=void 0;const loggerMiddleware=()=>(e,t)=>async n=>{var o,r;try{const r=await e(n);const{clientName:s,commandName:i,logger:a,dynamoDbDocumentClientOptions:c={}}=t;const{overrideInputFilterSensitiveLog:d,overrideOutputFilterSensitiveLog:u}=c;const l=d!==null&&d!==void 0?d:t.inputFilterSensitiveLog;const p=u!==null&&u!==void 0?u:t.outputFilterSensitiveLog;const{$metadata:m,...f}=r.output;(o=a===null||a===void 0?void 0:a.info)===null||o===void 0?void 0:o.call(a,{clientName:s,commandName:i,input:l(n.input),output:p(f),metadata:m});return r}catch(e){const{clientName:o,commandName:s,logger:i,dynamoDbDocumentClientOptions:a={}}=t;const{overrideInputFilterSensitiveLog:c}=a;const d=c!==null&&c!==void 0?c:t.inputFilterSensitiveLog;(r=i===null||i===void 0?void 0:i.error)===null||r===void 0?void 0:r.call(i,{clientName:o,commandName:s,input:d(n.input),error:e,metadata:e.$metadata});throw e}};t.loggerMiddleware=loggerMiddleware;t.loggerMiddlewareOptions={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:true};const getLoggerPlugin=e=>({applyToStack:e=>{e.add((0,t.loggerMiddleware)(),t.loggerMiddlewareOptions)}});t.getLoggerPlugin=getLoggerPlugin},85525:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRecursionDetectionPlugin=t.addRecursionDetectionMiddlewareOptions=t.recursionDetectionMiddleware=void 0;const o=n(64418);const r="X-Amzn-Trace-Id";const s="AWS_LAMBDA_FUNCTION_NAME";const i="_X_AMZN_TRACE_ID";const recursionDetectionMiddleware=e=>t=>async n=>{const{request:a}=n;if(!o.HttpRequest.isInstance(a)||e.runtime!=="node"||a.headers.hasOwnProperty(r)){return t(n)}const c=process.env[s];const d=process.env[i];const nonEmptyString=e=>typeof e==="string"&&e.length>0;if(nonEmptyString(c)&&nonEmptyString(d)){a.headers[r]=d}return t({...n,request:a})};t.recursionDetectionMiddleware=recursionDetectionMiddleware;t.addRecursionDetectionMiddlewareOptions={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:true,priority:"low"};const getRecursionDetectionPlugin=e=>({applyToStack:n=>{n.add((0,t.recursionDetectionMiddleware)(e),t.addRecursionDetectionMiddlewareOptions)}});t.getRecursionDetectionPlugin=getRecursionDetectionPlugin},55959:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveStsAuthConfig=void 0;const o=n(14935);const resolveStsAuthConfig=(e,{stsClientCtor:t})=>(0,o.resolveAwsAuthConfig)({...e,stsClientCtor:t});t.resolveStsAuthConfig=resolveStsAuthConfig},84193:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveSigV4AuthConfig=t.resolveAwsAuthConfig=void 0;const o=n(79721);const r=n(11528);const s=n(2390);const i=3e5;const resolveAwsAuthConfig=e=>{const t=e.credentials?normalizeCredentialProvider(e.credentials):e.credentialDefaultProvider(e);const{signingEscapePath:n=true,systemClockOffset:o=e.systemClockOffset||0,sha256:i}=e;let a;if(e.signer){a=(0,s.normalizeProvider)(e.signer)}else if(e.regionInfoProvider){a=()=>(0,s.normalizeProvider)(e.region)().then((async t=>[await e.regionInfoProvider(t,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},t])).then((([o,s])=>{const{signingRegion:a,signingService:c}=o;e.signingRegion=e.signingRegion||a||s;e.signingName=e.signingName||c||e.serviceId;const d={...e,credentials:t,region:e.signingRegion,service:e.signingName,sha256:i,uriEscapePath:n};const u=e.signerConstructor||r.SignatureV4;return new u(d)}))}else{a=async o=>{o=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await(0,s.normalizeProvider)(e.region)(),properties:{}},o);const a=o.signingRegion;const c=o.signingName;e.signingRegion=e.signingRegion||a;e.signingName=e.signingName||c||e.serviceId;const d={...e,credentials:t,region:e.signingRegion,service:e.signingName,sha256:i,uriEscapePath:n};const u=e.signerConstructor||r.SignatureV4;return new u(d)}}return{...e,systemClockOffset:o,signingEscapePath:n,credentials:t,signer:a}};t.resolveAwsAuthConfig=resolveAwsAuthConfig;const resolveSigV4AuthConfig=e=>{const t=e.credentials?normalizeCredentialProvider(e.credentials):e.credentialDefaultProvider(e);const{signingEscapePath:n=true,systemClockOffset:o=e.systemClockOffset||0,sha256:i}=e;let a;if(e.signer){a=(0,s.normalizeProvider)(e.signer)}else{a=(0,s.normalizeProvider)(new r.SignatureV4({credentials:t,region:e.region,service:e.signingName,sha256:i,uriEscapePath:n}))}return{...e,systemClockOffset:o,signingEscapePath:n,credentials:t,signer:a}};t.resolveSigV4AuthConfig=resolveSigV4AuthConfig;const normalizeCredentialProvider=e=>{if(typeof e==="function"){return(0,o.memoize)(e,(e=>e.expiration!==undefined&&e.expiration.getTime()-Date.now()<i),(e=>e.expiration!==undefined))}return(0,s.normalizeProvider)(e)}},88053:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSigV4AuthPlugin=t.getAwsAuthPlugin=t.awsAuthMiddlewareOptions=t.awsAuthMiddleware=void 0;const o=n(64418);const r=n(68253);const s=n(35863);const awsAuthMiddleware=e=>(t,n)=>async function(i){var a,c,d,u;if(!o.HttpRequest.isInstance(i.request))return t(i);const l=(d=(c=(a=n.endpointV2)===null||a===void 0?void 0:a.properties)===null||c===void 0?void 0:c.authSchemes)===null||d===void 0?void 0:d[0];const p=(l===null||l===void 0?void 0:l.name)==="sigv4a"?(u=l===null||l===void 0?void 0:l.signingRegionSet)===null||u===void 0?void 0:u.join(","):undefined;const m=await e.signer(l);const f=await t({...i,request:await m.sign(i.request,{signingDate:(0,r.getSkewCorrectedDate)(e.systemClockOffset),signingRegion:p||n["signing_region"],signingService:n["signing_service"]})}).catch((t=>{var n;const o=(n=t.ServerTime)!==null&&n!==void 0?n:getDateHeader(t.$response);if(o){e.systemClockOffset=(0,s.getUpdatedSystemClockOffset)(o,e.systemClockOffset)}throw t}));const y=getDateHeader(f.response);if(y){e.systemClockOffset=(0,s.getUpdatedSystemClockOffset)(y,e.systemClockOffset)}return f};t.awsAuthMiddleware=awsAuthMiddleware;const getDateHeader=e=>{var t,n,r;return o.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:undefined};t.awsAuthMiddlewareOptions={name:"awsAuthMiddleware",tags:["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware",override:true};const getAwsAuthPlugin=e=>({applyToStack:n=>{n.addRelativeTo((0,t.awsAuthMiddleware)(e),t.awsAuthMiddlewareOptions)}});t.getAwsAuthPlugin=getAwsAuthPlugin;t.getSigV4AuthPlugin=t.getAwsAuthPlugin},14935:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(84193),t);o.__exportStar(n(88053),t)},68253:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSkewCorrectedDate=void 0;const getSkewCorrectedDate=e=>new Date(Date.now()+e);t.getSkewCorrectedDate=getSkewCorrectedDate},35863:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getUpdatedSystemClockOffset=void 0;const o=n(85301);const getUpdatedSystemClockOffset=(e,t)=>{const n=Date.parse(e);if((0,o.isClockSkewed)(n,t)){return n-Date.now()}return t};t.getUpdatedSystemClockOffset=getUpdatedSystemClockOffset},85301:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isClockSkewed=void 0;const o=n(68253);const isClockSkewed=(e,t)=>Math.abs((0,o.getSkewCorrectedDate)(t).getTime()-e)>=3e5;t.isClockSkewed=isClockSkewed},36546:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveUserAgentConfig=void 0;function resolveUserAgentConfig(e){return{...e,customUserAgent:typeof e.customUserAgent==="string"?[[e.customUserAgent]]:e.customUserAgent}}t.resolveUserAgentConfig=resolveUserAgentConfig},28025:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UA_ESCAPE_CHAR=t.UA_VALUE_ESCAPE_REGEX=t.UA_NAME_ESCAPE_REGEX=t.UA_NAME_SEPARATOR=t.SPACE=t.X_AMZ_USER_AGENT=t.USER_AGENT=void 0;t.USER_AGENT="user-agent";t.X_AMZ_USER_AGENT="x-amz-user-agent";t.SPACE=" ";t.UA_NAME_SEPARATOR="/";t.UA_NAME_ESCAPE_REGEX=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g;t.UA_VALUE_ESCAPE_REGEX=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g;t.UA_ESCAPE_CHAR="-"},64688:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(36546),t);o.__exportStar(n(76236),t)},76236:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getUserAgentPlugin=t.getUserAgentMiddlewareOptions=t.userAgentMiddleware=void 0;const o=n(13350);const r=n(64418);const s=n(28025);const userAgentMiddleware=e=>(t,n)=>async i=>{var a,c;const{request:d}=i;if(!r.HttpRequest.isInstance(d))return t(i);const{headers:u}=d;const l=((a=n===null||n===void 0?void 0:n.userAgent)===null||a===void 0?void 0:a.map(escapeUserAgent))||[];const p=(await e.defaultUserAgentProvider()).map(escapeUserAgent);const m=((c=e===null||e===void 0?void 0:e.customUserAgent)===null||c===void 0?void 0:c.map(escapeUserAgent))||[];const f=(0,o.getUserAgentPrefix)();const y=(f?[f]:[]).concat([...p,...l,...m]).join(s.SPACE);const g=[...p.filter((e=>e.startsWith("aws-sdk-"))),...m].join(s.SPACE);if(e.runtime!=="browser"){if(g){u[s.X_AMZ_USER_AGENT]=u[s.X_AMZ_USER_AGENT]?`${u[s.USER_AGENT]} ${g}`:g}u[s.USER_AGENT]=y}else{u[s.X_AMZ_USER_AGENT]=y}return t({...i,request:d})};t.userAgentMiddleware=userAgentMiddleware;const escapeUserAgent=e=>{var t;const n=e[0].split(s.UA_NAME_SEPARATOR).map((e=>e.replace(s.UA_NAME_ESCAPE_REGEX,s.UA_ESCAPE_CHAR))).join(s.UA_NAME_SEPARATOR);const o=(t=e[1])===null||t===void 0?void 0:t.replace(s.UA_VALUE_ESCAPE_REGEX,s.UA_ESCAPE_CHAR);const r=n.indexOf(s.UA_NAME_SEPARATOR);const i=n.substring(0,r);let a=n.substring(r+1);if(i==="api"){a=a.toLowerCase()}return[i,a,o].filter((e=>e&&e.length>0)).reduce(((e,t,n)=>{switch(n){case 0:return t;case 1:return`${e}/${t}`;default:return`${e}#${t}`}}),"")};t.getUserAgentMiddlewareOptions={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:true};const getUserAgentPlugin=e=>({applyToStack:n=>{n.add((0,t.userAgentMiddleware)(e),t.getUserAgentMiddlewareOptions)}});t.getUserAgentPlugin=getUserAgentPlugin},92242:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.REFRESH_MESSAGE=t.EXPIRE_WINDOW_MS=void 0;t.EXPIRE_WINDOW_MS=5*60*1e3;t.REFRESH_MESSAGE=`To refresh this SSO session run 'aws sso login' with the corresponding profile.`},85125:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromSso=void 0;const o=n(79721);const r=n(43507);const s=n(92242);const i=n(93601);const a=n(28418);const c=n(2488);const d=n(48552);const u=new Date(0);const fromSso=(e={})=>async()=>{const t=await(0,r.parseKnownFiles)(e);const n=(0,r.getProfileName)(e);const l=t[n];if(!l){throw new o.TokenProviderError(`Profile '${n}' could not be found in shared credentials file.`,false)}else if(!l["sso_session"]){throw new o.TokenProviderError(`Profile '${n}' is missing required property 'sso_session'.`)}const p=l["sso_session"];const m=await(0,r.loadSsoSessionData)(e);const f=m[p];if(!f){throw new o.TokenProviderError(`Sso session '${p}' could not be found in shared credentials file.`,false)}for(const e of["sso_start_url","sso_region"]){if(!f[e]){throw new o.TokenProviderError(`Sso session '${p}' is missing required property '${e}'.`,false)}}const y=f["sso_start_url"];const g=f["sso_region"];let h;try{h=await(0,r.getSSOTokenFromFile)(p)}catch(e){throw new o.TokenProviderError(`The SSO session token associated with profile=${n} was not found or is invalid. ${s.REFRESH_MESSAGE}`,false)}(0,c.validateTokenKey)("accessToken",h.accessToken);(0,c.validateTokenKey)("expiresAt",h.expiresAt);const{accessToken:E,expiresAt:_}=h;const v={token:E,expiration:new Date(_)};if(v.expiration.getTime()-Date.now()>s.EXPIRE_WINDOW_MS){return v}if(Date.now()-u.getTime()<30*1e3){(0,a.validateTokenExpiry)(v);return v}(0,c.validateTokenKey)("clientId",h.clientId,true);(0,c.validateTokenKey)("clientSecret",h.clientSecret,true);(0,c.validateTokenKey)("refreshToken",h.refreshToken,true);try{u.setTime(Date.now());const e=await(0,i.getNewSsoOidcToken)(h,g);(0,c.validateTokenKey)("accessToken",e.accessToken);(0,c.validateTokenKey)("expiresIn",e.expiresIn);const t=new Date(Date.now()+e.expiresIn*1e3);try{await(0,d.writeSSOTokenToFile)(p,{...h,accessToken:e.accessToken,expiresAt:t.toISOString(),refreshToken:e.refreshToken})}catch(e){}return{token:e.accessToken,expiration:t}}catch(e){(0,a.validateTokenExpiry)(v);return v}};t.fromSso=fromSso},63258:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromStatic=void 0;const o=n(79721);const fromStatic=({token:e})=>async()=>{if(!e||!e.token){throw new o.TokenProviderError(`Please pass a valid token to fromStatic`,false)}return e};t.fromStatic=fromStatic},93601:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getNewSsoOidcToken=void 0;const o=n(54527);const r=n(99775);const getNewSsoOidcToken=(e,t)=>{const n=(0,r.getSsoOidcClient)(t);return n.send(new o.CreateTokenCommand({clientId:e.clientId,clientSecret:e.clientSecret,refreshToken:e.refreshToken,grantType:"refresh_token"}))};t.getNewSsoOidcToken=getNewSsoOidcToken},99775:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSsoOidcClient=void 0;const o=n(54527);const r={};const getSsoOidcClient=e=>{if(r[e]){return r[e]}const t=new o.SSOOIDCClient({region:e});r[e]=t;return t};t.getSsoOidcClient=getSsoOidcClient},52843:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(85125),t);o.__exportStar(n(63258),t);o.__exportStar(n(70195),t)},70195:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.nodeProvider=void 0;const o=n(79721);const r=n(85125);const nodeProvider=(e={})=>(0,o.memoize)((0,o.chain)((0,r.fromSso)(e),(async()=>{throw new o.TokenProviderError("Could not load token from any providers",false)})),(e=>e.expiration!==undefined&&e.expiration.getTime()-Date.now()<3e5),(e=>e.expiration!==undefined));t.nodeProvider=nodeProvider},28418:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateTokenExpiry=void 0;const o=n(79721);const r=n(92242);const validateTokenExpiry=e=>{if(e.expiration&&e.expiration.getTime()<Date.now()){throw new o.TokenProviderError(`Token is expired. ${r.REFRESH_MESSAGE}`,false)}};t.validateTokenExpiry=validateTokenExpiry},2488:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateTokenKey=void 0;const o=n(79721);const r=n(92242);const validateTokenKey=(e,t,n=false)=>{if(typeof t==="undefined"){throw new o.TokenProviderError(`Value not present for '${e}' in SSO Token${n?". Cannot refresh":""}. ${r.REFRESH_MESSAGE}`,false)}};t.validateTokenKey=validateTokenKey},48552:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.writeSSOTokenToFile=void 0;const o=n(43507);const r=n(57147);const{writeFile:s}=r.promises;const writeSSOTokenToFile=(e,t)=>{const n=(0,o.getSSOTokenFilepath)(e);const r=JSON.stringify(t,null,2);return s(n,r)};t.writeSSOTokenToFile=writeSSOTokenToFile},52562:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},26913:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.HttpAuthLocation=void 0;var o=n(36424);Object.defineProperty(t,"HttpAuthLocation",{enumerable:true,get:function(){return o.HttpAuthLocation}})},14994:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},65861:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},76527:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},48470:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},28045:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},67736:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},13268:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},90142:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.HostAddressType=void 0;var n;(function(e){e["AAAA"]="AAAA";e["A"]="A"})(n=t.HostAddressType||(t.HostAddressType={}))},62338:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},99385:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.EndpointURLScheme=void 0;var o=n(36424);Object.defineProperty(t,"EndpointURLScheme",{enumerable:true,get:function(){return o.EndpointURLScheme}})},37521:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},61393:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},51821:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},92635:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},71301:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},21268:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},7192:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},10640:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(51821),t);o.__exportStar(n(92635),t);o.__exportStar(n(71301),t);o.__exportStar(n(21268),t);o.__exportStar(n(7192),t)},89029:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(52562),t);o.__exportStar(n(26913),t);o.__exportStar(n(14994),t);o.__exportStar(n(65861),t);o.__exportStar(n(76527),t);o.__exportStar(n(48470),t);o.__exportStar(n(28045),t);o.__exportStar(n(67736),t);o.__exportStar(n(13268),t);o.__exportStar(n(90142),t);o.__exportStar(n(62338),t);o.__exportStar(n(99385),t);o.__exportStar(n(37521),t);o.__exportStar(n(61393),t);o.__exportStar(n(10640),t);o.__exportStar(n(89910),t);o.__exportStar(n(36678),t);o.__exportStar(n(39931),t);o.__exportStar(n(42620),t);o.__exportStar(n(89062),t);o.__exportStar(n(89546),t);o.__exportStar(n(80316),t);o.__exportStar(n(57835),t);o.__exportStar(n(91678),t);o.__exportStar(n(93818),t);o.__exportStar(n(51991),t);o.__exportStar(n(24296),t);o.__exportStar(n(59416),t);o.__exportStar(n(92772),t);o.__exportStar(n(20134),t);o.__exportStar(n(34465),t)},89910:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},36678:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},39931:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},42620:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},89062:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},89546:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},80316:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},57835:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},91678:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},93818:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},51991:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},24296:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},59416:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RequestHandlerProtocol=void 0;var o=n(36424);Object.defineProperty(t,"RequestHandlerProtocol",{enumerable:true,get:function(){return o.RequestHandlerProtocol}})},92772:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},20134:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},34465:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},49015:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},42268:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.HttpAuthLocation=void 0;var n;(function(e){e["HEADER"]="header";e["QUERY"]="query"})(n=t.HttpAuthLocation||(t.HttpAuthLocation={}))},40109:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},24745:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},86373:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},82962:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},39891:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(82962),t);o.__exportStar(n(80847),t);o.__exportStar(n(31457),t)},80847:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},31457:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},26450:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},371:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},82836:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.EndpointURLScheme=void 0;var n;(function(e){e["HTTP"]="http";e["HTTPS"]="https"})(n=t.EndpointURLScheme||(t.EndpointURLScheme={}))},28633:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},12818:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},98737:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},85468:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},48275:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(28633),t);o.__exportStar(n(12818),t);o.__exportStar(n(98737),t);o.__exportStar(n(44093),t);o.__exportStar(n(85468),t)},44093:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},89946:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},16618:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.FieldPosition=void 0;var n;(function(e){e[e["HEADER"]=0]="HEADER";e[e["TRAILER"]=1]="TRAILER"})(n=t.FieldPosition||(t.FieldPosition={}))},42886:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},21861:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},62426:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(42886),t);o.__exportStar(n(21861),t)},36424:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(49015),t);o.__exportStar(n(42268),t);o.__exportStar(n(40109),t);o.__exportStar(n(24745),t);o.__exportStar(n(86373),t);o.__exportStar(n(39891),t);o.__exportStar(n(26450),t);o.__exportStar(n(371),t);o.__exportStar(n(82836),t);o.__exportStar(n(48275),t);o.__exportStar(n(89946),t);o.__exportStar(n(16618),t);o.__exportStar(n(62426),t);o.__exportStar(n(76543),t);o.__exportStar(n(46236),t);o.__exportStar(n(16464),t);o.__exportStar(n(89055),t);o.__exportStar(n(15474),t);o.__exportStar(n(44715),t);o.__exportStar(n(92701),t);o.__exportStar(n(39602),t);o.__exportStar(n(59674),t);o.__exportStar(n(16546),t);o.__exportStar(n(57898),t);o.__exportStar(n(48559),t);o.__exportStar(n(65436),t);o.__exportStar(n(34231),t)},76543:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},46236:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},16464:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},89055:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},15474:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},44715:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},92701:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},39602:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},59674:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},16546:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},57898:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RequestHandlerProtocol=void 0;var n;(function(e){e["HTTP_0_9"]="http/0.9";e["HTTP_1_0"]="http/1.0";e["TDS_8_0"]="tds/8.0"})(n=t.RequestHandlerProtocol||(t.RequestHandlerProtocol={}))},48559:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},65436:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},34231:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},81809:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.debugId=void 0;t.debugId="endpoints"},27617:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(81809),t);o.__exportStar(n(46833),t)},46833:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toDebugString=void 0;function toDebugString(e){if(typeof e!=="object"||e==null){return e}if("ref"in e){return`$${toDebugString(e.ref)}`}if("fn"in e){return`${e.fn}(${(e.argv||[]).map(toDebugString).join(", ")})`}return JSON.stringify(e,null,2)}t.toDebugString=toDebugString},13350:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(37482),t);o.__exportStar(n(73442),t);o.__exportStar(n(36563),t);o.__exportStar(n(57433),t)},46835:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(48079),t);o.__exportStar(n(34711),t);o.__exportStar(n(37482),t)},48079:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isVirtualHostableS3Bucket=void 0;const o=n(73442);const r=n(57373);const isVirtualHostableS3Bucket=(e,n=false)=>{if(n){for(const n of e.split(".")){if(!(0,t.isVirtualHostableS3Bucket)(n)){return false}}return true}if(!(0,r.isValidHostLabel)(e)){return false}if(e.length<3||e.length>63){return false}if(e!==e.toLowerCase()){return false}if((0,o.isIpAddress)(e)){return false}return true};t.isVirtualHostableS3Bucket=isVirtualHostableS3Bucket},34711:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseArn=void 0;const parseArn=e=>{const t=e.split(":");if(t.length<6)return null;const[n,o,r,s,i,...a]=t;if(n!=="arn"||o===""||r===""||a[0]==="")return null;return{partition:o,service:r,region:s,accountId:i,resourceId:a[0].includes("/")?a[0].split("/"):a}};t.parseArn=parseArn},37482:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getUserAgentPrefix=t.useDefaultPartitionInfo=t.setPartitionInfo=t.partition=void 0;const o=n(4351);const r=o.__importDefault(n(95367));let s=r.default;let i="";const partition=e=>{const{partitions:t}=s;for(const n of t){const{regions:t,outputs:o}=n;for(const[n,r]of Object.entries(t)){if(n===e){return{...o,...r}}}}for(const n of t){const{regionRegex:t,outputs:o}=n;if(new RegExp(t).test(e)){return{...o}}}const n=t.find((e=>e.id==="aws"));if(!n){throw new Error("Provided region was not found in the partition array or regex,"+" and default partition with id 'aws' doesn't exist.")}return{...n.outputs}};t.partition=partition;const setPartitionInfo=(e,t="")=>{s=e;i=t};t.setPartitionInfo=setPartitionInfo;const useDefaultPartitionInfo=()=>{(0,t.setPartitionInfo)(r.default,"")};t.useDefaultPartitionInfo=useDefaultPartitionInfo;const getUserAgentPrefix=()=>i;t.getUserAgentPrefix=getUserAgentPrefix},55370:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.booleanEquals=void 0;const booleanEquals=(e,t)=>e===t;t.booleanEquals=booleanEquals},20767:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getAttr=void 0;const o=n(57433);const r=n(81844);const getAttr=(e,t)=>(0,r.getAttrPathList)(t).reduce(((n,r)=>{if(typeof n!=="object"){throw new o.EndpointError(`Index '${r}' in '${t}' not found in '${JSON.stringify(e)}'`)}else if(Array.isArray(n)){return n[parseInt(r)]}return n[r]}),e);t.getAttr=getAttr},81844:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getAttrPathList=void 0;const o=n(57433);const getAttrPathList=e=>{const t=e.split(".");const n=[];for(const r of t){const t=r.indexOf("[");if(t!==-1){if(r.indexOf("]")!==r.length-1){throw new o.EndpointError(`Path: '${e}' does not end with ']'`)}const s=r.slice(t+1,-1);if(Number.isNaN(parseInt(s))){throw new o.EndpointError(`Invalid array index: '${s}' in path: '${e}'`)}if(t!==0){n.push(r.slice(0,t))}n.push(s)}else{n.push(r)}}return n};t.getAttrPathList=getAttrPathList},83188:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.aws=void 0;const o=n(4351);t.aws=o.__importStar(n(46835));o.__exportStar(n(55370),t);o.__exportStar(n(20767),t);o.__exportStar(n(78816),t);o.__exportStar(n(57373),t);o.__exportStar(n(29692),t);o.__exportStar(n(22780),t);o.__exportStar(n(55182),t);o.__exportStar(n(48305),t);o.__exportStar(n(6535),t)},73442:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isIpAddress=void 0;const n=new RegExp(`^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$`);const isIpAddress=e=>n.test(e)||e.startsWith("[")&&e.endsWith("]");t.isIpAddress=isIpAddress},78816:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isSet=void 0;const isSet=e=>e!=null;t.isSet=isSet},57373:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isValidHostLabel=void 0;const n=new RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`);const isValidHostLabel=(e,o=false)=>{if(!o){return n.test(e)}const r=e.split(".");for(const e of r){if(!(0,t.isValidHostLabel)(e)){return false}}return true};t.isValidHostLabel=isValidHostLabel},29692:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.not=void 0;const not=e=>!e;t.not=not},22780:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseURL=void 0;const o=n(89029);const r=n(73442);const s={[o.EndpointURLScheme.HTTP]:80,[o.EndpointURLScheme.HTTPS]:443};const parseURL=e=>{const t=(()=>{try{if(e instanceof URL){return e}if(typeof e==="object"&&"hostname"in e){const{hostname:t,port:n,protocol:o="",path:r="",query:s={}}=e;const i=new URL(`${o}//${t}${n?`:${n}`:""}${r}`);i.search=Object.entries(s).map((([e,t])=>`${e}=${t}`)).join("&");return i}return new URL(e)}catch(e){return null}})();if(!t){console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`);return null}const n=t.href;const{host:i,hostname:a,pathname:c,protocol:d,search:u}=t;if(u){return null}const l=d.slice(0,-1);if(!Object.values(o.EndpointURLScheme).includes(l)){return null}const p=(0,r.isIpAddress)(a);const m=n.includes(`${i}:${s[l]}`)||typeof e==="string"&&e.includes(`${i}:${s[l]}`);const f=`${i}${m?`:${s[l]}`:``}`;return{scheme:l,authority:f,path:c,normalizedPath:c.endsWith("/")?c:`${c}/`,isIp:p}};t.parseURL=parseURL},55182:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.stringEquals=void 0;const stringEquals=(e,t)=>e===t;t.stringEquals=stringEquals},48305:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.substring=void 0;const substring=(e,t,n,o)=>{if(t>=n||e.length<n){return null}if(!o){return e.substring(t,n)}return e.substring(e.length-n,e.length-t)};t.substring=substring},6535:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.uriEncode=void 0;const uriEncode=e=>encodeURIComponent(e).replace(/[!*'()]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`));t.uriEncode=uriEncode},36563:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveEndpoint=void 0;const o=n(27617);const r=n(57433);const s=n(81114);const resolveEndpoint=(e,t)=>{var n,i,a,c,d,u;const{endpointParams:l,logger:p}=t;const{parameters:m,rules:f}=e;(i=(n=t.logger)===null||n===void 0?void 0:n.debug)===null||i===void 0?void 0:i.call(n,`${o.debugId} Initial EndpointParams: ${(0,o.toDebugString)(l)}`);const y=Object.entries(m).filter((([,e])=>e.default!=null)).map((([e,t])=>[e,t.default]));if(y.length>0){for(const[e,t]of y){l[e]=(a=l[e])!==null&&a!==void 0?a:t}}const g=Object.entries(m).filter((([,e])=>e.required)).map((([e])=>e));for(const e of g){if(l[e]==null){throw new r.EndpointError(`Missing required parameter: '${e}'`)}}const h=(0,s.evaluateRules)(f,{endpointParams:l,logger:p,referenceRecord:{}});if((c=t.endpointParams)===null||c===void 0?void 0:c.Endpoint){try{const e=new URL(t.endpointParams.Endpoint);const{protocol:n,port:o}=e;h.url.protocol=n;h.url.port=o}catch(e){}}(u=(d=t.logger)===null||d===void 0?void 0:d.debug)===null||u===void 0?void 0:u.call(d,`${o.debugId} Resolved endpoint: ${(0,o.toDebugString)(h)}`);return h};t.resolveEndpoint=resolveEndpoint},82605:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.EndpointError=void 0;class EndpointError extends Error{constructor(e){super(e);this.name="EndpointError"}}t.EndpointError=EndpointError},21261:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},20312:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},56083:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},21767:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},57433:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(82605),t);o.__exportStar(n(21261),t);o.__exportStar(n(20312),t);o.__exportStar(n(56083),t);o.__exportStar(n(21767),t);o.__exportStar(n(41811),t)},41811:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},65075:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.callFunction=void 0;const o=n(4351);const r=o.__importStar(n(83188));const s=n(82980);const callFunction=({fn:e,argv:t},n)=>{const o=t.map((e=>["boolean","number"].includes(typeof e)?e:(0,s.evaluateExpression)(e,"arg",n)));return e.split(".").reduce(((e,t)=>e[t]),r)(...o)};t.callFunction=callFunction},77851:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.evaluateCondition=void 0;const o=n(27617);const r=n(57433);const s=n(65075);const evaluateCondition=({assign:e,...t},n)=>{var i,a;if(e&&e in n.referenceRecord){throw new r.EndpointError(`'${e}' is already defined in Reference Record.`)}const c=(0,s.callFunction)(t,n);(a=(i=n.logger)===null||i===void 0?void 0:i.debug)===null||a===void 0?void 0:a.call(i,o.debugId,`evaluateCondition: ${(0,o.toDebugString)(t)} = ${(0,o.toDebugString)(c)}`);return{result:c===""?true:!!c,...e!=null&&{toAssign:{name:e,value:c}}}};t.evaluateCondition=evaluateCondition},59169:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.evaluateConditions=void 0;const o=n(27617);const r=n(77851);const evaluateConditions=(e=[],t)=>{var n,s;const i={};for(const a of e){const{result:e,toAssign:c}=(0,r.evaluateCondition)(a,{...t,referenceRecord:{...t.referenceRecord,...i}});if(!e){return{result:e}}if(c){i[c.name]=c.value;(s=(n=t.logger)===null||n===void 0?void 0:n.debug)===null||s===void 0?void 0:s.call(n,o.debugId,`assign: ${c.name} := ${(0,o.toDebugString)(c.value)}`)}}return{result:true,referenceRecord:i}};t.evaluateConditions=evaluateConditions},35324:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.evaluateEndpointRule=void 0;const o=n(27617);const r=n(59169);const s=n(88268);const i=n(34973);const a=n(23602);const evaluateEndpointRule=(e,t)=>{var n,c;const{conditions:d,endpoint:u}=e;const{result:l,referenceRecord:p}=(0,r.evaluateConditions)(d,t);if(!l){return}const m={...t,referenceRecord:{...t.referenceRecord,...p}};const{url:f,properties:y,headers:g}=u;(c=(n=t.logger)===null||n===void 0?void 0:n.debug)===null||c===void 0?void 0:c.call(n,o.debugId,`Resolving endpoint from template: ${(0,o.toDebugString)(u)}`);return{...g!=undefined&&{headers:(0,s.getEndpointHeaders)(g,m)},...y!=undefined&&{properties:(0,i.getEndpointProperties)(y,m)},url:(0,a.getEndpointUrl)(f,m)}};t.evaluateEndpointRule=evaluateEndpointRule},12110:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.evaluateErrorRule=void 0;const o=n(57433);const r=n(59169);const s=n(82980);const evaluateErrorRule=(e,t)=>{const{conditions:n,error:i}=e;const{result:a,referenceRecord:c}=(0,r.evaluateConditions)(n,t);if(!a){return}throw new o.EndpointError((0,s.evaluateExpression)(i,"Error",{...t,referenceRecord:{...t.referenceRecord,...c}}))};t.evaluateErrorRule=evaluateErrorRule},82980:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.evaluateExpression=void 0;const o=n(57433);const r=n(65075);const s=n(57535);const i=n(68810);const evaluateExpression=(e,t,n)=>{if(typeof e==="string"){return(0,s.evaluateTemplate)(e,n)}else if(e["fn"]){return(0,r.callFunction)(e,n)}else if(e["ref"]){return(0,i.getReferenceValue)(e,n)}throw new o.EndpointError(`'${t}': ${String(e)} is not a string, function or reference.`)};t.evaluateExpression=evaluateExpression},59738:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.evaluateRules=void 0;const o=n(57433);const r=n(35324);const s=n(12110);const i=n(26587);const evaluateRules=(e,t)=>{for(const n of e){if(n.type==="endpoint"){const e=(0,r.evaluateEndpointRule)(n,t);if(e){return e}}else if(n.type==="error"){(0,s.evaluateErrorRule)(n,t)}else if(n.type==="tree"){const e=(0,i.evaluateTreeRule)(n,t);if(e){return e}}else{throw new o.EndpointError(`Unknown endpoint rule: ${n}`)}}throw new o.EndpointError(`Rules evaluation failed`)};t.evaluateRules=evaluateRules},57535:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.evaluateTemplate=void 0;const o=n(83188);const evaluateTemplate=(e,t)=>{const n=[];const r={...t.endpointParams,...t.referenceRecord};let s=0;while(s<e.length){const t=e.indexOf("{",s);if(t===-1){n.push(e.slice(s));break}n.push(e.slice(s,t));const i=e.indexOf("}",t);if(i===-1){n.push(e.slice(t));break}if(e[t+1]==="{"&&e[i+1]==="}"){n.push(e.slice(t+1,i));s=i+2}const a=e.substring(t+1,i);if(a.includes("#")){const[e,t]=a.split("#");n.push((0,o.getAttr)(r[e],t))}else{n.push(r[a])}s=i+1}return n.join("")};t.evaluateTemplate=evaluateTemplate},26587:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.evaluateTreeRule=void 0;const o=n(59169);const r=n(59738);const evaluateTreeRule=(e,t)=>{const{conditions:n,rules:s}=e;const{result:i,referenceRecord:a}=(0,o.evaluateConditions)(n,t);if(!i){return}return(0,r.evaluateRules)(s,{...t,referenceRecord:{...t.referenceRecord,...a}})};t.evaluateTreeRule=evaluateTreeRule},88268:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getEndpointHeaders=void 0;const o=n(57433);const r=n(82980);const getEndpointHeaders=(e,t)=>Object.entries(e).reduce(((e,[n,s])=>({...e,[n]:s.map((e=>{const s=(0,r.evaluateExpression)(e,"Header value entry",t);if(typeof s!=="string"){throw new o.EndpointError(`Header '${n}' value '${s}' is not a string`)}return s}))})),{});t.getEndpointHeaders=getEndpointHeaders},34973:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getEndpointProperties=void 0;const o=n(42978);const getEndpointProperties=(e,t)=>Object.entries(e).reduce(((e,[n,r])=>({...e,[n]:(0,o.getEndpointProperty)(r,t)})),{});t.getEndpointProperties=getEndpointProperties},42978:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getEndpointProperty=void 0;const o=n(57433);const r=n(57535);const s=n(34973);const getEndpointProperty=(e,n)=>{if(Array.isArray(e)){return e.map((e=>(0,t.getEndpointProperty)(e,n)))}switch(typeof e){case"string":return(0,r.evaluateTemplate)(e,n);case"object":if(e===null){throw new o.EndpointError(`Unexpected endpoint property: ${e}`)}return(0,s.getEndpointProperties)(e,n);case"boolean":return e;default:throw new o.EndpointError(`Unexpected endpoint property type: ${typeof e}`)}};t.getEndpointProperty=getEndpointProperty},23602:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getEndpointUrl=void 0;const o=n(57433);const r=n(82980);const getEndpointUrl=(e,t)=>{const n=(0,r.evaluateExpression)(e,"Endpoint URL",t);if(typeof n==="string"){try{return new URL(n)}catch(e){console.error(`Failed to construct URL with ${n}`,e);throw e}}throw new o.EndpointError(`Endpoint URL must be a string, got ${typeof n}`)};t.getEndpointUrl=getEndpointUrl},68810:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getReferenceValue=void 0;const getReferenceValue=({ref:e},t)=>{const n={...t.endpointParams,...t.referenceRecord};return n[e]};t.getReferenceValue=getReferenceValue},81114:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(59738),t)},98095:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultUserAgent=t.UA_APP_ID_INI_NAME=t.UA_APP_ID_ENV_NAME=void 0;const o=n(33461);const r=n(22037);const s=n(77282);const i=n(68390);t.UA_APP_ID_ENV_NAME="AWS_SDK_UA_APP_ID";t.UA_APP_ID_INI_NAME="sdk-ua-app-id";const defaultUserAgent=({serviceId:e,clientVersion:n})=>{const a=[["aws-sdk-js",n],["ua","2.0"],[`os/${(0,r.platform)()}`,(0,r.release)()],["lang/js"],["md/nodejs",`${s.versions.node}`]];const c=(0,i.isCrtAvailable)();if(c){a.push(c)}if(e){a.push([`api/${e}`,n])}if(s.env.AWS_EXECUTION_ENV){a.push([`exec-env/${s.env.AWS_EXECUTION_ENV}`])}const d=(0,o.loadConfig)({environmentVariableSelector:e=>e[t.UA_APP_ID_ENV_NAME],configFileSelector:e=>e[t.UA_APP_ID_INI_NAME],default:undefined})();let u=undefined;return async()=>{if(!u){const e=await d;u=e?[...a,[`app/${e}`]]:[...a]}return u}};t.defaultUserAgent=defaultUserAgent},68390:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isCrtAvailable=void 0;const isCrtAvailable=()=>{try{if(true&&n(87578)){return["md/crt-avail"]}return null}catch(e){return null}};t.isCrtAvailable=isCrtAvailable},28172:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toUtf8=t.fromUtf8=void 0;const o=n(21590);const r=n(89215);const fromUtf8=e=>typeof TextEncoder==="function"?(0,r.fromUtf8)(e):(0,o.fromUtf8)(e);t.fromUtf8=fromUtf8;const toUtf8=e=>typeof TextDecoder==="function"?(0,r.toUtf8)(e):(0,o.toUtf8)(e);t.toUtf8=toUtf8},21590:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toUtf8=t.fromUtf8=void 0;const fromUtf8=e=>{const t=[];for(let n=0,o=e.length;n<o;n++){const o=e.charCodeAt(n);if(o<128){t.push(o)}else if(o<2048){t.push(o>>6|192,o&63|128)}else if(n+1<e.length&&(o&64512)===55296&&(e.charCodeAt(n+1)&64512)===56320){const r=65536+((o&1023)<<10)+(e.charCodeAt(++n)&1023);t.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else{t.push(o>>12|224,o>>6&63|128,o&63|128)}}return Uint8Array.from(t)};t.fromUtf8=fromUtf8;const toUtf8=e=>{let t="";for(let n=0,o=e.length;n<o;n++){const o=e[n];if(o<128){t+=String.fromCharCode(o)}else if(192<=o&&o<224){const r=e[++n];t+=String.fromCharCode((o&31)<<6|r&63)}else if(240<=o&&o<365){const r=[o,e[++n],e[++n],e[++n]];const s="%"+r.map((e=>e.toString(16))).join("%");t+=decodeURIComponent(s)}else{t+=String.fromCharCode((o&15)<<12|(e[++n]&63)<<6|e[++n]&63)}}return t};t.toUtf8=toUtf8},89215:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toUtf8=t.fromUtf8=void 0;function fromUtf8(e){return(new TextEncoder).encode(e)}t.fromUtf8=fromUtf8;function toUtf8(e){return new TextDecoder("utf-8").decode(e)}t.toUtf8=toUtf8},91949:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var r=Object.getOwnPropertyDescriptor(t,n);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,r)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);r(t,e);return t};var i=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function fulfilled(e){try{step(o.next(e))}catch(e){r(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){r(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.Exec=void 0;const a=s(n(42186));const c=s(n(71514));class Exec{static exec(e,t,n){return i(this,void 0,void 0,(function*(){a.debug(`Exec.exec: ${e} ${t===null||t===void 0?void 0:t.join(" ")}`);return c.exec(e,t,n)}))}static getExecOutput(e,t,n){return i(this,void 0,void 0,(function*(){a.debug(`Exec.getExecOutput: ${e} ${t===null||t===void 0?void 0:t.join(" ")}`);return c.getExecOutput(e,t,n)}))}}t.Exec=Exec},56618:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var r=Object.getOwnPropertyDescriptor(t,n);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,r)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);r(t,e);return t};var i=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function fulfilled(e){try{step(o.next(e))}catch(e){r(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){r(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.run=void 0;const a=s(n(42186));const c=!!process.env["STATE_isPost"];if(!c){a.saveState("isPost","true")}function run(e,t){return i(this,void 0,void 0,(function*(){if(!c){try{yield e()}catch(e){a.setFailed(e.message)}}else if(t){yield t()}}))}t.run=run},43779:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS=t.DEFAULT_USE_DUALSTACK_ENDPOINT=t.CONFIG_USE_DUALSTACK_ENDPOINT=t.ENV_USE_DUALSTACK_ENDPOINT=void 0;const o=n(83375);t.ENV_USE_DUALSTACK_ENDPOINT="AWS_USE_DUALSTACK_ENDPOINT";t.CONFIG_USE_DUALSTACK_ENDPOINT="use_dualstack_endpoint";t.DEFAULT_USE_DUALSTACK_ENDPOINT=false;t.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>(0,o.booleanSelector)(e,t.ENV_USE_DUALSTACK_ENDPOINT,o.SelectorType.ENV),configFileSelector:e=>(0,o.booleanSelector)(e,t.CONFIG_USE_DUALSTACK_ENDPOINT,o.SelectorType.CONFIG),default:false}},17994:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS=t.DEFAULT_USE_FIPS_ENDPOINT=t.CONFIG_USE_FIPS_ENDPOINT=t.ENV_USE_FIPS_ENDPOINT=void 0;const o=n(83375);t.ENV_USE_FIPS_ENDPOINT="AWS_USE_FIPS_ENDPOINT";t.CONFIG_USE_FIPS_ENDPOINT="use_fips_endpoint";t.DEFAULT_USE_FIPS_ENDPOINT=false;t.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>(0,o.booleanSelector)(e,t.ENV_USE_FIPS_ENDPOINT,o.SelectorType.ENV),configFileSelector:e=>(0,o.booleanSelector)(e,t.CONFIG_USE_FIPS_ENDPOINT,o.SelectorType.CONFIG),default:false}},18421:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(43779),t);o.__exportStar(n(17994),t);o.__exportStar(n(37432),t);o.__exportStar(n(61892),t)},37432:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveCustomEndpointsConfig=void 0;const o=n(2390);const resolveCustomEndpointsConfig=e=>{var t,n;const{endpoint:r,urlParser:s}=e;return{...e,tls:(t=e.tls)!==null&&t!==void 0?t:true,endpoint:(0,o.normalizeProvider)(typeof r==="string"?s(r):r),isCustomEndpoint:true,useDualstackEndpoint:(0,o.normalizeProvider)((n=e.useDualstackEndpoint)!==null&&n!==void 0?n:false)}};t.resolveCustomEndpointsConfig=resolveCustomEndpointsConfig},61892:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveEndpointsConfig=void 0;const o=n(2390);const r=n(48570);const resolveEndpointsConfig=e=>{var t,n;const s=(0,o.normalizeProvider)((t=e.useDualstackEndpoint)!==null&&t!==void 0?t:false);const{endpoint:i,useFipsEndpoint:a,urlParser:c}=e;return{...e,tls:(n=e.tls)!==null&&n!==void 0?n:true,endpoint:i?(0,o.normalizeProvider)(typeof i==="string"?c(i):i):()=>(0,r.getEndpointFromRegion)({...e,useDualstackEndpoint:s,useFipsEndpoint:a}),isCustomEndpoint:!!i,useDualstackEndpoint:s}};t.resolveEndpointsConfig=resolveEndpointsConfig},48570:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getEndpointFromRegion=void 0;const getEndpointFromRegion=async e=>{var t;const{tls:n=true}=e;const o=await e.region();const r=new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/);if(!r.test(o)){throw new Error("Invalid region in client config")}const s=await e.useDualstackEndpoint();const i=await e.useFipsEndpoint();const{hostname:a}=(t=await e.regionInfoProvider(o,{useDualstackEndpoint:s,useFipsEndpoint:i}))!==null&&t!==void 0?t:{};if(!a){throw new Error("Cannot resolve hostname from client config")}return e.urlParser(`${n?"https:":"http:"}//${a}`)};t.getEndpointFromRegion=getEndpointFromRegion},53098:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(18421),t);o.__exportStar(n(221),t);o.__exportStar(n(86985),t)},33898:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NODE_REGION_CONFIG_FILE_OPTIONS=t.NODE_REGION_CONFIG_OPTIONS=t.REGION_INI_NAME=t.REGION_ENV_NAME=void 0;t.REGION_ENV_NAME="AWS_REGION";t.REGION_INI_NAME="region";t.NODE_REGION_CONFIG_OPTIONS={environmentVariableSelector:e=>e[t.REGION_ENV_NAME],configFileSelector:e=>e[t.REGION_INI_NAME],default:()=>{throw new Error("Region is missing")}};t.NODE_REGION_CONFIG_FILE_OPTIONS={preferredFile:"credentials"}},49506:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRealRegion=void 0;const o=n(43870);const getRealRegion=e=>(0,o.isFipsRegion)(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e;t.getRealRegion=getRealRegion},221:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(33898),t);o.__exportStar(n(87065),t)},43870:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isFipsRegion=void 0;const isFipsRegion=e=>typeof e==="string"&&(e.startsWith("fips-")||e.endsWith("-fips"));t.isFipsRegion=isFipsRegion},87065:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveRegionConfig=void 0;const o=n(49506);const r=n(43870);const resolveRegionConfig=e=>{const{region:t,useFipsEndpoint:n}=e;if(!t){throw new Error("Region is missing")}return{...e,region:async()=>{if(typeof t==="string"){return(0,o.getRealRegion)(t)}const e=await t();return(0,o.getRealRegion)(e)},useFipsEndpoint:async()=>{const e=typeof t==="string"?t:await t();if((0,r.isFipsRegion)(e)){return true}return typeof n!=="function"?Promise.resolve(!!n):n()}}};t.resolveRegionConfig=resolveRegionConfig},19814:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},14832:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},99760:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getHostnameFromVariants=void 0;const getHostnameFromVariants=(e=[],{useFipsEndpoint:t,useDualstackEndpoint:n})=>{var o;return(o=e.find((({tags:e})=>t===e.includes("fips")&&n===e.includes("dualstack"))))===null||o===void 0?void 0:o.hostname};t.getHostnameFromVariants=getHostnameFromVariants},77792:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRegionInfo=void 0;const o=n(99760);const r=n(1487);const s=n(44441);const i=n(92281);const getRegionInfo=(e,{useFipsEndpoint:t=false,useDualstackEndpoint:n=false,signingService:a,regionHash:c,partitionHash:d})=>{var u,l,p,m,f,y;const g=(0,s.getResolvedPartition)(e,{partitionHash:d});const h=e in c?e:(l=(u=d[g])===null||u===void 0?void 0:u.endpoint)!==null&&l!==void 0?l:e;const E={useFipsEndpoint:t,useDualstackEndpoint:n};const _=(0,o.getHostnameFromVariants)((p=c[h])===null||p===void 0?void 0:p.variants,E);const v=(0,o.getHostnameFromVariants)((m=d[g])===null||m===void 0?void 0:m.variants,E);const S=(0,r.getResolvedHostname)(h,{regionHostname:_,partitionHostname:v});if(S===undefined){throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:h,useFipsEndpoint:t,useDualstackEndpoint:n}}`)}const C=(0,i.getResolvedSigningRegion)(S,{signingRegion:(f=c[h])===null||f===void 0?void 0:f.signingRegion,regionRegex:d[g].regionRegex,useFipsEndpoint:t});return{partition:g,signingService:a,hostname:S,...C&&{signingRegion:C},...((y=c[h])===null||y===void 0?void 0:y.signingService)&&{signingService:c[h].signingService}}};t.getRegionInfo=getRegionInfo},1487:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getResolvedHostname=void 0;const getResolvedHostname=(e,{regionHostname:t,partitionHostname:n})=>t?t:n?n.replace("{region}",e):undefined;t.getResolvedHostname=getResolvedHostname},44441:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getResolvedPartition=void 0;const getResolvedPartition=(e,{partitionHash:t})=>{var n;return(n=Object.keys(t||{}).find((n=>t[n].regions.includes(e))))!==null&&n!==void 0?n:"aws"};t.getResolvedPartition=getResolvedPartition},92281:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getResolvedSigningRegion=void 0;const getResolvedSigningRegion=(e,{signingRegion:t,regionRegex:n,useFipsEndpoint:o})=>{if(t){return t}else if(o){const t=n.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\.");const o=e.match(t);if(o){return o[0].slice(1,-1)}}};t.getResolvedSigningRegion=getResolvedSigningRegion},86985:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(19814),t);o.__exportStar(n(14832),t);o.__exportStar(n(77792),t)},18044:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Endpoint=void 0;var n;(function(e){e["IPv4"]="http://169.254.169.254";e["IPv6"]="http://[fd00:ec2::254]"})(n=t.Endpoint||(t.Endpoint={}))},57342:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ENDPOINT_CONFIG_OPTIONS=t.CONFIG_ENDPOINT_NAME=t.ENV_ENDPOINT_NAME=void 0;t.ENV_ENDPOINT_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT";t.CONFIG_ENDPOINT_NAME="ec2_metadata_service_endpoint";t.ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>e[t.ENV_ENDPOINT_NAME],configFileSelector:e=>e[t.CONFIG_ENDPOINT_NAME],default:undefined}},80991:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.EndpointMode=void 0;var n;(function(e){e["IPv4"]="IPv4";e["IPv6"]="IPv6"})(n=t.EndpointMode||(t.EndpointMode={}))},88337:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ENDPOINT_MODE_CONFIG_OPTIONS=t.CONFIG_ENDPOINT_MODE_NAME=t.ENV_ENDPOINT_MODE_NAME=void 0;const o=n(80991);t.ENV_ENDPOINT_MODE_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";t.CONFIG_ENDPOINT_MODE_NAME="ec2_metadata_service_endpoint_mode";t.ENDPOINT_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[t.ENV_ENDPOINT_MODE_NAME],configFileSelector:e=>e[t.CONFIG_ENDPOINT_MODE_NAME],default:o.EndpointMode.IPv4}},89227:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromContainerMetadata=t.ENV_CMDS_AUTH_TOKEN=t.ENV_CMDS_RELATIVE_URI=t.ENV_CMDS_FULL_URI=void 0;const o=n(79721);const r=n(57310);const s=n(32199);const i=n(6894);const a=n(98533);const c=n(91351);t.ENV_CMDS_FULL_URI="AWS_CONTAINER_CREDENTIALS_FULL_URI";t.ENV_CMDS_RELATIVE_URI="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";t.ENV_CMDS_AUTH_TOKEN="AWS_CONTAINER_AUTHORIZATION_TOKEN";const fromContainerMetadata=(e={})=>{const{timeout:t,maxRetries:n}=(0,a.providerConfigFromInit)(e);return()=>(0,c.retry)((async()=>{const e=await getCmdsUri();const n=JSON.parse(await requestFromEcsImds(t,e));if(!(0,i.isImdsCredentials)(n)){throw new o.CredentialsProviderError("Invalid response received from instance metadata service.")}return(0,i.fromImdsCredentials)(n)}),n)};t.fromContainerMetadata=fromContainerMetadata;const requestFromEcsImds=async(e,n)=>{if(process.env[t.ENV_CMDS_AUTH_TOKEN]){n.headers={...n.headers,Authorization:process.env[t.ENV_CMDS_AUTH_TOKEN]}}const o=await(0,s.httpRequest)({...n,timeout:e});return o.toString()};const d="169.254.170.2";const u={localhost:true,"127.0.0.1":true};const l={"http:":true,"https:":true};const getCmdsUri=async()=>{if(process.env[t.ENV_CMDS_RELATIVE_URI]){return{hostname:d,path:process.env[t.ENV_CMDS_RELATIVE_URI]}}if(process.env[t.ENV_CMDS_FULL_URI]){const e=(0,r.parse)(process.env[t.ENV_CMDS_FULL_URI]);if(!e.hostname||!(e.hostname in u)){throw new o.CredentialsProviderError(`${e.hostname} is not a valid container metadata service hostname`,false)}if(!e.protocol||!(e.protocol in l)){throw new o.CredentialsProviderError(`${e.protocol} is not a valid container metadata service protocol`,false)}return{...e,port:e.port?parseInt(e.port,10):undefined}}throw new o.CredentialsProviderError("The container metadata credential provider cannot be used unless"+` the ${t.ENV_CMDS_RELATIVE_URI} or ${t.ENV_CMDS_FULL_URI} environment`+" variable is set",false)}},52207:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromInstanceMetadata=void 0;const o=n(79721);const r=n(32199);const s=n(6894);const i=n(98533);const a=n(91351);const c=n(92460);const d=n(74035);const u="/latest/meta-data/iam/security-credentials/";const l="/latest/api/token";const fromInstanceMetadata=(e={})=>(0,d.staticStabilityProvider)(getInstanceImdsProvider(e),{logger:e.logger});t.fromInstanceMetadata=fromInstanceMetadata;const getInstanceImdsProvider=e=>{let t=false;const{timeout:n,maxRetries:o}=(0,i.providerConfigFromInit)(e);const getCredentials=async(e,n)=>{const o=(await(0,a.retry)((async()=>{let e;try{e=await getProfile(n)}catch(e){if(e.statusCode===401){t=false}throw e}return e}),e)).trim();return(0,a.retry)((async()=>{let e;try{e=await getCredentialsFromProfile(o,n)}catch(e){if(e.statusCode===401){t=false}throw e}return e}),e)};return async()=>{const e=await(0,c.getInstanceMetadataEndpoint)();if(t){return getCredentials(o,{...e,timeout:n})}else{let r;try{r=(await getMetadataToken({...e,timeout:n})).toString()}catch(r){if((r===null||r===void 0?void 0:r.statusCode)===400){throw Object.assign(r,{message:"EC2 Metadata token request returned error"})}else if(r.message==="TimeoutError"||[403,404,405].includes(r.statusCode)){t=true}return getCredentials(o,{...e,timeout:n})}return getCredentials(o,{...e,headers:{"x-aws-ec2-metadata-token":r},timeout:n})}}};const getMetadataToken=async e=>(0,r.httpRequest)({...e,path:l,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}});const getProfile=async e=>(await(0,r.httpRequest)({...e,path:u})).toString();const getCredentialsFromProfile=async(e,t)=>{const n=JSON.parse((await(0,r.httpRequest)({...t,path:u+e})).toString());if(!(0,s.isImdsCredentials)(n)){throw new o.CredentialsProviderError("Invalid response received from instance metadata service.")}return(0,s.fromImdsCredentials)(n)}},7477:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getInstanceMetadataEndpoint=t.httpRequest=void 0;const o=n(4351);o.__exportStar(n(89227),t);o.__exportStar(n(52207),t);o.__exportStar(n(98533),t);o.__exportStar(n(45036),t);var r=n(32199);Object.defineProperty(t,"httpRequest",{enumerable:true,get:function(){return r.httpRequest}});var s=n(92460);Object.defineProperty(t,"getInstanceMetadataEndpoint",{enumerable:true,get:function(){return s.getInstanceMetadataEndpoint}})},6894:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromImdsCredentials=t.isImdsCredentials=void 0;const isImdsCredentials=e=>Boolean(e)&&typeof e==="object"&&typeof e.AccessKeyId==="string"&&typeof e.SecretAccessKey==="string"&&typeof e.Token==="string"&&typeof e.Expiration==="string";t.isImdsCredentials=isImdsCredentials;const fromImdsCredentials=e=>({accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:new Date(e.Expiration)});t.fromImdsCredentials=fromImdsCredentials},98533:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.providerConfigFromInit=t.DEFAULT_MAX_RETRIES=t.DEFAULT_TIMEOUT=void 0;t.DEFAULT_TIMEOUT=1e3;t.DEFAULT_MAX_RETRIES=0;const providerConfigFromInit=({maxRetries:e=t.DEFAULT_MAX_RETRIES,timeout:n=t.DEFAULT_TIMEOUT})=>({maxRetries:e,timeout:n});t.providerConfigFromInit=providerConfigFromInit},32199:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.httpRequest=void 0;const o=n(79721);const r=n(14300);const s=n(13685);function httpRequest(e){return new Promise(((t,n)=>{var i;const a=(0,s.request)({method:"GET",...e,hostname:(i=e.hostname)===null||i===void 0?void 0:i.replace(/^\[(.+)\]$/,"$1")});a.on("error",(e=>{n(Object.assign(new o.ProviderError("Unable to connect to instance metadata service"),e));a.destroy()}));a.on("timeout",(()=>{n(new o.ProviderError("TimeoutError from instance metadata service"));a.destroy()}));a.on("response",(e=>{const{statusCode:s=400}=e;if(s<200||300<=s){n(Object.assign(new o.ProviderError("Error response received from instance metadata service"),{statusCode:s}));a.destroy()}const i=[];e.on("data",(e=>{i.push(e)}));e.on("end",(()=>{t(r.Buffer.concat(i));a.destroy()}))}));a.end()}))}t.httpRequest=httpRequest},91351:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.retry=void 0;const retry=(e,t)=>{let n=e();for(let o=0;o<t;o++){n=n.catch(e)}return n};t.retry=retry},45036:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},22666:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getExtendedInstanceMetadataCredentials=void 0;const n=5*60;const o=5*60;const r="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html";const getExtendedInstanceMetadataCredentials=(e,t)=>{var s;const i=n+Math.floor(Math.random()*o);const a=new Date(Date.now()+i*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: "+r);const c=(s=e.originalExpiration)!==null&&s!==void 0?s:e.expiration;return{...e,...c?{originalExpiration:c}:{},expiration:a}};t.getExtendedInstanceMetadataCredentials=getExtendedInstanceMetadataCredentials},92460:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getInstanceMetadataEndpoint=void 0;const o=n(33461);const r=n(14681);const s=n(18044);const i=n(57342);const a=n(80991);const c=n(88337);const getInstanceMetadataEndpoint=async()=>(0,r.parseUrl)(await getFromEndpointConfig()||await getFromEndpointModeConfig());t.getInstanceMetadataEndpoint=getInstanceMetadataEndpoint;const getFromEndpointConfig=async()=>(0,o.loadConfig)(i.ENDPOINT_CONFIG_OPTIONS)();const getFromEndpointModeConfig=async()=>{const e=await(0,o.loadConfig)(c.ENDPOINT_MODE_CONFIG_OPTIONS)();switch(e){case a.EndpointMode.IPv4:return s.Endpoint.IPv4;case a.EndpointMode.IPv6:return s.Endpoint.IPv6;default:throw new Error(`Unsupported endpoint mode: ${e}.`+` Select from ${Object.values(a.EndpointMode)}`)}}},74035:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.staticStabilityProvider=void 0;const o=n(22666);const staticStabilityProvider=(e,t={})=>{const n=(t===null||t===void 0?void 0:t.logger)||console;let r;return async()=>{let t;try{t=await e();if(t.expiration&&t.expiration.getTime()<Date.now()){t=(0,o.getExtendedInstanceMetadataCredentials)(t,n)}}catch(e){if(r){n.warn("Credential renew failed: ",e);t=(0,o.getExtendedInstanceMetadataCredentials)(r,n)}else{throw e}}r=t;return t}};t.staticStabilityProvider=staticStabilityProvider},11014:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.EventStreamCodec=void 0;const o=n(47327);const r=n(74712);const s=n(20597);class EventStreamCodec{constructor(e,t){this.headerMarshaller=new r.HeaderMarshaller(e,t);this.messageBuffer=[];this.isEndOfStream=false}feed(e){this.messageBuffer.push(this.decode(e))}endOfStream(){this.isEndOfStream=true}getMessage(){const e=this.messageBuffer.pop();const t=this.isEndOfStream;return{getMessage(){return e},isEndOfStream(){return t}}}getAvailableMessages(){const e=this.messageBuffer;this.messageBuffer=[];const t=this.isEndOfStream;return{getMessages(){return e},isEndOfStream(){return t}}}encode({headers:e,body:t}){const n=this.headerMarshaller.format(e);const r=n.byteLength+t.byteLength+16;const s=new Uint8Array(r);const i=new DataView(s.buffer,s.byteOffset,s.byteLength);const a=new o.Crc32;i.setUint32(0,r,false);i.setUint32(4,n.byteLength,false);i.setUint32(8,a.update(s.subarray(0,8)).digest(),false);s.set(n,12);s.set(t,n.byteLength+12);i.setUint32(r-4,a.update(s.subarray(8,r-4)).digest(),false);return s}decode(e){const{headers:t,body:n}=(0,s.splitMessage)(e);return{headers:this.headerMarshaller.parse(t),body:n}}formatHeaders(e){return this.headerMarshaller.format(e)}}t.EventStreamCodec=EventStreamCodec},74712:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.HeaderMarshaller=void 0;const o=n(45364);const r=n(46086);class HeaderMarshaller{constructor(e,t){this.toUtf8=e;this.fromUtf8=t}format(e){const t=[];for(const n of Object.keys(e)){const o=this.fromUtf8(n);t.push(Uint8Array.from([o.byteLength]),o,this.formatHeaderValue(e[n]))}const n=new Uint8Array(t.reduce(((e,t)=>e+t.byteLength),0));let o=0;for(const e of t){n.set(e,o);o+=e.byteLength}return n}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":const t=new DataView(new ArrayBuffer(3));t.setUint8(0,3);t.setInt16(1,e.value,false);return new Uint8Array(t.buffer);case"integer":const n=new DataView(new ArrayBuffer(5));n.setUint8(0,4);n.setInt32(1,e.value,false);return new Uint8Array(n.buffer);case"long":const s=new Uint8Array(9);s[0]=5;s.set(e.value.bytes,1);return s;case"binary":const i=new DataView(new ArrayBuffer(3+e.value.byteLength));i.setUint8(0,6);i.setUint16(1,e.value.byteLength,false);const a=new Uint8Array(i.buffer);a.set(e.value,3);return a;case"string":const c=this.fromUtf8(e.value);const d=new DataView(new ArrayBuffer(3+c.byteLength));d.setUint8(0,7);d.setUint16(1,c.byteLength,false);const u=new Uint8Array(d.buffer);u.set(c,3);return u;case"timestamp":const l=new Uint8Array(9);l[0]=8;l.set(r.Int64.fromNumber(e.value.valueOf()).bytes,1);return l;case"uuid":if(!y.test(e.value)){throw new Error(`Invalid UUID received: ${e.value}`)}const p=new Uint8Array(17);p[0]=9;p.set((0,o.fromHex)(e.value.replace(/\-/g,"")),1);return p}}parse(e){const t={};let n=0;while(n<e.byteLength){const s=e.getUint8(n++);const y=this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+n,s));n+=s;switch(e.getUint8(n++)){case 0:t[y]={type:i,value:true};break;case 1:t[y]={type:i,value:false};break;case 2:t[y]={type:a,value:e.getInt8(n++)};break;case 3:t[y]={type:c,value:e.getInt16(n,false)};n+=2;break;case 4:t[y]={type:d,value:e.getInt32(n,false)};n+=4;break;case 5:t[y]={type:u,value:new r.Int64(new Uint8Array(e.buffer,e.byteOffset+n,8))};n+=8;break;case 6:const s=e.getUint16(n,false);n+=2;t[y]={type:l,value:new Uint8Array(e.buffer,e.byteOffset+n,s)};n+=s;break;case 7:const g=e.getUint16(n,false);n+=2;t[y]={type:p,value:this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+n,g))};n+=g;break;case 8:t[y]={type:m,value:new Date(new r.Int64(new Uint8Array(e.buffer,e.byteOffset+n,8)).valueOf())};n+=8;break;case 9:const h=new Uint8Array(e.buffer,e.byteOffset+n,16);n+=16;t[y]={type:f,value:`${(0,o.toHex)(h.subarray(0,4))}-${(0,o.toHex)(h.subarray(4,6))}-${(0,o.toHex)(h.subarray(6,8))}-${(0,o.toHex)(h.subarray(8,10))}-${(0,o.toHex)(h.subarray(10))}`};break;default:throw new Error(`Unrecognized header type tag`)}}return t}}t.HeaderMarshaller=HeaderMarshaller;var s;(function(e){e[e["boolTrue"]=0]="boolTrue";e[e["boolFalse"]=1]="boolFalse";e[e["byte"]=2]="byte";e[e["short"]=3]="short";e[e["integer"]=4]="integer";e[e["long"]=5]="long";e[e["byteArray"]=6]="byteArray";e[e["string"]=7]="string";e[e["timestamp"]=8]="timestamp";e[e["uuid"]=9]="uuid"})(s||(s={}));const i="boolean";const a="byte";const c="short";const d="integer";const u="long";const l="binary";const p="string";const m="timestamp";const f="uuid";const y=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/},46086:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Int64=void 0;const o=n(45364);class Int64{constructor(e){this.bytes=e;if(e.byteLength!==8){throw new Error("Int64 buffers must be exactly 8 bytes")}}static fromNumber(e){if(e>0x8000000000000000||e<-0x8000000000000000){throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`)}const t=new Uint8Array(8);for(let n=7,o=Math.abs(Math.round(e));n>-1&&o>0;n--,o/=256){t[n]=o}if(e<0){negate(t)}return new Int64(t)}valueOf(){const e=this.bytes.slice(0);const t=e[0]&128;if(t){negate(e)}return parseInt((0,o.toHex)(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}t.Int64=Int64;function negate(e){for(let t=0;t<8;t++){e[t]^=255}for(let t=7;t>-1;t--){e[t]++;if(e[t]!==0)break}}},73684:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},57255:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MessageDecoderStream=void 0;class MessageDecoderStream{constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.inputStream){const t=this.options.decoder.decode(e);yield t}}}t.MessageDecoderStream=MessageDecoderStream},52362:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MessageEncoderStream=void 0;class MessageEncoderStream{constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.messageStream){const t=this.options.encoder.encode(e);yield t}if(this.options.includeEndFrame){yield new Uint8Array(0)}}}t.MessageEncoderStream=MessageEncoderStream},62379:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SmithyMessageDecoderStream=void 0;class SmithyMessageDecoderStream{constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.messageStream){const t=await this.options.deserializer(e);if(t===undefined)continue;yield t}}}t.SmithyMessageDecoderStream=SmithyMessageDecoderStream},12484:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SmithyMessageEncoderStream=void 0;class SmithyMessageEncoderStream{constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.inputStream){const t=this.options.serializer(e);yield t}}}t.SmithyMessageEncoderStream=SmithyMessageEncoderStream},56459:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(11014),t);o.__exportStar(n(74712),t);o.__exportStar(n(46086),t);o.__exportStar(n(73684),t);o.__exportStar(n(57255),t);o.__exportStar(n(52362),t);o.__exportStar(n(62379),t);o.__exportStar(n(12484),t)},20597:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.splitMessage=void 0;const o=n(47327);const r=4;const s=r*2;const i=4;const a=s+i*2;function splitMessage({byteLength:e,byteOffset:t,buffer:n}){if(e<a){throw new Error("Provided message too short to accommodate event stream message overhead")}const c=new DataView(n,t,e);const d=c.getUint32(0,false);if(e!==d){throw new Error("Reported message length does not match received message length")}const u=c.getUint32(r,false);const l=c.getUint32(s,false);const p=c.getUint32(e-i,false);const m=(new o.Crc32).update(new Uint8Array(n,t,s));if(l!==m.digest()){throw new Error(`The prelude checksum specified in the message (${l}) does not match the calculated CRC32 checksum (${m.digest()})`)}m.update(new Uint8Array(n,t+s,e-(s+i)));if(p!==m.digest()){throw new Error(`The message checksum (${m.digest()}) did not match the expected value of ${p}`)}return{headers:new DataView(n,t+s+i,u),body:new Uint8Array(n,t+s+i+u,d-u-(s+i+i))}}t.splitMessage=splitMessage},3081:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Hash=void 0;const o=n(31381);const r=n(41895);const s=n(14300);const i=n(6113);class Hash{constructor(e,t){this.algorithmIdentifier=e;this.secret=t;this.reset()}update(e,t){this.hash.update((0,r.toUint8Array)(castSourceData(e,t)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?(0,i.createHmac)(this.algorithmIdentifier,castSourceData(this.secret)):(0,i.createHash)(this.algorithmIdentifier)}}t.Hash=Hash;function castSourceData(e,t){if(s.Buffer.isBuffer(e)){return e}if(typeof e==="string"){return(0,o.fromString)(e,t)}if(ArrayBuffer.isView(e)){return(0,o.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength)}return(0,o.fromArrayBuffer)(e)}},10780:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isArrayBuffer=void 0;const isArrayBuffer=e=>typeof ArrayBuffer==="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]";t.isArrayBuffer=isArrayBuffer},82800:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getContentLengthPlugin=t.contentLengthMiddlewareOptions=t.contentLengthMiddleware=void 0;const o=n(64418);const r="content-length";function contentLengthMiddleware(e){return t=>async n=>{const s=n.request;if(o.HttpRequest.isInstance(s)){const{body:t,headers:n}=s;if(t&&Object.keys(n).map((e=>e.toLowerCase())).indexOf(r)===-1){try{const n=e(t);s.headers={...s.headers,[r]:String(n)}}catch(e){}}}return t({...n,request:s})}}t.contentLengthMiddleware=contentLengthMiddleware;t.contentLengthMiddlewareOptions={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:true};const getContentLengthPlugin=e=>({applyToStack:n=>{n.add(contentLengthMiddleware(e.bodyLengthChecker),t.contentLengthMiddlewareOptions)}});t.getContentLengthPlugin=getContentLengthPlugin},465:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createConfigValueProvider=void 0;const createConfigValueProvider=(e,t,n)=>{const configProvider=async()=>{var o;const r=(o=n[e])!==null&&o!==void 0?o:n[t];if(typeof r==="function"){return r()}return r};if(e==="endpoint"||t==="endpoint"){return async()=>{const e=await configProvider();if(e&&typeof e==="object"){if("url"in e){return e.url.href}if("hostname"in e){const{protocol:t,hostname:n,port:o,path:r}=e;return`${t}//${n}${o?":"+o:""}${r}`}}return e}}return configProvider};t.createConfigValueProvider=createConfigValueProvider},73929:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveParams=t.getEndpointFromInstructions=void 0;const o=n(13105);const r=n(465);const getEndpointFromInstructions=async(e,n,o,r)=>{const s=await(0,t.resolveParams)(e,n,o);if(typeof o.endpointProvider!=="function"){throw new Error("config.endpointProvider is not set.")}const i=o.endpointProvider(s,r);return i};t.getEndpointFromInstructions=getEndpointFromInstructions;const resolveParams=async(e,t,n)=>{var s;const i={};const a=((s=t===null||t===void 0?void 0:t.getEndpointParameterInstructions)===null||s===void 0?void 0:s.call(t))||{};for(const[t,o]of Object.entries(a)){switch(o.type){case"staticContextParams":i[t]=o.value;break;case"contextParams":i[t]=e[o.name];break;case"clientContextParams":case"builtInParams":i[t]=await(0,r.createConfigValueProvider)(o.name,t,n)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(o))}}if(Object.keys(a).length===0){Object.assign(i,n)}if(String(n.serviceId).toLowerCase()==="s3"){await(0,o.resolveParamsForS3)(i)}return i};t.resolveParams=resolveParams},50890:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(73929),t);o.__exportStar(n(38938),t)},38938:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toEndpointV1=void 0;const o=n(14681);const toEndpointV1=e=>{if(typeof e==="object"){if("url"in e){return(0,o.parseUrl)(e.url)}return e}return(0,o.parseUrl)(e)};t.toEndpointV1=toEndpointV1},55520:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.endpointMiddleware=void 0;const o=n(73929);const endpointMiddleware=({config:e,instructions:t})=>(n,r)=>async s=>{var i,a;const c=await(0,o.getEndpointFromInstructions)(s.input,{getEndpointParameterInstructions(){return t}},{...e},r);r.endpointV2=c;r.authSchemes=(i=c.properties)===null||i===void 0?void 0:i.authSchemes;const d=(a=r.authSchemes)===null||a===void 0?void 0:a[0];if(d){r["signing_region"]=d.signingRegion;r["signing_service"]=d.signingName}return n({...s})};t.endpointMiddleware=endpointMiddleware},71329:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getEndpointPlugin=t.endpointMiddlewareOptions=void 0;const o=n(81238);const r=n(55520);t.endpointMiddlewareOptions={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:true,relation:"before",toMiddleware:o.serializerMiddlewareOption.name};const getEndpointPlugin=(e,n)=>({applyToStack:o=>{o.addRelativeTo((0,r.endpointMiddleware)({config:e,instructions:n}),t.endpointMiddlewareOptions)}});t.getEndpointPlugin=getEndpointPlugin},82918:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(50890),t);o.__exportStar(n(55520),t);o.__exportStar(n(71329),t);o.__exportStar(n(74139),t);o.__exportStar(n(39720),t)},74139:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveEndpointConfig=void 0;const o=n(2390);const r=n(38938);const resolveEndpointConfig=e=>{var t,n,s;const i=(t=e.tls)!==null&&t!==void 0?t:true;const{endpoint:a}=e;const c=a!=null?async()=>(0,r.toEndpointV1)(await(0,o.normalizeProvider)(a)()):undefined;const d=!!a;return{...e,endpoint:c,tls:i,isCustomEndpoint:d,useDualstackEndpoint:(0,o.normalizeProvider)((n=e.useDualstackEndpoint)!==null&&n!==void 0?n:false),useFipsEndpoint:(0,o.normalizeProvider)((s=e.useFipsEndpoint)!==null&&s!==void 0?s:false)}};t.resolveEndpointConfig=resolveEndpointConfig},13105:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(19194),t)},19194:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isArnBucketName=t.isDnsCompatibleBucketName=t.S3_HOSTNAME_PATTERN=t.DOT_PATTERN=t.resolveParamsForS3=void 0;const resolveParamsForS3=async e=>{const n=(e===null||e===void 0?void 0:e.Bucket)||"";if(typeof e.Bucket==="string"){e.Bucket=n.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))}if((0,t.isArnBucketName)(n)){if(e.ForcePathStyle===true){throw new Error("Path-style addressing cannot be used with ARN buckets")}}else if(!(0,t.isDnsCompatibleBucketName)(n)||n.indexOf(".")!==-1&&!String(e.Endpoint).startsWith("http:")||n.toLowerCase()!==n||n.length<3){e.ForcePathStyle=true}if(e.DisableMultiRegionAccessPoints){e.disableMultiRegionAccessPoints=true;e.DisableMRAP=true}return e};t.resolveParamsForS3=resolveParamsForS3;const n=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/;const o=/(\d+\.){3}\d+/;const r=/\.\./;t.DOT_PATTERN=/\./;t.S3_HOSTNAME_PATTERN=/^(.+\.)?s3(-fips)?(\.dualstack)?[.-]([a-z0-9-]+)\./;const isDnsCompatibleBucketName=e=>n.test(e)&&!o.test(e)&&!r.test(e);t.isDnsCompatibleBucketName=isDnsCompatibleBucketName;const isArnBucketName=e=>{const[t,n,o,r,s,i]=e.split(":");const a=t==="arn"&&e.split(":").length>=6;const c=[t,n,o,s,i].filter(Boolean).length===5;if(a&&!c){throw new Error(`Invalid ARN: ${e} was an invalid ARN.`)}return t==="arn"&&!!n&&!!o&&!!s&&!!i};t.isArnBucketName=isArnBucketName},39720:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},80155:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AdaptiveRetryStrategy=void 0;const o=n(84902);const r=n(94582);class AdaptiveRetryStrategy extends r.StandardRetryStrategy{constructor(e,t){const{rateLimiter:n,...r}=t!==null&&t!==void 0?t:{};super(e,r);this.rateLimiter=n!==null&&n!==void 0?n:new o.DefaultRateLimiter;this.mode=o.RETRY_MODES.ADAPTIVE}async retry(e,t){return super.retry(e,t,{beforeRequest:async()=>this.rateLimiter.getSendToken(),afterRequest:e=>{this.rateLimiter.updateClientSendingRate(e)}})}}t.AdaptiveRetryStrategy=AdaptiveRetryStrategy},94582:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StandardRetryStrategy=void 0;const o=n(64418);const r=n(6375);const s=n(84902);const i=n(75840);const a=n(29991);const c=n(9465);const d=n(67653);const u=n(42827);class StandardRetryStrategy{constructor(e,t){var n,o,r;this.maxAttemptsProvider=e;this.mode=s.RETRY_MODES.STANDARD;this.retryDecider=(n=t===null||t===void 0?void 0:t.retryDecider)!==null&&n!==void 0?n:d.defaultRetryDecider;this.delayDecider=(o=t===null||t===void 0?void 0:t.delayDecider)!==null&&o!==void 0?o:c.defaultDelayDecider;this.retryQuota=(r=t===null||t===void 0?void 0:t.retryQuota)!==null&&r!==void 0?r:(0,a.getDefaultRetryQuota)(s.INITIAL_RETRY_TOKENS)}shouldRetry(e,t,n){return t<n&&this.retryDecider(e)&&this.retryQuota.hasRetryTokens(e)}async getMaxAttempts(){let e;try{e=await this.maxAttemptsProvider()}catch(t){e=s.DEFAULT_MAX_ATTEMPTS}return e}async retry(e,t,n){let a;let c=0;let d=0;const l=await this.getMaxAttempts();const{request:p}=t;if(o.HttpRequest.isInstance(p)){p.headers[s.INVOCATION_ID_HEADER]=(0,i.v4)()}while(true){try{if(o.HttpRequest.isInstance(p)){p.headers[s.REQUEST_HEADER]=`attempt=${c+1}; max=${l}`}if(n===null||n===void 0?void 0:n.beforeRequest){await n.beforeRequest()}const{response:r,output:i}=await e(t);if(n===null||n===void 0?void 0:n.afterRequest){n.afterRequest(r)}this.retryQuota.releaseRetryTokens(a);i.$metadata.attempts=c+1;i.$metadata.totalRetryDelay=d;return{response:r,output:i}}catch(e){const t=(0,u.asSdkError)(e);c++;if(this.shouldRetry(t,c,l)){a=this.retryQuota.retrieveRetryTokens(t);const e=this.delayDecider((0,r.isThrottlingError)(t)?s.THROTTLING_RETRY_DELAY_BASE:s.DEFAULT_RETRY_DELAY_BASE,c);const n=getDelayFromRetryAfterHeader(t.$response);const o=Math.max(n||0,e);d+=o;await new Promise((e=>setTimeout(e,o)));continue}if(!t.$metadata){t.$metadata={}}t.$metadata.attempts=c;t.$metadata.totalRetryDelay=d;throw t}}}}t.StandardRetryStrategy=StandardRetryStrategy;const getDelayFromRetryAfterHeader=e=>{if(!o.HttpResponse.isInstance(e))return;const t=Object.keys(e.headers).find((e=>e.toLowerCase()==="retry-after"));if(!t)return;const n=e.headers[t];const r=Number(n);if(!Number.isNaN(r))return r*1e3;const s=new Date(n);return s.getTime()-Date.now()}},58709:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NODE_RETRY_MODE_CONFIG_OPTIONS=t.CONFIG_RETRY_MODE=t.ENV_RETRY_MODE=t.resolveRetryConfig=t.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=t.CONFIG_MAX_ATTEMPTS=t.ENV_MAX_ATTEMPTS=void 0;const o=n(2390);const r=n(84902);t.ENV_MAX_ATTEMPTS="AWS_MAX_ATTEMPTS";t.CONFIG_MAX_ATTEMPTS="max_attempts";t.NODE_MAX_ATTEMPT_CONFIG_OPTIONS={environmentVariableSelector:e=>{const n=e[t.ENV_MAX_ATTEMPTS];if(!n)return undefined;const o=parseInt(n);if(Number.isNaN(o)){throw new Error(`Environment variable ${t.ENV_MAX_ATTEMPTS} mast be a number, got "${n}"`)}return o},configFileSelector:e=>{const n=e[t.CONFIG_MAX_ATTEMPTS];if(!n)return undefined;const o=parseInt(n);if(Number.isNaN(o)){throw new Error(`Shared config file entry ${t.CONFIG_MAX_ATTEMPTS} mast be a number, got "${n}"`)}return o},default:r.DEFAULT_MAX_ATTEMPTS};const resolveRetryConfig=e=>{var t;const{retryStrategy:n}=e;const s=(0,o.normalizeProvider)((t=e.maxAttempts)!==null&&t!==void 0?t:r.DEFAULT_MAX_ATTEMPTS);return{...e,maxAttempts:s,retryStrategy:async()=>{if(n){return n}const t=await(0,o.normalizeProvider)(e.retryMode)();if(t===r.RETRY_MODES.ADAPTIVE){return new r.AdaptiveRetryStrategy(s)}return new r.StandardRetryStrategy(s)}}};t.resolveRetryConfig=resolveRetryConfig;t.ENV_RETRY_MODE="AWS_RETRY_MODE";t.CONFIG_RETRY_MODE="retry_mode";t.NODE_RETRY_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[t.ENV_RETRY_MODE],configFileSelector:e=>e[t.CONFIG_RETRY_MODE],default:r.DEFAULT_RETRY_MODE}},29991:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getDefaultRetryQuota=void 0;const o=n(84902);const getDefaultRetryQuota=(e,t)=>{var n,r,s;const i=e;const a=(n=t===null||t===void 0?void 0:t.noRetryIncrement)!==null&&n!==void 0?n:o.NO_RETRY_INCREMENT;const c=(r=t===null||t===void 0?void 0:t.retryCost)!==null&&r!==void 0?r:o.RETRY_COST;const d=(s=t===null||t===void 0?void 0:t.timeoutRetryCost)!==null&&s!==void 0?s:o.TIMEOUT_RETRY_COST;let u=e;const getCapacityAmount=e=>e.name==="TimeoutError"?d:c;const hasRetryTokens=e=>getCapacityAmount(e)<=u;const retrieveRetryTokens=e=>{if(!hasRetryTokens(e)){throw new Error("No retry token available")}const t=getCapacityAmount(e);u-=t;return t};const releaseRetryTokens=e=>{u+=e!==null&&e!==void 0?e:a;u=Math.min(u,i)};return Object.freeze({hasRetryTokens:hasRetryTokens,retrieveRetryTokens:retrieveRetryTokens,releaseRetryTokens:releaseRetryTokens})};t.getDefaultRetryQuota=getDefaultRetryQuota},9465:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultDelayDecider=void 0;const o=n(84902);const defaultDelayDecider=(e,t)=>Math.floor(Math.min(o.MAXIMUM_RETRY_DELAY,Math.random()*2**t*e));t.defaultDelayDecider=defaultDelayDecider},96039:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(80155),t);o.__exportStar(n(94582),t);o.__exportStar(n(58709),t);o.__exportStar(n(9465),t);o.__exportStar(n(76556),t);o.__exportStar(n(67653),t);o.__exportStar(n(81434),t)},76556:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getOmitRetryHeadersPlugin=t.omitRetryHeadersMiddlewareOptions=t.omitRetryHeadersMiddleware=void 0;const o=n(64418);const r=n(84902);const omitRetryHeadersMiddleware=()=>e=>async t=>{const{request:n}=t;if(o.HttpRequest.isInstance(n)){delete n.headers[r.INVOCATION_ID_HEADER];delete n.headers[r.REQUEST_HEADER]}return e(t)};t.omitRetryHeadersMiddleware=omitRetryHeadersMiddleware;t.omitRetryHeadersMiddlewareOptions={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:true};const getOmitRetryHeadersPlugin=e=>({applyToStack:e=>{e.addRelativeTo((0,t.omitRetryHeadersMiddleware)(),t.omitRetryHeadersMiddlewareOptions)}});t.getOmitRetryHeadersPlugin=getOmitRetryHeadersPlugin},67653:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultRetryDecider=void 0;const o=n(6375);const defaultRetryDecider=e=>{if(!e){return false}return(0,o.isRetryableByTrait)(e)||(0,o.isClockSkewError)(e)||(0,o.isThrottlingError)(e)||(0,o.isTransientError)(e)};t.defaultRetryDecider=defaultRetryDecider},81434:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRetryAfterHint=t.getRetryPlugin=t.retryMiddlewareOptions=t.retryMiddleware=void 0;const o=n(64418);const r=n(6375);const s=n(84902);const i=n(75840);const a=n(42827);const retryMiddleware=e=>(t,n)=>async r=>{let c=await e.retryStrategy();const d=await e.maxAttempts();if(isRetryStrategyV2(c)){c=c;let e=await c.acquireInitialRetryToken(n["partition_id"]);let u=new Error;let l=0;let p=0;const{request:m}=r;if(o.HttpRequest.isInstance(m)){m.headers[s.INVOCATION_ID_HEADER]=(0,i.v4)()}while(true){try{if(o.HttpRequest.isInstance(m)){m.headers[s.REQUEST_HEADER]=`attempt=${l+1}; max=${d}`}const{response:n,output:i}=await t(r);c.recordSuccess(e);i.$metadata.attempts=l+1;i.$metadata.totalRetryDelay=p;return{response:n,output:i}}catch(t){const n=getRetryErrorInfo(t);u=(0,a.asSdkError)(t);try{e=await c.refreshRetryTokenForRetry(e,n)}catch(e){if(!u.$metadata){u.$metadata={}}u.$metadata.attempts=l+1;u.$metadata.totalRetryDelay=p;throw u}l=e.getRetryCount();const o=e.getRetryDelay();p+=o;await new Promise((e=>setTimeout(e,o)))}}}else{c=c;if(c===null||c===void 0?void 0:c.mode)n.userAgent=[...n.userAgent||[],["cfg/retry-mode",c.mode]];return c.retry(t,r)}};t.retryMiddleware=retryMiddleware;const isRetryStrategyV2=e=>typeof e.acquireInitialRetryToken!=="undefined"&&typeof e.refreshRetryTokenForRetry!=="undefined"&&typeof e.recordSuccess!=="undefined";const getRetryErrorInfo=e=>{const n={errorType:getRetryErrorType(e)};const o=(0,t.getRetryAfterHint)(e.$response);if(o){n.retryAfterHint=o}return n};const getRetryErrorType=e=>{if((0,r.isThrottlingError)(e))return"THROTTLING";if((0,r.isTransientError)(e))return"TRANSIENT";if((0,r.isServerError)(e))return"SERVER_ERROR";return"CLIENT_ERROR"};t.retryMiddlewareOptions={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:true};const getRetryPlugin=e=>({applyToStack:n=>{n.add((0,t.retryMiddleware)(e),t.retryMiddlewareOptions)}});t.getRetryPlugin=getRetryPlugin;const getRetryAfterHint=e=>{if(!o.HttpResponse.isInstance(e))return;const t=Object.keys(e.headers).find((e=>e.toLowerCase()==="retry-after"));if(!t)return;const n=e.headers[t];const r=Number(n);if(!Number.isNaN(r))return new Date(r*1e3);const s=new Date(n);return s};t.getRetryAfterHint=getRetryAfterHint},42827:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.asSdkError=void 0;const asSdkError=e=>{if(e instanceof Error)return e;if(e instanceof Object)return Object.assign(new Error,e);if(typeof e==="string")return new Error(e);return new Error(`AWS SDK error wrapper for ${e}`)};t.asSdkError=asSdkError},21595:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.deserializerMiddleware=void 0;const deserializerMiddleware=(e,t)=>(n,o)=>async o=>{const{response:r}=await n(o);try{const n=await t(r,e);return{response:r,output:n}}catch(e){Object.defineProperty(e,"$response",{value:r});if(!("$metadata"in e)){const t=`Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;e.message+="\n "+t}throw e}};t.deserializerMiddleware=deserializerMiddleware},81238:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(21595),t);o.__exportStar(n(72338),t);o.__exportStar(n(23566),t)},72338:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSerdePlugin=t.serializerMiddlewareOption=t.deserializerMiddlewareOption=void 0;const o=n(21595);const r=n(23566);t.deserializerMiddlewareOption={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:true};t.serializerMiddlewareOption={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:true};function getSerdePlugin(e,n,s){return{applyToStack:i=>{i.add((0,o.deserializerMiddleware)(e,s),t.deserializerMiddlewareOption);i.add((0,r.serializerMiddleware)(e,n),t.serializerMiddlewareOption)}}}t.getSerdePlugin=getSerdePlugin},23566:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.serializerMiddleware=void 0;const serializerMiddleware=(e,t)=>(n,o)=>async r=>{var s;const i=((s=o.endpointV2)===null||s===void 0?void 0:s.url)&&e.urlParser?async()=>e.urlParser(o.endpointV2.url):e.endpoint;if(!i){throw new Error("No valid endpoint provider available.")}const a=await t(r.input,{...e,endpoint:i});return n({...r,request:a})};t.serializerMiddleware=serializerMiddleware},2404:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.constructStack=void 0;const constructStack=()=>{let e=[];let r=[];const s=new Set;const sort=e=>e.sort(((e,t)=>n[t.step]-n[e.step]||o[t.priority||"normal"]-o[e.priority||"normal"]));const removeByName=t=>{let n=false;const filterCb=e=>{if(e.name&&e.name===t){n=true;s.delete(t);return false}return true};e=e.filter(filterCb);r=r.filter(filterCb);return n};const removeByReference=t=>{let n=false;const filterCb=e=>{if(e.middleware===t){n=true;if(e.name)s.delete(e.name);return false}return true};e=e.filter(filterCb);r=r.filter(filterCb);return n};const cloneTo=t=>{e.forEach((e=>{t.add(e.middleware,{...e})}));r.forEach((e=>{t.addRelativeTo(e.middleware,{...e})}));return t};const expandRelativeMiddlewareList=e=>{const t=[];e.before.forEach((e=>{if(e.before.length===0&&e.after.length===0){t.push(e)}else{t.push(...expandRelativeMiddlewareList(e))}}));t.push(e);e.after.reverse().forEach((e=>{if(e.before.length===0&&e.after.length===0){t.push(e)}else{t.push(...expandRelativeMiddlewareList(e))}}));return t};const getMiddlewareList=(t=false)=>{const n=[];const o=[];const s={};e.forEach((e=>{const t={...e,before:[],after:[]};if(t.name)s[t.name]=t;n.push(t)}));r.forEach((e=>{const t={...e,before:[],after:[]};if(t.name)s[t.name]=t;o.push(t)}));o.forEach((e=>{if(e.toMiddleware){const n=s[e.toMiddleware];if(n===undefined){if(t){return}throw new Error(`${e.toMiddleware} is not found when adding ${e.name||"anonymous"} middleware ${e.relation} ${e.toMiddleware}`)}if(e.relation==="after"){n.after.push(e)}if(e.relation==="before"){n.before.push(e)}}}));const i=sort(n).map(expandRelativeMiddlewareList).reduce(((e,t)=>{e.push(...t);return e}),[]);return i};const i={add:(t,n={})=>{const{name:o,override:r}=n;const i={step:"initialize",priority:"normal",middleware:t,...n};if(o){if(s.has(o)){if(!r)throw new Error(`Duplicate middleware name '${o}'`);const t=e.findIndex((e=>e.name===o));const n=e[t];if(n.step!==i.step||n.priority!==i.priority){throw new Error(`"${o}" middleware with ${n.priority} priority in ${n.step} step cannot be `+`overridden by same-name middleware with ${i.priority} priority in ${i.step} step.`)}e.splice(t,1)}s.add(o)}e.push(i)},addRelativeTo:(e,t)=>{const{name:n,override:o}=t;const i={middleware:e,...t};if(n){if(s.has(n)){if(!o)throw new Error(`Duplicate middleware name '${n}'`);const e=r.findIndex((e=>e.name===n));const t=r[e];if(t.toMiddleware!==i.toMiddleware||t.relation!==i.relation){throw new Error(`"${n}" middleware ${t.relation} "${t.toMiddleware}" middleware cannot be overridden `+`by same-name middleware ${i.relation} "${i.toMiddleware}" middleware.`)}r.splice(e,1)}s.add(n)}r.push(i)},clone:()=>cloneTo((0,t.constructStack)()),use:e=>{e.applyToStack(i)},remove:e=>{if(typeof e==="string")return removeByName(e);else return removeByReference(e)},removeByTag:t=>{let n=false;const filterCb=e=>{const{tags:o,name:r}=e;if(o&&o.includes(t)){if(r)s.delete(r);n=true;return false}return true};e=e.filter(filterCb);r=r.filter(filterCb);return n},concat:e=>{const n=cloneTo((0,t.constructStack)());n.use(e);return n},applyToStack:cloneTo,identify:()=>getMiddlewareList(true).map((e=>e.name+": "+(e.tags||[]).join(","))),resolve:(e,t)=>{for(const n of getMiddlewareList().map((e=>e.middleware)).reverse()){e=n(e,t)}return e}};return i};t.constructStack=constructStack;const n={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1};const o={high:3,normal:2,low:1}},97911:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(2404),t)},54766:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.loadConfig=void 0;const o=n(79721);const r=n(15606);const s=n(45784);const i=n(23091);const loadConfig=({environmentVariableSelector:e,configFileSelector:t,default:n},a={})=>(0,o.memoize)((0,o.chain)((0,r.fromEnv)(e),(0,s.fromSharedConfigFiles)(t,a),(0,i.fromStatic)(n)));t.loadConfig=loadConfig},15606:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromEnv=void 0;const o=n(79721);const fromEnv=e=>async()=>{try{const t=e(process.env);if(t===undefined){throw new Error}return t}catch(t){throw new o.CredentialsProviderError(t.message||`Cannot load config from environment variables with getter: ${e}`)}};t.fromEnv=fromEnv},45784:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromSharedConfigFiles=void 0;const o=n(79721);const r=n(43507);const fromSharedConfigFiles=(e,{preferredFile:t="config",...n}={})=>async()=>{const s=(0,r.getProfileName)(n);const{configFile:i,credentialsFile:a}=await(0,r.loadSharedConfigFiles)(n);const c=a[s]||{};const d=i[s]||{};const u=t==="config"?{...c,...d}:{...d,...c};try{const t=e(u);if(t===undefined){throw new Error}return t}catch(t){throw new o.CredentialsProviderError(t.message||`Cannot load config for profile ${s} in SDK configuration files with getter: ${e}`)}};t.fromSharedConfigFiles=fromSharedConfigFiles},23091:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromStatic=void 0;const o=n(79721);const isFunction=e=>typeof e==="function";const fromStatic=e=>isFunction(e)?async()=>await e():(0,o.fromStatic)(e);t.fromStatic=fromStatic},33461:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(54766),t)},33946:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NODEJS_TIMEOUT_ERROR_CODES=void 0;t.NODEJS_TIMEOUT_ERROR_CODES=["ECONNRESET","EPIPE","ETIMEDOUT"]},70508:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getTransformedHeaders=void 0;const getTransformedHeaders=e=>{const t={};for(const n of Object.keys(e)){const o=e[n];t[n]=Array.isArray(o)?o.join(","):o}return t};t.getTransformedHeaders=getTransformedHeaders},20258:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(96948),t);o.__exportStar(n(46999),t);o.__exportStar(n(81030),t)},96948:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NodeHttpHandler=t.DEFAULT_REQUEST_TIMEOUT=void 0;const o=n(64418);const r=n(68031);const s=n(13685);const i=n(95687);const a=n(33946);const c=n(70508);const d=n(25545);const u=n(83751);const l=n(42618);const p=n(73766);t.DEFAULT_REQUEST_TIMEOUT=0;class NodeHttpHandler{constructor(e){this.metadata={handlerProtocol:"http/1.1"};this.configProvider=new Promise(((t,n)=>{if(typeof e==="function"){e().then((e=>{t(this.resolveDefaultConfig(e))})).catch(n)}else{t(this.resolveDefaultConfig(e))}}))}resolveDefaultConfig(e){const{requestTimeout:t,connectionTimeout:n,socketTimeout:o,httpAgent:r,httpsAgent:a}=e||{};const c=true;const d=50;return{connectionTimeout:n,requestTimeout:t!==null&&t!==void 0?t:o,httpAgent:r||new s.Agent({keepAlive:c,maxSockets:d}),httpsAgent:a||new i.Agent({keepAlive:c,maxSockets:d})}}destroy(){var e,t,n,o;(t=(e=this.config)===null||e===void 0?void 0:e.httpAgent)===null||t===void 0?void 0:t.destroy();(o=(n=this.config)===null||n===void 0?void 0:n.httpsAgent)===null||o===void 0?void 0:o.destroy()}async handle(e,{abortSignal:t}={}){if(!this.config){this.config=await this.configProvider}return new Promise(((n,m)=>{var f,y;let g=undefined;const resolve=async e=>{await g;n(e)};const reject=async e=>{await g;m(e)};if(!this.config){throw new Error("Node HTTP request handler config is not resolved")}if(t===null||t===void 0?void 0:t.aborted){const e=new Error("Request aborted");e.name="AbortError";reject(e);return}const h=e.protocol==="https:";const E=(0,r.buildQueryString)(e.query||{});let _=undefined;if(e.username!=null||e.password!=null){const t=(f=e.username)!==null&&f!==void 0?f:"";const n=(y=e.password)!==null&&y!==void 0?y:"";_=`${t}:${n}`}let v=e.path;if(E){v+=`?${E}`}if(e.fragment){v+=`#${e.fragment}`}const S={headers:e.headers,host:e.hostname,method:e.method,path:v,port:e.port,agent:h?this.config.httpsAgent:this.config.httpAgent,auth:_};const C=h?i.request:s.request;const b=C(S,(e=>{const t=new o.HttpResponse({statusCode:e.statusCode||-1,reason:e.statusMessage,headers:(0,c.getTransformedHeaders)(e.headers),body:e});resolve({response:t})}));b.on("error",(e=>{if(a.NODEJS_TIMEOUT_ERROR_CODES.includes(e.code)){reject(Object.assign(e,{name:"TimeoutError"}))}else{reject(e)}}));(0,d.setConnectionTimeout)(b,reject,this.config.connectionTimeout);(0,l.setSocketTimeout)(b,reject,this.config.requestTimeout);if(t){t.onabort=()=>{b.abort();const e=new Error("Request aborted");e.name="AbortError";reject(e)}}const P=S.agent;if(typeof P==="object"&&"keepAlive"in P){(0,u.setSocketKeepAlive)(b,{keepAlive:P.keepAlive,keepAliveMsecs:P.keepAliveMsecs})}g=(0,p.writeRequestBody)(b,e,this.config.requestTimeout).catch(m)}))}}t.NodeHttpHandler=NodeHttpHandler},5771:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NodeHttp2ConnectionManager=void 0;const o=n(4351);const r=o.__importDefault(n(85158));const s=n(95157);class NodeHttp2ConnectionManager{constructor(e){this.sessionCache=new Map;this.config=e;if(this.config.maxConcurrency&&this.config.maxConcurrency<=0){throw new RangeError("maxConcurrency must be greater than zero.")}}lease(e,t){const n=this.getUrlString(e);const o=this.sessionCache.get(n);if(o){const e=o.poll();if(e&&!this.config.disableConcurrency){return e}}const i=r.default.connect(n);if(this.config.maxConcurrency){i.settings({maxConcurrentStreams:this.config.maxConcurrency},(t=>{if(t){throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+e.destination.toString())}}))}i.unref();const destroySessionCb=()=>{i.destroy();this.deleteSession(n,i)};i.on("goaway",destroySessionCb);i.on("error",destroySessionCb);i.on("frameError",destroySessionCb);i.on("close",(()=>this.deleteSession(n,i)));if(t.requestTimeout){i.setTimeout(t.requestTimeout,destroySessionCb)}const a=this.sessionCache.get(n)||new s.NodeHttp2ConnectionPool;a.offerLast(i);this.sessionCache.set(n,a);return i}deleteSession(e,t){const n=this.sessionCache.get(e);if(!n){return}if(!n.contains(t)){return}n.remove(t);this.sessionCache.set(e,n)}release(e,t){var n;const o=this.getUrlString(e);(n=this.sessionCache.get(o))===null||n===void 0?void 0:n.offerLast(t)}destroy(){for(const[e,t]of this.sessionCache){for(const e of t){if(!e.destroyed){e.destroy()}t.remove(e)}this.sessionCache.delete(e)}}setMaxConcurrentStreams(e){if(this.config.maxConcurrency&&this.config.maxConcurrency<=0){throw new RangeError("maxConcurrentStreams must be greater than zero.")}this.config.maxConcurrency=e}setDisableConcurrentStreams(e){this.config.disableConcurrency=e}getUrlString(e){return e.destination.toString()}}t.NodeHttp2ConnectionManager=NodeHttp2ConnectionManager},95157:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NodeHttp2ConnectionPool=void 0;class NodeHttp2ConnectionPool{constructor(e){this.sessions=[];this.sessions=e!==null&&e!==void 0?e:[]}poll(){if(this.sessions.length>0){return this.sessions.shift()}}offerLast(e){this.sessions.push(e)}contains(e){return this.sessions.includes(e)}remove(e){this.sessions=this.sessions.filter((t=>t!==e))}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}destroy(e){for(const t of this.sessions){if(t===e){if(!t.destroyed){t.destroy()}}}}}t.NodeHttp2ConnectionPool=NodeHttp2ConnectionPool},46999:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NodeHttp2Handler=void 0;const o=n(64418);const r=n(68031);const s=n(85158);const i=n(70508);const a=n(5771);const c=n(73766);class NodeHttp2Handler{constructor(e){this.metadata={handlerProtocol:"h2"};this.connectionManager=new a.NodeHttp2ConnectionManager({});this.configProvider=new Promise(((t,n)=>{if(typeof e==="function"){e().then((e=>{t(e||{})})).catch(n)}else{t(e||{})}}))}destroy(){this.connectionManager.destroy()}async handle(e,{abortSignal:t}={}){if(!this.config){this.config=await this.configProvider;this.connectionManager.setDisableConcurrentStreams(this.config.disableConcurrentStreams||false);if(this.config.maxConcurrentStreams){this.connectionManager.setMaxConcurrentStreams(this.config.maxConcurrentStreams)}}const{requestTimeout:n,disableConcurrentStreams:a}=this.config;return new Promise(((d,u)=>{var l,p,m;let f=false;let y=undefined;const resolve=async e=>{await y;d(e)};const reject=async e=>{await y;u(e)};if(t===null||t===void 0?void 0:t.aborted){f=true;const e=new Error("Request aborted");e.name="AbortError";reject(e);return}const{hostname:g,method:h,port:E,protocol:_,query:v}=e;let S="";if(e.username!=null||e.password!=null){const t=(l=e.username)!==null&&l!==void 0?l:"";const n=(p=e.password)!==null&&p!==void 0?p:"";S=`${t}:${n}@`}const C=`${_}//${S}${g}${E?`:${E}`:""}`;const b={destination:new URL(C)};const P=this.connectionManager.lease(b,{requestTimeout:(m=this.config)===null||m===void 0?void 0:m.sessionTimeout,disableConcurrentStreams:a||false});const rejectWithDestroy=e=>{if(a){this.destroySession(P)}f=true;reject(e)};const w=(0,r.buildQueryString)(v||{});let x=e.path;if(w){x+=`?${w}`}if(e.fragment){x+=`#${e.fragment}`}const R=P.request({...e.headers,[s.constants.HTTP2_HEADER_PATH]:x,[s.constants.HTTP2_HEADER_METHOD]:h});P.ref();R.on("response",(e=>{const t=new o.HttpResponse({statusCode:e[":status"]||-1,headers:(0,i.getTransformedHeaders)(e),body:R});f=true;resolve({response:t});if(a){P.close();this.connectionManager.deleteSession(C,P)}}));if(n){R.setTimeout(n,(()=>{R.close();const e=new Error(`Stream timed out because of no activity for ${n} ms`);e.name="TimeoutError";rejectWithDestroy(e)}))}if(t){t.onabort=()=>{R.close();const e=new Error("Request aborted");e.name="AbortError";rejectWithDestroy(e)}}R.on("frameError",((e,t,n)=>{rejectWithDestroy(new Error(`Frame type id ${e} in stream id ${n} has failed with code ${t}.`))}));R.on("error",rejectWithDestroy);R.on("aborted",(()=>{rejectWithDestroy(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${R.rstCode}.`))}));R.on("close",(()=>{P.unref();if(a){P.destroy()}if(!f){rejectWithDestroy(new Error("Unexpected error: http2 request did not get a response"))}}));y=(0,c.writeRequestBody)(R,e,n)}))}destroySession(e){if(!e.destroyed){e.destroy()}}}t.NodeHttp2Handler=NodeHttp2Handler},25545:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.setConnectionTimeout=void 0;const setConnectionTimeout=(e,t,n=0)=>{if(!n){return}const o=setTimeout((()=>{e.destroy();t(Object.assign(new Error(`Socket timed out without establishing a connection within ${n} ms`),{name:"TimeoutError"}))}),n);e.on("socket",(e=>{if(e.connecting){e.on("connect",(()=>{clearTimeout(o)}))}else{clearTimeout(o)}}))};t.setConnectionTimeout=setConnectionTimeout},83751:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.setSocketKeepAlive=void 0;const setSocketKeepAlive=(e,{keepAlive:t,keepAliveMsecs:n})=>{if(t!==true){return}e.on("socket",(e=>{e.setKeepAlive(t,n||0)}))};t.setSocketKeepAlive=setSocketKeepAlive},42618:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.setSocketTimeout=void 0;const setSocketTimeout=(e,t,n=0)=>{e.setTimeout(n,(()=>{e.destroy();t(Object.assign(new Error(`Connection timed out after ${n} ms`),{name:"TimeoutError"}))}))};t.setSocketTimeout=setSocketTimeout},23211:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Collector=void 0;const o=n(12781);class Collector extends o.Writable{constructor(){super(...arguments);this.bufferedBytes=[]}_write(e,t,n){this.bufferedBytes.push(e);n()}}t.Collector=Collector},81030:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.streamCollector=void 0;const o=n(23211);const streamCollector=e=>new Promise(((t,n)=>{const r=new o.Collector;e.pipe(r);e.on("error",(e=>{r.end();n(e)}));r.on("error",n);r.on("finish",(function(){const e=new Uint8Array(Buffer.concat(this.bufferedBytes));t(e)}))}));t.streamCollector=streamCollector},73766:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.writeRequestBody=void 0;const o=n(12781);const r=1e3;async function writeRequestBody(e,t,n=r){var o;const s=(o=t.headers)!==null&&o!==void 0?o:{};const i=s["Expect"]||s["expect"];let a=-1;let c=false;if(i==="100-continue"){await Promise.race([new Promise((e=>{a=Number(setTimeout(e,Math.max(r,n)))})),new Promise((t=>{e.on("continue",(()=>{clearTimeout(a);t()}));e.on("error",(()=>{c=true;clearTimeout(a);t()}))}))])}if(!c){writeBody(e,t.body)}}t.writeRequestBody=writeRequestBody;function writeBody(e,t){if(t instanceof o.Readable){t.pipe(e)}else if(t){e.end(Buffer.from(t))}else{e.end()}}},63936:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CredentialsProviderError=void 0;const o=n(23324);class CredentialsProviderError extends o.ProviderError{constructor(e,t=true){super(e,t);this.tryNextLink=t;this.name="CredentialsProviderError";Object.setPrototypeOf(this,CredentialsProviderError.prototype)}}t.CredentialsProviderError=CredentialsProviderError},23324:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ProviderError=void 0;class ProviderError extends Error{constructor(e,t=true){super(e);this.tryNextLink=t;this.name="ProviderError";Object.setPrototypeOf(this,ProviderError.prototype)}static from(e,t=true){return Object.assign(new this(e.message,t),e)}}t.ProviderError=ProviderError},50429:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TokenProviderError=void 0;const o=n(23324);class TokenProviderError extends o.ProviderError{constructor(e,t=true){super(e,t);this.tryNextLink=t;this.name="TokenProviderError";Object.setPrototypeOf(this,TokenProviderError.prototype)}}t.TokenProviderError=TokenProviderError},45079:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.chain=void 0;const o=n(23324);function chain(...e){return()=>{let t=Promise.reject(new o.ProviderError("No providers in chain"));for(const n of e){t=t.catch((e=>{if(e===null||e===void 0?void 0:e.tryNextLink){return n()}throw e}))}return t}}t.chain=chain},51322:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromStatic=void 0;const fromStatic=e=>()=>Promise.resolve(e);t.fromStatic=fromStatic},79721:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(63936),t);o.__exportStar(n(23324),t);o.__exportStar(n(50429),t);o.__exportStar(n(45079),t);o.__exportStar(n(51322),t);o.__exportStar(n(49762),t)},49762:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.memoize=void 0;const memoize=(e,t,n)=>{let o;let r;let s;let i=false;const coalesceProvider=async()=>{if(!r){r=e()}try{o=await r;s=true;i=false}finally{r=undefined}return o};if(t===undefined){return async e=>{if(!s||(e===null||e===void 0?void 0:e.forceRefresh)){o=await coalesceProvider()}return o}}return async e=>{if(!s||(e===null||e===void 0?void 0:e.forceRefresh)){o=await coalesceProvider()}if(i){return o}if(n&&!n(o)){i=true;return o}if(t(o)){await coalesceProvider();return o}return o}};t.memoize=memoize},89179:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Field=void 0;const o=n(55756);class Field{constructor({name:e,kind:t=o.FieldPosition.HEADER,values:n=[]}){this.name=e;this.kind=t;this.values=n}add(e){this.values.push(e)}set(e){this.values=e}remove(e){this.values=this.values.filter((t=>t!==e))}toString(){return this.values.map((e=>e.includes(",")||e.includes(" ")?`"${e}"`:e)).join(", ")}get(){return this.values}}t.Field=Field},99242:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Fields=void 0;class Fields{constructor({fields:e=[],encoding:t="utf-8"}){this.entries={};e.forEach(this.setField.bind(this));this.encoding=t}setField(e){this.entries[e.name.toLowerCase()]=e}getField(e){return this.entries[e.toLowerCase()]}removeField(e){delete this.entries[e.toLowerCase()]}getByType(e){return Object.values(this.entries).filter((t=>t.kind===e))}}t.Fields=Fields},63206:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},38746:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.HttpRequest=void 0;class HttpRequest{constructor(e){this.method=e.method||"GET";this.hostname=e.hostname||"localhost";this.port=e.port;this.query=e.query||{};this.headers=e.headers||{};this.body=e.body;this.protocol=e.protocol?e.protocol.slice(-1)!==":"?`${e.protocol}:`:e.protocol:"https:";this.path=e.path?e.path.charAt(0)!=="/"?`/${e.path}`:e.path:"/";this.username=e.username;this.password=e.password;this.fragment=e.fragment}static isInstance(e){if(!e)return false;const t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&typeof t["query"]==="object"&&typeof t["headers"]==="object"}clone(){const e=new HttpRequest({...this,headers:{...this.headers}});if(e.query)e.query=cloneQuery(e.query);return e}}t.HttpRequest=HttpRequest;function cloneQuery(e){return Object.keys(e).reduce(((t,n)=>{const o=e[n];return{...t,[n]:Array.isArray(o)?[...o]:o}}),{})}},26322:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.HttpResponse=void 0;class HttpResponse{constructor(e){this.statusCode=e.statusCode;this.reason=e.reason;this.headers=e.headers||{};this.body=e.body}static isInstance(e){if(!e)return false;const t=e;return typeof t.statusCode==="number"&&typeof t.headers==="object"}}t.HttpResponse=HttpResponse},64418:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(89179),t);o.__exportStar(n(99242),t);o.__exportStar(n(63206),t);o.__exportStar(n(38746),t);o.__exportStar(n(26322),t);o.__exportStar(n(61466),t);o.__exportStar(n(19135),t)},61466:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isValidHostname=void 0;function isValidHostname(e){const t=/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/;return t.test(e)}t.isValidHostname=isValidHostname},19135:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},68031:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.buildQueryString=void 0;const o=n(54197);function buildQueryString(e){const t=[];for(let n of Object.keys(e).sort()){const r=e[n];n=(0,o.escapeUri)(n);if(Array.isArray(r)){for(let e=0,s=r.length;e<s;e++){t.push(`${n}=${(0,o.escapeUri)(r[e])}`)}}else{let e=n;if(r||typeof r==="string"){e+=`=${(0,o.escapeUri)(r)}`}t.push(e)}}return t.join("&")}t.buildQueryString=buildQueryString},4769:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseQueryString=void 0;function parseQueryString(e){const t={};e=e.replace(/^\?/,"");if(e){for(const n of e.split("&")){let[e,o=null]=n.split("=");e=decodeURIComponent(e);if(o){o=decodeURIComponent(o)}if(!(e in t)){t[e]=o}else if(Array.isArray(t[e])){t[e].push(o)}else{t[e]=[t[e],o]}}}return t}t.parseQueryString=parseQueryString},68415:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NODEJS_TIMEOUT_ERROR_CODES=t.TRANSIENT_ERROR_STATUS_CODES=t.TRANSIENT_ERROR_CODES=t.THROTTLING_ERROR_CODES=t.CLOCK_SKEW_ERROR_CODES=void 0;t.CLOCK_SKEW_ERROR_CODES=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"];t.THROTTLING_ERROR_CODES=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"];t.TRANSIENT_ERROR_CODES=["TimeoutError","RequestTimeout","RequestTimeoutException"];t.TRANSIENT_ERROR_STATUS_CODES=[500,502,503,504];t.NODEJS_TIMEOUT_ERROR_CODES=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"]},6375:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isServerError=t.isTransientError=t.isThrottlingError=t.isClockSkewError=t.isRetryableByTrait=void 0;const o=n(68415);const isRetryableByTrait=e=>e.$retryable!==undefined;t.isRetryableByTrait=isRetryableByTrait;const isClockSkewError=e=>o.CLOCK_SKEW_ERROR_CODES.includes(e.name);t.isClockSkewError=isClockSkewError;const isThrottlingError=e=>{var t,n;return((t=e.$metadata)===null||t===void 0?void 0:t.httpStatusCode)===429||o.THROTTLING_ERROR_CODES.includes(e.name)||((n=e.$retryable)===null||n===void 0?void 0:n.throttling)==true};t.isThrottlingError=isThrottlingError;const isTransientError=e=>{var t;return o.TRANSIENT_ERROR_CODES.includes(e.name)||o.NODEJS_TIMEOUT_ERROR_CODES.includes((e===null||e===void 0?void 0:e.code)||"")||o.TRANSIENT_ERROR_STATUS_CODES.includes(((t=e.$metadata)===null||t===void 0?void 0:t.httpStatusCode)||0)};t.isTransientError=isTransientError;const isServerError=e=>{var n;if(((n=e.$metadata)===null||n===void 0?void 0:n.httpStatusCode)!==undefined){const n=e.$metadata.httpStatusCode;if(500<=n&&n<=599&&!(0,t.isTransientError)(e)){return true}return false}return false};t.isServerError=isServerError},47237:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getConfigFilepath=t.ENV_CONFIG_PATH=void 0;const o=n(71017);const r=n(68340);t.ENV_CONFIG_PATH="AWS_CONFIG_FILE";const getConfigFilepath=()=>process.env[t.ENV_CONFIG_PATH]||(0,o.join)((0,r.getHomeDir)(),".aws","config");t.getConfigFilepath=getConfigFilepath},99036:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getCredentialsFilepath=t.ENV_CREDENTIALS_PATH=void 0;const o=n(71017);const r=n(68340);t.ENV_CREDENTIALS_PATH="AWS_SHARED_CREDENTIALS_FILE";const getCredentialsFilepath=()=>process.env[t.ENV_CREDENTIALS_PATH]||(0,o.join)((0,r.getHomeDir)(),".aws","credentials");t.getCredentialsFilepath=getCredentialsFilepath},68340:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getHomeDir=void 0;const o=n(22037);const r=n(71017);const getHomeDir=()=>{const{HOME:e,USERPROFILE:t,HOMEPATH:n,HOMEDRIVE:s=`C:${r.sep}`}=process.env;if(e)return e;if(t)return t;if(n)return`${s}${n}`;return(0,o.homedir)()};t.getHomeDir=getHomeDir},32041:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getProfileData=void 0;const n=/^profile\s(["'])?([^\1]+)\1$/;const getProfileData=e=>Object.entries(e).filter((([e])=>n.test(e))).reduce(((e,[t,o])=>({...e,[n.exec(t)[2]]:o})),{...e.default&&{default:e.default}});t.getProfileData=getProfileData},52802:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getProfileName=t.DEFAULT_PROFILE=t.ENV_PROFILE=void 0;t.ENV_PROFILE="AWS_PROFILE";t.DEFAULT_PROFILE="default";const getProfileName=e=>e.profile||process.env[t.ENV_PROFILE]||t.DEFAULT_PROFILE;t.getProfileName=getProfileName},24740:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSSOTokenFilepath=void 0;const o=n(6113);const r=n(71017);const s=n(68340);const getSSOTokenFilepath=e=>{const t=(0,o.createHash)("sha1");const n=t.update(e).digest("hex");return(0,r.join)((0,s.getHomeDir)(),".aws","sso","cache",`${n}.json`)};t.getSSOTokenFilepath=getSSOTokenFilepath},69678:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSSOTokenFromFile=void 0;const o=n(57147);const r=n(24740);const{readFile:s}=o.promises;const getSSOTokenFromFile=async e=>{const t=(0,r.getSSOTokenFilepath)(e);const n=await s(t,"utf8");return JSON.parse(n)};t.getSSOTokenFromFile=getSSOTokenFromFile},82820:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSsoSessionData=void 0;const n=/^sso-session\s(["'])?([^\1]+)\1$/;const getSsoSessionData=e=>Object.entries(e).filter((([e])=>n.test(e))).reduce(((e,[t,o])=>({...e,[n.exec(t)[2]]:o})),{});t.getSsoSessionData=getSsoSessionData},43507:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(68340),t);o.__exportStar(n(52802),t);o.__exportStar(n(24740),t);o.__exportStar(n(69678),t);o.__exportStar(n(41879),t);o.__exportStar(n(34649),t);o.__exportStar(n(2546),t);o.__exportStar(n(63191),t)},41879:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.loadSharedConfigFiles=void 0;const o=n(47237);const r=n(99036);const s=n(32041);const i=n(54262);const a=n(19155);const swallowError=()=>({});const loadSharedConfigFiles=async(e={})=>{const{filepath:t=(0,r.getCredentialsFilepath)(),configFilepath:n=(0,o.getConfigFilepath)()}=e;const c=await Promise.all([(0,a.slurpFile)(n,{ignoreCache:e.ignoreCache}).then(i.parseIni).then(s.getProfileData).catch(swallowError),(0,a.slurpFile)(t,{ignoreCache:e.ignoreCache}).then(i.parseIni).catch(swallowError)]);return{configFile:c[0],credentialsFile:c[1]}};t.loadSharedConfigFiles=loadSharedConfigFiles},34649:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.loadSsoSessionData=void 0;const o=n(47237);const r=n(82820);const s=n(54262);const i=n(19155);const swallowError=()=>({});const loadSsoSessionData=async(e={})=>{var t;return(0,i.slurpFile)((t=e.configFilepath)!==null&&t!==void 0?t:(0,o.getConfigFilepath)()).then(s.parseIni).then(r.getSsoSessionData).catch(swallowError)};t.loadSsoSessionData=loadSsoSessionData},19447:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.mergeConfigFiles=void 0;const mergeConfigFiles=(...e)=>{const t={};for(const n of e){for(const[e,o]of Object.entries(n)){if(t[e]!==undefined){Object.assign(t[e],o)}else{t[e]=o}}}return t};t.mergeConfigFiles=mergeConfigFiles},54262:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseIni=void 0;const n=["__proto__","profile __proto__"];const parseIni=e=>{const t={};let o;for(let r of e.split(/\r?\n/)){r=r.split(/(^|\s)[;#]/)[0].trim();const e=r[0]==="["&&r[r.length-1]==="]";if(e){o=r.substring(1,r.length-1);if(n.includes(o)){throw new Error(`Found invalid profile name "${o}"`)}}else if(o){const e=r.indexOf("=");const n=0;const s=r.length-1;const i=e!==-1&&e!==n&&e!==s;if(i){const[n,s]=[r.substring(0,e).trim(),r.substring(e+1).trim()];t[o]=t[o]||{};t[o][n]=s}}}return t};t.parseIni=parseIni},2546:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseKnownFiles=void 0;const o=n(41879);const r=n(19447);const parseKnownFiles=async e=>{const t=await(0,o.loadSharedConfigFiles)(e);return(0,r.mergeConfigFiles)(t.configFile,t.credentialsFile)};t.parseKnownFiles=parseKnownFiles},19155:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.slurpFile=void 0;const o=n(57147);const{readFile:r}=o.promises;const s={};const slurpFile=(e,t)=>{if(!s[e]||(t===null||t===void 0?void 0:t.ignoreCache)){s[e]=r(e,"utf8")}return s[e]};t.slurpFile=slurpFile},63191:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},39733:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SignatureV4=void 0;const o=n(56459);const r=n(45364);const s=n(2390);const i=n(41895);const a=n(48644);const c=n(19623);const d=n(51393);const u=n(33243);const l=n(48545);const p=n(62179);const m=n(49828);const f=n(60075);const y=n(39299);class SignatureV4{constructor({applyChecksum:e,credentials:t,region:n,service:r,sha256:a,uriEscapePath:c=true}){this.headerMarshaller=new o.HeaderMarshaller(i.toUtf8,i.fromUtf8);this.service=r;this.sha256=a;this.uriEscapePath=c;this.applyChecksum=typeof e==="boolean"?e:true;this.regionProvider=(0,s.normalizeProvider)(n);this.credentialProvider=(0,s.normalizeProvider)(t)}async presign(e,t={}){const{signingDate:n=new Date,expiresIn:o=3600,unsignableHeaders:r,unhoistableHeaders:s,signableHeaders:i,signingRegion:u,signingService:p}=t;const y=await this.credentialProvider();this.validateResolvedCredentials(y);const g=u!==null&&u!==void 0?u:await this.regionProvider();const{longDate:h,shortDate:E}=formatDate(n);if(o>a.MAX_PRESIGNED_TTL){return Promise.reject("Signature version 4 presigned URLs"+" must have an expiration date less than one week in"+" the future")}const _=(0,c.createScope)(E,g,p!==null&&p!==void 0?p:this.service);const v=(0,m.moveHeadersToQuery)((0,f.prepareRequest)(e),{unhoistableHeaders:s});if(y.sessionToken){v.query[a.TOKEN_QUERY_PARAM]=y.sessionToken}v.query[a.ALGORITHM_QUERY_PARAM]=a.ALGORITHM_IDENTIFIER;v.query[a.CREDENTIAL_QUERY_PARAM]=`${y.accessKeyId}/${_}`;v.query[a.AMZ_DATE_QUERY_PARAM]=h;v.query[a.EXPIRES_QUERY_PARAM]=o.toString(10);const S=(0,d.getCanonicalHeaders)(v,r,i);v.query[a.SIGNED_HEADERS_QUERY_PARAM]=getCanonicalHeaderList(S);v.query[a.SIGNATURE_QUERY_PARAM]=await this.getSignature(h,_,this.getSigningKey(y,g,E,p),this.createCanonicalRequest(v,S,await(0,l.getPayloadHash)(e,this.sha256)));return v}async sign(e,t){if(typeof e==="string"){return this.signString(e,t)}else if(e.headers&&e.payload){return this.signEvent(e,t)}else if(e.message){return this.signMessage(e,t)}else{return this.signRequest(e,t)}}async signEvent({headers:e,payload:t},{signingDate:n=new Date,priorSignature:o,signingRegion:s,signingService:i}){const d=s!==null&&s!==void 0?s:await this.regionProvider();const{shortDate:u,longDate:p}=formatDate(n);const m=(0,c.createScope)(u,d,i!==null&&i!==void 0?i:this.service);const f=await(0,l.getPayloadHash)({headers:{},body:t},this.sha256);const y=new this.sha256;y.update(e);const g=(0,r.toHex)(await y.digest());const h=[a.EVENT_ALGORITHM_IDENTIFIER,p,m,o,g,f].join("\n");return this.signString(h,{signingDate:n,signingRegion:d,signingService:i})}async signMessage(e,{signingDate:t=new Date,signingRegion:n,signingService:o}){const r=this.signEvent({headers:this.headerMarshaller.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:n,signingService:o,priorSignature:e.priorSignature});return r.then((t=>({message:e.message,signature:t})))}async signString(e,{signingDate:t=new Date,signingRegion:n,signingService:o}={}){const s=await this.credentialProvider();this.validateResolvedCredentials(s);const a=n!==null&&n!==void 0?n:await this.regionProvider();const{shortDate:c}=formatDate(t);const d=new this.sha256(await this.getSigningKey(s,a,c,o));d.update((0,i.toUint8Array)(e));return(0,r.toHex)(await d.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:n,unsignableHeaders:o,signingRegion:r,signingService:s}={}){const i=await this.credentialProvider();this.validateResolvedCredentials(i);const u=r!==null&&r!==void 0?r:await this.regionProvider();const m=(0,f.prepareRequest)(e);const{longDate:y,shortDate:g}=formatDate(t);const h=(0,c.createScope)(g,u,s!==null&&s!==void 0?s:this.service);m.headers[a.AMZ_DATE_HEADER]=y;if(i.sessionToken){m.headers[a.TOKEN_HEADER]=i.sessionToken}const E=await(0,l.getPayloadHash)(m,this.sha256);if(!(0,p.hasHeader)(a.SHA256_HEADER,m.headers)&&this.applyChecksum){m.headers[a.SHA256_HEADER]=E}const _=(0,d.getCanonicalHeaders)(m,o,n);const v=await this.getSignature(y,h,this.getSigningKey(i,u,g,s),this.createCanonicalRequest(m,_,E));m.headers[a.AUTH_HEADER]=`${a.ALGORITHM_IDENTIFIER} `+`Credential=${i.accessKeyId}/${h}, `+`SignedHeaders=${getCanonicalHeaderList(_)}, `+`Signature=${v}`;return m}createCanonicalRequest(e,t,n){const o=Object.keys(t).sort();return`${e.method}\n${this.getCanonicalPath(e)}\n${(0,u.getCanonicalQuery)(e)}\n${o.map((e=>`${e}:${t[e]}`)).join("\n")}\n\n${o.join(";")}\n${n}`}async createStringToSign(e,t,n){const o=new this.sha256;o.update((0,i.toUint8Array)(n));const s=await o.digest();return`${a.ALGORITHM_IDENTIFIER}\n${e}\n${t}\n${(0,r.toHex)(s)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){const t=[];for(const n of e.split("/")){if((n===null||n===void 0?void 0:n.length)===0)continue;if(n===".")continue;if(n===".."){t.pop()}else{t.push(n)}}const n=`${(e===null||e===void 0?void 0:e.startsWith("/"))?"/":""}${t.join("/")}${t.length>0&&(e===null||e===void 0?void 0:e.endsWith("/"))?"/":""}`;const o=encodeURIComponent(n);return o.replace(/%2F/g,"/")}return e}async getSignature(e,t,n,o){const s=await this.createStringToSign(e,t,o);const a=new this.sha256(await n);a.update((0,i.toUint8Array)(s));return(0,r.toHex)(await a.digest())}getSigningKey(e,t,n,o){return(0,c.getSigningKey)(this.sha256,e,n,t,o||this.service)}validateResolvedCredentials(e){if(typeof e!=="object"||typeof e.accessKeyId!=="string"||typeof e.secretAccessKey!=="string"){throw new Error("Resolved credential object is not valid")}}}t.SignatureV4=SignatureV4;const formatDate=e=>{const t=(0,y.iso8601)(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.slice(0,8)}};const getCanonicalHeaderList=e=>Object.keys(e).sort().join(";")},69098:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.cloneQuery=t.cloneRequest=void 0;const cloneRequest=({headers:e,query:n,...o})=>({...o,headers:{...e},query:n?(0,t.cloneQuery)(n):undefined});t.cloneRequest=cloneRequest;const cloneQuery=e=>Object.keys(e).reduce(((t,n)=>{const o=e[n];return{...t,[n]:Array.isArray(o)?[...o]:o}}),{});t.cloneQuery=cloneQuery},48644:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MAX_PRESIGNED_TTL=t.KEY_TYPE_IDENTIFIER=t.MAX_CACHE_SIZE=t.UNSIGNED_PAYLOAD=t.EVENT_ALGORITHM_IDENTIFIER=t.ALGORITHM_IDENTIFIER_V4A=t.ALGORITHM_IDENTIFIER=t.UNSIGNABLE_PATTERNS=t.SEC_HEADER_PATTERN=t.PROXY_HEADER_PATTERN=t.ALWAYS_UNSIGNABLE_HEADERS=t.HOST_HEADER=t.TOKEN_HEADER=t.SHA256_HEADER=t.SIGNATURE_HEADER=t.GENERATED_HEADERS=t.DATE_HEADER=t.AMZ_DATE_HEADER=t.AUTH_HEADER=t.REGION_SET_PARAM=t.TOKEN_QUERY_PARAM=t.SIGNATURE_QUERY_PARAM=t.EXPIRES_QUERY_PARAM=t.SIGNED_HEADERS_QUERY_PARAM=t.AMZ_DATE_QUERY_PARAM=t.CREDENTIAL_QUERY_PARAM=t.ALGORITHM_QUERY_PARAM=void 0;t.ALGORITHM_QUERY_PARAM="X-Amz-Algorithm";t.CREDENTIAL_QUERY_PARAM="X-Amz-Credential";t.AMZ_DATE_QUERY_PARAM="X-Amz-Date";t.SIGNED_HEADERS_QUERY_PARAM="X-Amz-SignedHeaders";t.EXPIRES_QUERY_PARAM="X-Amz-Expires";t.SIGNATURE_QUERY_PARAM="X-Amz-Signature";t.TOKEN_QUERY_PARAM="X-Amz-Security-Token";t.REGION_SET_PARAM="X-Amz-Region-Set";t.AUTH_HEADER="authorization";t.AMZ_DATE_HEADER=t.AMZ_DATE_QUERY_PARAM.toLowerCase();t.DATE_HEADER="date";t.GENERATED_HEADERS=[t.AUTH_HEADER,t.AMZ_DATE_HEADER,t.DATE_HEADER];t.SIGNATURE_HEADER=t.SIGNATURE_QUERY_PARAM.toLowerCase();t.SHA256_HEADER="x-amz-content-sha256";t.TOKEN_HEADER=t.TOKEN_QUERY_PARAM.toLowerCase();t.HOST_HEADER="host";t.ALWAYS_UNSIGNABLE_HEADERS={authorization:true,"cache-control":true,connection:true,expect:true,from:true,"keep-alive":true,"max-forwards":true,pragma:true,referer:true,te:true,trailer:true,"transfer-encoding":true,upgrade:true,"user-agent":true,"x-amzn-trace-id":true};t.PROXY_HEADER_PATTERN=/^proxy-/;t.SEC_HEADER_PATTERN=/^sec-/;t.UNSIGNABLE_PATTERNS=[/^proxy-/i,/^sec-/i];t.ALGORITHM_IDENTIFIER="AWS4-HMAC-SHA256";t.ALGORITHM_IDENTIFIER_V4A="AWS4-ECDSA-P256-SHA256";t.EVENT_ALGORITHM_IDENTIFIER="AWS4-HMAC-SHA256-PAYLOAD";t.UNSIGNED_PAYLOAD="UNSIGNED-PAYLOAD";t.MAX_CACHE_SIZE=50;t.KEY_TYPE_IDENTIFIER="aws4_request";t.MAX_PRESIGNED_TTL=60*60*24*7},19623:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.clearCredentialCache=t.getSigningKey=t.createScope=void 0;const o=n(45364);const r=n(41895);const s=n(48644);const i={};const a=[];const createScope=(e,t,n)=>`${e}/${t}/${n}/${s.KEY_TYPE_IDENTIFIER}`;t.createScope=createScope;const getSigningKey=async(e,t,n,r,c)=>{const d=await hmac(e,t.secretAccessKey,t.accessKeyId);const u=`${n}:${r}:${c}:${(0,o.toHex)(d)}:${t.sessionToken}`;if(u in i){return i[u]}a.push(u);while(a.length>s.MAX_CACHE_SIZE){delete i[a.shift()]}let l=`AWS4${t.secretAccessKey}`;for(const t of[n,r,c,s.KEY_TYPE_IDENTIFIER]){l=await hmac(e,l,t)}return i[u]=l};t.getSigningKey=getSigningKey;const clearCredentialCache=()=>{a.length=0;Object.keys(i).forEach((e=>{delete i[e]}))};t.clearCredentialCache=clearCredentialCache;const hmac=(e,t,n)=>{const o=new e(t);o.update((0,r.toUint8Array)(n));return o.digest()}},51393:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getCanonicalHeaders=void 0;const o=n(48644);const getCanonicalHeaders=({headers:e},t,n)=>{const r={};for(const s of Object.keys(e).sort()){if(e[s]==undefined){continue}const i=s.toLowerCase();if(i in o.ALWAYS_UNSIGNABLE_HEADERS||(t===null||t===void 0?void 0:t.has(i))||o.PROXY_HEADER_PATTERN.test(i)||o.SEC_HEADER_PATTERN.test(i)){if(!n||n&&!n.has(i)){continue}}r[i]=e[s].trim().replace(/\s+/g," ")}return r};t.getCanonicalHeaders=getCanonicalHeaders},33243:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getCanonicalQuery=void 0;const o=n(54197);const r=n(48644);const getCanonicalQuery=({query:e={}})=>{const t=[];const n={};for(const s of Object.keys(e).sort()){if(s.toLowerCase()===r.SIGNATURE_HEADER){continue}t.push(s);const i=e[s];if(typeof i==="string"){n[s]=`${(0,o.escapeUri)(s)}=${(0,o.escapeUri)(i)}`}else if(Array.isArray(i)){n[s]=i.slice(0).sort().reduce(((e,t)=>e.concat([`${(0,o.escapeUri)(s)}=${(0,o.escapeUri)(t)}`])),[]).join("&")}}return t.map((e=>n[e])).filter((e=>e)).join("&")};t.getCanonicalQuery=getCanonicalQuery},48545:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getPayloadHash=void 0;const o=n(10780);const r=n(45364);const s=n(41895);const i=n(48644);const getPayloadHash=async({headers:e,body:t},n)=>{for(const t of Object.keys(e)){if(t.toLowerCase()===i.SHA256_HEADER){return e[t]}}if(t==undefined){return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"}else if(typeof t==="string"||ArrayBuffer.isView(t)||(0,o.isArrayBuffer)(t)){const e=new n;e.update((0,s.toUint8Array)(t));return(0,r.toHex)(await e.digest())}return i.UNSIGNED_PAYLOAD};t.getPayloadHash=getPayloadHash},62179:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.deleteHeader=t.getHeaderValue=t.hasHeader=void 0;const hasHeader=(e,t)=>{e=e.toLowerCase();for(const n of Object.keys(t)){if(e===n.toLowerCase()){return true}}return false};t.hasHeader=hasHeader;const getHeaderValue=(e,t)=>{e=e.toLowerCase();for(const n of Object.keys(t)){if(e===n.toLowerCase()){return t[n]}}return undefined};t.getHeaderValue=getHeaderValue;const deleteHeader=(e,t)=>{e=e.toLowerCase();for(const n of Object.keys(t)){if(e===n.toLowerCase()){delete t[n]}}};t.deleteHeader=deleteHeader},11528:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.prepareRequest=t.moveHeadersToQuery=t.getPayloadHash=t.getCanonicalQuery=t.getCanonicalHeaders=void 0;const o=n(4351);o.__exportStar(n(39733),t);var r=n(51393);Object.defineProperty(t,"getCanonicalHeaders",{enumerable:true,get:function(){return r.getCanonicalHeaders}});var s=n(33243);Object.defineProperty(t,"getCanonicalQuery",{enumerable:true,get:function(){return s.getCanonicalQuery}});var i=n(48545);Object.defineProperty(t,"getPayloadHash",{enumerable:true,get:function(){return i.getPayloadHash}});var a=n(49828);Object.defineProperty(t,"moveHeadersToQuery",{enumerable:true,get:function(){return a.moveHeadersToQuery}});var c=n(60075);Object.defineProperty(t,"prepareRequest",{enumerable:true,get:function(){return c.prepareRequest}});o.__exportStar(n(19623),t)},49828:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.moveHeadersToQuery=void 0;const o=n(69098);const moveHeadersToQuery=(e,t={})=>{var n;const{headers:r,query:s={}}=typeof e.clone==="function"?e.clone():(0,o.cloneRequest)(e);for(const e of Object.keys(r)){const o=e.toLowerCase();if(o.slice(0,6)==="x-amz-"&&!((n=t.unhoistableHeaders)===null||n===void 0?void 0:n.has(o))){s[e]=r[e];delete r[e]}}return{...e,headers:r,query:s}};t.moveHeadersToQuery=moveHeadersToQuery},60075:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.prepareRequest=void 0;const o=n(69098);const r=n(48644);const prepareRequest=e=>{e=typeof e.clone==="function"?e.clone():(0,o.cloneRequest)(e);for(const t of Object.keys(e.headers)){if(r.GENERATED_HEADERS.indexOf(t.toLowerCase())>-1){delete e.headers[t]}}return e};t.prepareRequest=prepareRequest},39299:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toDate=t.iso8601=void 0;const iso8601=e=>(0,t.toDate)(e).toISOString().replace(/\.\d{3}Z$/,"Z");t.iso8601=iso8601;const toDate=e=>{if(typeof e==="number"){return new Date(e*1e3)}if(typeof e==="string"){if(Number(e)){return new Date(Number(e)*1e3)}return new Date(e)}return e};t.toDate=toDate},70438:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NoOpLogger=void 0;class NoOpLogger{trace(){}debug(){}info(){}warn(){}error(){}}t.NoOpLogger=NoOpLogger},61600:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Client=void 0;const o=n(97911);class Client{constructor(e){this.middlewareStack=(0,o.constructStack)();this.config=e}send(e,t,n){const o=typeof t!=="function"?t:undefined;const r=typeof t==="function"?t:n;const s=e.resolveMiddleware(this.middlewareStack,this.config,o);if(r){s(e).then((e=>r(null,e.output)),(e=>r(e))).catch((()=>{}))}else{return s(e).then((e=>e.output))}}destroy(){if(this.config.requestHandler.destroy)this.config.requestHandler.destroy()}}t.Client=Client},32813:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.collectBody=void 0;const o=n(96607);const collectBody=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array){return o.Uint8ArrayBlobAdapter.mutate(e)}if(!e){return o.Uint8ArrayBlobAdapter.mutate(new Uint8Array)}const n=t.streamCollector(e);return o.Uint8ArrayBlobAdapter.mutate(await n)};t.collectBody=collectBody},75414:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Command=void 0;const o=n(97911);class Command{constructor(){this.middlewareStack=(0,o.constructStack)()}}t.Command=Command},92541:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SENSITIVE_STRING=void 0;t.SENSITIVE_STRING="***SensitiveInformation***"},56929:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createAggregatedClient=void 0;const createAggregatedClient=(e,t)=>{for(const n of Object.keys(e)){const o=e[n];const methodImpl=async function(e,t,n){const r=new o(e);if(typeof t==="function"){this.send(r,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expected http options but got ${typeof t}`);this.send(r,t||{},n)}else{return this.send(r,t)}};const r=(n[0].toLowerCase()+n.slice(1)).replace(/Command$/,"");t.prototype[r]=methodImpl}};t.createAggregatedClient=createAggregatedClient},21737:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseEpochTimestamp=t.parseRfc7231DateTime=t.parseRfc3339DateTimeWithOffset=t.parseRfc3339DateTime=t.dateToUtcString=void 0;const o=n(74857);const r=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];const s=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function dateToUtcString(e){const t=e.getUTCFullYear();const n=e.getUTCMonth();const o=e.getUTCDay();const i=e.getUTCDate();const a=e.getUTCHours();const c=e.getUTCMinutes();const d=e.getUTCSeconds();const u=i<10?`0${i}`:`${i}`;const l=a<10?`0${a}`:`${a}`;const p=c<10?`0${c}`:`${c}`;const m=d<10?`0${d}`:`${d}`;return`${r[o]}, ${u} ${s[n]} ${t} ${l}:${p}:${m} GMT`}t.dateToUtcString=dateToUtcString;const i=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/);const parseRfc3339DateTime=e=>{if(e===null||e===undefined){return undefined}if(typeof e!=="string"){throw new TypeError("RFC-3339 date-times must be expressed as strings")}const t=i.exec(e);if(!t){throw new TypeError("Invalid RFC-3339 date-time value")}const[n,r,s,a,c,d,u,l]=t;const p=(0,o.strictParseShort)(stripLeadingZeroes(r));const m=parseDateValue(s,"month",1,12);const f=parseDateValue(a,"day",1,31);return buildDate(p,m,f,{hours:c,minutes:d,seconds:u,fractionalMilliseconds:l})};t.parseRfc3339DateTime=parseRfc3339DateTime;const a=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/);const parseRfc3339DateTimeWithOffset=e=>{if(e===null||e===undefined){return undefined}if(typeof e!=="string"){throw new TypeError("RFC-3339 date-times must be expressed as strings")}const t=a.exec(e);if(!t){throw new TypeError("Invalid RFC-3339 date-time value")}const[n,r,s,i,c,d,u,l,p]=t;const m=(0,o.strictParseShort)(stripLeadingZeroes(r));const f=parseDateValue(s,"month",1,12);const y=parseDateValue(i,"day",1,31);const g=buildDate(m,f,y,{hours:c,minutes:d,seconds:u,fractionalMilliseconds:l});if(p.toUpperCase()!="Z"){g.setTime(g.getTime()-parseOffsetToMilliseconds(p))}return g};t.parseRfc3339DateTimeWithOffset=parseRfc3339DateTimeWithOffset;const c=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/);const d=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/);const u=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/);const parseRfc7231DateTime=e=>{if(e===null||e===undefined){return undefined}if(typeof e!=="string"){throw new TypeError("RFC-7231 date-times must be expressed as strings")}let t=c.exec(e);if(t){const[e,n,r,s,i,a,c,d]=t;return buildDate((0,o.strictParseShort)(stripLeadingZeroes(s)),parseMonthByShortName(r),parseDateValue(n,"day",1,31),{hours:i,minutes:a,seconds:c,fractionalMilliseconds:d})}t=d.exec(e);if(t){const[e,n,o,r,s,i,a,c]=t;return adjustRfc850Year(buildDate(parseTwoDigitYear(r),parseMonthByShortName(o),parseDateValue(n,"day",1,31),{hours:s,minutes:i,seconds:a,fractionalMilliseconds:c}))}t=u.exec(e);if(t){const[e,n,r,s,i,a,c,d]=t;return buildDate((0,o.strictParseShort)(stripLeadingZeroes(d)),parseMonthByShortName(n),parseDateValue(r.trimLeft(),"day",1,31),{hours:s,minutes:i,seconds:a,fractionalMilliseconds:c})}throw new TypeError("Invalid RFC-7231 date-time value")};t.parseRfc7231DateTime=parseRfc7231DateTime;const parseEpochTimestamp=e=>{if(e===null||e===undefined){return undefined}let t;if(typeof e==="number"){t=e}else if(typeof e==="string"){t=(0,o.strictParseDouble)(e)}else{throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation")}if(Number.isNaN(t)||t===Infinity||t===-Infinity){throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics")}return new Date(Math.round(t*1e3))};t.parseEpochTimestamp=parseEpochTimestamp;const buildDate=(e,t,n,o)=>{const r=t-1;validateDayOfMonth(e,r,n);return new Date(Date.UTC(e,r,n,parseDateValue(o.hours,"hour",0,23),parseDateValue(o.minutes,"minute",0,59),parseDateValue(o.seconds,"seconds",0,60),parseMilliseconds(o.fractionalMilliseconds)))};const parseTwoDigitYear=e=>{const t=(new Date).getUTCFullYear();const n=Math.floor(t/100)*100+(0,o.strictParseShort)(stripLeadingZeroes(e));if(n<t){return n+100}return n};const l=50*365*24*60*60*1e3;const adjustRfc850Year=e=>{if(e.getTime()-(new Date).getTime()>l){return new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()))}return e};const parseMonthByShortName=e=>{const t=s.indexOf(e);if(t<0){throw new TypeError(`Invalid month: ${e}`)}return t+1};const p=[31,28,31,30,31,30,31,31,30,31,30,31];const validateDayOfMonth=(e,t,n)=>{let o=p[t];if(t===1&&isLeapYear(e)){o=29}if(n>o){throw new TypeError(`Invalid day for ${s[t]} in ${e}: ${n}`)}};const isLeapYear=e=>e%4===0&&(e%100!==0||e%400===0);const parseDateValue=(e,t,n,r)=>{const s=(0,o.strictParseByte)(stripLeadingZeroes(e));if(s<n||s>r){throw new TypeError(`${t} must be between ${n} and ${r}, inclusive`)}return s};const parseMilliseconds=e=>{if(e===null||e===undefined){return 0}return(0,o.strictParseFloat32)("0."+e)*1e3};const parseOffsetToMilliseconds=e=>{const t=e[0];let n=1;if(t=="+"){n=1}else if(t=="-"){n=-1}else{throw new TypeError(`Offset direction, ${t}, must be "+" or "-"`)}const o=Number(e.substring(1,3));const r=Number(e.substring(4,6));return n*(o*60+r)*60*1e3};const stripLeadingZeroes=e=>{let t=0;while(t<e.length-1&&e.charAt(t)==="0"){t++}if(t===0){return e}return e.slice(t)}},9681:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.withBaseException=t.throwDefaultError=void 0;const o=n(88074);const throwDefaultError=({output:e,parsedBody:t,exceptionCtor:n,errorCode:r})=>{const s=deserializeMetadata(e);const i=s.httpStatusCode?s.httpStatusCode+"":undefined;const a=new n({name:(t===null||t===void 0?void 0:t.code)||(t===null||t===void 0?void 0:t.Code)||r||i||"UnknownError",$fault:"client",$metadata:s});throw(0,o.decorateServiceException)(a,t)};t.throwDefaultError=throwDefaultError;const withBaseException=e=>({output:n,parsedBody:o,errorCode:r})=>{(0,t.throwDefaultError)({output:n,parsedBody:o,exceptionCtor:e,errorCode:r})};t.withBaseException=withBaseException;const deserializeMetadata=e=>{var t,n;return{httpStatusCode:e.statusCode,requestId:(n=(t=e.headers["x-amzn-requestid"])!==null&&t!==void 0?t:e.headers["x-amzn-request-id"])!==null&&n!==void 0?n:e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}}},11163:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.loadConfigsForDefaultMode=void 0;const loadConfigsForDefaultMode=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{}}};t.loadConfigsForDefaultMode=loadConfigsForDefaultMode},91809:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.emitWarningIfUnsupportedVersion=void 0;let n=false;const emitWarningIfUnsupportedVersion=e=>{if(e&&!n&&parseInt(e.substring(1,e.indexOf(".")))<14){n=true}};t.emitWarningIfUnsupportedVersion=emitWarningIfUnsupportedVersion},88074:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.decorateServiceException=t.ServiceException=void 0;class ServiceException extends Error{constructor(e){super(e.message);Object.setPrototypeOf(this,ServiceException.prototype);this.name=e.name;this.$fault=e.$fault;this.$metadata=e.$metadata}}t.ServiceException=ServiceException;const decorateServiceException=(e,t={})=>{Object.entries(t).filter((([,e])=>e!==undefined)).forEach((([t,n])=>{if(e[t]==undefined||e[t]===""){e[t]=n}}));const n=e.message||e.Message||"UnknownError";e.message=n;delete e.Message;return e};t.decorateServiceException=decorateServiceException},76016:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.extendedEncodeURIComponent=void 0;function extendedEncodeURIComponent(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}t.extendedEncodeURIComponent=extendedEncodeURIComponent},42638:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getArrayIfSingleItem=void 0;const getArrayIfSingleItem=e=>Array.isArray(e)?e:[e];t.getArrayIfSingleItem=getArrayIfSingleItem},92188:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getValueFromTextNode=void 0;const getValueFromTextNode=e=>{const n="#text";for(const o in e){if(e.hasOwnProperty(o)&&e[o][n]!==undefined){e[o]=e[o][n]}else if(typeof e[o]==="object"&&e[o]!==null){e[o]=(0,t.getValueFromTextNode)(e[o])}}return e};t.getValueFromTextNode=getValueFromTextNode},63570:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(70438),t);o.__exportStar(n(61600),t);o.__exportStar(n(32813),t);o.__exportStar(n(75414),t);o.__exportStar(n(92541),t);o.__exportStar(n(56929),t);o.__exportStar(n(21737),t);o.__exportStar(n(9681),t);o.__exportStar(n(11163),t);o.__exportStar(n(91809),t);o.__exportStar(n(88074),t);o.__exportStar(n(76016),t);o.__exportStar(n(42638),t);o.__exportStar(n(92188),t);o.__exportStar(n(32964),t);o.__exportStar(n(83495),t);o.__exportStar(n(74857),t);o.__exportStar(n(15342),t);o.__exportStar(n(59796),t);o.__exportStar(n(1752),t);o.__exportStar(n(92480),t)},32964:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.LazyJsonString=t.StringWrapper=void 0;const StringWrapper=function(){const e=Object.getPrototypeOf(this).constructor;const t=Function.bind.apply(String,[null,...arguments]);const n=new t;Object.setPrototypeOf(n,e.prototype);return n};t.StringWrapper=StringWrapper;t.StringWrapper.prototype=Object.create(String.prototype,{constructor:{value:t.StringWrapper,enumerable:false,writable:true,configurable:true}});Object.setPrototypeOf(t.StringWrapper,String);class LazyJsonString extends t.StringWrapper{deserializeJSON(){return JSON.parse(super.toString())}toJSON(){return super.toString()}static fromObject(e){if(e instanceof LazyJsonString){return e}else if(e instanceof String||typeof e==="string"){return new LazyJsonString(e)}return new LazyJsonString(JSON.stringify(e))}}t.LazyJsonString=LazyJsonString},83495:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.take=t.convertMap=t.map=void 0;function map(e,t,n){let o;let r;let s;if(typeof t==="undefined"&&typeof n==="undefined"){o={};s=e}else{o=e;if(typeof t==="function"){r=t;s=n;return mapWithFilter(o,r,s)}else{s=t}}for(const e of Object.keys(s)){if(!Array.isArray(s[e])){o[e]=s[e];continue}applyInstruction(o,null,s,e)}return o}t.map=map;const convertMap=e=>{const t={};for(const[n,o]of Object.entries(e||{})){t[n]=[,o]}return t};t.convertMap=convertMap;const take=(e,t)=>{const n={};for(const o in t){applyInstruction(n,e,t,o)}return n};t.take=take;const mapWithFilter=(e,t,n)=>map(e,Object.entries(n).reduce(((e,[n,o])=>{if(Array.isArray(o)){e[n]=o}else{if(typeof o==="function"){e[n]=[t,o()]}else{e[n]=[t,o]}}return e}),{}));const applyInstruction=(e,t,n,o)=>{if(t!==null){let r=n[o];if(typeof r==="function"){r=[,r]}const[s=nonNullish,i=pass,a=o]=r;if(typeof s==="function"&&s(t[a])||typeof s!=="function"&&!!s){e[o]=i(t[a])}return}let[r,s]=n[o];if(typeof s==="function"){let t;const n=r===undefined&&(t=s())!=null;const i=typeof r==="function"&&!!r(void 0)||typeof r!=="function"&&!!r;if(n){e[o]=t}else if(i){e[o]=s()}}else{const t=r===undefined&&s!=null;const n=typeof r==="function"&&!!r(s)||typeof r!=="function"&&!!r;if(t||n){e[o]=s}}};const nonNullish=e=>e!=null;const pass=e=>e},74857:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logger=t.strictParseByte=t.strictParseShort=t.strictParseInt32=t.strictParseInt=t.strictParseLong=t.limitedParseFloat32=t.limitedParseFloat=t.handleFloat=t.limitedParseDouble=t.strictParseFloat32=t.strictParseFloat=t.strictParseDouble=t.expectUnion=t.expectString=t.expectObject=t.expectNonNull=t.expectByte=t.expectShort=t.expectInt32=t.expectInt=t.expectLong=t.expectFloat32=t.expectNumber=t.expectBoolean=t.parseBoolean=void 0;const parseBoolean=e=>{switch(e){case"true":return true;case"false":return false;default:throw new Error(`Unable to parse boolean value "${e}"`)}};t.parseBoolean=parseBoolean;const expectBoolean=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="number"){if(e===0||e===1){t.logger.warn(stackTraceWarning(`Expected boolean, got ${typeof e}: ${e}`))}if(e===0){return false}if(e===1){return true}}if(typeof e==="string"){const n=e.toLowerCase();if(n==="false"||n==="true"){t.logger.warn(stackTraceWarning(`Expected boolean, got ${typeof e}: ${e}`))}if(n==="false"){return false}if(n==="true"){return true}}if(typeof e==="boolean"){return e}throw new TypeError(`Expected boolean, got ${typeof e}: ${e}`)};t.expectBoolean=expectBoolean;const expectNumber=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="string"){const n=parseFloat(e);if(!Number.isNaN(n)){if(String(n)!==String(e)){t.logger.warn(stackTraceWarning(`Expected number but observed string: ${e}`))}return n}}if(typeof e==="number"){return e}throw new TypeError(`Expected number, got ${typeof e}: ${e}`)};t.expectNumber=expectNumber;const n=Math.ceil(2**127*(2-2**-23));const expectFloat32=e=>{const o=(0,t.expectNumber)(e);if(o!==undefined&&!Number.isNaN(o)&&o!==Infinity&&o!==-Infinity){if(Math.abs(o)>n){throw new TypeError(`Expected 32-bit float, got ${e}`)}}return o};t.expectFloat32=expectFloat32;const expectLong=e=>{if(e===null||e===undefined){return undefined}if(Number.isInteger(e)&&!Number.isNaN(e)){return e}throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)};t.expectLong=expectLong;t.expectInt=t.expectLong;const expectInt32=e=>expectSizedInt(e,32);t.expectInt32=expectInt32;const expectShort=e=>expectSizedInt(e,16);t.expectShort=expectShort;const expectByte=e=>expectSizedInt(e,8);t.expectByte=expectByte;const expectSizedInt=(e,n)=>{const o=(0,t.expectLong)(e);if(o!==undefined&&castInt(o,n)!==o){throw new TypeError(`Expected ${n}-bit integer, got ${e}`)}return o};const castInt=(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]}};const expectNonNull=(e,t)=>{if(e===null||e===undefined){if(t){throw new TypeError(`Expected a non-null value for ${t}`)}throw new TypeError("Expected a non-null value")}return e};t.expectNonNull=expectNonNull;const expectObject=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="object"&&!Array.isArray(e)){return e}const t=Array.isArray(e)?"array":typeof e;throw new TypeError(`Expected object, got ${t}: ${e}`)};t.expectObject=expectObject;const expectString=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="string"){return e}if(["boolean","number","bigint"].includes(typeof e)){t.logger.warn(stackTraceWarning(`Expected string, got ${typeof e}: ${e}`));return String(e)}throw new TypeError(`Expected string, got ${typeof e}: ${e}`)};t.expectString=expectString;const expectUnion=e=>{if(e===null||e===undefined){return undefined}const n=(0,t.expectObject)(e);const o=Object.entries(n).filter((([,e])=>e!=null)).map((([e])=>e));if(o.length===0){throw new TypeError(`Unions must have exactly one non-null member. None were found.`)}if(o.length>1){throw new TypeError(`Unions must have exactly one non-null member. Keys ${o} were not null.`)}return n};t.expectUnion=expectUnion;const strictParseDouble=e=>{if(typeof e=="string"){return(0,t.expectNumber)(parseNumber(e))}return(0,t.expectNumber)(e)};t.strictParseDouble=strictParseDouble;t.strictParseFloat=t.strictParseDouble;const strictParseFloat32=e=>{if(typeof e=="string"){return(0,t.expectFloat32)(parseNumber(e))}return(0,t.expectFloat32)(e)};t.strictParseFloat32=strictParseFloat32;const o=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g;const parseNumber=e=>{const t=e.match(o);if(t===null||t[0].length!==e.length){throw new TypeError(`Expected real number, got implicit NaN`)}return parseFloat(e)};const limitedParseDouble=e=>{if(typeof e=="string"){return parseFloatString(e)}return(0,t.expectNumber)(e)};t.limitedParseDouble=limitedParseDouble;t.handleFloat=t.limitedParseDouble;t.limitedParseFloat=t.limitedParseDouble;const limitedParseFloat32=e=>{if(typeof e=="string"){return parseFloatString(e)}return(0,t.expectFloat32)(e)};t.limitedParseFloat32=limitedParseFloat32;const parseFloatString=e=>{switch(e){case"NaN":return NaN;case"Infinity":return Infinity;case"-Infinity":return-Infinity;default:throw new Error(`Unable to parse float value: ${e}`)}};const strictParseLong=e=>{if(typeof e==="string"){return(0,t.expectLong)(parseNumber(e))}return(0,t.expectLong)(e)};t.strictParseLong=strictParseLong;t.strictParseInt=t.strictParseLong;const strictParseInt32=e=>{if(typeof e==="string"){return(0,t.expectInt32)(parseNumber(e))}return(0,t.expectInt32)(e)};t.strictParseInt32=strictParseInt32;const strictParseShort=e=>{if(typeof e==="string"){return(0,t.expectShort)(parseNumber(e))}return(0,t.expectShort)(e)};t.strictParseShort=strictParseShort;const strictParseByte=e=>{if(typeof e==="string"){return(0,t.expectByte)(parseNumber(e))}return(0,t.expectByte)(e)};t.strictParseByte=strictParseByte;const stackTraceWarning=e=>String(new TypeError(e).stack||e).split("\n").slice(0,5).filter((e=>!e.includes("stackTraceWarning"))).join("\n");t.logger={warn:console.warn}},15342:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolvedPath=void 0;const o=n(76016);const resolvedPath=(e,t,n,r,s,i)=>{if(t!=null&&t[n]!==undefined){const t=r();if(t.length<=0){throw new Error("Empty value provided for input HTTP label: "+n+".")}e=e.replace(s,i?t.split("/").map((e=>(0,o.extendedEncodeURIComponent)(e))).join("/"):(0,o.extendedEncodeURIComponent)(t))}else{throw new Error("No value provided for input HTTP label: "+n+".")}return e};t.resolvedPath=resolvedPath},59796:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.serializeFloat=void 0;const serializeFloat=e=>{if(e!==e){return"NaN"}switch(e){case Infinity:return"Infinity";case-Infinity:return"-Infinity";default:return e}};t.serializeFloat=serializeFloat},1752:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t._json=void 0;const _json=e=>{if(e==null){return{}}if(Array.isArray(e)){return e.filter((e=>e!=null))}if(typeof e==="object"){const n={};for(const o of Object.keys(e)){if(e[o]==null){continue}n[o]=(0,t._json)(e[o])}return n}return e};t._json=_json},92480:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.splitEvery=void 0;function splitEvery(e,t,n){if(n<=0||!Number.isInteger(n)){throw new Error("Invalid number of delimiters ("+n+") for splitEvery.")}const o=e.split(t);if(n===1){return o}const r=[];let s="";for(let e=0;e<o.length;e++){if(s===""){s=o[e]}else{s+=t+o[e]}if((e+1)%n===0){r.push(s);s=""}}if(s!==""){r.push(s)}return r}t.splitEvery=splitEvery},74075:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},48960:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.HttpAuthLocation=void 0;var n;(function(e){e["HEADER"]="header";e["QUERY"]="query"})(n=t.HttpAuthLocation||(t.HttpAuthLocation={}))},78340:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},4744:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},68270:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},39580:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},57628:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(39580),t);o.__exportStar(n(98398),t);o.__exportStar(n(76522),t)},98398:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},76522:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},89035:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},7225:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},54126:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.EndpointURLScheme=void 0;var n;(function(e){e["HTTP"]="http";e["HTTPS"]="https"})(n=t.EndpointURLScheme||(t.EndpointURLScheme={}))},55612:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},43084:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},89843:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},63799:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},21550:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(55612),t);o.__exportStar(n(43084),t);o.__exportStar(n(89843),t);o.__exportStar(n(57658),t);o.__exportStar(n(63799),t)},57658:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},88508:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},18883:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.FieldPosition=void 0;var n;(function(e){e[e["HEADER"]=0]="HEADER";e[e["TRAILER"]=1]="TRAILER"})(n=t.FieldPosition||(t.FieldPosition={}))},7545:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},49123:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},28006:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(7545),t);o.__exportStar(n(49123),t)},55756:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(74075),t);o.__exportStar(n(48960),t);o.__exportStar(n(78340),t);o.__exportStar(n(4744),t);o.__exportStar(n(68270),t);o.__exportStar(n(57628),t);o.__exportStar(n(89035),t);o.__exportStar(n(7225),t);o.__exportStar(n(54126),t);o.__exportStar(n(21550),t);o.__exportStar(n(88508),t);o.__exportStar(n(18883),t);o.__exportStar(n(28006),t);o.__exportStar(n(52866),t);o.__exportStar(n(17756),t);o.__exportStar(n(45489),t);o.__exportStar(n(26524),t);o.__exportStar(n(14603),t);o.__exportStar(n(83752),t);o.__exportStar(n(30774),t);o.__exportStar(n(14089),t);o.__exportStar(n(45678),t);o.__exportStar(n(69926),t);o.__exportStar(n(50364),t);o.__exportStar(n(66894),t);o.__exportStar(n(57887),t);o.__exportStar(n(66255),t)},52866:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},17756:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},45489:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},26524:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},14603:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},83752:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},30774:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},14089:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},45678:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},69926:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},50364:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RequestHandlerProtocol=void 0;var n;(function(e){e["HTTP_0_9"]="http/0.9";e["HTTP_1_0"]="http/1.0";e["TDS_8_0"]="tds/8.0"})(n=t.RequestHandlerProtocol||(t.RequestHandlerProtocol={}))},66894:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},57887:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},66255:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},14681:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseUrl=void 0;const o=n(4769);const parseUrl=e=>{if(typeof e==="string"){return(0,t.parseUrl)(new URL(e))}const{hostname:n,pathname:r,port:s,protocol:i,search:a}=e;let c;if(a){c=(0,o.parseQueryString)(a)}return{hostname:n,port:s?parseInt(s):undefined,protocol:i,path:r,query:c}};t.parseUrl=parseUrl},30305:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromBase64=void 0;const o=n(31381);const r=/^[A-Za-z0-9+/]*={0,2}$/;const fromBase64=e=>{if(e.length*3%4!==0){throw new TypeError(`Incorrect padding on base64 string.`)}if(!r.exec(e)){throw new TypeError(`Invalid base64 string.`)}const t=(0,o.fromString)(e,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)};t.fromBase64=fromBase64},75600:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(30305),t);o.__exportStar(n(74730),t)},74730:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toBase64=void 0;const o=n(31381);const toBase64=e=>(0,o.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString("base64");t.toBase64=toBase64},54880:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.calculateBodyLength=void 0;const o=n(57147);const calculateBodyLength=e=>{if(!e){return 0}if(typeof e==="string"){return Buffer.from(e).length}else if(typeof e.byteLength==="number"){return e.byteLength}else if(typeof e.size==="number"){return e.size}else if(typeof e.path==="string"||Buffer.isBuffer(e.path)){return(0,o.lstatSync)(e.path).size}else if(typeof e.fd==="number"){return(0,o.fstatSync)(e.fd).size}throw new Error(`Body Length computation failed for ${e}`)};t.calculateBodyLength=calculateBodyLength},68075:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(54880),t)},31381:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromString=t.fromArrayBuffer=void 0;const o=n(10780);const r=n(14300);const fromArrayBuffer=(e,t=0,n=e.byteLength-t)=>{if(!(0,o.isArrayBuffer)(e)){throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`)}return r.Buffer.from(e,t,n)};t.fromArrayBuffer=fromArrayBuffer;const fromString=(e,t)=>{if(typeof e!=="string"){throw new TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`)}return t?r.Buffer.from(e,t):r.Buffer.from(e)};t.fromString=fromString},42491:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.booleanSelector=t.SelectorType=void 0;var n;(function(e){e["ENV"]="env";e["CONFIG"]="shared config entry"})(n=t.SelectorType||(t.SelectorType={}));const booleanSelector=(e,t,n)=>{if(!(t in e))return undefined;if(e[t]==="true")return true;if(e[t]==="false")return false;throw new Error(`Cannot load ${n} "${t}". Expected "true" or "false", got ${e[t]}.`)};t.booleanSelector=booleanSelector},83375:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(42491),t)},56470:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.IMDS_REGION_PATH=t.DEFAULTS_MODE_OPTIONS=t.ENV_IMDS_DISABLED=t.AWS_DEFAULT_REGION_ENV=t.AWS_REGION_ENV=t.AWS_EXECUTION_ENV=void 0;t.AWS_EXECUTION_ENV="AWS_EXECUTION_ENV";t.AWS_REGION_ENV="AWS_REGION";t.AWS_DEFAULT_REGION_ENV="AWS_DEFAULT_REGION";t.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";t.DEFAULTS_MODE_OPTIONS=["in-region","cross-region","mobile","standard","legacy"];t.IMDS_REGION_PATH="/latest/meta-data/placement/region"},15577:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NODE_DEFAULTS_MODE_CONFIG_OPTIONS=void 0;const n="AWS_DEFAULTS_MODE";const o="defaults_mode";t.NODE_DEFAULTS_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[n],configFileSelector:e=>e[o],default:"legacy"}},72429:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(46217),t)},46217:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveDefaultsModeConfig=void 0;const o=n(53098);const r=n(7477);const s=n(33461);const i=n(79721);const a=n(56470);const c=n(15577);const resolveDefaultsModeConfig=({region:e=(0,s.loadConfig)(o.NODE_REGION_CONFIG_OPTIONS),defaultsMode:t=(0,s.loadConfig)(c.NODE_DEFAULTS_MODE_CONFIG_OPTIONS)}={})=>(0,i.memoize)((async()=>{const n=typeof t==="function"?await t():t;switch(n===null||n===void 0?void 0:n.toLowerCase()){case"auto":return resolveNodeDefaultsModeAuto(e);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(n===null||n===void 0?void 0:n.toLocaleLowerCase());case undefined:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${a.DEFAULTS_MODE_OPTIONS.join(", ")}, got ${n}`)}}));t.resolveDefaultsModeConfig=resolveDefaultsModeConfig;const resolveNodeDefaultsModeAuto=async e=>{if(e){const t=typeof e==="function"?await e():e;const n=await inferPhysicalRegion();if(!n){return"standard"}if(t===n){return"in-region"}else{return"cross-region"}}return"standard"};const inferPhysicalRegion=async()=>{var e;if(process.env[a.AWS_EXECUTION_ENV]&&(process.env[a.AWS_REGION_ENV]||process.env[a.AWS_DEFAULT_REGION_ENV])){return(e=process.env[a.AWS_REGION_ENV])!==null&&e!==void 0?e:process.env[a.AWS_DEFAULT_REGION_ENV]}if(!process.env[a.ENV_IMDS_DISABLED]){try{const e=await(0,r.getInstanceMetadataEndpoint)();return(await(0,r.httpRequest)({...e,path:a.IMDS_REGION_PATH})).toString()}catch(e){}}}},45364:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toHex=t.fromHex=void 0;const n={};const o={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();if(t.length===1){t=`0${t}`}n[e]=t;o[t]=e}function fromHex(e){if(e.length%2!==0){throw new Error("Hex encoded strings must have an even number length")}const t=new Uint8Array(e.length/2);for(let n=0;n<e.length;n+=2){const r=e.slice(n,n+2).toLowerCase();if(r in o){t[n/2]=o[r]}else{throw new Error(`Cannot decode unrecognized sequence ${r} as hexadecimal`)}}return t}t.fromHex=fromHex;function toHex(e){let t="";for(let o=0;o<e.byteLength;o++){t+=n[e[o]]}return t}t.toHex=toHex},2390:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(80149),t)},80149:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.normalizeProvider=void 0;const normalizeProvider=e=>{if(typeof e==="function")return e;const t=Promise.resolve(e);return()=>t};t.normalizeProvider=normalizeProvider},65053:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AdaptiveRetryStrategy=void 0;const o=n(93435);const r=n(22234);const s=n(48361);class AdaptiveRetryStrategy{constructor(e,t){this.maxAttemptsProvider=e;this.mode=o.RETRY_MODES.ADAPTIVE;const{rateLimiter:n}=t!==null&&t!==void 0?t:{};this.rateLimiter=n!==null&&n!==void 0?n:new r.DefaultRateLimiter;this.standardRetryStrategy=new s.StandardRetryStrategy(e)}async acquireInitialRetryToken(e){await this.rateLimiter.getSendToken();return this.standardRetryStrategy.acquireInitialRetryToken(e)}async refreshRetryTokenForRetry(e,t){this.rateLimiter.updateClientSendingRate(t);return this.standardRetryStrategy.refreshRetryTokenForRetry(e,t)}recordSuccess(e){this.rateLimiter.updateClientSendingRate({});this.standardRetryStrategy.recordSuccess(e)}}t.AdaptiveRetryStrategy=AdaptiveRetryStrategy},25689:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ConfiguredRetryStrategy=void 0;const o=n(66302);const r=n(48361);class ConfiguredRetryStrategy extends r.StandardRetryStrategy{constructor(e,t=o.DEFAULT_RETRY_DELAY_BASE){super(typeof e==="function"?e:async()=>e);if(typeof t==="number"){this.computeNextBackoffDelay=()=>t}else{this.computeNextBackoffDelay=t}}async refreshRetryTokenForRetry(e,t){const n=await super.refreshRetryTokenForRetry(e,t);n.getRetryDelay=()=>this.computeNextBackoffDelay(n.getRetryCount());return n}}t.ConfiguredRetryStrategy=ConfiguredRetryStrategy},22234:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DefaultRateLimiter=void 0;const o=n(6375);class DefaultRateLimiter{constructor(e){var t,n,o,r,s;this.currentCapacity=0;this.enabled=false;this.lastMaxRate=0;this.measuredTxRate=0;this.requestCount=0;this.lastTimestamp=0;this.timeWindow=0;this.beta=(t=e===null||e===void 0?void 0:e.beta)!==null&&t!==void 0?t:.7;this.minCapacity=(n=e===null||e===void 0?void 0:e.minCapacity)!==null&&n!==void 0?n:1;this.minFillRate=(o=e===null||e===void 0?void 0:e.minFillRate)!==null&&o!==void 0?o:.5;this.scaleConstant=(r=e===null||e===void 0?void 0:e.scaleConstant)!==null&&r!==void 0?r:.4;this.smooth=(s=e===null||e===void 0?void 0:e.smooth)!==null&&s!==void 0?s:.8;const i=this.getCurrentTimeInSeconds();this.lastThrottleTime=i;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(e){if(!this.enabled){return}this.refillTokenBucket();if(e>this.currentCapacity){const t=(e-this.currentCapacity)/this.fillRate*1e3;await new Promise((e=>setTimeout(e,t)))}this.currentCapacity=this.currentCapacity-e}refillTokenBucket(){const e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}const t=(e-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+t);this.lastTimestamp=e}updateClientSendingRate(e){let t;this.updateMeasuredRate();if((0,o.isThrottlingError)(e)){const e=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=e;this.calculateTimeWindow();this.lastThrottleTime=this.getCurrentTimeInSeconds();t=this.cubicThrottle(e);this.enableTokenBucket()}else{this.calculateTimeWindow();t=this.cubicSuccess(this.getCurrentTimeInSeconds())}const n=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(n)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*Math.pow(e-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=true}updateTokenBucketRate(e){this.refillTokenBucket();this.fillRate=Math.max(e,this.minFillRate);this.maxCapacity=Math.max(e,this.minCapacity);this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const e=this.getCurrentTimeInSeconds();const t=Math.floor(e*2)/2;this.requestCount++;if(t>this.lastTxRateBucket){const e=this.requestCount/(t-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(e*this.smooth+this.measuredTxRate*(1-this.smooth));this.requestCount=0;this.lastTxRateBucket=t}}getPrecise(e){return parseFloat(e.toFixed(8))}}t.DefaultRateLimiter=DefaultRateLimiter},48361:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StandardRetryStrategy=void 0;const o=n(93435);const r=n(66302);const s=n(21337);const i=n(1127);class StandardRetryStrategy{constructor(e){this.maxAttempts=e;this.mode=o.RETRY_MODES.STANDARD;this.capacity=r.INITIAL_RETRY_TOKENS;this.retryBackoffStrategy=(0,s.getDefaultRetryBackoffStrategy)();this.maxAttemptsProvider=typeof e==="function"?e:async()=>e}async acquireInitialRetryToken(e){return(0,i.createDefaultRetryToken)({retryDelay:r.DEFAULT_RETRY_DELAY_BASE,retryCount:0})}async refreshRetryTokenForRetry(e,t){const n=await this.getMaxAttempts();if(this.shouldRetry(e,t,n)){const n=t.errorType;this.retryBackoffStrategy.setDelayBase(n==="THROTTLING"?r.THROTTLING_RETRY_DELAY_BASE:r.DEFAULT_RETRY_DELAY_BASE);const o=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount());const s=t.retryAfterHint?Math.max(t.retryAfterHint.getTime()-Date.now()||0,o):o;const a=this.getCapacityCost(n);this.capacity-=a;return(0,i.createDefaultRetryToken)({retryDelay:s,retryCount:e.getRetryCount()+1,retryCost:a})}throw new Error("No retry token available")}recordSuccess(e){var t;this.capacity=Math.max(r.INITIAL_RETRY_TOKENS,this.capacity+((t=e.getRetryCost())!==null&&t!==void 0?t:r.NO_RETRY_INCREMENT))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(e){console.warn(`Max attempts provider could not resolve. Using default of ${o.DEFAULT_MAX_ATTEMPTS}`);return o.DEFAULT_MAX_ATTEMPTS}}shouldRetry(e,t,n){const o=e.getRetryCount()+1;return o<n&&this.capacity>=this.getCapacityCost(t.errorType)&&this.isRetryableError(t.errorType)}getCapacityCost(e){return e==="TRANSIENT"?r.TIMEOUT_RETRY_COST:r.RETRY_COST}isRetryableError(e){return e==="THROTTLING"||e==="TRANSIENT"}}t.StandardRetryStrategy=StandardRetryStrategy},93435:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DEFAULT_RETRY_MODE=t.DEFAULT_MAX_ATTEMPTS=t.RETRY_MODES=void 0;var n;(function(e){e["STANDARD"]="standard";e["ADAPTIVE"]="adaptive"})(n=t.RETRY_MODES||(t.RETRY_MODES={}));t.DEFAULT_MAX_ATTEMPTS=3;t.DEFAULT_RETRY_MODE=n.STANDARD},66302:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.REQUEST_HEADER=t.INVOCATION_ID_HEADER=t.NO_RETRY_INCREMENT=t.TIMEOUT_RETRY_COST=t.RETRY_COST=t.INITIAL_RETRY_TOKENS=t.THROTTLING_RETRY_DELAY_BASE=t.MAXIMUM_RETRY_DELAY=t.DEFAULT_RETRY_DELAY_BASE=void 0;t.DEFAULT_RETRY_DELAY_BASE=100;t.MAXIMUM_RETRY_DELAY=20*1e3;t.THROTTLING_RETRY_DELAY_BASE=500;t.INITIAL_RETRY_TOKENS=500;t.RETRY_COST=5;t.TIMEOUT_RETRY_COST=10;t.NO_RETRY_INCREMENT=1;t.INVOCATION_ID_HEADER="amz-sdk-invocation-id";t.REQUEST_HEADER="amz-sdk-request"},21337:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getDefaultRetryBackoffStrategy=void 0;const o=n(66302);const getDefaultRetryBackoffStrategy=()=>{let e=o.DEFAULT_RETRY_DELAY_BASE;const computeNextBackoffDelay=t=>Math.floor(Math.min(o.MAXIMUM_RETRY_DELAY,Math.random()*2**t*e));const setDelayBase=t=>{e=t};return{computeNextBackoffDelay:computeNextBackoffDelay,setDelayBase:setDelayBase}};t.getDefaultRetryBackoffStrategy=getDefaultRetryBackoffStrategy},1127:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createDefaultRetryToken=void 0;const o=n(66302);const createDefaultRetryToken=({retryDelay:e,retryCount:t,retryCost:n})=>{const getRetryCount=()=>t;const getRetryDelay=()=>Math.min(o.MAXIMUM_RETRY_DELAY,e);const getRetryCost=()=>n;return{getRetryCount:getRetryCount,getRetryDelay:getRetryDelay,getRetryCost:getRetryCost}};t.createDefaultRetryToken=createDefaultRetryToken},84902:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(65053),t);o.__exportStar(n(25689),t);o.__exportStar(n(22234),t);o.__exportStar(n(48361),t);o.__exportStar(n(93435),t);o.__exportStar(n(66302),t);o.__exportStar(n(75427),t)},75427:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},22094:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Uint8ArrayBlobAdapter=void 0;const o=n(82098);class Uint8ArrayBlobAdapter extends Uint8Array{static fromString(e,t="utf-8"){switch(typeof e){case"string":return(0,o.transformFromString)(e,t);default:throw new Error(`Unsupported conversion from ${typeof e} to Uint8ArrayBlobAdapter.`)}}static mutate(e){Object.setPrototypeOf(e,Uint8ArrayBlobAdapter.prototype);return e}transformToString(e="utf-8"){return(0,o.transformToString)(this,e)}}t.Uint8ArrayBlobAdapter=Uint8ArrayBlobAdapter},82098:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.transformFromString=t.transformToString=void 0;const o=n(75600);const r=n(41895);const s=n(22094);function transformToString(e,t="utf-8"){if(t==="base64"){return(0,o.toBase64)(e)}return(0,r.toUtf8)(e)}t.transformToString=transformToString;function transformFromString(e,t){if(t==="base64"){return s.Uint8ArrayBlobAdapter.mutate((0,o.fromBase64)(e))}return s.Uint8ArrayBlobAdapter.mutate((0,r.fromUtf8)(e))}t.transformFromString=transformFromString},23636:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getAwsChunkedEncodingStream=void 0;const o=n(12781);const getAwsChunkedEncodingStream=(e,t)=>{const{base64Encoder:n,bodyLengthChecker:r,checksumAlgorithmFn:s,checksumLocationName:i,streamHasher:a}=t;const c=n!==undefined&&s!==undefined&&i!==undefined&&a!==undefined;const d=c?a(s,e):undefined;const u=new o.Readable({read:()=>{}});e.on("data",(e=>{const t=r(e)||0;u.push(`${t.toString(16)}\r\n`);u.push(e);u.push("\r\n")}));e.on("end",(async()=>{u.push(`0\r\n`);if(c){const e=n(await d);u.push(`${i}:${e}\r\n`);u.push(`\r\n`)}u.push(null)}));return u};t.getAwsChunkedEncodingStream=getAwsChunkedEncodingStream},96607:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(22094),t);o.__exportStar(n(23636),t);o.__exportStar(n(4515),t)},4515:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.sdkStreamMixin=void 0;const o=n(20258);const r=n(31381);const s=n(12781);const i=n(73837);const a="The stream has already been transformed.";const sdkStreamMixin=e=>{var t,n;if(!(e instanceof s.Readable)){const o=((n=(t=e===null||e===void 0?void 0:e.__proto__)===null||t===void 0?void 0:t.constructor)===null||n===void 0?void 0:n.name)||e;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${o}`)}let c=false;const transformToByteArray=async()=>{if(c){throw new Error(a)}c=true;return await(0,o.streamCollector)(e)};return Object.assign(e,{transformToByteArray:transformToByteArray,transformToString:async e=>{const t=await transformToByteArray();if(e===undefined||Buffer.isEncoding(e)){return(0,r.fromArrayBuffer)(t.buffer,t.byteOffset,t.byteLength).toString(e)}else{const n=new i.TextDecoder(e);return n.decode(t)}},transformToWebStream:()=>{if(c){throw new Error(a)}if(e.readableFlowing!==null){throw new Error("The stream has been consumed by other callbacks.")}if(typeof s.Readable.toWeb!=="function"){throw new Error("Readable.toWeb() is not supported. Please make sure you are using Node.js >= 17.0.0, or polyfill is available.")}c=true;return s.Readable.toWeb(e)}})};t.sdkStreamMixin=sdkStreamMixin},26174:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.escapeUriPath=void 0;const o=n(60010);const escapeUriPath=e=>e.split("/").map(o.escapeUri).join("/");t.escapeUriPath=escapeUriPath},60010:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.escapeUri=void 0;const escapeUri=e=>encodeURIComponent(e).replace(/[!'()*]/g,hexEncode);t.escapeUri=escapeUri;const hexEncode=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`},54197:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(60010),t);o.__exportStar(n(26174),t)},45917:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromUtf8=void 0;const o=n(31381);const fromUtf8=e=>{const t=(0,o.fromString)(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)};t.fromUtf8=fromUtf8},41895:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(45917),t);o.__exportStar(n(95470),t);o.__exportStar(n(99960),t)},95470:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toUint8Array=void 0;const o=n(45917);const toUint8Array=e=>{if(typeof e==="string"){return(0,o.fromUtf8)(e)}if(ArrayBuffer.isView(e)){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT)}return new Uint8Array(e)};t.toUint8Array=toUint8Array},99960:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toUtf8=void 0;const o=n(31381);const toUtf8=e=>(0,o.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString("utf8");t.toUtf8=toUtf8},76991:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createWaiter=void 0;const o=n(39033);const r=n(26e3);const s=n(79089);const abortTimeout=async e=>new Promise((t=>{e.onabort=()=>t({state:s.WaiterState.ABORTED})}));const createWaiter=async(e,t,n)=>{const i={...s.waiterServiceDefaults,...e};(0,r.validateWaiterOptions)(i);const a=[(0,o.runPolling)(i,t,n)];if(e.abortController){a.push(abortTimeout(e.abortController.signal))}if(e.abortSignal){a.push(abortTimeout(e.abortSignal))}return Promise.race(a)};t.createWaiter=createWaiter},78011:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(76991),t);o.__exportStar(n(79089),t)},39033:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.runPolling=void 0;const o=n(62380);const r=n(79089);const exponentialBackoffWithJitter=(e,t,n,o)=>{if(o>n)return t;const r=e*2**(o-1);return randomInRange(e,r)};const randomInRange=(e,t)=>e+Math.random()*(t-e);const runPolling=async({minDelay:e,maxDelay:t,maxWaitTime:n,abortController:s,client:i,abortSignal:a},c,d)=>{var u;const{state:l,reason:p}=await d(i,c);if(l!==r.WaiterState.RETRY){return{state:l,reason:p}}let m=1;const f=Date.now()+n*1e3;const y=Math.log(t/e)/Math.log(2)+1;while(true){if(((u=s===null||s===void 0?void 0:s.signal)===null||u===void 0?void 0:u.aborted)||(a===null||a===void 0?void 0:a.aborted)){return{state:r.WaiterState.ABORTED}}const n=exponentialBackoffWithJitter(e,t,y,m);if(Date.now()+n*1e3>f){return{state:r.WaiterState.TIMEOUT}}await(0,o.sleep)(n);const{state:l,reason:p}=await d(i,c);if(l!==r.WaiterState.RETRY){return{state:l,reason:p}}m+=1}};t.runPolling=runPolling},26e3:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(62380),t);o.__exportStar(n(6594),t)},62380:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.sleep=void 0;const sleep=e=>new Promise((t=>setTimeout(t,e*1e3)));t.sleep=sleep},6594:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateWaiterOptions=void 0;const validateWaiterOptions=e=>{if(e.maxWaitTime<1){throw new Error(`WaiterConfiguration.maxWaitTime must be greater than 0`)}else if(e.minDelay<1){throw new Error(`WaiterConfiguration.minDelay must be greater than 0`)}else if(e.maxDelay<1){throw new Error(`WaiterConfiguration.maxDelay must be greater than 0`)}else if(e.maxWaitTime<=e.minDelay){throw new Error(`WaiterConfiguration.maxWaitTime [${e.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${e.minDelay}] for this waiter`)}else if(e.maxDelay<e.minDelay){throw new Error(`WaiterConfiguration.maxDelay [${e.maxDelay}] must be greater than WaiterConfiguration.minDelay [${e.minDelay}] for this waiter`)}};t.validateWaiterOptions=validateWaiterOptions},79089:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.checkExceptions=t.WaiterState=t.waiterServiceDefaults=void 0;t.waiterServiceDefaults={minDelay:2,maxDelay:120};var n;(function(e){e["ABORTED"]="ABORTED";e["FAILURE"]="FAILURE";e["SUCCESS"]="SUCCESS";e["RETRY"]="RETRY";e["TIMEOUT"]="TIMEOUT"})(n=t.WaiterState||(t.WaiterState={}));const checkExceptions=e=>{if(e.state===n.ABORTED){const t=new Error(`${JSON.stringify({...e,reason:"Request was aborted"})}`);t.name="AbortError";throw t}else if(e.state===n.TIMEOUT){const t=new Error(`${JSON.stringify({...e,reason:"Waiter has timed out"})}`);t.name="TimeoutError";throw t}else if(e.state!==n.SUCCESS){throw new Error(`${JSON.stringify({result:e})}`)}return e};t.checkExceptions=checkExceptions},8348:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var r=Object.getOwnPropertyDescriptor(t,n);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,r)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);r(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.req=t.json=t.toBuffer=void 0;const i=s(n(13685));const a=s(n(95687));async function toBuffer(e){let t=0;const n=[];for await(const o of e){t+=o.length;n.push(o)}return Buffer.concat(n,t)}t.toBuffer=toBuffer;async function json(e){const t=await toBuffer(e);const n=t.toString("utf8");try{return JSON.parse(n)}catch(e){const t=e;t.message+=` (input: ${n})`;throw t}}t.json=json;function req(e,t={}){const n=typeof e==="string"?e:e.href;const o=(n.startsWith("https:")?a:i).request(e,t);const r=new Promise(((e,t)=>{o.once("response",e).once("error",t).end()}));o.then=r.then.bind(r);return o}t.req=req},70694:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var r=Object.getOwnPropertyDescriptor(t,n);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,r)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);r(t,e);return t};var i=this&&this.__exportStar||function(e,t){for(var n in e)if(n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n))o(t,e,n)};Object.defineProperty(t,"__esModule",{value:true});t.Agent=void 0;const a=s(n(13685));i(n(8348),t);const c=Symbol("AgentBaseInternalState");class Agent extends a.Agent{constructor(e){super(e);this[c]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint==="boolean"){return e.secureEndpoint}if(typeof e.protocol==="string"){return e.protocol==="https:"}}const{stack:t}=new Error;if(typeof t!=="string")return false;return t.split("\n").some((e=>e.indexOf("(https.js:")!==-1||e.indexOf("node:https:")!==-1))}createSocket(e,t,n){const o={...t,secureEndpoint:this.isSecureEndpoint(t)};Promise.resolve().then((()=>this.connect(e,o))).then((r=>{if(r instanceof a.Agent){return r.addRequest(e,o)}this[c].currentSocket=r;super.createSocket(e,t,n)}),n)}createConnection(){const e=this[c].currentSocket;this[c].currentSocket=undefined;if(!e){throw new Error("No socket was returned in the `connect()` function")}return e}get defaultPort(){return this[c].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){if(this[c]){this[c].defaultPort=e}}get protocol(){return this[c].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){if(this[c]){this[c].protocol=e}}}t.Agent=Agent},28222:(e,t,n)=>{t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage=localstorage();t.destroy=(()=>{let e=false;return()=>{if(!e){e=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(t){t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let o=0;let r=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{if(e==="%%"){return}o++;if(e==="%c"){r=o}}));t.splice(r,0,n)}t.log=console.debug||console.log||(()=>{});function save(e){try{if(e){t.storage.setItem("debug",e)}else{t.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=t.storage.getItem("debug")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=n(46243)(t);const{formatters:o}=e.exports;o.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},46243:(e,t,n)=>{function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=n(80900);createDebug.destroy=destroy;Object.keys(e).forEach((t=>{createDebug[t]=e[t]}));createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let t=0;for(let n=0;n<e.length;n++){t=(t<<5)-t+e.charCodeAt(n);t|=0}return createDebug.colors[Math.abs(t)%createDebug.colors.length]}createDebug.selectColor=selectColor;function createDebug(e){let t;let n=null;let o;let r;function debug(...e){if(!debug.enabled){return}const n=debug;const o=Number(new Date);const r=o-(t||o);n.diff=r;n.prev=t;n.curr=o;t=o;e[0]=createDebug.coerce(e[0]);if(typeof e[0]!=="string"){e.unshift("%O")}let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((t,o)=>{if(t==="%%"){return"%"}s++;const r=createDebug.formatters[o];if(typeof r==="function"){const o=e[s];t=r.call(n,o);e.splice(s,1);s--}return t}));createDebug.formatArgs.call(n,e);const i=n.log||createDebug.log;i.apply(n,e)}debug.namespace=e;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(e);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>{if(n!==null){return n}if(o!==createDebug.namespaces){o=createDebug.namespaces;r=createDebug.enabled(e)}return r},set:e=>{n=e}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(e,t){const n=createDebug(this.namespace+(typeof t==="undefined"?":":t)+e);n.log=this.log;return n}function enable(e){createDebug.save(e);createDebug.namespaces=e;createDebug.names=[];createDebug.skips=[];let t;const n=(typeof e==="string"?e:"").split(/[\s,]+/);const o=n.length;for(t=0;t<o;t++){if(!n[t]){continue}e=n[t].replace(/\*/g,".*?");if(e[0]==="-"){createDebug.skips.push(new RegExp("^"+e.slice(1)+"$"))}else{createDebug.names.push(new RegExp("^"+e+"$"))}}}function disable(){const e=[...createDebug.names.map(toNamespace),...createDebug.skips.map(toNamespace).map((e=>"-"+e))].join(",");createDebug.enable("");return e}function enabled(e){if(e[e.length-1]==="*"){return true}let t;let n;for(t=0,n=createDebug.skips.length;t<n;t++){if(createDebug.skips[t].test(e)){return false}}for(t=0,n=createDebug.names.length;t<n;t++){if(createDebug.names[t].test(e)){return true}}return false}function toNamespace(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}function coerce(e){if(e instanceof Error){return e.stack||e.message}return e}function destroy(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}createDebug.enable(createDebug.load());return createDebug}e.exports=setup},38237:(e,t,n)=>{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=n(28222)}else{e.exports=n(35332)}},35332:(e,t,n)=>{const o=n(76224);const r=n(73837);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.destroy=r.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");t.colors=[6,2,3,4,5,1];try{const e=n(59318);if(e&&(e.stderr||e).level>=2){t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const n=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let o=process.env[t];if(/^(yes|on|true|enabled)$/i.test(o)){o=true}else if(/^(no|off|false|disabled)$/i.test(o)){o=false}else if(o==="null"){o=null}else{o=Number(o)}e[n]=o;return e}),{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):o.isatty(process.stderr.fd)}function formatArgs(t){const{namespace:n,useColors:o}=this;if(o){const o=this.color;const r="[3"+(o<8?o:"8;5;"+o);const s=` ${r};1m${n} [0m`;t[0]=s+t[0].split("\n").join("\n"+s);t.push(r+"m+"+e.exports.humanize(this.diff)+"[0m")}else{t[0]=getDate()+n+" "+t[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(r.format(...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const n=Object.keys(t.inspectOpts);for(let o=0;o<n.length;o++){e.inspectOpts[n[o]]=t.inspectOpts[n[o]]}}e.exports=n(46243)(t);const{formatters:s}=e.exports;s.o=function(e){this.inspectOpts.colors=this.useColors;return r.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")};s.O=function(e){this.inspectOpts.colors=this.useColors;return r.inspect(e,this.inspectOpts)}},12603:(e,t,n)=>{"use strict";const o=n(61739);const r=n(42380);const s=n(80660);e.exports={XMLParser:r,XMLValidator:o,XMLBuilder:s}},38280:(e,t)=>{"use strict";const n=":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";const o=n+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040";const r="["+n+"]["+o+"]*";const s=new RegExp("^"+r+"$");const getAllMatches=function(e,t){const n=[];let o=t.exec(e);while(o){const r=[];r.startIndex=t.lastIndex-o[0].length;const s=o.length;for(let e=0;e<s;e++){r.push(o[e])}n.push(r);o=t.exec(e)}return n};const isName=function(e){const t=s.exec(e);return!(t===null||typeof t==="undefined")};t.isExist=function(e){return typeof e!=="undefined"};t.isEmptyObject=function(e){return Object.keys(e).length===0};t.merge=function(e,t,n){if(t){const o=Object.keys(t);const r=o.length;for(let s=0;s<r;s++){if(n==="strict"){e[o[s]]=[t[o[s]]]}else{e[o[s]]=t[o[s]]}}}};t.getValue=function(e){if(t.isExist(e)){return e}else{return""}};t.isName=isName;t.getAllMatches=getAllMatches;t.nameRegexp=r},61739:(e,t,n)=>{"use strict";const o=n(38280);const r={allowBooleanAttributes:false,unpairedTags:[]};t.validate=function(e,t){t=Object.assign({},r,t);const n=[];let o=false;let s=false;if(e[0]==="\ufeff"){e=e.substr(1)}for(let r=0;r<e.length;r++){if(e[r]==="<"&&e[r+1]==="?"){r+=2;r=readPI(e,r);if(r.err)return r}else if(e[r]==="<"){let i=r;r++;if(e[r]==="!"){r=readCommentAndCDATA(e,r);continue}else{let a=false;if(e[r]==="/"){a=true;r++}let c="";for(;r<e.length&&e[r]!==">"&&e[r]!==" "&&e[r]!=="\t"&&e[r]!=="\n"&&e[r]!=="\r";r++){c+=e[r]}c=c.trim();if(c[c.length-1]==="/"){c=c.substring(0,c.length-1);r--}if(!validateTagName(c)){let t;if(c.trim().length===0){t="Invalid space after '<'."}else{t="Tag '"+c+"' is an invalid name."}return getErrorObject("InvalidTag",t,getLineNumberForPosition(e,r))}const d=readAttributeStr(e,r);if(d===false){return getErrorObject("InvalidAttr","Attributes for '"+c+"' have open quote.",getLineNumberForPosition(e,r))}let u=d.value;r=d.index;if(u[u.length-1]==="/"){const n=r-u.length;u=u.substring(0,u.length-1);const s=validateAttributeString(u,t);if(s===true){o=true}else{return getErrorObject(s.err.code,s.err.msg,getLineNumberForPosition(e,n+s.err.line))}}else if(a){if(!d.tagClosed){return getErrorObject("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",getLineNumberForPosition(e,r))}else if(u.trim().length>0){return getErrorObject("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",getLineNumberForPosition(e,i))}else{const t=n.pop();if(c!==t.tagName){let n=getLineNumberForPosition(e,t.tagStartPos);return getErrorObject("InvalidTag","Expected closing tag '"+t.tagName+"' (opened in line "+n.line+", col "+n.col+") instead of closing tag '"+c+"'.",getLineNumberForPosition(e,i))}if(n.length==0){s=true}}}else{const a=validateAttributeString(u,t);if(a!==true){return getErrorObject(a.err.code,a.err.msg,getLineNumberForPosition(e,r-u.length+a.err.line))}if(s===true){return getErrorObject("InvalidXml","Multiple possible root nodes found.",getLineNumberForPosition(e,r))}else if(t.unpairedTags.indexOf(c)!==-1){}else{n.push({tagName:c,tagStartPos:i})}o=true}for(r++;r<e.length;r++){if(e[r]==="<"){if(e[r+1]==="!"){r++;r=readCommentAndCDATA(e,r);continue}else if(e[r+1]==="?"){r=readPI(e,++r);if(r.err)return r}else{break}}else if(e[r]==="&"){const t=validateAmpersand(e,r);if(t==-1)return getErrorObject("InvalidChar","char '&' is not expected.",getLineNumberForPosition(e,r));r=t}else{if(s===true&&!isWhiteSpace(e[r])){return getErrorObject("InvalidXml","Extra text at the end",getLineNumberForPosition(e,r))}}}if(e[r]==="<"){r--}}}else{if(isWhiteSpace(e[r])){continue}return getErrorObject("InvalidChar","char '"+e[r]+"' is not expected.",getLineNumberForPosition(e,r))}}if(!o){return getErrorObject("InvalidXml","Start tag expected.",1)}else if(n.length==1){return getErrorObject("InvalidTag","Unclosed tag '"+n[0].tagName+"'.",getLineNumberForPosition(e,n[0].tagStartPos))}else if(n.length>0){return getErrorObject("InvalidXml","Invalid '"+JSON.stringify(n.map((e=>e.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}return true};function isWhiteSpace(e){return e===" "||e==="\t"||e==="\n"||e==="\r"}function readPI(e,t){const n=t;for(;t<e.length;t++){if(e[t]=="?"||e[t]==" "){const o=e.substr(n,t-n);if(t>5&&o==="xml"){return getErrorObject("InvalidXml","XML declaration allowed only at the start of the document.",getLineNumberForPosition(e,t))}else if(e[t]=="?"&&e[t+1]==">"){t++;break}else{continue}}}return t}function readCommentAndCDATA(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--;if(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}const s='"';const i="'";function readAttributeStr(e,t){let n="";let o="";let r=false;for(;t<e.length;t++){if(e[t]===s||e[t]===i){if(o===""){o=e[t]}else if(o!==e[t]){}else{o=""}}else if(e[t]===">"){if(o===""){r=true;break}}n+=e[t]}if(o!==""){return false}return{value:n,index:t,tagClosed:r}}const a=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function validateAttributeString(e,t){const n=o.getAllMatches(e,a);const r={};for(let e=0;e<n.length;e++){if(n[e][1].length===0){return getErrorObject("InvalidAttr","Attribute '"+n[e][2]+"' has no space in starting.",getPositionFromMatch(n[e]))}else if(n[e][3]!==undefined&&n[e][4]===undefined){return getErrorObject("InvalidAttr","Attribute '"+n[e][2]+"' is without value.",getPositionFromMatch(n[e]))}else if(n[e][3]===undefined&&!t.allowBooleanAttributes){return getErrorObject("InvalidAttr","boolean attribute '"+n[e][2]+"' is not allowed.",getPositionFromMatch(n[e]))}const o=n[e][2];if(!validateAttrName(o)){return getErrorObject("InvalidAttr","Attribute '"+o+"' is an invalid name.",getPositionFromMatch(n[e]))}if(!r.hasOwnProperty(o)){r[o]=1}else{return getErrorObject("InvalidAttr","Attribute '"+o+"' is repeated.",getPositionFromMatch(n[e]))}}return true}function validateNumberAmpersand(e,t){let n=/\d/;if(e[t]==="x"){t++;n=/[\da-fA-F]/}for(;t<e.length;t++){if(e[t]===";")return t;if(!e[t].match(n))break}return-1}function validateAmpersand(e,t){t++;if(e[t]===";")return-1;if(e[t]==="#"){t++;return validateNumberAmpersand(e,t)}let n=0;for(;t<e.length;t++,n++){if(e[t].match(/\w/)&&n<20)continue;if(e[t]===";")break;return-1}return t}function getErrorObject(e,t,n){return{err:{code:e,msg:t,line:n.line||n,col:n.col}}}function validateAttrName(e){return o.isName(e)}function validateTagName(e){return o.isName(e)}function getLineNumberForPosition(e,t){const n=e.substring(0,t).split(/\r?\n/);return{line:n.length,col:n[n.length-1].length+1}}function getPositionFromMatch(e){return e.startIndex+e[1].length}},80660:(e,t,n)=>{"use strict";const o=n(72462);const r={attributeNamePrefix:"@_",attributesGroupName:false,textNodeName:"#text",ignoreAttributes:true,cdataPropName:false,format:false,indentBy:" ",suppressEmptyNode:false,suppressUnpairedNode:true,suppressBooleanAttributes:true,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:false,commentPropName:false,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:true,stopNodes:[],oneListGroup:false};function Builder(e){this.options=Object.assign({},r,e);if(this.options.ignoreAttributes||this.options.attributesGroupName){this.isAttribute=function(){return false}}else{this.attrPrefixLen=this.options.attributeNamePrefix.length;this.isAttribute=isAttribute}this.processTextOrObjNode=processTextOrObjNode;if(this.options.format){this.indentate=indentate;this.tagEndChar=">\n";this.newLine="\n"}else{this.indentate=function(){return""};this.tagEndChar=">";this.newLine=""}}Builder.prototype.build=function(e){if(this.options.preserveOrder){return o(e,this.options)}else{if(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1){e={[this.options.arrayNodeName]:e}}return this.j2x(e,0).val}};Builder.prototype.j2x=function(e,t){let n="";let o="";for(let r in e){if(typeof e[r]==="undefined"){}else if(e[r]===null){if(r[0]==="?")o+=this.indentate(t)+"<"+r+"?"+this.tagEndChar;else o+=this.indentate(t)+"<"+r+"/"+this.tagEndChar}else if(e[r]instanceof Date){o+=this.buildTextValNode(e[r],r,"",t)}else if(typeof e[r]!=="object"){const s=this.isAttribute(r);if(s){n+=this.buildAttrPairStr(s,""+e[r])}else{if(r===this.options.textNodeName){let t=this.options.tagValueProcessor(r,""+e[r]);o+=this.replaceEntitiesValue(t)}else{o+=this.buildTextValNode(e[r],r,"",t)}}}else if(Array.isArray(e[r])){const n=e[r].length;let s="";for(let i=0;i<n;i++){const n=e[r][i];if(typeof n==="undefined"){}else if(n===null){if(r[0]==="?")o+=this.indentate(t)+"<"+r+"?"+this.tagEndChar;else o+=this.indentate(t)+"<"+r+"/"+this.tagEndChar}else if(typeof n==="object"){if(this.options.oneListGroup){s+=this.j2x(n,t+1).val}else{s+=this.processTextOrObjNode(n,r,t)}}else{s+=this.buildTextValNode(n,r,"",t)}}if(this.options.oneListGroup){s=this.buildObjectNode(s,r,"",t)}o+=s}else{if(this.options.attributesGroupName&&r===this.options.attributesGroupName){const t=Object.keys(e[r]);const o=t.length;for(let s=0;s<o;s++){n+=this.buildAttrPairStr(t[s],""+e[r][t[s]])}}else{o+=this.processTextOrObjNode(e[r],r,t)}}}return{attrStr:n,val:o}};Builder.prototype.buildAttrPairStr=function(e,t){t=this.options.attributeValueProcessor(e,""+t);t=this.replaceEntitiesValue(t);if(this.options.suppressBooleanAttributes&&t==="true"){return" "+e}else return" "+e+'="'+t+'"'};function processTextOrObjNode(e,t,n){const o=this.j2x(e,n+1);if(e[this.options.textNodeName]!==undefined&&Object.keys(e).length===1){return this.buildTextValNode(e[this.options.textNodeName],t,o.attrStr,n)}else{return this.buildObjectNode(o.val,t,o.attrStr,n)}}Builder.prototype.buildObjectNode=function(e,t,n,o){if(e===""){if(t[0]==="?")return this.indentate(o)+"<"+t+n+"?"+this.tagEndChar;else{return this.indentate(o)+"<"+t+n+this.closeTag(t)+this.tagEndChar}}else{let r="</"+t+this.tagEndChar;let s="";if(t[0]==="?"){s="?";r=""}if(n&&e.indexOf("<")===-1){return this.indentate(o)+"<"+t+n+s+">"+e+r}else if(this.options.commentPropName!==false&&t===this.options.commentPropName&&s.length===0){return this.indentate(o)+`\x3c!--${e}--\x3e`+this.newLine}else{return this.indentate(o)+"<"+t+n+s+this.tagEndChar+e+this.indentate(o)+r}}};Builder.prototype.closeTag=function(e){let t="";if(this.options.unpairedTags.indexOf(e)!==-1){if(!this.options.suppressUnpairedNode)t="/"}else if(this.options.suppressEmptyNode){t="/"}else{t=`></${e}`}return t};function buildEmptyObjNode(e,t,n,o){if(e!==""){return this.buildObjectNode(e,t,n,o)}else{if(t[0]==="?")return this.indentate(o)+"<"+t+n+"?"+this.tagEndChar;else{return this.indentate(o)+"<"+t+n+"/"+this.tagEndChar}}}Builder.prototype.buildTextValNode=function(e,t,n,o){if(this.options.cdataPropName!==false&&t===this.options.cdataPropName){return this.indentate(o)+`<![CDATA[${e}]]>`+this.newLine}else if(this.options.commentPropName!==false&&t===this.options.commentPropName){return this.indentate(o)+`\x3c!--${e}--\x3e`+this.newLine}else if(t[0]==="?"){return this.indentate(o)+"<"+t+n+"?"+this.tagEndChar}else{let r=this.options.tagValueProcessor(t,e);r=this.replaceEntitiesValue(r);if(r===""){return this.indentate(o)+"<"+t+n+this.closeTag(t)+this.tagEndChar}else{return this.indentate(o)+"<"+t+n+">"+r+"</"+t+this.tagEndChar}}};Builder.prototype.replaceEntitiesValue=function(e){if(e&&e.length>0&&this.options.processEntities){for(let t=0;t<this.options.entities.length;t++){const n=this.options.entities[t];e=e.replace(n.regex,n.val)}}return e};function indentate(e){return this.options.indentBy.repeat(e)}function isAttribute(e){if(e.startsWith(this.options.attributeNamePrefix)){return e.substr(this.attrPrefixLen)}else{return false}}e.exports=Builder},72462:e=>{const t="\n";function toXml(e,n){let o="";if(n.format&&n.indentBy.length>0){o=t}return arrToStr(e,n,"",o)}function arrToStr(e,t,n,o){let r="";let s=false;for(let i=0;i<e.length;i++){const a=e[i];const c=propName(a);let d="";if(n.length===0)d=c;else d=`${n}.${c}`;if(c===t.textNodeName){let e=a[c];if(!isStopNode(d,t)){e=t.tagValueProcessor(c,e);e=replaceEntitiesValue(e,t)}if(s){r+=o}r+=e;s=false;continue}else if(c===t.cdataPropName){if(s){r+=o}r+=`<![CDATA[${a[c][0][t.textNodeName]}]]>`;s=false;continue}else if(c===t.commentPropName){r+=o+`\x3c!--${a[c][0][t.textNodeName]}--\x3e`;s=true;continue}else if(c[0]==="?"){const e=attr_to_str(a[":@"],t);const n=c==="?xml"?"":o;let i=a[c][0][t.textNodeName];i=i.length!==0?" "+i:"";r+=n+`<${c}${i}${e}?>`;s=true;continue}let u=o;if(u!==""){u+=t.indentBy}const l=attr_to_str(a[":@"],t);const p=o+`<${c}${l}`;const m=arrToStr(a[c],t,d,u);if(t.unpairedTags.indexOf(c)!==-1){if(t.suppressUnpairedNode)r+=p+">";else r+=p+"/>"}else if((!m||m.length===0)&&t.suppressEmptyNode){r+=p+"/>"}else if(m&&m.endsWith(">")){r+=p+`>${m}${o}</${c}>`}else{r+=p+">";if(m&&o!==""&&(m.includes("/>")||m.includes("</"))){r+=o+t.indentBy+m+o}else{r+=m}r+=`</${c}>`}s=true}return r}function propName(e){const t=Object.keys(e);for(let e=0;e<t.length;e++){const n=t[e];if(n!==":@")return n}}function attr_to_str(e,t){let n="";if(e&&!t.ignoreAttributes){for(let o in e){let r=t.attributeValueProcessor(o,e[o]);r=replaceEntitiesValue(r,t);if(r===true&&t.suppressBooleanAttributes){n+=` ${o.substr(t.attributeNamePrefix.length)}`}else{n+=` ${o.substr(t.attributeNamePrefix.length)}="${r}"`}}}return n}function isStopNode(e,t){e=e.substr(0,e.length-t.textNodeName.length-1);let n=e.substr(e.lastIndexOf(".")+1);for(let o in t.stopNodes){if(t.stopNodes[o]===e||t.stopNodes[o]==="*."+n)return true}return false}function replaceEntitiesValue(e,t){if(e&&e.length>0&&t.processEntities){for(let n=0;n<t.entities.length;n++){const o=t.entities[n];e=e.replace(o.regex,o.val)}}return e}e.exports=toXml},6072:(e,t,n)=>{const o=n(38280);function readDocType(e,t){const n={};if(e[t+3]==="O"&&e[t+4]==="C"&&e[t+5]==="T"&&e[t+6]==="Y"&&e[t+7]==="P"&&e[t+8]==="E"){t=t+9;let o=1;let r=false,s=false;let i="";for(;t<e.length;t++){if(e[t]==="<"&&!s){if(r&&isEntity(e,t)){t+=7;[entityName,val,t]=readEntityExp(e,t+1);if(val.indexOf("&")===-1)n[validateEntityName(entityName)]={regx:RegExp(`&${entityName};`,"g"),val:val}}else if(r&&isElement(e,t))t+=8;else if(r&&isAttlist(e,t))t+=8;else if(r&&isNotation(e,t))t+=9;else if(isComment)s=true;else throw new Error("Invalid DOCTYPE");o++;i=""}else if(e[t]===">"){if(s){if(e[t-1]==="-"&&e[t-2]==="-"){s=false;o--}}else{o--}if(o===0){break}}else if(e[t]==="["){r=true}else{i+=e[t]}}if(o!==0){throw new Error(`Unclosed DOCTYPE`)}}else{throw new Error(`Invalid Tag instead of DOCTYPE`)}return{entities:n,i:t}}function readEntityExp(e,t){let n="";for(;t<e.length&&(e[t]!=="'"&&e[t]!=='"');t++){n+=e[t]}n=n.trim();if(n.indexOf(" ")!==-1)throw new Error("External entites are not supported");const o=e[t++];let r="";for(;t<e.length&&e[t]!==o;t++){r+=e[t]}return[n,r,t]}function isComment(e,t){if(e[t+1]==="!"&&e[t+2]==="-"&&e[t+3]==="-")return true;return false}function isEntity(e,t){if(e[t+1]==="!"&&e[t+2]==="E"&&e[t+3]==="N"&&e[t+4]==="T"&&e[t+5]==="I"&&e[t+6]==="T"&&e[t+7]==="Y")return true;return false}function isElement(e,t){if(e[t+1]==="!"&&e[t+2]==="E"&&e[t+3]==="L"&&e[t+4]==="E"&&e[t+5]==="M"&&e[t+6]==="E"&&e[t+7]==="N"&&e[t+8]==="T")return true;return false}function isAttlist(e,t){if(e[t+1]==="!"&&e[t+2]==="A"&&e[t+3]==="T"&&e[t+4]==="T"&&e[t+5]==="L"&&e[t+6]==="I"&&e[t+7]==="S"&&e[t+8]==="T")return true;return false}function isNotation(e,t){if(e[t+1]==="!"&&e[t+2]==="N"&&e[t+3]==="O"&&e[t+4]==="T"&&e[t+5]==="A"&&e[t+6]==="T"&&e[t+7]==="I"&&e[t+8]==="O"&&e[t+9]==="N")return true;return false}function validateEntityName(e){if(o.isName(e))return e;else throw new Error(`Invalid entity name ${e}`)}e.exports=readDocType},86993:(e,t)=>{const n={preserveOrder:false,attributeNamePrefix:"@_",attributesGroupName:false,textNodeName:"#text",ignoreAttributes:true,removeNSPrefix:false,allowBooleanAttributes:false,parseTagValue:true,parseAttributeValue:false,trimValues:true,cdataPropName:false,numberParseOptions:{hex:true,leadingZeros:true,eNotation:true},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:false,isArray:()=>false,commentPropName:false,unpairedTags:[],processEntities:true,htmlEntities:false,ignoreDeclaration:false,ignorePiTags:false,transformTagName:false,transformAttributeName:false,updateTag:function(e,t,n){return e}};const buildOptions=function(e){return Object.assign({},n,e)};t.buildOptions=buildOptions;t.defaultOptions=n},25832:(e,t,n)=>{"use strict";const o=n(38280);const r=n(7462);const s=n(6072);const i=n(14526);const a="<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,o.nameRegexp);class OrderedObjParser{constructor(e){this.options=e;this.currentNode=null;this.tagsNodeStack=[];this.docTypeEntities={};this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}};this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"};this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"}};this.addExternalEntities=addExternalEntities;this.parseXml=parseXml;this.parseTextData=parseTextData;this.resolveNameSpace=resolveNameSpace;this.buildAttributesMap=buildAttributesMap;this.isItStopNode=isItStopNode;this.replaceEntitiesValue=replaceEntitiesValue;this.readStopNodeData=readStopNodeData;this.saveTextToParentTag=saveTextToParentTag;this.addChild=addChild}}function addExternalEntities(e){const t=Object.keys(e);for(let n=0;n<t.length;n++){const o=t[n];this.lastEntities[o]={regex:new RegExp("&"+o+";","g"),val:e[o]}}}function parseTextData(e,t,n,o,r,s,i){if(e!==undefined){if(this.options.trimValues&&!o){e=e.trim()}if(e.length>0){if(!i)e=this.replaceEntitiesValue(e);const o=this.options.tagValueProcessor(t,e,n,r,s);if(o===null||o===undefined){return e}else if(typeof o!==typeof e||o!==e){return o}else if(this.options.trimValues){return parseValue(e,this.options.parseTagValue,this.options.numberParseOptions)}else{const t=e.trim();if(t===e){return parseValue(e,this.options.parseTagValue,this.options.numberParseOptions)}else{return e}}}}}function resolveNameSpace(e){if(this.options.removeNSPrefix){const t=e.split(":");const n=e.charAt(0)==="/"?"/":"";if(t[0]==="xmlns"){return""}if(t.length===2){e=n+t[1]}}return e}const c=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function buildAttributesMap(e,t,n){if(!this.options.ignoreAttributes&&typeof e==="string"){const n=o.getAllMatches(e,c);const r=n.length;const s={};for(let e=0;e<r;e++){const o=this.resolveNameSpace(n[e][1]);let r=n[e][4];let i=this.options.attributeNamePrefix+o;if(o.length){if(this.options.transformAttributeName){i=this.options.transformAttributeName(i)}if(i==="__proto__")i="#__proto__";if(r!==undefined){if(this.options.trimValues){r=r.trim()}r=this.replaceEntitiesValue(r);const e=this.options.attributeValueProcessor(o,r,t);if(e===null||e===undefined){s[i]=r}else if(typeof e!==typeof r||e!==r){s[i]=e}else{s[i]=parseValue(r,this.options.parseAttributeValue,this.options.numberParseOptions)}}else if(this.options.allowBooleanAttributes){s[i]=true}}}if(!Object.keys(s).length){return}if(this.options.attributesGroupName){const e={};e[this.options.attributesGroupName]=s;return e}return s}}const parseXml=function(e){e=e.replace(/\r\n?/g,"\n");const t=new r("!xml");let n=t;let o="";let i="";for(let a=0;a<e.length;a++){const c=e[a];if(c==="<"){if(e[a+1]==="/"){const t=findClosingIndex(e,">",a,"Closing Tag is not closed.");let r=e.substring(a+2,t).trim();if(this.options.removeNSPrefix){const e=r.indexOf(":");if(e!==-1){r=r.substr(e+1)}}if(this.options.transformTagName){r=this.options.transformTagName(r)}if(n){o=this.saveTextToParentTag(o,n,i)}const s=i.substring(i.lastIndexOf(".")+1);if(r&&this.options.unpairedTags.indexOf(r)!==-1){throw new Error(`Unpaired tag can not be used as closing tag: </${r}>`)}let c=0;if(s&&this.options.unpairedTags.indexOf(s)!==-1){c=i.lastIndexOf(".",i.lastIndexOf(".")-1);this.tagsNodeStack.pop()}else{c=i.lastIndexOf(".")}i=i.substring(0,c);n=this.tagsNodeStack.pop();o="";a=t}else if(e[a+1]==="?"){let t=readTagExp(e,a,false,"?>");if(!t)throw new Error("Pi Tag is not closed.");o=this.saveTextToParentTag(o,n,i);if(this.options.ignoreDeclaration&&t.tagName==="?xml"||this.options.ignorePiTags){}else{const e=new r(t.tagName);e.add(this.options.textNodeName,"");if(t.tagName!==t.tagExp&&t.attrExpPresent){e[":@"]=this.buildAttributesMap(t.tagExp,i,t.tagName)}this.addChild(n,e,i)}a=t.closeIndex+1}else if(e.substr(a+1,3)==="!--"){const t=findClosingIndex(e,"--\x3e",a+4,"Comment is not closed.");if(this.options.commentPropName){const r=e.substring(a+4,t-2);o=this.saveTextToParentTag(o,n,i);n.add(this.options.commentPropName,[{[this.options.textNodeName]:r}])}a=t}else if(e.substr(a+1,2)==="!D"){const t=s(e,a);this.docTypeEntities=t.entities;a=t.i}else if(e.substr(a+1,2)==="!["){const t=findClosingIndex(e,"]]>",a,"CDATA is not closed.")-2;const r=e.substring(a+9,t);o=this.saveTextToParentTag(o,n,i);if(this.options.cdataPropName){n.add(this.options.cdataPropName,[{[this.options.textNodeName]:r}])}else{let e=this.parseTextData(r,n.tagname,i,true,false,true);if(e==undefined)e="";n.add(this.options.textNodeName,e)}a=t+2}else{let s=readTagExp(e,a,this.options.removeNSPrefix);let c=s.tagName;let d=s.tagExp;let u=s.attrExpPresent;let l=s.closeIndex;if(this.options.transformTagName){c=this.options.transformTagName(c)}if(n&&o){if(n.tagname!=="!xml"){o=this.saveTextToParentTag(o,n,i,false)}}const p=n;if(p&&this.options.unpairedTags.indexOf(p.tagname)!==-1){n=this.tagsNodeStack.pop();i=i.substring(0,i.lastIndexOf("."))}if(c!==t.tagname){i+=i?"."+c:c}if(this.isItStopNode(this.options.stopNodes,i,c)){let t="";if(d.length>0&&d.lastIndexOf("/")===d.length-1){a=s.closeIndex}else if(this.options.unpairedTags.indexOf(c)!==-1){a=s.closeIndex}else{const n=this.readStopNodeData(e,c,l+1);if(!n)throw new Error(`Unexpected end of ${c}`);a=n.i;t=n.tagContent}const o=new r(c);if(c!==d&&u){o[":@"]=this.buildAttributesMap(d,i,c)}if(t){t=this.parseTextData(t,c,i,true,u,true,true)}i=i.substr(0,i.lastIndexOf("."));o.add(this.options.textNodeName,t);this.addChild(n,o,i)}else{if(d.length>0&&d.lastIndexOf("/")===d.length-1){if(c[c.length-1]==="/"){c=c.substr(0,c.length-1);d=c}else{d=d.substr(0,d.length-1)}if(this.options.transformTagName){c=this.options.transformTagName(c)}const e=new r(c);if(c!==d&&u){e[":@"]=this.buildAttributesMap(d,i,c)}this.addChild(n,e,i);i=i.substr(0,i.lastIndexOf("."))}else{const e=new r(c);this.tagsNodeStack.push(n);if(c!==d&&u){e[":@"]=this.buildAttributesMap(d,i,c)}this.addChild(n,e,i);n=e}o="";a=l}}}else{o+=e[a]}}return t.child};function addChild(e,t,n){const o=this.options.updateTag(t.tagname,n,t[":@"]);if(o===false){}else if(typeof o==="string"){t.tagname=o;e.addChild(t)}else{e.addChild(t)}}const replaceEntitiesValue=function(e){if(this.options.processEntities){for(let t in this.docTypeEntities){const n=this.docTypeEntities[t];e=e.replace(n.regx,n.val)}for(let t in this.lastEntities){const n=this.lastEntities[t];e=e.replace(n.regex,n.val)}if(this.options.htmlEntities){for(let t in this.htmlEntities){const n=this.htmlEntities[t];e=e.replace(n.regex,n.val)}}e=e.replace(this.ampEntity.regex,this.ampEntity.val)}return e};function saveTextToParentTag(e,t,n,o){if(e){if(o===undefined)o=Object.keys(t.child).length===0;e=this.parseTextData(e,t.tagname,n,false,t[":@"]?Object.keys(t[":@"]).length!==0:false,o);if(e!==undefined&&e!=="")t.add(this.options.textNodeName,e);e=""}return e}function isItStopNode(e,t,n){const o="*."+n;for(const n in e){const r=e[n];if(o===r||t===r)return true}return false}function tagExpWithClosingIndex(e,t,n=">"){let o;let r="";for(let s=t;s<e.length;s++){let t=e[s];if(o){if(t===o)o=""}else if(t==='"'||t==="'"){o=t}else if(t===n[0]){if(n[1]){if(e[s+1]===n[1]){return{data:r,index:s}}}else{return{data:r,index:s}}}else if(t==="\t"){t=" "}r+=t}}function findClosingIndex(e,t,n,o){const r=e.indexOf(t,n);if(r===-1){throw new Error(o)}else{return r+t.length-1}}function readTagExp(e,t,n,o=">"){const r=tagExpWithClosingIndex(e,t+1,o);if(!r)return;let s=r.data;const i=r.index;const a=s.search(/\s/);let c=s;let d=true;if(a!==-1){c=s.substr(0,a).replace(/\s\s*$/,"");s=s.substr(a+1)}if(n){const e=c.indexOf(":");if(e!==-1){c=c.substr(e+1);d=c!==r.data.substr(e+1)}}return{tagName:c,tagExp:s,closeIndex:i,attrExpPresent:d}}function readStopNodeData(e,t,n){const o=n;let r=1;for(;n<e.length;n++){if(e[n]==="<"){if(e[n+1]==="/"){const s=findClosingIndex(e,">",n,`${t} is not closed`);let i=e.substring(n+2,s).trim();if(i===t){r--;if(r===0){return{tagContent:e.substring(o,n),i:s}}}n=s}else if(e[n+1]==="?"){const t=findClosingIndex(e,"?>",n+1,"StopNode is not closed.");n=t}else if(e.substr(n+1,3)==="!--"){const t=findClosingIndex(e,"--\x3e",n+3,"StopNode is not closed.");n=t}else if(e.substr(n+1,2)==="!["){const t=findClosingIndex(e,"]]>",n,"StopNode is not closed.")-2;n=t}else{const o=readTagExp(e,n,">");if(o){const e=o&&o.tagName;if(e===t&&o.tagExp[o.tagExp.length-1]!=="/"){r++}n=o.closeIndex}}}}}function parseValue(e,t,n){if(t&&typeof e==="string"){const t=e.trim();if(t==="true")return true;else if(t==="false")return false;else return i(e,n)}else{if(o.isExist(e)){return e}else{return""}}}e.exports=OrderedObjParser},42380:(e,t,n)=>{const{buildOptions:o}=n(86993);const r=n(25832);const{prettify:s}=n(42882);const i=n(61739);class XMLParser{constructor(e){this.externalEntities={};this.options=o(e)}parse(e,t){if(typeof e==="string"){}else if(e.toString){e=e.toString()}else{throw new Error("XML data is accepted in String or Bytes[] form.")}if(t){if(t===true)t={};const n=i.validate(e,t);if(n!==true){throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`)}}const n=new r(this.options);n.addExternalEntities(this.externalEntities);const o=n.parseXml(e);if(this.options.preserveOrder||o===undefined)return o;else return s(o,this.options)}addEntity(e,t){if(t.indexOf("&")!==-1){throw new Error("Entity value can't have '&'")}else if(e.indexOf("&")!==-1||e.indexOf(";")!==-1){throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'")}else if(t==="&"){throw new Error("An entity with value '&' is not permitted")}else{this.externalEntities[e]=t}}}e.exports=XMLParser},42882:(e,t)=>{"use strict";function prettify(e,t){return compress(e,t)}function compress(e,t,n){let o;const r={};for(let s=0;s<e.length;s++){const i=e[s];const a=propName(i);let c="";if(n===undefined)c=a;else c=n+"."+a;if(a===t.textNodeName){if(o===undefined)o=i[a];else o+=""+i[a]}else if(a===undefined){continue}else if(i[a]){let e=compress(i[a],t,c);const n=isLeafTag(e,t);if(i[":@"]){assignAttributes(e,i[":@"],c,t)}else if(Object.keys(e).length===1&&e[t.textNodeName]!==undefined&&!t.alwaysCreateTextNode){e=e[t.textNodeName]}else if(Object.keys(e).length===0){if(t.alwaysCreateTextNode)e[t.textNodeName]="";else e=""}if(r[a]!==undefined&&r.hasOwnProperty(a)){if(!Array.isArray(r[a])){r[a]=[r[a]]}r[a].push(e)}else{if(t.isArray(a,c,n)){r[a]=[e]}else{r[a]=e}}}}if(typeof o==="string"){if(o.length>0)r[t.textNodeName]=o}else if(o!==undefined)r[t.textNodeName]=o;return r}function propName(e){const t=Object.keys(e);for(let e=0;e<t.length;e++){const n=t[e];if(n!==":@")return n}}function assignAttributes(e,t,n,o){if(t){const r=Object.keys(t);const s=r.length;for(let i=0;i<s;i++){const s=r[i];if(o.isArray(s,n+"."+s,true,true)){e[s]=[t[s]]}else{e[s]=t[s]}}}}function isLeafTag(e,t){const{textNodeName:n}=t;const o=Object.keys(e).length;if(o===0){return true}if(o===1&&(e[n]||typeof e[n]==="boolean"||e[n]===0)){return true}return false}t.prettify=prettify},7462:e=>{"use strict";class XmlNode{constructor(e){this.tagname=e;this.child=[];this[":@"]={}}add(e,t){if(e==="__proto__")e="#__proto__";this.child.push({[e]:t})}addChild(e){if(e.tagname==="__proto__")e.tagname="#__proto__";if(e[":@"]&&Object.keys(e[":@"]).length>0){this.child.push({[e.tagname]:e.child,[":@"]:e[":@"]})}else{this.child.push({[e.tagname]:e.child})}}}e.exports=XmlNode},31621:e=>{"use strict";e.exports=(e,t=process.argv)=>{const n=e.startsWith("-")?"":e.length===1?"-":"--";const o=t.indexOf(n+e);const r=t.indexOf("--");return o!==-1&&(r===-1||o<r)}},23764:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var r=Object.getOwnPropertyDescriptor(t,n);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,r)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);r(t,e);return t};var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.HttpProxyAgent=void 0;const a=s(n(41808));const c=s(n(24404));const d=i(n(38237));const u=n(82361);const l=n(70694);const p=(0,d.default)("http-proxy-agent");class HttpProxyAgent extends l.Agent{constructor(e,t){super(t);this.proxy=typeof e==="string"?new URL(e):e;this.proxyHeaders=t?.headers??{};p("Creating new HttpProxyAgent instance: %o",this.proxy.href);const n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,"");const o=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...t?omit(t,"headers"):null,host:n,port:o}}addRequest(e,t){e._header=null;this.setRequestProps(e,t);super.addRequest(e,t)}setRequestProps(e,t){const{proxy:n}=this;const o=t.secureEndpoint?"https:":"http:";const r=e.getHeader("host")||"localhost";const s=`${o}//${r}`;const i=new URL(e.path,s);if(t.port!==80){i.port=String(t.port)}e.path=String(i);const a=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){const e=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;a["Proxy-Authorization"]=`Basic ${Buffer.from(e).toString("base64")}`}if(!a["Proxy-Connection"]){a["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close"}for(const t of Object.keys(a)){const n=a[t];if(n){e.setHeader(t,n)}}}async connect(e,t){e._header=null;if(!e.path.includes("://")){this.setRequestProps(e,t)}let n;let o;p("Regenerating stored HTTP header string for request");e._implicitHeader();if(e.outputData&&e.outputData.length>0){p("Patching connection write() output buffer with updated header");n=e.outputData[0].data;o=n.indexOf("\r\n\r\n")+4;e.outputData[0].data=e._header+n.substring(o);p("Output buffer: %o",e.outputData[0].data)}let r;if(this.proxy.protocol==="https:"){p("Creating `tls.Socket`: %o",this.connectOpts);r=c.connect(this.connectOpts)}else{p("Creating `net.Socket`: %o",this.connectOpts);r=a.connect(this.connectOpts)}await(0,u.once)(r,"connect");return r}}HttpProxyAgent.protocols=["http","https"];t.HttpProxyAgent=HttpProxyAgent;function omit(e,...t){const n={};let o;for(o in e){if(!t.includes(o)){n[o]=e[o]}}return n}},77219:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var r=Object.getOwnPropertyDescriptor(t,n);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,r)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);r(t,e);return t};var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.HttpsProxyAgent=void 0;const a=s(n(41808));const c=s(n(24404));const d=i(n(39491));const u=i(n(38237));const l=n(70694);const p=n(595);const m=(0,u.default)("https-proxy-agent");class HttpsProxyAgent extends l.Agent{constructor(e,t){super(t);this.options={path:undefined};this.proxy=typeof e==="string"?new URL(e):e;this.proxyHeaders=t?.headers??{};m("Creating new HttpsProxyAgent instance: %o",this.proxy.href);const n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,"");const o=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...t?omit(t,"headers"):null,host:n,port:o}}async connect(e,t){const{proxy:n}=this;if(!t.host){throw new TypeError('No "host" provided')}let o;if(n.protocol==="https:"){m("Creating `tls.Socket`: %o",this.connectOpts);o=c.connect(this.connectOpts)}else{m("Creating `net.Socket`: %o",this.connectOpts);o=a.connect(this.connectOpts)}const r=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders};const s=a.isIPv6(t.host)?`[${t.host}]`:t.host;let i=`CONNECT ${s}:${t.port} HTTP/1.1\r\n`;if(n.username||n.password){const e=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;r["Proxy-Authorization"]=`Basic ${Buffer.from(e).toString("base64")}`}r.Host=`${s}:${t.port}`;if(!r["Proxy-Connection"]){r["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close"}for(const e of Object.keys(r)){i+=`${e}: ${r[e]}\r\n`}const u=(0,p.parseProxyResponse)(o);o.write(`${i}\r\n`);const{connect:l,buffered:f}=await u;e.emit("proxyConnect",l);this.emit("proxyConnect",l,e);if(l.statusCode===200){e.once("socket",resume);if(t.secureEndpoint){m("Upgrading socket connection to TLS");const e=t.servername||t.host;return c.connect({...omit(t,"host","path","port"),socket:o,servername:a.isIP(e)?undefined:e})}return o}o.destroy();const y=new a.Socket({writable:false});y.readable=true;e.once("socket",(e=>{m("Replaying proxy buffer for failed request");(0,d.default)(e.listenerCount("data")>0);e.push(f);e.push(null)}));return y}}HttpsProxyAgent.protocols=["http","https"];t.HttpsProxyAgent=HttpsProxyAgent;function resume(e){e.resume()}function omit(e,...t){const n={};let o;for(o in e){if(!t.includes(o)){n[o]=e[o]}}return n}},595:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.parseProxyResponse=void 0;const r=o(n(38237));const s=(0,r.default)("https-proxy-agent:parse-proxy-response");function parseProxyResponse(e){return new Promise(((t,n)=>{let o=0;const r=[];function read(){const t=e.read();if(t)ondata(t);else e.once("readable",read)}function cleanup(){e.removeListener("end",onend);e.removeListener("error",onerror);e.removeListener("readable",read)}function onend(){cleanup();s("onend");n(new Error("Proxy connection ended before receiving CONNECT response"))}function onerror(e){cleanup();s("onerror %o",e);n(e)}function ondata(i){r.push(i);o+=i.length;const a=Buffer.concat(r,o);const c=a.indexOf("\r\n\r\n");if(c===-1){s("have not received end of HTTP headers yet...");read();return}const d=a.slice(0,c).toString("ascii").split("\r\n");const u=d.shift();if(!u){e.destroy();return n(new Error("No header received from proxy CONNECT response"))}const l=u.split(" ");const p=+l[1];const m=l.slice(2).join(" ");const f={};for(const t of d){if(!t)continue;const o=t.indexOf(":");if(o===-1){e.destroy();return n(new Error(`Invalid header from proxy CONNECT response: "${t}"`))}const r=t.slice(0,o).toLowerCase();const s=t.slice(o+1).trimStart();const i=f[r];if(typeof i==="string"){f[r]=[i,s]}else if(Array.isArray(i)){i.push(s)}else{f[r]=s}}s("got proxy server response: %o %o",u,f);cleanup();t({connect:{statusCode:p,statusText:m,headers:f},buffered:a})}e.on("error",onerror);e.on("end",onend);read()}))}t.parseProxyResponse=parseProxyResponse},80900:e=>{var t=1e3;var n=t*60;var o=n*60;var r=o*24;var s=r*7;var i=r*365.25;e.exports=function(e,t){t=t||{};var n=typeof e;if(n==="string"&&e.length>0){return parse(e)}else if(n==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!a){return}var c=parseFloat(a[1]);var d=(a[2]||"ms").toLowerCase();switch(d){case"years":case"year":case"yrs":case"yr":case"y":return c*i;case"weeks":case"week":case"w":return c*s;case"days":case"day":case"d":return c*r;case"hours":case"hour":case"hrs":case"hr":case"h":return c*o;case"minutes":case"minute":case"mins":case"min":case"m":return c*n;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return undefined}}function fmtShort(e){var s=Math.abs(e);if(s>=r){return Math.round(e/r)+"d"}if(s>=o){return Math.round(e/o)+"h"}if(s>=n){return Math.round(e/n)+"m"}if(s>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var s=Math.abs(e);if(s>=r){return plural(e,s,r,"day")}if(s>=o){return plural(e,s,o,"hour")}if(s>=n){return plural(e,s,n,"minute")}if(s>=t){return plural(e,s,t,"second")}return e+" ms"}function plural(e,t,n,o){var r=t>=n*1.5;return Math.round(e/n)+" "+o+(r?"s":"")}},14526:e=>{const t=/^[-+]?0x[a-fA-F0-9]+$/;const n=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;if(!Number.parseInt&&window.parseInt){Number.parseInt=window.parseInt}if(!Number.parseFloat&&window.parseFloat){Number.parseFloat=window.parseFloat}const o={hex:true,leadingZeros:true,decimalPoint:".",eNotation:true};function toNumber(e,r={}){r=Object.assign({},o,r);if(!e||typeof e!=="string")return e;let s=e.trim();if(r.skipLike!==undefined&&r.skipLike.test(s))return e;else if(r.hex&&t.test(s)){return Number.parseInt(s,16)}else{const t=n.exec(s);if(t){const n=t[1];const o=t[2];let i=trimZeros(t[3]);const a=t[4]||t[6];if(!r.leadingZeros&&o.length>0&&n&&s[2]!==".")return e;else if(!r.leadingZeros&&o.length>0&&!n&&s[1]!==".")return e;else{const t=Number(s);const c=""+t;if(c.search(/[eE]/)!==-1){if(r.eNotation)return t;else return e}else if(a){if(r.eNotation)return t;else return e}else if(s.indexOf(".")!==-1){if(c==="0"&&i==="")return t;else if(c===i)return t;else if(n&&c==="-"+i)return t;else return e}if(o){if(i===c)return t;else if(n+i===c)return t;else return e}if(s===c)return t;else if(s===n+c)return t;return e}}else{return e}}}function trimZeros(e){if(e&&e.indexOf(".")!==-1){e=e.replace(/0+$/,"");if(e===".")e="0";else if(e[0]===".")e="0"+e;else if(e[e.length-1]===".")e=e.substr(0,e.length-1);return e}return e}e.exports=toNumber},59318:(e,t,n)=>{"use strict";const o=n(22037);const r=n(76224);const s=n(31621);const{env:i}=process;let a;if(s("no-color")||s("no-colors")||s("color=false")||s("color=never")){a=0}else if(s("color")||s("colors")||s("color=true")||s("color=always")){a=1}if("FORCE_COLOR"in i){if(i.FORCE_COLOR==="true"){a=1}else if(i.FORCE_COLOR==="false"){a=0}else{a=i.FORCE_COLOR.length===0?1:Math.min(parseInt(i.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e,t){if(a===0){return 0}if(s("color=16m")||s("color=full")||s("color=truecolor")){return 3}if(s("color=256")){return 2}if(e&&!t&&a===undefined){return 0}const n=a||0;if(i.TERM==="dumb"){return n}if(process.platform==="win32"){const e=o.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in i){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in i))||i.CI_NAME==="codeship"){return 1}return n}if("TEAMCITY_VERSION"in i){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0}if(i.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in i){const e=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(i.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)){return 1}if("COLORTERM"in i){return 1}return n}function getSupportLevel(e){const t=supportsColor(e,e&&e.isTTY);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,r.isatty(1))),stderr:translateLevel(supportsColor(true,r.isatty(2)))}},4351:e=>{var t;var n;var o;var r;var s;var i;var a;var c;var d;var u;var l;var p;var m;var f;var y;var g;var h;var E;var _;var v;var S;var C;var b;var P;var w;var x;var R;var I;var O;(function(t){var n=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd){define("tslib",["exports"],(function(e){t(createExporter(n,createExporter(e)))}))}else if(true&&typeof e.exports==="object"){t(createExporter(n,createExporter(e.exports)))}else{t(createExporter(n))}function createExporter(e,t){if(e!==n){if(typeof Object.create==="function"){Object.defineProperty(e,"__esModule",{value:true})}else{e.__esModule=true}}return function(n,o){return e[n]=t?t(n,o):o}}})((function(e){var T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]};t=function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");T(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)};n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++){t=arguments[n];for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]}return e};o=function(e,t){var n={};for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0)n[o]=e[o];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++){if(t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r]))n[o[r]]=e[o[r]]}return n};r=function(e,t,n,o){var r=arguments.length,s=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,n):o,i;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)if(i=e[a])s=(r<3?i(s):r>3?i(t,n,s):i(t,n))||s;return r>3&&s&&Object.defineProperty(t,n,s),s};s=function(e,t){return function(n,o){t(n,o,e)}};i=function(e,t,n,o,r,s){function accept(e){if(e!==void 0&&typeof e!=="function")throw new TypeError("Function expected");return e}var i=o.kind,a=i==="getter"?"get":i==="setter"?"set":"value";var c=!t&&e?o["static"]?e:e.prototype:null;var d=t||(c?Object.getOwnPropertyDescriptor(c,o.name):{});var u,l=false;for(var p=n.length-1;p>=0;p--){var m={};for(var f in o)m[f]=f==="access"?{}:o[f];for(var f in o.access)m.access[f]=o.access[f];m.addInitializer=function(e){if(l)throw new TypeError("Cannot add initializers after decoration has completed");s.push(accept(e||null))};var y=(0,n[p])(i==="accessor"?{get:d.get,set:d.set}:d[a],m);if(i==="accessor"){if(y===void 0)continue;if(y===null||typeof y!=="object")throw new TypeError("Object expected");if(u=accept(y.get))d.get=u;if(u=accept(y.set))d.set=u;if(u=accept(y.init))r.unshift(u)}else if(u=accept(y)){if(i==="field")r.unshift(u);else d[a]=u}}if(c)Object.defineProperty(c,o.name,d);l=true};a=function(e,t,n){var o=arguments.length>2;for(var r=0;r<t.length;r++){n=o?t[r].call(e,n):t[r].call(e)}return o?n:void 0};c=function(e){return typeof e==="symbol"?e:"".concat(e)};d=function(e,t,n){if(typeof t==="symbol")t=t.description?"[".concat(t.description,"]"):"";return Object.defineProperty(e,"name",{configurable:true,value:n?"".concat(n," ",t):t})};u=function(e,t){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,t)};l=function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function fulfilled(e){try{step(o.next(e))}catch(e){r(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){r(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};p=function(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},o,r,s,i;return i={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function verb(e){return function(t){return step([e,t])}}function step(a){if(o)throw new TypeError("Generator is already executing.");while(i&&(i=0,a[0]&&(n=0)),n)try{if(o=1,r&&(s=a[0]&2?r["return"]:a[0]?r["throw"]||((s=r["return"])&&s.call(r),0):r.next)&&!(s=s.call(r,a[1])).done)return s;if(r=0,s)a=[a[0]&2,s.value];switch(a[0]){case 0:case 1:s=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;r=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(s=n.trys,s=s.length>0&&s[s.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!s||a[1]>s[0]&&a[1]<s[3])){n.label=a[1];break}if(a[0]===6&&n.label<s[1]){n.label=s[1];s=a;break}if(s&&n.label<s[2]){n.label=s[2];n.ops.push(a);break}if(s[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(e){a=[6,e];r=0}finally{o=s=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};m=function(e,t){for(var n in e)if(n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n))O(t,e,n)};O=Object.create?function(e,t,n,o){if(o===undefined)o=n;var r=Object.getOwnPropertyDescriptor(t,n);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,r)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]};f=function(e){var t=typeof Symbol==="function"&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&o>=e.length)e=void 0;return{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};y=function(e,t){var n=typeof Symbol==="function"&&e[Symbol.iterator];if(!n)return e;var o=n.call(e),r,s=[],i;try{while((t===void 0||t-- >0)&&!(r=o.next()).done)s.push(r.value)}catch(e){i={error:e}}finally{try{if(r&&!r.done&&(n=o["return"]))n.call(o)}finally{if(i)throw i.error}}return s};g=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(y(arguments[t]));return e};h=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var o=Array(e),r=0,t=0;t<n;t++)for(var s=arguments[t],i=0,a=s.length;i<a;i++,r++)o[r]=s[i];return o};E=function(e,t,n){if(n||arguments.length===2)for(var o=0,r=t.length,s;o<r;o++){if(s||!(o in t)){if(!s)s=Array.prototype.slice.call(t,0,o);s[o]=t[o]}}return e.concat(s||Array.prototype.slice.call(t))};_=function(e){return this instanceof _?(this.v=e,this):new _(e)};v=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=n.apply(e,t||[]),r,s=[];return r={},verb("next"),verb("throw"),verb("return"),r[Symbol.asyncIterator]=function(){return this},r;function verb(e){if(o[e])r[e]=function(t){return new Promise((function(n,o){s.push([e,t,n,o])>1||resume(e,t)}))}}function resume(e,t){try{step(o[e](t))}catch(e){settle(s[0][3],e)}}function step(e){e.value instanceof _?Promise.resolve(e.value.v).then(fulfill,reject):settle(s[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),s.shift(),s.length)resume(s[0][0],s[0][1])}};S=function(e){var t,n;return t={},verb("next"),verb("throw",(function(e){throw e})),verb("return"),t[Symbol.iterator]=function(){return this},t;function verb(o,r){t[o]=e[o]?function(t){return(n=!n)?{value:_(e[o](t)),done:false}:r?r(t):t}:r}};C=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof f==="function"?f(e):e[Symbol.iterator](),n={},verb("next"),verb("throw"),verb("return"),n[Symbol.asyncIterator]=function(){return this},n);function verb(t){n[t]=e[t]&&function(n){return new Promise((function(o,r){n=e[t](n),settle(o,r,n.done,n.value)}))}}function settle(e,t,n,o){Promise.resolve(o).then((function(t){e({value:t,done:n})}),t)}};b=function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var A=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t};P=function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))O(t,e,n);A(t,e);return t};w=function(e){return e&&e.__esModule?e:{default:e}};x=function(e,t,n,o){if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?o:n==="a"?o.call(e):o?o.value:t.get(e)};R=function(e,t,n,o,r){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!r)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?r.call(e,n):r?r.value=n:t.set(e,n),n};I=function(e,t){if(t===null||typeof t!=="object"&&typeof t!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e==="function"?t===e:e.has(t)};e("__extends",t);e("__assign",n);e("__rest",o);e("__decorate",r);e("__param",s);e("__esDecorate",i);e("__runInitializers",a);e("__propKey",c);e("__setFunctionName",d);e("__metadata",u);e("__awaiter",l);e("__generator",p);e("__exportStar",m);e("__createBinding",O);e("__values",f);e("__read",y);e("__spread",g);e("__spreadArrays",h);e("__spreadArray",E);e("__await",_);e("__asyncGenerator",v);e("__asyncDelegator",S);e("__asyncValues",C);e("__makeTemplateObject",b);e("__importStar",P);e("__importDefault",w);e("__classPrivateFieldGet",x);e("__classPrivateFieldSet",R);e("__classPrivateFieldIn",I)}))},74294:(e,t,n)=>{e.exports=n(54219)},54219:(e,t,n)=>{"use strict";var o=n(41808);var r=n(24404);var s=n(13685);var i=n(95687);var a=n(82361);var c=n(39491);var d=n(73837);t.httpOverHttp=httpOverHttp;t.httpsOverHttp=httpsOverHttp;t.httpOverHttps=httpOverHttps;t.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var t=new TunnelingAgent(e);t.request=s.request;return t}function httpsOverHttp(e){var t=new TunnelingAgent(e);t.request=s.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function httpOverHttps(e){var t=new TunnelingAgent(e);t.request=i.request;return t}function httpsOverHttps(e){var t=new TunnelingAgent(e);t.request=i.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function TunnelingAgent(e){var t=this;t.options=e||{};t.proxyOptions=t.options.proxy||{};t.maxSockets=t.options.maxSockets||s.Agent.defaultMaxSockets;t.requests=[];t.sockets=[];t.on("free",(function onFree(e,n,o,r){var s=toOptions(n,o,r);for(var i=0,a=t.requests.length;i<a;++i){var c=t.requests[i];if(c.host===s.host&&c.port===s.port){t.requests.splice(i,1);c.request.onSocket(e);return}}e.destroy();t.removeSocket(e)}))}d.inherits(TunnelingAgent,a.EventEmitter);TunnelingAgent.prototype.addRequest=function addRequest(e,t,n,o){var r=this;var s=mergeOptions({request:e},r.options,toOptions(t,n,o));if(r.sockets.length>=this.maxSockets){r.requests.push(s);return}r.createSocket(s,(function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){r.emit("free",t,s)}function onCloseOrRemove(e){r.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}}))};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var n=this;var o={};n.sockets.push(o);var r=mergeOptions({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){r.localAddress=e.localAddress}if(r.proxyAuth){r.headers=r.headers||{};r.headers["Proxy-Authorization"]="Basic "+new Buffer(r.proxyAuth).toString("base64")}u("making CONNECT request");var s=n.request(r);s.useChunkedEncodingByDefault=false;s.once("response",onResponse);s.once("upgrade",onUpgrade);s.once("connect",onConnect);s.once("error",onError);s.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,n){process.nextTick((function(){onConnect(e,t,n)}))}function onConnect(r,i,a){s.removeAllListeners();i.removeAllListeners();if(r.statusCode!==200){u("tunneling socket could not be established, statusCode=%d",r.statusCode);i.destroy();var c=new Error("tunneling socket could not be established, "+"statusCode="+r.statusCode);c.code="ECONNRESET";e.request.emit("error",c);n.removeSocket(o);return}if(a.length>0){u("got illegal response body from proxy");i.destroy();var c=new Error("got illegal response body from proxy");c.code="ECONNRESET";e.request.emit("error",c);n.removeSocket(o);return}u("tunneling connection has established");n.sockets[n.sockets.indexOf(o)]=i;return t(i)}function onError(t){s.removeAllListeners();u("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var r=new Error("tunneling socket could not be established, "+"cause="+t.message);r.code="ECONNRESET";e.request.emit("error",r);n.removeSocket(o)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1){return}this.sockets.splice(t,1);var n=this.requests.shift();if(n){this.createSocket(n,(function(e){n.request.onSocket(e)}))}};function createSecureSocket(e,t){var n=this;TunnelingAgent.prototype.createSocket.call(n,e,(function(o){var s=e.request.getHeader("host");var i=mergeOptions({},n.options,{socket:o,servername:s?s.replace(/:.*$/,""):e.host});var a=r.connect(0,i);n.sockets[n.sockets.indexOf(o)]=a;t(a)}))}function toOptions(e,t,n){if(typeof e==="string"){return{host:e,port:t,localAddress:n}}return e}function mergeOptions(e){for(var t=1,n=arguments.length;t<n;++t){var o=arguments[t];if(typeof o==="object"){var r=Object.keys(o);for(var s=0,i=r.length;s<i;++s){var a=r[s];if(o[a]!==undefined){e[a]=o[a]}}}}return e}var u;if(process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)){u=function(){var e=Array.prototype.slice.call(arguments);if(typeof e[0]==="string"){e[0]="TUNNEL: "+e[0]}else{e.unshift("TUNNEL:")}console.error.apply(console,e)}}else{u=function(){}}t.debug=u},75840:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"v1",{enumerable:true,get:function(){return o.default}});Object.defineProperty(t,"v3",{enumerable:true,get:function(){return r.default}});Object.defineProperty(t,"v4",{enumerable:true,get:function(){return s.default}});Object.defineProperty(t,"v5",{enumerable:true,get:function(){return i.default}});Object.defineProperty(t,"NIL",{enumerable:true,get:function(){return a.default}});Object.defineProperty(t,"version",{enumerable:true,get:function(){return c.default}});Object.defineProperty(t,"validate",{enumerable:true,get:function(){return d.default}});Object.defineProperty(t,"stringify",{enumerable:true,get:function(){return u.default}});Object.defineProperty(t,"parse",{enumerable:true,get:function(){return l.default}});var o=_interopRequireDefault(n(78628));var r=_interopRequireDefault(n(86409));var s=_interopRequireDefault(n(85122));var i=_interopRequireDefault(n(79120));var a=_interopRequireDefault(n(25332));var c=_interopRequireDefault(n(81595));var d=_interopRequireDefault(n(66900));var u=_interopRequireDefault(n(18950));var l=_interopRequireDefault(n(62746));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},4569:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var o=_interopRequireDefault(n(6113));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function md5(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return o.default.createHash("md5").update(e).digest()}var r=md5;t["default"]=r},25332:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n="00000000-0000-0000-0000-000000000000";t["default"]=n},62746:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var o=_interopRequireDefault(n(66900));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function parse(e){if(!(0,o.default)(e)){throw TypeError("Invalid UUID")}let t;const n=new Uint8Array(16);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;return n}var r=parse;t["default"]=r},40814:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=/^(?:[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;t["default"]=n},50807:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=rng;var o=_interopRequireDefault(n(6113));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const r=new Uint8Array(256);let s=r.length;function rng(){if(s>r.length-16){o.default.randomFillSync(r);s=0}return r.slice(s,s+=16)}},85274:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var o=_interopRequireDefault(n(6113));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function sha1(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return o.default.createHash("sha1").update(e).digest()}var r=sha1;t["default"]=r},18950:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var o=_interopRequireDefault(n(66900));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const r=[];for(let e=0;e<256;++e){r.push((e+256).toString(16).substr(1))}function stringify(e,t=0){const n=(r[e[t+0]]+r[e[t+1]]+r[e[t+2]]+r[e[t+3]]+"-"+r[e[t+4]]+r[e[t+5]]+"-"+r[e[t+6]]+r[e[t+7]]+"-"+r[e[t+8]]+r[e[t+9]]+"-"+r[e[t+10]]+r[e[t+11]]+r[e[t+12]]+r[e[t+13]]+r[e[t+14]]+r[e[t+15]]).toLowerCase();if(!(0,o.default)(n)){throw TypeError("Stringified UUID is invalid")}return n}var s=stringify;t["default"]=s},78628:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var o=_interopRequireDefault(n(50807));var r=_interopRequireDefault(n(18950));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}let s;let i;let a=0;let c=0;function v1(e,t,n){let d=t&&n||0;const u=t||new Array(16);e=e||{};let l=e.node||s;let p=e.clockseq!==undefined?e.clockseq:i;if(l==null||p==null){const t=e.random||(e.rng||o.default)();if(l==null){l=s=[t[0]|1,t[1],t[2],t[3],t[4],t[5]]}if(p==null){p=i=(t[6]<<8|t[7])&16383}}let m=e.msecs!==undefined?e.msecs:Date.now();let f=e.nsecs!==undefined?e.nsecs:c+1;const y=m-a+(f-c)/1e4;if(y<0&&e.clockseq===undefined){p=p+1&16383}if((y<0||m>a)&&e.nsecs===undefined){f=0}if(f>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}a=m;c=f;i=p;m+=122192928e5;const g=((m&268435455)*1e4+f)%4294967296;u[d++]=g>>>24&255;u[d++]=g>>>16&255;u[d++]=g>>>8&255;u[d++]=g&255;const h=m/4294967296*1e4&268435455;u[d++]=h>>>8&255;u[d++]=h&255;u[d++]=h>>>24&15|16;u[d++]=h>>>16&255;u[d++]=p>>>8|128;u[d++]=p&255;for(let e=0;e<6;++e){u[d+e]=l[e]}return t||(0,r.default)(u)}var d=v1;t["default"]=d},86409:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var o=_interopRequireDefault(n(65998));var r=_interopRequireDefault(n(4569));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const s=(0,o.default)("v3",48,r.default);var i=s;t["default"]=i},65998:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=_default;t.URL=t.DNS=void 0;var o=_interopRequireDefault(n(18950));var r=_interopRequireDefault(n(62746));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function stringToBytes(e){e=unescape(encodeURIComponent(e));const t=[];for(let n=0;n<e.length;++n){t.push(e.charCodeAt(n))}return t}const s="6ba7b810-9dad-11d1-80b4-00c04fd430c8";t.DNS=s;const i="6ba7b811-9dad-11d1-80b4-00c04fd430c8";t.URL=i;function _default(e,t,n){function generateUUID(e,s,i,a){if(typeof e==="string"){e=stringToBytes(e)}if(typeof s==="string"){s=(0,r.default)(s)}if(s.length!==16){throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)")}let c=new Uint8Array(16+e.length);c.set(s);c.set(e,s.length);c=n(c);c[6]=c[6]&15|t;c[8]=c[8]&63|128;if(i){a=a||0;for(let e=0;e<16;++e){i[a+e]=c[e]}return i}return(0,o.default)(c)}try{generateUUID.name=e}catch(e){}generateUUID.DNS=s;generateUUID.URL=i;return generateUUID}},85122:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var o=_interopRequireDefault(n(50807));var r=_interopRequireDefault(n(18950));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function v4(e,t,n){e=e||{};const s=e.random||(e.rng||o.default)();s[6]=s[6]&15|64;s[8]=s[8]&63|128;if(t){n=n||0;for(let e=0;e<16;++e){t[n+e]=s[e]}return t}return(0,r.default)(s)}var s=v4;t["default"]=s},79120:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var o=_interopRequireDefault(n(65998));var r=_interopRequireDefault(n(85274));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const s=(0,o.default)("v5",80,r.default);var i=s;t["default"]=i},66900:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var o=_interopRequireDefault(n(40814));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function validate(e){return typeof e==="string"&&o.default.test(e)}var r=validate;t["default"]=r},81595:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var o=_interopRequireDefault(n(66900));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function version(e){if(!(0,o.default)(e)){throw TypeError("Invalid UUID")}return parseInt(e.substr(14,1),16)}var r=version;t["default"]=r},36949:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var r=Object.getOwnPropertyDescriptor(t,n);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,r)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);r(t,e);return t};var i=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function fulfilled(e){try{step(o.next(e))}catch(e){r(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){r(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getRegistriesData=t.getAccountIDs=t.getRegion=t.isPubECR=t.isECR=void 0;const a=s(n(42186));const c=n(8923);const d=n(42308);const u=n(20258);const l=n(23764);const p=n(77219);const m=/^(([0-9]{12})\.dkr\.ecr\.(.+)\.amazonaws\.com(.cn)?)(\/([^:]+)(:.+)?)?$/;const isECR=e=>m.test(e)||(0,t.isPubECR)(e);t.isECR=isECR;const isPubECR=e=>e==="public.ecr.aws";t.isPubECR=isPubECR;const getRegion=e=>{if((0,t.isPubECR)(e)){return process.env.AWS_REGION||process.env.AWS_DEFAULT_REGION||"us-east-1"}const n=e.match(m);if(!n){return""}return n[3]};t.getRegion=getRegion;const getAccountIDs=e=>{if((0,t.isPubECR)(e)){return[]}const n=e.match(m);if(!n){return[]}const o=[n[2]];if(process.env.AWS_ACCOUNT_IDS){o.push(...process.env.AWS_ACCOUNT_IDS.split(","))}return o.filter(((e,t)=>o.indexOf(e)===t))};t.getAccountIDs=getAccountIDs;const getRegistriesData=(e,n,o)=>i(void 0,void 0,void 0,(function*(){const r=(0,t.getRegion)(e);const s=(0,t.getAccountIDs)(e);const i={};if(s.length>0){a.debug(`Requesting AWS ECR auth token for ${s.join(", ")}`);i["registryIds"]=s}let m;const f=process.env.http_proxy||process.env.HTTP_PROXY||"";if(f){a.debug(`Using http proxy ${f}`);m=new l.HttpProxyAgent(f)}let y;const g=process.env.https_proxy||process.env.HTTPS_PROXY||"";if(g){a.debug(`Using https proxy ${g}`);y=new p.HttpsProxyAgent(g)}const h=n&&o?{accessKeyId:n,secretAccessKey:o}:undefined;if((0,t.isPubECR)(e)){a.info(`AWS Public ECR detected with ${r} region`);const e=new d.ECRPUBLIC({customUserAgent:"docker-login-action",credentials:h,region:r,requestHandler:new u.NodeHttpHandler({httpAgent:m,httpsAgent:y})});const t=yield e.getAuthorizationToken(i);if(!t.authorizationData||!t.authorizationData.authorizationToken){throw new Error("Could not retrieve an authorization token from AWS Public ECR")}const n=Buffer.from(t.authorizationData.authorizationToken,"base64").toString("utf-8");const o=n.split(":",2);a.setSecret(o[0]);a.setSecret(o[1]);return[{registry:"public.ecr.aws",username:o[0],password:o[1]}]}else{a.info(`AWS ECR detected with ${r} region`);const e=new c.ECR({customUserAgent:"docker-login-action",credentials:h,region:r,requestHandler:new u.NodeHttpHandler({httpAgent:m,httpsAgent:y})});const t=yield e.getAuthorizationToken(i);if(!Array.isArray(t.authorizationData)||!t.authorizationData.length){throw new Error("Could not retrieve an authorization token from AWS ECR")}const n=[];for(const e of t.authorizationData){const t=Buffer.from(e.authorizationToken||"","base64").toString("utf-8");const o=t.split(":",2);a.setSecret(o[0]);a.setSecret(o[1]);n.push({registry:e.proxyEndpoint||"",username:o[0],password:o[1]})}return n}}));t.getRegistriesData=getRegistriesData},98954:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var r=Object.getOwnPropertyDescriptor(t,n);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,r)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);r(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getInputs=void 0;const i=s(n(42186));function getInputs(){return{registry:i.getInput("registry"),username:i.getInput("username"),password:i.getInput("password"),ecr:i.getInput("ecr"),logout:i.getBooleanInput("logout")}}t.getInputs=getInputs},6512:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var r=Object.getOwnPropertyDescriptor(t,n);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,r)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);r(t,e);return t};var i=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function fulfilled(e){try{step(o.next(e))}catch(e){r(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){r(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.loginECR=t.loginStandard=t.logout=t.login=void 0;const a=s(n(36949));const c=s(n(42186));const d=n(91949);function login(e,t,n,o){return i(this,void 0,void 0,(function*(){if(/true/i.test(o)||o=="auto"&&a.isECR(e)){yield loginECR(e,t,n)}else{yield loginStandard(e,t,n)}}))}t.login=login;function logout(e){return i(this,void 0,void 0,(function*(){yield d.Exec.getExecOutput("docker",["logout",e],{ignoreReturnCode:true}).then((e=>{if(e.stderr.length>0&&e.exitCode!=0){c.warning(e.stderr.trim())}}))}))}t.logout=logout;function loginStandard(e,t,n){return i(this,void 0,void 0,(function*(){if(!t||!n){throw new Error("Username and password required")}const o=["login","--password-stdin"];o.push("--username",t);o.push(e);if(e){c.info(`Logging into ${e}...`)}else{c.info(`Logging into Docker Hub...`)}yield d.Exec.getExecOutput("docker",o,{ignoreReturnCode:true,silent:true,input:Buffer.from(n)}).then((e=>{if(e.stderr.length>0&&e.exitCode!=0){throw new Error(e.stderr.trim())}c.info(`Login Succeeded!`)}))}))}t.loginStandard=loginStandard;function loginECR(e,t,n){return i(this,void 0,void 0,(function*(){c.info(`Retrieving registries data through AWS SDK...`);const o=yield a.getRegistriesData(e,t,n);for(const e of o){c.info(`Logging into ${e.registry}...`);yield d.Exec.getExecOutput("docker",["login","--password-stdin","--username",e.username,e.registry],{ignoreReturnCode:true,silent:true,input:Buffer.from(e.password)}).then((e=>{if(e.stderr.length>0&&e.exitCode!=0){throw new Error(e.stderr.trim())}c.info("Login Succeeded!")}))}}))}t.loginECR=loginECR},70399:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var r=Object.getOwnPropertyDescriptor(t,n);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,r)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);r(t,e);return t};var i=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function fulfilled(e){try{step(o.next(e))}catch(e){r(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){r(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.main=void 0;const a=s(n(56618));const c=s(n(98954));const d=s(n(6512));const u=s(n(80963));function main(){return i(this,void 0,void 0,(function*(){const e=c.getInputs();u.setRegistry(e.registry);u.setLogout(e.logout);yield d.login(e.registry,e.username,e.password,e.ecr)}))}t.main=main;function post(){return i(this,void 0,void 0,(function*(){if(!u.logout){return}yield d.logout(u.registry)}))}a.run(main,post)},80963:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var r=Object.getOwnPropertyDescriptor(t,n);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,r)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);r(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.setLogout=t.setRegistry=t.logout=t.registry=void 0;const i=s(n(42186));t.registry=process.env["STATE_registry"]||"";t.logout=/true/i.test(process.env["STATE_logout"]||"");function setRegistry(e){i.saveState("registry",e)}t.setRegistry=setRegistry;function setLogout(e){i.saveState("logout",e)}t.setLogout=setLogout},87578:module=>{module.exports=eval("require")("aws-crt")},39491:e=>{"use strict";e.exports=require("assert")},14300:e=>{"use strict";e.exports=require("buffer")},32081:e=>{"use strict";e.exports=require("child_process")},6113:e=>{"use strict";e.exports=require("crypto")},82361:e=>{"use strict";e.exports=require("events")},57147:e=>{"use strict";e.exports=require("fs")},13685:e=>{"use strict";e.exports=require("http")},85158:e=>{"use strict";e.exports=require("http2")},95687:e=>{"use strict";e.exports=require("https")},41808:e=>{"use strict";e.exports=require("net")},22037:e=>{"use strict";e.exports=require("os")},71017:e=>{"use strict";e.exports=require("path")},77282:e=>{"use strict";e.exports=require("process")},12781:e=>{"use strict";e.exports=require("stream")},71576:e=>{"use strict";e.exports=require("string_decoder")},39512:e=>{"use strict";e.exports=require("timers")},24404:e=>{"use strict";e.exports=require("tls")},76224:e=>{"use strict";e.exports=require("tty")},57310:e=>{"use strict";e.exports=require("url")},73837:e=>{"use strict";e.exports=require("util")},25929:e=>{"use strict";e.exports=JSON.parse('{"name":"@aws-sdk/client-ecr-public","description":"AWS SDK for JavaScript Ecr Public Client for Node.js, Browser and React Native","version":"3.369.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:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo ecr-public"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/client-sts":"3.369.0","@aws-sdk/credential-provider-node":"3.369.0","@aws-sdk/middleware-host-header":"3.369.0","@aws-sdk/middleware-logger":"3.369.0","@aws-sdk/middleware-recursion-detection":"3.369.0","@aws-sdk/middleware-signing":"3.369.0","@aws-sdk/middleware-user-agent":"3.369.0","@aws-sdk/types":"3.369.0","@aws-sdk/util-endpoints":"3.369.0","@aws-sdk/util-user-agent-browser":"3.369.0","@aws-sdk/util-user-agent-node":"3.369.0","@smithy/config-resolver":"^1.0.1","@smithy/fetch-http-handler":"^1.0.1","@smithy/hash-node":"^1.0.1","@smithy/invalid-dependency":"^1.0.1","@smithy/middleware-content-length":"^1.0.1","@smithy/middleware-endpoint":"^1.0.1","@smithy/middleware-retry":"^1.0.2","@smithy/middleware-serde":"^1.0.1","@smithy/middleware-stack":"^1.0.1","@smithy/node-config-provider":"^1.0.1","@smithy/node-http-handler":"^1.0.2","@smithy/protocol-http":"^1.0.1","@smithy/smithy-client":"^1.0.3","@smithy/types":"^1.1.0","@smithy/url-parser":"^1.0.1","@smithy/util-base64":"^1.0.1","@smithy/util-body-length-browser":"^1.0.1","@smithy/util-body-length-node":"^1.0.1","@smithy/util-defaults-mode-browser":"^1.0.1","@smithy/util-defaults-mode-node":"^1.0.1","@smithy/util-retry":"^1.0.2","@smithy/util-utf8":"^1.0.1","tslib":"^2.5.0"},"devDependencies":{"@aws-sdk/service-client-documentation-generator":"3.310.0","@smithy/service-client-documentation-generator":"^1.0.1","@tsconfig/node14":"1.0.3","@types/node":"^14.14.31","concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typedoc":"0.23.23","typescript":"~4.9.5"},"engines":{"node":">=14.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-ecr-public","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-ecr-public"}}')},4289:e=>{"use strict";e.exports=JSON.parse('{"name":"@aws-sdk/client-ecr","description":"AWS SDK for JavaScript Ecr Client for Node.js, Browser and React Native","version":"3.369.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:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo ecr"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/client-sts":"3.369.0","@aws-sdk/credential-provider-node":"3.369.0","@aws-sdk/middleware-host-header":"3.369.0","@aws-sdk/middleware-logger":"3.369.0","@aws-sdk/middleware-recursion-detection":"3.369.0","@aws-sdk/middleware-signing":"3.369.0","@aws-sdk/middleware-user-agent":"3.369.0","@aws-sdk/types":"3.369.0","@aws-sdk/util-endpoints":"3.369.0","@aws-sdk/util-user-agent-browser":"3.369.0","@aws-sdk/util-user-agent-node":"3.369.0","@smithy/config-resolver":"^1.0.1","@smithy/fetch-http-handler":"^1.0.1","@smithy/hash-node":"^1.0.1","@smithy/invalid-dependency":"^1.0.1","@smithy/middleware-content-length":"^1.0.1","@smithy/middleware-endpoint":"^1.0.1","@smithy/middleware-retry":"^1.0.2","@smithy/middleware-serde":"^1.0.1","@smithy/middleware-stack":"^1.0.1","@smithy/node-config-provider":"^1.0.1","@smithy/node-http-handler":"^1.0.2","@smithy/protocol-http":"^1.0.1","@smithy/smithy-client":"^1.0.3","@smithy/types":"^1.1.0","@smithy/url-parser":"^1.0.1","@smithy/util-base64":"^1.0.1","@smithy/util-body-length-browser":"^1.0.1","@smithy/util-body-length-node":"^1.0.1","@smithy/util-defaults-mode-browser":"^1.0.1","@smithy/util-defaults-mode-node":"^1.0.1","@smithy/util-retry":"^1.0.2","@smithy/util-utf8":"^1.0.1","@smithy/util-waiter":"^1.0.1","tslib":"^2.5.0"},"devDependencies":{"@aws-sdk/service-client-documentation-generator":"3.310.0","@smithy/service-client-documentation-generator":"^1.0.1","@tsconfig/node14":"1.0.3","@types/node":"^14.14.31","concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typedoc":"0.23.23","typescript":"~4.9.5"},"engines":{"node":">=14.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-ecr","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-ecr"}}')},69722:e=>{"use strict";e.exports=JSON.parse('{"name":"@aws-sdk/client-sso-oidc","description":"AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native","version":"3.369.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:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sso-oidc"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/middleware-host-header":"3.369.0","@aws-sdk/middleware-logger":"3.369.0","@aws-sdk/middleware-recursion-detection":"3.369.0","@aws-sdk/middleware-user-agent":"3.369.0","@aws-sdk/types":"3.369.0","@aws-sdk/util-endpoints":"3.369.0","@aws-sdk/util-user-agent-browser":"3.369.0","@aws-sdk/util-user-agent-node":"3.369.0","@smithy/config-resolver":"^1.0.1","@smithy/fetch-http-handler":"^1.0.1","@smithy/hash-node":"^1.0.1","@smithy/invalid-dependency":"^1.0.1","@smithy/middleware-content-length":"^1.0.1","@smithy/middleware-endpoint":"^1.0.1","@smithy/middleware-retry":"^1.0.2","@smithy/middleware-serde":"^1.0.1","@smithy/middleware-stack":"^1.0.1","@smithy/node-config-provider":"^1.0.1","@smithy/node-http-handler":"^1.0.2","@smithy/protocol-http":"^1.0.1","@smithy/smithy-client":"^1.0.3","@smithy/types":"^1.1.0","@smithy/url-parser":"^1.0.1","@smithy/util-base64":"^1.0.1","@smithy/util-body-length-browser":"^1.0.1","@smithy/util-body-length-node":"^1.0.1","@smithy/util-defaults-mode-browser":"^1.0.1","@smithy/util-defaults-mode-node":"^1.0.1","@smithy/util-retry":"^1.0.2","@smithy/util-utf8":"^1.0.1","tslib":"^2.5.0"},"devDependencies":{"@aws-sdk/service-client-documentation-generator":"3.310.0","@smithy/service-client-documentation-generator":"^1.0.1","@tsconfig/node14":"1.0.3","@types/node":"^14.14.31","concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typedoc":"0.23.23","typescript":"~4.9.5"},"engines":{"node":">=14.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-oidc","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sso-oidc"}}')},91092:e=>{"use strict";e.exports=JSON.parse('{"name":"@aws-sdk/client-sso","description":"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native","version":"3.369.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:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sso"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/middleware-host-header":"3.369.0","@aws-sdk/middleware-logger":"3.369.0","@aws-sdk/middleware-recursion-detection":"3.369.0","@aws-sdk/middleware-user-agent":"3.369.0","@aws-sdk/types":"3.369.0","@aws-sdk/util-endpoints":"3.369.0","@aws-sdk/util-user-agent-browser":"3.369.0","@aws-sdk/util-user-agent-node":"3.369.0","@smithy/config-resolver":"^1.0.1","@smithy/fetch-http-handler":"^1.0.1","@smithy/hash-node":"^1.0.1","@smithy/invalid-dependency":"^1.0.1","@smithy/middleware-content-length":"^1.0.1","@smithy/middleware-endpoint":"^1.0.1","@smithy/middleware-retry":"^1.0.2","@smithy/middleware-serde":"^1.0.1","@smithy/middleware-stack":"^1.0.1","@smithy/node-config-provider":"^1.0.1","@smithy/node-http-handler":"^1.0.2","@smithy/protocol-http":"^1.0.1","@smithy/smithy-client":"^1.0.3","@smithy/types":"^1.1.0","@smithy/url-parser":"^1.0.1","@smithy/util-base64":"^1.0.1","@smithy/util-body-length-browser":"^1.0.1","@smithy/util-body-length-node":"^1.0.1","@smithy/util-defaults-mode-browser":"^1.0.1","@smithy/util-defaults-mode-node":"^1.0.1","@smithy/util-retry":"^1.0.2","@smithy/util-utf8":"^1.0.1","tslib":"^2.5.0"},"devDependencies":{"@aws-sdk/service-client-documentation-generator":"3.310.0","@smithy/service-client-documentation-generator":"^1.0.1","@tsconfig/node14":"1.0.3","@types/node":"^14.14.31","concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typedoc":"0.23.23","typescript":"~4.9.5"},"engines":{"node":">=14.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"}}')},7947:e=>{"use strict";e.exports=JSON.parse('{"name":"@aws-sdk/client-sts","description":"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native","version":"3.369.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:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sts","test":"yarn test:unit","test:unit":"jest"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/credential-provider-node":"3.369.0","@aws-sdk/middleware-host-header":"3.369.0","@aws-sdk/middleware-logger":"3.369.0","@aws-sdk/middleware-recursion-detection":"3.369.0","@aws-sdk/middleware-sdk-sts":"3.369.0","@aws-sdk/middleware-signing":"3.369.0","@aws-sdk/middleware-user-agent":"3.369.0","@aws-sdk/types":"3.369.0","@aws-sdk/util-endpoints":"3.369.0","@aws-sdk/util-user-agent-browser":"3.369.0","@aws-sdk/util-user-agent-node":"3.369.0","@smithy/config-resolver":"^1.0.1","@smithy/fetch-http-handler":"^1.0.1","@smithy/hash-node":"^1.0.1","@smithy/invalid-dependency":"^1.0.1","@smithy/middleware-content-length":"^1.0.1","@smithy/middleware-endpoint":"^1.0.1","@smithy/middleware-retry":"^1.0.1","@smithy/middleware-serde":"^1.0.1","@smithy/middleware-stack":"^1.0.1","@smithy/node-config-provider":"^1.0.1","@smithy/node-http-handler":"^1.0.1","@smithy/protocol-http":"^1.1.0","@smithy/smithy-client":"^1.0.2","@smithy/types":"^1.1.0","@smithy/url-parser":"^1.0.1","@smithy/util-base64":"^1.0.1","@smithy/util-body-length-browser":"^1.0.1","@smithy/util-body-length-node":"^1.0.1","@smithy/util-defaults-mode-browser":"^1.0.1","@smithy/util-defaults-mode-node":"^1.0.1","@smithy/util-retry":"^1.0.1","@smithy/util-utf8":"^1.0.1","fast-xml-parser":"4.2.5","tslib":"^2.5.0"},"devDependencies":{"@aws-sdk/service-client-documentation-generator":"3.310.0","@smithy/service-client-documentation-generator":"^1.0.1","@tsconfig/node14":"1.0.3","@types/node":"^14.14.31","concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typedoc":"0.23.23","typescript":"~4.9.5"},"engines":{"node":">=14.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"}}')},95367:e=>{"use strict";e.exports=JSON.parse('{"partitions":[{"id":"aws","outputs":{"dnsSuffix":"amazonaws.com","dualStackDnsSuffix":"api.aws","name":"aws","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^(us|eu|ap|sa|ca|me|af)\\\\-\\\\w+\\\\-\\\\d+$","regions":{"af-south-1":{"description":"Africa (Cape Town)"},"ap-east-1":{"description":"Asia Pacific (Hong Kong)"},"ap-northeast-1":{"description":"Asia Pacific (Tokyo)"},"ap-northeast-2":{"description":"Asia Pacific (Seoul)"},"ap-northeast-3":{"description":"Asia Pacific (Osaka)"},"ap-south-1":{"description":"Asia Pacific (Mumbai)"},"ap-south-2":{"description":"Asia Pacific (Hyderabad)"},"ap-southeast-1":{"description":"Asia Pacific (Singapore)"},"ap-southeast-2":{"description":"Asia Pacific (Sydney)"},"ap-southeast-3":{"description":"Asia Pacific (Jakarta)"},"ap-southeast-4":{"description":"Asia Pacific (Melbourne)"},"aws-global":{"description":"AWS Standard global region"},"ca-central-1":{"description":"Canada (Central)"},"eu-central-1":{"description":"Europe (Frankfurt)"},"eu-central-2":{"description":"Europe (Zurich)"},"eu-north-1":{"description":"Europe (Stockholm)"},"eu-south-1":{"description":"Europe (Milan)"},"eu-south-2":{"description":"Europe (Spain)"},"eu-west-1":{"description":"Europe (Ireland)"},"eu-west-2":{"description":"Europe (London)"},"eu-west-3":{"description":"Europe (Paris)"},"me-central-1":{"description":"Middle East (UAE)"},"me-south-1":{"description":"Middle East (Bahrain)"},"sa-east-1":{"description":"South America (Sao Paulo)"},"us-east-1":{"description":"US East (N. Virginia)"},"us-east-2":{"description":"US East (Ohio)"},"us-west-1":{"description":"US West (N. California)"},"us-west-2":{"description":"US West (Oregon)"}}},{"id":"aws-cn","outputs":{"dnsSuffix":"amazonaws.com.cn","dualStackDnsSuffix":"api.amazonwebservices.com.cn","name":"aws-cn","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^cn\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-cn-global":{"description":"AWS China global region"},"cn-north-1":{"description":"China (Beijing)"},"cn-northwest-1":{"description":"China (Ningxia)"}}},{"id":"aws-us-gov","outputs":{"dnsSuffix":"amazonaws.com","dualStackDnsSuffix":"api.aws","name":"aws-us-gov","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^us\\\\-gov\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-us-gov-global":{"description":"AWS GovCloud (US) global region"},"us-gov-east-1":{"description":"AWS GovCloud (US-East)"},"us-gov-west-1":{"description":"AWS GovCloud (US-West)"}}},{"id":"aws-iso","outputs":{"dnsSuffix":"c2s.ic.gov","dualStackDnsSuffix":"c2s.ic.gov","name":"aws-iso","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^us\\\\-iso\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-iso-global":{"description":"AWS ISO (US) global region"},"us-iso-east-1":{"description":"US ISO East"},"us-iso-west-1":{"description":"US ISO WEST"}}},{"id":"aws-iso-b","outputs":{"dnsSuffix":"sc2s.sgov.gov","dualStackDnsSuffix":"sc2s.sgov.gov","name":"aws-iso-b","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^us\\\\-isob\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-iso-b-global":{"description":"AWS ISOB (US) global region"},"us-isob-east-1":{"description":"US ISOB East (Ohio)"}}},{"id":"aws-iso-e","outputs":{"dnsSuffix":"cloud.adc-e.uk","dualStackDnsSuffix":"cloud.adc-e.uk","name":"aws-iso-e","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^eu\\\\-isoe\\\\-\\\\w+\\\\-\\\\d+$","regions":{}},{"id":"aws-iso-f","outputs":{"dnsSuffix":"csp.hci.ic.gov","dualStackDnsSuffix":"csp.hci.ic.gov","name":"aws-iso-f","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^us\\\\-isof\\\\-\\\\w+\\\\-\\\\d+$","regions":{}}],"version":"1.1"}')}};var __webpack_module_cache__={};function __nccwpck_require__(e){var t=__webpack_module_cache__[e];if(t!==undefined){return t.exports}var n=__webpack_module_cache__[e]={exports:{}};var o=true;try{__webpack_modules__[e].call(n.exports,n,n.exports,__nccwpck_require__);o=false}finally{if(o)delete __webpack_module_cache__[e]}return n.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var __webpack_exports__=__nccwpck_require__(70399);module.exports=__webpack_exports__})();
|
||
//# sourceMappingURL=index.js.map
|