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 i=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 s=i(n(22037));const a=n(5278);function issueCommand(e,t,n){const o=new Command(e,t,n);process.stdout.write(o.toString()+s.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 i=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 s=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 l=n(5278);const u=i(n(22037));const d=i(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=l.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}${d.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},l.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",l.toCommandProperties(t),e instanceof Error?e.toString():e)}t.error=error;function warning(e,t={}){a.issueCommand("warning",l.toCommandProperties(t),e instanceof Error?e.toString():e)}t.warning=warning;function notice(e,t={}){a.issueCommand("notice",l.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 s(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},l.toCommandValue(t))}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState;function getIDToken(e){return s(this,void 0,void 0,(function*(){return yield p.OidcClient.getIDToken(e)}))}t.getIDToken=getIDToken;var g=n(81327);Object.defineProperty(t,"summary",{enumerable:true,get:function(){return g.summary}});var f=n(81327);Object.defineProperty(t,"markdownSummary",{enumerable:true,get:function(){return f.markdownSummary}});var y=n(2981);Object.defineProperty(t,"toPosixPath",{enumerable:true,get:function(){return y.toPosixPath}});Object.defineProperty(t,"toWin32Path",{enumerable:true,get:function(){return y.toWin32Path}});Object.defineProperty(t,"toPlatformPath",{enumerable:true,get:function(){return y.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 i=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 s=i(n(57147));const a=i(n(22037));const c=n(75840);const l=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(!s.existsSync(n)){throw new Error(`Missing file at path: ${n}`)}s.appendFileSync(n,`${l.toCommandValue(t)}${a.EOL}`,{encoding:"utf8"})}t.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(e,t){const n=`ghadelimiter_${c.v4()}`;const o=l.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 i=n(35526);const s=n(42186);class OidcClient{static createHttpClient(e=true,t=10){const n={allowRetries:e,maxRetries:t};return new r.HttpClient("actions/oidc-client",[new i.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}`}s.debug(`ID token url is ${t}`);const n=yield OidcClient.getCall(t);s.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 i=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 s=i(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,s.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 i=n(57147);const{access:s,appendFile:a,writeFile:c}=i.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 s(e,i.constants.R_OK|i.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}`}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 i=t?"th":"td";const s=Object.assign(Object.assign({},o&&{colspan:o}),r&&{rowspan:r});return this.wrap(i,n,s)})).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 i=Object.assign(Object.assign({},o&&{width:o}),r&&{height:r});const s=this.wrap("img",null,Object.assign({src:e,alt:t},i));return this.addRaw(s).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 l=new Summary;t.markdownSummary=l;t.summary=l},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 i=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 s=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=i(n(88159));function exec(e,t,n){return s(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 i=new c.ToolRunner(r,t,n);return i.exec()}))}t.exec=exec;function getExecOutput(e,t,n){var o,r;return s(this,void 0,void 0,(function*(){let i="";let s="";const c=new a.StringDecoder("utf8");const l=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 d=(r=n===null||n===void 0?void 0:n.listeners)===null||r===void 0?void 0:r.stderr;const stdErrListener=e=>{s+=l.write(e);if(d){d(e)}};const stdOutListener=e=>{i+=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}));i+=c.end();s+=l.end();return{exitCode:m,stdout:i,stderr:s}}))}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 i=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 s=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=i(n(22037));const c=i(n(82361));const l=i(n(32081));const u=i(n(71017));const d=i(n(47351));const p=i(n(81962));const m=n(39512);const g=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(g){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(g){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(g){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 s(this,void 0,void 0,(function*(){if(!p.isRooted(this.toolPath)&&(this.toolPath.includes("/")||g&&this.toolPath.includes("\\"))){this.toolPath=u.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield d.which(this.toolPath,true);return new Promise(((e,t)=>s(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 i=l.spawn(r,this._getSpawnArgs(n),this._getSpawnOptions(this.options,r));let s="";if(i.stdout){i.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)}s=this._processLineBuffer(e,s,(e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}}))}))}let c="";if(i.stderr){i.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)}}))}))}i.on("error",(e=>{o.processError=e.message;o.processExited=true;o.processClosed=true;o.CheckComplete()}));i.on("exit",(e=>{o.processExitCode=e;o.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);o.CheckComplete()}));i.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(s.length>0){this.emit("stdline",s)}if(c.length>0){this.emit("errline",c)}i.removeAllListeners();if(n){t(n)}else{e(o)}}));if(this.options.input){if(!i.stdin){throw new Error("child process missing stdin")}i.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 i=0;i0){t.push(r);r=""}continue}append(s)}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 i=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 s=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=i(n(13685));const c=i(n(95687));const l=i(n(19835));const u=i(n(74294));var d;(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"})(d=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=l.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const g=[d.MovedPermanently,d.ResourceMoved,d.SeeOther,d.TemporaryRedirect,d.PermanentRedirect];const f=[d.BadGateway,d.ServiceUnavailable,d.GatewayTimeout];const y=["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 s(this,void 0,void 0,(function*(){return new Promise((e=>s(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 s(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,t||{})}))}get(e,t){return s(this,void 0,void 0,(function*(){return this.request("GET",e,null,t||{})}))}del(e,t){return s(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,t||{})}))}post(e,t,n){return s(this,void 0,void 0,(function*(){return this.request("POST",e,t,n||{})}))}patch(e,t,n){return s(this,void 0,void 0,(function*(){return this.request("PATCH",e,t,n||{})}))}put(e,t,n){return s(this,void 0,void 0,(function*(){return this.request("PUT",e,t,n||{})}))}head(e,t){return s(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,t||{})}))}sendStream(e,t,n,o){return s(this,void 0,void 0,(function*(){return this.request(e,t,n,o)}))}getJson(e,t={}){return s(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 s(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 s(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 s(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 s(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const r=new URL(t);let i=this._prepareRequest(e,r,o);const s=this._allowRetries&&y.includes(e)?this._maxRetries+1:1;let a=0;let c;do{c=yield this.requestRaw(i,n);if(c&&c.message&&c.message.statusCode===d.Unauthorized){let e;for(const t of this.handlers){if(t.canHandleAuthentication(c)){e=t;break}}if(e){return e.handleAuthentication(this,i,n)}else{return c}}let t=this._maxRedirects;while(c.message.statusCode&&g.includes(c.message.statusCode)&&this._allowRedirects&&t>0){const s=c.message.headers["location"];if(!s){break}const a=new URL(s);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]}}}i=this._prepareRequest(e,a,o);c=yield this.requestRaw(i,n);t--}if(!c.message.statusCode||!f.includes(c.message.statusCode)){return c}a+=1;if(a{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 i;r.on("socket",(e=>{i=e}));r.setTimeout(this._socketTimeout||3*6e4,(()=>{if(i){i.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 i=r?443:80;o.options={};o.options.host=o.parsedUrl.hostname;o.options.port=o.parsedUrl.port?parseInt(o.parsedUrl.port):i;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=l.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 i=100;if(this.requestOptions){i=this.requestOptions.maxSockets||a.globalAgent.maxSockets}if(n&&n.hostname){const e={maxSockets:i,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 s=n.protocol==="https:";if(r){o=s?u.httpsOverHttps:u.httpsOverHttp}else{o=s?u.httpOverHttps:u.httpOverHttp}t=o(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:i};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 s(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 s(this,void 0,void 0,(function*(){return new Promise(((n,o)=>s(this,void 0,void 0,(function*(){const r=e.message.statusCode||0;const i={statusCode:r,result:null,headers:{}};if(r===d.NotFound){n(i)}function dateTimeDeserializer(e,t){if(typeof t==="string"){const e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}let s;let a;try{a=yield e.readBody();if(a&&a.length>0){if(t&&t.deserializeDates){s=JSON.parse(a,dateTimeDeserializer)}else{s=JSON.parse(a)}i.result=s}i.headers=e.message.headers}catch(e){}if(r>299){let e;if(s&&s.message){e=s.message}else if(a&&a.length>0){e=a}else{e=`Failed request: (${r})`}const t=new HttpClientError(e,r);t.result=i.result;o(t)}else{n(i)}}))))}))}}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 i=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 s=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=i(n(57147));const l=i(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 s(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 s(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 s(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=l.extname(e).toUpperCase();if(n.some((e=>e.toUpperCase()===t))){return e}}else{if(isUnixExecutable(o)){return e}}}const r=e;for(const i of n){e=r+i;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=l.dirname(e);const o=l.basename(e).toUpperCase();for(const r of yield t.readdir(n)){if(o===r.toUpperCase()){e=l.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 i=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 s=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=i(n(32081));const l=i(n(71017));const u=n(73837);const d=i(n(81962));const p=u.promisify(c.exec);const m=u.promisify(c.execFile);function cp(e,t,n={}){return s(this,void 0,void 0,(function*(){const{force:o,recursive:r,copySourceDirectory:i}=readCopyOptions(n);const s=(yield d.exists(t))?yield d.stat(t):null;if(s&&s.isFile()&&!o){return}const a=s&&s.isDirectory()&&i?l.join(t,l.basename(e)):t;if(!(yield d.exists(e))){throw new Error(`no such file or directory: ${e}`)}const c=yield d.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(l.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 s(this,void 0,void 0,(function*(){if(yield d.exists(t)){let o=true;if(yield d.isDirectory(t)){t=l.join(t,l.basename(e));o=yield d.exists(t)}if(o){if(n.force==null||n.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(l.dirname(t));yield d.rename(e,t)}))}t.mv=mv;function rmRF(e){return s(this,void 0,void 0,(function*(){if(d.IS_WINDOWS){if(/[*"<>|]/.test(e)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}try{const t=d.getCmdPath();if(yield d.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 d.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let t=false;try{t=yield d.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(t){yield m(`rm`,[`-rf`,`${e}`])}else{yield d.unlink(e)}}}))}t.rmRF=rmRF;function mkdirP(e){return s(this,void 0,void 0,(function*(){a.ok(e,"a path argument must be provided");yield d.mkdir(e,{recursive:true})}))}t.mkdirP=mkdirP;function which(e,t){return s(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(d.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 s(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}const t=[];if(d.IS_WINDOWS&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(l.delimiter)){if(e){t.push(e)}}}if(d.isRooted(e)){const n=yield d.tryGetExecutablePath(e,t);if(n){return[n]}return[]}if(e.includes(l.sep)){return[]}const n=[];if(process.env.PATH){for(const e of process.env.PATH.split(l.delimiter)){if(e){n.push(e)}}}const o=[];for(const r of n){const n=yield d.tryGetExecutablePath(l.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 s(this,void 0,void 0,(function*(){if(n>=255)return;n++;yield mkdirP(t);const r=yield d.readdir(e);for(const i of r){const r=`${e}/${i}`;const s=`${t}/${i}`;const a=yield d.lstat(r);if(a.isDirectory()){yield cpDirRecursive(r,s,n,o)}else{yield copyFile(r,s,o)}}yield d.chmod(t,(yield d.stat(e)).mode)}))}function copyFile(e,t,n){return s(this,void 0,void 0,(function*(){if((yield d.lstat(e)).isSymbolicLink()){try{yield d.lstat(t);yield d.unlink(t)}catch(e){if(e.code==="EPERM"){yield d.chmod(t,"0666");yield d.unlink(t)}}const n=yield d.readlink(e);yield d.symlink(n,t,d.IS_WINDOWS?"junction":null)}else if(!(yield d.exists(t))||n){yield d.copyFile(e,t)}}))}},86087:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ECRPUBLIC=void 0;const o=n(25356);const r=n(56517);const i=n(55490);const s=n(39633);const a=n(60467);const c=n(62528);const l=n(22776);const u=n(47670);const d=n(78696);const p=n(82218);const m=n(92674);const g=n(26518);const f=n(53189);const y=n(8562);const h=n(83675);const E=n(80575);const S=n(86486);const v=n(46805);const w=n(83753);const _=n(79838);const x=n(39869);const P=n(66689);const C=n(97429);const R=n(30608);class ECRPUBLIC extends R.ECRPUBLICClient{batchCheckLayerAvailability(e,t,n){const r=new o.BatchCheckLayerAvailabilityCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},n)}else{return this.send(r,t)}}batchDeleteImage(e,t,n){const o=new r.BatchDeleteImageCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}completeLayerUpload(e,t,n){const o=new i.CompleteLayerUploadCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}createRepository(e,t,n){const o=new s.CreateRepositoryCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}deleteRepository(e,t,n){const o=new a.DeleteRepositoryCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}deleteRepositoryPolicy(e,t,n){const o=new c.DeleteRepositoryPolicyCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}describeImages(e,t,n){const o=new l.DescribeImagesCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}describeImageTags(e,t,n){const o=new u.DescribeImageTagsCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}describeRegistries(e,t,n){const o=new d.DescribeRegistriesCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}describeRepositories(e,t,n){const o=new p.DescribeRepositoriesCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}getAuthorizationToken(e,t,n){const o=new m.GetAuthorizationTokenCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}getRegistryCatalogData(e,t,n){const o=new g.GetRegistryCatalogDataCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}getRepositoryCatalogData(e,t,n){const o=new f.GetRepositoryCatalogDataCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}getRepositoryPolicy(e,t,n){const o=new y.GetRepositoryPolicyCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}initiateLayerUpload(e,t,n){const o=new h.InitiateLayerUploadCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}listTagsForResource(e,t,n){const o=new E.ListTagsForResourceCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}putImage(e,t,n){const o=new S.PutImageCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}putRegistryCatalogData(e,t,n){const o=new v.PutRegistryCatalogDataCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}putRepositoryCatalogData(e,t,n){const o=new w.PutRepositoryCatalogDataCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}setRepositoryPolicy(e,t,n){const o=new _.SetRepositoryPolicyCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}tagResource(e,t,n){const o=new x.TagResourceCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}untagResource(e,t,n){const o=new P.UntagResourceCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}uploadLayerPart(e,t,n){const o=new C.UploadLayerPartCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}}t.ECRPUBLIC=ECRPUBLIC},30608:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ECRPUBLICClient=void 0;const o=n(56153);const r=n(42245);const i=n(5497);const s=n(22545);const a=n(20014);const c=n(85525);const l=n(96064);const u=n(14935);const d=n(64688);const p=n(4963);const m=n(78258);const g=n(49324);class ECRPUBLICClient extends p.Client{constructor(e){const t=(0,g.getRuntimeConfig)(e);const n=(0,m.resolveClientEndpointParameters)(t);const p=(0,o.resolveRegionConfig)(n);const f=(0,i.resolveEndpointConfig)(p);const y=(0,l.resolveRetryConfig)(f);const h=(0,s.resolveHostHeaderConfig)(y);const E=(0,u.resolveAwsAuthConfig)(h);const S=(0,d.resolveUserAgentConfig)(E);super(S);this.config=S;this.middlewareStack.use((0,l.getRetryPlugin)(this.config));this.middlewareStack.use((0,r.getContentLengthPlugin)(this.config));this.middlewareStack.use((0,s.getHostHeaderPlugin)(this.config));this.middlewareStack.use((0,a.getLoggerPlugin)(this.config));this.middlewareStack.use((0,c.getRecursionDetectionPlugin)(this.config));this.middlewareStack.use((0,u.getAwsAuthPlugin)(this.config));this.middlewareStack.use((0,d.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}}t.ECRPUBLICClient=ECRPUBLICClient},25356:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BatchCheckLayerAvailabilityCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(38818);const a=n(64170);class BatchCheckLayerAvailabilityCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRPUBLICClient";const l="BatchCheckLayerAvailabilityCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.BatchCheckLayerAvailabilityRequestFilterSensitiveLog,outputFilterSensitiveLog:s.BatchCheckLayerAvailabilityResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1BatchCheckLayerAvailabilityCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1BatchCheckLayerAvailabilityCommand)(e,t)}}t.BatchCheckLayerAvailabilityCommand=BatchCheckLayerAvailabilityCommand},56517:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BatchDeleteImageCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(38818);const a=n(64170);class BatchDeleteImageCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRPUBLICClient";const l="BatchDeleteImageCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.BatchDeleteImageRequestFilterSensitiveLog,outputFilterSensitiveLog:s.BatchDeleteImageResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1BatchDeleteImageCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1BatchDeleteImageCommand)(e,t)}}t.BatchDeleteImageCommand=BatchDeleteImageCommand},55490:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CompleteLayerUploadCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(38818);const a=n(64170);class CompleteLayerUploadCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRPUBLICClient";const l="CompleteLayerUploadCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.CompleteLayerUploadRequestFilterSensitiveLog,outputFilterSensitiveLog:s.CompleteLayerUploadResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1CompleteLayerUploadCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1CompleteLayerUploadCommand)(e,t)}}t.CompleteLayerUploadCommand=CompleteLayerUploadCommand},39633:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CreateRepositoryCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(38818);const a=n(64170);class CreateRepositoryCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRPUBLICClient";const l="CreateRepositoryCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.CreateRepositoryRequestFilterSensitiveLog,outputFilterSensitiveLog:s.CreateRepositoryResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1CreateRepositoryCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1CreateRepositoryCommand)(e,t)}}t.CreateRepositoryCommand=CreateRepositoryCommand},60467:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DeleteRepositoryCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(38818);const a=n(64170);class DeleteRepositoryCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRPUBLICClient";const l="DeleteRepositoryCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.DeleteRepositoryRequestFilterSensitiveLog,outputFilterSensitiveLog:s.DeleteRepositoryResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1DeleteRepositoryCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1DeleteRepositoryCommand)(e,t)}}t.DeleteRepositoryCommand=DeleteRepositoryCommand},62528:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DeleteRepositoryPolicyCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(38818);const a=n(64170);class DeleteRepositoryPolicyCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRPUBLICClient";const l="DeleteRepositoryPolicyCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.DeleteRepositoryPolicyRequestFilterSensitiveLog,outputFilterSensitiveLog:s.DeleteRepositoryPolicyResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1DeleteRepositoryPolicyCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1DeleteRepositoryPolicyCommand)(e,t)}}t.DeleteRepositoryPolicyCommand=DeleteRepositoryPolicyCommand},47670:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribeImageTagsCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(38818);const a=n(64170);class DescribeImageTagsCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRPUBLICClient";const l="DescribeImageTagsCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.DescribeImageTagsRequestFilterSensitiveLog,outputFilterSensitiveLog:s.DescribeImageTagsResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1DescribeImageTagsCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1DescribeImageTagsCommand)(e,t)}}t.DescribeImageTagsCommand=DescribeImageTagsCommand},22776:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribeImagesCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(38818);const a=n(64170);class DescribeImagesCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRPUBLICClient";const l="DescribeImagesCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.DescribeImagesRequestFilterSensitiveLog,outputFilterSensitiveLog:s.DescribeImagesResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1DescribeImagesCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1DescribeImagesCommand)(e,t)}}t.DescribeImagesCommand=DescribeImagesCommand},78696:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribeRegistriesCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(38818);const a=n(64170);class DescribeRegistriesCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRPUBLICClient";const l="DescribeRegistriesCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.DescribeRegistriesRequestFilterSensitiveLog,outputFilterSensitiveLog:s.DescribeRegistriesResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1DescribeRegistriesCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1DescribeRegistriesCommand)(e,t)}}t.DescribeRegistriesCommand=DescribeRegistriesCommand},82218:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribeRepositoriesCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(38818);const a=n(64170);class DescribeRepositoriesCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRPUBLICClient";const l="DescribeRepositoriesCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.DescribeRepositoriesRequestFilterSensitiveLog,outputFilterSensitiveLog:s.DescribeRepositoriesResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1DescribeRepositoriesCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1DescribeRepositoriesCommand)(e,t)}}t.DescribeRepositoriesCommand=DescribeRepositoriesCommand},92674:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetAuthorizationTokenCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(38818);const a=n(64170);class GetAuthorizationTokenCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRPUBLICClient";const l="GetAuthorizationTokenCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.GetAuthorizationTokenRequestFilterSensitiveLog,outputFilterSensitiveLog:s.GetAuthorizationTokenResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1GetAuthorizationTokenCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1GetAuthorizationTokenCommand)(e,t)}}t.GetAuthorizationTokenCommand=GetAuthorizationTokenCommand},26518:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetRegistryCatalogDataCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(38818);const a=n(64170);class GetRegistryCatalogDataCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRPUBLICClient";const l="GetRegistryCatalogDataCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.GetRegistryCatalogDataRequestFilterSensitiveLog,outputFilterSensitiveLog:s.GetRegistryCatalogDataResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1GetRegistryCatalogDataCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1GetRegistryCatalogDataCommand)(e,t)}}t.GetRegistryCatalogDataCommand=GetRegistryCatalogDataCommand},53189:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetRepositoryCatalogDataCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(38818);const a=n(64170);class GetRepositoryCatalogDataCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRPUBLICClient";const l="GetRepositoryCatalogDataCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.GetRepositoryCatalogDataRequestFilterSensitiveLog,outputFilterSensitiveLog:s.GetRepositoryCatalogDataResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1GetRepositoryCatalogDataCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1GetRepositoryCatalogDataCommand)(e,t)}}t.GetRepositoryCatalogDataCommand=GetRepositoryCatalogDataCommand},8562:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetRepositoryPolicyCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(38818);const a=n(64170);class GetRepositoryPolicyCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRPUBLICClient";const l="GetRepositoryPolicyCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.GetRepositoryPolicyRequestFilterSensitiveLog,outputFilterSensitiveLog:s.GetRepositoryPolicyResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1GetRepositoryPolicyCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1GetRepositoryPolicyCommand)(e,t)}}t.GetRepositoryPolicyCommand=GetRepositoryPolicyCommand},83675:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.InitiateLayerUploadCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(38818);const a=n(64170);class InitiateLayerUploadCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRPUBLICClient";const l="InitiateLayerUploadCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.InitiateLayerUploadRequestFilterSensitiveLog,outputFilterSensitiveLog:s.InitiateLayerUploadResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1InitiateLayerUploadCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1InitiateLayerUploadCommand)(e,t)}}t.InitiateLayerUploadCommand=InitiateLayerUploadCommand},80575:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ListTagsForResourceCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(38818);const a=n(64170);class ListTagsForResourceCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRPUBLICClient";const l="ListTagsForResourceCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.ListTagsForResourceRequestFilterSensitiveLog,outputFilterSensitiveLog:s.ListTagsForResourceResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1ListTagsForResourceCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1ListTagsForResourceCommand)(e,t)}}t.ListTagsForResourceCommand=ListTagsForResourceCommand},86486:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutImageCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(38818);const a=n(64170);class PutImageCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRPUBLICClient";const l="PutImageCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.PutImageRequestFilterSensitiveLog,outputFilterSensitiveLog:s.PutImageResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1PutImageCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1PutImageCommand)(e,t)}}t.PutImageCommand=PutImageCommand},46805:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutRegistryCatalogDataCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(38818);const a=n(64170);class PutRegistryCatalogDataCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRPUBLICClient";const l="PutRegistryCatalogDataCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.PutRegistryCatalogDataRequestFilterSensitiveLog,outputFilterSensitiveLog:s.PutRegistryCatalogDataResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1PutRegistryCatalogDataCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1PutRegistryCatalogDataCommand)(e,t)}}t.PutRegistryCatalogDataCommand=PutRegistryCatalogDataCommand},83753:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutRepositoryCatalogDataCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(38818);const a=n(64170);class PutRepositoryCatalogDataCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRPUBLICClient";const l="PutRepositoryCatalogDataCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.PutRepositoryCatalogDataRequestFilterSensitiveLog,outputFilterSensitiveLog:s.PutRepositoryCatalogDataResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1PutRepositoryCatalogDataCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1PutRepositoryCatalogDataCommand)(e,t)}}t.PutRepositoryCatalogDataCommand=PutRepositoryCatalogDataCommand},79838:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SetRepositoryPolicyCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(38818);const a=n(64170);class SetRepositoryPolicyCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRPUBLICClient";const l="SetRepositoryPolicyCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.SetRepositoryPolicyRequestFilterSensitiveLog,outputFilterSensitiveLog:s.SetRepositoryPolicyResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1SetRepositoryPolicyCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1SetRepositoryPolicyCommand)(e,t)}}t.SetRepositoryPolicyCommand=SetRepositoryPolicyCommand},39869:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TagResourceCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(38818);const a=n(64170);class TagResourceCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRPUBLICClient";const l="TagResourceCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.TagResourceRequestFilterSensitiveLog,outputFilterSensitiveLog:s.TagResourceResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1TagResourceCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1TagResourceCommand)(e,t)}}t.TagResourceCommand=TagResourceCommand},66689:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UntagResourceCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(38818);const a=n(64170);class UntagResourceCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRPUBLICClient";const l="UntagResourceCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.UntagResourceRequestFilterSensitiveLog,outputFilterSensitiveLog:s.UntagResourceResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1UntagResourceCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1UntagResourceCommand)(e,t)}}t.UntagResourceCommand=UntagResourceCommand},97429:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UploadLayerPartCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(38818);const a=n(64170);class UploadLayerPartCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRPUBLICClient";const l="UploadLayerPartCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.UploadLayerPartRequestFilterSensitiveLog,outputFilterSensitiveLog:s.UploadLayerPartResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1UploadLayerPartCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1UploadLayerPartCommand)(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(39205);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;t.ruleSet={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:false,documentation:"The AWS region used to dispatch the request.",type:"String"},UseDualStack:{builtIn:"AWS::UseDualStack",required:true,default:false,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:"Boolean"},UseFIPS:{builtIn:"AWS::UseFIPS",required:true,default:false,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:"Boolean"},Endpoint:{builtIn:"SDK::Endpoint",required:false,documentation:"Override the endpoint used to send this request",type:"String"}},rules:[{conditions:[{fn:"aws.partition",argv:[{ref:"Region"}],assign:"PartitionResult"}],type:"tree",rules:[{conditions:[{fn:"isSet",argv:[{ref:"Endpoint"}]},{fn:"parseURL",argv:[{ref:"Endpoint"}],assign:"url"}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[{ref:"UseFIPS"},true]}],error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:[],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[{ref:"UseDualStack"},true]}],error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{conditions:[],endpoint:{url:{ref:"Endpoint"},properties:{},headers:{}},type:"endpoint"}]}]},{conditions:[{fn:"booleanEquals",argv:[{ref:"UseFIPS"},true]},{fn:"booleanEquals",argv:[{ref:"UseDualStack"},true]}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[true,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsFIPS"]}]},{fn:"booleanEquals",argv:[true,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsDualStack"]}]}],type:"tree",rules:[{conditions:[],endpoint:{url:"https://api.ecr-public-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:{},headers:{}},type:"endpoint"}]},{conditions:[],error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}]},{conditions:[{fn:"booleanEquals",argv:[{ref:"UseFIPS"},true]}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[true,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsFIPS"]}]}],type:"tree",rules:[{conditions:[],endpoint:{url:"https://api.ecr-public-fips.{Region}.{PartitionResult#dnsSuffix}",properties:{},headers:{}},type:"endpoint"}]},{conditions:[],error:"FIPS is enabled but this partition does not support FIPS",type:"error"}]},{conditions:[{fn:"booleanEquals",argv:[{ref:"UseDualStack"},true]}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[true,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsDualStack"]}]}],type:"tree",rules:[{conditions:[],endpoint:{url:"https://api.ecr-public.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:{},headers:{}},type:"endpoint"}]},{conditions:[],error:"DualStack is enabled but this partition does not support DualStack",type:"error"}]},{conditions:[],endpoint:{url:"https://api.ecr-public.{Region}.{PartitionResult#dnsSuffix}",properties:{},headers:{}},type:"endpoint"}]}]}},42308:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ECRPUBLICServiceException=void 0;const o=n(4351);o.__exportStar(n(86087),t);o.__exportStar(n(30608),t);o.__exportStar(n(65442),t);o.__exportStar(n(30183),t);o.__exportStar(n(75945),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=void 0;const o=n(4963);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.ImageDetailFilterSensitiveLog=t.DescribeImagesRequestFilterSensitiveLog=t.DeleteRepositoryPolicyResponseFilterSensitiveLog=t.DeleteRepositoryPolicyRequestFilterSensitiveLog=t.DeleteRepositoryResponseFilterSensitiveLog=t.DeleteRepositoryRequestFilterSensitiveLog=t.CreateRepositoryResponseFilterSensitiveLog=t.RepositoryFilterSensitiveLog=t.RepositoryCatalogDataFilterSensitiveLog=t.CreateRepositoryRequestFilterSensitiveLog=t.TagFilterSensitiveLog=t.RepositoryCatalogDataInputFilterSensitiveLog=t.CompleteLayerUploadResponseFilterSensitiveLog=t.CompleteLayerUploadRequestFilterSensitiveLog=t.BatchDeleteImageResponseFilterSensitiveLog=t.ImageFailureFilterSensitiveLog=t.BatchDeleteImageRequestFilterSensitiveLog=t.ImageIdentifierFilterSensitiveLog=t.BatchCheckLayerAvailabilityResponseFilterSensitiveLog=t.LayerFilterSensitiveLog=t.LayerFailureFilterSensitiveLog=t.BatchCheckLayerAvailabilityRequestFilterSensitiveLog=t.AuthorizationDataFilterSensitiveLog=t.ReferencedImagesNotFoundException=t.LayersNotFoundException=t.InvalidLayerPartException=t.ImageTagAlreadyExistsException=t.ImageDigestDoesNotMatchException=t.ImageAlreadyExistsException=t.RegistryAliasStatus=t.ImageNotFoundException=t.RepositoryPolicyNotFoundException=t.RepositoryNotEmptyException=t.TooManyTagsException=t.RepositoryAlreadyExistsException=t.LimitExceededException=t.InvalidTagParameterException=t.UploadNotFoundException=t.UnsupportedCommandException=t.LayerPartTooSmallException=t.LayerAlreadyExistsException=t.InvalidLayerException=t.EmptyUploadException=t.ImageFailureCode=t.ServerException=t.RepositoryNotFoundException=t.RegistryNotFoundException=t.InvalidParameterException=t.LayerAvailability=t.LayerFailureCode=void 0;t.UploadLayerPartResponseFilterSensitiveLog=t.UploadLayerPartRequestFilterSensitiveLog=t.UntagResourceResponseFilterSensitiveLog=t.UntagResourceRequestFilterSensitiveLog=t.TagResourceResponseFilterSensitiveLog=t.TagResourceRequestFilterSensitiveLog=t.SetRepositoryPolicyResponseFilterSensitiveLog=t.SetRepositoryPolicyRequestFilterSensitiveLog=t.PutRepositoryCatalogDataResponseFilterSensitiveLog=t.PutRepositoryCatalogDataRequestFilterSensitiveLog=t.PutRegistryCatalogDataResponseFilterSensitiveLog=t.PutRegistryCatalogDataRequestFilterSensitiveLog=t.PutImageResponseFilterSensitiveLog=t.PutImageRequestFilterSensitiveLog=t.ListTagsForResourceResponseFilterSensitiveLog=t.ListTagsForResourceRequestFilterSensitiveLog=t.InitiateLayerUploadResponseFilterSensitiveLog=t.InitiateLayerUploadRequestFilterSensitiveLog=t.ImageFilterSensitiveLog=t.GetRepositoryPolicyResponseFilterSensitiveLog=t.GetRepositoryPolicyRequestFilterSensitiveLog=t.GetRepositoryCatalogDataResponseFilterSensitiveLog=t.GetRepositoryCatalogDataRequestFilterSensitiveLog=t.GetRegistryCatalogDataResponseFilterSensitiveLog=t.RegistryCatalogDataFilterSensitiveLog=t.GetRegistryCatalogDataRequestFilterSensitiveLog=t.GetAuthorizationTokenResponseFilterSensitiveLog=t.GetAuthorizationTokenRequestFilterSensitiveLog=t.DescribeRepositoriesResponseFilterSensitiveLog=t.DescribeRepositoriesRequestFilterSensitiveLog=t.DescribeRegistriesResponseFilterSensitiveLog=t.RegistryFilterSensitiveLog=t.RegistryAliasFilterSensitiveLog=t.DescribeRegistriesRequestFilterSensitiveLog=t.DescribeImageTagsResponseFilterSensitiveLog=t.ImageTagDetailFilterSensitiveLog=t.ReferencedImageDetailFilterSensitiveLog=t.DescribeImageTagsRequestFilterSensitiveLog=t.DescribeImagesResponseFilterSensitiveLog=void 0;const o=n(48278);var r;(function(e){e["InvalidLayerDigest"]="InvalidLayerDigest";e["MissingLayerDigest"]="MissingLayerDigest"})(r=t.LayerFailureCode||(t.LayerFailureCode={}));var i;(function(e){e["AVAILABLE"]="AVAILABLE";e["UNAVAILABLE"]="UNAVAILABLE"})(i=t.LayerAvailability||(t.LayerAvailability={}));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;var s;(function(e){e["ImageNotFound"]="ImageNotFound";e["ImageReferencedByManifestList"]="ImageReferencedByManifestList";e["ImageTagDoesNotMatchDigest"]="ImageTagDoesNotMatchDigest";e["InvalidImageDigest"]="InvalidImageDigest";e["InvalidImageTag"]="InvalidImageTag";e["KmsError"]="KmsError";e["MissingDigestAndTag"]="MissingDigestAndTag"})(s=t.ImageFailureCode||(t.ImageFailureCode={}));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 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;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;var a;(function(e){e["ACTIVE"]="ACTIVE";e["PENDING"]="PENDING";e["REJECTED"]="REJECTED"})(a=t.RegistryAliasStatus||(t.RegistryAliasStatus={}));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;const AuthorizationDataFilterSensitiveLog=e=>({...e});t.AuthorizationDataFilterSensitiveLog=AuthorizationDataFilterSensitiveLog;const BatchCheckLayerAvailabilityRequestFilterSensitiveLog=e=>({...e});t.BatchCheckLayerAvailabilityRequestFilterSensitiveLog=BatchCheckLayerAvailabilityRequestFilterSensitiveLog;const LayerFailureFilterSensitiveLog=e=>({...e});t.LayerFailureFilterSensitiveLog=LayerFailureFilterSensitiveLog;const LayerFilterSensitiveLog=e=>({...e});t.LayerFilterSensitiveLog=LayerFilterSensitiveLog;const BatchCheckLayerAvailabilityResponseFilterSensitiveLog=e=>({...e});t.BatchCheckLayerAvailabilityResponseFilterSensitiveLog=BatchCheckLayerAvailabilityResponseFilterSensitiveLog;const ImageIdentifierFilterSensitiveLog=e=>({...e});t.ImageIdentifierFilterSensitiveLog=ImageIdentifierFilterSensitiveLog;const BatchDeleteImageRequestFilterSensitiveLog=e=>({...e});t.BatchDeleteImageRequestFilterSensitiveLog=BatchDeleteImageRequestFilterSensitiveLog;const ImageFailureFilterSensitiveLog=e=>({...e});t.ImageFailureFilterSensitiveLog=ImageFailureFilterSensitiveLog;const BatchDeleteImageResponseFilterSensitiveLog=e=>({...e});t.BatchDeleteImageResponseFilterSensitiveLog=BatchDeleteImageResponseFilterSensitiveLog;const CompleteLayerUploadRequestFilterSensitiveLog=e=>({...e});t.CompleteLayerUploadRequestFilterSensitiveLog=CompleteLayerUploadRequestFilterSensitiveLog;const CompleteLayerUploadResponseFilterSensitiveLog=e=>({...e});t.CompleteLayerUploadResponseFilterSensitiveLog=CompleteLayerUploadResponseFilterSensitiveLog;const RepositoryCatalogDataInputFilterSensitiveLog=e=>({...e});t.RepositoryCatalogDataInputFilterSensitiveLog=RepositoryCatalogDataInputFilterSensitiveLog;const TagFilterSensitiveLog=e=>({...e});t.TagFilterSensitiveLog=TagFilterSensitiveLog;const CreateRepositoryRequestFilterSensitiveLog=e=>({...e});t.CreateRepositoryRequestFilterSensitiveLog=CreateRepositoryRequestFilterSensitiveLog;const RepositoryCatalogDataFilterSensitiveLog=e=>({...e});t.RepositoryCatalogDataFilterSensitiveLog=RepositoryCatalogDataFilterSensitiveLog;const RepositoryFilterSensitiveLog=e=>({...e});t.RepositoryFilterSensitiveLog=RepositoryFilterSensitiveLog;const CreateRepositoryResponseFilterSensitiveLog=e=>({...e});t.CreateRepositoryResponseFilterSensitiveLog=CreateRepositoryResponseFilterSensitiveLog;const DeleteRepositoryRequestFilterSensitiveLog=e=>({...e});t.DeleteRepositoryRequestFilterSensitiveLog=DeleteRepositoryRequestFilterSensitiveLog;const DeleteRepositoryResponseFilterSensitiveLog=e=>({...e});t.DeleteRepositoryResponseFilterSensitiveLog=DeleteRepositoryResponseFilterSensitiveLog;const DeleteRepositoryPolicyRequestFilterSensitiveLog=e=>({...e});t.DeleteRepositoryPolicyRequestFilterSensitiveLog=DeleteRepositoryPolicyRequestFilterSensitiveLog;const DeleteRepositoryPolicyResponseFilterSensitiveLog=e=>({...e});t.DeleteRepositoryPolicyResponseFilterSensitiveLog=DeleteRepositoryPolicyResponseFilterSensitiveLog;const DescribeImagesRequestFilterSensitiveLog=e=>({...e});t.DescribeImagesRequestFilterSensitiveLog=DescribeImagesRequestFilterSensitiveLog;const ImageDetailFilterSensitiveLog=e=>({...e});t.ImageDetailFilterSensitiveLog=ImageDetailFilterSensitiveLog;const DescribeImagesResponseFilterSensitiveLog=e=>({...e});t.DescribeImagesResponseFilterSensitiveLog=DescribeImagesResponseFilterSensitiveLog;const DescribeImageTagsRequestFilterSensitiveLog=e=>({...e});t.DescribeImageTagsRequestFilterSensitiveLog=DescribeImageTagsRequestFilterSensitiveLog;const ReferencedImageDetailFilterSensitiveLog=e=>({...e});t.ReferencedImageDetailFilterSensitiveLog=ReferencedImageDetailFilterSensitiveLog;const ImageTagDetailFilterSensitiveLog=e=>({...e});t.ImageTagDetailFilterSensitiveLog=ImageTagDetailFilterSensitiveLog;const DescribeImageTagsResponseFilterSensitiveLog=e=>({...e});t.DescribeImageTagsResponseFilterSensitiveLog=DescribeImageTagsResponseFilterSensitiveLog;const DescribeRegistriesRequestFilterSensitiveLog=e=>({...e});t.DescribeRegistriesRequestFilterSensitiveLog=DescribeRegistriesRequestFilterSensitiveLog;const RegistryAliasFilterSensitiveLog=e=>({...e});t.RegistryAliasFilterSensitiveLog=RegistryAliasFilterSensitiveLog;const RegistryFilterSensitiveLog=e=>({...e});t.RegistryFilterSensitiveLog=RegistryFilterSensitiveLog;const DescribeRegistriesResponseFilterSensitiveLog=e=>({...e});t.DescribeRegistriesResponseFilterSensitiveLog=DescribeRegistriesResponseFilterSensitiveLog;const DescribeRepositoriesRequestFilterSensitiveLog=e=>({...e});t.DescribeRepositoriesRequestFilterSensitiveLog=DescribeRepositoriesRequestFilterSensitiveLog;const DescribeRepositoriesResponseFilterSensitiveLog=e=>({...e});t.DescribeRepositoriesResponseFilterSensitiveLog=DescribeRepositoriesResponseFilterSensitiveLog;const GetAuthorizationTokenRequestFilterSensitiveLog=e=>({...e});t.GetAuthorizationTokenRequestFilterSensitiveLog=GetAuthorizationTokenRequestFilterSensitiveLog;const GetAuthorizationTokenResponseFilterSensitiveLog=e=>({...e});t.GetAuthorizationTokenResponseFilterSensitiveLog=GetAuthorizationTokenResponseFilterSensitiveLog;const GetRegistryCatalogDataRequestFilterSensitiveLog=e=>({...e});t.GetRegistryCatalogDataRequestFilterSensitiveLog=GetRegistryCatalogDataRequestFilterSensitiveLog;const RegistryCatalogDataFilterSensitiveLog=e=>({...e});t.RegistryCatalogDataFilterSensitiveLog=RegistryCatalogDataFilterSensitiveLog;const GetRegistryCatalogDataResponseFilterSensitiveLog=e=>({...e});t.GetRegistryCatalogDataResponseFilterSensitiveLog=GetRegistryCatalogDataResponseFilterSensitiveLog;const GetRepositoryCatalogDataRequestFilterSensitiveLog=e=>({...e});t.GetRepositoryCatalogDataRequestFilterSensitiveLog=GetRepositoryCatalogDataRequestFilterSensitiveLog;const GetRepositoryCatalogDataResponseFilterSensitiveLog=e=>({...e});t.GetRepositoryCatalogDataResponseFilterSensitiveLog=GetRepositoryCatalogDataResponseFilterSensitiveLog;const GetRepositoryPolicyRequestFilterSensitiveLog=e=>({...e});t.GetRepositoryPolicyRequestFilterSensitiveLog=GetRepositoryPolicyRequestFilterSensitiveLog;const GetRepositoryPolicyResponseFilterSensitiveLog=e=>({...e});t.GetRepositoryPolicyResponseFilterSensitiveLog=GetRepositoryPolicyResponseFilterSensitiveLog;const ImageFilterSensitiveLog=e=>({...e});t.ImageFilterSensitiveLog=ImageFilterSensitiveLog;const InitiateLayerUploadRequestFilterSensitiveLog=e=>({...e});t.InitiateLayerUploadRequestFilterSensitiveLog=InitiateLayerUploadRequestFilterSensitiveLog;const InitiateLayerUploadResponseFilterSensitiveLog=e=>({...e});t.InitiateLayerUploadResponseFilterSensitiveLog=InitiateLayerUploadResponseFilterSensitiveLog;const ListTagsForResourceRequestFilterSensitiveLog=e=>({...e});t.ListTagsForResourceRequestFilterSensitiveLog=ListTagsForResourceRequestFilterSensitiveLog;const ListTagsForResourceResponseFilterSensitiveLog=e=>({...e});t.ListTagsForResourceResponseFilterSensitiveLog=ListTagsForResourceResponseFilterSensitiveLog;const PutImageRequestFilterSensitiveLog=e=>({...e});t.PutImageRequestFilterSensitiveLog=PutImageRequestFilterSensitiveLog;const PutImageResponseFilterSensitiveLog=e=>({...e});t.PutImageResponseFilterSensitiveLog=PutImageResponseFilterSensitiveLog;const PutRegistryCatalogDataRequestFilterSensitiveLog=e=>({...e});t.PutRegistryCatalogDataRequestFilterSensitiveLog=PutRegistryCatalogDataRequestFilterSensitiveLog;const PutRegistryCatalogDataResponseFilterSensitiveLog=e=>({...e});t.PutRegistryCatalogDataResponseFilterSensitiveLog=PutRegistryCatalogDataResponseFilterSensitiveLog;const PutRepositoryCatalogDataRequestFilterSensitiveLog=e=>({...e});t.PutRepositoryCatalogDataRequestFilterSensitiveLog=PutRepositoryCatalogDataRequestFilterSensitiveLog;const PutRepositoryCatalogDataResponseFilterSensitiveLog=e=>({...e});t.PutRepositoryCatalogDataResponseFilterSensitiveLog=PutRepositoryCatalogDataResponseFilterSensitiveLog;const SetRepositoryPolicyRequestFilterSensitiveLog=e=>({...e});t.SetRepositoryPolicyRequestFilterSensitiveLog=SetRepositoryPolicyRequestFilterSensitiveLog;const SetRepositoryPolicyResponseFilterSensitiveLog=e=>({...e});t.SetRepositoryPolicyResponseFilterSensitiveLog=SetRepositoryPolicyResponseFilterSensitiveLog;const TagResourceRequestFilterSensitiveLog=e=>({...e});t.TagResourceRequestFilterSensitiveLog=TagResourceRequestFilterSensitiveLog;const TagResourceResponseFilterSensitiveLog=e=>({...e});t.TagResourceResponseFilterSensitiveLog=TagResourceResponseFilterSensitiveLog;const UntagResourceRequestFilterSensitiveLog=e=>({...e});t.UntagResourceRequestFilterSensitiveLog=UntagResourceRequestFilterSensitiveLog;const UntagResourceResponseFilterSensitiveLog=e=>({...e});t.UntagResourceResponseFilterSensitiveLog=UntagResourceResponseFilterSensitiveLog;const UploadLayerPartRequestFilterSensitiveLog=e=>({...e});t.UploadLayerPartRequestFilterSensitiveLog=UploadLayerPartRequestFilterSensitiveLog;const UploadLayerPartResponseFilterSensitiveLog=e=>({...e});t.UploadLayerPartResponseFilterSensitiveLog=UploadLayerPartResponseFilterSensitiveLog},99634:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateDescribeImageTags=void 0;const o=n(47670);const r=n(86087);const i=n(30608);const makePagedClientRequest=async(e,t,...n)=>await e.send(new o.DescribeImageTagsCommand(t),...n);const makePagedRequest=async(e,t,...n)=>await e.describeImageTags(t,...n);async function*paginateDescribeImageTags(e,t,...n){let o=e.startingToken||undefined;let s=true;let a;while(s){t.nextToken=o;t["maxResults"]=e.pageSize;if(e.client instanceof r.ECRPUBLIC){a=await makePagedRequest(e.client,t,...n)}else if(e.client instanceof i.ECRPUBLICClient){a=await makePagedClientRequest(e.client,t,...n)}else{throw new Error("Invalid client, expected ECRPUBLIC | ECRPUBLICClient")}yield a;const c=o;o=a.nextToken;s=!!(o&&(!e.stopOnSameToken||o!==c))}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(86087);const i=n(30608);const makePagedClientRequest=async(e,t,...n)=>await e.send(new o.DescribeImagesCommand(t),...n);const makePagedRequest=async(e,t,...n)=>await e.describeImages(t,...n);async function*paginateDescribeImages(e,t,...n){let o=e.startingToken||undefined;let s=true;let a;while(s){t.nextToken=o;t["maxResults"]=e.pageSize;if(e.client instanceof r.ECRPUBLIC){a=await makePagedRequest(e.client,t,...n)}else if(e.client instanceof i.ECRPUBLICClient){a=await makePagedClientRequest(e.client,t,...n)}else{throw new Error("Invalid client, expected ECRPUBLIC | ECRPUBLICClient")}yield a;const c=o;o=a.nextToken;s=!!(o&&(!e.stopOnSameToken||o!==c))}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(86087);const i=n(30608);const makePagedClientRequest=async(e,t,...n)=>await e.send(new o.DescribeRegistriesCommand(t),...n);const makePagedRequest=async(e,t,...n)=>await e.describeRegistries(t,...n);async function*paginateDescribeRegistries(e,t,...n){let o=e.startingToken||undefined;let s=true;let a;while(s){t.nextToken=o;t["maxResults"]=e.pageSize;if(e.client instanceof r.ECRPUBLIC){a=await makePagedRequest(e.client,t,...n)}else if(e.client instanceof i.ECRPUBLICClient){a=await makePagedClientRequest(e.client,t,...n)}else{throw new Error("Invalid client, expected ECRPUBLIC | ECRPUBLICClient")}yield a;const c=o;o=a.nextToken;s=!!(o&&(!e.stopOnSameToken||o!==c))}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(86087);const i=n(30608);const makePagedClientRequest=async(e,t,...n)=>await e.send(new o.DescribeRepositoriesCommand(t),...n);const makePagedRequest=async(e,t,...n)=>await e.describeRepositories(t,...n);async function*paginateDescribeRepositories(e,t,...n){let o=e.startingToken||undefined;let s=true;let a;while(s){t.nextToken=o;t["maxResults"]=e.pageSize;if(e.client instanceof r.ECRPUBLIC){a=await makePagedRequest(e.client,t,...n)}else if(e.client instanceof i.ECRPUBLICClient){a=await makePagedClientRequest(e.client,t,...n)}else{throw new Error("Invalid client, expected ECRPUBLIC | ECRPUBLICClient")}yield a;const c=o;o=a.nextToken;s=!!(o&&(!e.stopOnSameToken||o!==c))}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.deserializeAws_json1_1UploadLayerPartCommand=t.deserializeAws_json1_1UntagResourceCommand=t.deserializeAws_json1_1TagResourceCommand=t.deserializeAws_json1_1SetRepositoryPolicyCommand=t.deserializeAws_json1_1PutRepositoryCatalogDataCommand=t.deserializeAws_json1_1PutRegistryCatalogDataCommand=t.deserializeAws_json1_1PutImageCommand=t.deserializeAws_json1_1ListTagsForResourceCommand=t.deserializeAws_json1_1InitiateLayerUploadCommand=t.deserializeAws_json1_1GetRepositoryPolicyCommand=t.deserializeAws_json1_1GetRepositoryCatalogDataCommand=t.deserializeAws_json1_1GetRegistryCatalogDataCommand=t.deserializeAws_json1_1GetAuthorizationTokenCommand=t.deserializeAws_json1_1DescribeRepositoriesCommand=t.deserializeAws_json1_1DescribeRegistriesCommand=t.deserializeAws_json1_1DescribeImageTagsCommand=t.deserializeAws_json1_1DescribeImagesCommand=t.deserializeAws_json1_1DeleteRepositoryPolicyCommand=t.deserializeAws_json1_1DeleteRepositoryCommand=t.deserializeAws_json1_1CreateRepositoryCommand=t.deserializeAws_json1_1CompleteLayerUploadCommand=t.deserializeAws_json1_1BatchDeleteImageCommand=t.deserializeAws_json1_1BatchCheckLayerAvailabilityCommand=t.serializeAws_json1_1UploadLayerPartCommand=t.serializeAws_json1_1UntagResourceCommand=t.serializeAws_json1_1TagResourceCommand=t.serializeAws_json1_1SetRepositoryPolicyCommand=t.serializeAws_json1_1PutRepositoryCatalogDataCommand=t.serializeAws_json1_1PutRegistryCatalogDataCommand=t.serializeAws_json1_1PutImageCommand=t.serializeAws_json1_1ListTagsForResourceCommand=t.serializeAws_json1_1InitiateLayerUploadCommand=t.serializeAws_json1_1GetRepositoryPolicyCommand=t.serializeAws_json1_1GetRepositoryCatalogDataCommand=t.serializeAws_json1_1GetRegistryCatalogDataCommand=t.serializeAws_json1_1GetAuthorizationTokenCommand=t.serializeAws_json1_1DescribeRepositoriesCommand=t.serializeAws_json1_1DescribeRegistriesCommand=t.serializeAws_json1_1DescribeImageTagsCommand=t.serializeAws_json1_1DescribeImagesCommand=t.serializeAws_json1_1DeleteRepositoryPolicyCommand=t.serializeAws_json1_1DeleteRepositoryCommand=t.serializeAws_json1_1CreateRepositoryCommand=t.serializeAws_json1_1CompleteLayerUploadCommand=t.serializeAws_json1_1BatchDeleteImageCommand=t.serializeAws_json1_1BatchCheckLayerAvailabilityCommand=void 0;const o=n(70223);const r=n(4963);const i=n(48278);const s=n(38818);const serializeAws_json1_1BatchCheckLayerAvailabilityCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.BatchCheckLayerAvailability"};let o;o=JSON.stringify(serializeAws_json1_1BatchCheckLayerAvailabilityRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1BatchCheckLayerAvailabilityCommand=serializeAws_json1_1BatchCheckLayerAvailabilityCommand;const serializeAws_json1_1BatchDeleteImageCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.BatchDeleteImage"};let o;o=JSON.stringify(serializeAws_json1_1BatchDeleteImageRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1BatchDeleteImageCommand=serializeAws_json1_1BatchDeleteImageCommand;const serializeAws_json1_1CompleteLayerUploadCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.CompleteLayerUpload"};let o;o=JSON.stringify(serializeAws_json1_1CompleteLayerUploadRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1CompleteLayerUploadCommand=serializeAws_json1_1CompleteLayerUploadCommand;const serializeAws_json1_1CreateRepositoryCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.CreateRepository"};let o;o=JSON.stringify(serializeAws_json1_1CreateRepositoryRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1CreateRepositoryCommand=serializeAws_json1_1CreateRepositoryCommand;const serializeAws_json1_1DeleteRepositoryCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.DeleteRepository"};let o;o=JSON.stringify(serializeAws_json1_1DeleteRepositoryRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1DeleteRepositoryCommand=serializeAws_json1_1DeleteRepositoryCommand;const serializeAws_json1_1DeleteRepositoryPolicyCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.DeleteRepositoryPolicy"};let o;o=JSON.stringify(serializeAws_json1_1DeleteRepositoryPolicyRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1DeleteRepositoryPolicyCommand=serializeAws_json1_1DeleteRepositoryPolicyCommand;const serializeAws_json1_1DescribeImagesCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.DescribeImages"};let o;o=JSON.stringify(serializeAws_json1_1DescribeImagesRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1DescribeImagesCommand=serializeAws_json1_1DescribeImagesCommand;const serializeAws_json1_1DescribeImageTagsCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.DescribeImageTags"};let o;o=JSON.stringify(serializeAws_json1_1DescribeImageTagsRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1DescribeImageTagsCommand=serializeAws_json1_1DescribeImageTagsCommand;const serializeAws_json1_1DescribeRegistriesCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.DescribeRegistries"};let o;o=JSON.stringify(serializeAws_json1_1DescribeRegistriesRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1DescribeRegistriesCommand=serializeAws_json1_1DescribeRegistriesCommand;const serializeAws_json1_1DescribeRepositoriesCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.DescribeRepositories"};let o;o=JSON.stringify(serializeAws_json1_1DescribeRepositoriesRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1DescribeRepositoriesCommand=serializeAws_json1_1DescribeRepositoriesCommand;const serializeAws_json1_1GetAuthorizationTokenCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.GetAuthorizationToken"};let o;o=JSON.stringify(serializeAws_json1_1GetAuthorizationTokenRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1GetAuthorizationTokenCommand=serializeAws_json1_1GetAuthorizationTokenCommand;const serializeAws_json1_1GetRegistryCatalogDataCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.GetRegistryCatalogData"};let o;o=JSON.stringify(serializeAws_json1_1GetRegistryCatalogDataRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1GetRegistryCatalogDataCommand=serializeAws_json1_1GetRegistryCatalogDataCommand;const serializeAws_json1_1GetRepositoryCatalogDataCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.GetRepositoryCatalogData"};let o;o=JSON.stringify(serializeAws_json1_1GetRepositoryCatalogDataRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1GetRepositoryCatalogDataCommand=serializeAws_json1_1GetRepositoryCatalogDataCommand;const serializeAws_json1_1GetRepositoryPolicyCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.GetRepositoryPolicy"};let o;o=JSON.stringify(serializeAws_json1_1GetRepositoryPolicyRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1GetRepositoryPolicyCommand=serializeAws_json1_1GetRepositoryPolicyCommand;const serializeAws_json1_1InitiateLayerUploadCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.InitiateLayerUpload"};let o;o=JSON.stringify(serializeAws_json1_1InitiateLayerUploadRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1InitiateLayerUploadCommand=serializeAws_json1_1InitiateLayerUploadCommand;const serializeAws_json1_1ListTagsForResourceCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.ListTagsForResource"};let o;o=JSON.stringify(serializeAws_json1_1ListTagsForResourceRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1ListTagsForResourceCommand=serializeAws_json1_1ListTagsForResourceCommand;const serializeAws_json1_1PutImageCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.PutImage"};let o;o=JSON.stringify(serializeAws_json1_1PutImageRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1PutImageCommand=serializeAws_json1_1PutImageCommand;const serializeAws_json1_1PutRegistryCatalogDataCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.PutRegistryCatalogData"};let o;o=JSON.stringify(serializeAws_json1_1PutRegistryCatalogDataRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1PutRegistryCatalogDataCommand=serializeAws_json1_1PutRegistryCatalogDataCommand;const serializeAws_json1_1PutRepositoryCatalogDataCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.PutRepositoryCatalogData"};let o;o=JSON.stringify(serializeAws_json1_1PutRepositoryCatalogDataRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1PutRepositoryCatalogDataCommand=serializeAws_json1_1PutRepositoryCatalogDataCommand;const serializeAws_json1_1SetRepositoryPolicyCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.SetRepositoryPolicy"};let o;o=JSON.stringify(serializeAws_json1_1SetRepositoryPolicyRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1SetRepositoryPolicyCommand=serializeAws_json1_1SetRepositoryPolicyCommand;const serializeAws_json1_1TagResourceCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.TagResource"};let o;o=JSON.stringify(serializeAws_json1_1TagResourceRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1TagResourceCommand=serializeAws_json1_1TagResourceCommand;const serializeAws_json1_1UntagResourceCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.UntagResource"};let o;o=JSON.stringify(serializeAws_json1_1UntagResourceRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1UntagResourceCommand=serializeAws_json1_1UntagResourceCommand;const serializeAws_json1_1UploadLayerPartCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.UploadLayerPart"};let o;o=JSON.stringify(serializeAws_json1_1UploadLayerPartRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1UploadLayerPartCommand=serializeAws_json1_1UploadLayerPartCommand;const deserializeAws_json1_1BatchCheckLayerAvailabilityCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1BatchCheckLayerAvailabilityCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1BatchCheckLayerAvailabilityResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1BatchCheckLayerAvailabilityCommand=deserializeAws_json1_1BatchCheckLayerAvailabilityCommand;const deserializeAws_json1_1BatchCheckLayerAvailabilityCommandError=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 deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RegistryNotFoundException":case"com.amazonaws.ecrpublic#RegistryNotFoundException":throw await deserializeAws_json1_1RegistryNotFoundExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRPUBLICServiceException,errorCode:o})}};const deserializeAws_json1_1BatchDeleteImageCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1BatchDeleteImageCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1BatchDeleteImageResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1BatchDeleteImageCommand=deserializeAws_json1_1BatchDeleteImageCommand;const deserializeAws_json1_1BatchDeleteImageCommandError=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 deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRPUBLICServiceException,errorCode:o})}};const deserializeAws_json1_1CompleteLayerUploadCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1CompleteLayerUploadCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1CompleteLayerUploadResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1CompleteLayerUploadCommand=deserializeAws_json1_1CompleteLayerUploadCommand;const deserializeAws_json1_1CompleteLayerUploadCommandError=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 deserializeAws_json1_1EmptyUploadExceptionResponse(n,t);case"InvalidLayerException":case"com.amazonaws.ecrpublic#InvalidLayerException":throw await deserializeAws_json1_1InvalidLayerExceptionResponse(n,t);case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"LayerAlreadyExistsException":case"com.amazonaws.ecrpublic#LayerAlreadyExistsException":throw await deserializeAws_json1_1LayerAlreadyExistsExceptionResponse(n,t);case"LayerPartTooSmallException":case"com.amazonaws.ecrpublic#LayerPartTooSmallException":throw await deserializeAws_json1_1LayerPartTooSmallExceptionResponse(n,t);case"RegistryNotFoundException":case"com.amazonaws.ecrpublic#RegistryNotFoundException":throw await deserializeAws_json1_1RegistryNotFoundExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(n,t);case"UploadNotFoundException":case"com.amazonaws.ecrpublic#UploadNotFoundException":throw await deserializeAws_json1_1UploadNotFoundExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRPUBLICServiceException,errorCode:o})}};const deserializeAws_json1_1CreateRepositoryCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1CreateRepositoryCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1CreateRepositoryResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1CreateRepositoryCommand=deserializeAws_json1_1CreateRepositoryCommand;const deserializeAws_json1_1CreateRepositoryCommandError=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 deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"InvalidTagParameterException":case"com.amazonaws.ecrpublic#InvalidTagParameterException":throw await deserializeAws_json1_1InvalidTagParameterExceptionResponse(n,t);case"LimitExceededException":case"com.amazonaws.ecrpublic#LimitExceededException":throw await deserializeAws_json1_1LimitExceededExceptionResponse(n,t);case"RepositoryAlreadyExistsException":case"com.amazonaws.ecrpublic#RepositoryAlreadyExistsException":throw await deserializeAws_json1_1RepositoryAlreadyExistsExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"TooManyTagsException":case"com.amazonaws.ecrpublic#TooManyTagsException":throw await deserializeAws_json1_1TooManyTagsExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRPUBLICServiceException,errorCode:o})}};const deserializeAws_json1_1DeleteRepositoryCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DeleteRepositoryCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1DeleteRepositoryResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1DeleteRepositoryCommand=deserializeAws_json1_1DeleteRepositoryCommand;const deserializeAws_json1_1DeleteRepositoryCommandError=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 deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RepositoryNotEmptyException":case"com.amazonaws.ecrpublic#RepositoryNotEmptyException":throw await deserializeAws_json1_1RepositoryNotEmptyExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRPUBLICServiceException,errorCode:o})}};const deserializeAws_json1_1DeleteRepositoryPolicyCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DeleteRepositoryPolicyCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1DeleteRepositoryPolicyResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1DeleteRepositoryPolicyCommand=deserializeAws_json1_1DeleteRepositoryPolicyCommand;const deserializeAws_json1_1DeleteRepositoryPolicyCommandError=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 deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"RepositoryPolicyNotFoundException":case"com.amazonaws.ecrpublic#RepositoryPolicyNotFoundException":throw await deserializeAws_json1_1RepositoryPolicyNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRPUBLICServiceException,errorCode:o})}};const deserializeAws_json1_1DescribeImagesCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DescribeImagesCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1DescribeImagesResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1DescribeImagesCommand=deserializeAws_json1_1DescribeImagesCommand;const deserializeAws_json1_1DescribeImagesCommandError=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 deserializeAws_json1_1ImageNotFoundExceptionResponse(n,t);case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRPUBLICServiceException,errorCode:o})}};const deserializeAws_json1_1DescribeImageTagsCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DescribeImageTagsCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1DescribeImageTagsResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1DescribeImageTagsCommand=deserializeAws_json1_1DescribeImageTagsCommand;const deserializeAws_json1_1DescribeImageTagsCommandError=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 deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRPUBLICServiceException,errorCode:o})}};const deserializeAws_json1_1DescribeRegistriesCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DescribeRegistriesCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1DescribeRegistriesResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1DescribeRegistriesCommand=deserializeAws_json1_1DescribeRegistriesCommand;const deserializeAws_json1_1DescribeRegistriesCommandError=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 deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRPUBLICServiceException,errorCode:o})}};const deserializeAws_json1_1DescribeRepositoriesCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DescribeRepositoriesCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1DescribeRepositoriesResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1DescribeRepositoriesCommand=deserializeAws_json1_1DescribeRepositoriesCommand;const deserializeAws_json1_1DescribeRepositoriesCommandError=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 deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRPUBLICServiceException,errorCode:o})}};const deserializeAws_json1_1GetAuthorizationTokenCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1GetAuthorizationTokenCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1GetAuthorizationTokenResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1GetAuthorizationTokenCommand=deserializeAws_json1_1GetAuthorizationTokenCommand;const deserializeAws_json1_1GetAuthorizationTokenCommandError=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 deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRPUBLICServiceException,errorCode:o})}};const deserializeAws_json1_1GetRegistryCatalogDataCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1GetRegistryCatalogDataCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1GetRegistryCatalogDataResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1GetRegistryCatalogDataCommand=deserializeAws_json1_1GetRegistryCatalogDataCommand;const deserializeAws_json1_1GetRegistryCatalogDataCommandError=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 deserializeAws_json1_1ServerExceptionResponse(n,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRPUBLICServiceException,errorCode:o})}};const deserializeAws_json1_1GetRepositoryCatalogDataCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1GetRepositoryCatalogDataCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1GetRepositoryCatalogDataResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1GetRepositoryCatalogDataCommand=deserializeAws_json1_1GetRepositoryCatalogDataCommand;const deserializeAws_json1_1GetRepositoryCatalogDataCommandError=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 deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRPUBLICServiceException,errorCode:o})}};const deserializeAws_json1_1GetRepositoryPolicyCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1GetRepositoryPolicyCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1GetRepositoryPolicyResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1GetRepositoryPolicyCommand=deserializeAws_json1_1GetRepositoryPolicyCommand;const deserializeAws_json1_1GetRepositoryPolicyCommandError=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 deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"RepositoryPolicyNotFoundException":case"com.amazonaws.ecrpublic#RepositoryPolicyNotFoundException":throw await deserializeAws_json1_1RepositoryPolicyNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRPUBLICServiceException,errorCode:o})}};const deserializeAws_json1_1InitiateLayerUploadCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1InitiateLayerUploadCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1InitiateLayerUploadResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1InitiateLayerUploadCommand=deserializeAws_json1_1InitiateLayerUploadCommand;const deserializeAws_json1_1InitiateLayerUploadCommandError=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 deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RegistryNotFoundException":case"com.amazonaws.ecrpublic#RegistryNotFoundException":throw await deserializeAws_json1_1RegistryNotFoundExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRPUBLICServiceException,errorCode:o})}};const deserializeAws_json1_1ListTagsForResourceCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1ListTagsForResourceCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1ListTagsForResourceResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1ListTagsForResourceCommand=deserializeAws_json1_1ListTagsForResourceCommand;const deserializeAws_json1_1ListTagsForResourceCommandError=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 deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRPUBLICServiceException,errorCode:o})}};const deserializeAws_json1_1PutImageCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1PutImageCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1PutImageResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1PutImageCommand=deserializeAws_json1_1PutImageCommand;const deserializeAws_json1_1PutImageCommandError=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 deserializeAws_json1_1ImageAlreadyExistsExceptionResponse(n,t);case"ImageDigestDoesNotMatchException":case"com.amazonaws.ecrpublic#ImageDigestDoesNotMatchException":throw await deserializeAws_json1_1ImageDigestDoesNotMatchExceptionResponse(n,t);case"ImageTagAlreadyExistsException":case"com.amazonaws.ecrpublic#ImageTagAlreadyExistsException":throw await deserializeAws_json1_1ImageTagAlreadyExistsExceptionResponse(n,t);case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"LayersNotFoundException":case"com.amazonaws.ecrpublic#LayersNotFoundException":throw await deserializeAws_json1_1LayersNotFoundExceptionResponse(n,t);case"LimitExceededException":case"com.amazonaws.ecrpublic#LimitExceededException":throw await deserializeAws_json1_1LimitExceededExceptionResponse(n,t);case"ReferencedImagesNotFoundException":case"com.amazonaws.ecrpublic#ReferencedImagesNotFoundException":throw await deserializeAws_json1_1ReferencedImagesNotFoundExceptionResponse(n,t);case"RegistryNotFoundException":case"com.amazonaws.ecrpublic#RegistryNotFoundException":throw await deserializeAws_json1_1RegistryNotFoundExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRPUBLICServiceException,errorCode:o})}};const deserializeAws_json1_1PutRegistryCatalogDataCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1PutRegistryCatalogDataCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1PutRegistryCatalogDataResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1PutRegistryCatalogDataCommand=deserializeAws_json1_1PutRegistryCatalogDataCommand;const deserializeAws_json1_1PutRegistryCatalogDataCommandError=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 deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRPUBLICServiceException,errorCode:o})}};const deserializeAws_json1_1PutRepositoryCatalogDataCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1PutRepositoryCatalogDataCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1PutRepositoryCatalogDataResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1PutRepositoryCatalogDataCommand=deserializeAws_json1_1PutRepositoryCatalogDataCommand;const deserializeAws_json1_1PutRepositoryCatalogDataCommandError=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 deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRPUBLICServiceException,errorCode:o})}};const deserializeAws_json1_1SetRepositoryPolicyCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1SetRepositoryPolicyCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1SetRepositoryPolicyResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1SetRepositoryPolicyCommand=deserializeAws_json1_1SetRepositoryPolicyCommand;const deserializeAws_json1_1SetRepositoryPolicyCommandError=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 deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRPUBLICServiceException,errorCode:o})}};const deserializeAws_json1_1TagResourceCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1TagResourceCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1TagResourceResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1TagResourceCommand=deserializeAws_json1_1TagResourceCommand;const deserializeAws_json1_1TagResourceCommandError=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 deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"InvalidTagParameterException":case"com.amazonaws.ecrpublic#InvalidTagParameterException":throw await deserializeAws_json1_1InvalidTagParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"TooManyTagsException":case"com.amazonaws.ecrpublic#TooManyTagsException":throw await deserializeAws_json1_1TooManyTagsExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRPUBLICServiceException,errorCode:o})}};const deserializeAws_json1_1UntagResourceCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1UntagResourceCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1UntagResourceResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1UntagResourceCommand=deserializeAws_json1_1UntagResourceCommand;const deserializeAws_json1_1UntagResourceCommandError=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 deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"InvalidTagParameterException":case"com.amazonaws.ecrpublic#InvalidTagParameterException":throw await deserializeAws_json1_1InvalidTagParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"TooManyTagsException":case"com.amazonaws.ecrpublic#TooManyTagsException":throw await deserializeAws_json1_1TooManyTagsExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRPUBLICServiceException,errorCode:o})}};const deserializeAws_json1_1UploadLayerPartCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1UploadLayerPartCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1UploadLayerPartResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1UploadLayerPartCommand=deserializeAws_json1_1UploadLayerPartCommand;const deserializeAws_json1_1UploadLayerPartCommandError=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 deserializeAws_json1_1InvalidLayerPartExceptionResponse(n,t);case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"LimitExceededException":case"com.amazonaws.ecrpublic#LimitExceededException":throw await deserializeAws_json1_1LimitExceededExceptionResponse(n,t);case"RegistryNotFoundException":case"com.amazonaws.ecrpublic#RegistryNotFoundException":throw await deserializeAws_json1_1RegistryNotFoundExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(n,t);case"UploadNotFoundException":case"com.amazonaws.ecrpublic#UploadNotFoundException":throw await deserializeAws_json1_1UploadNotFoundExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRPUBLICServiceException,errorCode:o})}};const deserializeAws_json1_1EmptyUploadExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1EmptyUploadException(n,t);const i=new s.EmptyUploadException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_json1_1ImageAlreadyExistsExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1ImageAlreadyExistsException(n,t);const i=new s.ImageAlreadyExistsException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_json1_1ImageDigestDoesNotMatchExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1ImageDigestDoesNotMatchException(n,t);const i=new s.ImageDigestDoesNotMatchException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_json1_1ImageNotFoundExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1ImageNotFoundException(n,t);const i=new s.ImageNotFoundException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_json1_1ImageTagAlreadyExistsExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1ImageTagAlreadyExistsException(n,t);const i=new s.ImageTagAlreadyExistsException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_json1_1InvalidLayerExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1InvalidLayerException(n,t);const i=new s.InvalidLayerException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_json1_1InvalidLayerPartExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1InvalidLayerPartException(n,t);const i=new s.InvalidLayerPartException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_json1_1InvalidParameterExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1InvalidParameterException(n,t);const i=new s.InvalidParameterException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_json1_1InvalidTagParameterExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1InvalidTagParameterException(n,t);const i=new s.InvalidTagParameterException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_json1_1LayerAlreadyExistsExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1LayerAlreadyExistsException(n,t);const i=new s.LayerAlreadyExistsException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_json1_1LayerPartTooSmallExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1LayerPartTooSmallException(n,t);const i=new s.LayerPartTooSmallException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_json1_1LayersNotFoundExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1LayersNotFoundException(n,t);const i=new s.LayersNotFoundException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_json1_1LimitExceededExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1LimitExceededException(n,t);const i=new s.LimitExceededException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_json1_1ReferencedImagesNotFoundExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1ReferencedImagesNotFoundException(n,t);const i=new s.ReferencedImagesNotFoundException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_json1_1RegistryNotFoundExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1RegistryNotFoundException(n,t);const i=new s.RegistryNotFoundException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_json1_1RepositoryAlreadyExistsExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1RepositoryAlreadyExistsException(n,t);const i=new s.RepositoryAlreadyExistsException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_json1_1RepositoryNotEmptyExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1RepositoryNotEmptyException(n,t);const i=new s.RepositoryNotEmptyException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_json1_1RepositoryNotFoundExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1RepositoryNotFoundException(n,t);const i=new s.RepositoryNotFoundException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_json1_1RepositoryPolicyNotFoundExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1RepositoryPolicyNotFoundException(n,t);const i=new s.RepositoryPolicyNotFoundException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_json1_1ServerExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1ServerException(n,t);const i=new s.ServerException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_json1_1TooManyTagsExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1TooManyTagsException(n,t);const i=new s.TooManyTagsException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_json1_1UnsupportedCommandExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1UnsupportedCommandException(n,t);const i=new s.UnsupportedCommandException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_json1_1UploadNotFoundExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1UploadNotFoundException(n,t);const i=new s.UploadNotFoundException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const serializeAws_json1_1ArchitectureList=(e,t)=>e.filter((e=>e!=null)).map((e=>e));const serializeAws_json1_1BatchCheckLayerAvailabilityRequest=(e,t)=>({...e.layerDigests!=null&&{layerDigests:serializeAws_json1_1BatchedOperationLayerDigestList(e.layerDigests,t)},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1BatchDeleteImageRequest=(e,t)=>({...e.imageIds!=null&&{imageIds:serializeAws_json1_1ImageIdentifierList(e.imageIds,t)},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1BatchedOperationLayerDigestList=(e,t)=>e.filter((e=>e!=null)).map((e=>e));const serializeAws_json1_1CompleteLayerUploadRequest=(e,t)=>({...e.layerDigests!=null&&{layerDigests:serializeAws_json1_1LayerDigestList(e.layerDigests,t)},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName},...e.uploadId!=null&&{uploadId:e.uploadId}});const serializeAws_json1_1CreateRepositoryRequest=(e,t)=>({...e.catalogData!=null&&{catalogData:serializeAws_json1_1RepositoryCatalogDataInput(e.catalogData,t)},...e.repositoryName!=null&&{repositoryName:e.repositoryName},...e.tags!=null&&{tags:serializeAws_json1_1TagList(e.tags,t)}});const serializeAws_json1_1DeleteRepositoryPolicyRequest=(e,t)=>({...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1DeleteRepositoryRequest=(e,t)=>({...e.force!=null&&{force:e.force},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1DescribeImagesRequest=(e,t)=>({...e.imageIds!=null&&{imageIds:serializeAws_json1_1ImageIdentifierList(e.imageIds,t)},...e.maxResults!=null&&{maxResults:e.maxResults},...e.nextToken!=null&&{nextToken:e.nextToken},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1DescribeImageTagsRequest=(e,t)=>({...e.maxResults!=null&&{maxResults:e.maxResults},...e.nextToken!=null&&{nextToken:e.nextToken},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1DescribeRegistriesRequest=(e,t)=>({...e.maxResults!=null&&{maxResults:e.maxResults},...e.nextToken!=null&&{nextToken:e.nextToken}});const serializeAws_json1_1DescribeRepositoriesRequest=(e,t)=>({...e.maxResults!=null&&{maxResults:e.maxResults},...e.nextToken!=null&&{nextToken:e.nextToken},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryNames!=null&&{repositoryNames:serializeAws_json1_1RepositoryNameList(e.repositoryNames,t)}});const serializeAws_json1_1GetAuthorizationTokenRequest=(e,t)=>({});const serializeAws_json1_1GetRegistryCatalogDataRequest=(e,t)=>({});const serializeAws_json1_1GetRepositoryCatalogDataRequest=(e,t)=>({...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1GetRepositoryPolicyRequest=(e,t)=>({...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1ImageIdentifier=(e,t)=>({...e.imageDigest!=null&&{imageDigest:e.imageDigest},...e.imageTag!=null&&{imageTag:e.imageTag}});const serializeAws_json1_1ImageIdentifierList=(e,t)=>e.filter((e=>e!=null)).map((e=>serializeAws_json1_1ImageIdentifier(e,t)));const serializeAws_json1_1InitiateLayerUploadRequest=(e,t)=>({...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1LayerDigestList=(e,t)=>e.filter((e=>e!=null)).map((e=>e));const serializeAws_json1_1ListTagsForResourceRequest=(e,t)=>({...e.resourceArn!=null&&{resourceArn:e.resourceArn}});const serializeAws_json1_1OperatingSystemList=(e,t)=>e.filter((e=>e!=null)).map((e=>e));const serializeAws_json1_1PutImageRequest=(e,t)=>({...e.imageDigest!=null&&{imageDigest:e.imageDigest},...e.imageManifest!=null&&{imageManifest:e.imageManifest},...e.imageManifestMediaType!=null&&{imageManifestMediaType:e.imageManifestMediaType},...e.imageTag!=null&&{imageTag:e.imageTag},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1PutRegistryCatalogDataRequest=(e,t)=>({...e.displayName!=null&&{displayName:e.displayName}});const serializeAws_json1_1PutRepositoryCatalogDataRequest=(e,t)=>({...e.catalogData!=null&&{catalogData:serializeAws_json1_1RepositoryCatalogDataInput(e.catalogData,t)},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1RepositoryCatalogDataInput=(e,t)=>({...e.aboutText!=null&&{aboutText:e.aboutText},...e.architectures!=null&&{architectures:serializeAws_json1_1ArchitectureList(e.architectures,t)},...e.description!=null&&{description:e.description},...e.logoImageBlob!=null&&{logoImageBlob:t.base64Encoder(e.logoImageBlob)},...e.operatingSystems!=null&&{operatingSystems:serializeAws_json1_1OperatingSystemList(e.operatingSystems,t)},...e.usageText!=null&&{usageText:e.usageText}});const serializeAws_json1_1RepositoryNameList=(e,t)=>e.filter((e=>e!=null)).map((e=>e));const serializeAws_json1_1SetRepositoryPolicyRequest=(e,t)=>({...e.force!=null&&{force:e.force},...e.policyText!=null&&{policyText:e.policyText},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1Tag=(e,t)=>({...e.Key!=null&&{Key:e.Key},...e.Value!=null&&{Value:e.Value}});const serializeAws_json1_1TagKeyList=(e,t)=>e.filter((e=>e!=null)).map((e=>e));const serializeAws_json1_1TagList=(e,t)=>e.filter((e=>e!=null)).map((e=>serializeAws_json1_1Tag(e,t)));const serializeAws_json1_1TagResourceRequest=(e,t)=>({...e.resourceArn!=null&&{resourceArn:e.resourceArn},...e.tags!=null&&{tags:serializeAws_json1_1TagList(e.tags,t)}});const serializeAws_json1_1UntagResourceRequest=(e,t)=>({...e.resourceArn!=null&&{resourceArn:e.resourceArn},...e.tagKeys!=null&&{tagKeys:serializeAws_json1_1TagKeyList(e.tagKeys,t)}});const serializeAws_json1_1UploadLayerPartRequest=(e,t)=>({...e.layerPartBlob!=null&&{layerPartBlob:t.base64Encoder(e.layerPartBlob)},...e.partFirstByte!=null&&{partFirstByte:e.partFirstByte},...e.partLastByte!=null&&{partLastByte:e.partLastByte},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName},...e.uploadId!=null&&{uploadId:e.uploadId}});const deserializeAws_json1_1ArchitectureList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return(0,r.expectString)(e)}));return n};const deserializeAws_json1_1AuthorizationData=(e,t)=>({authorizationToken:(0,r.expectString)(e.authorizationToken),expiresAt:e.expiresAt!=null?(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e.expiresAt))):undefined});const deserializeAws_json1_1BatchCheckLayerAvailabilityResponse=(e,t)=>({failures:e.failures!=null?deserializeAws_json1_1LayerFailureList(e.failures,t):undefined,layers:e.layers!=null?deserializeAws_json1_1LayerList(e.layers,t):undefined});const deserializeAws_json1_1BatchDeleteImageResponse=(e,t)=>({failures:e.failures!=null?deserializeAws_json1_1ImageFailureList(e.failures,t):undefined,imageIds:e.imageIds!=null?deserializeAws_json1_1ImageIdentifierList(e.imageIds,t):undefined});const deserializeAws_json1_1CompleteLayerUploadResponse=(e,t)=>({layerDigest:(0,r.expectString)(e.layerDigest),registryId:(0,r.expectString)(e.registryId),repositoryName:(0,r.expectString)(e.repositoryName),uploadId:(0,r.expectString)(e.uploadId)});const deserializeAws_json1_1CreateRepositoryResponse=(e,t)=>({catalogData:e.catalogData!=null?deserializeAws_json1_1RepositoryCatalogData(e.catalogData,t):undefined,repository:e.repository!=null?deserializeAws_json1_1Repository(e.repository,t):undefined});const deserializeAws_json1_1DeleteRepositoryPolicyResponse=(e,t)=>({policyText:(0,r.expectString)(e.policyText),registryId:(0,r.expectString)(e.registryId),repositoryName:(0,r.expectString)(e.repositoryName)});const deserializeAws_json1_1DeleteRepositoryResponse=(e,t)=>({repository:e.repository!=null?deserializeAws_json1_1Repository(e.repository,t):undefined});const deserializeAws_json1_1DescribeImagesResponse=(e,t)=>({imageDetails:e.imageDetails!=null?deserializeAws_json1_1ImageDetailList(e.imageDetails,t):undefined,nextToken:(0,r.expectString)(e.nextToken)});const deserializeAws_json1_1DescribeImageTagsResponse=(e,t)=>({imageTagDetails:e.imageTagDetails!=null?deserializeAws_json1_1ImageTagDetailList(e.imageTagDetails,t):undefined,nextToken:(0,r.expectString)(e.nextToken)});const deserializeAws_json1_1DescribeRegistriesResponse=(e,t)=>({nextToken:(0,r.expectString)(e.nextToken),registries:e.registries!=null?deserializeAws_json1_1RegistryList(e.registries,t):undefined});const deserializeAws_json1_1DescribeRepositoriesResponse=(e,t)=>({nextToken:(0,r.expectString)(e.nextToken),repositories:e.repositories!=null?deserializeAws_json1_1RepositoryList(e.repositories,t):undefined});const deserializeAws_json1_1EmptyUploadException=(e,t)=>({message:(0,r.expectString)(e.message)});const deserializeAws_json1_1GetAuthorizationTokenResponse=(e,t)=>({authorizationData:e.authorizationData!=null?deserializeAws_json1_1AuthorizationData(e.authorizationData,t):undefined});const deserializeAws_json1_1GetRegistryCatalogDataResponse=(e,t)=>({registryCatalogData:e.registryCatalogData!=null?deserializeAws_json1_1RegistryCatalogData(e.registryCatalogData,t):undefined});const deserializeAws_json1_1GetRepositoryCatalogDataResponse=(e,t)=>({catalogData:e.catalogData!=null?deserializeAws_json1_1RepositoryCatalogData(e.catalogData,t):undefined});const deserializeAws_json1_1GetRepositoryPolicyResponse=(e,t)=>({policyText:(0,r.expectString)(e.policyText),registryId:(0,r.expectString)(e.registryId),repositoryName:(0,r.expectString)(e.repositoryName)});const deserializeAws_json1_1Image=(e,t)=>({imageId:e.imageId!=null?deserializeAws_json1_1ImageIdentifier(e.imageId,t):undefined,imageManifest:(0,r.expectString)(e.imageManifest),imageManifestMediaType:(0,r.expectString)(e.imageManifestMediaType),registryId:(0,r.expectString)(e.registryId),repositoryName:(0,r.expectString)(e.repositoryName)});const deserializeAws_json1_1ImageAlreadyExistsException=(e,t)=>({message:(0,r.expectString)(e.message)});const deserializeAws_json1_1ImageDetail=(e,t)=>({artifactMediaType:(0,r.expectString)(e.artifactMediaType),imageDigest:(0,r.expectString)(e.imageDigest),imageManifestMediaType:(0,r.expectString)(e.imageManifestMediaType),imagePushedAt:e.imagePushedAt!=null?(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e.imagePushedAt))):undefined,imageSizeInBytes:(0,r.expectLong)(e.imageSizeInBytes),imageTags:e.imageTags!=null?deserializeAws_json1_1ImageTagList(e.imageTags,t):undefined,registryId:(0,r.expectString)(e.registryId),repositoryName:(0,r.expectString)(e.repositoryName)});const deserializeAws_json1_1ImageDetailList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1ImageDetail(e,t)}));return n};const deserializeAws_json1_1ImageDigestDoesNotMatchException=(e,t)=>({message:(0,r.expectString)(e.message)});const deserializeAws_json1_1ImageFailure=(e,t)=>({failureCode:(0,r.expectString)(e.failureCode),failureReason:(0,r.expectString)(e.failureReason),imageId:e.imageId!=null?deserializeAws_json1_1ImageIdentifier(e.imageId,t):undefined});const deserializeAws_json1_1ImageFailureList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1ImageFailure(e,t)}));return n};const deserializeAws_json1_1ImageIdentifier=(e,t)=>({imageDigest:(0,r.expectString)(e.imageDigest),imageTag:(0,r.expectString)(e.imageTag)});const deserializeAws_json1_1ImageIdentifierList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1ImageIdentifier(e,t)}));return n};const deserializeAws_json1_1ImageNotFoundException=(e,t)=>({message:(0,r.expectString)(e.message)});const deserializeAws_json1_1ImageTagAlreadyExistsException=(e,t)=>({message:(0,r.expectString)(e.message)});const deserializeAws_json1_1ImageTagDetail=(e,t)=>({createdAt:e.createdAt!=null?(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e.createdAt))):undefined,imageDetail:e.imageDetail!=null?deserializeAws_json1_1ReferencedImageDetail(e.imageDetail,t):undefined,imageTag:(0,r.expectString)(e.imageTag)});const deserializeAws_json1_1ImageTagDetailList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1ImageTagDetail(e,t)}));return n};const deserializeAws_json1_1ImageTagList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return(0,r.expectString)(e)}));return n};const deserializeAws_json1_1InitiateLayerUploadResponse=(e,t)=>({partSize:(0,r.expectLong)(e.partSize),uploadId:(0,r.expectString)(e.uploadId)});const deserializeAws_json1_1InvalidLayerException=(e,t)=>({message:(0,r.expectString)(e.message)});const deserializeAws_json1_1InvalidLayerPartException=(e,t)=>({lastValidByteReceived:(0,r.expectLong)(e.lastValidByteReceived),message:(0,r.expectString)(e.message),registryId:(0,r.expectString)(e.registryId),repositoryName:(0,r.expectString)(e.repositoryName),uploadId:(0,r.expectString)(e.uploadId)});const deserializeAws_json1_1InvalidParameterException=(e,t)=>({message:(0,r.expectString)(e.message)});const deserializeAws_json1_1InvalidTagParameterException=(e,t)=>({message:(0,r.expectString)(e.message)});const deserializeAws_json1_1Layer=(e,t)=>({layerAvailability:(0,r.expectString)(e.layerAvailability),layerDigest:(0,r.expectString)(e.layerDigest),layerSize:(0,r.expectLong)(e.layerSize),mediaType:(0,r.expectString)(e.mediaType)});const deserializeAws_json1_1LayerAlreadyExistsException=(e,t)=>({message:(0,r.expectString)(e.message)});const deserializeAws_json1_1LayerFailure=(e,t)=>({failureCode:(0,r.expectString)(e.failureCode),failureReason:(0,r.expectString)(e.failureReason),layerDigest:(0,r.expectString)(e.layerDigest)});const deserializeAws_json1_1LayerFailureList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1LayerFailure(e,t)}));return n};const deserializeAws_json1_1LayerList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1Layer(e,t)}));return n};const deserializeAws_json1_1LayerPartTooSmallException=(e,t)=>({message:(0,r.expectString)(e.message)});const deserializeAws_json1_1LayersNotFoundException=(e,t)=>({message:(0,r.expectString)(e.message)});const deserializeAws_json1_1LimitExceededException=(e,t)=>({message:(0,r.expectString)(e.message)});const deserializeAws_json1_1ListTagsForResourceResponse=(e,t)=>({tags:e.tags!=null?deserializeAws_json1_1TagList(e.tags,t):undefined});const deserializeAws_json1_1OperatingSystemList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return(0,r.expectString)(e)}));return n};const deserializeAws_json1_1PutImageResponse=(e,t)=>({image:e.image!=null?deserializeAws_json1_1Image(e.image,t):undefined});const deserializeAws_json1_1PutRegistryCatalogDataResponse=(e,t)=>({registryCatalogData:e.registryCatalogData!=null?deserializeAws_json1_1RegistryCatalogData(e.registryCatalogData,t):undefined});const deserializeAws_json1_1PutRepositoryCatalogDataResponse=(e,t)=>({catalogData:e.catalogData!=null?deserializeAws_json1_1RepositoryCatalogData(e.catalogData,t):undefined});const deserializeAws_json1_1ReferencedImageDetail=(e,t)=>({artifactMediaType:(0,r.expectString)(e.artifactMediaType),imageDigest:(0,r.expectString)(e.imageDigest),imageManifestMediaType:(0,r.expectString)(e.imageManifestMediaType),imagePushedAt:e.imagePushedAt!=null?(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e.imagePushedAt))):undefined,imageSizeInBytes:(0,r.expectLong)(e.imageSizeInBytes)});const deserializeAws_json1_1ReferencedImagesNotFoundException=(e,t)=>({message:(0,r.expectString)(e.message)});const deserializeAws_json1_1Registry=(e,t)=>({aliases:e.aliases!=null?deserializeAws_json1_1RegistryAliasList(e.aliases,t):undefined,registryArn:(0,r.expectString)(e.registryArn),registryId:(0,r.expectString)(e.registryId),registryUri:(0,r.expectString)(e.registryUri),verified:(0,r.expectBoolean)(e.verified)});const deserializeAws_json1_1RegistryAlias=(e,t)=>({defaultRegistryAlias:(0,r.expectBoolean)(e.defaultRegistryAlias),name:(0,r.expectString)(e.name),primaryRegistryAlias:(0,r.expectBoolean)(e.primaryRegistryAlias),status:(0,r.expectString)(e.status)});const deserializeAws_json1_1RegistryAliasList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1RegistryAlias(e,t)}));return n};const deserializeAws_json1_1RegistryCatalogData=(e,t)=>({displayName:(0,r.expectString)(e.displayName)});const deserializeAws_json1_1RegistryList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1Registry(e,t)}));return n};const deserializeAws_json1_1RegistryNotFoundException=(e,t)=>({message:(0,r.expectString)(e.message)});const deserializeAws_json1_1Repository=(e,t)=>({createdAt:e.createdAt!=null?(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e.createdAt))):undefined,registryId:(0,r.expectString)(e.registryId),repositoryArn:(0,r.expectString)(e.repositoryArn),repositoryName:(0,r.expectString)(e.repositoryName),repositoryUri:(0,r.expectString)(e.repositoryUri)});const deserializeAws_json1_1RepositoryAlreadyExistsException=(e,t)=>({message:(0,r.expectString)(e.message)});const deserializeAws_json1_1RepositoryCatalogData=(e,t)=>({aboutText:(0,r.expectString)(e.aboutText),architectures:e.architectures!=null?deserializeAws_json1_1ArchitectureList(e.architectures,t):undefined,description:(0,r.expectString)(e.description),logoUrl:(0,r.expectString)(e.logoUrl),marketplaceCertified:(0,r.expectBoolean)(e.marketplaceCertified),operatingSystems:e.operatingSystems!=null?deserializeAws_json1_1OperatingSystemList(e.operatingSystems,t):undefined,usageText:(0,r.expectString)(e.usageText)});const deserializeAws_json1_1RepositoryList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1Repository(e,t)}));return n};const deserializeAws_json1_1RepositoryNotEmptyException=(e,t)=>({message:(0,r.expectString)(e.message)});const deserializeAws_json1_1RepositoryNotFoundException=(e,t)=>({message:(0,r.expectString)(e.message)});const deserializeAws_json1_1RepositoryPolicyNotFoundException=(e,t)=>({message:(0,r.expectString)(e.message)});const deserializeAws_json1_1ServerException=(e,t)=>({message:(0,r.expectString)(e.message)});const deserializeAws_json1_1SetRepositoryPolicyResponse=(e,t)=>({policyText:(0,r.expectString)(e.policyText),registryId:(0,r.expectString)(e.registryId),repositoryName:(0,r.expectString)(e.repositoryName)});const deserializeAws_json1_1Tag=(e,t)=>({Key:(0,r.expectString)(e.Key),Value:(0,r.expectString)(e.Value)});const deserializeAws_json1_1TagList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1Tag(e,t)}));return n};const deserializeAws_json1_1TagResourceResponse=(e,t)=>({});const deserializeAws_json1_1TooManyTagsException=(e,t)=>({message:(0,r.expectString)(e.message)});const deserializeAws_json1_1UnsupportedCommandException=(e,t)=>({message:(0,r.expectString)(e.message)});const deserializeAws_json1_1UntagResourceResponse=(e,t)=>({});const deserializeAws_json1_1UploadLayerPartResponse=(e,t)=>({lastByteReceived:(0,r.expectLong)(e.lastByteReceived),registryId:(0,r.expectString)(e.registryId),repositoryName:(0,r.expectString)(e.repositoryName),uploadId:(0,r.expectString)(e.uploadId)});const deserializeAws_json1_1UploadNotFoundException=(e,t)=>({message:(0,r.expectString)(e.message)});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 collectBody=(e=new Uint8Array,t)=>{if(e instanceof Uint8Array){return Promise.resolve(e)}return t.streamCollector(e)||Promise.resolve(new Uint8Array)};const collectBodyString=(e,t)=>collectBody(e,t).then((e=>t.utf8Encoder(e)));const buildHttpRpcRequest=async(e,t,n,r,i)=>{const{hostname:s,protocol:a="https",port:c,path:l}=await e.endpoint();const u={protocol:a,hostname:s,port:c,method:"POST",path:l.endsWith("/")?l.slice(0,-1)+n:l+n,headers:t};if(r!==undefined){u.hostname=r}if(i!==undefined){u.body=i}return new o.HttpRequest(u)};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 i=n(52209);const s=n(56153);const a=n(75531);const c=n(97442);const l=n(96064);const u=n(87684);const d=n(68805);const p=n(74147);const m=n(99395);const g=n(98095);const f=n(66278);const y=n(76746);const h=n(4963);const E=n(74243);const S=n(4963);const getRuntimeConfig=e=>{(0,S.emitWarningIfUnsupportedVersion)(process.version);const t=(0,E.resolveDefaultsModeConfig)(e);const defaultConfigProvider=()=>t().then(h.loadConfigsForDefaultMode);const n=(0,y.getRuntimeConfig)(e);return{...n,...e,runtime:"node",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??p.calculateBodyLength,credentialDefaultProvider:e?.credentialDefaultProvider??(0,i.decorateDefaultCredentialProvider)(a.defaultProvider),defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,g.defaultUserAgent)({serviceId:n.serviceId,clientVersion:r.default.version}),maxAttempts:e?.maxAttempts??(0,u.loadConfig)(l.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:e?.region??(0,u.loadConfig)(s.NODE_REGION_CONFIG_OPTIONS,s.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:e?.requestHandler??new d.NodeHttpHandler(defaultConfigProvider),retryMode:e?.retryMode??(0,u.loadConfig)({...l.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await defaultConfigProvider()).retryMode||m.DEFAULT_RETRY_MODE}),sha256:e?.sha256??c.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??d.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,u.loadConfig)(s.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:e?.useFipsEndpoint??(0,u.loadConfig)(s.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:e?.utf8Decoder??f.fromUtf8,utf8Encoder:e?.utf8Encoder??f.toUtf8}};t.getRuntimeConfig=getRuntimeConfig},76746:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const o=n(4963);const r=n(2992);const i=n(97727);const s=n(87377);const getRuntimeConfig=e=>({apiVersion:"2020-10-30",base64Decoder:e?.base64Decoder??i.fromBase64,base64Encoder:e?.base64Encoder??i.toBase64,disableHostPrefix:e?.disableHostPrefix??false,endpointProvider:e?.endpointProvider??s.defaultEndpointResolver,logger:e?.logger??new o.NoOpLogger,serviceId:e?.serviceId??"ECR PUBLIC",urlParser:e?.urlParser??r.parseUrl});t.getRuntimeConfig=getRuntimeConfig},59167:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ECR=void 0;const o=n(63804);const r=n(15511);const i=n(78859);const s=n(79728);const a=n(49003);const c=n(71454);const l=n(5074);const u=n(48981);const d=n(83793);const p=n(31424);const m=n(88651);const g=n(36828);const f=n(39694);const y=n(72987);const h=n(95353);const E=n(31484);const S=n(26166);const v=n(21200);const w=n(35828);const _=n(51401);const x=n(48469);const P=n(17006);const C=n(33685);const R=n(82741);const b=n(46330);const I=n(6936);const A=n(3854);const T=n(97403);const D=n(66844);const O=n(87935);const N=n(66495);const F=n(33854);const L=n(97928);const k=n(29529);const z=n(13350);const j=n(78300);const M=n(47984);const U=n(35905);const q=n(82665);const $=n(37225);const G=n(55825);const B=n(83391);class ECR extends B.ECRClient{batchCheckLayerAvailability(e,t,n){const r=new o.BatchCheckLayerAvailabilityCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},n)}else{return this.send(r,t)}}batchDeleteImage(e,t,n){const o=new r.BatchDeleteImageCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}batchGetImage(e,t,n){const o=new i.BatchGetImageCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}batchGetRepositoryScanningConfiguration(e,t,n){const o=new s.BatchGetRepositoryScanningConfigurationCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}completeLayerUpload(e,t,n){const o=new a.CompleteLayerUploadCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}createPullThroughCacheRule(e,t,n){const o=new c.CreatePullThroughCacheRuleCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}createRepository(e,t,n){const o=new l.CreateRepositoryCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}deleteLifecyclePolicy(e,t,n){const o=new u.DeleteLifecyclePolicyCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}deletePullThroughCacheRule(e,t,n){const o=new d.DeletePullThroughCacheRuleCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}deleteRegistryPolicy(e,t,n){const o=new p.DeleteRegistryPolicyCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}deleteRepository(e,t,n){const o=new m.DeleteRepositoryCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}deleteRepositoryPolicy(e,t,n){const o=new g.DeleteRepositoryPolicyCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}describeImageReplicationStatus(e,t,n){const o=new f.DescribeImageReplicationStatusCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}describeImages(e,t,n){const o=new h.DescribeImagesCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}describeImageScanFindings(e,t,n){const o=new y.DescribeImageScanFindingsCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}describePullThroughCacheRules(e,t,n){const o=new E.DescribePullThroughCacheRulesCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}describeRegistry(e,t,n){const o=new S.DescribeRegistryCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}describeRepositories(e,t,n){const o=new v.DescribeRepositoriesCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}getAuthorizationToken(e,t,n){const o=new w.GetAuthorizationTokenCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}getDownloadUrlForLayer(e,t,n){const o=new _.GetDownloadUrlForLayerCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}getLifecyclePolicy(e,t,n){const o=new x.GetLifecyclePolicyCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}getLifecyclePolicyPreview(e,t,n){const o=new P.GetLifecyclePolicyPreviewCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}getRegistryPolicy(e,t,n){const o=new C.GetRegistryPolicyCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}getRegistryScanningConfiguration(e,t,n){const o=new R.GetRegistryScanningConfigurationCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}getRepositoryPolicy(e,t,n){const o=new b.GetRepositoryPolicyCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}initiateLayerUpload(e,t,n){const o=new I.InitiateLayerUploadCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}listImages(e,t,n){const o=new A.ListImagesCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}listTagsForResource(e,t,n){const o=new T.ListTagsForResourceCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}putImage(e,t,n){const o=new D.PutImageCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}putImageScanningConfiguration(e,t,n){const o=new O.PutImageScanningConfigurationCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}putImageTagMutability(e,t,n){const o=new N.PutImageTagMutabilityCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}putLifecyclePolicy(e,t,n){const o=new F.PutLifecyclePolicyCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}putRegistryPolicy(e,t,n){const o=new L.PutRegistryPolicyCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}putRegistryScanningConfiguration(e,t,n){const o=new k.PutRegistryScanningConfigurationCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}putReplicationConfiguration(e,t,n){const o=new z.PutReplicationConfigurationCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}setRepositoryPolicy(e,t,n){const o=new j.SetRepositoryPolicyCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}startImageScan(e,t,n){const o=new M.StartImageScanCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}startLifecyclePolicyPreview(e,t,n){const o=new U.StartLifecyclePolicyPreviewCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}tagResource(e,t,n){const o=new q.TagResourceCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}untagResource(e,t,n){const o=new $.UntagResourceCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}uploadLayerPart(e,t,n){const o=new G.UploadLayerPartCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}}t.ECR=ECR},83391:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ECRClient=void 0;const o=n(56153);const r=n(42245);const i=n(5497);const s=n(22545);const a=n(20014);const c=n(85525);const l=n(96064);const u=n(14935);const d=n(64688);const p=n(4963);const m=n(49729);const g=n(869);class ECRClient extends p.Client{constructor(e){const t=(0,g.getRuntimeConfig)(e);const n=(0,m.resolveClientEndpointParameters)(t);const p=(0,o.resolveRegionConfig)(n);const f=(0,i.resolveEndpointConfig)(p);const y=(0,l.resolveRetryConfig)(f);const h=(0,s.resolveHostHeaderConfig)(y);const E=(0,u.resolveAwsAuthConfig)(h);const S=(0,d.resolveUserAgentConfig)(E);super(S);this.config=S;this.middlewareStack.use((0,l.getRetryPlugin)(this.config));this.middlewareStack.use((0,r.getContentLengthPlugin)(this.config));this.middlewareStack.use((0,s.getHostHeaderPlugin)(this.config));this.middlewareStack.use((0,a.getLoggerPlugin)(this.config));this.middlewareStack.use((0,c.getRecursionDetectionPlugin)(this.config));this.middlewareStack.use((0,u.getAwsAuthPlugin)(this.config));this.middlewareStack.use((0,d.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}}t.ECRClient=ECRClient},63804:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BatchCheckLayerAvailabilityCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(79088);const a=n(56704);class BatchCheckLayerAvailabilityCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="BatchCheckLayerAvailabilityCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.BatchCheckLayerAvailabilityRequestFilterSensitiveLog,outputFilterSensitiveLog:s.BatchCheckLayerAvailabilityResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1BatchCheckLayerAvailabilityCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1BatchCheckLayerAvailabilityCommand)(e,t)}}t.BatchCheckLayerAvailabilityCommand=BatchCheckLayerAvailabilityCommand},15511:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BatchDeleteImageCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(79088);const a=n(56704);class BatchDeleteImageCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="BatchDeleteImageCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.BatchDeleteImageRequestFilterSensitiveLog,outputFilterSensitiveLog:s.BatchDeleteImageResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1BatchDeleteImageCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1BatchDeleteImageCommand)(e,t)}}t.BatchDeleteImageCommand=BatchDeleteImageCommand},78859:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BatchGetImageCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(79088);const a=n(56704);class BatchGetImageCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="BatchGetImageCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.BatchGetImageRequestFilterSensitiveLog,outputFilterSensitiveLog:s.BatchGetImageResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1BatchGetImageCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1BatchGetImageCommand)(e,t)}}t.BatchGetImageCommand=BatchGetImageCommand},79728:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BatchGetRepositoryScanningConfigurationCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(79088);const a=n(56704);class BatchGetRepositoryScanningConfigurationCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="BatchGetRepositoryScanningConfigurationCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.BatchGetRepositoryScanningConfigurationRequestFilterSensitiveLog,outputFilterSensitiveLog:s.BatchGetRepositoryScanningConfigurationResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand)(e,t)}}t.BatchGetRepositoryScanningConfigurationCommand=BatchGetRepositoryScanningConfigurationCommand},49003:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CompleteLayerUploadCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(79088);const a=n(56704);class CompleteLayerUploadCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="CompleteLayerUploadCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.CompleteLayerUploadRequestFilterSensitiveLog,outputFilterSensitiveLog:s.CompleteLayerUploadResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1CompleteLayerUploadCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1CompleteLayerUploadCommand)(e,t)}}t.CompleteLayerUploadCommand=CompleteLayerUploadCommand},71454:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CreatePullThroughCacheRuleCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(79088);const a=n(56704);class CreatePullThroughCacheRuleCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="CreatePullThroughCacheRuleCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.CreatePullThroughCacheRuleRequestFilterSensitiveLog,outputFilterSensitiveLog:s.CreatePullThroughCacheRuleResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1CreatePullThroughCacheRuleCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1CreatePullThroughCacheRuleCommand)(e,t)}}t.CreatePullThroughCacheRuleCommand=CreatePullThroughCacheRuleCommand},5074:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CreateRepositoryCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(79088);const a=n(56704);class CreateRepositoryCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="CreateRepositoryCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.CreateRepositoryRequestFilterSensitiveLog,outputFilterSensitiveLog:s.CreateRepositoryResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1CreateRepositoryCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1CreateRepositoryCommand)(e,t)}}t.CreateRepositoryCommand=CreateRepositoryCommand},48981:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DeleteLifecyclePolicyCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(79088);const a=n(56704);class DeleteLifecyclePolicyCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="DeleteLifecyclePolicyCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.DeleteLifecyclePolicyRequestFilterSensitiveLog,outputFilterSensitiveLog:s.DeleteLifecyclePolicyResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1DeleteLifecyclePolicyCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1DeleteLifecyclePolicyCommand)(e,t)}}t.DeleteLifecyclePolicyCommand=DeleteLifecyclePolicyCommand},83793:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DeletePullThroughCacheRuleCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(79088);const a=n(56704);class DeletePullThroughCacheRuleCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="DeletePullThroughCacheRuleCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.DeletePullThroughCacheRuleRequestFilterSensitiveLog,outputFilterSensitiveLog:s.DeletePullThroughCacheRuleResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1DeletePullThroughCacheRuleCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1DeletePullThroughCacheRuleCommand)(e,t)}}t.DeletePullThroughCacheRuleCommand=DeletePullThroughCacheRuleCommand},31424:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DeleteRegistryPolicyCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(79088);const a=n(56704);class DeleteRegistryPolicyCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="DeleteRegistryPolicyCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.DeleteRegistryPolicyRequestFilterSensitiveLog,outputFilterSensitiveLog:s.DeleteRegistryPolicyResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1DeleteRegistryPolicyCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1DeleteRegistryPolicyCommand)(e,t)}}t.DeleteRegistryPolicyCommand=DeleteRegistryPolicyCommand},88651:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DeleteRepositoryCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(79088);const a=n(56704);class DeleteRepositoryCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="DeleteRepositoryCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.DeleteRepositoryRequestFilterSensitiveLog,outputFilterSensitiveLog:s.DeleteRepositoryResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1DeleteRepositoryCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1DeleteRepositoryCommand)(e,t)}}t.DeleteRepositoryCommand=DeleteRepositoryCommand},36828:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DeleteRepositoryPolicyCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(79088);const a=n(56704);class DeleteRepositoryPolicyCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="DeleteRepositoryPolicyCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.DeleteRepositoryPolicyRequestFilterSensitiveLog,outputFilterSensitiveLog:s.DeleteRepositoryPolicyResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1DeleteRepositoryPolicyCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1DeleteRepositoryPolicyCommand)(e,t)}}t.DeleteRepositoryPolicyCommand=DeleteRepositoryPolicyCommand},39694:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribeImageReplicationStatusCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(79088);const a=n(56704);class DescribeImageReplicationStatusCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="DescribeImageReplicationStatusCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.DescribeImageReplicationStatusRequestFilterSensitiveLog,outputFilterSensitiveLog:s.DescribeImageReplicationStatusResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1DescribeImageReplicationStatusCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1DescribeImageReplicationStatusCommand)(e,t)}}t.DescribeImageReplicationStatusCommand=DescribeImageReplicationStatusCommand},72987:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribeImageScanFindingsCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(79088);const a=n(56704);class DescribeImageScanFindingsCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="DescribeImageScanFindingsCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.DescribeImageScanFindingsRequestFilterSensitiveLog,outputFilterSensitiveLog:s.DescribeImageScanFindingsResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1DescribeImageScanFindingsCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1DescribeImageScanFindingsCommand)(e,t)}}t.DescribeImageScanFindingsCommand=DescribeImageScanFindingsCommand},95353:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribeImagesCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(79088);const a=n(56704);class DescribeImagesCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="DescribeImagesCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.DescribeImagesRequestFilterSensitiveLog,outputFilterSensitiveLog:s.DescribeImagesResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1DescribeImagesCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1DescribeImagesCommand)(e,t)}}t.DescribeImagesCommand=DescribeImagesCommand},31484:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribePullThroughCacheRulesCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(79088);const a=n(56704);class DescribePullThroughCacheRulesCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="DescribePullThroughCacheRulesCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.DescribePullThroughCacheRulesRequestFilterSensitiveLog,outputFilterSensitiveLog:s.DescribePullThroughCacheRulesResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1DescribePullThroughCacheRulesCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1DescribePullThroughCacheRulesCommand)(e,t)}}t.DescribePullThroughCacheRulesCommand=DescribePullThroughCacheRulesCommand},26166:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribeRegistryCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(79088);const a=n(56704);class DescribeRegistryCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="DescribeRegistryCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.DescribeRegistryRequestFilterSensitiveLog,outputFilterSensitiveLog:s.DescribeRegistryResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1DescribeRegistryCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1DescribeRegistryCommand)(e,t)}}t.DescribeRegistryCommand=DescribeRegistryCommand},21200:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribeRepositoriesCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(79088);const a=n(56704);class DescribeRepositoriesCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="DescribeRepositoriesCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.DescribeRepositoriesRequestFilterSensitiveLog,outputFilterSensitiveLog:s.DescribeRepositoriesResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1DescribeRepositoriesCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1DescribeRepositoriesCommand)(e,t)}}t.DescribeRepositoriesCommand=DescribeRepositoriesCommand},35828:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetAuthorizationTokenCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(79088);const a=n(56704);class GetAuthorizationTokenCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="GetAuthorizationTokenCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.GetAuthorizationTokenRequestFilterSensitiveLog,outputFilterSensitiveLog:s.GetAuthorizationTokenResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1GetAuthorizationTokenCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1GetAuthorizationTokenCommand)(e,t)}}t.GetAuthorizationTokenCommand=GetAuthorizationTokenCommand},51401:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetDownloadUrlForLayerCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(79088);const a=n(56704);class GetDownloadUrlForLayerCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="GetDownloadUrlForLayerCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.GetDownloadUrlForLayerRequestFilterSensitiveLog,outputFilterSensitiveLog:s.GetDownloadUrlForLayerResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1GetDownloadUrlForLayerCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1GetDownloadUrlForLayerCommand)(e,t)}}t.GetDownloadUrlForLayerCommand=GetDownloadUrlForLayerCommand},48469:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetLifecyclePolicyCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(79088);const a=n(56704);class GetLifecyclePolicyCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="GetLifecyclePolicyCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.GetLifecyclePolicyRequestFilterSensitiveLog,outputFilterSensitiveLog:s.GetLifecyclePolicyResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1GetLifecyclePolicyCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1GetLifecyclePolicyCommand)(e,t)}}t.GetLifecyclePolicyCommand=GetLifecyclePolicyCommand},17006:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetLifecyclePolicyPreviewCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(79088);const a=n(56704);class GetLifecyclePolicyPreviewCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="GetLifecyclePolicyPreviewCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.GetLifecyclePolicyPreviewRequestFilterSensitiveLog,outputFilterSensitiveLog:s.GetLifecyclePolicyPreviewResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1GetLifecyclePolicyPreviewCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1GetLifecyclePolicyPreviewCommand)(e,t)}}t.GetLifecyclePolicyPreviewCommand=GetLifecyclePolicyPreviewCommand},33685:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetRegistryPolicyCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(79088);const a=n(56704);class GetRegistryPolicyCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="GetRegistryPolicyCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.GetRegistryPolicyRequestFilterSensitiveLog,outputFilterSensitiveLog:s.GetRegistryPolicyResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1GetRegistryPolicyCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1GetRegistryPolicyCommand)(e,t)}}t.GetRegistryPolicyCommand=GetRegistryPolicyCommand},82741:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetRegistryScanningConfigurationCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(79088);const a=n(56704);class GetRegistryScanningConfigurationCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="GetRegistryScanningConfigurationCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.GetRegistryScanningConfigurationRequestFilterSensitiveLog,outputFilterSensitiveLog:s.GetRegistryScanningConfigurationResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1GetRegistryScanningConfigurationCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1GetRegistryScanningConfigurationCommand)(e,t)}}t.GetRegistryScanningConfigurationCommand=GetRegistryScanningConfigurationCommand},46330:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetRepositoryPolicyCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(79088);const a=n(56704);class GetRepositoryPolicyCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="GetRepositoryPolicyCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.GetRepositoryPolicyRequestFilterSensitiveLog,outputFilterSensitiveLog:s.GetRepositoryPolicyResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1GetRepositoryPolicyCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1GetRepositoryPolicyCommand)(e,t)}}t.GetRepositoryPolicyCommand=GetRepositoryPolicyCommand},6936:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.InitiateLayerUploadCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(79088);const a=n(56704);class InitiateLayerUploadCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="InitiateLayerUploadCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.InitiateLayerUploadRequestFilterSensitiveLog,outputFilterSensitiveLog:s.InitiateLayerUploadResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1InitiateLayerUploadCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1InitiateLayerUploadCommand)(e,t)}}t.InitiateLayerUploadCommand=InitiateLayerUploadCommand},3854:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ListImagesCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(79088);const a=n(56704);class ListImagesCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="ListImagesCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.ListImagesRequestFilterSensitiveLog,outputFilterSensitiveLog:s.ListImagesResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1ListImagesCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1ListImagesCommand)(e,t)}}t.ListImagesCommand=ListImagesCommand},97403:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ListTagsForResourceCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(79088);const a=n(56704);class ListTagsForResourceCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="ListTagsForResourceCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.ListTagsForResourceRequestFilterSensitiveLog,outputFilterSensitiveLog:s.ListTagsForResourceResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1ListTagsForResourceCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1ListTagsForResourceCommand)(e,t)}}t.ListTagsForResourceCommand=ListTagsForResourceCommand},66844:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutImageCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(79088);const a=n(56704);class PutImageCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="PutImageCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.PutImageRequestFilterSensitiveLog,outputFilterSensitiveLog:s.PutImageResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1PutImageCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1PutImageCommand)(e,t)}}t.PutImageCommand=PutImageCommand},87935:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutImageScanningConfigurationCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(79088);const a=n(56704);class PutImageScanningConfigurationCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="PutImageScanningConfigurationCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.PutImageScanningConfigurationRequestFilterSensitiveLog,outputFilterSensitiveLog:s.PutImageScanningConfigurationResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1PutImageScanningConfigurationCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1PutImageScanningConfigurationCommand)(e,t)}}t.PutImageScanningConfigurationCommand=PutImageScanningConfigurationCommand},66495:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutImageTagMutabilityCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(79088);const a=n(56704);class PutImageTagMutabilityCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="PutImageTagMutabilityCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.PutImageTagMutabilityRequestFilterSensitiveLog,outputFilterSensitiveLog:s.PutImageTagMutabilityResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1PutImageTagMutabilityCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1PutImageTagMutabilityCommand)(e,t)}}t.PutImageTagMutabilityCommand=PutImageTagMutabilityCommand},33854:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutLifecyclePolicyCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(79088);const a=n(56704);class PutLifecyclePolicyCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="PutLifecyclePolicyCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.PutLifecyclePolicyRequestFilterSensitiveLog,outputFilterSensitiveLog:s.PutLifecyclePolicyResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1PutLifecyclePolicyCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1PutLifecyclePolicyCommand)(e,t)}}t.PutLifecyclePolicyCommand=PutLifecyclePolicyCommand},97928:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutRegistryPolicyCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(79088);const a=n(56704);class PutRegistryPolicyCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="PutRegistryPolicyCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.PutRegistryPolicyRequestFilterSensitiveLog,outputFilterSensitiveLog:s.PutRegistryPolicyResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1PutRegistryPolicyCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1PutRegistryPolicyCommand)(e,t)}}t.PutRegistryPolicyCommand=PutRegistryPolicyCommand},29529:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutRegistryScanningConfigurationCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(79088);const a=n(56704);class PutRegistryScanningConfigurationCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="PutRegistryScanningConfigurationCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.PutRegistryScanningConfigurationRequestFilterSensitiveLog,outputFilterSensitiveLog:s.PutRegistryScanningConfigurationResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1PutRegistryScanningConfigurationCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1PutRegistryScanningConfigurationCommand)(e,t)}}t.PutRegistryScanningConfigurationCommand=PutRegistryScanningConfigurationCommand},13350:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutReplicationConfigurationCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(79088);const a=n(56704);class PutReplicationConfigurationCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="PutReplicationConfigurationCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.PutReplicationConfigurationRequestFilterSensitiveLog,outputFilterSensitiveLog:s.PutReplicationConfigurationResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1PutReplicationConfigurationCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1PutReplicationConfigurationCommand)(e,t)}}t.PutReplicationConfigurationCommand=PutReplicationConfigurationCommand},78300:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SetRepositoryPolicyCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(79088);const a=n(56704);class SetRepositoryPolicyCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="SetRepositoryPolicyCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.SetRepositoryPolicyRequestFilterSensitiveLog,outputFilterSensitiveLog:s.SetRepositoryPolicyResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1SetRepositoryPolicyCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1SetRepositoryPolicyCommand)(e,t)}}t.SetRepositoryPolicyCommand=SetRepositoryPolicyCommand},47984:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StartImageScanCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(79088);const a=n(56704);class StartImageScanCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="StartImageScanCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.StartImageScanRequestFilterSensitiveLog,outputFilterSensitiveLog:s.StartImageScanResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1StartImageScanCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1StartImageScanCommand)(e,t)}}t.StartImageScanCommand=StartImageScanCommand},35905:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StartLifecyclePolicyPreviewCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(79088);const a=n(56704);class StartLifecyclePolicyPreviewCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="StartLifecyclePolicyPreviewCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.StartLifecyclePolicyPreviewRequestFilterSensitiveLog,outputFilterSensitiveLog:s.StartLifecyclePolicyPreviewResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1StartLifecyclePolicyPreviewCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1StartLifecyclePolicyPreviewCommand)(e,t)}}t.StartLifecyclePolicyPreviewCommand=StartLifecyclePolicyPreviewCommand},82665:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TagResourceCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(79088);const a=n(56704);class TagResourceCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="TagResourceCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.TagResourceRequestFilterSensitiveLog,outputFilterSensitiveLog:s.TagResourceResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1TagResourceCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1TagResourceCommand)(e,t)}}t.TagResourceCommand=TagResourceCommand},37225:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UntagResourceCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(79088);const a=n(56704);class UntagResourceCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="UntagResourceCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.UntagResourceRequestFilterSensitiveLog,outputFilterSensitiveLog:s.UntagResourceResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1UntagResourceCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1UntagResourceCommand)(e,t)}}t.UntagResourceCommand=UntagResourceCommand},55825:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UploadLayerPartCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(79088);const a=n(56704);class UploadLayerPartCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="ECRClient";const l="UploadLayerPartCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.UploadLayerPartRequestFilterSensitiveLog,outputFilterSensitiveLog:s.UploadLayerPartResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_json1_1UploadLayerPartCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_json1_1UploadLayerPartCommand)(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(13350),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(39205);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;t.ruleSet={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:false,documentation:"The AWS region used to dispatch the request.",type:"String"},UseDualStack:{builtIn:"AWS::UseDualStack",required:true,default:false,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:"Boolean"},UseFIPS:{builtIn:"AWS::UseFIPS",required:true,default:false,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:"Boolean"},Endpoint:{builtIn:"SDK::Endpoint",required:false,documentation:"Override the endpoint used to send this request",type:"String"}},rules:[{conditions:[{fn:"aws.partition",argv:[{ref:"Region"}],assign:"PartitionResult"}],type:"tree",rules:[{conditions:[{fn:"isSet",argv:[{ref:"Endpoint"}]},{fn:"parseURL",argv:[{ref:"Endpoint"}],assign:"url"}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[{ref:"UseFIPS"},true]}],error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:[],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[{ref:"UseDualStack"},true]}],error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{conditions:[],endpoint:{url:{ref:"Endpoint"},properties:{},headers:{}},type:"endpoint"}]}]},{conditions:[{fn:"booleanEquals",argv:[{ref:"UseFIPS"},true]},{fn:"booleanEquals",argv:[{ref:"UseDualStack"},true]}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[true,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsFIPS"]}]},{fn:"booleanEquals",argv:[true,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsDualStack"]}]}],type:"tree",rules:[{conditions:[],endpoint:{url:"https://api.ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:{},headers:{}},type:"endpoint"}]},{conditions:[],error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}]},{conditions:[{fn:"booleanEquals",argv:[{ref:"UseFIPS"},true]}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[true,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsFIPS"]}]}],type:"tree",rules:[{conditions:[],type:"tree",rules:[{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"dkr-us-east-2"]}],endpoint:{url:"https://ecr-fips.us-east-2.amazonaws.com",properties:{},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"dkr-us-east-1"]}],endpoint:{url:"https://ecr-fips.us-east-1.amazonaws.com",properties:{},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"dkr-us-west-2"]}],endpoint:{url:"https://ecr-fips.us-west-2.amazonaws.com",properties:{},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"dkr-us-west-1"]}],endpoint:{url:"https://ecr-fips.us-west-1.amazonaws.com",properties:{},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:["aws",{fn:"getAttr",argv:[{ref:"PartitionResult"},"name"]}]}],endpoint:{url:"https://ecr-fips.{Region}.{PartitionResult#dnsSuffix}",properties:{},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"dkr-us-gov-east-1"]}],endpoint:{url:"https://ecr-fips.us-gov-east-1.amazonaws.com",properties:{},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"dkr-us-gov-west-1"]}],endpoint:{url:"https://ecr-fips.us-gov-west-1.amazonaws.com",properties:{},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:["aws-us-gov",{fn:"getAttr",argv:[{ref:"PartitionResult"},"name"]}]}],endpoint:{url:"https://ecr-fips.{Region}.{PartitionResult#dnsSuffix}",properties:{},headers:{}},type:"endpoint"},{conditions:[],endpoint:{url:"https://api.ecr-fips.{Region}.{PartitionResult#dnsSuffix}",properties:{},headers:{}},type:"endpoint"}]}]},{conditions:[],error:"FIPS is enabled but this partition does not support FIPS",type:"error"}]},{conditions:[{fn:"booleanEquals",argv:[{ref:"UseDualStack"},true]}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[true,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsDualStack"]}]}],type:"tree",rules:[{conditions:[],endpoint:{url:"https://api.ecr.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:{},headers:{}},type:"endpoint"}]},{conditions:[],error:"DualStack is enabled but this partition does not support DualStack",type:"error"}]},{conditions:[],endpoint:{url:"https://api.ecr.{Region}.{PartitionResult#dnsSuffix}",properties:{},headers:{}},type:"endpoint"}]}]}},8923:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ECRServiceException=void 0;const o=n(4351);o.__exportStar(n(59167),t);o.__exportStar(n(83391),t);o.__exportStar(n(67407),t);o.__exportStar(n(57451),t);o.__exportStar(n(35356),t);o.__exportStar(n(28406),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=void 0;const o=n(4963);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.BatchCheckLayerAvailabilityRequestFilterSensitiveLog=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;t.RemediationFilterSensitiveLog=t.RecommendationFilterSensitiveLog=t.PackageVulnerabilityDetailsFilterSensitiveLog=t.VulnerablePackageFilterSensitiveLog=t.CvssScoreFilterSensitiveLog=t.DescribeImageScanFindingsRequestFilterSensitiveLog=t.DescribeImagesResponseFilterSensitiveLog=t.ImageDetailFilterSensitiveLog=t.ImageScanStatusFilterSensitiveLog=t.ImageScanFindingsSummaryFilterSensitiveLog=t.DescribeImagesRequestFilterSensitiveLog=t.DescribeImagesFilterFilterSensitiveLog=t.DescribeImageReplicationStatusResponseFilterSensitiveLog=t.ImageReplicationStatusFilterSensitiveLog=t.DescribeImageReplicationStatusRequestFilterSensitiveLog=t.DeleteRepositoryPolicyResponseFilterSensitiveLog=t.DeleteRepositoryPolicyRequestFilterSensitiveLog=t.DeleteRepositoryResponseFilterSensitiveLog=t.DeleteRepositoryRequestFilterSensitiveLog=t.DeleteRegistryPolicyResponseFilterSensitiveLog=t.DeleteRegistryPolicyRequestFilterSensitiveLog=t.DeletePullThroughCacheRuleResponseFilterSensitiveLog=t.DeletePullThroughCacheRuleRequestFilterSensitiveLog=t.DeleteLifecyclePolicyResponseFilterSensitiveLog=t.DeleteLifecyclePolicyRequestFilterSensitiveLog=t.CreateRepositoryResponseFilterSensitiveLog=t.RepositoryFilterSensitiveLog=t.CreateRepositoryRequestFilterSensitiveLog=t.TagFilterSensitiveLog=t.ImageScanningConfigurationFilterSensitiveLog=t.EncryptionConfigurationFilterSensitiveLog=t.CreatePullThroughCacheRuleResponseFilterSensitiveLog=t.CreatePullThroughCacheRuleRequestFilterSensitiveLog=t.CompleteLayerUploadResponseFilterSensitiveLog=t.CompleteLayerUploadRequestFilterSensitiveLog=t.BatchGetRepositoryScanningConfigurationResponseFilterSensitiveLog=t.RepositoryScanningConfigurationFilterSensitiveLog=t.ScanningRepositoryFilterFilterSensitiveLog=t.RepositoryScanningConfigurationFailureFilterSensitiveLog=t.BatchGetRepositoryScanningConfigurationRequestFilterSensitiveLog=t.BatchGetImageResponseFilterSensitiveLog=t.ImageFilterSensitiveLog=t.BatchGetImageRequestFilterSensitiveLog=t.BatchDeleteImageResponseFilterSensitiveLog=t.ImageFailureFilterSensitiveLog=t.BatchDeleteImageRequestFilterSensitiveLog=t.ImageIdentifierFilterSensitiveLog=t.BatchCheckLayerAvailabilityResponseFilterSensitiveLog=t.LayerFilterSensitiveLog=t.LayerFailureFilterSensitiveLog=void 0;t.ListTagsForResourceResponseFilterSensitiveLog=t.ListTagsForResourceRequestFilterSensitiveLog=t.ListImagesResponseFilterSensitiveLog=t.ListImagesRequestFilterSensitiveLog=t.ListImagesFilterFilterSensitiveLog=t.InitiateLayerUploadResponseFilterSensitiveLog=t.InitiateLayerUploadRequestFilterSensitiveLog=t.GetRepositoryPolicyResponseFilterSensitiveLog=t.GetRepositoryPolicyRequestFilterSensitiveLog=t.GetRegistryScanningConfigurationResponseFilterSensitiveLog=t.RegistryScanningConfigurationFilterSensitiveLog=t.RegistryScanningRuleFilterSensitiveLog=t.GetRegistryScanningConfigurationRequestFilterSensitiveLog=t.GetRegistryPolicyResponseFilterSensitiveLog=t.GetRegistryPolicyRequestFilterSensitiveLog=t.GetLifecyclePolicyPreviewResponseFilterSensitiveLog=t.LifecyclePolicyPreviewSummaryFilterSensitiveLog=t.LifecyclePolicyPreviewResultFilterSensitiveLog=t.LifecyclePolicyRuleActionFilterSensitiveLog=t.GetLifecyclePolicyPreviewRequestFilterSensitiveLog=t.LifecyclePolicyPreviewFilterFilterSensitiveLog=t.GetLifecyclePolicyResponseFilterSensitiveLog=t.GetLifecyclePolicyRequestFilterSensitiveLog=t.GetDownloadUrlForLayerResponseFilterSensitiveLog=t.GetDownloadUrlForLayerRequestFilterSensitiveLog=t.GetAuthorizationTokenResponseFilterSensitiveLog=t.AuthorizationDataFilterSensitiveLog=t.GetAuthorizationTokenRequestFilterSensitiveLog=t.DescribeRepositoriesResponseFilterSensitiveLog=t.DescribeRepositoriesRequestFilterSensitiveLog=t.DescribeRegistryResponseFilterSensitiveLog=t.ReplicationConfigurationFilterSensitiveLog=t.ReplicationRuleFilterSensitiveLog=t.RepositoryFilterFilterSensitiveLog=t.ReplicationDestinationFilterSensitiveLog=t.DescribeRegistryRequestFilterSensitiveLog=t.DescribePullThroughCacheRulesResponseFilterSensitiveLog=t.PullThroughCacheRuleFilterSensitiveLog=t.DescribePullThroughCacheRulesRequestFilterSensitiveLog=t.DescribeImageScanFindingsResponseFilterSensitiveLog=t.ImageScanFindingsFilterSensitiveLog=t.ImageScanFindingFilterSensitiveLog=t.AttributeFilterSensitiveLog=t.EnhancedImageScanFindingFilterSensitiveLog=t.ScoreDetailsFilterSensitiveLog=t.CvssScoreDetailsFilterSensitiveLog=t.CvssScoreAdjustmentFilterSensitiveLog=t.ResourceFilterSensitiveLog=t.ResourceDetailsFilterSensitiveLog=t.AwsEcrContainerImageDetailsFilterSensitiveLog=void 0;t.UploadLayerPartResponseFilterSensitiveLog=t.UploadLayerPartRequestFilterSensitiveLog=t.UntagResourceResponseFilterSensitiveLog=t.UntagResourceRequestFilterSensitiveLog=t.TagResourceResponseFilterSensitiveLog=t.TagResourceRequestFilterSensitiveLog=t.StartLifecyclePolicyPreviewResponseFilterSensitiveLog=t.StartLifecyclePolicyPreviewRequestFilterSensitiveLog=t.StartImageScanResponseFilterSensitiveLog=t.StartImageScanRequestFilterSensitiveLog=t.SetRepositoryPolicyResponseFilterSensitiveLog=t.SetRepositoryPolicyRequestFilterSensitiveLog=t.PutReplicationConfigurationResponseFilterSensitiveLog=t.PutReplicationConfigurationRequestFilterSensitiveLog=t.PutRegistryScanningConfigurationResponseFilterSensitiveLog=t.PutRegistryScanningConfigurationRequestFilterSensitiveLog=t.PutRegistryPolicyResponseFilterSensitiveLog=t.PutRegistryPolicyRequestFilterSensitiveLog=t.PutLifecyclePolicyResponseFilterSensitiveLog=t.PutLifecyclePolicyRequestFilterSensitiveLog=t.PutImageTagMutabilityResponseFilterSensitiveLog=t.PutImageTagMutabilityRequestFilterSensitiveLog=t.PutImageScanningConfigurationResponseFilterSensitiveLog=t.PutImageScanningConfigurationRequestFilterSensitiveLog=t.PutImageResponseFilterSensitiveLog=t.PutImageRequestFilterSensitiveLog=void 0;const o=n(11610);var r;(function(e){e["InvalidLayerDigest"]="InvalidLayerDigest";e["MissingLayerDigest"]="MissingLayerDigest"})(r=t.LayerFailureCode||(t.LayerFailureCode={}));var i;(function(e){e["AVAILABLE"]="AVAILABLE";e["UNAVAILABLE"]="UNAVAILABLE"})(i=t.LayerAvailability||(t.LayerAvailability={}));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;var s;(function(e){e["ImageNotFound"]="ImageNotFound";e["ImageReferencedByManifestList"]="ImageReferencedByManifestList";e["ImageTagDoesNotMatchDigest"]="ImageTagDoesNotMatchDigest";e["InvalidImageDigest"]="InvalidImageDigest";e["InvalidImageTag"]="InvalidImageTag";e["KmsError"]="KmsError";e["MissingDigestAndTag"]="MissingDigestAndTag"})(s=t.ImageFailureCode||(t.ImageFailureCode={}));var a;(function(e){e["REPOSITORY_NOT_FOUND"]="REPOSITORY_NOT_FOUND"})(a=t.ScanningConfigurationFailureCode||(t.ScanningConfigurationFailureCode={}));var c;(function(e){e["WILDCARD"]="WILDCARD"})(c=t.ScanningRepositoryFilterType||(t.ScanningRepositoryFilterType={}));var l;(function(e){e["CONTINUOUS_SCAN"]="CONTINUOUS_SCAN";e["MANUAL"]="MANUAL";e["SCAN_ON_PUSH"]="SCAN_ON_PUSH"})(l=t.ScanFrequency||(t.ScanFrequency={}));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;var u;(function(e){e["AES256"]="AES256";e["KMS"]="KMS"})(u=t.EncryptionType||(t.EncryptionType={}));var d;(function(e){e["IMMUTABLE"]="IMMUTABLE";e["MUTABLE"]="MUTABLE"})(d=t.ImageTagMutability||(t.ImageTagMutability={}));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;var p;(function(e){e["COMPLETE"]="COMPLETE";e["FAILED"]="FAILED";e["IN_PROGRESS"]="IN_PROGRESS"})(p=t.ReplicationStatus||(t.ReplicationStatus={}));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;var m;(function(e){e["ANY"]="ANY";e["TAGGED"]="TAGGED";e["UNTAGGED"]="UNTAGGED"})(m=t.TagStatus||(t.TagStatus={}));var g;(function(e){e["CRITICAL"]="CRITICAL";e["HIGH"]="HIGH";e["INFORMATIONAL"]="INFORMATIONAL";e["LOW"]="LOW";e["MEDIUM"]="MEDIUM";e["UNDEFINED"]="UNDEFINED"})(g=t.FindingSeverity||(t.FindingSeverity={}));var f;(function(e){e["ACTIVE"]="ACTIVE";e["COMPLETE"]="COMPLETE";e["FAILED"]="FAILED";e["FINDINGS_UNAVAILABLE"]="FINDINGS_UNAVAILABLE";e["IN_PROGRESS"]="IN_PROGRESS";e["PENDING"]="PENDING";e["SCAN_ELIGIBILITY_EXPIRED"]="SCAN_ELIGIBILITY_EXPIRED";e["UNSUPPORTED_IMAGE"]="UNSUPPORTED_IMAGE"})(f=t.ScanStatus||(t.ScanStatus={}));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;var y;(function(e){e["PREFIX_MATCH"]="PREFIX_MATCH"})(y=t.RepositoryFilterType||(t.RepositoryFilterType={}));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;var h;(function(e){e["EXPIRE"]="EXPIRE"})(h=t.ImageActionType||(t.ImageActionType={}));var E;(function(e){e["COMPLETE"]="COMPLETE";e["EXPIRED"]="EXPIRED";e["FAILED"]="FAILED";e["IN_PROGRESS"]="IN_PROGRESS"})(E=t.LifecyclePolicyPreviewStatus||(t.LifecyclePolicyPreviewStatus={}));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;var S;(function(e){e["BASIC"]="BASIC";e["ENHANCED"]="ENHANCED"})(S=t.ScanType||(t.ScanType={}));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;const BatchCheckLayerAvailabilityRequestFilterSensitiveLog=e=>({...e});t.BatchCheckLayerAvailabilityRequestFilterSensitiveLog=BatchCheckLayerAvailabilityRequestFilterSensitiveLog;const LayerFailureFilterSensitiveLog=e=>({...e});t.LayerFailureFilterSensitiveLog=LayerFailureFilterSensitiveLog;const LayerFilterSensitiveLog=e=>({...e});t.LayerFilterSensitiveLog=LayerFilterSensitiveLog;const BatchCheckLayerAvailabilityResponseFilterSensitiveLog=e=>({...e});t.BatchCheckLayerAvailabilityResponseFilterSensitiveLog=BatchCheckLayerAvailabilityResponseFilterSensitiveLog;const ImageIdentifierFilterSensitiveLog=e=>({...e});t.ImageIdentifierFilterSensitiveLog=ImageIdentifierFilterSensitiveLog;const BatchDeleteImageRequestFilterSensitiveLog=e=>({...e});t.BatchDeleteImageRequestFilterSensitiveLog=BatchDeleteImageRequestFilterSensitiveLog;const ImageFailureFilterSensitiveLog=e=>({...e});t.ImageFailureFilterSensitiveLog=ImageFailureFilterSensitiveLog;const BatchDeleteImageResponseFilterSensitiveLog=e=>({...e});t.BatchDeleteImageResponseFilterSensitiveLog=BatchDeleteImageResponseFilterSensitiveLog;const BatchGetImageRequestFilterSensitiveLog=e=>({...e});t.BatchGetImageRequestFilterSensitiveLog=BatchGetImageRequestFilterSensitiveLog;const ImageFilterSensitiveLog=e=>({...e});t.ImageFilterSensitiveLog=ImageFilterSensitiveLog;const BatchGetImageResponseFilterSensitiveLog=e=>({...e});t.BatchGetImageResponseFilterSensitiveLog=BatchGetImageResponseFilterSensitiveLog;const BatchGetRepositoryScanningConfigurationRequestFilterSensitiveLog=e=>({...e});t.BatchGetRepositoryScanningConfigurationRequestFilterSensitiveLog=BatchGetRepositoryScanningConfigurationRequestFilterSensitiveLog;const RepositoryScanningConfigurationFailureFilterSensitiveLog=e=>({...e});t.RepositoryScanningConfigurationFailureFilterSensitiveLog=RepositoryScanningConfigurationFailureFilterSensitiveLog;const ScanningRepositoryFilterFilterSensitiveLog=e=>({...e});t.ScanningRepositoryFilterFilterSensitiveLog=ScanningRepositoryFilterFilterSensitiveLog;const RepositoryScanningConfigurationFilterSensitiveLog=e=>({...e});t.RepositoryScanningConfigurationFilterSensitiveLog=RepositoryScanningConfigurationFilterSensitiveLog;const BatchGetRepositoryScanningConfigurationResponseFilterSensitiveLog=e=>({...e});t.BatchGetRepositoryScanningConfigurationResponseFilterSensitiveLog=BatchGetRepositoryScanningConfigurationResponseFilterSensitiveLog;const CompleteLayerUploadRequestFilterSensitiveLog=e=>({...e});t.CompleteLayerUploadRequestFilterSensitiveLog=CompleteLayerUploadRequestFilterSensitiveLog;const CompleteLayerUploadResponseFilterSensitiveLog=e=>({...e});t.CompleteLayerUploadResponseFilterSensitiveLog=CompleteLayerUploadResponseFilterSensitiveLog;const CreatePullThroughCacheRuleRequestFilterSensitiveLog=e=>({...e});t.CreatePullThroughCacheRuleRequestFilterSensitiveLog=CreatePullThroughCacheRuleRequestFilterSensitiveLog;const CreatePullThroughCacheRuleResponseFilterSensitiveLog=e=>({...e});t.CreatePullThroughCacheRuleResponseFilterSensitiveLog=CreatePullThroughCacheRuleResponseFilterSensitiveLog;const EncryptionConfigurationFilterSensitiveLog=e=>({...e});t.EncryptionConfigurationFilterSensitiveLog=EncryptionConfigurationFilterSensitiveLog;const ImageScanningConfigurationFilterSensitiveLog=e=>({...e});t.ImageScanningConfigurationFilterSensitiveLog=ImageScanningConfigurationFilterSensitiveLog;const TagFilterSensitiveLog=e=>({...e});t.TagFilterSensitiveLog=TagFilterSensitiveLog;const CreateRepositoryRequestFilterSensitiveLog=e=>({...e});t.CreateRepositoryRequestFilterSensitiveLog=CreateRepositoryRequestFilterSensitiveLog;const RepositoryFilterSensitiveLog=e=>({...e});t.RepositoryFilterSensitiveLog=RepositoryFilterSensitiveLog;const CreateRepositoryResponseFilterSensitiveLog=e=>({...e});t.CreateRepositoryResponseFilterSensitiveLog=CreateRepositoryResponseFilterSensitiveLog;const DeleteLifecyclePolicyRequestFilterSensitiveLog=e=>({...e});t.DeleteLifecyclePolicyRequestFilterSensitiveLog=DeleteLifecyclePolicyRequestFilterSensitiveLog;const DeleteLifecyclePolicyResponseFilterSensitiveLog=e=>({...e});t.DeleteLifecyclePolicyResponseFilterSensitiveLog=DeleteLifecyclePolicyResponseFilterSensitiveLog;const DeletePullThroughCacheRuleRequestFilterSensitiveLog=e=>({...e});t.DeletePullThroughCacheRuleRequestFilterSensitiveLog=DeletePullThroughCacheRuleRequestFilterSensitiveLog;const DeletePullThroughCacheRuleResponseFilterSensitiveLog=e=>({...e});t.DeletePullThroughCacheRuleResponseFilterSensitiveLog=DeletePullThroughCacheRuleResponseFilterSensitiveLog;const DeleteRegistryPolicyRequestFilterSensitiveLog=e=>({...e});t.DeleteRegistryPolicyRequestFilterSensitiveLog=DeleteRegistryPolicyRequestFilterSensitiveLog;const DeleteRegistryPolicyResponseFilterSensitiveLog=e=>({...e});t.DeleteRegistryPolicyResponseFilterSensitiveLog=DeleteRegistryPolicyResponseFilterSensitiveLog;const DeleteRepositoryRequestFilterSensitiveLog=e=>({...e});t.DeleteRepositoryRequestFilterSensitiveLog=DeleteRepositoryRequestFilterSensitiveLog;const DeleteRepositoryResponseFilterSensitiveLog=e=>({...e});t.DeleteRepositoryResponseFilterSensitiveLog=DeleteRepositoryResponseFilterSensitiveLog;const DeleteRepositoryPolicyRequestFilterSensitiveLog=e=>({...e});t.DeleteRepositoryPolicyRequestFilterSensitiveLog=DeleteRepositoryPolicyRequestFilterSensitiveLog;const DeleteRepositoryPolicyResponseFilterSensitiveLog=e=>({...e});t.DeleteRepositoryPolicyResponseFilterSensitiveLog=DeleteRepositoryPolicyResponseFilterSensitiveLog;const DescribeImageReplicationStatusRequestFilterSensitiveLog=e=>({...e});t.DescribeImageReplicationStatusRequestFilterSensitiveLog=DescribeImageReplicationStatusRequestFilterSensitiveLog;const ImageReplicationStatusFilterSensitiveLog=e=>({...e});t.ImageReplicationStatusFilterSensitiveLog=ImageReplicationStatusFilterSensitiveLog;const DescribeImageReplicationStatusResponseFilterSensitiveLog=e=>({...e});t.DescribeImageReplicationStatusResponseFilterSensitiveLog=DescribeImageReplicationStatusResponseFilterSensitiveLog;const DescribeImagesFilterFilterSensitiveLog=e=>({...e});t.DescribeImagesFilterFilterSensitiveLog=DescribeImagesFilterFilterSensitiveLog;const DescribeImagesRequestFilterSensitiveLog=e=>({...e});t.DescribeImagesRequestFilterSensitiveLog=DescribeImagesRequestFilterSensitiveLog;const ImageScanFindingsSummaryFilterSensitiveLog=e=>({...e});t.ImageScanFindingsSummaryFilterSensitiveLog=ImageScanFindingsSummaryFilterSensitiveLog;const ImageScanStatusFilterSensitiveLog=e=>({...e});t.ImageScanStatusFilterSensitiveLog=ImageScanStatusFilterSensitiveLog;const ImageDetailFilterSensitiveLog=e=>({...e});t.ImageDetailFilterSensitiveLog=ImageDetailFilterSensitiveLog;const DescribeImagesResponseFilterSensitiveLog=e=>({...e});t.DescribeImagesResponseFilterSensitiveLog=DescribeImagesResponseFilterSensitiveLog;const DescribeImageScanFindingsRequestFilterSensitiveLog=e=>({...e});t.DescribeImageScanFindingsRequestFilterSensitiveLog=DescribeImageScanFindingsRequestFilterSensitiveLog;const CvssScoreFilterSensitiveLog=e=>({...e});t.CvssScoreFilterSensitiveLog=CvssScoreFilterSensitiveLog;const VulnerablePackageFilterSensitiveLog=e=>({...e});t.VulnerablePackageFilterSensitiveLog=VulnerablePackageFilterSensitiveLog;const PackageVulnerabilityDetailsFilterSensitiveLog=e=>({...e});t.PackageVulnerabilityDetailsFilterSensitiveLog=PackageVulnerabilityDetailsFilterSensitiveLog;const RecommendationFilterSensitiveLog=e=>({...e});t.RecommendationFilterSensitiveLog=RecommendationFilterSensitiveLog;const RemediationFilterSensitiveLog=e=>({...e});t.RemediationFilterSensitiveLog=RemediationFilterSensitiveLog;const AwsEcrContainerImageDetailsFilterSensitiveLog=e=>({...e});t.AwsEcrContainerImageDetailsFilterSensitiveLog=AwsEcrContainerImageDetailsFilterSensitiveLog;const ResourceDetailsFilterSensitiveLog=e=>({...e});t.ResourceDetailsFilterSensitiveLog=ResourceDetailsFilterSensitiveLog;const ResourceFilterSensitiveLog=e=>({...e});t.ResourceFilterSensitiveLog=ResourceFilterSensitiveLog;const CvssScoreAdjustmentFilterSensitiveLog=e=>({...e});t.CvssScoreAdjustmentFilterSensitiveLog=CvssScoreAdjustmentFilterSensitiveLog;const CvssScoreDetailsFilterSensitiveLog=e=>({...e});t.CvssScoreDetailsFilterSensitiveLog=CvssScoreDetailsFilterSensitiveLog;const ScoreDetailsFilterSensitiveLog=e=>({...e});t.ScoreDetailsFilterSensitiveLog=ScoreDetailsFilterSensitiveLog;const EnhancedImageScanFindingFilterSensitiveLog=e=>({...e});t.EnhancedImageScanFindingFilterSensitiveLog=EnhancedImageScanFindingFilterSensitiveLog;const AttributeFilterSensitiveLog=e=>({...e});t.AttributeFilterSensitiveLog=AttributeFilterSensitiveLog;const ImageScanFindingFilterSensitiveLog=e=>({...e});t.ImageScanFindingFilterSensitiveLog=ImageScanFindingFilterSensitiveLog;const ImageScanFindingsFilterSensitiveLog=e=>({...e});t.ImageScanFindingsFilterSensitiveLog=ImageScanFindingsFilterSensitiveLog;const DescribeImageScanFindingsResponseFilterSensitiveLog=e=>({...e});t.DescribeImageScanFindingsResponseFilterSensitiveLog=DescribeImageScanFindingsResponseFilterSensitiveLog;const DescribePullThroughCacheRulesRequestFilterSensitiveLog=e=>({...e});t.DescribePullThroughCacheRulesRequestFilterSensitiveLog=DescribePullThroughCacheRulesRequestFilterSensitiveLog;const PullThroughCacheRuleFilterSensitiveLog=e=>({...e});t.PullThroughCacheRuleFilterSensitiveLog=PullThroughCacheRuleFilterSensitiveLog;const DescribePullThroughCacheRulesResponseFilterSensitiveLog=e=>({...e});t.DescribePullThroughCacheRulesResponseFilterSensitiveLog=DescribePullThroughCacheRulesResponseFilterSensitiveLog;const DescribeRegistryRequestFilterSensitiveLog=e=>({...e});t.DescribeRegistryRequestFilterSensitiveLog=DescribeRegistryRequestFilterSensitiveLog;const ReplicationDestinationFilterSensitiveLog=e=>({...e});t.ReplicationDestinationFilterSensitiveLog=ReplicationDestinationFilterSensitiveLog;const RepositoryFilterFilterSensitiveLog=e=>({...e});t.RepositoryFilterFilterSensitiveLog=RepositoryFilterFilterSensitiveLog;const ReplicationRuleFilterSensitiveLog=e=>({...e});t.ReplicationRuleFilterSensitiveLog=ReplicationRuleFilterSensitiveLog;const ReplicationConfigurationFilterSensitiveLog=e=>({...e});t.ReplicationConfigurationFilterSensitiveLog=ReplicationConfigurationFilterSensitiveLog;const DescribeRegistryResponseFilterSensitiveLog=e=>({...e});t.DescribeRegistryResponseFilterSensitiveLog=DescribeRegistryResponseFilterSensitiveLog;const DescribeRepositoriesRequestFilterSensitiveLog=e=>({...e});t.DescribeRepositoriesRequestFilterSensitiveLog=DescribeRepositoriesRequestFilterSensitiveLog;const DescribeRepositoriesResponseFilterSensitiveLog=e=>({...e});t.DescribeRepositoriesResponseFilterSensitiveLog=DescribeRepositoriesResponseFilterSensitiveLog;const GetAuthorizationTokenRequestFilterSensitiveLog=e=>({...e});t.GetAuthorizationTokenRequestFilterSensitiveLog=GetAuthorizationTokenRequestFilterSensitiveLog;const AuthorizationDataFilterSensitiveLog=e=>({...e});t.AuthorizationDataFilterSensitiveLog=AuthorizationDataFilterSensitiveLog;const GetAuthorizationTokenResponseFilterSensitiveLog=e=>({...e});t.GetAuthorizationTokenResponseFilterSensitiveLog=GetAuthorizationTokenResponseFilterSensitiveLog;const GetDownloadUrlForLayerRequestFilterSensitiveLog=e=>({...e});t.GetDownloadUrlForLayerRequestFilterSensitiveLog=GetDownloadUrlForLayerRequestFilterSensitiveLog;const GetDownloadUrlForLayerResponseFilterSensitiveLog=e=>({...e});t.GetDownloadUrlForLayerResponseFilterSensitiveLog=GetDownloadUrlForLayerResponseFilterSensitiveLog;const GetLifecyclePolicyRequestFilterSensitiveLog=e=>({...e});t.GetLifecyclePolicyRequestFilterSensitiveLog=GetLifecyclePolicyRequestFilterSensitiveLog;const GetLifecyclePolicyResponseFilterSensitiveLog=e=>({...e});t.GetLifecyclePolicyResponseFilterSensitiveLog=GetLifecyclePolicyResponseFilterSensitiveLog;const LifecyclePolicyPreviewFilterFilterSensitiveLog=e=>({...e});t.LifecyclePolicyPreviewFilterFilterSensitiveLog=LifecyclePolicyPreviewFilterFilterSensitiveLog;const GetLifecyclePolicyPreviewRequestFilterSensitiveLog=e=>({...e});t.GetLifecyclePolicyPreviewRequestFilterSensitiveLog=GetLifecyclePolicyPreviewRequestFilterSensitiveLog;const LifecyclePolicyRuleActionFilterSensitiveLog=e=>({...e});t.LifecyclePolicyRuleActionFilterSensitiveLog=LifecyclePolicyRuleActionFilterSensitiveLog;const LifecyclePolicyPreviewResultFilterSensitiveLog=e=>({...e});t.LifecyclePolicyPreviewResultFilterSensitiveLog=LifecyclePolicyPreviewResultFilterSensitiveLog;const LifecyclePolicyPreviewSummaryFilterSensitiveLog=e=>({...e});t.LifecyclePolicyPreviewSummaryFilterSensitiveLog=LifecyclePolicyPreviewSummaryFilterSensitiveLog;const GetLifecyclePolicyPreviewResponseFilterSensitiveLog=e=>({...e});t.GetLifecyclePolicyPreviewResponseFilterSensitiveLog=GetLifecyclePolicyPreviewResponseFilterSensitiveLog;const GetRegistryPolicyRequestFilterSensitiveLog=e=>({...e});t.GetRegistryPolicyRequestFilterSensitiveLog=GetRegistryPolicyRequestFilterSensitiveLog;const GetRegistryPolicyResponseFilterSensitiveLog=e=>({...e});t.GetRegistryPolicyResponseFilterSensitiveLog=GetRegistryPolicyResponseFilterSensitiveLog;const GetRegistryScanningConfigurationRequestFilterSensitiveLog=e=>({...e});t.GetRegistryScanningConfigurationRequestFilterSensitiveLog=GetRegistryScanningConfigurationRequestFilterSensitiveLog;const RegistryScanningRuleFilterSensitiveLog=e=>({...e});t.RegistryScanningRuleFilterSensitiveLog=RegistryScanningRuleFilterSensitiveLog;const RegistryScanningConfigurationFilterSensitiveLog=e=>({...e});t.RegistryScanningConfigurationFilterSensitiveLog=RegistryScanningConfigurationFilterSensitiveLog;const GetRegistryScanningConfigurationResponseFilterSensitiveLog=e=>({...e});t.GetRegistryScanningConfigurationResponseFilterSensitiveLog=GetRegistryScanningConfigurationResponseFilterSensitiveLog;const GetRepositoryPolicyRequestFilterSensitiveLog=e=>({...e});t.GetRepositoryPolicyRequestFilterSensitiveLog=GetRepositoryPolicyRequestFilterSensitiveLog;const GetRepositoryPolicyResponseFilterSensitiveLog=e=>({...e});t.GetRepositoryPolicyResponseFilterSensitiveLog=GetRepositoryPolicyResponseFilterSensitiveLog;const InitiateLayerUploadRequestFilterSensitiveLog=e=>({...e});t.InitiateLayerUploadRequestFilterSensitiveLog=InitiateLayerUploadRequestFilterSensitiveLog;const InitiateLayerUploadResponseFilterSensitiveLog=e=>({...e});t.InitiateLayerUploadResponseFilterSensitiveLog=InitiateLayerUploadResponseFilterSensitiveLog;const ListImagesFilterFilterSensitiveLog=e=>({...e});t.ListImagesFilterFilterSensitiveLog=ListImagesFilterFilterSensitiveLog;const ListImagesRequestFilterSensitiveLog=e=>({...e});t.ListImagesRequestFilterSensitiveLog=ListImagesRequestFilterSensitiveLog;const ListImagesResponseFilterSensitiveLog=e=>({...e});t.ListImagesResponseFilterSensitiveLog=ListImagesResponseFilterSensitiveLog;const ListTagsForResourceRequestFilterSensitiveLog=e=>({...e});t.ListTagsForResourceRequestFilterSensitiveLog=ListTagsForResourceRequestFilterSensitiveLog;const ListTagsForResourceResponseFilterSensitiveLog=e=>({...e});t.ListTagsForResourceResponseFilterSensitiveLog=ListTagsForResourceResponseFilterSensitiveLog;const PutImageRequestFilterSensitiveLog=e=>({...e});t.PutImageRequestFilterSensitiveLog=PutImageRequestFilterSensitiveLog;const PutImageResponseFilterSensitiveLog=e=>({...e});t.PutImageResponseFilterSensitiveLog=PutImageResponseFilterSensitiveLog;const PutImageScanningConfigurationRequestFilterSensitiveLog=e=>({...e});t.PutImageScanningConfigurationRequestFilterSensitiveLog=PutImageScanningConfigurationRequestFilterSensitiveLog;const PutImageScanningConfigurationResponseFilterSensitiveLog=e=>({...e});t.PutImageScanningConfigurationResponseFilterSensitiveLog=PutImageScanningConfigurationResponseFilterSensitiveLog;const PutImageTagMutabilityRequestFilterSensitiveLog=e=>({...e});t.PutImageTagMutabilityRequestFilterSensitiveLog=PutImageTagMutabilityRequestFilterSensitiveLog;const PutImageTagMutabilityResponseFilterSensitiveLog=e=>({...e});t.PutImageTagMutabilityResponseFilterSensitiveLog=PutImageTagMutabilityResponseFilterSensitiveLog;const PutLifecyclePolicyRequestFilterSensitiveLog=e=>({...e});t.PutLifecyclePolicyRequestFilterSensitiveLog=PutLifecyclePolicyRequestFilterSensitiveLog;const PutLifecyclePolicyResponseFilterSensitiveLog=e=>({...e});t.PutLifecyclePolicyResponseFilterSensitiveLog=PutLifecyclePolicyResponseFilterSensitiveLog;const PutRegistryPolicyRequestFilterSensitiveLog=e=>({...e});t.PutRegistryPolicyRequestFilterSensitiveLog=PutRegistryPolicyRequestFilterSensitiveLog;const PutRegistryPolicyResponseFilterSensitiveLog=e=>({...e});t.PutRegistryPolicyResponseFilterSensitiveLog=PutRegistryPolicyResponseFilterSensitiveLog;const PutRegistryScanningConfigurationRequestFilterSensitiveLog=e=>({...e});t.PutRegistryScanningConfigurationRequestFilterSensitiveLog=PutRegistryScanningConfigurationRequestFilterSensitiveLog;const PutRegistryScanningConfigurationResponseFilterSensitiveLog=e=>({...e});t.PutRegistryScanningConfigurationResponseFilterSensitiveLog=PutRegistryScanningConfigurationResponseFilterSensitiveLog;const PutReplicationConfigurationRequestFilterSensitiveLog=e=>({...e});t.PutReplicationConfigurationRequestFilterSensitiveLog=PutReplicationConfigurationRequestFilterSensitiveLog;const PutReplicationConfigurationResponseFilterSensitiveLog=e=>({...e});t.PutReplicationConfigurationResponseFilterSensitiveLog=PutReplicationConfigurationResponseFilterSensitiveLog;const SetRepositoryPolicyRequestFilterSensitiveLog=e=>({...e});t.SetRepositoryPolicyRequestFilterSensitiveLog=SetRepositoryPolicyRequestFilterSensitiveLog;const SetRepositoryPolicyResponseFilterSensitiveLog=e=>({...e});t.SetRepositoryPolicyResponseFilterSensitiveLog=SetRepositoryPolicyResponseFilterSensitiveLog;const StartImageScanRequestFilterSensitiveLog=e=>({...e});t.StartImageScanRequestFilterSensitiveLog=StartImageScanRequestFilterSensitiveLog;const StartImageScanResponseFilterSensitiveLog=e=>({...e});t.StartImageScanResponseFilterSensitiveLog=StartImageScanResponseFilterSensitiveLog;const StartLifecyclePolicyPreviewRequestFilterSensitiveLog=e=>({...e});t.StartLifecyclePolicyPreviewRequestFilterSensitiveLog=StartLifecyclePolicyPreviewRequestFilterSensitiveLog;const StartLifecyclePolicyPreviewResponseFilterSensitiveLog=e=>({...e});t.StartLifecyclePolicyPreviewResponseFilterSensitiveLog=StartLifecyclePolicyPreviewResponseFilterSensitiveLog;const TagResourceRequestFilterSensitiveLog=e=>({...e});t.TagResourceRequestFilterSensitiveLog=TagResourceRequestFilterSensitiveLog;const TagResourceResponseFilterSensitiveLog=e=>({...e});t.TagResourceResponseFilterSensitiveLog=TagResourceResponseFilterSensitiveLog;const UntagResourceRequestFilterSensitiveLog=e=>({...e});t.UntagResourceRequestFilterSensitiveLog=UntagResourceRequestFilterSensitiveLog;const UntagResourceResponseFilterSensitiveLog=e=>({...e});t.UntagResourceResponseFilterSensitiveLog=UntagResourceResponseFilterSensitiveLog;const UploadLayerPartRequestFilterSensitiveLog=e=>({...e});t.UploadLayerPartRequestFilterSensitiveLog=UploadLayerPartRequestFilterSensitiveLog;const UploadLayerPartResponseFilterSensitiveLog=e=>({...e});t.UploadLayerPartResponseFilterSensitiveLog=UploadLayerPartResponseFilterSensitiveLog},30862:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateDescribeImageScanFindings=void 0;const o=n(72987);const r=n(59167);const i=n(83391);const makePagedClientRequest=async(e,t,...n)=>await e.send(new o.DescribeImageScanFindingsCommand(t),...n);const makePagedRequest=async(e,t,...n)=>await e.describeImageScanFindings(t,...n);async function*paginateDescribeImageScanFindings(e,t,...n){let o=e.startingToken||undefined;let s=true;let a;while(s){t.nextToken=o;t["maxResults"]=e.pageSize;if(e.client instanceof r.ECR){a=await makePagedRequest(e.client,t,...n)}else if(e.client instanceof i.ECRClient){a=await makePagedClientRequest(e.client,t,...n)}else{throw new Error("Invalid client, expected ECR | ECRClient")}yield a;const c=o;o=a.nextToken;s=!!(o&&(!e.stopOnSameToken||o!==c))}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(59167);const i=n(83391);const makePagedClientRequest=async(e,t,...n)=>await e.send(new o.DescribeImagesCommand(t),...n);const makePagedRequest=async(e,t,...n)=>await e.describeImages(t,...n);async function*paginateDescribeImages(e,t,...n){let o=e.startingToken||undefined;let s=true;let a;while(s){t.nextToken=o;t["maxResults"]=e.pageSize;if(e.client instanceof r.ECR){a=await makePagedRequest(e.client,t,...n)}else if(e.client instanceof i.ECRClient){a=await makePagedClientRequest(e.client,t,...n)}else{throw new Error("Invalid client, expected ECR | ECRClient")}yield a;const c=o;o=a.nextToken;s=!!(o&&(!e.stopOnSameToken||o!==c))}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(59167);const i=n(83391);const makePagedClientRequest=async(e,t,...n)=>await e.send(new o.DescribePullThroughCacheRulesCommand(t),...n);const makePagedRequest=async(e,t,...n)=>await e.describePullThroughCacheRules(t,...n);async function*paginateDescribePullThroughCacheRules(e,t,...n){let o=e.startingToken||undefined;let s=true;let a;while(s){t.nextToken=o;t["maxResults"]=e.pageSize;if(e.client instanceof r.ECR){a=await makePagedRequest(e.client,t,...n)}else if(e.client instanceof i.ECRClient){a=await makePagedClientRequest(e.client,t,...n)}else{throw new Error("Invalid client, expected ECR | ECRClient")}yield a;const c=o;o=a.nextToken;s=!!(o&&(!e.stopOnSameToken||o!==c))}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(59167);const i=n(83391);const makePagedClientRequest=async(e,t,...n)=>await e.send(new o.DescribeRepositoriesCommand(t),...n);const makePagedRequest=async(e,t,...n)=>await e.describeRepositories(t,...n);async function*paginateDescribeRepositories(e,t,...n){let o=e.startingToken||undefined;let s=true;let a;while(s){t.nextToken=o;t["maxResults"]=e.pageSize;if(e.client instanceof r.ECR){a=await makePagedRequest(e.client,t,...n)}else if(e.client instanceof i.ECRClient){a=await makePagedClientRequest(e.client,t,...n)}else{throw new Error("Invalid client, expected ECR | ECRClient")}yield a;const c=o;o=a.nextToken;s=!!(o&&(!e.stopOnSameToken||o!==c))}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(59167);const i=n(83391);const makePagedClientRequest=async(e,t,...n)=>await e.send(new o.GetLifecyclePolicyPreviewCommand(t),...n);const makePagedRequest=async(e,t,...n)=>await e.getLifecyclePolicyPreview(t,...n);async function*paginateGetLifecyclePolicyPreview(e,t,...n){let o=e.startingToken||undefined;let s=true;let a;while(s){t.nextToken=o;t["maxResults"]=e.pageSize;if(e.client instanceof r.ECR){a=await makePagedRequest(e.client,t,...n)}else if(e.client instanceof i.ECRClient){a=await makePagedClientRequest(e.client,t,...n)}else{throw new Error("Invalid client, expected ECR | ECRClient")}yield a;const c=o;o=a.nextToken;s=!!(o&&(!e.stopOnSameToken||o!==c))}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(59167);const i=n(83391);const makePagedClientRequest=async(e,t,...n)=>await e.send(new o.ListImagesCommand(t),...n);const makePagedRequest=async(e,t,...n)=>await e.listImages(t,...n);async function*paginateListImages(e,t,...n){let o=e.startingToken||undefined;let s=true;let a;while(s){t.nextToken=o;t["maxResults"]=e.pageSize;if(e.client instanceof r.ECR){a=await makePagedRequest(e.client,t,...n)}else if(e.client instanceof i.ECRClient){a=await makePagedClientRequest(e.client,t,...n)}else{throw new Error("Invalid client, expected ECR | ECRClient")}yield a;const c=o;o=a.nextToken;s=!!(o&&(!e.stopOnSameToken||o!==c))}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.deserializeAws_json1_1DeletePullThroughCacheRuleCommand=t.deserializeAws_json1_1DeleteLifecyclePolicyCommand=t.deserializeAws_json1_1CreateRepositoryCommand=t.deserializeAws_json1_1CreatePullThroughCacheRuleCommand=t.deserializeAws_json1_1CompleteLayerUploadCommand=t.deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand=t.deserializeAws_json1_1BatchGetImageCommand=t.deserializeAws_json1_1BatchDeleteImageCommand=t.deserializeAws_json1_1BatchCheckLayerAvailabilityCommand=t.serializeAws_json1_1UploadLayerPartCommand=t.serializeAws_json1_1UntagResourceCommand=t.serializeAws_json1_1TagResourceCommand=t.serializeAws_json1_1StartLifecyclePolicyPreviewCommand=t.serializeAws_json1_1StartImageScanCommand=t.serializeAws_json1_1SetRepositoryPolicyCommand=t.serializeAws_json1_1PutReplicationConfigurationCommand=t.serializeAws_json1_1PutRegistryScanningConfigurationCommand=t.serializeAws_json1_1PutRegistryPolicyCommand=t.serializeAws_json1_1PutLifecyclePolicyCommand=t.serializeAws_json1_1PutImageTagMutabilityCommand=t.serializeAws_json1_1PutImageScanningConfigurationCommand=t.serializeAws_json1_1PutImageCommand=t.serializeAws_json1_1ListTagsForResourceCommand=t.serializeAws_json1_1ListImagesCommand=t.serializeAws_json1_1InitiateLayerUploadCommand=t.serializeAws_json1_1GetRepositoryPolicyCommand=t.serializeAws_json1_1GetRegistryScanningConfigurationCommand=t.serializeAws_json1_1GetRegistryPolicyCommand=t.serializeAws_json1_1GetLifecyclePolicyPreviewCommand=t.serializeAws_json1_1GetLifecyclePolicyCommand=t.serializeAws_json1_1GetDownloadUrlForLayerCommand=t.serializeAws_json1_1GetAuthorizationTokenCommand=t.serializeAws_json1_1DescribeRepositoriesCommand=t.serializeAws_json1_1DescribeRegistryCommand=t.serializeAws_json1_1DescribePullThroughCacheRulesCommand=t.serializeAws_json1_1DescribeImageScanFindingsCommand=t.serializeAws_json1_1DescribeImagesCommand=t.serializeAws_json1_1DescribeImageReplicationStatusCommand=t.serializeAws_json1_1DeleteRepositoryPolicyCommand=t.serializeAws_json1_1DeleteRepositoryCommand=t.serializeAws_json1_1DeleteRegistryPolicyCommand=t.serializeAws_json1_1DeletePullThroughCacheRuleCommand=t.serializeAws_json1_1DeleteLifecyclePolicyCommand=t.serializeAws_json1_1CreateRepositoryCommand=t.serializeAws_json1_1CreatePullThroughCacheRuleCommand=t.serializeAws_json1_1CompleteLayerUploadCommand=t.serializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand=t.serializeAws_json1_1BatchGetImageCommand=t.serializeAws_json1_1BatchDeleteImageCommand=t.serializeAws_json1_1BatchCheckLayerAvailabilityCommand=void 0;t.deserializeAws_json1_1UploadLayerPartCommand=t.deserializeAws_json1_1UntagResourceCommand=t.deserializeAws_json1_1TagResourceCommand=t.deserializeAws_json1_1StartLifecyclePolicyPreviewCommand=t.deserializeAws_json1_1StartImageScanCommand=t.deserializeAws_json1_1SetRepositoryPolicyCommand=t.deserializeAws_json1_1PutReplicationConfigurationCommand=t.deserializeAws_json1_1PutRegistryScanningConfigurationCommand=t.deserializeAws_json1_1PutRegistryPolicyCommand=t.deserializeAws_json1_1PutLifecyclePolicyCommand=t.deserializeAws_json1_1PutImageTagMutabilityCommand=t.deserializeAws_json1_1PutImageScanningConfigurationCommand=t.deserializeAws_json1_1PutImageCommand=t.deserializeAws_json1_1ListTagsForResourceCommand=t.deserializeAws_json1_1ListImagesCommand=t.deserializeAws_json1_1InitiateLayerUploadCommand=t.deserializeAws_json1_1GetRepositoryPolicyCommand=t.deserializeAws_json1_1GetRegistryScanningConfigurationCommand=t.deserializeAws_json1_1GetRegistryPolicyCommand=t.deserializeAws_json1_1GetLifecyclePolicyPreviewCommand=t.deserializeAws_json1_1GetLifecyclePolicyCommand=t.deserializeAws_json1_1GetDownloadUrlForLayerCommand=t.deserializeAws_json1_1GetAuthorizationTokenCommand=t.deserializeAws_json1_1DescribeRepositoriesCommand=t.deserializeAws_json1_1DescribeRegistryCommand=t.deserializeAws_json1_1DescribePullThroughCacheRulesCommand=t.deserializeAws_json1_1DescribeImageScanFindingsCommand=t.deserializeAws_json1_1DescribeImagesCommand=t.deserializeAws_json1_1DescribeImageReplicationStatusCommand=t.deserializeAws_json1_1DeleteRepositoryPolicyCommand=t.deserializeAws_json1_1DeleteRepositoryCommand=t.deserializeAws_json1_1DeleteRegistryPolicyCommand=void 0;const o=n(70223);const r=n(4963);const i=n(11610);const s=n(79088);const serializeAws_json1_1BatchCheckLayerAvailabilityCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.BatchCheckLayerAvailability"};let o;o=JSON.stringify(serializeAws_json1_1BatchCheckLayerAvailabilityRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1BatchCheckLayerAvailabilityCommand=serializeAws_json1_1BatchCheckLayerAvailabilityCommand;const serializeAws_json1_1BatchDeleteImageCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.BatchDeleteImage"};let o;o=JSON.stringify(serializeAws_json1_1BatchDeleteImageRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1BatchDeleteImageCommand=serializeAws_json1_1BatchDeleteImageCommand;const serializeAws_json1_1BatchGetImageCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.BatchGetImage"};let o;o=JSON.stringify(serializeAws_json1_1BatchGetImageRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1BatchGetImageCommand=serializeAws_json1_1BatchGetImageCommand;const serializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.BatchGetRepositoryScanningConfiguration"};let o;o=JSON.stringify(serializeAws_json1_1BatchGetRepositoryScanningConfigurationRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand=serializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand;const serializeAws_json1_1CompleteLayerUploadCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.CompleteLayerUpload"};let o;o=JSON.stringify(serializeAws_json1_1CompleteLayerUploadRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1CompleteLayerUploadCommand=serializeAws_json1_1CompleteLayerUploadCommand;const serializeAws_json1_1CreatePullThroughCacheRuleCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.CreatePullThroughCacheRule"};let o;o=JSON.stringify(serializeAws_json1_1CreatePullThroughCacheRuleRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1CreatePullThroughCacheRuleCommand=serializeAws_json1_1CreatePullThroughCacheRuleCommand;const serializeAws_json1_1CreateRepositoryCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.CreateRepository"};let o;o=JSON.stringify(serializeAws_json1_1CreateRepositoryRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1CreateRepositoryCommand=serializeAws_json1_1CreateRepositoryCommand;const serializeAws_json1_1DeleteLifecyclePolicyCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.DeleteLifecyclePolicy"};let o;o=JSON.stringify(serializeAws_json1_1DeleteLifecyclePolicyRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1DeleteLifecyclePolicyCommand=serializeAws_json1_1DeleteLifecyclePolicyCommand;const serializeAws_json1_1DeletePullThroughCacheRuleCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.DeletePullThroughCacheRule"};let o;o=JSON.stringify(serializeAws_json1_1DeletePullThroughCacheRuleRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1DeletePullThroughCacheRuleCommand=serializeAws_json1_1DeletePullThroughCacheRuleCommand;const serializeAws_json1_1DeleteRegistryPolicyCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.DeleteRegistryPolicy"};let o;o=JSON.stringify(serializeAws_json1_1DeleteRegistryPolicyRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1DeleteRegistryPolicyCommand=serializeAws_json1_1DeleteRegistryPolicyCommand;const serializeAws_json1_1DeleteRepositoryCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.DeleteRepository"};let o;o=JSON.stringify(serializeAws_json1_1DeleteRepositoryRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1DeleteRepositoryCommand=serializeAws_json1_1DeleteRepositoryCommand;const serializeAws_json1_1DeleteRepositoryPolicyCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.DeleteRepositoryPolicy"};let o;o=JSON.stringify(serializeAws_json1_1DeleteRepositoryPolicyRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1DeleteRepositoryPolicyCommand=serializeAws_json1_1DeleteRepositoryPolicyCommand;const serializeAws_json1_1DescribeImageReplicationStatusCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.DescribeImageReplicationStatus"};let o;o=JSON.stringify(serializeAws_json1_1DescribeImageReplicationStatusRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1DescribeImageReplicationStatusCommand=serializeAws_json1_1DescribeImageReplicationStatusCommand;const serializeAws_json1_1DescribeImagesCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.DescribeImages"};let o;o=JSON.stringify(serializeAws_json1_1DescribeImagesRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1DescribeImagesCommand=serializeAws_json1_1DescribeImagesCommand;const serializeAws_json1_1DescribeImageScanFindingsCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.DescribeImageScanFindings"};let o;o=JSON.stringify(serializeAws_json1_1DescribeImageScanFindingsRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1DescribeImageScanFindingsCommand=serializeAws_json1_1DescribeImageScanFindingsCommand;const serializeAws_json1_1DescribePullThroughCacheRulesCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.DescribePullThroughCacheRules"};let o;o=JSON.stringify(serializeAws_json1_1DescribePullThroughCacheRulesRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1DescribePullThroughCacheRulesCommand=serializeAws_json1_1DescribePullThroughCacheRulesCommand;const serializeAws_json1_1DescribeRegistryCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.DescribeRegistry"};let o;o=JSON.stringify(serializeAws_json1_1DescribeRegistryRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1DescribeRegistryCommand=serializeAws_json1_1DescribeRegistryCommand;const serializeAws_json1_1DescribeRepositoriesCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.DescribeRepositories"};let o;o=JSON.stringify(serializeAws_json1_1DescribeRepositoriesRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1DescribeRepositoriesCommand=serializeAws_json1_1DescribeRepositoriesCommand;const serializeAws_json1_1GetAuthorizationTokenCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.GetAuthorizationToken"};let o;o=JSON.stringify(serializeAws_json1_1GetAuthorizationTokenRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1GetAuthorizationTokenCommand=serializeAws_json1_1GetAuthorizationTokenCommand;const serializeAws_json1_1GetDownloadUrlForLayerCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.GetDownloadUrlForLayer"};let o;o=JSON.stringify(serializeAws_json1_1GetDownloadUrlForLayerRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1GetDownloadUrlForLayerCommand=serializeAws_json1_1GetDownloadUrlForLayerCommand;const serializeAws_json1_1GetLifecyclePolicyCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.GetLifecyclePolicy"};let o;o=JSON.stringify(serializeAws_json1_1GetLifecyclePolicyRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1GetLifecyclePolicyCommand=serializeAws_json1_1GetLifecyclePolicyCommand;const serializeAws_json1_1GetLifecyclePolicyPreviewCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.GetLifecyclePolicyPreview"};let o;o=JSON.stringify(serializeAws_json1_1GetLifecyclePolicyPreviewRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1GetLifecyclePolicyPreviewCommand=serializeAws_json1_1GetLifecyclePolicyPreviewCommand;const serializeAws_json1_1GetRegistryPolicyCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.GetRegistryPolicy"};let o;o=JSON.stringify(serializeAws_json1_1GetRegistryPolicyRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1GetRegistryPolicyCommand=serializeAws_json1_1GetRegistryPolicyCommand;const serializeAws_json1_1GetRegistryScanningConfigurationCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.GetRegistryScanningConfiguration"};let o;o=JSON.stringify(serializeAws_json1_1GetRegistryScanningConfigurationRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1GetRegistryScanningConfigurationCommand=serializeAws_json1_1GetRegistryScanningConfigurationCommand;const serializeAws_json1_1GetRepositoryPolicyCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.GetRepositoryPolicy"};let o;o=JSON.stringify(serializeAws_json1_1GetRepositoryPolicyRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1GetRepositoryPolicyCommand=serializeAws_json1_1GetRepositoryPolicyCommand;const serializeAws_json1_1InitiateLayerUploadCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.InitiateLayerUpload"};let o;o=JSON.stringify(serializeAws_json1_1InitiateLayerUploadRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1InitiateLayerUploadCommand=serializeAws_json1_1InitiateLayerUploadCommand;const serializeAws_json1_1ListImagesCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.ListImages"};let o;o=JSON.stringify(serializeAws_json1_1ListImagesRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1ListImagesCommand=serializeAws_json1_1ListImagesCommand;const serializeAws_json1_1ListTagsForResourceCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.ListTagsForResource"};let o;o=JSON.stringify(serializeAws_json1_1ListTagsForResourceRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1ListTagsForResourceCommand=serializeAws_json1_1ListTagsForResourceCommand;const serializeAws_json1_1PutImageCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.PutImage"};let o;o=JSON.stringify(serializeAws_json1_1PutImageRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1PutImageCommand=serializeAws_json1_1PutImageCommand;const serializeAws_json1_1PutImageScanningConfigurationCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.PutImageScanningConfiguration"};let o;o=JSON.stringify(serializeAws_json1_1PutImageScanningConfigurationRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1PutImageScanningConfigurationCommand=serializeAws_json1_1PutImageScanningConfigurationCommand;const serializeAws_json1_1PutImageTagMutabilityCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.PutImageTagMutability"};let o;o=JSON.stringify(serializeAws_json1_1PutImageTagMutabilityRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1PutImageTagMutabilityCommand=serializeAws_json1_1PutImageTagMutabilityCommand;const serializeAws_json1_1PutLifecyclePolicyCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.PutLifecyclePolicy"};let o;o=JSON.stringify(serializeAws_json1_1PutLifecyclePolicyRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1PutLifecyclePolicyCommand=serializeAws_json1_1PutLifecyclePolicyCommand;const serializeAws_json1_1PutRegistryPolicyCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.PutRegistryPolicy"};let o;o=JSON.stringify(serializeAws_json1_1PutRegistryPolicyRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1PutRegistryPolicyCommand=serializeAws_json1_1PutRegistryPolicyCommand;const serializeAws_json1_1PutRegistryScanningConfigurationCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.PutRegistryScanningConfiguration"};let o;o=JSON.stringify(serializeAws_json1_1PutRegistryScanningConfigurationRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1PutRegistryScanningConfigurationCommand=serializeAws_json1_1PutRegistryScanningConfigurationCommand;const serializeAws_json1_1PutReplicationConfigurationCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.PutReplicationConfiguration"};let o;o=JSON.stringify(serializeAws_json1_1PutReplicationConfigurationRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1PutReplicationConfigurationCommand=serializeAws_json1_1PutReplicationConfigurationCommand;const serializeAws_json1_1SetRepositoryPolicyCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.SetRepositoryPolicy"};let o;o=JSON.stringify(serializeAws_json1_1SetRepositoryPolicyRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1SetRepositoryPolicyCommand=serializeAws_json1_1SetRepositoryPolicyCommand;const serializeAws_json1_1StartImageScanCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.StartImageScan"};let o;o=JSON.stringify(serializeAws_json1_1StartImageScanRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1StartImageScanCommand=serializeAws_json1_1StartImageScanCommand;const serializeAws_json1_1StartLifecyclePolicyPreviewCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.StartLifecyclePolicyPreview"};let o;o=JSON.stringify(serializeAws_json1_1StartLifecyclePolicyPreviewRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1StartLifecyclePolicyPreviewCommand=serializeAws_json1_1StartLifecyclePolicyPreviewCommand;const serializeAws_json1_1TagResourceCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.TagResource"};let o;o=JSON.stringify(serializeAws_json1_1TagResourceRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1TagResourceCommand=serializeAws_json1_1TagResourceCommand;const serializeAws_json1_1UntagResourceCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.UntagResource"};let o;o=JSON.stringify(serializeAws_json1_1UntagResourceRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1UntagResourceCommand=serializeAws_json1_1UntagResourceCommand;const serializeAws_json1_1UploadLayerPartCommand=async(e,t)=>{const n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.UploadLayerPart"};let o;o=JSON.stringify(serializeAws_json1_1UploadLayerPartRequest(e,t));return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_json1_1UploadLayerPartCommand=serializeAws_json1_1UploadLayerPartCommand;const deserializeAws_json1_1BatchCheckLayerAvailabilityCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1BatchCheckLayerAvailabilityCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1BatchCheckLayerAvailabilityResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1BatchCheckLayerAvailabilityCommand=deserializeAws_json1_1BatchCheckLayerAvailabilityCommand;const deserializeAws_json1_1BatchCheckLayerAvailabilityCommandError=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 deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRServiceException,errorCode:o})}};const deserializeAws_json1_1BatchDeleteImageCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1BatchDeleteImageCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1BatchDeleteImageResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1BatchDeleteImageCommand=deserializeAws_json1_1BatchDeleteImageCommand;const deserializeAws_json1_1BatchDeleteImageCommandError=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 deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRServiceException,errorCode:o})}};const deserializeAws_json1_1BatchGetImageCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1BatchGetImageCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1BatchGetImageResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1BatchGetImageCommand=deserializeAws_json1_1BatchGetImageCommand;const deserializeAws_json1_1BatchGetImageCommandError=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 deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRServiceException,errorCode:o})}};const deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1BatchGetRepositoryScanningConfigurationResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand=deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand;const deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommandError=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 deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRServiceException,errorCode:o})}};const deserializeAws_json1_1CompleteLayerUploadCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1CompleteLayerUploadCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1CompleteLayerUploadResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1CompleteLayerUploadCommand=deserializeAws_json1_1CompleteLayerUploadCommand;const deserializeAws_json1_1CompleteLayerUploadCommandError=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 deserializeAws_json1_1EmptyUploadExceptionResponse(n,t);case"InvalidLayerException":case"com.amazonaws.ecr#InvalidLayerException":throw await deserializeAws_json1_1InvalidLayerExceptionResponse(n,t);case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"KmsException":case"com.amazonaws.ecr#KmsException":throw await deserializeAws_json1_1KmsExceptionResponse(n,t);case"LayerAlreadyExistsException":case"com.amazonaws.ecr#LayerAlreadyExistsException":throw await deserializeAws_json1_1LayerAlreadyExistsExceptionResponse(n,t);case"LayerPartTooSmallException":case"com.amazonaws.ecr#LayerPartTooSmallException":throw await deserializeAws_json1_1LayerPartTooSmallExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"UploadNotFoundException":case"com.amazonaws.ecr#UploadNotFoundException":throw await deserializeAws_json1_1UploadNotFoundExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRServiceException,errorCode:o})}};const deserializeAws_json1_1CreatePullThroughCacheRuleCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1CreatePullThroughCacheRuleCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1CreatePullThroughCacheRuleResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1CreatePullThroughCacheRuleCommand=deserializeAws_json1_1CreatePullThroughCacheRuleCommand;const deserializeAws_json1_1CreatePullThroughCacheRuleCommandError=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 deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"LimitExceededException":case"com.amazonaws.ecr#LimitExceededException":throw await deserializeAws_json1_1LimitExceededExceptionResponse(n,t);case"PullThroughCacheRuleAlreadyExistsException":case"com.amazonaws.ecr#PullThroughCacheRuleAlreadyExistsException":throw await deserializeAws_json1_1PullThroughCacheRuleAlreadyExistsExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"UnsupportedUpstreamRegistryException":case"com.amazonaws.ecr#UnsupportedUpstreamRegistryException":throw await deserializeAws_json1_1UnsupportedUpstreamRegistryExceptionResponse(n,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRServiceException,errorCode:o})}};const deserializeAws_json1_1CreateRepositoryCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1CreateRepositoryCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1CreateRepositoryResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1CreateRepositoryCommand=deserializeAws_json1_1CreateRepositoryCommand;const deserializeAws_json1_1CreateRepositoryCommandError=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 deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"InvalidTagParameterException":case"com.amazonaws.ecr#InvalidTagParameterException":throw await deserializeAws_json1_1InvalidTagParameterExceptionResponse(n,t);case"KmsException":case"com.amazonaws.ecr#KmsException":throw await deserializeAws_json1_1KmsExceptionResponse(n,t);case"LimitExceededException":case"com.amazonaws.ecr#LimitExceededException":throw await deserializeAws_json1_1LimitExceededExceptionResponse(n,t);case"RepositoryAlreadyExistsException":case"com.amazonaws.ecr#RepositoryAlreadyExistsException":throw await deserializeAws_json1_1RepositoryAlreadyExistsExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"TooManyTagsException":case"com.amazonaws.ecr#TooManyTagsException":throw await deserializeAws_json1_1TooManyTagsExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRServiceException,errorCode:o})}};const deserializeAws_json1_1DeleteLifecyclePolicyCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DeleteLifecyclePolicyCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1DeleteLifecyclePolicyResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1DeleteLifecyclePolicyCommand=deserializeAws_json1_1DeleteLifecyclePolicyCommand;const deserializeAws_json1_1DeleteLifecyclePolicyCommandError=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 deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"LifecyclePolicyNotFoundException":case"com.amazonaws.ecr#LifecyclePolicyNotFoundException":throw await deserializeAws_json1_1LifecyclePolicyNotFoundExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRServiceException,errorCode:o})}};const deserializeAws_json1_1DeletePullThroughCacheRuleCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DeletePullThroughCacheRuleCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1DeletePullThroughCacheRuleResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1DeletePullThroughCacheRuleCommand=deserializeAws_json1_1DeletePullThroughCacheRuleCommand;const deserializeAws_json1_1DeletePullThroughCacheRuleCommandError=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 deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"PullThroughCacheRuleNotFoundException":case"com.amazonaws.ecr#PullThroughCacheRuleNotFoundException":throw await deserializeAws_json1_1PullThroughCacheRuleNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRServiceException,errorCode:o})}};const deserializeAws_json1_1DeleteRegistryPolicyCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DeleteRegistryPolicyCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1DeleteRegistryPolicyResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1DeleteRegistryPolicyCommand=deserializeAws_json1_1DeleteRegistryPolicyCommand;const deserializeAws_json1_1DeleteRegistryPolicyCommandError=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 deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RegistryPolicyNotFoundException":case"com.amazonaws.ecr#RegistryPolicyNotFoundException":throw await deserializeAws_json1_1RegistryPolicyNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRServiceException,errorCode:o})}};const deserializeAws_json1_1DeleteRepositoryCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DeleteRepositoryCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1DeleteRepositoryResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1DeleteRepositoryCommand=deserializeAws_json1_1DeleteRepositoryCommand;const deserializeAws_json1_1DeleteRepositoryCommandError=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 deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"KmsException":case"com.amazonaws.ecr#KmsException":throw await deserializeAws_json1_1KmsExceptionResponse(n,t);case"RepositoryNotEmptyException":case"com.amazonaws.ecr#RepositoryNotEmptyException":throw await deserializeAws_json1_1RepositoryNotEmptyExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRServiceException,errorCode:o})}};const deserializeAws_json1_1DeleteRepositoryPolicyCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DeleteRepositoryPolicyCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1DeleteRepositoryPolicyResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1DeleteRepositoryPolicyCommand=deserializeAws_json1_1DeleteRepositoryPolicyCommand;const deserializeAws_json1_1DeleteRepositoryPolicyCommandError=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 deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"RepositoryPolicyNotFoundException":case"com.amazonaws.ecr#RepositoryPolicyNotFoundException":throw await deserializeAws_json1_1RepositoryPolicyNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRServiceException,errorCode:o})}};const deserializeAws_json1_1DescribeImageReplicationStatusCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DescribeImageReplicationStatusCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1DescribeImageReplicationStatusResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1DescribeImageReplicationStatusCommand=deserializeAws_json1_1DescribeImageReplicationStatusCommand;const deserializeAws_json1_1DescribeImageReplicationStatusCommandError=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 deserializeAws_json1_1ImageNotFoundExceptionResponse(n,t);case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRServiceException,errorCode:o})}};const deserializeAws_json1_1DescribeImagesCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DescribeImagesCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1DescribeImagesResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1DescribeImagesCommand=deserializeAws_json1_1DescribeImagesCommand;const deserializeAws_json1_1DescribeImagesCommandError=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 deserializeAws_json1_1ImageNotFoundExceptionResponse(n,t);case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRServiceException,errorCode:o})}};const deserializeAws_json1_1DescribeImageScanFindingsCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DescribeImageScanFindingsCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1DescribeImageScanFindingsResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1DescribeImageScanFindingsCommand=deserializeAws_json1_1DescribeImageScanFindingsCommand;const deserializeAws_json1_1DescribeImageScanFindingsCommandError=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 deserializeAws_json1_1ImageNotFoundExceptionResponse(n,t);case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ScanNotFoundException":case"com.amazonaws.ecr#ScanNotFoundException":throw await deserializeAws_json1_1ScanNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRServiceException,errorCode:o})}};const deserializeAws_json1_1DescribePullThroughCacheRulesCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DescribePullThroughCacheRulesCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1DescribePullThroughCacheRulesResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1DescribePullThroughCacheRulesCommand=deserializeAws_json1_1DescribePullThroughCacheRulesCommand;const deserializeAws_json1_1DescribePullThroughCacheRulesCommandError=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 deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"PullThroughCacheRuleNotFoundException":case"com.amazonaws.ecr#PullThroughCacheRuleNotFoundException":throw await deserializeAws_json1_1PullThroughCacheRuleNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRServiceException,errorCode:o})}};const deserializeAws_json1_1DescribeRegistryCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DescribeRegistryCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1DescribeRegistryResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1DescribeRegistryCommand=deserializeAws_json1_1DescribeRegistryCommand;const deserializeAws_json1_1DescribeRegistryCommandError=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 deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRServiceException,errorCode:o})}};const deserializeAws_json1_1DescribeRepositoriesCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DescribeRepositoriesCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1DescribeRepositoriesResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1DescribeRepositoriesCommand=deserializeAws_json1_1DescribeRepositoriesCommand;const deserializeAws_json1_1DescribeRepositoriesCommandError=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 deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRServiceException,errorCode:o})}};const deserializeAws_json1_1GetAuthorizationTokenCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1GetAuthorizationTokenCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1GetAuthorizationTokenResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1GetAuthorizationTokenCommand=deserializeAws_json1_1GetAuthorizationTokenCommand;const deserializeAws_json1_1GetAuthorizationTokenCommandError=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 deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRServiceException,errorCode:o})}};const deserializeAws_json1_1GetDownloadUrlForLayerCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1GetDownloadUrlForLayerCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1GetDownloadUrlForLayerResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1GetDownloadUrlForLayerCommand=deserializeAws_json1_1GetDownloadUrlForLayerCommand;const deserializeAws_json1_1GetDownloadUrlForLayerCommandError=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 deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"LayerInaccessibleException":case"com.amazonaws.ecr#LayerInaccessibleException":throw await deserializeAws_json1_1LayerInaccessibleExceptionResponse(n,t);case"LayersNotFoundException":case"com.amazonaws.ecr#LayersNotFoundException":throw await deserializeAws_json1_1LayersNotFoundExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRServiceException,errorCode:o})}};const deserializeAws_json1_1GetLifecyclePolicyCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1GetLifecyclePolicyCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1GetLifecyclePolicyResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1GetLifecyclePolicyCommand=deserializeAws_json1_1GetLifecyclePolicyCommand;const deserializeAws_json1_1GetLifecyclePolicyCommandError=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 deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"LifecyclePolicyNotFoundException":case"com.amazonaws.ecr#LifecyclePolicyNotFoundException":throw await deserializeAws_json1_1LifecyclePolicyNotFoundExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRServiceException,errorCode:o})}};const deserializeAws_json1_1GetLifecyclePolicyPreviewCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1GetLifecyclePolicyPreviewCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1GetLifecyclePolicyPreviewResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1GetLifecyclePolicyPreviewCommand=deserializeAws_json1_1GetLifecyclePolicyPreviewCommand;const deserializeAws_json1_1GetLifecyclePolicyPreviewCommandError=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 deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"LifecyclePolicyPreviewNotFoundException":case"com.amazonaws.ecr#LifecyclePolicyPreviewNotFoundException":throw await deserializeAws_json1_1LifecyclePolicyPreviewNotFoundExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRServiceException,errorCode:o})}};const deserializeAws_json1_1GetRegistryPolicyCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1GetRegistryPolicyCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1GetRegistryPolicyResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1GetRegistryPolicyCommand=deserializeAws_json1_1GetRegistryPolicyCommand;const deserializeAws_json1_1GetRegistryPolicyCommandError=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 deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RegistryPolicyNotFoundException":case"com.amazonaws.ecr#RegistryPolicyNotFoundException":throw await deserializeAws_json1_1RegistryPolicyNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRServiceException,errorCode:o})}};const deserializeAws_json1_1GetRegistryScanningConfigurationCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1GetRegistryScanningConfigurationCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1GetRegistryScanningConfigurationResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1GetRegistryScanningConfigurationCommand=deserializeAws_json1_1GetRegistryScanningConfigurationCommand;const deserializeAws_json1_1GetRegistryScanningConfigurationCommandError=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 deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRServiceException,errorCode:o})}};const deserializeAws_json1_1GetRepositoryPolicyCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1GetRepositoryPolicyCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1GetRepositoryPolicyResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1GetRepositoryPolicyCommand=deserializeAws_json1_1GetRepositoryPolicyCommand;const deserializeAws_json1_1GetRepositoryPolicyCommandError=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 deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"RepositoryPolicyNotFoundException":case"com.amazonaws.ecr#RepositoryPolicyNotFoundException":throw await deserializeAws_json1_1RepositoryPolicyNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRServiceException,errorCode:o})}};const deserializeAws_json1_1InitiateLayerUploadCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1InitiateLayerUploadCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1InitiateLayerUploadResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1InitiateLayerUploadCommand=deserializeAws_json1_1InitiateLayerUploadCommand;const deserializeAws_json1_1InitiateLayerUploadCommandError=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 deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"KmsException":case"com.amazonaws.ecr#KmsException":throw await deserializeAws_json1_1KmsExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRServiceException,errorCode:o})}};const deserializeAws_json1_1ListImagesCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1ListImagesCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1ListImagesResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1ListImagesCommand=deserializeAws_json1_1ListImagesCommand;const deserializeAws_json1_1ListImagesCommandError=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 deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRServiceException,errorCode:o})}};const deserializeAws_json1_1ListTagsForResourceCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1ListTagsForResourceCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1ListTagsForResourceResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1ListTagsForResourceCommand=deserializeAws_json1_1ListTagsForResourceCommand;const deserializeAws_json1_1ListTagsForResourceCommandError=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 deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRServiceException,errorCode:o})}};const deserializeAws_json1_1PutImageCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1PutImageCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1PutImageResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1PutImageCommand=deserializeAws_json1_1PutImageCommand;const deserializeAws_json1_1PutImageCommandError=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 deserializeAws_json1_1ImageAlreadyExistsExceptionResponse(n,t);case"ImageDigestDoesNotMatchException":case"com.amazonaws.ecr#ImageDigestDoesNotMatchException":throw await deserializeAws_json1_1ImageDigestDoesNotMatchExceptionResponse(n,t);case"ImageTagAlreadyExistsException":case"com.amazonaws.ecr#ImageTagAlreadyExistsException":throw await deserializeAws_json1_1ImageTagAlreadyExistsExceptionResponse(n,t);case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"KmsException":case"com.amazonaws.ecr#KmsException":throw await deserializeAws_json1_1KmsExceptionResponse(n,t);case"LayersNotFoundException":case"com.amazonaws.ecr#LayersNotFoundException":throw await deserializeAws_json1_1LayersNotFoundExceptionResponse(n,t);case"LimitExceededException":case"com.amazonaws.ecr#LimitExceededException":throw await deserializeAws_json1_1LimitExceededExceptionResponse(n,t);case"ReferencedImagesNotFoundException":case"com.amazonaws.ecr#ReferencedImagesNotFoundException":throw await deserializeAws_json1_1ReferencedImagesNotFoundExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRServiceException,errorCode:o})}};const deserializeAws_json1_1PutImageScanningConfigurationCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1PutImageScanningConfigurationCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1PutImageScanningConfigurationResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1PutImageScanningConfigurationCommand=deserializeAws_json1_1PutImageScanningConfigurationCommand;const deserializeAws_json1_1PutImageScanningConfigurationCommandError=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 deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRServiceException,errorCode:o})}};const deserializeAws_json1_1PutImageTagMutabilityCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1PutImageTagMutabilityCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1PutImageTagMutabilityResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1PutImageTagMutabilityCommand=deserializeAws_json1_1PutImageTagMutabilityCommand;const deserializeAws_json1_1PutImageTagMutabilityCommandError=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 deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRServiceException,errorCode:o})}};const deserializeAws_json1_1PutLifecyclePolicyCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1PutLifecyclePolicyCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1PutLifecyclePolicyResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1PutLifecyclePolicyCommand=deserializeAws_json1_1PutLifecyclePolicyCommand;const deserializeAws_json1_1PutLifecyclePolicyCommandError=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 deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRServiceException,errorCode:o})}};const deserializeAws_json1_1PutRegistryPolicyCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1PutRegistryPolicyCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1PutRegistryPolicyResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1PutRegistryPolicyCommand=deserializeAws_json1_1PutRegistryPolicyCommand;const deserializeAws_json1_1PutRegistryPolicyCommandError=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 deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRServiceException,errorCode:o})}};const deserializeAws_json1_1PutRegistryScanningConfigurationCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1PutRegistryScanningConfigurationCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1PutRegistryScanningConfigurationResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1PutRegistryScanningConfigurationCommand=deserializeAws_json1_1PutRegistryScanningConfigurationCommand;const deserializeAws_json1_1PutRegistryScanningConfigurationCommandError=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 deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRServiceException,errorCode:o})}};const deserializeAws_json1_1PutReplicationConfigurationCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1PutReplicationConfigurationCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1PutReplicationConfigurationResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1PutReplicationConfigurationCommand=deserializeAws_json1_1PutReplicationConfigurationCommand;const deserializeAws_json1_1PutReplicationConfigurationCommandError=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 deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRServiceException,errorCode:o})}};const deserializeAws_json1_1SetRepositoryPolicyCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1SetRepositoryPolicyCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1SetRepositoryPolicyResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1SetRepositoryPolicyCommand=deserializeAws_json1_1SetRepositoryPolicyCommand;const deserializeAws_json1_1SetRepositoryPolicyCommandError=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 deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRServiceException,errorCode:o})}};const deserializeAws_json1_1StartImageScanCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1StartImageScanCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1StartImageScanResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1StartImageScanCommand=deserializeAws_json1_1StartImageScanCommand;const deserializeAws_json1_1StartImageScanCommandError=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 deserializeAws_json1_1ImageNotFoundExceptionResponse(n,t);case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"LimitExceededException":case"com.amazonaws.ecr#LimitExceededException":throw await deserializeAws_json1_1LimitExceededExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"UnsupportedImageTypeException":case"com.amazonaws.ecr#UnsupportedImageTypeException":throw await deserializeAws_json1_1UnsupportedImageTypeExceptionResponse(n,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRServiceException,errorCode:o})}};const deserializeAws_json1_1StartLifecyclePolicyPreviewCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1StartLifecyclePolicyPreviewCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1StartLifecyclePolicyPreviewResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1StartLifecyclePolicyPreviewCommand=deserializeAws_json1_1StartLifecyclePolicyPreviewCommand;const deserializeAws_json1_1StartLifecyclePolicyPreviewCommandError=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 deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"LifecyclePolicyNotFoundException":case"com.amazonaws.ecr#LifecyclePolicyNotFoundException":throw await deserializeAws_json1_1LifecyclePolicyNotFoundExceptionResponse(n,t);case"LifecyclePolicyPreviewInProgressException":case"com.amazonaws.ecr#LifecyclePolicyPreviewInProgressException":throw await deserializeAws_json1_1LifecyclePolicyPreviewInProgressExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRServiceException,errorCode:o})}};const deserializeAws_json1_1TagResourceCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1TagResourceCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1TagResourceResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1TagResourceCommand=deserializeAws_json1_1TagResourceCommand;const deserializeAws_json1_1TagResourceCommandError=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 deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"InvalidTagParameterException":case"com.amazonaws.ecr#InvalidTagParameterException":throw await deserializeAws_json1_1InvalidTagParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"TooManyTagsException":case"com.amazonaws.ecr#TooManyTagsException":throw await deserializeAws_json1_1TooManyTagsExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRServiceException,errorCode:o})}};const deserializeAws_json1_1UntagResourceCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1UntagResourceCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1UntagResourceResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1UntagResourceCommand=deserializeAws_json1_1UntagResourceCommand;const deserializeAws_json1_1UntagResourceCommandError=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 deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"InvalidTagParameterException":case"com.amazonaws.ecr#InvalidTagParameterException":throw await deserializeAws_json1_1InvalidTagParameterExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"TooManyTagsException":case"com.amazonaws.ecr#TooManyTagsException":throw await deserializeAws_json1_1TooManyTagsExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRServiceException,errorCode:o})}};const deserializeAws_json1_1UploadLayerPartCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1UploadLayerPartCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_json1_1UploadLayerPartResponse(n,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_json1_1UploadLayerPartCommand=deserializeAws_json1_1UploadLayerPartCommand;const deserializeAws_json1_1UploadLayerPartCommandError=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 deserializeAws_json1_1InvalidLayerPartExceptionResponse(n,t);case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(n,t);case"KmsException":case"com.amazonaws.ecr#KmsException":throw await deserializeAws_json1_1KmsExceptionResponse(n,t);case"LimitExceededException":case"com.amazonaws.ecr#LimitExceededException":throw await deserializeAws_json1_1LimitExceededExceptionResponse(n,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(n,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(n,t);case"UploadNotFoundException":case"com.amazonaws.ecr#UploadNotFoundException":throw await deserializeAws_json1_1UploadNotFoundExceptionResponse(n,t);default:const s=n.body;(0,r.throwDefaultError)({output:e,parsedBody:s,exceptionCtor:i.ECRServiceException,errorCode:o})}};const deserializeAws_json1_1EmptyUploadExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1EmptyUploadException(n,t);const i=new s.EmptyUploadException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_json1_1ImageAlreadyExistsExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1ImageAlreadyExistsException(n,t);const i=new s.ImageAlreadyExistsException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_json1_1ImageDigestDoesNotMatchExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1ImageDigestDoesNotMatchException(n,t);const i=new s.ImageDigestDoesNotMatchException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_json1_1ImageNotFoundExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1ImageNotFoundException(n,t);const i=new s.ImageNotFoundException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_json1_1ImageTagAlreadyExistsExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1ImageTagAlreadyExistsException(n,t);const i=new s.ImageTagAlreadyExistsException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_json1_1InvalidLayerExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1InvalidLayerException(n,t);const i=new s.InvalidLayerException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_json1_1InvalidLayerPartExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1InvalidLayerPartException(n,t);const i=new s.InvalidLayerPartException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_json1_1InvalidParameterExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1InvalidParameterException(n,t);const i=new s.InvalidParameterException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_json1_1InvalidTagParameterExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1InvalidTagParameterException(n,t);const i=new s.InvalidTagParameterException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_json1_1KmsExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1KmsException(n,t);const i=new s.KmsException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_json1_1LayerAlreadyExistsExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1LayerAlreadyExistsException(n,t);const i=new s.LayerAlreadyExistsException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_json1_1LayerInaccessibleExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1LayerInaccessibleException(n,t);const i=new s.LayerInaccessibleException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_json1_1LayerPartTooSmallExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1LayerPartTooSmallException(n,t);const i=new s.LayerPartTooSmallException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_json1_1LayersNotFoundExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1LayersNotFoundException(n,t);const i=new s.LayersNotFoundException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_json1_1LifecyclePolicyNotFoundExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1LifecyclePolicyNotFoundException(n,t);const i=new s.LifecyclePolicyNotFoundException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_json1_1LifecyclePolicyPreviewInProgressExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1LifecyclePolicyPreviewInProgressException(n,t);const i=new s.LifecyclePolicyPreviewInProgressException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_json1_1LifecyclePolicyPreviewNotFoundExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1LifecyclePolicyPreviewNotFoundException(n,t);const i=new s.LifecyclePolicyPreviewNotFoundException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_json1_1LimitExceededExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1LimitExceededException(n,t);const i=new s.LimitExceededException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_json1_1PullThroughCacheRuleAlreadyExistsExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1PullThroughCacheRuleAlreadyExistsException(n,t);const i=new s.PullThroughCacheRuleAlreadyExistsException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_json1_1PullThroughCacheRuleNotFoundExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1PullThroughCacheRuleNotFoundException(n,t);const i=new s.PullThroughCacheRuleNotFoundException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_json1_1ReferencedImagesNotFoundExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1ReferencedImagesNotFoundException(n,t);const i=new s.ReferencedImagesNotFoundException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_json1_1RegistryPolicyNotFoundExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1RegistryPolicyNotFoundException(n,t);const i=new s.RegistryPolicyNotFoundException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_json1_1RepositoryAlreadyExistsExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1RepositoryAlreadyExistsException(n,t);const i=new s.RepositoryAlreadyExistsException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_json1_1RepositoryNotEmptyExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1RepositoryNotEmptyException(n,t);const i=new s.RepositoryNotEmptyException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_json1_1RepositoryNotFoundExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1RepositoryNotFoundException(n,t);const i=new s.RepositoryNotFoundException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_json1_1RepositoryPolicyNotFoundExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1RepositoryPolicyNotFoundException(n,t);const i=new s.RepositoryPolicyNotFoundException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_json1_1ScanNotFoundExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1ScanNotFoundException(n,t);const i=new s.ScanNotFoundException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_json1_1ServerExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1ServerException(n,t);const i=new s.ServerException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_json1_1TooManyTagsExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1TooManyTagsException(n,t);const i=new s.TooManyTagsException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_json1_1UnsupportedImageTypeExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1UnsupportedImageTypeException(n,t);const i=new s.UnsupportedImageTypeException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_json1_1UnsupportedUpstreamRegistryExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1UnsupportedUpstreamRegistryException(n,t);const i=new s.UnsupportedUpstreamRegistryException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_json1_1UploadNotFoundExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1UploadNotFoundException(n,t);const i=new s.UploadNotFoundException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_json1_1ValidationExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_json1_1ValidationException(n,t);const i=new s.ValidationException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const serializeAws_json1_1BatchCheckLayerAvailabilityRequest=(e,t)=>({...e.layerDigests!=null&&{layerDigests:serializeAws_json1_1BatchedOperationLayerDigestList(e.layerDigests,t)},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1BatchDeleteImageRequest=(e,t)=>({...e.imageIds!=null&&{imageIds:serializeAws_json1_1ImageIdentifierList(e.imageIds,t)},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1BatchedOperationLayerDigestList=(e,t)=>e.filter((e=>e!=null)).map((e=>e));const serializeAws_json1_1BatchGetImageRequest=(e,t)=>({...e.acceptedMediaTypes!=null&&{acceptedMediaTypes:serializeAws_json1_1MediaTypeList(e.acceptedMediaTypes,t)},...e.imageIds!=null&&{imageIds:serializeAws_json1_1ImageIdentifierList(e.imageIds,t)},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1BatchGetRepositoryScanningConfigurationRequest=(e,t)=>({...e.repositoryNames!=null&&{repositoryNames:serializeAws_json1_1ScanningConfigurationRepositoryNameList(e.repositoryNames,t)}});const serializeAws_json1_1CompleteLayerUploadRequest=(e,t)=>({...e.layerDigests!=null&&{layerDigests:serializeAws_json1_1LayerDigestList(e.layerDigests,t)},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName},...e.uploadId!=null&&{uploadId:e.uploadId}});const serializeAws_json1_1CreatePullThroughCacheRuleRequest=(e,t)=>({...e.ecrRepositoryPrefix!=null&&{ecrRepositoryPrefix:e.ecrRepositoryPrefix},...e.registryId!=null&&{registryId:e.registryId},...e.upstreamRegistryUrl!=null&&{upstreamRegistryUrl:e.upstreamRegistryUrl}});const serializeAws_json1_1CreateRepositoryRequest=(e,t)=>({...e.encryptionConfiguration!=null&&{encryptionConfiguration:serializeAws_json1_1EncryptionConfiguration(e.encryptionConfiguration,t)},...e.imageScanningConfiguration!=null&&{imageScanningConfiguration:serializeAws_json1_1ImageScanningConfiguration(e.imageScanningConfiguration,t)},...e.imageTagMutability!=null&&{imageTagMutability:e.imageTagMutability},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName},...e.tags!=null&&{tags:serializeAws_json1_1TagList(e.tags,t)}});const serializeAws_json1_1DeleteLifecyclePolicyRequest=(e,t)=>({...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1DeletePullThroughCacheRuleRequest=(e,t)=>({...e.ecrRepositoryPrefix!=null&&{ecrRepositoryPrefix:e.ecrRepositoryPrefix},...e.registryId!=null&&{registryId:e.registryId}});const serializeAws_json1_1DeleteRegistryPolicyRequest=(e,t)=>({});const serializeAws_json1_1DeleteRepositoryPolicyRequest=(e,t)=>({...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1DeleteRepositoryRequest=(e,t)=>({...e.force!=null&&{force:e.force},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1DescribeImageReplicationStatusRequest=(e,t)=>({...e.imageId!=null&&{imageId:serializeAws_json1_1ImageIdentifier(e.imageId,t)},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1DescribeImageScanFindingsRequest=(e,t)=>({...e.imageId!=null&&{imageId:serializeAws_json1_1ImageIdentifier(e.imageId,t)},...e.maxResults!=null&&{maxResults:e.maxResults},...e.nextToken!=null&&{nextToken:e.nextToken},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1DescribeImagesFilter=(e,t)=>({...e.tagStatus!=null&&{tagStatus:e.tagStatus}});const serializeAws_json1_1DescribeImagesRequest=(e,t)=>({...e.filter!=null&&{filter:serializeAws_json1_1DescribeImagesFilter(e.filter,t)},...e.imageIds!=null&&{imageIds:serializeAws_json1_1ImageIdentifierList(e.imageIds,t)},...e.maxResults!=null&&{maxResults:e.maxResults},...e.nextToken!=null&&{nextToken:e.nextToken},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1DescribePullThroughCacheRulesRequest=(e,t)=>({...e.ecrRepositoryPrefixes!=null&&{ecrRepositoryPrefixes:serializeAws_json1_1PullThroughCacheRuleRepositoryPrefixList(e.ecrRepositoryPrefixes,t)},...e.maxResults!=null&&{maxResults:e.maxResults},...e.nextToken!=null&&{nextToken:e.nextToken},...e.registryId!=null&&{registryId:e.registryId}});const serializeAws_json1_1DescribeRegistryRequest=(e,t)=>({});const serializeAws_json1_1DescribeRepositoriesRequest=(e,t)=>({...e.maxResults!=null&&{maxResults:e.maxResults},...e.nextToken!=null&&{nextToken:e.nextToken},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryNames!=null&&{repositoryNames:serializeAws_json1_1RepositoryNameList(e.repositoryNames,t)}});const serializeAws_json1_1EncryptionConfiguration=(e,t)=>({...e.encryptionType!=null&&{encryptionType:e.encryptionType},...e.kmsKey!=null&&{kmsKey:e.kmsKey}});const serializeAws_json1_1GetAuthorizationTokenRegistryIdList=(e,t)=>e.filter((e=>e!=null)).map((e=>e));const serializeAws_json1_1GetAuthorizationTokenRequest=(e,t)=>({...e.registryIds!=null&&{registryIds:serializeAws_json1_1GetAuthorizationTokenRegistryIdList(e.registryIds,t)}});const serializeAws_json1_1GetDownloadUrlForLayerRequest=(e,t)=>({...e.layerDigest!=null&&{layerDigest:e.layerDigest},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1GetLifecyclePolicyPreviewRequest=(e,t)=>({...e.filter!=null&&{filter:serializeAws_json1_1LifecyclePolicyPreviewFilter(e.filter,t)},...e.imageIds!=null&&{imageIds:serializeAws_json1_1ImageIdentifierList(e.imageIds,t)},...e.maxResults!=null&&{maxResults:e.maxResults},...e.nextToken!=null&&{nextToken:e.nextToken},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1GetLifecyclePolicyRequest=(e,t)=>({...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1GetRegistryPolicyRequest=(e,t)=>({});const serializeAws_json1_1GetRegistryScanningConfigurationRequest=(e,t)=>({});const serializeAws_json1_1GetRepositoryPolicyRequest=(e,t)=>({...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1ImageIdentifier=(e,t)=>({...e.imageDigest!=null&&{imageDigest:e.imageDigest},...e.imageTag!=null&&{imageTag:e.imageTag}});const serializeAws_json1_1ImageIdentifierList=(e,t)=>e.filter((e=>e!=null)).map((e=>serializeAws_json1_1ImageIdentifier(e,t)));const serializeAws_json1_1ImageScanningConfiguration=(e,t)=>({...e.scanOnPush!=null&&{scanOnPush:e.scanOnPush}});const serializeAws_json1_1InitiateLayerUploadRequest=(e,t)=>({...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1LayerDigestList=(e,t)=>e.filter((e=>e!=null)).map((e=>e));const serializeAws_json1_1LifecyclePolicyPreviewFilter=(e,t)=>({...e.tagStatus!=null&&{tagStatus:e.tagStatus}});const serializeAws_json1_1ListImagesFilter=(e,t)=>({...e.tagStatus!=null&&{tagStatus:e.tagStatus}});const serializeAws_json1_1ListImagesRequest=(e,t)=>({...e.filter!=null&&{filter:serializeAws_json1_1ListImagesFilter(e.filter,t)},...e.maxResults!=null&&{maxResults:e.maxResults},...e.nextToken!=null&&{nextToken:e.nextToken},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1ListTagsForResourceRequest=(e,t)=>({...e.resourceArn!=null&&{resourceArn:e.resourceArn}});const serializeAws_json1_1MediaTypeList=(e,t)=>e.filter((e=>e!=null)).map((e=>e));const serializeAws_json1_1PullThroughCacheRuleRepositoryPrefixList=(e,t)=>e.filter((e=>e!=null)).map((e=>e));const serializeAws_json1_1PutImageRequest=(e,t)=>({...e.imageDigest!=null&&{imageDigest:e.imageDigest},...e.imageManifest!=null&&{imageManifest:e.imageManifest},...e.imageManifestMediaType!=null&&{imageManifestMediaType:e.imageManifestMediaType},...e.imageTag!=null&&{imageTag:e.imageTag},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1PutImageScanningConfigurationRequest=(e,t)=>({...e.imageScanningConfiguration!=null&&{imageScanningConfiguration:serializeAws_json1_1ImageScanningConfiguration(e.imageScanningConfiguration,t)},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1PutImageTagMutabilityRequest=(e,t)=>({...e.imageTagMutability!=null&&{imageTagMutability:e.imageTagMutability},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1PutLifecyclePolicyRequest=(e,t)=>({...e.lifecyclePolicyText!=null&&{lifecyclePolicyText:e.lifecyclePolicyText},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1PutRegistryPolicyRequest=(e,t)=>({...e.policyText!=null&&{policyText:e.policyText}});const serializeAws_json1_1PutRegistryScanningConfigurationRequest=(e,t)=>({...e.rules!=null&&{rules:serializeAws_json1_1RegistryScanningRuleList(e.rules,t)},...e.scanType!=null&&{scanType:e.scanType}});const serializeAws_json1_1PutReplicationConfigurationRequest=(e,t)=>({...e.replicationConfiguration!=null&&{replicationConfiguration:serializeAws_json1_1ReplicationConfiguration(e.replicationConfiguration,t)}});const serializeAws_json1_1RegistryScanningRule=(e,t)=>({...e.repositoryFilters!=null&&{repositoryFilters:serializeAws_json1_1ScanningRepositoryFilterList(e.repositoryFilters,t)},...e.scanFrequency!=null&&{scanFrequency:e.scanFrequency}});const serializeAws_json1_1RegistryScanningRuleList=(e,t)=>e.filter((e=>e!=null)).map((e=>serializeAws_json1_1RegistryScanningRule(e,t)));const serializeAws_json1_1ReplicationConfiguration=(e,t)=>({...e.rules!=null&&{rules:serializeAws_json1_1ReplicationRuleList(e.rules,t)}});const serializeAws_json1_1ReplicationDestination=(e,t)=>({...e.region!=null&&{region:e.region},...e.registryId!=null&&{registryId:e.registryId}});const serializeAws_json1_1ReplicationDestinationList=(e,t)=>e.filter((e=>e!=null)).map((e=>serializeAws_json1_1ReplicationDestination(e,t)));const serializeAws_json1_1ReplicationRule=(e,t)=>({...e.destinations!=null&&{destinations:serializeAws_json1_1ReplicationDestinationList(e.destinations,t)},...e.repositoryFilters!=null&&{repositoryFilters:serializeAws_json1_1RepositoryFilterList(e.repositoryFilters,t)}});const serializeAws_json1_1ReplicationRuleList=(e,t)=>e.filter((e=>e!=null)).map((e=>serializeAws_json1_1ReplicationRule(e,t)));const serializeAws_json1_1RepositoryFilter=(e,t)=>({...e.filter!=null&&{filter:e.filter},...e.filterType!=null&&{filterType:e.filterType}});const serializeAws_json1_1RepositoryFilterList=(e,t)=>e.filter((e=>e!=null)).map((e=>serializeAws_json1_1RepositoryFilter(e,t)));const serializeAws_json1_1RepositoryNameList=(e,t)=>e.filter((e=>e!=null)).map((e=>e));const serializeAws_json1_1ScanningConfigurationRepositoryNameList=(e,t)=>e.filter((e=>e!=null)).map((e=>e));const serializeAws_json1_1ScanningRepositoryFilter=(e,t)=>({...e.filter!=null&&{filter:e.filter},...e.filterType!=null&&{filterType:e.filterType}});const serializeAws_json1_1ScanningRepositoryFilterList=(e,t)=>e.filter((e=>e!=null)).map((e=>serializeAws_json1_1ScanningRepositoryFilter(e,t)));const serializeAws_json1_1SetRepositoryPolicyRequest=(e,t)=>({...e.force!=null&&{force:e.force},...e.policyText!=null&&{policyText:e.policyText},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1StartImageScanRequest=(e,t)=>({...e.imageId!=null&&{imageId:serializeAws_json1_1ImageIdentifier(e.imageId,t)},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1StartLifecyclePolicyPreviewRequest=(e,t)=>({...e.lifecyclePolicyText!=null&&{lifecyclePolicyText:e.lifecyclePolicyText},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1Tag=(e,t)=>({...e.Key!=null&&{Key:e.Key},...e.Value!=null&&{Value:e.Value}});const serializeAws_json1_1TagKeyList=(e,t)=>e.filter((e=>e!=null)).map((e=>e));const serializeAws_json1_1TagList=(e,t)=>e.filter((e=>e!=null)).map((e=>serializeAws_json1_1Tag(e,t)));const serializeAws_json1_1TagResourceRequest=(e,t)=>({...e.resourceArn!=null&&{resourceArn:e.resourceArn},...e.tags!=null&&{tags:serializeAws_json1_1TagList(e.tags,t)}});const serializeAws_json1_1UntagResourceRequest=(e,t)=>({...e.resourceArn!=null&&{resourceArn:e.resourceArn},...e.tagKeys!=null&&{tagKeys:serializeAws_json1_1TagKeyList(e.tagKeys,t)}});const serializeAws_json1_1UploadLayerPartRequest=(e,t)=>({...e.layerPartBlob!=null&&{layerPartBlob:t.base64Encoder(e.layerPartBlob)},...e.partFirstByte!=null&&{partFirstByte:e.partFirstByte},...e.partLastByte!=null&&{partLastByte:e.partLastByte},...e.registryId!=null&&{registryId:e.registryId},...e.repositoryName!=null&&{repositoryName:e.repositoryName},...e.uploadId!=null&&{uploadId:e.uploadId}});const deserializeAws_json1_1Attribute=(e,t)=>({key:(0,r.expectString)(e.key),value:(0,r.expectString)(e.value)});const deserializeAws_json1_1AttributeList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1Attribute(e,t)}));return n};const deserializeAws_json1_1AuthorizationData=(e,t)=>({authorizationToken:(0,r.expectString)(e.authorizationToken),expiresAt:e.expiresAt!=null?(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e.expiresAt))):undefined,proxyEndpoint:(0,r.expectString)(e.proxyEndpoint)});const deserializeAws_json1_1AuthorizationDataList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1AuthorizationData(e,t)}));return n};const deserializeAws_json1_1AwsEcrContainerImageDetails=(e,t)=>({architecture:(0,r.expectString)(e.architecture),author:(0,r.expectString)(e.author),imageHash:(0,r.expectString)(e.imageHash),imageTags:e.imageTags!=null?deserializeAws_json1_1ImageTagsList(e.imageTags,t):undefined,platform:(0,r.expectString)(e.platform),pushedAt:e.pushedAt!=null?(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e.pushedAt))):undefined,registry:(0,r.expectString)(e.registry),repositoryName:(0,r.expectString)(e.repositoryName)});const deserializeAws_json1_1BatchCheckLayerAvailabilityResponse=(e,t)=>({failures:e.failures!=null?deserializeAws_json1_1LayerFailureList(e.failures,t):undefined,layers:e.layers!=null?deserializeAws_json1_1LayerList(e.layers,t):undefined});const deserializeAws_json1_1BatchDeleteImageResponse=(e,t)=>({failures:e.failures!=null?deserializeAws_json1_1ImageFailureList(e.failures,t):undefined,imageIds:e.imageIds!=null?deserializeAws_json1_1ImageIdentifierList(e.imageIds,t):undefined});const deserializeAws_json1_1BatchGetImageResponse=(e,t)=>({failures:e.failures!=null?deserializeAws_json1_1ImageFailureList(e.failures,t):undefined,images:e.images!=null?deserializeAws_json1_1ImageList(e.images,t):undefined});const deserializeAws_json1_1BatchGetRepositoryScanningConfigurationResponse=(e,t)=>({failures:e.failures!=null?deserializeAws_json1_1RepositoryScanningConfigurationFailureList(e.failures,t):undefined,scanningConfigurations:e.scanningConfigurations!=null?deserializeAws_json1_1RepositoryScanningConfigurationList(e.scanningConfigurations,t):undefined});const deserializeAws_json1_1CompleteLayerUploadResponse=(e,t)=>({layerDigest:(0,r.expectString)(e.layerDigest),registryId:(0,r.expectString)(e.registryId),repositoryName:(0,r.expectString)(e.repositoryName),uploadId:(0,r.expectString)(e.uploadId)});const deserializeAws_json1_1CreatePullThroughCacheRuleResponse=(e,t)=>({createdAt:e.createdAt!=null?(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e.createdAt))):undefined,ecrRepositoryPrefix:(0,r.expectString)(e.ecrRepositoryPrefix),registryId:(0,r.expectString)(e.registryId),upstreamRegistryUrl:(0,r.expectString)(e.upstreamRegistryUrl)});const deserializeAws_json1_1CreateRepositoryResponse=(e,t)=>({repository:e.repository!=null?deserializeAws_json1_1Repository(e.repository,t):undefined});const deserializeAws_json1_1CvssScore=(e,t)=>({baseScore:(0,r.limitedParseDouble)(e.baseScore),scoringVector:(0,r.expectString)(e.scoringVector),source:(0,r.expectString)(e.source),version:(0,r.expectString)(e.version)});const deserializeAws_json1_1CvssScoreAdjustment=(e,t)=>({metric:(0,r.expectString)(e.metric),reason:(0,r.expectString)(e.reason)});const deserializeAws_json1_1CvssScoreAdjustmentList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1CvssScoreAdjustment(e,t)}));return n};const deserializeAws_json1_1CvssScoreDetails=(e,t)=>({adjustments:e.adjustments!=null?deserializeAws_json1_1CvssScoreAdjustmentList(e.adjustments,t):undefined,score:(0,r.limitedParseDouble)(e.score),scoreSource:(0,r.expectString)(e.scoreSource),scoringVector:(0,r.expectString)(e.scoringVector),version:(0,r.expectString)(e.version)});const deserializeAws_json1_1CvssScoreList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1CvssScore(e,t)}));return n};const deserializeAws_json1_1DeleteLifecyclePolicyResponse=(e,t)=>({lastEvaluatedAt:e.lastEvaluatedAt!=null?(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e.lastEvaluatedAt))):undefined,lifecyclePolicyText:(0,r.expectString)(e.lifecyclePolicyText),registryId:(0,r.expectString)(e.registryId),repositoryName:(0,r.expectString)(e.repositoryName)});const deserializeAws_json1_1DeletePullThroughCacheRuleResponse=(e,t)=>({createdAt:e.createdAt!=null?(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e.createdAt))):undefined,ecrRepositoryPrefix:(0,r.expectString)(e.ecrRepositoryPrefix),registryId:(0,r.expectString)(e.registryId),upstreamRegistryUrl:(0,r.expectString)(e.upstreamRegistryUrl)});const deserializeAws_json1_1DeleteRegistryPolicyResponse=(e,t)=>({policyText:(0,r.expectString)(e.policyText),registryId:(0,r.expectString)(e.registryId)});const deserializeAws_json1_1DeleteRepositoryPolicyResponse=(e,t)=>({policyText:(0,r.expectString)(e.policyText),registryId:(0,r.expectString)(e.registryId),repositoryName:(0,r.expectString)(e.repositoryName)});const deserializeAws_json1_1DeleteRepositoryResponse=(e,t)=>({repository:e.repository!=null?deserializeAws_json1_1Repository(e.repository,t):undefined});const deserializeAws_json1_1DescribeImageReplicationStatusResponse=(e,t)=>({imageId:e.imageId!=null?deserializeAws_json1_1ImageIdentifier(e.imageId,t):undefined,replicationStatuses:e.replicationStatuses!=null?deserializeAws_json1_1ImageReplicationStatusList(e.replicationStatuses,t):undefined,repositoryName:(0,r.expectString)(e.repositoryName)});const deserializeAws_json1_1DescribeImageScanFindingsResponse=(e,t)=>({imageId:e.imageId!=null?deserializeAws_json1_1ImageIdentifier(e.imageId,t):undefined,imageScanFindings:e.imageScanFindings!=null?deserializeAws_json1_1ImageScanFindings(e.imageScanFindings,t):undefined,imageScanStatus:e.imageScanStatus!=null?deserializeAws_json1_1ImageScanStatus(e.imageScanStatus,t):undefined,nextToken:(0,r.expectString)(e.nextToken),registryId:(0,r.expectString)(e.registryId),repositoryName:(0,r.expectString)(e.repositoryName)});const deserializeAws_json1_1DescribeImagesResponse=(e,t)=>({imageDetails:e.imageDetails!=null?deserializeAws_json1_1ImageDetailList(e.imageDetails,t):undefined,nextToken:(0,r.expectString)(e.nextToken)});const deserializeAws_json1_1DescribePullThroughCacheRulesResponse=(e,t)=>({nextToken:(0,r.expectString)(e.nextToken),pullThroughCacheRules:e.pullThroughCacheRules!=null?deserializeAws_json1_1PullThroughCacheRuleList(e.pullThroughCacheRules,t):undefined});const deserializeAws_json1_1DescribeRegistryResponse=(e,t)=>({registryId:(0,r.expectString)(e.registryId),replicationConfiguration:e.replicationConfiguration!=null?deserializeAws_json1_1ReplicationConfiguration(e.replicationConfiguration,t):undefined});const deserializeAws_json1_1DescribeRepositoriesResponse=(e,t)=>({nextToken:(0,r.expectString)(e.nextToken),repositories:e.repositories!=null?deserializeAws_json1_1RepositoryList(e.repositories,t):undefined});const deserializeAws_json1_1EmptyUploadException=(e,t)=>({message:(0,r.expectString)(e.message)});const deserializeAws_json1_1EncryptionConfiguration=(e,t)=>({encryptionType:(0,r.expectString)(e.encryptionType),kmsKey:(0,r.expectString)(e.kmsKey)});const deserializeAws_json1_1EnhancedImageScanFinding=(e,t)=>({awsAccountId:(0,r.expectString)(e.awsAccountId),description:(0,r.expectString)(e.description),findingArn:(0,r.expectString)(e.findingArn),firstObservedAt:e.firstObservedAt!=null?(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e.firstObservedAt))):undefined,lastObservedAt:e.lastObservedAt!=null?(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e.lastObservedAt))):undefined,packageVulnerabilityDetails:e.packageVulnerabilityDetails!=null?deserializeAws_json1_1PackageVulnerabilityDetails(e.packageVulnerabilityDetails,t):undefined,remediation:e.remediation!=null?deserializeAws_json1_1Remediation(e.remediation,t):undefined,resources:e.resources!=null?deserializeAws_json1_1ResourceList(e.resources,t):undefined,score:(0,r.limitedParseDouble)(e.score),scoreDetails:e.scoreDetails!=null?deserializeAws_json1_1ScoreDetails(e.scoreDetails,t):undefined,severity:(0,r.expectString)(e.severity),status:(0,r.expectString)(e.status),title:(0,r.expectString)(e.title),type:(0,r.expectString)(e.type),updatedAt:e.updatedAt!=null?(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e.updatedAt))):undefined});const deserializeAws_json1_1EnhancedImageScanFindingList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1EnhancedImageScanFinding(e,t)}));return n};const deserializeAws_json1_1FindingSeverityCounts=(e,t)=>Object.entries(e).reduce(((e,[t,n])=>{if(n===null){return e}e[t]=(0,r.expectInt32)(n);return e}),{});const deserializeAws_json1_1GetAuthorizationTokenResponse=(e,t)=>({authorizationData:e.authorizationData!=null?deserializeAws_json1_1AuthorizationDataList(e.authorizationData,t):undefined});const deserializeAws_json1_1GetDownloadUrlForLayerResponse=(e,t)=>({downloadUrl:(0,r.expectString)(e.downloadUrl),layerDigest:(0,r.expectString)(e.layerDigest)});const deserializeAws_json1_1GetLifecyclePolicyPreviewResponse=(e,t)=>({lifecyclePolicyText:(0,r.expectString)(e.lifecyclePolicyText),nextToken:(0,r.expectString)(e.nextToken),previewResults:e.previewResults!=null?deserializeAws_json1_1LifecyclePolicyPreviewResultList(e.previewResults,t):undefined,registryId:(0,r.expectString)(e.registryId),repositoryName:(0,r.expectString)(e.repositoryName),status:(0,r.expectString)(e.status),summary:e.summary!=null?deserializeAws_json1_1LifecyclePolicyPreviewSummary(e.summary,t):undefined});const deserializeAws_json1_1GetLifecyclePolicyResponse=(e,t)=>({lastEvaluatedAt:e.lastEvaluatedAt!=null?(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e.lastEvaluatedAt))):undefined,lifecyclePolicyText:(0,r.expectString)(e.lifecyclePolicyText),registryId:(0,r.expectString)(e.registryId),repositoryName:(0,r.expectString)(e.repositoryName)});const deserializeAws_json1_1GetRegistryPolicyResponse=(e,t)=>({policyText:(0,r.expectString)(e.policyText),registryId:(0,r.expectString)(e.registryId)});const deserializeAws_json1_1GetRegistryScanningConfigurationResponse=(e,t)=>({registryId:(0,r.expectString)(e.registryId),scanningConfiguration:e.scanningConfiguration!=null?deserializeAws_json1_1RegistryScanningConfiguration(e.scanningConfiguration,t):undefined});const deserializeAws_json1_1GetRepositoryPolicyResponse=(e,t)=>({policyText:(0,r.expectString)(e.policyText),registryId:(0,r.expectString)(e.registryId),repositoryName:(0,r.expectString)(e.repositoryName)});const deserializeAws_json1_1Image=(e,t)=>({imageId:e.imageId!=null?deserializeAws_json1_1ImageIdentifier(e.imageId,t):undefined,imageManifest:(0,r.expectString)(e.imageManifest),imageManifestMediaType:(0,r.expectString)(e.imageManifestMediaType),registryId:(0,r.expectString)(e.registryId),repositoryName:(0,r.expectString)(e.repositoryName)});const deserializeAws_json1_1ImageAlreadyExistsException=(e,t)=>({message:(0,r.expectString)(e.message)});const deserializeAws_json1_1ImageDetail=(e,t)=>({artifactMediaType:(0,r.expectString)(e.artifactMediaType),imageDigest:(0,r.expectString)(e.imageDigest),imageManifestMediaType:(0,r.expectString)(e.imageManifestMediaType),imagePushedAt:e.imagePushedAt!=null?(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e.imagePushedAt))):undefined,imageScanFindingsSummary:e.imageScanFindingsSummary!=null?deserializeAws_json1_1ImageScanFindingsSummary(e.imageScanFindingsSummary,t):undefined,imageScanStatus:e.imageScanStatus!=null?deserializeAws_json1_1ImageScanStatus(e.imageScanStatus,t):undefined,imageSizeInBytes:(0,r.expectLong)(e.imageSizeInBytes),imageTags:e.imageTags!=null?deserializeAws_json1_1ImageTagList(e.imageTags,t):undefined,lastRecordedPullTime:e.lastRecordedPullTime!=null?(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e.lastRecordedPullTime))):undefined,registryId:(0,r.expectString)(e.registryId),repositoryName:(0,r.expectString)(e.repositoryName)});const deserializeAws_json1_1ImageDetailList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1ImageDetail(e,t)}));return n};const deserializeAws_json1_1ImageDigestDoesNotMatchException=(e,t)=>({message:(0,r.expectString)(e.message)});const deserializeAws_json1_1ImageFailure=(e,t)=>({failureCode:(0,r.expectString)(e.failureCode),failureReason:(0,r.expectString)(e.failureReason),imageId:e.imageId!=null?deserializeAws_json1_1ImageIdentifier(e.imageId,t):undefined});const deserializeAws_json1_1ImageFailureList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1ImageFailure(e,t)}));return n};const deserializeAws_json1_1ImageIdentifier=(e,t)=>({imageDigest:(0,r.expectString)(e.imageDigest),imageTag:(0,r.expectString)(e.imageTag)});const deserializeAws_json1_1ImageIdentifierList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1ImageIdentifier(e,t)}));return n};const deserializeAws_json1_1ImageList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1Image(e,t)}));return n};const deserializeAws_json1_1ImageNotFoundException=(e,t)=>({message:(0,r.expectString)(e.message)});const deserializeAws_json1_1ImageReplicationStatus=(e,t)=>({failureCode:(0,r.expectString)(e.failureCode),region:(0,r.expectString)(e.region),registryId:(0,r.expectString)(e.registryId),status:(0,r.expectString)(e.status)});const deserializeAws_json1_1ImageReplicationStatusList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1ImageReplicationStatus(e,t)}));return n};const deserializeAws_json1_1ImageScanFinding=(e,t)=>({attributes:e.attributes!=null?deserializeAws_json1_1AttributeList(e.attributes,t):undefined,description:(0,r.expectString)(e.description),name:(0,r.expectString)(e.name),severity:(0,r.expectString)(e.severity),uri:(0,r.expectString)(e.uri)});const deserializeAws_json1_1ImageScanFindingList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1ImageScanFinding(e,t)}));return n};const deserializeAws_json1_1ImageScanFindings=(e,t)=>({enhancedFindings:e.enhancedFindings!=null?deserializeAws_json1_1EnhancedImageScanFindingList(e.enhancedFindings,t):undefined,findingSeverityCounts:e.findingSeverityCounts!=null?deserializeAws_json1_1FindingSeverityCounts(e.findingSeverityCounts,t):undefined,findings:e.findings!=null?deserializeAws_json1_1ImageScanFindingList(e.findings,t):undefined,imageScanCompletedAt:e.imageScanCompletedAt!=null?(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e.imageScanCompletedAt))):undefined,vulnerabilitySourceUpdatedAt:e.vulnerabilitySourceUpdatedAt!=null?(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e.vulnerabilitySourceUpdatedAt))):undefined});const deserializeAws_json1_1ImageScanFindingsSummary=(e,t)=>({findingSeverityCounts:e.findingSeverityCounts!=null?deserializeAws_json1_1FindingSeverityCounts(e.findingSeverityCounts,t):undefined,imageScanCompletedAt:e.imageScanCompletedAt!=null?(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e.imageScanCompletedAt))):undefined,vulnerabilitySourceUpdatedAt:e.vulnerabilitySourceUpdatedAt!=null?(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e.vulnerabilitySourceUpdatedAt))):undefined});const deserializeAws_json1_1ImageScanningConfiguration=(e,t)=>({scanOnPush:(0,r.expectBoolean)(e.scanOnPush)});const deserializeAws_json1_1ImageScanStatus=(e,t)=>({description:(0,r.expectString)(e.description),status:(0,r.expectString)(e.status)});const deserializeAws_json1_1ImageTagAlreadyExistsException=(e,t)=>({message:(0,r.expectString)(e.message)});const deserializeAws_json1_1ImageTagList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return(0,r.expectString)(e)}));return n};const deserializeAws_json1_1ImageTagsList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return(0,r.expectString)(e)}));return n};const deserializeAws_json1_1InitiateLayerUploadResponse=(e,t)=>({partSize:(0,r.expectLong)(e.partSize),uploadId:(0,r.expectString)(e.uploadId)});const deserializeAws_json1_1InvalidLayerException=(e,t)=>({message:(0,r.expectString)(e.message)});const deserializeAws_json1_1InvalidLayerPartException=(e,t)=>({lastValidByteReceived:(0,r.expectLong)(e.lastValidByteReceived),message:(0,r.expectString)(e.message),registryId:(0,r.expectString)(e.registryId),repositoryName:(0,r.expectString)(e.repositoryName),uploadId:(0,r.expectString)(e.uploadId)});const deserializeAws_json1_1InvalidParameterException=(e,t)=>({message:(0,r.expectString)(e.message)});const deserializeAws_json1_1InvalidTagParameterException=(e,t)=>({message:(0,r.expectString)(e.message)});const deserializeAws_json1_1KmsException=(e,t)=>({kmsError:(0,r.expectString)(e.kmsError),message:(0,r.expectString)(e.message)});const deserializeAws_json1_1Layer=(e,t)=>({layerAvailability:(0,r.expectString)(e.layerAvailability),layerDigest:(0,r.expectString)(e.layerDigest),layerSize:(0,r.expectLong)(e.layerSize),mediaType:(0,r.expectString)(e.mediaType)});const deserializeAws_json1_1LayerAlreadyExistsException=(e,t)=>({message:(0,r.expectString)(e.message)});const deserializeAws_json1_1LayerFailure=(e,t)=>({failureCode:(0,r.expectString)(e.failureCode),failureReason:(0,r.expectString)(e.failureReason),layerDigest:(0,r.expectString)(e.layerDigest)});const deserializeAws_json1_1LayerFailureList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1LayerFailure(e,t)}));return n};const deserializeAws_json1_1LayerInaccessibleException=(e,t)=>({message:(0,r.expectString)(e.message)});const deserializeAws_json1_1LayerList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1Layer(e,t)}));return n};const deserializeAws_json1_1LayerPartTooSmallException=(e,t)=>({message:(0,r.expectString)(e.message)});const deserializeAws_json1_1LayersNotFoundException=(e,t)=>({message:(0,r.expectString)(e.message)});const deserializeAws_json1_1LifecyclePolicyNotFoundException=(e,t)=>({message:(0,r.expectString)(e.message)});const deserializeAws_json1_1LifecyclePolicyPreviewInProgressException=(e,t)=>({message:(0,r.expectString)(e.message)});const deserializeAws_json1_1LifecyclePolicyPreviewNotFoundException=(e,t)=>({message:(0,r.expectString)(e.message)});const deserializeAws_json1_1LifecyclePolicyPreviewResult=(e,t)=>({action:e.action!=null?deserializeAws_json1_1LifecyclePolicyRuleAction(e.action,t):undefined,appliedRulePriority:(0,r.expectInt32)(e.appliedRulePriority),imageDigest:(0,r.expectString)(e.imageDigest),imagePushedAt:e.imagePushedAt!=null?(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e.imagePushedAt))):undefined,imageTags:e.imageTags!=null?deserializeAws_json1_1ImageTagList(e.imageTags,t):undefined});const deserializeAws_json1_1LifecyclePolicyPreviewResultList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1LifecyclePolicyPreviewResult(e,t)}));return n};const deserializeAws_json1_1LifecyclePolicyPreviewSummary=(e,t)=>({expiringImageTotalCount:(0,r.expectInt32)(e.expiringImageTotalCount)});const deserializeAws_json1_1LifecyclePolicyRuleAction=(e,t)=>({type:(0,r.expectString)(e.type)});const deserializeAws_json1_1LimitExceededException=(e,t)=>({message:(0,r.expectString)(e.message)});const deserializeAws_json1_1ListImagesResponse=(e,t)=>({imageIds:e.imageIds!=null?deserializeAws_json1_1ImageIdentifierList(e.imageIds,t):undefined,nextToken:(0,r.expectString)(e.nextToken)});const deserializeAws_json1_1ListTagsForResourceResponse=(e,t)=>({tags:e.tags!=null?deserializeAws_json1_1TagList(e.tags,t):undefined});const deserializeAws_json1_1PackageVulnerabilityDetails=(e,t)=>({cvss:e.cvss!=null?deserializeAws_json1_1CvssScoreList(e.cvss,t):undefined,referenceUrls:e.referenceUrls!=null?deserializeAws_json1_1ReferenceUrlsList(e.referenceUrls,t):undefined,relatedVulnerabilities:e.relatedVulnerabilities!=null?deserializeAws_json1_1RelatedVulnerabilitiesList(e.relatedVulnerabilities,t):undefined,source:(0,r.expectString)(e.source),sourceUrl:(0,r.expectString)(e.sourceUrl),vendorCreatedAt:e.vendorCreatedAt!=null?(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e.vendorCreatedAt))):undefined,vendorSeverity:(0,r.expectString)(e.vendorSeverity),vendorUpdatedAt:e.vendorUpdatedAt!=null?(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e.vendorUpdatedAt))):undefined,vulnerabilityId:(0,r.expectString)(e.vulnerabilityId),vulnerablePackages:e.vulnerablePackages!=null?deserializeAws_json1_1VulnerablePackagesList(e.vulnerablePackages,t):undefined});const deserializeAws_json1_1PullThroughCacheRule=(e,t)=>({createdAt:e.createdAt!=null?(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e.createdAt))):undefined,ecrRepositoryPrefix:(0,r.expectString)(e.ecrRepositoryPrefix),registryId:(0,r.expectString)(e.registryId),upstreamRegistryUrl:(0,r.expectString)(e.upstreamRegistryUrl)});const deserializeAws_json1_1PullThroughCacheRuleAlreadyExistsException=(e,t)=>({message:(0,r.expectString)(e.message)});const deserializeAws_json1_1PullThroughCacheRuleList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1PullThroughCacheRule(e,t)}));return n};const deserializeAws_json1_1PullThroughCacheRuleNotFoundException=(e,t)=>({message:(0,r.expectString)(e.message)});const deserializeAws_json1_1PutImageResponse=(e,t)=>({image:e.image!=null?deserializeAws_json1_1Image(e.image,t):undefined});const deserializeAws_json1_1PutImageScanningConfigurationResponse=(e,t)=>({imageScanningConfiguration:e.imageScanningConfiguration!=null?deserializeAws_json1_1ImageScanningConfiguration(e.imageScanningConfiguration,t):undefined,registryId:(0,r.expectString)(e.registryId),repositoryName:(0,r.expectString)(e.repositoryName)});const deserializeAws_json1_1PutImageTagMutabilityResponse=(e,t)=>({imageTagMutability:(0,r.expectString)(e.imageTagMutability),registryId:(0,r.expectString)(e.registryId),repositoryName:(0,r.expectString)(e.repositoryName)});const deserializeAws_json1_1PutLifecyclePolicyResponse=(e,t)=>({lifecyclePolicyText:(0,r.expectString)(e.lifecyclePolicyText),registryId:(0,r.expectString)(e.registryId),repositoryName:(0,r.expectString)(e.repositoryName)});const deserializeAws_json1_1PutRegistryPolicyResponse=(e,t)=>({policyText:(0,r.expectString)(e.policyText),registryId:(0,r.expectString)(e.registryId)});const deserializeAws_json1_1PutRegistryScanningConfigurationResponse=(e,t)=>({registryScanningConfiguration:e.registryScanningConfiguration!=null?deserializeAws_json1_1RegistryScanningConfiguration(e.registryScanningConfiguration,t):undefined});const deserializeAws_json1_1PutReplicationConfigurationResponse=(e,t)=>({replicationConfiguration:e.replicationConfiguration!=null?deserializeAws_json1_1ReplicationConfiguration(e.replicationConfiguration,t):undefined});const deserializeAws_json1_1Recommendation=(e,t)=>({text:(0,r.expectString)(e.text),url:(0,r.expectString)(e.url)});const deserializeAws_json1_1ReferencedImagesNotFoundException=(e,t)=>({message:(0,r.expectString)(e.message)});const deserializeAws_json1_1ReferenceUrlsList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return(0,r.expectString)(e)}));return n};const deserializeAws_json1_1RegistryPolicyNotFoundException=(e,t)=>({message:(0,r.expectString)(e.message)});const deserializeAws_json1_1RegistryScanningConfiguration=(e,t)=>({rules:e.rules!=null?deserializeAws_json1_1RegistryScanningRuleList(e.rules,t):undefined,scanType:(0,r.expectString)(e.scanType)});const deserializeAws_json1_1RegistryScanningRule=(e,t)=>({repositoryFilters:e.repositoryFilters!=null?deserializeAws_json1_1ScanningRepositoryFilterList(e.repositoryFilters,t):undefined,scanFrequency:(0,r.expectString)(e.scanFrequency)});const deserializeAws_json1_1RegistryScanningRuleList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1RegistryScanningRule(e,t)}));return n};const deserializeAws_json1_1RelatedVulnerabilitiesList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return(0,r.expectString)(e)}));return n};const deserializeAws_json1_1Remediation=(e,t)=>({recommendation:e.recommendation!=null?deserializeAws_json1_1Recommendation(e.recommendation,t):undefined});const deserializeAws_json1_1ReplicationConfiguration=(e,t)=>({rules:e.rules!=null?deserializeAws_json1_1ReplicationRuleList(e.rules,t):undefined});const deserializeAws_json1_1ReplicationDestination=(e,t)=>({region:(0,r.expectString)(e.region),registryId:(0,r.expectString)(e.registryId)});const deserializeAws_json1_1ReplicationDestinationList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1ReplicationDestination(e,t)}));return n};const deserializeAws_json1_1ReplicationRule=(e,t)=>({destinations:e.destinations!=null?deserializeAws_json1_1ReplicationDestinationList(e.destinations,t):undefined,repositoryFilters:e.repositoryFilters!=null?deserializeAws_json1_1RepositoryFilterList(e.repositoryFilters,t):undefined});const deserializeAws_json1_1ReplicationRuleList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1ReplicationRule(e,t)}));return n};const deserializeAws_json1_1Repository=(e,t)=>({createdAt:e.createdAt!=null?(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e.createdAt))):undefined,encryptionConfiguration:e.encryptionConfiguration!=null?deserializeAws_json1_1EncryptionConfiguration(e.encryptionConfiguration,t):undefined,imageScanningConfiguration:e.imageScanningConfiguration!=null?deserializeAws_json1_1ImageScanningConfiguration(e.imageScanningConfiguration,t):undefined,imageTagMutability:(0,r.expectString)(e.imageTagMutability),registryId:(0,r.expectString)(e.registryId),repositoryArn:(0,r.expectString)(e.repositoryArn),repositoryName:(0,r.expectString)(e.repositoryName),repositoryUri:(0,r.expectString)(e.repositoryUri)});const deserializeAws_json1_1RepositoryAlreadyExistsException=(e,t)=>({message:(0,r.expectString)(e.message)});const deserializeAws_json1_1RepositoryFilter=(e,t)=>({filter:(0,r.expectString)(e.filter),filterType:(0,r.expectString)(e.filterType)});const deserializeAws_json1_1RepositoryFilterList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1RepositoryFilter(e,t)}));return n};const deserializeAws_json1_1RepositoryList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1Repository(e,t)}));return n};const deserializeAws_json1_1RepositoryNotEmptyException=(e,t)=>({message:(0,r.expectString)(e.message)});const deserializeAws_json1_1RepositoryNotFoundException=(e,t)=>({message:(0,r.expectString)(e.message)});const deserializeAws_json1_1RepositoryPolicyNotFoundException=(e,t)=>({message:(0,r.expectString)(e.message)});const deserializeAws_json1_1RepositoryScanningConfiguration=(e,t)=>({appliedScanFilters:e.appliedScanFilters!=null?deserializeAws_json1_1ScanningRepositoryFilterList(e.appliedScanFilters,t):undefined,repositoryArn:(0,r.expectString)(e.repositoryArn),repositoryName:(0,r.expectString)(e.repositoryName),scanFrequency:(0,r.expectString)(e.scanFrequency),scanOnPush:(0,r.expectBoolean)(e.scanOnPush)});const deserializeAws_json1_1RepositoryScanningConfigurationFailure=(e,t)=>({failureCode:(0,r.expectString)(e.failureCode),failureReason:(0,r.expectString)(e.failureReason),repositoryName:(0,r.expectString)(e.repositoryName)});const deserializeAws_json1_1RepositoryScanningConfigurationFailureList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1RepositoryScanningConfigurationFailure(e,t)}));return n};const deserializeAws_json1_1RepositoryScanningConfigurationList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1RepositoryScanningConfiguration(e,t)}));return n};const deserializeAws_json1_1Resource=(e,t)=>({details:e.details!=null?deserializeAws_json1_1ResourceDetails(e.details,t):undefined,id:(0,r.expectString)(e.id),tags:e.tags!=null?deserializeAws_json1_1Tags(e.tags,t):undefined,type:(0,r.expectString)(e.type)});const deserializeAws_json1_1ResourceDetails=(e,t)=>({awsEcrContainerImage:e.awsEcrContainerImage!=null?deserializeAws_json1_1AwsEcrContainerImageDetails(e.awsEcrContainerImage,t):undefined});const deserializeAws_json1_1ResourceList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1Resource(e,t)}));return n};const deserializeAws_json1_1ScanningRepositoryFilter=(e,t)=>({filter:(0,r.expectString)(e.filter),filterType:(0,r.expectString)(e.filterType)});const deserializeAws_json1_1ScanningRepositoryFilterList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1ScanningRepositoryFilter(e,t)}));return n};const deserializeAws_json1_1ScanNotFoundException=(e,t)=>({message:(0,r.expectString)(e.message)});const deserializeAws_json1_1ScoreDetails=(e,t)=>({cvss:e.cvss!=null?deserializeAws_json1_1CvssScoreDetails(e.cvss,t):undefined});const deserializeAws_json1_1ServerException=(e,t)=>({message:(0,r.expectString)(e.message)});const deserializeAws_json1_1SetRepositoryPolicyResponse=(e,t)=>({policyText:(0,r.expectString)(e.policyText),registryId:(0,r.expectString)(e.registryId),repositoryName:(0,r.expectString)(e.repositoryName)});const deserializeAws_json1_1StartImageScanResponse=(e,t)=>({imageId:e.imageId!=null?deserializeAws_json1_1ImageIdentifier(e.imageId,t):undefined,imageScanStatus:e.imageScanStatus!=null?deserializeAws_json1_1ImageScanStatus(e.imageScanStatus,t):undefined,registryId:(0,r.expectString)(e.registryId),repositoryName:(0,r.expectString)(e.repositoryName)});const deserializeAws_json1_1StartLifecyclePolicyPreviewResponse=(e,t)=>({lifecyclePolicyText:(0,r.expectString)(e.lifecyclePolicyText),registryId:(0,r.expectString)(e.registryId),repositoryName:(0,r.expectString)(e.repositoryName),status:(0,r.expectString)(e.status)});const deserializeAws_json1_1Tag=(e,t)=>({Key:(0,r.expectString)(e.Key),Value:(0,r.expectString)(e.Value)});const deserializeAws_json1_1TagList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1Tag(e,t)}));return n};const deserializeAws_json1_1TagResourceResponse=(e,t)=>({});const deserializeAws_json1_1Tags=(e,t)=>Object.entries(e).reduce(((e,[t,n])=>{if(n===null){return e}e[t]=(0,r.expectString)(n);return e}),{});const deserializeAws_json1_1TooManyTagsException=(e,t)=>({message:(0,r.expectString)(e.message)});const deserializeAws_json1_1UnsupportedImageTypeException=(e,t)=>({message:(0,r.expectString)(e.message)});const deserializeAws_json1_1UnsupportedUpstreamRegistryException=(e,t)=>({message:(0,r.expectString)(e.message)});const deserializeAws_json1_1UntagResourceResponse=(e,t)=>({});const deserializeAws_json1_1UploadLayerPartResponse=(e,t)=>({lastByteReceived:(0,r.expectLong)(e.lastByteReceived),registryId:(0,r.expectString)(e.registryId),repositoryName:(0,r.expectString)(e.repositoryName),uploadId:(0,r.expectString)(e.uploadId)});const deserializeAws_json1_1UploadNotFoundException=(e,t)=>({message:(0,r.expectString)(e.message)});const deserializeAws_json1_1ValidationException=(e,t)=>({message:(0,r.expectString)(e.message)});const deserializeAws_json1_1VulnerablePackage=(e,t)=>({arch:(0,r.expectString)(e.arch),epoch:(0,r.expectInt32)(e.epoch),filePath:(0,r.expectString)(e.filePath),name:(0,r.expectString)(e.name),packageManager:(0,r.expectString)(e.packageManager),release:(0,r.expectString)(e.release),sourceLayerHash:(0,r.expectString)(e.sourceLayerHash),version:(0,r.expectString)(e.version)});const deserializeAws_json1_1VulnerablePackagesList=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1VulnerablePackage(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 collectBody=(e=new Uint8Array,t)=>{if(e instanceof Uint8Array){return Promise.resolve(e)}return t.streamCollector(e)||Promise.resolve(new Uint8Array)};const collectBodyString=(e,t)=>collectBody(e,t).then((e=>t.utf8Encoder(e)));const buildHttpRpcRequest=async(e,t,n,r,i)=>{const{hostname:s,protocol:a="https",port:c,path:l}=await e.endpoint();const u={protocol:a,hostname:s,port:c,method:"POST",path:l.endsWith("/")?l.slice(0,-1)+n:l+n,headers:t};if(r!==undefined){u.hostname=r}if(i!==undefined){u.body=i}return new o.HttpRequest(u)};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 i=n(52209);const s=n(56153);const a=n(75531);const c=n(97442);const l=n(96064);const u=n(87684);const d=n(68805);const p=n(74147);const m=n(99395);const g=n(98095);const f=n(66278);const y=n(70542);const h=n(4963);const E=n(74243);const S=n(4963);const getRuntimeConfig=e=>{(0,S.emitWarningIfUnsupportedVersion)(process.version);const t=(0,E.resolveDefaultsModeConfig)(e);const defaultConfigProvider=()=>t().then(h.loadConfigsForDefaultMode);const n=(0,y.getRuntimeConfig)(e);return{...n,...e,runtime:"node",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??p.calculateBodyLength,credentialDefaultProvider:e?.credentialDefaultProvider??(0,i.decorateDefaultCredentialProvider)(a.defaultProvider),defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,g.defaultUserAgent)({serviceId:n.serviceId,clientVersion:r.default.version}),maxAttempts:e?.maxAttempts??(0,u.loadConfig)(l.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:e?.region??(0,u.loadConfig)(s.NODE_REGION_CONFIG_OPTIONS,s.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:e?.requestHandler??new d.NodeHttpHandler(defaultConfigProvider),retryMode:e?.retryMode??(0,u.loadConfig)({...l.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await defaultConfigProvider()).retryMode||m.DEFAULT_RETRY_MODE}),sha256:e?.sha256??c.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??d.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,u.loadConfig)(s.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:e?.useFipsEndpoint??(0,u.loadConfig)(s.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:e?.utf8Decoder??f.fromUtf8,utf8Encoder:e?.utf8Encoder??f.toUtf8}};t.getRuntimeConfig=getRuntimeConfig},70542:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const o=n(4963);const r=n(2992);const i=n(97727);const s=n(61610);const getRuntimeConfig=e=>({apiVersion:"2015-09-21",base64Decoder:e?.base64Decoder??i.fromBase64,base64Encoder:e?.base64Encoder??i.toBase64,disableHostPrefix:e?.disableHostPrefix??false,endpointProvider:e?.endpointProvider??s.defaultEndpointResolver,logger:e?.logger??new o.NoOpLogger,serviceId:e?.serviceId??"ECR",urlParser:e?.urlParser??r.parseUrl});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(21627);const r=n(72987);const checkState=async(e,t)=>{let n;try{const i=await e.send(new r.DescribeImageScanFindingsCommand(t));n=i;try{const returnComparator=()=>i.imageScanStatus.status;if(returnComparator()==="COMPLETE"){return{state:o.WaiterState.SUCCESS,reason:n}}}catch(e){}try{const returnComparator=()=>i.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(21627);const r=n(17006);const checkState=async(e,t)=>{let n;try{const i=await e.send(new r.GetLifecyclePolicyPreviewCommand(t));n=i;try{const returnComparator=()=>i.status;if(returnComparator()==="COMPLETE"){return{state:o.WaiterState.SUCCESS,reason:n}}}catch(e){}try{const returnComparator=()=>i.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(62853);const r=n(36677);const i=n(38359);const s=n(70139);class SSOOIDC extends s.SSOOIDCClient{createToken(e,t,n){const r=new o.CreateTokenCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},n)}else{return this.send(r,t)}}registerClient(e,t,n){const o=new r.RegisterClientCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}startDeviceAuthorization(e,t,n){const o=new i.StartDeviceAuthorizationCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}}t.SSOOIDC=SSOOIDC},70139:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SSOOIDCClient=void 0;const o=n(56153);const r=n(42245);const i=n(5497);const s=n(22545);const a=n(20014);const c=n(85525);const l=n(96064);const u=n(64688);const d=n(4963);const p=n(61426);const m=n(25524);class SSOOIDCClient extends d.Client{constructor(e){const t=(0,m.getRuntimeConfig)(e);const n=(0,p.resolveClientEndpointParameters)(t);const d=(0,o.resolveRegionConfig)(n);const g=(0,i.resolveEndpointConfig)(d);const f=(0,l.resolveRetryConfig)(g);const y=(0,s.resolveHostHeaderConfig)(f);const h=(0,u.resolveUserAgentConfig)(y);super(h);this.config=h;this.middlewareStack.use((0,l.getRetryPlugin)(this.config));this.middlewareStack.use((0,r.getContentLengthPlugin)(this.config));this.middlewareStack.use((0,s.getHostHeaderPlugin)(this.config));this.middlewareStack.use((0,a.getLoggerPlugin)(this.config));this.middlewareStack.use((0,c.getRecursionDetectionPlugin)(this.config));this.middlewareStack.use((0,u.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}}t.SSOOIDCClient=SSOOIDCClient},62853:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CreateTokenCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(69374);const a=n(21518);class CreateTokenCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="SSOOIDCClient";const l="CreateTokenCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.CreateTokenRequestFilterSensitiveLog,outputFilterSensitiveLog:s.CreateTokenResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_restJson1CreateTokenCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_restJson1CreateTokenCommand)(e,t)}}t.CreateTokenCommand=CreateTokenCommand},36677:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RegisterClientCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(69374);const a=n(21518);class RegisterClientCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="SSOOIDCClient";const l="RegisterClientCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.RegisterClientRequestFilterSensitiveLog,outputFilterSensitiveLog:s.RegisterClientResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_restJson1RegisterClientCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_restJson1RegisterClientCommand)(e,t)}}t.RegisterClientCommand=RegisterClientCommand},38359:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StartDeviceAuthorizationCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(69374);const a=n(21518);class StartDeviceAuthorizationCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="SSOOIDCClient";const l="StartDeviceAuthorizationCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.StartDeviceAuthorizationRequestFilterSensitiveLog,outputFilterSensitiveLog:s.StartDeviceAuthorizationResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_restJson1StartDeviceAuthorizationCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_restJson1StartDeviceAuthorizationCommand)(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(39205);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;t.ruleSet={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:false,documentation:"The AWS region used to dispatch the request.",type:"String"},UseDualStack:{builtIn:"AWS::UseDualStack",required:true,default:false,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:"Boolean"},UseFIPS:{builtIn:"AWS::UseFIPS",required:true,default:false,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:"Boolean"},Endpoint:{builtIn:"SDK::Endpoint",required:false,documentation:"Override the endpoint used to send this request",type:"String"}},rules:[{conditions:[{fn:"aws.partition",argv:[{ref:"Region"}],assign:"PartitionResult"}],type:"tree",rules:[{conditions:[{fn:"isSet",argv:[{ref:"Endpoint"}]},{fn:"parseURL",argv:[{ref:"Endpoint"}],assign:"url"}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[{ref:"UseFIPS"},true]}],error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:[],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[{ref:"UseDualStack"},true]}],error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{conditions:[],endpoint:{url:{ref:"Endpoint"},properties:{},headers:{}},type:"endpoint"}]}]},{conditions:[{fn:"booleanEquals",argv:[{ref:"UseFIPS"},true]},{fn:"booleanEquals",argv:[{ref:"UseDualStack"},true]}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[true,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsFIPS"]}]},{fn:"booleanEquals",argv:[true,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsDualStack"]}]}],type:"tree",rules:[{conditions:[],endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:{},headers:{}},type:"endpoint"}]},{conditions:[],error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}]},{conditions:[{fn:"booleanEquals",argv:[{ref:"UseFIPS"},true]}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[true,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsFIPS"]}]}],type:"tree",rules:[{conditions:[],type:"tree",rules:[{conditions:[],endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",properties:{},headers:{}},type:"endpoint"}]}]},{conditions:[],error:"FIPS is enabled but this partition does not support FIPS",type:"error"}]},{conditions:[{fn:"booleanEquals",argv:[{ref:"UseDualStack"},true]}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[true,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsDualStack"]}]}],type:"tree",rules:[{conditions:[],endpoint:{url:"https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:{},headers:{}},type:"endpoint"}]},{conditions:[],error:"DualStack is enabled but this partition does not support DualStack",type:"error"}]},{conditions:[],endpoint:{url:"https://oidc.{Region}.{PartitionResult#dnsSuffix}",properties:{},headers:{}},type:"endpoint"}]}]}},54527:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SSOOIDCServiceException=void 0;const o=n(4351);o.__exportStar(n(17124),t);o.__exportStar(n(70139),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=void 0;const o=n(4963);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.StartDeviceAuthorizationResponseFilterSensitiveLog=t.StartDeviceAuthorizationRequestFilterSensitiveLog=t.RegisterClientResponseFilterSensitiveLog=t.RegisterClientRequestFilterSensitiveLog=t.CreateTokenResponseFilterSensitiveLog=t.CreateTokenRequestFilterSensitiveLog=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;const CreateTokenRequestFilterSensitiveLog=e=>({...e});t.CreateTokenRequestFilterSensitiveLog=CreateTokenRequestFilterSensitiveLog;const CreateTokenResponseFilterSensitiveLog=e=>({...e});t.CreateTokenResponseFilterSensitiveLog=CreateTokenResponseFilterSensitiveLog;const RegisterClientRequestFilterSensitiveLog=e=>({...e});t.RegisterClientRequestFilterSensitiveLog=RegisterClientRequestFilterSensitiveLog;const RegisterClientResponseFilterSensitiveLog=e=>({...e});t.RegisterClientResponseFilterSensitiveLog=RegisterClientResponseFilterSensitiveLog;const StartDeviceAuthorizationRequestFilterSensitiveLog=e=>({...e});t.StartDeviceAuthorizationRequestFilterSensitiveLog=StartDeviceAuthorizationRequestFilterSensitiveLog;const StartDeviceAuthorizationResponseFilterSensitiveLog=e=>({...e});t.StartDeviceAuthorizationResponseFilterSensitiveLog=StartDeviceAuthorizationResponseFilterSensitiveLog},21518:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.deserializeAws_restJson1StartDeviceAuthorizationCommand=t.deserializeAws_restJson1RegisterClientCommand=t.deserializeAws_restJson1CreateTokenCommand=t.serializeAws_restJson1StartDeviceAuthorizationCommand=t.serializeAws_restJson1RegisterClientCommand=t.serializeAws_restJson1CreateTokenCommand=void 0;const o=n(70223);const r=n(4963);const i=n(69374);const s=n(43026);const serializeAws_restJson1CreateTokenCommand=async(e,t)=>{const{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint();const a={"content-type":"application/json"};const c=`${s?.endsWith("/")?s.slice(0,-1):s||""}`+"/token";let l;l=JSON.stringify({...e.clientId!=null&&{clientId:e.clientId},...e.clientSecret!=null&&{clientSecret:e.clientSecret},...e.code!=null&&{code:e.code},...e.deviceCode!=null&&{deviceCode:e.deviceCode},...e.grantType!=null&&{grantType:e.grantType},...e.redirectUri!=null&&{redirectUri:e.redirectUri},...e.refreshToken!=null&&{refreshToken:e.refreshToken},...e.scope!=null&&{scope:serializeAws_restJson1Scopes(e.scope,t)}});return new o.HttpRequest({protocol:r,hostname:n,port:i,method:"POST",headers:a,path:c,body:l})};t.serializeAws_restJson1CreateTokenCommand=serializeAws_restJson1CreateTokenCommand;const serializeAws_restJson1RegisterClientCommand=async(e,t)=>{const{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint();const a={"content-type":"application/json"};const c=`${s?.endsWith("/")?s.slice(0,-1):s||""}`+"/client/register";let l;l=JSON.stringify({...e.clientName!=null&&{clientName:e.clientName},...e.clientType!=null&&{clientType:e.clientType},...e.scopes!=null&&{scopes:serializeAws_restJson1Scopes(e.scopes,t)}});return new o.HttpRequest({protocol:r,hostname:n,port:i,method:"POST",headers:a,path:c,body:l})};t.serializeAws_restJson1RegisterClientCommand=serializeAws_restJson1RegisterClientCommand;const serializeAws_restJson1StartDeviceAuthorizationCommand=async(e,t)=>{const{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint();const a={"content-type":"application/json"};const c=`${s?.endsWith("/")?s.slice(0,-1):s||""}`+"/device_authorization";let l;l=JSON.stringify({...e.clientId!=null&&{clientId:e.clientId},...e.clientSecret!=null&&{clientSecret:e.clientSecret},...e.startUrl!=null&&{startUrl:e.startUrl}});return new o.HttpRequest({protocol:r,hostname:n,port:i,method:"POST",headers:a,path:c,body:l})};t.serializeAws_restJson1StartDeviceAuthorizationCommand=serializeAws_restJson1StartDeviceAuthorizationCommand;const deserializeAws_restJson1CreateTokenCommand=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300){return deserializeAws_restJson1CreateTokenCommandError(e,t)}const n=a({$metadata:deserializeMetadata(e)});const o=(0,r.expectNonNull)((0,r.expectObject)(await parseBody(e.body,t)),"body");if(o.accessToken!=null){n.accessToken=(0,r.expectString)(o.accessToken)}if(o.expiresIn!=null){n.expiresIn=(0,r.expectInt32)(o.expiresIn)}if(o.idToken!=null){n.idToken=(0,r.expectString)(o.idToken)}if(o.refreshToken!=null){n.refreshToken=(0,r.expectString)(o.refreshToken)}if(o.tokenType!=null){n.tokenType=(0,r.expectString)(o.tokenType)}return n};t.deserializeAws_restJson1CreateTokenCommand=deserializeAws_restJson1CreateTokenCommand;const deserializeAws_restJson1CreateTokenCommandError=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 deserializeAws_restJson1AccessDeniedExceptionResponse(n,t);case"AuthorizationPendingException":case"com.amazonaws.ssooidc#AuthorizationPendingException":throw await deserializeAws_restJson1AuthorizationPendingExceptionResponse(n,t);case"ExpiredTokenException":case"com.amazonaws.ssooidc#ExpiredTokenException":throw await deserializeAws_restJson1ExpiredTokenExceptionResponse(n,t);case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await deserializeAws_restJson1InternalServerExceptionResponse(n,t);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await deserializeAws_restJson1InvalidClientExceptionResponse(n,t);case"InvalidGrantException":case"com.amazonaws.ssooidc#InvalidGrantException":throw await deserializeAws_restJson1InvalidGrantExceptionResponse(n,t);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await deserializeAws_restJson1InvalidRequestExceptionResponse(n,t);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await deserializeAws_restJson1InvalidScopeExceptionResponse(n,t);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await deserializeAws_restJson1SlowDownExceptionResponse(n,t);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(n,t);case"UnsupportedGrantTypeException":case"com.amazonaws.ssooidc#UnsupportedGrantTypeException":throw await deserializeAws_restJson1UnsupportedGrantTypeExceptionResponse(n,t);default:const i=n.body;(0,r.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.SSOOIDCServiceException,errorCode:o})}};const deserializeAws_restJson1RegisterClientCommand=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300){return deserializeAws_restJson1RegisterClientCommandError(e,t)}const n=a({$metadata:deserializeMetadata(e)});const o=(0,r.expectNonNull)((0,r.expectObject)(await parseBody(e.body,t)),"body");if(o.authorizationEndpoint!=null){n.authorizationEndpoint=(0,r.expectString)(o.authorizationEndpoint)}if(o.clientId!=null){n.clientId=(0,r.expectString)(o.clientId)}if(o.clientIdIssuedAt!=null){n.clientIdIssuedAt=(0,r.expectLong)(o.clientIdIssuedAt)}if(o.clientSecret!=null){n.clientSecret=(0,r.expectString)(o.clientSecret)}if(o.clientSecretExpiresAt!=null){n.clientSecretExpiresAt=(0,r.expectLong)(o.clientSecretExpiresAt)}if(o.tokenEndpoint!=null){n.tokenEndpoint=(0,r.expectString)(o.tokenEndpoint)}return n};t.deserializeAws_restJson1RegisterClientCommand=deserializeAws_restJson1RegisterClientCommand;const deserializeAws_restJson1RegisterClientCommandError=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 deserializeAws_restJson1InternalServerExceptionResponse(n,t);case"InvalidClientMetadataException":case"com.amazonaws.ssooidc#InvalidClientMetadataException":throw await deserializeAws_restJson1InvalidClientMetadataExceptionResponse(n,t);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await deserializeAws_restJson1InvalidRequestExceptionResponse(n,t);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await deserializeAws_restJson1InvalidScopeExceptionResponse(n,t);default:const i=n.body;(0,r.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.SSOOIDCServiceException,errorCode:o})}};const deserializeAws_restJson1StartDeviceAuthorizationCommand=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300){return deserializeAws_restJson1StartDeviceAuthorizationCommandError(e,t)}const n=a({$metadata:deserializeMetadata(e)});const o=(0,r.expectNonNull)((0,r.expectObject)(await parseBody(e.body,t)),"body");if(o.deviceCode!=null){n.deviceCode=(0,r.expectString)(o.deviceCode)}if(o.expiresIn!=null){n.expiresIn=(0,r.expectInt32)(o.expiresIn)}if(o.interval!=null){n.interval=(0,r.expectInt32)(o.interval)}if(o.userCode!=null){n.userCode=(0,r.expectString)(o.userCode)}if(o.verificationUri!=null){n.verificationUri=(0,r.expectString)(o.verificationUri)}if(o.verificationUriComplete!=null){n.verificationUriComplete=(0,r.expectString)(o.verificationUriComplete)}return n};t.deserializeAws_restJson1StartDeviceAuthorizationCommand=deserializeAws_restJson1StartDeviceAuthorizationCommand;const deserializeAws_restJson1StartDeviceAuthorizationCommandError=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 deserializeAws_restJson1InternalServerExceptionResponse(n,t);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await deserializeAws_restJson1InvalidClientExceptionResponse(n,t);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await deserializeAws_restJson1InvalidRequestExceptionResponse(n,t);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await deserializeAws_restJson1SlowDownExceptionResponse(n,t);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(n,t);default:const i=n.body;(0,r.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.SSOOIDCServiceException,errorCode:o})}};const a=r.map;const deserializeAws_restJson1AccessDeniedExceptionResponse=async(e,t)=>{const n=a({});const o=e.body;if(o.error!=null){n.error=(0,r.expectString)(o.error)}if(o.error_description!=null){n.error_description=(0,r.expectString)(o.error_description)}const s=new i.AccessDeniedException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,e.body)};const deserializeAws_restJson1AuthorizationPendingExceptionResponse=async(e,t)=>{const n=a({});const o=e.body;if(o.error!=null){n.error=(0,r.expectString)(o.error)}if(o.error_description!=null){n.error_description=(0,r.expectString)(o.error_description)}const s=new i.AuthorizationPendingException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,e.body)};const deserializeAws_restJson1ExpiredTokenExceptionResponse=async(e,t)=>{const n=a({});const o=e.body;if(o.error!=null){n.error=(0,r.expectString)(o.error)}if(o.error_description!=null){n.error_description=(0,r.expectString)(o.error_description)}const s=new i.ExpiredTokenException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,e.body)};const deserializeAws_restJson1InternalServerExceptionResponse=async(e,t)=>{const n=a({});const o=e.body;if(o.error!=null){n.error=(0,r.expectString)(o.error)}if(o.error_description!=null){n.error_description=(0,r.expectString)(o.error_description)}const s=new i.InternalServerException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,e.body)};const deserializeAws_restJson1InvalidClientExceptionResponse=async(e,t)=>{const n=a({});const o=e.body;if(o.error!=null){n.error=(0,r.expectString)(o.error)}if(o.error_description!=null){n.error_description=(0,r.expectString)(o.error_description)}const s=new i.InvalidClientException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,e.body)};const deserializeAws_restJson1InvalidClientMetadataExceptionResponse=async(e,t)=>{const n=a({});const o=e.body;if(o.error!=null){n.error=(0,r.expectString)(o.error)}if(o.error_description!=null){n.error_description=(0,r.expectString)(o.error_description)}const s=new i.InvalidClientMetadataException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,e.body)};const deserializeAws_restJson1InvalidGrantExceptionResponse=async(e,t)=>{const n=a({});const o=e.body;if(o.error!=null){n.error=(0,r.expectString)(o.error)}if(o.error_description!=null){n.error_description=(0,r.expectString)(o.error_description)}const s=new i.InvalidGrantException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,e.body)};const deserializeAws_restJson1InvalidRequestExceptionResponse=async(e,t)=>{const n=a({});const o=e.body;if(o.error!=null){n.error=(0,r.expectString)(o.error)}if(o.error_description!=null){n.error_description=(0,r.expectString)(o.error_description)}const s=new i.InvalidRequestException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,e.body)};const deserializeAws_restJson1InvalidScopeExceptionResponse=async(e,t)=>{const n=a({});const o=e.body;if(o.error!=null){n.error=(0,r.expectString)(o.error)}if(o.error_description!=null){n.error_description=(0,r.expectString)(o.error_description)}const s=new i.InvalidScopeException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,e.body)};const deserializeAws_restJson1SlowDownExceptionResponse=async(e,t)=>{const n=a({});const o=e.body;if(o.error!=null){n.error=(0,r.expectString)(o.error)}if(o.error_description!=null){n.error_description=(0,r.expectString)(o.error_description)}const s=new i.SlowDownException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,e.body)};const deserializeAws_restJson1UnauthorizedClientExceptionResponse=async(e,t)=>{const n=a({});const o=e.body;if(o.error!=null){n.error=(0,r.expectString)(o.error)}if(o.error_description!=null){n.error_description=(0,r.expectString)(o.error_description)}const s=new i.UnauthorizedClientException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,e.body)};const deserializeAws_restJson1UnsupportedGrantTypeExceptionResponse=async(e,t)=>{const n=a({});const o=e.body;if(o.error!=null){n.error=(0,r.expectString)(o.error)}if(o.error_description!=null){n.error_description=(0,r.expectString)(o.error_description)}const s=new i.UnsupportedGrantTypeException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,e.body)};const serializeAws_restJson1Scopes=(e,t)=>e.filter((e=>e!=null)).map((e=>e));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 collectBody=(e=new Uint8Array,t)=>{if(e instanceof Uint8Array){return Promise.resolve(e)}return t.streamCollector(e)||Promise.resolve(new Uint8Array)};const collectBodyString=(e,t)=>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 i=n(56153);const s=n(97442);const a=n(96064);const c=n(87684);const l=n(68805);const u=n(74147);const d=n(99395);const p=n(98095);const m=n(66278);const g=n(68005);const f=n(4963);const y=n(74243);const h=n(4963);const getRuntimeConfig=e=>{(0,h.emitWarningIfUnsupportedVersion)(process.version);const t=(0,y.resolveDefaultsModeConfig)(e);const defaultConfigProvider=()=>t().then(f.loadConfigsForDefaultMode);const n=(0,g.getRuntimeConfig)(e);return{...n,...e,runtime:"node",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??u.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,p.defaultUserAgent)({serviceId:n.serviceId,clientVersion:r.default.version}),maxAttempts:e?.maxAttempts??(0,c.loadConfig)(a.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:e?.region??(0,c.loadConfig)(i.NODE_REGION_CONFIG_OPTIONS,i.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:e?.requestHandler??new l.NodeHttpHandler(defaultConfigProvider),retryMode:e?.retryMode??(0,c.loadConfig)({...a.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await defaultConfigProvider()).retryMode||d.DEFAULT_RETRY_MODE}),sha256:e?.sha256??s.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??l.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,c.loadConfig)(i.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:e?.useFipsEndpoint??(0,c.loadConfig)(i.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:e?.utf8Decoder??m.fromUtf8,utf8Encoder:e?.utf8Encoder??m.toUtf8}};t.getRuntimeConfig=getRuntimeConfig},68005:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const o=n(4963);const r=n(2992);const i=n(97727);const s=n(97604);const getRuntimeConfig=e=>({apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??i.fromBase64,base64Encoder:e?.base64Encoder??i.toBase64,disableHostPrefix:e?.disableHostPrefix??false,endpointProvider:e?.endpointProvider??s.defaultEndpointResolver,logger:e?.logger??new o.NoOpLogger,serviceId:e?.serviceId??"SSO OIDC",urlParser:e?.urlParser??r.parseUrl});t.getRuntimeConfig=getRuntimeConfig},69838:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SSO=void 0;const o=n(18972);const r=n(1513);const i=n(64296);const s=n(12586);const a=n(71057);class SSO extends a.SSOClient{getRoleCredentials(e,t,n){const r=new o.GetRoleCredentialsCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},n)}else{return this.send(r,t)}}listAccountRoles(e,t,n){const o=new r.ListAccountRolesCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}listAccounts(e,t,n){const o=new i.ListAccountsCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}logout(e,t,n){const o=new s.LogoutCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}}t.SSO=SSO},71057:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SSOClient=void 0;const o=n(56153);const r=n(42245);const i=n(5497);const s=n(22545);const a=n(20014);const c=n(85525);const l=n(96064);const u=n(64688);const d=n(4963);const p=n(34214);const m=n(19756);class SSOClient extends d.Client{constructor(e){const t=(0,m.getRuntimeConfig)(e);const n=(0,p.resolveClientEndpointParameters)(t);const d=(0,o.resolveRegionConfig)(n);const g=(0,i.resolveEndpointConfig)(d);const f=(0,l.resolveRetryConfig)(g);const y=(0,s.resolveHostHeaderConfig)(f);const h=(0,u.resolveUserAgentConfig)(y);super(h);this.config=h;this.middlewareStack.use((0,l.getRetryPlugin)(this.config));this.middlewareStack.use((0,r.getContentLengthPlugin)(this.config));this.middlewareStack.use((0,s.getHostHeaderPlugin)(this.config));this.middlewareStack.use((0,a.getLoggerPlugin)(this.config));this.middlewareStack.use((0,c.getRecursionDetectionPlugin)(this.config));this.middlewareStack.use((0,u.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}}t.SSOClient=SSOClient},18972:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetRoleCredentialsCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(66390);const a=n(98507);class GetRoleCredentialsCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="SSOClient";const l="GetRoleCredentialsCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.GetRoleCredentialsRequestFilterSensitiveLog,outputFilterSensitiveLog:s.GetRoleCredentialsResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_restJson1GetRoleCredentialsCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_restJson1GetRoleCredentialsCommand)(e,t)}}t.GetRoleCredentialsCommand=GetRoleCredentialsCommand},1513:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ListAccountRolesCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(66390);const a=n(98507);class ListAccountRolesCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="SSOClient";const l="ListAccountRolesCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.ListAccountRolesRequestFilterSensitiveLog,outputFilterSensitiveLog:s.ListAccountRolesResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_restJson1ListAccountRolesCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_restJson1ListAccountRolesCommand)(e,t)}}t.ListAccountRolesCommand=ListAccountRolesCommand},64296:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ListAccountsCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(66390);const a=n(98507);class ListAccountsCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="SSOClient";const l="ListAccountsCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.ListAccountsRequestFilterSensitiveLog,outputFilterSensitiveLog:s.ListAccountsResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_restJson1ListAccountsCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_restJson1ListAccountsCommand)(e,t)}}t.ListAccountsCommand=ListAccountsCommand},12586:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.LogoutCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(66390);const a=n(98507);class LogoutCommand extends i.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="SSOClient";const l="LogoutCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.LogoutRequestFilterSensitiveLog,outputFilterSensitiveLog:e=>e};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_restJson1LogoutCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_restJson1LogoutCommand)(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(39205);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;t.ruleSet={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:false,documentation:"The AWS region used to dispatch the request.",type:"String"},UseDualStack:{builtIn:"AWS::UseDualStack",required:true,default:false,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:"Boolean"},UseFIPS:{builtIn:"AWS::UseFIPS",required:true,default:false,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:"Boolean"},Endpoint:{builtIn:"SDK::Endpoint",required:false,documentation:"Override the endpoint used to send this request",type:"String"}},rules:[{conditions:[{fn:"aws.partition",argv:[{ref:"Region"}],assign:"PartitionResult"}],type:"tree",rules:[{conditions:[{fn:"isSet",argv:[{ref:"Endpoint"}]},{fn:"parseURL",argv:[{ref:"Endpoint"}],assign:"url"}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[{ref:"UseFIPS"},true]}],error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:[],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[{ref:"UseDualStack"},true]}],error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{conditions:[],endpoint:{url:{ref:"Endpoint"},properties:{},headers:{}},type:"endpoint"}]}]},{conditions:[{fn:"booleanEquals",argv:[{ref:"UseFIPS"},true]},{fn:"booleanEquals",argv:[{ref:"UseDualStack"},true]}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[true,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsFIPS"]}]},{fn:"booleanEquals",argv:[true,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsDualStack"]}]}],type:"tree",rules:[{conditions:[],endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:{},headers:{}},type:"endpoint"}]},{conditions:[],error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}]},{conditions:[{fn:"booleanEquals",argv:[{ref:"UseFIPS"},true]}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[true,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsFIPS"]}]}],type:"tree",rules:[{conditions:[],type:"tree",rules:[{conditions:[],endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",properties:{},headers:{}},type:"endpoint"}]}]},{conditions:[],error:"FIPS is enabled but this partition does not support FIPS",type:"error"}]},{conditions:[{fn:"booleanEquals",argv:[{ref:"UseDualStack"},true]}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[true,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsDualStack"]}]}],type:"tree",rules:[{conditions:[],endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:{},headers:{}},type:"endpoint"}]},{conditions:[],error:"DualStack is enabled but this partition does not support DualStack",type:"error"}]},{conditions:[],endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",properties:{},headers:{}},type:"endpoint"}]}]}},82666:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SSOServiceException=void 0;const o=n(4351);o.__exportStar(n(69838),t);o.__exportStar(n(71057),t);o.__exportStar(n(65706),t);o.__exportStar(n(14952),t);o.__exportStar(n(36773),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=void 0;const o=n(4963);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.ListAccountsResponseFilterSensitiveLog=t.ListAccountsRequestFilterSensitiveLog=t.ListAccountRolesResponseFilterSensitiveLog=t.RoleInfoFilterSensitiveLog=t.ListAccountRolesRequestFilterSensitiveLog=t.GetRoleCredentialsResponseFilterSensitiveLog=t.RoleCredentialsFilterSensitiveLog=t.GetRoleCredentialsRequestFilterSensitiveLog=t.AccountInfoFilterSensitiveLog=t.UnauthorizedException=t.TooManyRequestsException=t.ResourceNotFoundException=t.InvalidRequestException=void 0;const o=n(4963);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 AccountInfoFilterSensitiveLog=e=>({...e});t.AccountInfoFilterSensitiveLog=AccountInfoFilterSensitiveLog;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 RoleInfoFilterSensitiveLog=e=>({...e});t.RoleInfoFilterSensitiveLog=RoleInfoFilterSensitiveLog;const ListAccountRolesResponseFilterSensitiveLog=e=>({...e});t.ListAccountRolesResponseFilterSensitiveLog=ListAccountRolesResponseFilterSensitiveLog;const ListAccountsRequestFilterSensitiveLog=e=>({...e,...e.accessToken&&{accessToken:o.SENSITIVE_STRING}});t.ListAccountsRequestFilterSensitiveLog=ListAccountsRequestFilterSensitiveLog;const ListAccountsResponseFilterSensitiveLog=e=>({...e});t.ListAccountsResponseFilterSensitiveLog=ListAccountsResponseFilterSensitiveLog;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(69838);const i=n(71057);const makePagedClientRequest=async(e,t,...n)=>await e.send(new o.ListAccountRolesCommand(t),...n);const makePagedRequest=async(e,t,...n)=>await e.listAccountRoles(t,...n);async function*paginateListAccountRoles(e,t,...n){let o=e.startingToken||undefined;let s=true;let a;while(s){t.nextToken=o;t["maxResults"]=e.pageSize;if(e.client instanceof r.SSO){a=await makePagedRequest(e.client,t,...n)}else if(e.client instanceof i.SSOClient){a=await makePagedClientRequest(e.client,t,...n)}else{throw new Error("Invalid client, expected SSO | SSOClient")}yield a;const c=o;o=a.nextToken;s=!!(o&&(!e.stopOnSameToken||o!==c))}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(69838);const i=n(71057);const makePagedClientRequest=async(e,t,...n)=>await e.send(new o.ListAccountsCommand(t),...n);const makePagedRequest=async(e,t,...n)=>await e.listAccounts(t,...n);async function*paginateListAccounts(e,t,...n){let o=e.startingToken||undefined;let s=true;let a;while(s){t.nextToken=o;t["maxResults"]=e.pageSize;if(e.client instanceof r.SSO){a=await makePagedRequest(e.client,t,...n)}else if(e.client instanceof i.SSOClient){a=await makePagedClientRequest(e.client,t,...n)}else{throw new Error("Invalid client, expected SSO | SSOClient")}yield a;const c=o;o=a.nextToken;s=!!(o&&(!e.stopOnSameToken||o!==c))}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.deserializeAws_restJson1LogoutCommand=t.deserializeAws_restJson1ListAccountsCommand=t.deserializeAws_restJson1ListAccountRolesCommand=t.deserializeAws_restJson1GetRoleCredentialsCommand=t.serializeAws_restJson1LogoutCommand=t.serializeAws_restJson1ListAccountsCommand=t.serializeAws_restJson1ListAccountRolesCommand=t.serializeAws_restJson1GetRoleCredentialsCommand=void 0;const o=n(70223);const r=n(4963);const i=n(66390);const s=n(81517);const serializeAws_restJson1GetRoleCredentialsCommand=async(e,t)=>{const{hostname:n,protocol:i="https",port:s,path:c}=await t.endpoint();const l=a({},isSerializableHeaderValue,{"x-amz-sso_bearer_token":e.accessToken});const u=`${c?.endsWith("/")?c.slice(0,-1):c||""}`+"/federation/credentials";const d=a({role_name:[,(0,r.expectNonNull)(e.roleName,`roleName`)],account_id:[,(0,r.expectNonNull)(e.accountId,`accountId`)]});let p;return new o.HttpRequest({protocol:i,hostname:n,port:s,method:"GET",headers:l,path:u,query:d,body:p})};t.serializeAws_restJson1GetRoleCredentialsCommand=serializeAws_restJson1GetRoleCredentialsCommand;const serializeAws_restJson1ListAccountRolesCommand=async(e,t)=>{const{hostname:n,protocol:i="https",port:s,path:c}=await t.endpoint();const l=a({},isSerializableHeaderValue,{"x-amz-sso_bearer_token":e.accessToken});const u=`${c?.endsWith("/")?c.slice(0,-1):c||""}`+"/assignment/roles";const d=a({next_token:[,e.nextToken],max_result:[()=>e.maxResults!==void 0,()=>e.maxResults.toString()],account_id:[,(0,r.expectNonNull)(e.accountId,`accountId`)]});let p;return new o.HttpRequest({protocol:i,hostname:n,port:s,method:"GET",headers:l,path:u,query:d,body:p})};t.serializeAws_restJson1ListAccountRolesCommand=serializeAws_restJson1ListAccountRolesCommand;const serializeAws_restJson1ListAccountsCommand=async(e,t)=>{const{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint();const c=a({},isSerializableHeaderValue,{"x-amz-sso_bearer_token":e.accessToken});const l=`${s?.endsWith("/")?s.slice(0,-1):s||""}`+"/assignment/accounts";const u=a({next_token:[,e.nextToken],max_result:[()=>e.maxResults!==void 0,()=>e.maxResults.toString()]});let d;return new o.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:c,path:l,query:u,body:d})};t.serializeAws_restJson1ListAccountsCommand=serializeAws_restJson1ListAccountsCommand;const serializeAws_restJson1LogoutCommand=async(e,t)=>{const{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint();const c=a({},isSerializableHeaderValue,{"x-amz-sso_bearer_token":e.accessToken});const l=`${s?.endsWith("/")?s.slice(0,-1):s||""}`+"/logout";let u;return new o.HttpRequest({protocol:r,hostname:n,port:i,method:"POST",headers:c,path:l,body:u})};t.serializeAws_restJson1LogoutCommand=serializeAws_restJson1LogoutCommand;const deserializeAws_restJson1GetRoleCredentialsCommand=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300){return deserializeAws_restJson1GetRoleCredentialsCommandError(e,t)}const n=a({$metadata:deserializeMetadata(e)});const o=(0,r.expectNonNull)((0,r.expectObject)(await parseBody(e.body,t)),"body");if(o.roleCredentials!=null){n.roleCredentials=deserializeAws_restJson1RoleCredentials(o.roleCredentials,t)}return n};t.deserializeAws_restJson1GetRoleCredentialsCommand=deserializeAws_restJson1GetRoleCredentialsCommand;const deserializeAws_restJson1GetRoleCredentialsCommandError=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 deserializeAws_restJson1InvalidRequestExceptionResponse(n,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(n,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(n,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await deserializeAws_restJson1UnauthorizedExceptionResponse(n,t);default:const i=n.body;(0,r.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.SSOServiceException,errorCode:o})}};const deserializeAws_restJson1ListAccountRolesCommand=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300){return deserializeAws_restJson1ListAccountRolesCommandError(e,t)}const n=a({$metadata:deserializeMetadata(e)});const o=(0,r.expectNonNull)((0,r.expectObject)(await parseBody(e.body,t)),"body");if(o.nextToken!=null){n.nextToken=(0,r.expectString)(o.nextToken)}if(o.roleList!=null){n.roleList=deserializeAws_restJson1RoleListType(o.roleList,t)}return n};t.deserializeAws_restJson1ListAccountRolesCommand=deserializeAws_restJson1ListAccountRolesCommand;const deserializeAws_restJson1ListAccountRolesCommandError=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 deserializeAws_restJson1InvalidRequestExceptionResponse(n,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(n,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(n,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await deserializeAws_restJson1UnauthorizedExceptionResponse(n,t);default:const i=n.body;(0,r.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.SSOServiceException,errorCode:o})}};const deserializeAws_restJson1ListAccountsCommand=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300){return deserializeAws_restJson1ListAccountsCommandError(e,t)}const n=a({$metadata:deserializeMetadata(e)});const o=(0,r.expectNonNull)((0,r.expectObject)(await parseBody(e.body,t)),"body");if(o.accountList!=null){n.accountList=deserializeAws_restJson1AccountListType(o.accountList,t)}if(o.nextToken!=null){n.nextToken=(0,r.expectString)(o.nextToken)}return n};t.deserializeAws_restJson1ListAccountsCommand=deserializeAws_restJson1ListAccountsCommand;const deserializeAws_restJson1ListAccountsCommandError=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 deserializeAws_restJson1InvalidRequestExceptionResponse(n,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(n,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(n,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await deserializeAws_restJson1UnauthorizedExceptionResponse(n,t);default:const i=n.body;(0,r.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.SSOServiceException,errorCode:o})}};const deserializeAws_restJson1LogoutCommand=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300){return deserializeAws_restJson1LogoutCommandError(e,t)}const n=a({$metadata:deserializeMetadata(e)});await collectBody(e.body,t);return n};t.deserializeAws_restJson1LogoutCommand=deserializeAws_restJson1LogoutCommand;const deserializeAws_restJson1LogoutCommandError=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 deserializeAws_restJson1InvalidRequestExceptionResponse(n,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(n,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await deserializeAws_restJson1UnauthorizedExceptionResponse(n,t);default:const i=n.body;(0,r.throwDefaultError)({output:e,parsedBody:i,exceptionCtor:s.SSOServiceException,errorCode:o})}};const a=r.map;const deserializeAws_restJson1InvalidRequestExceptionResponse=async(e,t)=>{const n=a({});const o=e.body;if(o.message!=null){n.message=(0,r.expectString)(o.message)}const s=new i.InvalidRequestException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,e.body)};const deserializeAws_restJson1ResourceNotFoundExceptionResponse=async(e,t)=>{const n=a({});const o=e.body;if(o.message!=null){n.message=(0,r.expectString)(o.message)}const s=new i.ResourceNotFoundException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,e.body)};const deserializeAws_restJson1TooManyRequestsExceptionResponse=async(e,t)=>{const n=a({});const o=e.body;if(o.message!=null){n.message=(0,r.expectString)(o.message)}const s=new i.TooManyRequestsException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,e.body)};const deserializeAws_restJson1UnauthorizedExceptionResponse=async(e,t)=>{const n=a({});const o=e.body;if(o.message!=null){n.message=(0,r.expectString)(o.message)}const s=new i.UnauthorizedException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,e.body)};const deserializeAws_restJson1AccountInfo=(e,t)=>({accountId:(0,r.expectString)(e.accountId),accountName:(0,r.expectString)(e.accountName),emailAddress:(0,r.expectString)(e.emailAddress)});const deserializeAws_restJson1AccountListType=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_restJson1AccountInfo(e,t)}));return n};const deserializeAws_restJson1RoleCredentials=(e,t)=>({accessKeyId:(0,r.expectString)(e.accessKeyId),expiration:(0,r.expectLong)(e.expiration),secretAccessKey:(0,r.expectString)(e.secretAccessKey),sessionToken:(0,r.expectString)(e.sessionToken)});const deserializeAws_restJson1RoleInfo=(e,t)=>({accountId:(0,r.expectString)(e.accountId),roleName:(0,r.expectString)(e.roleName)});const deserializeAws_restJson1RoleListType=(e,t)=>{const n=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_restJson1RoleInfo(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 collectBody=(e=new Uint8Array,t)=>{if(e instanceof Uint8Array){return Promise.resolve(e)}return t.streamCollector(e)||Promise.resolve(new Uint8Array)};const collectBodyString=(e,t)=>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 i=n(56153);const s=n(97442);const a=n(96064);const c=n(87684);const l=n(68805);const u=n(74147);const d=n(99395);const p=n(98095);const m=n(66278);const g=n(44809);const f=n(4963);const y=n(74243);const h=n(4963);const getRuntimeConfig=e=>{(0,h.emitWarningIfUnsupportedVersion)(process.version);const t=(0,y.resolveDefaultsModeConfig)(e);const defaultConfigProvider=()=>t().then(f.loadConfigsForDefaultMode);const n=(0,g.getRuntimeConfig)(e);return{...n,...e,runtime:"node",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??u.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,p.defaultUserAgent)({serviceId:n.serviceId,clientVersion:r.default.version}),maxAttempts:e?.maxAttempts??(0,c.loadConfig)(a.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:e?.region??(0,c.loadConfig)(i.NODE_REGION_CONFIG_OPTIONS,i.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:e?.requestHandler??new l.NodeHttpHandler(defaultConfigProvider),retryMode:e?.retryMode??(0,c.loadConfig)({...a.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await defaultConfigProvider()).retryMode||d.DEFAULT_RETRY_MODE}),sha256:e?.sha256??s.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??l.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,c.loadConfig)(i.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:e?.useFipsEndpoint??(0,c.loadConfig)(i.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:e?.utf8Decoder??m.fromUtf8,utf8Encoder:e?.utf8Encoder??m.toUtf8}};t.getRuntimeConfig=getRuntimeConfig},44809:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const o=n(4963);const r=n(2992);const i=n(97727);const s=n(30898);const getRuntimeConfig=e=>({apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??i.fromBase64,base64Encoder:e?.base64Encoder??i.toBase64,disableHostPrefix:e?.disableHostPrefix??false,endpointProvider:e?.endpointProvider??s.defaultEndpointResolver,logger:e?.logger??new o.NoOpLogger,serviceId:e?.serviceId??"SSO",urlParser:e?.urlParser??r.parseUrl});t.getRuntimeConfig=getRuntimeConfig},32605:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.STS=void 0;const o=n(59802);const r=n(72865);const i=n(37451);const s=n(74150);const a=n(49804);const c=n(24278);const l=n(57552);const u=n(43285);const d=n(64195);class STS extends d.STSClient{assumeRole(e,t,n){const r=new o.AssumeRoleCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},n)}else{return this.send(r,t)}}assumeRoleWithSAML(e,t,n){const o=new r.AssumeRoleWithSAMLCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}assumeRoleWithWebIdentity(e,t,n){const o=new i.AssumeRoleWithWebIdentityCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}decodeAuthorizationMessage(e,t,n){const o=new s.DecodeAuthorizationMessageCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}getAccessKeyInfo(e,t,n){const o=new a.GetAccessKeyInfoCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}getCallerIdentity(e,t,n){const o=new c.GetCallerIdentityCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}getFederationToken(e,t,n){const o=new l.GetFederationTokenCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}getSessionToken(e,t,n){const o=new u.GetSessionTokenCommand(e);if(typeof t==="function"){this.send(o,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(o,t||{},n)}else{return this.send(o,t)}}}t.STS=STS},64195:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.STSClient=void 0;const o=n(56153);const r=n(42245);const i=n(5497);const s=n(22545);const a=n(20014);const c=n(85525);const l=n(96064);const u=n(55959);const d=n(64688);const p=n(4963);const m=n(20510);const g=n(83405);class STSClient extends p.Client{constructor(e){const t=(0,g.getRuntimeConfig)(e);const n=(0,m.resolveClientEndpointParameters)(t);const p=(0,o.resolveRegionConfig)(n);const f=(0,i.resolveEndpointConfig)(p);const y=(0,l.resolveRetryConfig)(f);const h=(0,s.resolveHostHeaderConfig)(y);const E=(0,u.resolveStsAuthConfig)(h,{stsClientCtor:STSClient});const S=(0,d.resolveUserAgentConfig)(E);super(S);this.config=S;this.middlewareStack.use((0,l.getRetryPlugin)(this.config));this.middlewareStack.use((0,r.getContentLengthPlugin)(this.config));this.middlewareStack.use((0,s.getHostHeaderPlugin)(this.config));this.middlewareStack.use((0,a.getLoggerPlugin)(this.config));this.middlewareStack.use((0,c.getRecursionDetectionPlugin)(this.config));this.middlewareStack.use((0,d.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}}t.STSClient=STSClient},59802:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AssumeRoleCommand=void 0;const o=n(5497);const r=n(93631);const i=n(14935);const s=n(4963);const a=n(21780);const c=n(10740);class AssumeRoleCommand extends s.Command{constructor(e){super();this.input=e}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"}}}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,AssumeRoleCommand.getEndpointParameterInstructions()));this.middlewareStack.use((0,i.getAwsAuthPlugin)(t));const s=e.concat(this.middlewareStack);const{logger:c}=t;const l="STSClient";const u="AssumeRoleCommand";const d={logger:c,clientName:l,commandName:u,inputFilterSensitiveLog:a.AssumeRoleRequestFilterSensitiveLog,outputFilterSensitiveLog:a.AssumeRoleResponseFilterSensitiveLog};const{requestHandler:p}=t;return s.resolve((e=>p.handle(e.request,n||{})),d)}serialize(e,t){return(0,c.serializeAws_queryAssumeRoleCommand)(e,t)}deserialize(e,t){return(0,c.deserializeAws_queryAssumeRoleCommand)(e,t)}}t.AssumeRoleCommand=AssumeRoleCommand},72865:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AssumeRoleWithSAMLCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(21780);const a=n(10740);class AssumeRoleWithSAMLCommand extends i.Command{constructor(e){super();this.input=e}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"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="STSClient";const l="AssumeRoleWithSAMLCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.AssumeRoleWithSAMLRequestFilterSensitiveLog,outputFilterSensitiveLog:s.AssumeRoleWithSAMLResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_queryAssumeRoleWithSAMLCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_queryAssumeRoleWithSAMLCommand)(e,t)}}t.AssumeRoleWithSAMLCommand=AssumeRoleWithSAMLCommand},37451:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AssumeRoleWithWebIdentityCommand=void 0;const o=n(5497);const r=n(93631);const i=n(4963);const s=n(21780);const a=n(10740);class AssumeRoleWithWebIdentityCommand extends i.Command{constructor(e){super();this.input=e}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"}}}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 i=e.concat(this.middlewareStack);const{logger:a}=t;const c="STSClient";const l="AssumeRoleWithWebIdentityCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.AssumeRoleWithWebIdentityRequestFilterSensitiveLog,outputFilterSensitiveLog:s.AssumeRoleWithWebIdentityResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,n||{})),u)}serialize(e,t){return(0,a.serializeAws_queryAssumeRoleWithWebIdentityCommand)(e,t)}deserialize(e,t){return(0,a.deserializeAws_queryAssumeRoleWithWebIdentityCommand)(e,t)}}t.AssumeRoleWithWebIdentityCommand=AssumeRoleWithWebIdentityCommand},74150:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DecodeAuthorizationMessageCommand=void 0;const o=n(5497);const r=n(93631);const i=n(14935);const s=n(4963);const a=n(21780);const c=n(10740);class DecodeAuthorizationMessageCommand extends s.Command{constructor(e){super();this.input=e}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"}}}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,DecodeAuthorizationMessageCommand.getEndpointParameterInstructions()));this.middlewareStack.use((0,i.getAwsAuthPlugin)(t));const s=e.concat(this.middlewareStack);const{logger:c}=t;const l="STSClient";const u="DecodeAuthorizationMessageCommand";const d={logger:c,clientName:l,commandName:u,inputFilterSensitiveLog:a.DecodeAuthorizationMessageRequestFilterSensitiveLog,outputFilterSensitiveLog:a.DecodeAuthorizationMessageResponseFilterSensitiveLog};const{requestHandler:p}=t;return s.resolve((e=>p.handle(e.request,n||{})),d)}serialize(e,t){return(0,c.serializeAws_queryDecodeAuthorizationMessageCommand)(e,t)}deserialize(e,t){return(0,c.deserializeAws_queryDecodeAuthorizationMessageCommand)(e,t)}}t.DecodeAuthorizationMessageCommand=DecodeAuthorizationMessageCommand},49804:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetAccessKeyInfoCommand=void 0;const o=n(5497);const r=n(93631);const i=n(14935);const s=n(4963);const a=n(21780);const c=n(10740);class GetAccessKeyInfoCommand extends s.Command{constructor(e){super();this.input=e}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"}}}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,GetAccessKeyInfoCommand.getEndpointParameterInstructions()));this.middlewareStack.use((0,i.getAwsAuthPlugin)(t));const s=e.concat(this.middlewareStack);const{logger:c}=t;const l="STSClient";const u="GetAccessKeyInfoCommand";const d={logger:c,clientName:l,commandName:u,inputFilterSensitiveLog:a.GetAccessKeyInfoRequestFilterSensitiveLog,outputFilterSensitiveLog:a.GetAccessKeyInfoResponseFilterSensitiveLog};const{requestHandler:p}=t;return s.resolve((e=>p.handle(e.request,n||{})),d)}serialize(e,t){return(0,c.serializeAws_queryGetAccessKeyInfoCommand)(e,t)}deserialize(e,t){return(0,c.deserializeAws_queryGetAccessKeyInfoCommand)(e,t)}}t.GetAccessKeyInfoCommand=GetAccessKeyInfoCommand},24278:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetCallerIdentityCommand=void 0;const o=n(5497);const r=n(93631);const i=n(14935);const s=n(4963);const a=n(21780);const c=n(10740);class GetCallerIdentityCommand extends s.Command{constructor(e){super();this.input=e}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"}}}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,GetCallerIdentityCommand.getEndpointParameterInstructions()));this.middlewareStack.use((0,i.getAwsAuthPlugin)(t));const s=e.concat(this.middlewareStack);const{logger:c}=t;const l="STSClient";const u="GetCallerIdentityCommand";const d={logger:c,clientName:l,commandName:u,inputFilterSensitiveLog:a.GetCallerIdentityRequestFilterSensitiveLog,outputFilterSensitiveLog:a.GetCallerIdentityResponseFilterSensitiveLog};const{requestHandler:p}=t;return s.resolve((e=>p.handle(e.request,n||{})),d)}serialize(e,t){return(0,c.serializeAws_queryGetCallerIdentityCommand)(e,t)}deserialize(e,t){return(0,c.deserializeAws_queryGetCallerIdentityCommand)(e,t)}}t.GetCallerIdentityCommand=GetCallerIdentityCommand},57552:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetFederationTokenCommand=void 0;const o=n(5497);const r=n(93631);const i=n(14935);const s=n(4963);const a=n(21780);const c=n(10740);class GetFederationTokenCommand extends s.Command{constructor(e){super();this.input=e}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"}}}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,GetFederationTokenCommand.getEndpointParameterInstructions()));this.middlewareStack.use((0,i.getAwsAuthPlugin)(t));const s=e.concat(this.middlewareStack);const{logger:c}=t;const l="STSClient";const u="GetFederationTokenCommand";const d={logger:c,clientName:l,commandName:u,inputFilterSensitiveLog:a.GetFederationTokenRequestFilterSensitiveLog,outputFilterSensitiveLog:a.GetFederationTokenResponseFilterSensitiveLog};const{requestHandler:p}=t;return s.resolve((e=>p.handle(e.request,n||{})),d)}serialize(e,t){return(0,c.serializeAws_queryGetFederationTokenCommand)(e,t)}deserialize(e,t){return(0,c.deserializeAws_queryGetFederationTokenCommand)(e,t)}}t.GetFederationTokenCommand=GetFederationTokenCommand},43285:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetSessionTokenCommand=void 0;const o=n(5497);const r=n(93631);const i=n(14935);const s=n(4963);const a=n(21780);const c=n(10740);class GetSessionTokenCommand extends s.Command{constructor(e){super();this.input=e}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"}}}resolveMiddleware(e,t,n){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,o.getEndpointPlugin)(t,GetSessionTokenCommand.getEndpointParameterInstructions()));this.middlewareStack.use((0,i.getAwsAuthPlugin)(t));const s=e.concat(this.middlewareStack);const{logger:c}=t;const l="STSClient";const u="GetSessionTokenCommand";const d={logger:c,clientName:l,commandName:u,inputFilterSensitiveLog:a.GetSessionTokenRequestFilterSensitiveLog,outputFilterSensitiveLog:a.GetSessionTokenResponseFilterSensitiveLog};const{requestHandler:p}=t;return s.resolve((e=>p.handle(e.request,n||{})),d)}serialize(e,t){return(0,c.serializeAws_queryGetSessionTokenCommand)(e,t)}deserialize(e,t){return(0,c.deserializeAws_queryGetSessionTokenCommand)(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 i="us-east-1";const decorateDefaultRegion=e=>{if(typeof e!=="function"){return e===undefined?i:e}return async()=>{try{return await e()}catch(e){return i}}};const getDefaultRoleAssumer=(e,t)=>{let n;let r;return async(i,s)=>{r=i;if(!n){const{logger:o,region:i,requestHandler:s}=e;n=new t({logger:o,credentialDefaultProvider:()=>async()=>r,region:decorateDefaultRegion(i||e.region),...s?{requestHandler:s}:{}})}const{Credentials:a}=await n.send(new o.AssumeRoleCommand(s));if(!a||!a.AccessKeyId||!a.SecretAccessKey){throw new Error(`Invalid response from STS.assumeRole call with role ${s.RoleArn}`)}return{accessKeyId:a.AccessKeyId,secretAccessKey:a.SecretAccessKey,sessionToken:a.SessionToken,expiration:a.Expiration}}};t.getDefaultRoleAssumer=getDefaultRoleAssumer;const getDefaultRoleAssumerWithWebIdentity=(e,t)=>{let n;return async o=>{if(!n){const{logger:o,region:r,requestHandler:i}=e;n=new t({logger:o,region:decorateDefaultRegion(r||e.region),...i?{requestHandler:i}:{}})}const{Credentials:i}=await n.send(new r.AssumeRoleWithWebIdentityCommand(o));if(!i||!i.AccessKeyId||!i.SecretAccessKey){throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${o.RoleArn}`)}return{accessKeyId:i.AccessKeyId,secretAccessKey:i.SecretAccessKey,sessionToken:i.SessionToken,expiration:i.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(39205);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;t.ruleSet={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:false,documentation:"The AWS region used to dispatch the request.",type:"String"},UseDualStack:{builtIn:"AWS::UseDualStack",required:true,default:false,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:"Boolean"},UseFIPS:{builtIn:"AWS::UseFIPS",required:true,default:false,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:"Boolean"},Endpoint:{builtIn:"SDK::Endpoint",required:false,documentation:"Override the endpoint used to send this request",type:"String"},UseGlobalEndpoint:{builtIn:"AWS::STS::UseGlobalEndpoint",required:true,default:false,documentation:"Whether the global endpoint should be used, rather then the regional endpoint for us-east-1.",type:"Boolean"}},rules:[{conditions:[{fn:"aws.partition",argv:[{ref:"Region"}],assign:"PartitionResult"}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[{ref:"UseGlobalEndpoint"},true]},{fn:"booleanEquals",argv:[{ref:"UseFIPS"},false]},{fn:"booleanEquals",argv:[{ref:"UseDualStack"},false]},{fn:"not",argv:[{fn:"isSet",argv:[{ref:"Endpoint"}]}]}],type:"tree",rules:[{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"ap-northeast-1"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"ap-south-1"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"ap-southeast-1"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"ap-southeast-2"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"aws-global"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"ca-central-1"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"eu-central-1"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"eu-north-1"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"eu-west-1"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"eu-west-2"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"eu-west-3"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"sa-east-1"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"us-east-1"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"us-east-2"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"us-west-1"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"us-west-2"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[],endpoint:{url:"https://sts.{Region}.{PartitionResult#dnsSuffix}",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"{Region}"}]},headers:{}},type:"endpoint"}]},{conditions:[{fn:"isSet",argv:[{ref:"Endpoint"}]},{fn:"parseURL",argv:[{ref:"Endpoint"}],assign:"url"}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[{ref:"UseFIPS"},true]}],error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:[],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[{ref:"UseDualStack"},true]}],error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{conditions:[],endpoint:{url:{ref:"Endpoint"},properties:{},headers:{}},type:"endpoint"}]}]},{conditions:[{fn:"booleanEquals",argv:[{ref:"UseFIPS"},true]},{fn:"booleanEquals",argv:[{ref:"UseDualStack"},true]}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[true,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsFIPS"]}]},{fn:"booleanEquals",argv:[true,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsDualStack"]}]}],type:"tree",rules:[{conditions:[],endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:{},headers:{}},type:"endpoint"}]},{conditions:[],error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}]},{conditions:[{fn:"booleanEquals",argv:[{ref:"UseFIPS"},true]}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[true,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsFIPS"]}]}],type:"tree",rules:[{conditions:[],type:"tree",rules:[{conditions:[{fn:"stringEquals",argv:["aws-us-gov",{fn:"getAttr",argv:[{ref:"PartitionResult"},"name"]}]}],endpoint:{url:"https://sts.{Region}.{PartitionResult#dnsSuffix}",properties:{},headers:{}},type:"endpoint"},{conditions:[],endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:{},headers:{}},type:"endpoint"}]}]},{conditions:[],error:"FIPS is enabled but this partition does not support FIPS",type:"error"}]},{conditions:[{fn:"booleanEquals",argv:[{ref:"UseDualStack"},true]}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[true,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsDualStack"]}]}],type:"tree",rules:[{conditions:[],endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:{},headers:{}},type:"endpoint"}]},{conditions:[],error:"DualStack is enabled but this partition does not support DualStack",type:"error"}]},{conditions:[],type:"tree",rules:[{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"aws-global"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingRegion:"us-east-1",signingName:"sts"}]},headers:{}},type:"endpoint"},{conditions:[],endpoint:{url:"https://sts.{Region}.{PartitionResult#dnsSuffix}",properties:{},headers:{}},type:"endpoint"}]}]}]}},52209:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.STSServiceException=void 0;const o=n(4351);o.__exportStar(n(32605),t);o.__exportStar(n(64195),t);o.__exportStar(n(55716),t);o.__exportStar(n(88028),t);o.__exportStar(n(20106),t);var r=n(26450);Object.defineProperty(t,"STSServiceException",{enumerable:true,get:function(){return r.STSServiceException}})},26450:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.STSServiceException=void 0;const o=n(4963);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.GetSessionTokenRequestFilterSensitiveLog=t.GetFederationTokenResponseFilterSensitiveLog=t.FederatedUserFilterSensitiveLog=t.GetFederationTokenRequestFilterSensitiveLog=t.GetCallerIdentityResponseFilterSensitiveLog=t.GetCallerIdentityRequestFilterSensitiveLog=t.GetAccessKeyInfoResponseFilterSensitiveLog=t.GetAccessKeyInfoRequestFilterSensitiveLog=t.DecodeAuthorizationMessageResponseFilterSensitiveLog=t.DecodeAuthorizationMessageRequestFilterSensitiveLog=t.AssumeRoleWithWebIdentityResponseFilterSensitiveLog=t.AssumeRoleWithWebIdentityRequestFilterSensitiveLog=t.AssumeRoleWithSAMLResponseFilterSensitiveLog=t.AssumeRoleWithSAMLRequestFilterSensitiveLog=t.AssumeRoleResponseFilterSensitiveLog=t.CredentialsFilterSensitiveLog=t.AssumeRoleRequestFilterSensitiveLog=t.TagFilterSensitiveLog=t.PolicyDescriptorTypeFilterSensitiveLog=t.AssumedRoleUserFilterSensitiveLog=t.InvalidAuthorizationMessageException=t.IDPCommunicationErrorException=t.InvalidIdentityTokenException=t.IDPRejectedClaimException=t.RegionDisabledException=t.PackedPolicyTooLargeException=t.MalformedPolicyDocumentException=t.ExpiredTokenException=void 0;const o=n(26450);class ExpiredTokenException extends o.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 o.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 o.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 o.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 o.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 o.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 o.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 o.STSServiceException{constructor(e){super({name:"InvalidAuthorizationMessageException",$fault:"client",...e});this.name="InvalidAuthorizationMessageException";this.$fault="client";Object.setPrototypeOf(this,InvalidAuthorizationMessageException.prototype)}}t.InvalidAuthorizationMessageException=InvalidAuthorizationMessageException;const AssumedRoleUserFilterSensitiveLog=e=>({...e});t.AssumedRoleUserFilterSensitiveLog=AssumedRoleUserFilterSensitiveLog;const PolicyDescriptorTypeFilterSensitiveLog=e=>({...e});t.PolicyDescriptorTypeFilterSensitiveLog=PolicyDescriptorTypeFilterSensitiveLog;const TagFilterSensitiveLog=e=>({...e});t.TagFilterSensitiveLog=TagFilterSensitiveLog;const AssumeRoleRequestFilterSensitiveLog=e=>({...e});t.AssumeRoleRequestFilterSensitiveLog=AssumeRoleRequestFilterSensitiveLog;const CredentialsFilterSensitiveLog=e=>({...e});t.CredentialsFilterSensitiveLog=CredentialsFilterSensitiveLog;const AssumeRoleResponseFilterSensitiveLog=e=>({...e});t.AssumeRoleResponseFilterSensitiveLog=AssumeRoleResponseFilterSensitiveLog;const AssumeRoleWithSAMLRequestFilterSensitiveLog=e=>({...e});t.AssumeRoleWithSAMLRequestFilterSensitiveLog=AssumeRoleWithSAMLRequestFilterSensitiveLog;const AssumeRoleWithSAMLResponseFilterSensitiveLog=e=>({...e});t.AssumeRoleWithSAMLResponseFilterSensitiveLog=AssumeRoleWithSAMLResponseFilterSensitiveLog;const AssumeRoleWithWebIdentityRequestFilterSensitiveLog=e=>({...e});t.AssumeRoleWithWebIdentityRequestFilterSensitiveLog=AssumeRoleWithWebIdentityRequestFilterSensitiveLog;const AssumeRoleWithWebIdentityResponseFilterSensitiveLog=e=>({...e});t.AssumeRoleWithWebIdentityResponseFilterSensitiveLog=AssumeRoleWithWebIdentityResponseFilterSensitiveLog;const DecodeAuthorizationMessageRequestFilterSensitiveLog=e=>({...e});t.DecodeAuthorizationMessageRequestFilterSensitiveLog=DecodeAuthorizationMessageRequestFilterSensitiveLog;const DecodeAuthorizationMessageResponseFilterSensitiveLog=e=>({...e});t.DecodeAuthorizationMessageResponseFilterSensitiveLog=DecodeAuthorizationMessageResponseFilterSensitiveLog;const GetAccessKeyInfoRequestFilterSensitiveLog=e=>({...e});t.GetAccessKeyInfoRequestFilterSensitiveLog=GetAccessKeyInfoRequestFilterSensitiveLog;const GetAccessKeyInfoResponseFilterSensitiveLog=e=>({...e});t.GetAccessKeyInfoResponseFilterSensitiveLog=GetAccessKeyInfoResponseFilterSensitiveLog;const GetCallerIdentityRequestFilterSensitiveLog=e=>({...e});t.GetCallerIdentityRequestFilterSensitiveLog=GetCallerIdentityRequestFilterSensitiveLog;const GetCallerIdentityResponseFilterSensitiveLog=e=>({...e});t.GetCallerIdentityResponseFilterSensitiveLog=GetCallerIdentityResponseFilterSensitiveLog;const GetFederationTokenRequestFilterSensitiveLog=e=>({...e});t.GetFederationTokenRequestFilterSensitiveLog=GetFederationTokenRequestFilterSensitiveLog;const FederatedUserFilterSensitiveLog=e=>({...e});t.FederatedUserFilterSensitiveLog=FederatedUserFilterSensitiveLog;const GetFederationTokenResponseFilterSensitiveLog=e=>({...e});t.GetFederationTokenResponseFilterSensitiveLog=GetFederationTokenResponseFilterSensitiveLog;const GetSessionTokenRequestFilterSensitiveLog=e=>({...e});t.GetSessionTokenRequestFilterSensitiveLog=GetSessionTokenRequestFilterSensitiveLog;const GetSessionTokenResponseFilterSensitiveLog=e=>({...e});t.GetSessionTokenResponseFilterSensitiveLog=GetSessionTokenResponseFilterSensitiveLog},10740:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.deserializeAws_queryGetSessionTokenCommand=t.deserializeAws_queryGetFederationTokenCommand=t.deserializeAws_queryGetCallerIdentityCommand=t.deserializeAws_queryGetAccessKeyInfoCommand=t.deserializeAws_queryDecodeAuthorizationMessageCommand=t.deserializeAws_queryAssumeRoleWithWebIdentityCommand=t.deserializeAws_queryAssumeRoleWithSAMLCommand=t.deserializeAws_queryAssumeRoleCommand=t.serializeAws_queryGetSessionTokenCommand=t.serializeAws_queryGetFederationTokenCommand=t.serializeAws_queryGetCallerIdentityCommand=t.serializeAws_queryGetAccessKeyInfoCommand=t.serializeAws_queryDecodeAuthorizationMessageCommand=t.serializeAws_queryAssumeRoleWithWebIdentityCommand=t.serializeAws_queryAssumeRoleWithSAMLCommand=t.serializeAws_queryAssumeRoleCommand=void 0;const o=n(70223);const r=n(4963);const i=n(12603);const s=n(21780);const a=n(26450);const serializeAws_queryAssumeRoleCommand=async(e,t)=>{const n={"content-type":"application/x-www-form-urlencoded"};let o;o=buildFormUrlencodedString({...serializeAws_queryAssumeRoleRequest(e,t),Action:"AssumeRole",Version:"2011-06-15"});return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_queryAssumeRoleCommand=serializeAws_queryAssumeRoleCommand;const serializeAws_queryAssumeRoleWithSAMLCommand=async(e,t)=>{const n={"content-type":"application/x-www-form-urlencoded"};let o;o=buildFormUrlencodedString({...serializeAws_queryAssumeRoleWithSAMLRequest(e,t),Action:"AssumeRoleWithSAML",Version:"2011-06-15"});return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_queryAssumeRoleWithSAMLCommand=serializeAws_queryAssumeRoleWithSAMLCommand;const serializeAws_queryAssumeRoleWithWebIdentityCommand=async(e,t)=>{const n={"content-type":"application/x-www-form-urlencoded"};let o;o=buildFormUrlencodedString({...serializeAws_queryAssumeRoleWithWebIdentityRequest(e,t),Action:"AssumeRoleWithWebIdentity",Version:"2011-06-15"});return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_queryAssumeRoleWithWebIdentityCommand=serializeAws_queryAssumeRoleWithWebIdentityCommand;const serializeAws_queryDecodeAuthorizationMessageCommand=async(e,t)=>{const n={"content-type":"application/x-www-form-urlencoded"};let o;o=buildFormUrlencodedString({...serializeAws_queryDecodeAuthorizationMessageRequest(e,t),Action:"DecodeAuthorizationMessage",Version:"2011-06-15"});return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_queryDecodeAuthorizationMessageCommand=serializeAws_queryDecodeAuthorizationMessageCommand;const serializeAws_queryGetAccessKeyInfoCommand=async(e,t)=>{const n={"content-type":"application/x-www-form-urlencoded"};let o;o=buildFormUrlencodedString({...serializeAws_queryGetAccessKeyInfoRequest(e,t),Action:"GetAccessKeyInfo",Version:"2011-06-15"});return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_queryGetAccessKeyInfoCommand=serializeAws_queryGetAccessKeyInfoCommand;const serializeAws_queryGetCallerIdentityCommand=async(e,t)=>{const n={"content-type":"application/x-www-form-urlencoded"};let o;o=buildFormUrlencodedString({...serializeAws_queryGetCallerIdentityRequest(e,t),Action:"GetCallerIdentity",Version:"2011-06-15"});return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_queryGetCallerIdentityCommand=serializeAws_queryGetCallerIdentityCommand;const serializeAws_queryGetFederationTokenCommand=async(e,t)=>{const n={"content-type":"application/x-www-form-urlencoded"};let o;o=buildFormUrlencodedString({...serializeAws_queryGetFederationTokenRequest(e,t),Action:"GetFederationToken",Version:"2011-06-15"});return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_queryGetFederationTokenCommand=serializeAws_queryGetFederationTokenCommand;const serializeAws_queryGetSessionTokenCommand=async(e,t)=>{const n={"content-type":"application/x-www-form-urlencoded"};let o;o=buildFormUrlencodedString({...serializeAws_queryGetSessionTokenRequest(e,t),Action:"GetSessionToken",Version:"2011-06-15"});return buildHttpRpcRequest(t,n,"/",undefined,o)};t.serializeAws_queryGetSessionTokenCommand=serializeAws_queryGetSessionTokenCommand;const deserializeAws_queryAssumeRoleCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_queryAssumeRoleCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_queryAssumeRoleResponse(n.AssumeRoleResult,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_queryAssumeRoleCommand=deserializeAws_queryAssumeRoleCommand;const deserializeAws_queryAssumeRoleCommandError=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 deserializeAws_queryExpiredTokenExceptionResponse(n,t);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(n,t);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(n,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await deserializeAws_queryRegionDisabledExceptionResponse(n,t);default:const i=n.body;(0,r.throwDefaultError)({output:e,parsedBody:i.Error,exceptionCtor:a.STSServiceException,errorCode:o})}};const deserializeAws_queryAssumeRoleWithSAMLCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_queryAssumeRoleWithSAMLCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_queryAssumeRoleWithSAMLResponse(n.AssumeRoleWithSAMLResult,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_queryAssumeRoleWithSAMLCommand=deserializeAws_queryAssumeRoleWithSAMLCommand;const deserializeAws_queryAssumeRoleWithSAMLCommandError=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 deserializeAws_queryExpiredTokenExceptionResponse(n,t);case"IDPRejectedClaim":case"com.amazonaws.sts#IDPRejectedClaimException":throw await deserializeAws_queryIDPRejectedClaimExceptionResponse(n,t);case"InvalidIdentityToken":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await deserializeAws_queryInvalidIdentityTokenExceptionResponse(n,t);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(n,t);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(n,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await deserializeAws_queryRegionDisabledExceptionResponse(n,t);default:const i=n.body;(0,r.throwDefaultError)({output:e,parsedBody:i.Error,exceptionCtor:a.STSServiceException,errorCode:o})}};const deserializeAws_queryAssumeRoleWithWebIdentityCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_queryAssumeRoleWithWebIdentityCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_queryAssumeRoleWithWebIdentityResponse(n.AssumeRoleWithWebIdentityResult,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_queryAssumeRoleWithWebIdentityCommand=deserializeAws_queryAssumeRoleWithWebIdentityCommand;const deserializeAws_queryAssumeRoleWithWebIdentityCommandError=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 deserializeAws_queryExpiredTokenExceptionResponse(n,t);case"IDPCommunicationError":case"com.amazonaws.sts#IDPCommunicationErrorException":throw await deserializeAws_queryIDPCommunicationErrorExceptionResponse(n,t);case"IDPRejectedClaim":case"com.amazonaws.sts#IDPRejectedClaimException":throw await deserializeAws_queryIDPRejectedClaimExceptionResponse(n,t);case"InvalidIdentityToken":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await deserializeAws_queryInvalidIdentityTokenExceptionResponse(n,t);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(n,t);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(n,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await deserializeAws_queryRegionDisabledExceptionResponse(n,t);default:const i=n.body;(0,r.throwDefaultError)({output:e,parsedBody:i.Error,exceptionCtor:a.STSServiceException,errorCode:o})}};const deserializeAws_queryDecodeAuthorizationMessageCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_queryDecodeAuthorizationMessageCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_queryDecodeAuthorizationMessageResponse(n.DecodeAuthorizationMessageResult,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_queryDecodeAuthorizationMessageCommand=deserializeAws_queryDecodeAuthorizationMessageCommand;const deserializeAws_queryDecodeAuthorizationMessageCommandError=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 deserializeAws_queryInvalidAuthorizationMessageExceptionResponse(n,t);default:const i=n.body;(0,r.throwDefaultError)({output:e,parsedBody:i.Error,exceptionCtor:a.STSServiceException,errorCode:o})}};const deserializeAws_queryGetAccessKeyInfoCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_queryGetAccessKeyInfoCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_queryGetAccessKeyInfoResponse(n.GetAccessKeyInfoResult,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_queryGetAccessKeyInfoCommand=deserializeAws_queryGetAccessKeyInfoCommand;const deserializeAws_queryGetAccessKeyInfoCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadQueryErrorCode(e,n.body);const i=n.body;(0,r.throwDefaultError)({output:e,parsedBody:i.Error,exceptionCtor:a.STSServiceException,errorCode:o})};const deserializeAws_queryGetCallerIdentityCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_queryGetCallerIdentityCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_queryGetCallerIdentityResponse(n.GetCallerIdentityResult,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_queryGetCallerIdentityCommand=deserializeAws_queryGetCallerIdentityCommand;const deserializeAws_queryGetCallerIdentityCommandError=async(e,t)=>{const n={...e,body:await parseErrorBody(e.body,t)};const o=loadQueryErrorCode(e,n.body);const i=n.body;(0,r.throwDefaultError)({output:e,parsedBody:i.Error,exceptionCtor:a.STSServiceException,errorCode:o})};const deserializeAws_queryGetFederationTokenCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_queryGetFederationTokenCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_queryGetFederationTokenResponse(n.GetFederationTokenResult,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_queryGetFederationTokenCommand=deserializeAws_queryGetFederationTokenCommand;const deserializeAws_queryGetFederationTokenCommandError=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 deserializeAws_queryMalformedPolicyDocumentExceptionResponse(n,t);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(n,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await deserializeAws_queryRegionDisabledExceptionResponse(n,t);default:const i=n.body;(0,r.throwDefaultError)({output:e,parsedBody:i.Error,exceptionCtor:a.STSServiceException,errorCode:o})}};const deserializeAws_queryGetSessionTokenCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_queryGetSessionTokenCommandError(e,t)}const n=await parseBody(e.body,t);let o={};o=deserializeAws_queryGetSessionTokenResponse(n.GetSessionTokenResult,t);const r={$metadata:deserializeMetadata(e),...o};return Promise.resolve(r)};t.deserializeAws_queryGetSessionTokenCommand=deserializeAws_queryGetSessionTokenCommand;const deserializeAws_queryGetSessionTokenCommandError=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 deserializeAws_queryRegionDisabledExceptionResponse(n,t);default:const i=n.body;(0,r.throwDefaultError)({output:e,parsedBody:i.Error,exceptionCtor:a.STSServiceException,errorCode:o})}};const deserializeAws_queryExpiredTokenExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_queryExpiredTokenException(n.Error,t);const i=new s.ExpiredTokenException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_queryIDPCommunicationErrorExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_queryIDPCommunicationErrorException(n.Error,t);const i=new s.IDPCommunicationErrorException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_queryIDPRejectedClaimExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_queryIDPRejectedClaimException(n.Error,t);const i=new s.IDPRejectedClaimException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_queryInvalidAuthorizationMessageExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_queryInvalidAuthorizationMessageException(n.Error,t);const i=new s.InvalidAuthorizationMessageException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_queryInvalidIdentityTokenExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_queryInvalidIdentityTokenException(n.Error,t);const i=new s.InvalidIdentityTokenException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_queryMalformedPolicyDocumentExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_queryMalformedPolicyDocumentException(n.Error,t);const i=new s.MalformedPolicyDocumentException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_queryPackedPolicyTooLargeExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_queryPackedPolicyTooLargeException(n.Error,t);const i=new s.PackedPolicyTooLargeException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const deserializeAws_queryRegionDisabledExceptionResponse=async(e,t)=>{const n=e.body;const o=deserializeAws_queryRegionDisabledException(n.Error,t);const i=new s.RegionDisabledException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(i,n)};const serializeAws_queryAssumeRoleRequest=(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=serializeAws_querypolicyDescriptorListType(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=serializeAws_querytagListType(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=serializeAws_querytagKeyListType(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 serializeAws_queryAssumeRoleWithSAMLRequest=(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=serializeAws_querypolicyDescriptorListType(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 serializeAws_queryAssumeRoleWithWebIdentityRequest=(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=serializeAws_querypolicyDescriptorListType(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 serializeAws_queryDecodeAuthorizationMessageRequest=(e,t)=>{const n={};if(e.EncodedMessage!=null){n["EncodedMessage"]=e.EncodedMessage}return n};const serializeAws_queryGetAccessKeyInfoRequest=(e,t)=>{const n={};if(e.AccessKeyId!=null){n["AccessKeyId"]=e.AccessKeyId}return n};const serializeAws_queryGetCallerIdentityRequest=(e,t)=>{const n={};return n};const serializeAws_queryGetFederationTokenRequest=(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=serializeAws_querypolicyDescriptorListType(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=serializeAws_querytagListType(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 serializeAws_queryGetSessionTokenRequest=(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 serializeAws_querypolicyDescriptorListType=(e,t)=>{const n={};let o=1;for(const r of e){if(r===null){continue}const e=serializeAws_queryPolicyDescriptorType(r,t);Object.entries(e).forEach((([e,t])=>{n[`member.${o}.${e}`]=t}));o++}return n};const serializeAws_queryPolicyDescriptorType=(e,t)=>{const n={};if(e.arn!=null){n["arn"]=e.arn}return n};const serializeAws_queryTag=(e,t)=>{const n={};if(e.Key!=null){n["Key"]=e.Key}if(e.Value!=null){n["Value"]=e.Value}return n};const serializeAws_querytagKeyListType=(e,t)=>{const n={};let o=1;for(const t of e){if(t===null){continue}n[`member.${o}`]=t;o++}return n};const serializeAws_querytagListType=(e,t)=>{const n={};let o=1;for(const r of e){if(r===null){continue}const e=serializeAws_queryTag(r,t);Object.entries(e).forEach((([e,t])=>{n[`member.${o}.${e}`]=t}));o++}return n};const deserializeAws_queryAssumedRoleUser=(e,t)=>{const n={AssumedRoleId:undefined,Arn:undefined};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 deserializeAws_queryAssumeRoleResponse=(e,t)=>{const n={Credentials:undefined,AssumedRoleUser:undefined,PackedPolicySize:undefined,SourceIdentity:undefined};if(e["Credentials"]!==undefined){n.Credentials=deserializeAws_queryCredentials(e["Credentials"],t)}if(e["AssumedRoleUser"]!==undefined){n.AssumedRoleUser=deserializeAws_queryAssumedRoleUser(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 deserializeAws_queryAssumeRoleWithSAMLResponse=(e,t)=>{const n={Credentials:undefined,AssumedRoleUser:undefined,PackedPolicySize:undefined,Subject:undefined,SubjectType:undefined,Issuer:undefined,Audience:undefined,NameQualifier:undefined,SourceIdentity:undefined};if(e["Credentials"]!==undefined){n.Credentials=deserializeAws_queryCredentials(e["Credentials"],t)}if(e["AssumedRoleUser"]!==undefined){n.AssumedRoleUser=deserializeAws_queryAssumedRoleUser(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 deserializeAws_queryAssumeRoleWithWebIdentityResponse=(e,t)=>{const n={Credentials:undefined,SubjectFromWebIdentityToken:undefined,AssumedRoleUser:undefined,PackedPolicySize:undefined,Provider:undefined,Audience:undefined,SourceIdentity:undefined};if(e["Credentials"]!==undefined){n.Credentials=deserializeAws_queryCredentials(e["Credentials"],t)}if(e["SubjectFromWebIdentityToken"]!==undefined){n.SubjectFromWebIdentityToken=(0,r.expectString)(e["SubjectFromWebIdentityToken"])}if(e["AssumedRoleUser"]!==undefined){n.AssumedRoleUser=deserializeAws_queryAssumedRoleUser(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 deserializeAws_queryCredentials=(e,t)=>{const n={AccessKeyId:undefined,SecretAccessKey:undefined,SessionToken:undefined,Expiration:undefined};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.parseRfc3339DateTime)(e["Expiration"]))}return n};const deserializeAws_queryDecodeAuthorizationMessageResponse=(e,t)=>{const n={DecodedMessage:undefined};if(e["DecodedMessage"]!==undefined){n.DecodedMessage=(0,r.expectString)(e["DecodedMessage"])}return n};const deserializeAws_queryExpiredTokenException=(e,t)=>{const n={message:undefined};if(e["message"]!==undefined){n.message=(0,r.expectString)(e["message"])}return n};const deserializeAws_queryFederatedUser=(e,t)=>{const n={FederatedUserId:undefined,Arn:undefined};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 deserializeAws_queryGetAccessKeyInfoResponse=(e,t)=>{const n={Account:undefined};if(e["Account"]!==undefined){n.Account=(0,r.expectString)(e["Account"])}return n};const deserializeAws_queryGetCallerIdentityResponse=(e,t)=>{const n={UserId:undefined,Account:undefined,Arn:undefined};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 deserializeAws_queryGetFederationTokenResponse=(e,t)=>{const n={Credentials:undefined,FederatedUser:undefined,PackedPolicySize:undefined};if(e["Credentials"]!==undefined){n.Credentials=deserializeAws_queryCredentials(e["Credentials"],t)}if(e["FederatedUser"]!==undefined){n.FederatedUser=deserializeAws_queryFederatedUser(e["FederatedUser"],t)}if(e["PackedPolicySize"]!==undefined){n.PackedPolicySize=(0,r.strictParseInt32)(e["PackedPolicySize"])}return n};const deserializeAws_queryGetSessionTokenResponse=(e,t)=>{const n={Credentials:undefined};if(e["Credentials"]!==undefined){n.Credentials=deserializeAws_queryCredentials(e["Credentials"],t)}return n};const deserializeAws_queryIDPCommunicationErrorException=(e,t)=>{const n={message:undefined};if(e["message"]!==undefined){n.message=(0,r.expectString)(e["message"])}return n};const deserializeAws_queryIDPRejectedClaimException=(e,t)=>{const n={message:undefined};if(e["message"]!==undefined){n.message=(0,r.expectString)(e["message"])}return n};const deserializeAws_queryInvalidAuthorizationMessageException=(e,t)=>{const n={message:undefined};if(e["message"]!==undefined){n.message=(0,r.expectString)(e["message"])}return n};const deserializeAws_queryInvalidIdentityTokenException=(e,t)=>{const n={message:undefined};if(e["message"]!==undefined){n.message=(0,r.expectString)(e["message"])}return n};const deserializeAws_queryMalformedPolicyDocumentException=(e,t)=>{const n={message:undefined};if(e["message"]!==undefined){n.message=(0,r.expectString)(e["message"])}return n};const deserializeAws_queryPackedPolicyTooLargeException=(e,t)=>{const n={message:undefined};if(e["message"]!==undefined){n.message=(0,r.expectString)(e["message"])}return n};const deserializeAws_queryRegionDisabledException=(e,t)=>{const n={message:undefined};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 collectBody=(e=new Uint8Array,t)=>{if(e instanceof Uint8Array){return Promise.resolve(e)}return t.streamCollector(e)||Promise.resolve(new Uint8Array)};const collectBodyString=(e,t)=>collectBody(e,t).then((e=>t.utf8Encoder(e)));const buildHttpRpcRequest=async(e,t,n,r,i)=>{const{hostname:s,protocol:a="https",port:c,path:l}=await e.endpoint();const u={protocol:a,hostname:s,port:c,method:"POST",path:l.endsWith("/")?l.slice(0,-1)+n:l+n,headers:t};if(r!==undefined){u.hostname=r}if(i!==undefined){u.body=i}return new o.HttpRequest(u)};const parseBody=(e,t)=>collectBodyString(e,t).then((e=>{if(e.length){const t=new i.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 s=Object.keys(n)[0];const a=n[s];if(a[o]){a[s]=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 i=n(90048);const s=n(56153);const a=n(75531);const c=n(97442);const l=n(96064);const u=n(87684);const d=n(68805);const p=n(74147);const m=n(99395);const g=n(98095);const f=n(66278);const y=n(52642);const h=n(4963);const E=n(74243);const S=n(4963);const getRuntimeConfig=e=>{(0,S.emitWarningIfUnsupportedVersion)(process.version);const t=(0,E.resolveDefaultsModeConfig)(e);const defaultConfigProvider=()=>t().then(h.loadConfigsForDefaultMode);const n=(0,y.getRuntimeConfig)(e);return{...n,...e,runtime:"node",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??p.calculateBodyLength,credentialDefaultProvider:e?.credentialDefaultProvider??(0,i.decorateDefaultCredentialProvider)(a.defaultProvider),defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,g.defaultUserAgent)({serviceId:n.serviceId,clientVersion:r.default.version}),maxAttempts:e?.maxAttempts??(0,u.loadConfig)(l.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:e?.region??(0,u.loadConfig)(s.NODE_REGION_CONFIG_OPTIONS,s.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:e?.requestHandler??new d.NodeHttpHandler(defaultConfigProvider),retryMode:e?.retryMode??(0,u.loadConfig)({...l.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await defaultConfigProvider()).retryMode||m.DEFAULT_RETRY_MODE}),sha256:e?.sha256??c.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??d.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,u.loadConfig)(s.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:e?.useFipsEndpoint??(0,u.loadConfig)(s.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:e?.utf8Decoder??f.fromUtf8,utf8Encoder:e?.utf8Encoder??f.toUtf8}};t.getRuntimeConfig=getRuntimeConfig},52642:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const o=n(4963);const r=n(2992);const i=n(97727);const s=n(41203);const getRuntimeConfig=e=>({apiVersion:"2011-06-15",base64Decoder:e?.base64Decoder??i.fromBase64,base64Encoder:e?.base64Encoder??i.toBase64,disableHostPrefix:e?.disableHostPrefix??false,endpointProvider:e?.endpointProvider??s.defaultEndpointResolver,logger:e?.logger??new o.NoOpLogger,serviceId:e?.serviceId??"STS",urlParser:e?.urlParser??r.parseUrl});t.getRuntimeConfig=getRuntimeConfig},14723:(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(6168);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}},42478:(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(6168);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}},47392:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(14723),t);o.__exportStar(n(42478),t);o.__exportStar(n(92108),t);o.__exportStar(n(92327),t)},92108:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveCustomEndpointsConfig=void 0;const o=n(10236);const resolveCustomEndpointsConfig=e=>{var t,n;const{endpoint:r,urlParser:i}=e;return{...e,tls:(t=e.tls)!==null&&t!==void 0?t:true,endpoint:(0,o.normalizeProvider)(typeof r==="string"?i(r):r),isCustomEndpoint:true,useDualstackEndpoint:(0,o.normalizeProvider)((n=e.useDualstackEndpoint)!==null&&n!==void 0?n:false)}};t.resolveCustomEndpointsConfig=resolveCustomEndpointsConfig},92327:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveEndpointsConfig=void 0;const o=n(10236);const r=n(94159);const resolveEndpointsConfig=e=>{var t,n;const i=(0,o.normalizeProvider)((t=e.useDualstackEndpoint)!==null&&t!==void 0?t:false);const{endpoint:s,useFipsEndpoint:a,urlParser:c}=e;return{...e,tls:(n=e.tls)!==null&&n!==void 0?n:true,endpoint:s?(0,o.normalizeProvider)(typeof s==="string"?c(s):s):()=>(0,r.getEndpointFromRegion)({...e,useDualstackEndpoint:i,useFipsEndpoint:a}),isCustomEndpoint:!!s,useDualstackEndpoint:i}};t.resolveEndpointsConfig=resolveEndpointsConfig},94159:(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 i=await e.useDualstackEndpoint();const s=await e.useFipsEndpoint();const{hostname:a}=(t=await e.regionInfoProvider(o,{useDualstackEndpoint:i,useFipsEndpoint:s}))!==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},56153:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(47392),t);o.__exportStar(n(85441),t);o.__exportStar(n(86258),t)},70422:(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"}},52844:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRealRegion=void 0;const o=n(82440);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},85441:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(70422),t);o.__exportStar(n(60174),t)},82440:(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},60174:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveRegionConfig=void 0;const o=n(52844);const r=n(82440);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}if(!n){return Promise.resolve(false)}return typeof n==="boolean"?Promise.resolve(n):n()}}};t.resolveRegionConfig=resolveRegionConfig},3566:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},56057:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},15280:(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},26167:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRegionInfo=void 0;const o=n(15280);const r=n(63877);const i=n(37642);const s=n(53517);const getRegionInfo=(e,{useFipsEndpoint:t=false,useDualstackEndpoint:n=false,signingService:a,regionHash:c,partitionHash:l})=>{var u,d,p,m,g,f;const y=(0,i.getResolvedPartition)(e,{partitionHash:l});const h=e in c?e:(d=(u=l[y])===null||u===void 0?void 0:u.endpoint)!==null&&d!==void 0?d:e;const E={useFipsEndpoint:t,useDualstackEndpoint:n};const S=(0,o.getHostnameFromVariants)((p=c[h])===null||p===void 0?void 0:p.variants,E);const v=(0,o.getHostnameFromVariants)((m=l[y])===null||m===void 0?void 0:m.variants,E);const w=(0,r.getResolvedHostname)(h,{regionHostname:S,partitionHostname:v});if(w===undefined){throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:h,useFipsEndpoint:t,useDualstackEndpoint:n}}`)}const _=(0,s.getResolvedSigningRegion)(w,{signingRegion:(g=c[h])===null||g===void 0?void 0:g.signingRegion,regionRegex:l[y].regionRegex,useFipsEndpoint:t});return{partition:y,signingService:a,hostname:w,..._&&{signingRegion:_},...((f=c[h])===null||f===void 0?void 0:f.signingService)&&{signingService:c[h].signingService}}};t.getRegionInfo=getRegionInfo},63877:(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},37642:(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},53517:(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},86258:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(3566),t);o.__exportStar(n(56057),t);o.__exportStar(n(26167),t)},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(74462);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 i=process.env[t.ENV_EXPIRATION];if(e&&n){return{accessKeyId:e,secretAccessKey:n,...r&&{sessionToken:r},...i&&{expiration:new Date(i)}}}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)},3736:(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={}))},18438:(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}},21695:(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={}))},97824:(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(21695);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}},75232:(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(74462);const r=n(57310);const i=n(81303);const s=n(91467);const a=n(72314);const c=n(49912);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,s.isImdsCredentials)(n)){throw new o.CredentialsProviderError("Invalid response received from instance metadata service.")}return(0,s.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,i.httpRequest)({...n,timeout:e});return o.toString()};const l="169.254.170.2";const u={localhost:true,"127.0.0.1":true};const d={"http:":true,"https:":true};const getCmdsUri=async()=>{if(process.env[t.ENV_CMDS_RELATIVE_URI]){return{hostname:l,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 d)){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)}},35813:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromInstanceMetadata=void 0;const o=n(74462);const r=n(81303);const i=n(91467);const s=n(72314);const a=n(49912);const c=n(41206);const l=n(54620);const u="/latest/meta-data/iam/security-credentials/";const d="/latest/api/token";const fromInstanceMetadata=(e={})=>(0,l.staticStabilityProvider)(getInstanceImdsProvider(e),{logger:e.logger});t.fromInstanceMetadata=fromInstanceMetadata;const getInstanceImdsProvider=e=>{let t=false;const{timeout:n,maxRetries:o}=(0,s.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:d,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,i.isImdsCredentials)(n)){throw new o.CredentialsProviderError("Invalid response received from instance metadata service.")}return(0,i.fromImdsCredentials)(n)}},25898:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getInstanceMetadataEndpoint=t.httpRequest=void 0;const o=n(4351);o.__exportStar(n(75232),t);o.__exportStar(n(35813),t);o.__exportStar(n(72314),t);o.__exportStar(n(91178),t);var r=n(81303);Object.defineProperty(t,"httpRequest",{enumerable:true,get:function(){return r.httpRequest}});var i=n(41206);Object.defineProperty(t,"getInstanceMetadataEndpoint",{enumerable:true,get:function(){return i.getInstanceMetadataEndpoint}})},91467:(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},72314:(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},81303:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.httpRequest=void 0;const o=n(74462);const r=n(14300);const i=n(13685);function httpRequest(e){return new Promise(((t,n)=>{var s;const a=(0,i.request)({method:"GET",...e,hostname:(s=e.hostname)===null||s===void 0?void 0:s.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:i=400}=e;if(i<200||300<=i){n(Object.assign(new o.ProviderError("Error response received from instance metadata service"),{statusCode:i}));a.destroy()}const s=[];e.on("data",(e=>{s.push(e)}));e.on("end",(()=>{t(r.Buffer.concat(s));a.destroy()}))}));a.end()}))}t.httpRequest=httpRequest},49912:(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{"use strict";Object.defineProperty(t,"__esModule",{value:true})},8473:(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 i;const s=n+Math.floor(Math.random()*o);const a=new Date(Date.now()+s*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=(i=e.originalExpiration)!==null&&i!==void 0?i:e.expiration;return{...e,...c?{originalExpiration:c}:{},expiration:a}};t.getExtendedInstanceMetadataCredentials=getExtendedInstanceMetadataCredentials},41206:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getInstanceMetadataEndpoint=void 0;const o=n(87684);const r=n(2992);const i=n(3736);const s=n(18438);const a=n(21695);const c=n(97824);const getInstanceMetadataEndpoint=async()=>(0,r.parseUrl)(await getFromEndpointConfig()||await getFromEndpointModeConfig());t.getInstanceMetadataEndpoint=getInstanceMetadataEndpoint;const getFromEndpointConfig=async()=>(0,o.loadConfig)(s.ENDPOINT_CONFIG_OPTIONS)();const getFromEndpointModeConfig=async()=>{const e=await(0,o.loadConfig)(c.ENDPOINT_MODE_CONFIG_OPTIONS)();switch(e){case a.EndpointMode.IPv4:return i.Endpoint.IPv4;case a.EndpointMode.IPv6:return i.Endpoint.IPv6;default:throw new Error(`Unsupported endpoint mode: ${e}.`+` Select from ${Object.values(a.EndpointMode)}`)}}},54620:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.staticStabilityProvider=void 0;const o=n(8473);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(){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromIni=void 0;const o=n(67387);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(74462);const r=n(67387);const i=n(82458);const s=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:l}=c;if(l&&l 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=l?(0,s.resolveProfileData)(l,t,n,{...a,[l]:true}):(0,i.resolveCredentialSource)(c.credential_source,e)();const d={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)}d.SerialNumber=p;d.TokenCode=await n.mfaCodeProvider(p)}const m=await u;return n.roleAssumer(m,d)};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(25898);const i=n(74462);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 i.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(74462);const r=n(60853);const i=n(69993);const s=n(59867);const a=n(33071);const c=n(58342);const resolveProfileData=async(e,t,n,l={})=>{const u=t[e];if(Object.keys(l).length>0&&(0,a.isStaticCredsProfile)(u)){return(0,a.resolveStaticCredentials)(u)}if((0,r.isAssumeRoleProfile)(u)){return(0,r.resolveAssumeRoleCredentials)(e,t,n,l)}if((0,a.isStaticCredsProfile)(u)){return(0,a.resolveStaticCredentials)(u)}if((0,c.isWebIdentityProfile)(u)){return(0,c.resolveWebIdentityCredentials)(u,n)}if((0,i.isProcessProfile)(u)){return(0,i.resolveProcessCredentials)(n,e)}if((0,s.isSsoProfile)(u)){return(0,s.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:i,sso_role_name:s}=(0,o.validateSsoProfile)(e);return(0,o.fromSSO)({ssoStartUrl:t,ssoAccountId:n,ssoSession:r,ssoRegion:i,ssoRoleName:s})()};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 i=n(89969);const s=n(26414);const a=n(15646);const c=n(74462);const l=n(67387);const u=n(50626);const defaultProvider=(e={})=>(0,c.memoize)((0,c.chain)(...e.profile||process.env[l.ENV_PROFILE]?[]:[(0,o.fromEnv)()],(0,s.fromSSO)(e),(0,r.fromIni)(e),(0,i.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(25898);const r=n(74462);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(67387);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{"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(74462);const r=n(32081);const i=n(73837);const s=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,i.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,s.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(74462);const r=n(67387);const i=n(32572);const s=n(94729);const a=n(48098);const fromSSO=(e={})=>async()=>{const{ssoStartUrl:t,ssoAccountId:n,ssoRegion:c,ssoRoleName:l,ssoClient:u,ssoSession:d}=e;const p=(0,r.getProfileName)(e);if(!t&&!n&&!c&&!l&&!d){const n=await(0,r.parseKnownFiles)(e);const l=n[p];if(!l){throw new o.CredentialsProviderError(`Profile ${p} was not found.`)}if(!(0,i.isSsoProfile)(l)){throw new o.CredentialsProviderError(`Profile ${p} is not configured with SSO credentials.`)}if(l===null||l===void 0?void 0:l.sso_session){const n=await(0,r.loadSsoSessionData)(e);const i=n[l.sso_session];const s=` configurations in profile ${p} and sso-session ${l.sso_session}`;if(c&&c!==i.sso_region){throw new o.CredentialsProviderError(`Conflicting SSO region`+s,false)}if(t&&t!==i.sso_start_url){throw new o.CredentialsProviderError(`Conflicting SSO start_url`+s,false)}l.sso_region=i.sso_region;l.sso_start_url=i.sso_start_url}const{sso_start_url:d,sso_account_id:m,sso_region:g,sso_role_name:f,sso_session:y}=(0,a.validateSsoProfile)(l);return(0,s.resolveSSOCredentials)({ssoStartUrl:d,ssoSession:y,ssoAccountId:m,ssoRegion:g,ssoRoleName:f,ssoClient:u,profile:p})}else if(!t||!n||!c||!l){throw new o.CredentialsProviderError("Incomplete configuration. The fromSSO() argument hash must include "+'"ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"')}else{return(0,s.resolveSSOCredentials)({ssoStartUrl:t,ssoSession:d,ssoAccountId:n,ssoRegion:c,ssoRoleName:l,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(74462);const i=n(67387);const s=n(52843);const a=15*60*1e3;const c=false;const resolveSSOCredentials=async({ssoStartUrl:e,ssoSession:t,ssoAccountId:n,ssoRegion:l,ssoRoleName:u,ssoClient:d,profile:p})=>{let m;const g=`To refresh this SSO session run aws sso login with the corresponding profile.`;if(t){try{const e=await(0,s.fromSso)({profile:p})();m={accessToken:e.token,expiresAt:new Date(e.expiration).toISOString()}}catch(e){throw new r.CredentialsProviderError(e.message,c)}}else{try{m=await(0,i.getSSOTokenFromFile)(e)}catch(e){throw new r.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${g}`,c)}}if(new Date(m.expiresAt).getTime()-Date.now()<=a){throw new r.CredentialsProviderError(`The SSO session associated with this profile has expired. ${g}`,c)}const{accessToken:f}=m;const y=d||new o.SSOClient({region:l});let h;try{h=await y.send(new o.GetRoleCredentialsCommand({accountId:n,roleName:u,accessToken:f}))}catch(e){throw r.CredentialsProviderError.from(e,c)}const{roleCredentials:{accessKeyId:E,secretAccessKey:S,sessionToken:v,expiration:w}={}}=h;if(!E||!S||!v||!w){throw new r.CredentialsProviderError("SSO returns an invalid temporary credential.",c)}return{accessKeyId:E,secretAccessKey:S,sessionToken:v,expiration:new Date(w)}};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(74462);const validateSsoProfile=e=>{const{sso_start_url:t,sso_account_id:n,sso_region:r,sso_role_name:i}=e;if(!t||!n||!r||!i){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(74462);const r=n(57147);const i=n(47905);const s="AWS_WEB_IDENTITY_TOKEN_FILE";const a="AWS_ROLE_ARN";const c="AWS_ROLE_SESSION_NAME";const fromTokenFile=(e={})=>async()=>resolveTokenFile(e);t.fromTokenFile=fromTokenFile;const resolveTokenFile=e=>{var t,n,l;const u=(t=e===null||e===void 0?void 0:e.webIdentityTokenFile)!==null&&t!==void 0?t:process.env[s];const d=(n=e===null||e===void 0?void 0:e.roleArn)!==null&&n!==void 0?n:process.env[a];const p=(l=e===null||e===void 0?void 0:e.roleSessionName)!==null&&l!==void 0?l:process.env[c];if(!u||!d){throw new o.CredentialsProviderError("Web identity configuration not specified")}return(0,i.fromWebToken)({...e,webIdentityToken:(0,r.readFileSync)(u,{encoding:"ascii"}),roleArn:d,roleSessionName:p})()}},47905:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromWebToken=void 0;const o=n(74462);const fromWebToken=e=>()=>{const{roleArn:t,roleSessionName:n,webIdentityToken:r,providerId:i,policyArns:s,policy:a,durationSeconds:c,roleAssumerWithWebIdentity:l}=e;if(!l){throw new o.CredentialsProviderError(`Role Arn '${t}' needs to be assumed with web identity,`+` but no role assumption callback was provided.`,false)}return l({RoleArn:t,RoleSessionName:n!==null&&n!==void 0?n:`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:r,ProviderId:i,PolicyArns:s,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)},97442:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Hash=void 0;const o=n(36010);const r=n(14300);const i=n(6113);class Hash{constructor(e,t){this.hash=t?(0,i.createHmac)(e,castSourceData(t)):(0,i.createHash)(e)}update(e,t){this.hash.update(castSourceData(e,t))}digest(){return Promise.resolve(this.hash.digest())}}t.Hash=Hash;function castSourceData(e,t){if(r.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)}},69126:(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},42245:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getContentLengthPlugin=t.contentLengthMiddlewareOptions=t.contentLengthMiddleware=void 0;const o=n(70223);const r="content-length";function contentLengthMiddleware(e){return t=>async n=>{const i=n.request;if(o.HttpRequest.isInstance(i)){const{body:t,headers:n}=i;if(t&&Object.keys(n).map((e=>e.toLowerCase())).indexOf(r)===-1){try{const n=e(t);i.headers={...i.headers,[r]:String(n)}}catch(e){}}}return t({...n,request:i})}}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},53504:(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},62419:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveParams=t.getEndpointFromInstructions=void 0;const o=n(3589);const r=n(53504);const getEndpointFromInstructions=async(e,n,o,r)=>{const i=await(0,t.resolveParams)(e,n,o);if(typeof o.endpointProvider!=="function"){throw new Error("config.endpointProvider is not set.")}const s=o.endpointProvider(i,r);return s};t.getEndpointFromInstructions=getEndpointFromInstructions;const resolveParams=async(e,t,n)=>{var i;const s={};const a=((i=t===null||t===void 0?void 0:t.getEndpointParameterInstructions)===null||i===void 0?void 0:i.call(t))||{};for(const[t,o]of Object.entries(a)){switch(o.type){case"staticContextParams":s[t]=o.value;break;case"contextParams":s[t]=e[o.name];break;case"clientContextParams":case"builtInParams":s[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(s,n)}if(String(n.serviceId).toLowerCase()==="s3"){await(0,o.resolveParamsForS3)(s)}return s};t.resolveParams=resolveParams},50197:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(62419),t);o.__exportStar(n(98289),t)},98289:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toEndpointV1=void 0;const o=n(2992);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},72639:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.endpointMiddleware=void 0;const o=n(62419);const endpointMiddleware=({config:e,instructions:t})=>(n,r)=>async i=>{var s,a;const c=await(0,o.getEndpointFromInstructions)(i.input,{getEndpointParameterInstructions(){return t}},{...e},r);r.endpointV2=c;r.authSchemes=(s=c.properties)===null||s===void 0?void 0:s.authSchemes;const l=(a=r.authSchemes)===null||a===void 0?void 0:a[0];if(l){r["signing_region"]=l.signingRegion;r["signing_service"]=l.signingName}return n({...i})};t.endpointMiddleware=endpointMiddleware},37981:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getEndpointPlugin=t.endpointMiddlewareOptions=void 0;const o=n(93631);const r=n(72639);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},5497:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(50197),t);o.__exportStar(n(72639),t);o.__exportStar(n(37981),t);o.__exportStar(n(13157),t);o.__exportStar(n(32521),t)},13157:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveEndpointConfig=void 0;const o=n(10236);const r=n(98289);const resolveEndpointConfig=e=>{var t,n,i;const s=(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 l=!!a;return{...e,endpoint:c,tls:s,isCustomEndpoint:l,useDualstackEndpoint:(0,o.normalizeProvider)((n=e.useDualstackEndpoint)!==null&&n!==void 0?n:false),useFipsEndpoint:(0,o.normalizeProvider)((i=e.useFipsEndpoint)!==null&&i!==void 0?i:false)}};t.resolveEndpointConfig=resolveEndpointConfig},3589:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(18648),t)},18648:(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,i,s]=e.split(":");const a=t==="arn"&&e.split(":").length>=6;const c=[t,n,o,i,s].filter(Boolean).length===5;if(a&&!c){throw new Error(`Invalid ARN: ${e} was an invalid ARN.`)}return t==="arn"&&!!n&&!!o&&!!i&&!!s};t.isArnBucketName=isArnBucketName},32521:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},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(70223);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:i=""}=e.requestHandler.metadata||{};if(i.indexOf("h2")>=0&&!r.headers[":authority"]){delete r.headers["host"];r.headers[":authority"]=""}else if(!r.headers["host"]){r.headers["host"]=r.hostname}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=>{const o=await e(n);const{clientName:r,commandName:i,logger:s,inputFilterSensitiveLog:a,outputFilterSensitiveLog:c,dynamoDbDocumentClientOptions:l={}}=t;const{overrideInputFilterSensitiveLog:u,overrideOutputFilterSensitiveLog:d}=l;if(!s){return o}if(typeof s.info==="function"){const{$metadata:e,...t}=o.output;s.info({clientName:r,commandName:i,input:(u!==null&&u!==void 0?u:a)(n.input),output:(d!==null&&d!==void 0?d:c)(t),metadata:e})}return o};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(70223);const r="X-Amzn-Trace-Id";const i="AWS_LAMBDA_FUNCTION_NAME";const s="_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[i];const l=process.env[s];const nonEmptyString=e=>typeof e==="string"&&e.length>0;if(nonEmptyString(c)&&nonEmptyString(l)){a.headers[r]=l}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},47328:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AdaptiveRetryStrategy=void 0;const o=n(99395);const r=n(533);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},533:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StandardRetryStrategy=void 0;const o=n(70223);const r=n(61921);const i=n(99395);const s=n(75840);const a=n(12568);const c=n(55940);const l=n(19572);const u=n(17154);class StandardRetryStrategy{constructor(e,t){var n,o,r;this.maxAttemptsProvider=e;this.mode=i.RETRY_MODES.STANDARD;this.retryDecider=(n=t===null||t===void 0?void 0:t.retryDecider)!==null&&n!==void 0?n:l.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)(i.INITIAL_RETRY_TOKENS)}shouldRetry(e,t,n){return tsetTimeout(e,o)));continue}if(!t.$metadata){t.$metadata={}}t.$metadata.attempts=c;t.$metadata.totalRetryDelay=l;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 i=new Date(n);return i.getTime()-Date.now()}},76160:(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(10236);const r=n(99395);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 i=(0,o.normalizeProvider)((t=e.maxAttempts)!==null&&t!==void 0?t:r.DEFAULT_MAX_ATTEMPTS);return{...e,maxAttempts:i,retryStrategy:async()=>{if(n){return n}const t=await(0,o.normalizeProvider)(e.retryMode)();if(t===r.RETRY_MODES.ADAPTIVE){return new r.AdaptiveRetryStrategy(i)}return new r.StandardRetryStrategy(i)}}};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}},12568:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getDefaultRetryQuota=void 0;const o=n(99395);const getDefaultRetryQuota=(e,t)=>{var n,r,i;const s=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 l=(i=t===null||t===void 0?void 0:t.timeoutRetryCost)!==null&&i!==void 0?i:o.TIMEOUT_RETRY_COST;let u=e;const getCapacityAmount=e=>e.name==="TimeoutError"?l: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,s)};return Object.freeze({hasRetryTokens:hasRetryTokens,retrieveRetryTokens:retrieveRetryTokens,releaseRetryTokens:releaseRetryTokens})};t.getDefaultRetryQuota=getDefaultRetryQuota},55940:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultDelayDecider=void 0;const o=n(99395);const defaultDelayDecider=(e,t)=>Math.floor(Math.min(o.MAXIMUM_RETRY_DELAY,Math.random()*2**t*e));t.defaultDelayDecider=defaultDelayDecider},96064:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(47328),t);o.__exportStar(n(533),t);o.__exportStar(n(76160),t);o.__exportStar(n(55940),t);o.__exportStar(n(43521),t);o.__exportStar(n(19572),t);o.__exportStar(n(11806),t)},43521:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getOmitRetryHeadersPlugin=t.omitRetryHeadersMiddlewareOptions=t.omitRetryHeadersMiddleware=void 0;const o=n(70223);const r=n(99395);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},19572:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultRetryDecider=void 0;const o=n(61921);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},11806:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRetryAfterHint=t.getRetryPlugin=t.retryMiddlewareOptions=t.retryMiddleware=void 0;const o=n(70223);const r=n(61921);const i=n(99395);const s=n(75840);const a=n(17154);const retryMiddleware=e=>(t,n)=>async r=>{let c=await e.retryStrategy();const l=await e.maxAttempts();if(isRetryStrategyV2(c)){c=c;let e=await c.acquireInitialRetryToken(n["partition_id"]);let u=new Error;let d=0;let p=0;const{request:m}=r;if(o.HttpRequest.isInstance(m)){m.headers[i.INVOCATION_ID_HEADER]=(0,s.v4)()}while(true){try{if(o.HttpRequest.isInstance(m)){m.headers[i.REQUEST_HEADER]=`attempt=${d+1}; max=${l}`}const{response:n,output:s}=await t(r);c.recordSuccess(e);s.$metadata.attempts=d+1;s.$metadata.totalRetryDelay=p;return{response:n,output:s}}catch(t){const n=getRetyErrorInto(t);u=(0,a.asSdkError)(t);try{e=await c.refreshRetryTokenForRetry(e,n)}catch(e){if(!u.$metadata){u.$metadata={}}u.$metadata.attempts=d+1;u.$metadata.totalRetryDelay=p;throw u}d=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 getRetyErrorInto=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 i=new Date(n);return i};t.getRetryAfterHint=getRetryAfterHint},17154:(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},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},65648:(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});throw e}};t.deserializerMiddleware=deserializerMiddleware},93631:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(65648),t);o.__exportStar(n(99328),t);o.__exportStar(n(19511),t)},99328:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSerdePlugin=t.serializerMiddlewareOption=t.deserializerMiddlewareOption=void 0;const o=n(65648);const r=n(19511);t.deserializerMiddlewareOption={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:true};t.serializerMiddlewareOption={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:true};function getSerdePlugin(e,n,i){return{applyToStack:s=>{s.add((0,o.deserializerMiddleware)(e,i),t.deserializerMiddlewareOption);s.add((0,r.serializerMiddleware)(e,n),t.serializerMiddlewareOption)}}}t.getSerdePlugin=getSerdePlugin},19511:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.serializerMiddleware=void 0;const serializerMiddleware=(e,t)=>(n,o)=>async r=>{var i;const s=((i=o.endpointV2)===null||i===void 0?void 0:i.url)&&e.urlParser?async()=>e.urlParser(o.endpointV2.url):e.endpoint;if(!s){throw new Error("No valid endpoint provider available.")}const a=await t(r.input,{...e,endpoint:s});return n({...r,request:a})};t.serializerMiddleware=serializerMiddleware},63061:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveSigV4AuthConfig=t.resolveAwsAuthConfig=void 0;const o=n(74462);const r=n(37776);const i=n(10236);const s=3e5;const resolveAwsAuthConfig=e=>{const t=e.credentials?normalizeCredentialProvider(e.credentials):e.credentialDefaultProvider(e);const{signingEscapePath:n=true,systemClockOffset:o=e.systemClockOffset||0,sha256:s}=e;let a;if(e.signer){a=(0,i.normalizeProvider)(e.signer)}else if(e.regionInfoProvider){a=()=>(0,i.normalizeProvider)(e.region)().then((async t=>[await e.regionInfoProvider(t,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},t])).then((([o,i])=>{const{signingRegion:a,signingService:c}=o;e.signingRegion=e.signingRegion||a||i;e.signingName=e.signingName||c||e.serviceId;const l={...e,credentials:t,region:e.signingRegion,service:e.signingName,sha256:s,uriEscapePath:n};const u=e.signerConstructor||r.SignatureV4;return new u(l)}))}else{a=async o=>{o=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await(0,i.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 l={...e,credentials:t,region:e.signingRegion,service:e.signingName,sha256:s,uriEscapePath:n};const u=e.signerConstructor||r.SignatureV4;return new u(l)}}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:s}=e;let a;if(e.signer){a=(0,i.normalizeProvider)(e.signer)}else{a=(0,i.normalizeProvider)(new r.SignatureV4({credentials:t,region:e.region,service:e.signingName,sha256:s,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()e.expiration!==undefined))}return(0,i.normalizeProvider)(e)}},14935:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(63061),t);o.__exportStar(n(42509),t)},42509:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSigV4AuthPlugin=t.getAwsAuthPlugin=t.awsAuthMiddlewareOptions=t.awsAuthMiddleware=void 0;const o=n(70223);const r=n(68253);const i=n(35863);const awsAuthMiddleware=e=>(t,n)=>async function(s){var a,c,l,u;if(!o.HttpRequest.isInstance(s.request))return t(s);const d=(l=(c=(a=n.endpointV2)===null||a===void 0?void 0:a.properties)===null||c===void 0?void 0:c.authSchemes)===null||l===void 0?void 0:l[0];const p=(d===null||d===void 0?void 0:d.name)==="sigv4a"?(u=d===null||d===void 0?void 0:d.signingRegionSet)===null||u===void 0?void 0:u.join(","):undefined;const m=await e.signer(d);const g=await t({...s,request:await m.sign(s.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,i.getUpdatedSystemClockOffset)(o,e.systemClockOffset)}throw t}));const f=getDateHeader(g.response);if(f){e.systemClockOffset=(0,i.getUpdatedSystemClockOffset)(f,e.systemClockOffset)}return g};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},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},38399:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.constructStack=void 0;const constructStack=()=>{let e=[];let r=[];const i=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;i.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)i.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 i={};e.forEach((e=>{const t={...e,before:[],after:[]};if(t.name)i[t.name]=t;n.push(t)}));r.forEach((e=>{const t={...e,before:[],after:[]};if(t.name)i[t.name]=t;o.push(t)}));o.forEach((e=>{if(e.toMiddleware){const n=i[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 s=sort(n).map(expandRelativeMiddlewareList).reduce(((e,t)=>{e.push(...t);return e}),[]);return s};const s={add:(t,n={})=>{const{name:o,override:r}=n;const s={step:"initialize",priority:"normal",middleware:t,...n};if(o){if(i.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!==s.step||n.priority!==s.priority){throw new Error(`"${o}" middleware with ${n.priority} priority in ${n.step} step cannot be `+`overridden by same-name middleware with ${s.priority} priority in ${s.step} step.`)}e.splice(t,1)}i.add(o)}e.push(s)},addRelativeTo:(e,t)=>{const{name:n,override:o}=t;const s={middleware:e,...t};if(n){if(i.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!==s.toMiddleware||t.relation!==s.relation){throw new Error(`"${n}" middleware ${t.relation} "${t.toMiddleware}" middleware cannot be overridden `+`by same-name middleware ${s.relation} "${s.toMiddleware}" middleware.`)}r.splice(e,1)}i.add(n)}r.push(s)},clone:()=>cloneTo((0,t.constructStack)()),use:e=>{e.applyToStack(s)},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)i.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 s};t.constructStack=constructStack;const n={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1};const o={high:3,normal:2,low:1}},11461:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(38399),t)},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_REGEX=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_ESCAPE_REGEX=/[^\!\#\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g},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(70223);const r=n(28025);const userAgentMiddleware=e=>(t,n)=>async i=>{var s,a;const{request:c}=i;if(!o.HttpRequest.isInstance(c))return t(i);const{headers:l}=c;const u=((s=n===null||n===void 0?void 0:n.userAgent)===null||s===void 0?void 0:s.map(escapeUserAgent))||[];const d=(await e.defaultUserAgentProvider()).map(escapeUserAgent);const p=((a=e===null||e===void 0?void 0:e.customUserAgent)===null||a===void 0?void 0:a.map(escapeUserAgent))||[];const m=[...d,...u,...p].join(r.SPACE);const g=[...d.filter((e=>e.startsWith("aws-sdk-"))),...p].join(r.SPACE);if(e.runtime!=="browser"){if(g){l[r.X_AMZ_USER_AGENT]=l[r.X_AMZ_USER_AGENT]?`${l[r.USER_AGENT]} ${g}`:g}l[r.USER_AGENT]=m}else{l[r.X_AMZ_USER_AGENT]=m}return t({...i,request:c})};t.userAgentMiddleware=userAgentMiddleware;const escapeUserAgent=([e,t])=>{const n=e.indexOf("/");const o=e.substring(0,n);let i=e.substring(n+1);if(o==="api"){i=i.toLowerCase()}return[o,i,t].filter((e=>e&&e.length>0)).map((e=>e===null||e===void 0?void 0:e.replace(r.UA_ESCAPE_REGEX,"_"))).join("/")};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},52175:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.loadConfig=void 0;const o=n(74462);const r=n(46161);const i=n(63905);const s=n(5881);const loadConfig=({environmentVariableSelector:e,configFileSelector:t,default:n},a={})=>(0,o.memoize)((0,o.chain)((0,r.fromEnv)(e),(0,i.fromSharedConfigFiles)(t,a),(0,s.fromStatic)(n)));t.loadConfig=loadConfig},46161:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromEnv=void 0;const o=n(74462);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},63905:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromSharedConfigFiles=void 0;const o=n(74462);const r=n(67387);const fromSharedConfigFiles=(e,{preferredFile:t="config",...n}={})=>async()=>{const i=(0,r.getProfileName)(n);const{configFile:s,credentialsFile:a}=await(0,r.loadSharedConfigFiles)(n);const c=a[i]||{};const l=s[i]||{};const u=t==="config"?{...c,...l}:{...l,...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 ${i} in SDK configuration files with getter: ${e}`)}};t.fromSharedConfigFiles=fromSharedConfigFiles},5881:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromStatic=void 0;const o=n(74462);const isFunction=e=>typeof e==="function";const fromStatic=e=>isFunction(e)?async()=>await e():(0,o.fromStatic)(e);t.fromStatic=fromStatic},87684:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(52175),t)},33647:(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"]},96225:(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},68805:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(2298),t);o.__exportStar(n(92533),t);o.__exportStar(n(72198),t)},2298:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NodeHttpHandler=void 0;const o=n(70223);const r=n(43402);const i=n(13685);const s=n(95687);const a=n(33647);const c=n(96225);const l=n(63598);const u=n(44751);const d=n(5248);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{connectionTimeout:t,socketTimeout:n,httpAgent:o,httpsAgent:r}=e||{};const a=true;const c=50;return{connectionTimeout:t,socketTimeout:n,httpAgent:o||new i.Agent({keepAlive:a,maxSockets:c}),httpsAgent:r||new s.Agent({keepAlive:a,maxSockets:c})}}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,p)=>{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";p(e);return}const m=e.protocol==="https:";const g=(0,r.buildQueryString)(e.query||{});const f={headers:e.headers,host:e.hostname,method:e.method,path:g?`${e.path}?${g}`:e.path,port:e.port,agent:m?this.config.httpsAgent:this.config.httpAgent};const y=m?s.request:i.request;const h=y(f,(e=>{const t=new o.HttpResponse({statusCode:e.statusCode||-1,headers:(0,c.getTransformedHeaders)(e.headers),body:e});n({response:t})}));h.on("error",(e=>{if(a.NODEJS_TIMEOUT_ERROR_CODES.includes(e.code)){p(Object.assign(e,{name:"TimeoutError"}))}else{p(e)}}));(0,l.setConnectionTimeout)(h,p,this.config.connectionTimeout);(0,u.setSocketTimeout)(h,p,this.config.socketTimeout);if(t){t.onabort=()=>{h.abort();const e=new Error("Request aborted");e.name="AbortError";p(e)}}(0,d.writeRequestBody)(h,e)}))}}t.NodeHttpHandler=NodeHttpHandler},92533:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NodeHttp2Handler=void 0;const o=n(70223);const r=n(43402);const i=n(85158);const s=n(96225);const a=n(5248);class NodeHttp2Handler{constructor(e){this.metadata={handlerProtocol:"h2"};this.configProvider=new Promise(((t,n)=>{if(typeof e==="function"){e().then((e=>{t(e||{})})).catch(n)}else{t(e||{})}}));this.sessionCache=new Map}destroy(){for(const e of this.sessionCache.values()){e.forEach((e=>this.destroySession(e)))}this.sessionCache.clear()}async handle(e,{abortSignal:t}={}){if(!this.config){this.config=await this.configProvider}const{requestTimeout:n,disableConcurrentStreams:c}=this.config;return new Promise(((l,u)=>{let d=false;if(t===null||t===void 0?void 0:t.aborted){d=true;const e=new Error("Request aborted");e.name="AbortError";u(e);return}const{hostname:p,method:m,port:g,protocol:f,path:y,query:h}=e;const E=`${f}//${p}${g?`:${g}`:""}`;const S=this.getSession(E,c||false);const reject=e=>{if(c){this.destroySession(S)}d=true;u(e)};const v=(0,r.buildQueryString)(h||{});const w=S.request({...e.headers,[i.constants.HTTP2_HEADER_PATH]:v?`${y}?${v}`:y,[i.constants.HTTP2_HEADER_METHOD]:m});S.ref();w.on("response",(e=>{const t=new o.HttpResponse({statusCode:e[":status"]||-1,headers:(0,s.getTransformedHeaders)(e),body:w});d=true;l({response:t});if(c){S.close();this.deleteSessionFromCache(E,S)}}));if(n){w.setTimeout(n,(()=>{w.close();const e=new Error(`Stream timed out because of no activity for ${n} ms`);e.name="TimeoutError";reject(e)}))}if(t){t.onabort=()=>{w.close();const e=new Error("Request aborted");e.name="AbortError";reject(e)}}w.on("frameError",((e,t,n)=>{reject(new Error(`Frame type id ${e} in stream id ${n} has failed with code ${t}.`))}));w.on("error",reject);w.on("aborted",(()=>{reject(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${w.rstCode}.`))}));w.on("close",(()=>{S.unref();if(c){S.destroy()}if(!d){reject(new Error("Unexpected error: http2 request did not get a response"))}}));(0,a.writeRequestBody)(w,e)}))}getSession(e,t){var n;const o=this.sessionCache;const r=o.get(e)||[];if(r.length>0&&!t)return r[0];const s=(0,i.connect)(e);s.unref();const destroySessionCb=()=>{this.destroySession(s);this.deleteSessionFromCache(e,s)};s.on("goaway",destroySessionCb);s.on("error",destroySessionCb);s.on("frameError",destroySessionCb);s.on("close",(()=>this.deleteSessionFromCache(e,s)));if((n=this.config)===null||n===void 0?void 0:n.sessionTimeout){s.setTimeout(this.config.sessionTimeout,destroySessionCb)}r.push(s);o.set(e,r);return s}destroySession(e){if(!e.destroyed){e.destroy()}}deleteSessionFromCache(e,t){const n=this.sessionCache.get(e)||[];if(!n.includes(t)){return}this.sessionCache.set(e,n.filter((e=>e!==t)))}}t.NodeHttp2Handler=NodeHttp2Handler},63598:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.setConnectionTimeout=void 0;const setConnectionTimeout=(e,t,n=0)=>{if(!n){return}e.on("socket",(o=>{if(o.connecting){const r=setTimeout((()=>{e.destroy();t(Object.assign(new Error(`Socket timed out without establishing a connection within ${n} ms`),{name:"TimeoutError"}))}),n);o.on("connect",(()=>{clearTimeout(r)}))}}))};t.setConnectionTimeout=setConnectionTimeout},44751:(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},84362:(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},72198:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.streamCollector=void 0;const o=n(84362);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},5248:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.writeRequestBody=void 0;const o=n(12781);function writeRequestBody(e,t){const n=t.headers["Expect"]||t.headers["expect"];if(n==="100-continue"){e.on("continue",(()=>{writeBody(e,t.body)}))}else{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()}}},96875:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CredentialsProviderError=void 0;const o=n(81786);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},81786:(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},22173:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TokenProviderError=void 0;const o=n(81786);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},51444:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.chain=void 0;const o=n(81786);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},10529:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromStatic=void 0;const fromStatic=e=>()=>Promise.resolve(e);t.fromStatic=fromStatic},74462:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(96875),t);o.__exportStar(n(81786),t);o.__exportStar(n(22173),t);o.__exportStar(n(51444),t);o.__exportStar(n(10529),t);o.__exportStar(n(714),t)},714:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.memoize=void 0;const memoize=(e,t,n)=>{let o;let r;let i;let s=false;const coalesceProvider=async()=>{if(!r){r=e()}try{o=await r;i=true;s=false}finally{r=undefined}return o};if(t===undefined){return async e=>{if(!i||(e===null||e===void 0?void 0:e.forceRefresh)){o=await coalesceProvider()}return o}}return async e=>{if(!i||(e===null||e===void 0?void 0:e.forceRefresh)){o=await coalesceProvider()}if(s){return o}if(n&&!n(o)){s=true;return o}if(t(o)){await coalesceProvider();return o}return o}};t.memoize=memoize},56779:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},52872:(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:"/"}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}}),{})}},92348:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.HttpResponse=void 0;class HttpResponse{constructor(e){this.statusCode=e.statusCode;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},70223:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(56779),t);o.__exportStar(n(52872),t);o.__exportStar(n(92348),t);o.__exportStar(n(85694),t)},85694:(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},43402:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.buildQueryString=void 0;const o=n(57952);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,i=r.length;e{"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},7352:(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=["AbortError","TimeoutError","RequestTimeout","RequestTimeoutException"];t.TRANSIENT_ERROR_STATUS_CODES=[500,502,503,504];t.NODEJS_TIMEOUT_ERROR_CODES=["ECONNRESET","EPIPE","ETIMEDOUT"]},61921:(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(7352);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},75216:(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(97363);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},91569:(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(97363);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},97363:(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:i=`C:${r.sep}`}=process.env;if(e)return e;if(t)return t;if(n)return`${i}${n}`;return(0,o.homedir)()};t.getHomeDir=getHomeDir},57498:(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},36776:(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},42992:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSSOTokenFilepath=void 0;const o=n(6113);const r=n(71017);const i=n(97363);const getSSOTokenFilepath=e=>{const t=(0,o.createHash)("sha1");const n=t.update(e).digest("hex");return(0,r.join)((0,i.getHomeDir)(),".aws","sso","cache",`${n}.json`)};t.getSSOTokenFilepath=getSSOTokenFilepath},18553:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSSOTokenFromFile=void 0;const o=n(57147);const r=n(42992);const{readFile:i}=o.promises;const getSSOTokenFromFile=async e=>{const t=(0,r.getSSOTokenFilepath)(e);const n=await i(t,"utf8");return JSON.parse(n)};t.getSSOTokenFromFile=getSSOTokenFromFile},5175:(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},67387:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(97363),t);o.__exportStar(n(36776),t);o.__exportStar(n(42992),t);o.__exportStar(n(18553),t);o.__exportStar(n(57871),t);o.__exportStar(n(96179),t);o.__exportStar(n(26533),t);o.__exportStar(n(84105),t)},57871:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.loadSharedConfigFiles=void 0;const o=n(75216);const r=n(91569);const i=n(57498);const s=n(82806);const a=n(79242);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).then(s.parseIni).then(i.getProfileData).catch(swallowError),(0,a.slurpFile)(t).then(s.parseIni).catch(swallowError)]);return{configFile:c[0],credentialsFile:c[1]}};t.loadSharedConfigFiles=loadSharedConfigFiles},96179:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.loadSsoSessionData=void 0;const o=n(75216);const r=n(5175);const i=n(82806);const s=n(79242);const swallowError=()=>({});const loadSsoSessionData=async(e={})=>{var t;return(0,s.slurpFile)((t=e.configFilepath)!==null&&t!==void 0?t:(0,o.getConfigFilepath)()).then(i.parseIni).then(r.getSsoSessionData).catch(swallowError)};t.loadSsoSessionData=loadSsoSessionData},82806:(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 i=r.length-1;const s=e!==-1&&e!==n&&e!==i;if(s){const[n,i]=[r.substring(0,e).trim(),r.substring(e+1).trim()];t[o]=t[o]||{};t[o][n]=i}}}return t};t.parseIni=parseIni},26533:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseKnownFiles=void 0;const o=n(57871);const parseKnownFiles=async e=>{const t=await(0,o.loadSharedConfigFiles)(e);return{...t.configFile,...t.credentialsFile}};t.parseKnownFiles=parseKnownFiles},79242:(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 i={};const slurpFile=e=>{if(!i[e]){i[e]=r(e,"utf8")}return i[e]};t.slurpFile=slurpFile},84105:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},75086:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SignatureV4=void 0;const o=n(1968);const r=n(10236);const i=n(30342);const s=n(11424);const a=n(93590);const c=n(92019);const l=n(47080);const u=n(34120);const d=n(98201);const p=n(75772);const m=n(94799);class SignatureV4{constructor({applyChecksum:e,credentials:t,region:n,service:o,sha256:i,uriEscapePath:s=true}){this.service=o;this.sha256=i;this.uriEscapePath=s;this.applyChecksum=typeof e==="boolean"?e:true;this.regionProvider=(0,r.normalizeProvider)(n);this.credentialProvider=(0,r.normalizeProvider)(t)}async presign(e,t={}){const{signingDate:n=new Date,expiresIn:o=3600,unsignableHeaders:r,unhoistableHeaders:c,signableHeaders:u,signingRegion:m,signingService:g}=t;const f=await this.credentialProvider();this.validateResolvedCredentials(f);const y=m!==null&&m!==void 0?m:await this.regionProvider();const{longDate:h,shortDate:E}=formatDate(n);if(o>i.MAX_PRESIGNED_TTL){return Promise.reject("Signature version 4 presigned URLs"+" must have an expiration date less than one week in"+" the future")}const S=(0,s.createScope)(E,y,g!==null&&g!==void 0?g:this.service);const v=(0,d.moveHeadersToQuery)((0,p.prepareRequest)(e),{unhoistableHeaders:c});if(f.sessionToken){v.query[i.TOKEN_QUERY_PARAM]=f.sessionToken}v.query[i.ALGORITHM_QUERY_PARAM]=i.ALGORITHM_IDENTIFIER;v.query[i.CREDENTIAL_QUERY_PARAM]=`${f.accessKeyId}/${S}`;v.query[i.AMZ_DATE_QUERY_PARAM]=h;v.query[i.EXPIRES_QUERY_PARAM]=o.toString(10);const w=(0,a.getCanonicalHeaders)(v,r,u);v.query[i.SIGNED_HEADERS_QUERY_PARAM]=getCanonicalHeaderList(w);v.query[i.SIGNATURE_QUERY_PARAM]=await this.getSignature(h,S,this.getSigningKey(f,y,E,g),this.createCanonicalRequest(v,w,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{return this.signRequest(e,t)}}async signEvent({headers:e,payload:t},{signingDate:n=new Date,priorSignature:r,signingRegion:a,signingService:c}){const u=a!==null&&a!==void 0?a:await this.regionProvider();const{shortDate:d,longDate:p}=formatDate(n);const m=(0,s.createScope)(d,u,c!==null&&c!==void 0?c:this.service);const g=await(0,l.getPayloadHash)({headers:{},body:t},this.sha256);const f=new this.sha256;f.update(e);const y=(0,o.toHex)(await f.digest());const h=[i.EVENT_ALGORITHM_IDENTIFIER,p,m,r,y,g].join("\n");return this.signString(h,{signingDate:n,signingRegion:u,signingService:c})}async signString(e,{signingDate:t=new Date,signingRegion:n,signingService:r}={}){const i=await this.credentialProvider();this.validateResolvedCredentials(i);const s=n!==null&&n!==void 0?n:await this.regionProvider();const{shortDate:a}=formatDate(t);const c=new this.sha256(await this.getSigningKey(i,s,a,r));c.update(e);return(0,o.toHex)(await c.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:n,unsignableHeaders:o,signingRegion:r,signingService:c}={}){const d=await this.credentialProvider();this.validateResolvedCredentials(d);const m=r!==null&&r!==void 0?r:await this.regionProvider();const g=(0,p.prepareRequest)(e);const{longDate:f,shortDate:y}=formatDate(t);const h=(0,s.createScope)(y,m,c!==null&&c!==void 0?c:this.service);g.headers[i.AMZ_DATE_HEADER]=f;if(d.sessionToken){g.headers[i.TOKEN_HEADER]=d.sessionToken}const E=await(0,l.getPayloadHash)(g,this.sha256);if(!(0,u.hasHeader)(i.SHA256_HEADER,g.headers)&&this.applyChecksum){g.headers[i.SHA256_HEADER]=E}const S=(0,a.getCanonicalHeaders)(g,o,n);const v=await this.getSignature(f,h,this.getSigningKey(d,m,y,c),this.createCanonicalRequest(g,S,E));g.headers[i.AUTH_HEADER]=`${i.ALGORITHM_IDENTIFIER} `+`Credential=${d.accessKeyId}/${h}, `+`SignedHeaders=${getCanonicalHeaderList(S)}, `+`Signature=${v}`;return g}createCanonicalRequest(e,t,n){const o=Object.keys(t).sort();return`${e.method}\n${this.getCanonicalPath(e)}\n${(0,c.getCanonicalQuery)(e)}\n${o.map((e=>`${e}:${t[e]}`)).join("\n")}\n\n${o.join(";")}\n${n}`}async createStringToSign(e,t,n){const r=new this.sha256;r.update(n);const s=await r.digest();return`${i.ALGORITHM_IDENTIFIER}\n${e}\n${t}\n${(0,o.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,r){const i=await this.createStringToSign(e,t,r);const s=new this.sha256(await n);s.update(i);return(0,o.toHex)(await s.digest())}getSigningKey(e,t,n,o){return(0,s.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,m.iso8601)(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.slice(0,8)}};const getCanonicalHeaderList=e=>Object.keys(e).sort().join(";")},53141:(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},30342:(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},11424:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.clearCredentialCache=t.getSigningKey=t.createScope=void 0;const o=n(1968);const r=n(30342);const i={};const s=[];const createScope=(e,t,n)=>`${e}/${t}/${n}/${r.KEY_TYPE_IDENTIFIER}`;t.createScope=createScope;const getSigningKey=async(e,t,n,a,c)=>{const l=await hmac(e,t.secretAccessKey,t.accessKeyId);const u=`${n}:${a}:${c}:${(0,o.toHex)(l)}:${t.sessionToken}`;if(u in i){return i[u]}s.push(u);while(s.length>r.MAX_CACHE_SIZE){delete i[s.shift()]}let d=`AWS4${t.secretAccessKey}`;for(const t of[n,a,c,r.KEY_TYPE_IDENTIFIER]){d=await hmac(e,d,t)}return i[u]=d};t.getSigningKey=getSigningKey;const clearCredentialCache=()=>{s.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(n);return o.digest()}},93590:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getCanonicalHeaders=void 0;const o=n(30342);const getCanonicalHeaders=({headers:e},t,n)=>{const r={};for(const i of Object.keys(e).sort()){if(e[i]==undefined){continue}const s=i.toLowerCase();if(s in o.ALWAYS_UNSIGNABLE_HEADERS||(t===null||t===void 0?void 0:t.has(s))||o.PROXY_HEADER_PATTERN.test(s)||o.SEC_HEADER_PATTERN.test(s)){if(!n||n&&!n.has(s)){continue}}r[s]=e[i].trim().replace(/\s+/g," ")}return r};t.getCanonicalHeaders=getCanonicalHeaders},92019:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getCanonicalQuery=void 0;const o=n(57952);const r=n(30342);const getCanonicalQuery=({query:e={}})=>{const t=[];const n={};for(const i of Object.keys(e).sort()){if(i.toLowerCase()===r.SIGNATURE_HEADER){continue}t.push(i);const s=e[i];if(typeof s==="string"){n[i]=`${(0,o.escapeUri)(i)}=${(0,o.escapeUri)(s)}`}else if(Array.isArray(s)){n[i]=s.slice(0).sort().reduce(((e,t)=>e.concat([`${(0,o.escapeUri)(i)}=${(0,o.escapeUri)(t)}`])),[]).join("&")}}return t.map((e=>n[e])).filter((e=>e)).join("&")};t.getCanonicalQuery=getCanonicalQuery},47080:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getPayloadHash=void 0;const o=n(69126);const r=n(1968);const i=n(30342);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(t);return(0,r.toHex)(await e.digest())}return i.UNSIGNED_PAYLOAD};t.getPayloadHash=getPayloadHash},34120:(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},37776:(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(75086),t);var r=n(93590);Object.defineProperty(t,"getCanonicalHeaders",{enumerable:true,get:function(){return r.getCanonicalHeaders}});var i=n(92019);Object.defineProperty(t,"getCanonicalQuery",{enumerable:true,get:function(){return i.getCanonicalQuery}});var s=n(47080);Object.defineProperty(t,"getPayloadHash",{enumerable:true,get:function(){return s.getPayloadHash}});var a=n(98201);Object.defineProperty(t,"moveHeadersToQuery",{enumerable:true,get:function(){return a.moveHeadersToQuery}});var c=n(75772);Object.defineProperty(t,"prepareRequest",{enumerable:true,get:function(){return c.prepareRequest}});o.__exportStar(n(11424),t)},98201:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.moveHeadersToQuery=void 0;const o=n(53141);const moveHeadersToQuery=(e,t={})=>{var n;const{headers:r,query:i={}}=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))){i[e]=r[e];delete r[e]}}return{...e,headers:r,query:i}};t.moveHeadersToQuery=moveHeadersToQuery},75772:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.prepareRequest=void 0;const o=n(53141);const r=n(30342);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},94799:(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},78571:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NoOpLogger=void 0;class NoOpLogger{trace(){}debug(){}info(){}warn(){}error(){}}t.NoOpLogger=NoOpLogger},36034:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Client=void 0;const o=n(11461);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 i=e.resolveMiddleware(this.middlewareStack,this.config,o);if(r){i(e).then((e=>r(null,e.output)),(e=>r(e))).catch((()=>{}))}else{return i(e).then((e=>e.output))}}destroy(){if(this.config.requestHandler.destroy)this.config.requestHandler.destroy()}}t.Client=Client},4014:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Command=void 0;const o=n(11461);class Command{constructor(){this.middlewareStack=(0,o.constructStack)()}}t.Command=Command},78392:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SENSITIVE_STRING=void 0;t.SENSITIVE_STRING="***SensitiveInformation***"},24695:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseEpochTimestamp=t.parseRfc7231DateTime=t.parseRfc3339DateTime=t.dateToUtcString=void 0;const o=n(34014);const r=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];const i=["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 s=e.getUTCDate();const a=e.getUTCHours();const c=e.getUTCMinutes();const l=e.getUTCSeconds();const u=s<10?`0${s}`:`${s}`;const d=a<10?`0${a}`:`${a}`;const p=c<10?`0${c}`:`${c}`;const m=l<10?`0${l}`:`${l}`;return`${r[o]}, ${u} ${i[n]} ${t} ${d}:${p}:${m} GMT`}t.dateToUtcString=dateToUtcString;const s=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=s.exec(e);if(!t){throw new TypeError("Invalid RFC-3339 date-time value")}const[n,r,i,a,c,l,u,d]=t;const p=(0,o.strictParseShort)(stripLeadingZeroes(r));const m=parseDateValue(i,"month",1,12);const g=parseDateValue(a,"day",1,31);return buildDate(p,m,g,{hours:c,minutes:l,seconds:u,fractionalMilliseconds:d})};t.parseRfc3339DateTime=parseRfc3339DateTime;const a=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 c=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 l=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=a.exec(e);if(t){const[e,n,r,i,s,a,c,l]=t;return buildDate((0,o.strictParseShort)(stripLeadingZeroes(i)),parseMonthByShortName(r),parseDateValue(n,"day",1,31),{hours:s,minutes:a,seconds:c,fractionalMilliseconds:l})}t=c.exec(e);if(t){const[e,n,o,r,i,s,a,c]=t;return adjustRfc850Year(buildDate(parseTwoDigitYear(r),parseMonthByShortName(o),parseDateValue(n,"day",1,31),{hours:i,minutes:s,seconds:a,fractionalMilliseconds:c}))}t=l.exec(e);if(t){const[e,n,r,i,s,a,c,l]=t;return buildDate((0,o.strictParseShort)(stripLeadingZeroes(l)),parseMonthByShortName(n),parseDateValue(r.trimLeft(),"day",1,31),{hours:i,minutes:s,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{if(e.getTime()-(new Date).getTime()>u){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=i.indexOf(e);if(t<0){throw new TypeError(`Invalid month: ${e}`)}return t+1};const d=[31,28,31,30,31,30,31,31,30,31,30,31];const validateDayOfMonth=(e,t,n)=>{let o=d[t];if(t===1&&isLeapYear(e)){o=29}if(n>o){throw new TypeError(`Invalid day for ${i[t]} in ${e}: ${n}`)}};const isLeapYear=e=>e%4===0&&(e%100!==0||e%400===0);const parseDateValue=(e,t,n,r)=>{const i=(0,o.strictParseByte)(stripLeadingZeroes(e));if(ir){throw new TypeError(`${t} must be between ${n} and ${r}, inclusive`)}return i};const parseMilliseconds=e=>{if(e===null||e===undefined){return 0}return(0,o.strictParseFloat32)("0."+e)*1e3};const stripLeadingZeroes=e=>{let t=0;while(t{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.throwDefaultError=void 0;const o=n(57778);const throwDefaultError=({output:e,parsedBody:t,exceptionCtor:n,errorCode:r})=>{const i=deserializeMetadata(e);const s=i.httpStatusCode?i.httpStatusCode+"":undefined;const a=new n({name:t.code||t.Code||r||s||"UnknownError",$fault:"client",$metadata:i});throw(0,o.decorateServiceException)(a,t)};t.throwDefaultError=throwDefaultError;const deserializeMetadata=e=>{var t;return{httpStatusCode:e.statusCode,requestId:(t=e.headers["x-amzn-requestid"])!==null&&t!==void 0?t:e.headers["x-amzn-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}}},33088:(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},12363:(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},57778:(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},91927:(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},86457:(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},95830:(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},4963:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(78571),t);o.__exportStar(n(36034),t);o.__exportStar(n(4014),t);o.__exportStar(n(78392),t);o.__exportStar(n(24695),t);o.__exportStar(n(47222),t);o.__exportStar(n(33088),t);o.__exportStar(n(12363),t);o.__exportStar(n(57778),t);o.__exportStar(n(91927),t);o.__exportStar(n(86457),t);o.__exportStar(n(95830),t);o.__exportStar(n(93613),t);o.__exportStar(n(21599),t);o.__exportStar(n(34014),t);o.__exportStar(n(80308),t);o.__exportStar(n(38e3),t);o.__exportStar(n(48730),t)},93613:(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},21599:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.convertMap=t.map=void 0;function map(e,t,n){let o;let r;let i;if(typeof t==="undefined"&&typeof n==="undefined"){o={};i=e}else{o=e;if(typeof t==="function"){r=t;i=n;return mapWithFilter(o,r,i)}else{i=t}}for(const e of Object.keys(i)){if(!Array.isArray(i[e])){o[e]=i[e];continue}let[t,n]=i[e];if(typeof n==="function"){let r;const i=t===undefined&&(r=n())!=null;const s=typeof t==="function"&&!!t(void 0)||typeof t!=="function"&&!!t;if(i){o[e]=r}else if(s){o[e]=n()}}else{const r=t===undefined&&n!=null;const i=typeof t==="function"&&!!t(n)||typeof t!=="function"&&!!t;if(r||i){o[e]=n}}}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 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}),{}))},34014:(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}},80308:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolvedPath=void 0;const o=n(91927);const resolvedPath=(e,t,n,r,i,s)=>{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(i,s?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},38e3:(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},48730:(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 i="";for(let e=0;e{"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(74462);const r=n(67387);const i=n(92242);const s=n(93601);const a=n(28418);const c=n(2488);const l=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 d=t[n];if(!d){throw new o.TokenProviderError(`Profile '${n}' could not be found in shared credentials file.`,false)}else if(!d["sso_session"]){throw new o.TokenProviderError(`Profile '${n}' is missing required property 'sso_session'.`)}const p=d["sso_session"];const m=await(0,r.loadSsoSessionData)(e);const g=m[p];if(!g){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(!g[e]){throw new o.TokenProviderError(`Sso session '${p}' is missing required property '${e}'.`,false)}}const f=g["sso_start_url"];const y=g["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. ${i.REFRESH_MESSAGE}`,false)}(0,c.validateTokenKey)("accessToken",h.accessToken);(0,c.validateTokenKey)("expiresAt",h.expiresAt);const{accessToken:E,expiresAt:S}=h;const v={token:E,expiration:new Date(S)};if(v.expiration.getTime()-Date.now()>i.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,s.getNewSsoOidcToken)(h,y);(0,c.validateTokenKey)("accessToken",e.accessToken);(0,c.validateTokenKey)("expiresIn",e.expiresIn);const t=new Date(Date.now()+e.expiresIn*1e3);try{await(0,l.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(74462);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(74462);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(74462);const r=n(92242);const validateTokenExpiry=e=>{if(e.expiration&&e.expiration.getTime(){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateTokenKey=void 0;const o=n(74462);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(67387);const r=n(57147);const{writeFile:i}=r.promises;const writeSSOTokenToFile=(e,t)=>{const n=(0,o.getSSOTokenFilepath)(e);const r=JSON.stringify(t,null,2);return i(n,r)};t.writeSSOTokenToFile=writeSSOTokenToFile},52562:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},26913:(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})},67736:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},13268:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},99385:(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={}))},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(65861),t);o.__exportStar(n(76527),t);o.__exportStar(n(48470),t);o.__exportStar(n(67736),t);o.__exportStar(n(13268),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(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(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})},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)=>{"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})},2992:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseUrl=void 0;const o=n(47424);const parseUrl=e=>{if(typeof e==="string"){return(0,t.parseUrl)(new URL(e))}const{hostname:n,pathname:r,port:i,protocol:s,search:a}=e;let c;if(a){c=(0,o.parseQueryString)(a)}return{hostname:n,port:i?parseInt(i):undefined,protocol:s,path:r,query:c}};t.parseUrl=parseUrl},58444:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromBase64=void 0;const o=n(36010);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},97727:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(58444),t);o.__exportStar(n(63439),t)},63439:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toBase64=void 0;const o=n(36010);const toBase64=e=>(0,o.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString("base64");t.toBase64=toBase64},89190:(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},74147:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(89190),t)},36010:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromString=t.fromArrayBuffer=void 0;const o=n(69126);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},79509:(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},6168:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(79509),t)},16488:(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"},28450:(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"}},74243:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(18238),t)},18238:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveDefaultsModeConfig=void 0;const o=n(56153);const r=n(25898);const i=n(87684);const s=n(74462);const a=n(16488);const c=n(28450);const resolveDefaultsModeConfig=({region:e=(0,i.loadConfig)(o.NODE_REGION_CONFIG_OPTIONS),defaultsMode:t=(0,i.loadConfig)(c.NODE_DEFAULTS_MODE_CONFIG_OPTIONS)}={})=>(0,s.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){}}}},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},39205:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(37482),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,i,s,...a]=t;if(n!=="arn"||o===""||r===""||a[0]==="")return null;return{partition:o,service:r,region:i,accountId:s,resourceId:a[0].includes("/")?a[0].split("/"):a}};t.parseArn=parseArn},37482:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.partition=void 0;const o=n(4351);const r=o.__importDefault(n(95367));const{partitions:i}=r.default;const s=i.find((e=>e.id==="aws"));const partition=e=>{for(const t of i){const{regions:n,outputs:o}=t;for(const[t,r]of Object.entries(n)){if(t===e){return{...o,...r}}}}for(const t of i){const{regionRegex:n,outputs:o}=t;if(new RegExp(n).test(e)){return{...o}}}if(!s){throw new Error("Provided region was not found in the partition array or regex,"+" and default partition with id 'aws' doesn't exist.")}return{...s.outputs}};t.partition=partition},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 i=r.slice(t+1,-1);if(Number.isNaN(parseInt(i))){throw new o.EndpointError(`Invalid array index: '${i}' in path: '${e}'`)}if(t!==0){n.push(r.slice(0,t))}n.push(i)}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 i={[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:i={}}=e;const s=new URL(`${o}//${t}${n?`:${n}`:""}${r}`);s.search=Object.entries(i).map((([e,t])=>`${e}=${t}`)).join("&");return s}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:s,hostname:a,pathname:c,protocol:l,search:u}=t;if(u){return null}const d=l.slice(0,-1);if(!Object.values(o.EndpointURLScheme).includes(d)){return null}const p=(0,r.isIpAddress)(a);const m=n.includes(`${s}:${i[d]}`)||typeof e==="string"&&e.includes(`${s}:${i[d]}`);const g=`${s}${m?`:${i[d]}`:``}`;return{scheme:d,authority:g,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{"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 i=n(81114);const resolveEndpoint=(e,t)=>{var n,s,a,c,l,u;const{endpointParams:d,logger:p}=t;const{parameters:m,rules:g}=e;(s=(n=t.logger)===null||n===void 0?void 0:n.debug)===null||s===void 0?void 0:s.call(n,o.debugId,`Initial EndpointParams: ${(0,o.toDebugString)(d)}`);const f=Object.entries(m).filter((([,e])=>e.default!=null)).map((([e,t])=>[e,t.default]));if(f.length>0){for(const[e,t]of f){d[e]=(a=d[e])!==null&&a!==void 0?a:t}}const y=Object.entries(m).filter((([,e])=>e.required)).map((([e])=>e));for(const e of y){if(d[e]==null){throw new r.EndpointError(`Missing required parameter: '${e}'`)}}const h=(0,i.evaluateRules)(g,{endpointParams:d,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=(l=t.logger)===null||l===void 0?void 0:l.debug)===null||u===void 0?void 0:u.call(l,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 i=n(82980);const callFunction=({fn:e,argv:t},n)=>{const o=t.map((e=>["boolean","number"].includes(typeof e)?e:(0,i.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 i=n(65075);const evaluateCondition=({assign:e,...t},n)=>{var s,a;if(e&&e in n.referenceRecord){throw new r.EndpointError(`'${e}' is already defined in Reference Record.`)}const c=(0,i.callFunction)(t,n);(a=(s=n.logger)===null||s===void 0?void 0:s.debug)===null||a===void 0?void 0:a.call(s,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,i;const s={};for(const a of e){const{result:e,toAssign:c}=(0,r.evaluateCondition)(a,{...t,referenceRecord:{...t.referenceRecord,...s}});if(!e){return{result:e}}if(c){s[c.name]=c.value;(i=(n=t.logger)===null||n===void 0?void 0:n.debug)===null||i===void 0?void 0:i.call(n,o.debugId,`assign: ${c.name} := ${(0,o.toDebugString)(c.value)}`)}}return{result:true,referenceRecord:s}};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 i=n(88268);const s=n(34973);const a=n(23602);const evaluateEndpointRule=(e,t)=>{var n,c;const{conditions:l,endpoint:u}=e;const{result:d,referenceRecord:p}=(0,r.evaluateConditions)(l,t);if(!d){return}const m={...t,referenceRecord:{...t.referenceRecord,...p}};const{url:g,properties:f,headers:y}=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{...y!=undefined&&{headers:(0,i.getEndpointHeaders)(y,m)},...f!=undefined&&{properties:(0,s.getEndpointProperties)(f,m)},url:(0,a.getEndpointUrl)(g,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 i=n(82980);const evaluateErrorRule=(e,t)=>{const{conditions:n,error:s}=e;const{result:a,referenceRecord:c}=(0,r.evaluateConditions)(n,t);if(!a){return}throw new o.EndpointError((0,i.evaluateExpression)(s,"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 i=n(57535);const s=n(68810);const evaluateExpression=(e,t,n)=>{if(typeof e==="string"){return(0,i.evaluateTemplate)(e,n)}else if(e["fn"]){return(0,r.callFunction)(e,n)}else if(e["ref"]){return(0,s.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 i=n(12110);const s=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,i.evaluateErrorRule)(n,t)}else if(n.type==="tree"){const e=(0,s.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 i=0;while(i{"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:i}=e;const{result:s,referenceRecord:a}=(0,o.evaluateConditions)(n,t);if(!s){return}return(0,r.evaluateRules)(i,{...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,i])=>({...e,[n]:i.map((e=>{const i=(0,r.evaluateExpression)(e,"Header value entry",t);if(typeof i!=="string"){throw new o.EndpointError(`Header '${n}' value '${i}' is not a string`)}return i}))})),{});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 i=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,i.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)},1968:(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{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(77776),t)},77776:(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},66968:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AdaptiveRetryStrategy=void 0;const o=n(6514);const r=n(258);const i=n(43449);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 i.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},258:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DefaultRateLimiter=void 0;const o=n(61921);class DefaultRateLimiter{constructor(e){var t,n,o,r,i;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=(i=e===null||e===void 0?void 0:e.smooth)!==null&&i!==void 0?i:.8;const s=this.getCurrentTimeInSeconds();this.lastThrottleTime=s;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},43449:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StandardRetryStrategy=void 0;const o=n(6514);const r=n(65056);const i=n(41360);class StandardRetryStrategy{constructor(e){this.maxAttemptsProvider=e;this.mode=o.RETRY_MODES.STANDARD;this.retryToken=(0,i.getDefaultRetryToken)(r.INITIAL_RETRY_TOKENS,r.DEFAULT_RETRY_DELAY_BASE);this.maxAttemptsProvider=e}async acquireInitialRetryToken(e){return this.retryToken}async refreshRetryTokenForRetry(e,t){const n=await this.getMaxAttempts();if(this.shouldRetry(e,t,n)){e.getRetryTokenCount(t);return e}throw new Error("No retry token available")}recordSuccess(e){this.retryToken.releaseRetryTokens(e.getLastRetryCost())}async getMaxAttempts(){let e;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();return o{"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="STANDARD"},65056:(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"},44763:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getDefaultRetryBackoffStrategy=void 0;const o=n(65056);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},41360:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getDefaultRetryToken=void 0;const o=n(65056);const r=n(44763);const getDefaultRetryToken=(e,t,n,i)=>{var s,a,c;const l=e;const u=(s=i===null||i===void 0?void 0:i.retryCost)!==null&&s!==void 0?s:o.RETRY_COST;const d=(a=i===null||i===void 0?void 0:i.timeoutRetryCost)!==null&&a!==void 0?a:o.TIMEOUT_RETRY_COST;const p=(c=i===null||i===void 0?void 0:i.retryBackoffStrategy)!==null&&c!==void 0?c:(0,r.getDefaultRetryBackoffStrategy)();let m=e;let g=Math.min(o.MAXIMUM_RETRY_DELAY,t);let f=undefined;let y=n!==null&&n!==void 0?n:0;const getCapacityAmount=e=>e==="TRANSIENT"?d:u;const getRetryCount=()=>y;const getRetryDelay=()=>g;const getLastRetryCost=()=>f;const hasRetryTokens=e=>getCapacityAmount(e)<=m;const getRetryTokenCount=e=>{const t=e.errorType;if(!hasRetryTokens(t)){throw new Error("No retry token available")}const n=getCapacityAmount(t);const r=t==="THROTTLING"?o.THROTTLING_RETRY_DELAY_BASE:o.DEFAULT_RETRY_DELAY_BASE;p.setDelayBase(r);const i=p.computeNextBackoffDelay(y);if(e.retryAfterHint){const t=e.retryAfterHint.getTime()-Date.now();g=Math.max(t||0,i)}else{g=i}y++;f=n;m-=n;return n};const releaseRetryTokens=e=>{m+=e!==null&&e!==void 0?e:o.NO_RETRY_INCREMENT;m=Math.min(m,l)};return{getRetryCount:getRetryCount,getRetryDelay:getRetryDelay,getLastRetryCost:getLastRetryCost,hasRetryTokens:hasRetryTokens,getRetryTokenCount:getRetryTokenCount,releaseRetryTokens:releaseRetryTokens}};t.getDefaultRetryToken=getDefaultRetryToken},99395:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(66968),t);o.__exportStar(n(258),t);o.__exportStar(n(43449),t);o.__exportStar(n(6514),t);o.__exportStar(n(65056),t);o.__exportStar(n(91318),t)},91318:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},15774:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.escapeUriPath=void 0;const o=n(24652);const escapeUriPath=e=>e.split("/").map(o.escapeUri).join("/");t.escapeUriPath=escapeUriPath},24652:(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()}`},57952:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(24652),t);o.__exportStar(n(15774),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(87684);const r=n(22037);const i=n(77282);const s=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],[`os/${(0,r.platform)()}`,(0,r.release)()],["lang/js"],["md/nodejs",`${i.versions.node}`]];const c=(0,s.isCrtAvailable)();if(c){a.push(c)}if(e){a.push([`api/${e}`,n])}if(i.env.AWS_EXECUTION_ENV){a.push([`exec-env/${i.env.AWS_EXECUTION_ENV}`])}const l=(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 l;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},66278:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toUtf8=t.fromUtf8=void 0;const o=n(36010);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;const toUtf8=e=>(0,o.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString("utf8");t.toUtf8=toUtf8},38880:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createWaiter=void 0;const o=n(92105);const r=n(36001);const i=n(4996);const abortTimeout=async e=>new Promise((t=>{e.onabort=()=>t({state:i.WaiterState.ABORTED})}));const createWaiter=async(e,t,n)=>{const s={...i.waiterServiceDefaults,...e};(0,r.validateWaiterOptions)(s);const a=[(0,o.runPolling)(s,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},21627:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(38880),t);o.__exportStar(n(4996),t)},92105:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.runPolling=void 0;const o=n(17397);const r=n(4996);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:i,client:s,abortSignal:a},c,l)=>{var u;const{state:d,reason:p}=await l(s,c);if(d!==r.WaiterState.RETRY){return{state:d,reason:p}}let m=1;const g=Date.now()+n*1e3;const f=Math.log(t/e)/Math.log(2)+1;while(true){if(((u=i===null||i===void 0?void 0:i.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,f,m);if(Date.now()+n*1e3>g){return{state:r.WaiterState.TIMEOUT}}await(0,o.sleep)(n);const{state:d,reason:p}=await l(s,c);if(d!==r.WaiterState.RETRY){return{state:d,reason:p}}m+=1}};t.runPolling=runPolling},36001:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(4351);o.__exportStar(n(17397),t);o.__exportStar(n(23931),t)},17397:(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},23931:(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{"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},81040:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function once(e,t,{signal:n}={}){return new Promise(((o,r)=>{function cleanup(){n===null||n===void 0?void 0:n.removeEventListener("abort",cleanup);e.removeListener(t,onEvent);e.removeListener("error",onError)}function onEvent(...e){cleanup();o(e)}function onError(e){cleanup();r(e)}n===null||n===void 0?void 0:n.addEventListener("abort",cleanup);e.on(t,onEvent);e.on("error",onError)}))}t["default"]=once},49690:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const r=n(82361);const i=o(n(38237));const s=o(n(66570));const a=i.default("agent-base");function isAgent(e){return Boolean(e)&&typeof e.addRequest==="function"}function isSecureEndpoint(){const{stack:e}=new Error;if(typeof e!=="string")return false;return e.split("\n").some((e=>e.indexOf("(https.js:")!==-1||e.indexOf("node:https:")!==-1))}function createAgent(e,t){return new createAgent.Agent(e,t)}(function(e){class Agent extends r.EventEmitter{constructor(e,t){super();let n=t;if(typeof e==="function"){this.callback=e}else if(e){n=e}this.timeout=null;if(n&&typeof n.timeout==="number"){this.timeout=n.timeout}this.maxFreeSockets=1;this.maxSockets=1;this.maxTotalSockets=Infinity;this.sockets={};this.freeSockets={};this.requests={};this.options={}}get defaultPort(){if(typeof this.explicitDefaultPort==="number"){return this.explicitDefaultPort}return isSecureEndpoint()?443:80}set defaultPort(e){this.explicitDefaultPort=e}get protocol(){if(typeof this.explicitProtocol==="string"){return this.explicitProtocol}return isSecureEndpoint()?"https:":"http:"}set protocol(e){this.explicitProtocol=e}callback(e,t,n){throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(e,t){const n=Object.assign({},t);if(typeof n.secureEndpoint!=="boolean"){n.secureEndpoint=isSecureEndpoint()}if(n.host==null){n.host="localhost"}if(n.port==null){n.port=n.secureEndpoint?443:80}if(n.protocol==null){n.protocol=n.secureEndpoint?"https:":"http:"}if(n.host&&n.path){delete n.path}delete n.agent;delete n.hostname;delete n._defaultAgent;delete n.defaultPort;delete n.createConnection;e._last=true;e.shouldKeepAlive=false;let o=false;let r=null;const i=n.timeout||this.timeout;const onerror=t=>{if(e._hadError)return;e.emit("error",t);e._hadError=true};const ontimeout=()=>{r=null;o=true;const e=new Error(`A "socket" was not created for HTTP request before ${i}ms`);e.code="ETIMEOUT";onerror(e)};const callbackError=e=>{if(o)return;if(r!==null){clearTimeout(r);r=null}onerror(e)};const onsocket=t=>{if(o)return;if(r!=null){clearTimeout(r);r=null}if(isAgent(t)){a("Callback returned another Agent instance %o",t.constructor.name);t.addRequest(e,n);return}if(t){t.once("free",(()=>{this.freeSocket(t,n)}));e.onSocket(t);return}const i=new Error(`no Duplex stream was returned to agent-base for \`${e.method} ${e.path}\``);onerror(i)};if(typeof this.callback!=="function"){onerror(new Error("`callback` is not defined"));return}if(!this.promisifiedCallback){if(this.callback.length>=3){a("Converting legacy callback function to promise");this.promisifiedCallback=s.default(this.callback)}else{this.promisifiedCallback=this.callback}}if(typeof i==="number"&&i>0){r=setTimeout(ontimeout,i)}if("port"in n&&typeof n.port!=="number"){n.port=Number(n.port)}try{a("Resolving socket for %o request: %o",n.protocol,`${e.method} ${e.path}`);Promise.resolve(this.promisifiedCallback(e,n)).then(onsocket,callbackError)}catch(e){Promise.reject(e).catch(callbackError)}}freeSocket(e,t){a("Freeing socket %o %o",e.constructor.name,t);e.destroy()}destroy(){a("Destroying agent %o",this.constructor.name)}}e.Agent=Agent;e.prototype=e.Agent.prototype})(createAgent||(createAgent={}));e.exports=createAgent},66570:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function promisify(e){return function(t,n){return new Promise(((o,r)=>{e.call(this,t,n,((e,t)=>{if(e){r(e)}else{o(t)}}))}))}}t["default"]=promisify},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{if(t==="%%"){return"%"}i++;const r=createDebug.formatters[o];if(typeof r==="function"){const o=e[i];t=r.call(n,o);e.splice(i,1);i--}return t}));createDebug.formatArgs.call(n,e);const s=n.log||createDebug.log;s.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"-"+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{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 i=` ${r};1m${n} `;t[0]=i+t[0].split("\n").join("\n"+i);t.push(r+"m+"+e.exports.humanize(this.diff)+"")}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;oe.trim())).join(" ")};i.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 i=n(80660);e.exports={XMLParser:r,XMLValidator:o,XMLBuilder:i}},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 i=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 i=o.length;for(let e=0;e{"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 i=false;if(e[0]==="\ufeff"){e=e.substr(1)}for(let r=0;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 l=readAttributeStr(e,r);if(l===false){return getErrorObject("InvalidAttr","Attributes for '"+c+"' have open quote.",getLineNumberForPosition(e,r))}let u=l.value;r=l.index;if(u[u.length-1]==="/"){const n=r-u.length;u=u.substring(0,u.length-1);const i=validateAttributeString(u,t);if(i===true){o=true}else{return getErrorObject(i.err.code,i.err.msg,getLineNumberForPosition(e,n+i.err.line))}}else if(a){if(!l.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,s))}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,s))}if(n.length==0){i=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(i===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:s})}o=true}for(r++;r0){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(;t5&&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"){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"){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"){t+=2;break}}}return t}const i='"';const s="'";function readAttributeStr(e,t){let n="";let o="";let r=false;for(;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{"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:[],transformTagName: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=""}if(this.options.suppressEmptyNode){this.buildTextNode=buildEmptyTextNode;this.buildObjNode=buildEmptyObjNode}else{this.buildTextNode=buildTextValNode;this.buildObjNode=buildObjectNode}this.buildTextValNode=buildTextValNode;this.buildObjectNode=buildObjectNode;this.replaceEntitiesValue=replaceEntitiesValue;this.buildAttrPairStr=buildAttrPairStr}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.buildTextNode(e[r],r,"",t)}else if(typeof e[r]!=="object"){const i=this.isAttribute(r);if(i){n+=this.buildAttrPairStr(i,""+e[r])}else{if(r===this.options.textNodeName){let t=this.options.tagValueProcessor(r,""+e[r]);o+=this.replaceEntitiesValue(t)}else{o+=this.buildTextNode(e[r],r,"",t)}}}else if(Array.isArray(e[r])){const n=e[r].length;for(let i=0;i"+e+r}else if(this.options.commentPropName!==false&&t===this.options.commentPropName&&i.length===0){return this.indentate(o)+`\x3c!--${e}--\x3e`+this.newLine}else{return this.indentate(o)+"<"+t+n+i+this.tagEndChar+e+this.indentate(o)+r}}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}}function buildTextValNode(e,t,n,o){if(this.options.cdataPropName!==false&&t===this.options.cdataPropName){return this.indentate(o)+``+this.newLine}else if(this.options.commentPropName!==false&&t===this.options.commentPropName){return this.indentate(o)+`\x3c!--${e}--\x3e`+this.newLine}else{let r=this.options.tagValueProcessor(t,e);r=this.replaceEntitiesValue(r);if(r===""&&this.options.unpairedTags.indexOf(t)!==-1){if(this.options.suppressUnpairedNode){return this.indentate(o)+"<"+t+this.tagEndChar}else{return this.indentate(o)+"<"+t+"/"+this.tagEndChar}}else{return this.indentate(o)+"<"+t+n+">"+r+"0&&this.options.processEntities){for(let t=0;t{const t="\n";function toXml(e,t){return arrToStr(e,t,"",0)}function arrToStr(e,n,o,r){let i="";let s="";if(n.format&&n.indentBy.length>0){s=t+""+n.indentBy.repeat(r)}for(let t=0;t`;continue}else if(c===n.commentPropName){i+=s+`\x3c!--${a[c][0][n.textNodeName]}--\x3e`;continue}else if(c[0]==="?"){const e=attr_to_str(a[":@"],n);const t=c==="?xml"?"":s;let o=a[c][0][n.textNodeName];o=o.length!==0?" "+o:"";i+=t+`<${c}${o}${e}?>`;continue}const u=attr_to_str(a[":@"],n);let d=s+`<${c}${u}`;let p=arrToStr(a[c],n,l,r+1);if(n.unpairedTags.indexOf(c)!==-1){if(n.suppressUnpairedNode)i+=d+">";else i+=d+"/>"}else if((!p||p.length===0)&&n.suppressEmptyNode){i+=d+"/>"}else{i+=d+`>${p}${s}`}}return i}function propName(e){const t=Object.keys(e);for(let e=0;e0&&t.processEntities){for(let n=0;n{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,i=false,s=false;let a="";for(;t"){if(s){if(e[t-1]==="-"&&e[t-2]==="-"){s=false}else{throw new Error(`Invalid XML comment in DOCTYPE`)}}else if(i){parseEntityExp(a,n);i=false}o--;if(o===0){break}}else if(e[t]==="["){r=true}else{a+=e[t]}}if(o!==0){throw new Error(`Unclosed DOCTYPE`)}}else{throw new Error(`Invalid Tag instead of DOCTYPE`)}return{entities:n,i:t}}const t=RegExp("^\\s([a-zA-z0-0]+)[ \t](['\"])([^&]+)\\2");function parseEntityExp(e,n){const o=t.exec(e);if(o){n[o[1]]={regx:RegExp(`&${o[1]};`,"g"),val:o[3]}}}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},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};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 i=n(6072);const s=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}}function addExternalEntities(e){const t=Object.keys(e);for(let n=0;n0){if(!s)e=this.replaceEntitiesValue(e);const o=this.options.tagValueProcessor(t,e,n,r,i);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){if(!this.options.ignoreAttributes&&typeof e==="string"){const n=o.getAllMatches(e,c);const r=n.length;const i={};for(let e=0;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,s)}s=s.substr(0,s.lastIndexOf("."));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,s);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,s)}n.addChild(e)}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,s);n.add(this.options.commentPropName,[{[this.options.textNodeName]:r}])}a=t}else if(e.substr(a+1,2)==="!D"){const t=i(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,s);if(this.options.cdataPropName){n.add(this.options.cdataPropName,[{[this.options.textNodeName]:r}])}else{let e=this.parseTextData(r,n.tagname,s,true,false,true);if(e==undefined)e="";n.add(this.options.textNodeName,e)}a=t+2}else{let i=readTagExp(e,a,this.options.removeNSPrefix);let c=i.tagName;let l=i.tagExp;let u=i.attrExpPresent;let d=i.closeIndex;if(this.options.transformTagName){c=this.options.transformTagName(c)}if(n&&o){if(n.tagname!=="!xml"){o=this.saveTextToParentTag(o,n,s,false)}}if(c!==t.tagname){s+=s?"."+c:c}const p=n;if(p&&this.options.unpairedTags.indexOf(p.tagname)!==-1){n=this.tagsNodeStack.pop()}if(this.isItStopNode(this.options.stopNodes,s,c)){let t="";if(l.length>0&&l.lastIndexOf("/")===l.length-1){a=i.closeIndex}else if(this.options.unpairedTags.indexOf(c)!==-1){a=i.closeIndex}else{const n=this.readStopNodeData(e,c,d+1);if(!n)throw new Error(`Unexpected end of ${c}`);a=n.i;t=n.tagContent}const o=new r(c);if(c!==l&&u){o[":@"]=this.buildAttributesMap(l,s)}if(t){t=this.parseTextData(t,c,s,true,u,true,true)}s=s.substr(0,s.lastIndexOf("."));o.add(this.options.textNodeName,t);n.addChild(o)}else{if(l.length>0&&l.lastIndexOf("/")===l.length-1){if(c[c.length-1]==="/"){c=c.substr(0,c.length-1);l=c}else{l=l.substr(0,l.length-1)}if(this.options.transformTagName){c=this.options.transformTagName(c)}const e=new r(c);if(c!==l&&u){e[":@"]=this.buildAttributesMap(l,s)}s=s.substr(0,s.lastIndexOf("."));n.addChild(e)}else{const e=new r(c);this.tagsNodeStack.push(n);if(c!==l&&u){e[":@"]=this.buildAttributesMap(l,s)}n.addChild(e);n=e}o="";a=d}}}else{o+=e[a]}}return t.child};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 i=t;i",n,`${t} is not closed`);let s=e.substring(n+2,i).trim();if(s===t){r--;if(r===0){return{tagContent:e.substring(o,n),i:i}}}n=i}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 s(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:i}=n(42882);const s=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=s.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 i(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 i=0;i0)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{"use strict";class XmlNode{constructor(e){this.tagname=e;this.child=[];this[":@"]={}}add(e,t){this.child.push({[e]:t})}addChild(e){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||o0){d("Patching connection write() output buffer with updated header");t=e.output[0];n=t.indexOf("\r\n\r\n")+4;e.output[0]=e._header+t.substring(n);d("Output buffer: %o",e.output)}else if(e.outputData&&e.outputData.length>0){d("Patching connection write() output buffer with updated header");t=e.outputData[0].data;n=t.indexOf("\r\n\r\n")+4;e.outputData[0].data=e._header+t.substring(n);d("Output buffer: %o",e.outputData[0].data)}}yield(0,l.default)(c,"connect");return c}))}}t["default"]=HttpProxyAgent},23764:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const r=o(n(77492));function createHttpProxyAgent(e){return new r.default(e)}(function(e){e.HttpProxyAgent=r.default;e.prototype=r.default.prototype})(createHttpProxyAgent||(createHttpProxyAgent={}));e.exports=createHttpProxyAgent},15098: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())}))};var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const i=r(n(41808));const s=r(n(24404));const a=r(n(57310));const c=r(n(39491));const l=r(n(38237));const u=n(49690);const d=r(n(595));const p=l.default("https-proxy-agent:agent");class HttpsProxyAgent extends u.Agent{constructor(e){let t;if(typeof e==="string"){t=a.default.parse(e)}else{t=e}if(!t){throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!")}p("creating new HttpsProxyAgent instance: %o",t);super(t);const n=Object.assign({},t);this.secureProxy=t.secureProxy||isHTTPS(n.protocol);n.host=n.hostname||n.host;if(typeof n.port==="string"){n.port=parseInt(n.port,10)}if(!n.port&&n.host){n.port=this.secureProxy?443:80}if(this.secureProxy&&!("ALPNProtocols"in n)){n.ALPNProtocols=["http 1.1"]}if(n.host&&n.path){delete n.path;delete n.pathname}this.proxy=n}callback(e,t){return o(this,void 0,void 0,(function*(){const{proxy:n,secureProxy:o}=this;let r;if(o){p("Creating `tls.Socket`: %o",n);r=s.default.connect(n)}else{p("Creating `net.Socket`: %o",n);r=i.default.connect(n)}const a=Object.assign({},n.headers);const l=`${t.host}:${t.port}`;let u=`CONNECT ${l} HTTP/1.1\r\n`;if(n.auth){a["Proxy-Authorization"]=`Basic ${Buffer.from(n.auth).toString("base64")}`}let{host:m,port:g,secureEndpoint:f}=t;if(!isDefaultPort(g,f)){m+=`:${g}`}a.Host=m;a.Connection="close";for(const e of Object.keys(a)){u+=`${e}: ${a[e]}\r\n`}const y=d.default(r);r.write(`${u}\r\n`);const{statusCode:h,buffered:E}=yield y;if(h===200){e.once("socket",resume);if(t.secureEndpoint){p("Upgrading socket connection to TLS");const e=t.servername||t.host;return s.default.connect(Object.assign(Object.assign({},omit(t,"host","hostname","path","port")),{socket:r,servername:e}))}return r}r.destroy();const S=new i.default.Socket({writable:false});S.readable=true;e.once("socket",(e=>{p("replaying proxy buffer for failed request");c.default(e.listenerCount("data")>0);e.push(E);e.push(null)}));return S}))}}t["default"]=HttpsProxyAgent;function resume(e){e.resume()}function isDefaultPort(e,t){return Boolean(!t&&e===80||t&&e===443)}function isHTTPS(e){return typeof e==="string"?/^https:?$/i.test(e):false}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.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const r=o(n(15098));function createHttpsProxyAgent(e){return new r.default(e)}(function(e){e.HttpsProxyAgent=r.default;e.prototype=r.default.prototype})(createHttpsProxyAgent||(createHttpsProxyAgent={}));e.exports=createHttpsProxyAgent},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});const r=o(n(38237));const i=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("close",onclose);e.removeListener("readable",read)}function onclose(e){i("onclose had error %o",e)}function onend(){i("onend")}function onerror(e){cleanup();i("onerror %o",e);n(e)}function ondata(e){r.push(e);o+=e.length;const n=Buffer.concat(r,o);const s=n.indexOf("\r\n\r\n");if(s===-1){i("have not received end of HTTP headers yet...");read();return}const a=n.toString("ascii",0,n.indexOf("\r\n"));const c=+a.split(" ")[1];i("got proxy server response: %o",a);t({statusCode:c,buffered:n})}e.on("error",onerror);e.on("close",onclose);e.on("end",onend);read()}))}t["default"]=parseProxyResponse},80900:e=>{var t=1e3;var n=t*60;var o=n*60;var r=o*24;var i=r*7;var s=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 l=(a[2]||"ms").toLowerCase();switch(l){case"years":case"year":case"yrs":case"yr":case"y":return c*s;case"weeks":case"week":case"w":return c*i;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 i=Math.abs(e);if(i>=r){return Math.round(e/r)+"d"}if(i>=o){return Math.round(e/o)+"h"}if(i>=n){return Math.round(e/n)+"m"}if(i>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var i=Math.abs(e);if(i>=r){return plural(e,i,r,"day")}if(i>=o){return plural(e,i,o,"hour")}if(i>=n){return plural(e,i,n,"minute")}if(i>=t){return plural(e,i,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 i=e.trim();if(r.skipLike!==undefined&&r.skipLike.test(i))return e;else if(r.hex&&t.test(i)){return Number.parseInt(i,16)}else{const t=n.exec(i);if(t){const n=t[1];const o=t[2];let s=trimZeros(t[3]);const a=t[4]||t[6];if(!r.leadingZeros&&o.length>0&&n&&i[2]!==".")return e;else if(!r.leadingZeros&&o.length>0&&!n&&i[1]!==".")return e;else{const t=Number(i);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(i.indexOf(".")!==-1){if(c==="0"&&s==="")return t;else if(c===s)return t;else if(n&&c==="-"+s)return t;else return e}if(o){if(s===c)return t;else if(n+s===c)return t;else return e}if(i===c)return t;else if(i===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 i=n(31621);const{env:s}=process;let a;if(i("no-color")||i("no-colors")||i("color=false")||i("color=never")){a=0}else if(i("color")||i("colors")||i("color=true")||i("color=always")){a=1}if("FORCE_COLOR"in s){if(s.FORCE_COLOR==="true"){a=1}else if(s.FORCE_COLOR==="false"){a=0}else{a=s.FORCE_COLOR.length===0?1:Math.min(parseInt(s.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(i("color=16m")||i("color=full")||i("color=truecolor")){return 3}if(i("color=256")){return 2}if(e&&!t&&a===undefined){return 0}const n=a||0;if(s.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 s){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in s))||s.CI_NAME==="codeship"){return 1}return n}if("TEAMCITY_VERSION"in s){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(s.TEAMCITY_VERSION)?1:0}if(s.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in s){const e=parseInt((s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(s.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(s.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(s.TERM)){return 1}if("COLORTERM"in s){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 i;var s;var a;var c;var l;var u;var d;var p;var m;var g;var f;var y;var h;var E;var S;var v;var w;var _;var x;var P;var C;(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 R=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");R(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=0;a--)if(s=e[a])i=(r<3?s(i):r>3?s(t,n,i):s(t,n))||i;return r>3&&i&&Object.defineProperty(t,n,i),i};i=function(e,t){return function(n,o){t(n,o,e)}};s=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(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,r,i,s;return s={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function verb(e){return function(t){return step([e,t])}}function step(s){if(o)throw new TypeError("Generator is already executing.");while(n)try{if(o=1,r&&(i=s[0]&2?r["return"]:s[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;if(r=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;r=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(i=n.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]=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.")};d=function(e,t){var n=typeof Symbol==="function"&&e[Symbol.iterator];if(!n)return e;var o=n.call(e),r,i=[],s;try{while((t===void 0||t-- >0)&&!(r=o.next()).done)i.push(r.value)}catch(e){s={error:e}}finally{try{if(r&&!r.done&&(n=o["return"]))n.call(o)}finally{if(s)throw s.error}}return i};p=function(){for(var e=[],t=0;t1||resume(e,t)}))}}function resume(e,t){try{step(o[e](t))}catch(e){settle(i[0][3],e)}}function step(e){e.value instanceof f?Promise.resolve(e.value.v).then(fulfill,reject):settle(i[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),i.shift(),i.length)resume(i[0][0],i[0][1])}};h=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}};E=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)}};S=function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var b=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t};v=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))C(t,e,n);b(t,e);return t};w=function(e){return e&&e.__esModule?e:{default:e}};_=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)};x=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};P=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",i);e("__metadata",s);e("__awaiter",a);e("__generator",c);e("__exportStar",l);e("__createBinding",C);e("__values",u);e("__read",d);e("__spread",p);e("__spreadArrays",m);e("__spreadArray",g);e("__await",f);e("__asyncGenerator",y);e("__asyncDelegator",h);e("__asyncValues",E);e("__makeTemplateObject",S);e("__importStar",v);e("__importDefault",w);e("__classPrivateFieldGet",_);e("__classPrivateFieldSet",x);e("__classPrivateFieldIn",P)}))},74294:(e,t,n)=>{e.exports=n(54219)},54219:(e,t,n)=>{"use strict";var o=n(41808);var r=n(24404);var i=n(13685);var s=n(95687);var a=n(82361);var c=n(39491);var l=n(73837);t.httpOverHttp=httpOverHttp;t.httpsOverHttp=httpsOverHttp;t.httpOverHttps=httpOverHttps;t.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var t=new TunnelingAgent(e);t.request=i.request;return t}function httpsOverHttp(e){var t=new TunnelingAgent(e);t.request=i.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function httpOverHttps(e){var t=new TunnelingAgent(e);t.request=s.request;return t}function httpsOverHttps(e){var t=new TunnelingAgent(e);t.request=s.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||i.Agent.defaultMaxSockets;t.requests=[];t.sockets=[];t.on("free",(function onFree(e,n,o,r){var i=toOptions(n,o,r);for(var s=0,a=t.requests.length;s=this.maxSockets){r.requests.push(i);return}r.createSocket(i,(function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){r.emit("free",t,i)}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 i=n.request(r);i.useChunkedEncodingByDefault=false;i.once("response",onResponse);i.once("upgrade",onUpgrade);i.once("connect",onConnect);i.once("error",onError);i.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,n){process.nextTick((function(){onConnect(e,t,n)}))}function onConnect(r,s,a){i.removeAllListeners();s.removeAllListeners();if(r.statusCode!==200){u("tunneling socket could not be established, statusCode=%d",r.statusCode);s.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");s.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)]=s;return t(s)}function onError(t){i.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 i=e.request.getHeader("host");var s=mergeOptions({},n.options,{socket:o,servername:i?i.replace(/:.*$/,""):e.host});var a=r.connect(0,s);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{"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 i.default}});Object.defineProperty(t,"v5",{enumerable:true,get:function(){return s.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 l.default}});Object.defineProperty(t,"stringify",{enumerable:true,get:function(){return u.default}});Object.defineProperty(t,"parse",{enumerable:true,get:function(){return d.default}});var o=_interopRequireDefault(n(78628));var r=_interopRequireDefault(n(86409));var i=_interopRequireDefault(n(85122));var s=_interopRequireDefault(n(79120));var a=_interopRequireDefault(n(25332));var c=_interopRequireDefault(n(81595));var l=_interopRequireDefault(n(66900));var u=_interopRequireDefault(n(18950));var d=_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 i=r.length;function rng(){if(i>r.length-16){o.default.randomFillSync(r);i=0}return r.slice(i,i+=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 i=stringify;t["default"]=i},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 i;let s;let a=0;let c=0;function v1(e,t,n){let l=t&&n||0;const u=t||new Array(16);e=e||{};let d=e.node||i;let p=e.clockseq!==undefined?e.clockseq:s;if(d==null||p==null){const t=e.random||(e.rng||o.default)();if(d==null){d=i=[t[0]|1,t[1],t[2],t[3],t[4],t[5]]}if(p==null){p=s=(t[6]<<8|t[7])&16383}}let m=e.msecs!==undefined?e.msecs:Date.now();let g=e.nsecs!==undefined?e.nsecs:c+1;const f=m-a+(g-c)/1e4;if(f<0&&e.clockseq===undefined){p=p+1&16383}if((f<0||m>a)&&e.nsecs===undefined){g=0}if(g>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}a=m;c=g;s=p;m+=122192928e5;const y=((m&268435455)*1e4+g)%4294967296;u[l++]=y>>>24&255;u[l++]=y>>>16&255;u[l++]=y>>>8&255;u[l++]=y&255;const h=m/4294967296*1e4&268435455;u[l++]=h>>>8&255;u[l++]=h&255;u[l++]=h>>>24&15|16;u[l++]=h>>>16&255;u[l++]=p>>>8|128;u[l++]=p&255;for(let e=0;e<6;++e){u[l+e]=d[e]}return t||(0,r.default)(u)}var l=v1;t["default"]=l},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 i=(0,o.default)("v3",48,r.default);var s=i;t["default"]=s},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{"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 i=e.random||(e.rng||o.default)();i[6]=i[6]&15|64;i[8]=i[8]&63|128;if(t){n=n||0;for(let e=0;e<16;++e){t[n+e]=i[e]}return t}return(0,r.default)(i)}var i=v4;t["default"]=i},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 i=(0,o.default)("v5",80,r.default);var s=i;t["default"]=s},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;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 i=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 s=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=i(n(42186));const c=n(8923);const l=n(42308);const u=n(68805);const d=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)=>s(void 0,void 0,void 0,(function*(){const r=(0,t.getRegion)(e);const i=(0,t.getAccountIDs)(e);const s={};if(i.length>0){a.debug(`Requesting AWS ECR auth token for ${i.join(", ")}`);s["registryIds"]=i}let m;const g=process.env.http_proxy||process.env.HTTP_PROXY||"";if(g){a.debug(`Using http proxy ${g}`);m=new d.HttpProxyAgent(g)}let f;const y=process.env.https_proxy||process.env.HTTPS_PROXY||"";if(y){a.debug(`Using https proxy ${y}`);f=new p.HttpsProxyAgent(y)}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 l.ECRPUBLIC({customUserAgent:"docker-login-action",credentials:h,region:r,requestHandler:new u.NodeHttpHandler({httpAgent:m,httpsAgent:f})});const t=yield e.getAuthorizationToken(s);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:f})});const t=yield e.getAuthorizationToken(s);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;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 i=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 s=i(n(42186));function getInputs(){return{registry:s.getInput("registry"),username:s.getInput("username"),password:s.getInput("password"),ecr:s.getInput("ecr"),logout:s.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;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 i=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 s=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=i(n(36949));const c=i(n(42186));const l=i(n(71514));function login(e,t,n,o){return s(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 s(this,void 0,void 0,(function*(){yield l.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 s(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 l.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 s(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 l.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;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 i=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 s=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=i(n(42186));const c=i(n(98954));const l=i(n(6512));const u=i(n(80963));function run(){return s(this,void 0,void 0,(function*(){try{const e=c.getInputs();u.setRegistry(e.registry);u.setLogout(e.logout);yield l.login(e.registry,e.username,e.password,e.ecr)}catch(e){a.setFailed(e.message)}}))}t.run=run;function logout(){return s(this,void 0,void 0,(function*(){if(!u.logout){return}yield l.logout(u.registry)}))}if(!u.IsPost){run()}else{logout()}},80963: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 i=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=t.IsPost=void 0;const s=i(n(42186));t.IsPost=!!process.env["STATE_isPost"];t.registry=process.env["STATE_registry"]||"";t.logout=/true/i.test(process.env["STATE_logout"]||"");function setRegistry(e){s.saveState("registry",e)}t.setRegistry=setRegistry;function setLogout(e){s.saveState("logout",e)}t.setLogout=setLogout;if(!t.IsPost){s.saveState("isPost","true")}},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.231.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"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/client-sts":"3.231.0","@aws-sdk/config-resolver":"3.231.0","@aws-sdk/credential-provider-node":"3.231.0","@aws-sdk/fetch-http-handler":"3.226.0","@aws-sdk/hash-node":"3.226.0","@aws-sdk/invalid-dependency":"3.226.0","@aws-sdk/middleware-content-length":"3.226.0","@aws-sdk/middleware-endpoint":"3.226.0","@aws-sdk/middleware-host-header":"3.226.0","@aws-sdk/middleware-logger":"3.226.0","@aws-sdk/middleware-recursion-detection":"3.226.0","@aws-sdk/middleware-retry":"3.229.0","@aws-sdk/middleware-serde":"3.226.0","@aws-sdk/middleware-signing":"3.226.0","@aws-sdk/middleware-stack":"3.226.0","@aws-sdk/middleware-user-agent":"3.226.0","@aws-sdk/node-config-provider":"3.226.0","@aws-sdk/node-http-handler":"3.226.0","@aws-sdk/protocol-http":"3.226.0","@aws-sdk/smithy-client":"3.226.0","@aws-sdk/types":"3.226.0","@aws-sdk/url-parser":"3.226.0","@aws-sdk/util-base64":"3.208.0","@aws-sdk/util-body-length-browser":"3.188.0","@aws-sdk/util-body-length-node":"3.208.0","@aws-sdk/util-defaults-mode-browser":"3.226.0","@aws-sdk/util-defaults-mode-node":"3.231.0","@aws-sdk/util-endpoints":"3.226.0","@aws-sdk/util-retry":"3.229.0","@aws-sdk/util-user-agent-browser":"3.226.0","@aws-sdk/util-user-agent-node":"3.226.0","@aws-sdk/util-utf8-browser":"3.188.0","@aws-sdk/util-utf8-node":"3.208.0","tslib":"^2.3.1"},"devDependencies":{"@aws-sdk/service-client-documentation-generator":"3.208.0","@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.19.2","typescript":"~4.6.2"},"overrides":{"typedoc":{"typescript":"~4.6.2"}},"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.231.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"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/client-sts":"3.231.0","@aws-sdk/config-resolver":"3.231.0","@aws-sdk/credential-provider-node":"3.231.0","@aws-sdk/fetch-http-handler":"3.226.0","@aws-sdk/hash-node":"3.226.0","@aws-sdk/invalid-dependency":"3.226.0","@aws-sdk/middleware-content-length":"3.226.0","@aws-sdk/middleware-endpoint":"3.226.0","@aws-sdk/middleware-host-header":"3.226.0","@aws-sdk/middleware-logger":"3.226.0","@aws-sdk/middleware-recursion-detection":"3.226.0","@aws-sdk/middleware-retry":"3.229.0","@aws-sdk/middleware-serde":"3.226.0","@aws-sdk/middleware-signing":"3.226.0","@aws-sdk/middleware-stack":"3.226.0","@aws-sdk/middleware-user-agent":"3.226.0","@aws-sdk/node-config-provider":"3.226.0","@aws-sdk/node-http-handler":"3.226.0","@aws-sdk/protocol-http":"3.226.0","@aws-sdk/smithy-client":"3.226.0","@aws-sdk/types":"3.226.0","@aws-sdk/url-parser":"3.226.0","@aws-sdk/util-base64":"3.208.0","@aws-sdk/util-body-length-browser":"3.188.0","@aws-sdk/util-body-length-node":"3.208.0","@aws-sdk/util-defaults-mode-browser":"3.226.0","@aws-sdk/util-defaults-mode-node":"3.231.0","@aws-sdk/util-endpoints":"3.226.0","@aws-sdk/util-retry":"3.229.0","@aws-sdk/util-user-agent-browser":"3.226.0","@aws-sdk/util-user-agent-node":"3.226.0","@aws-sdk/util-utf8-browser":"3.188.0","@aws-sdk/util-utf8-node":"3.208.0","@aws-sdk/util-waiter":"3.226.0","tslib":"^2.3.1"},"devDependencies":{"@aws-sdk/service-client-documentation-generator":"3.208.0","@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.19.2","typescript":"~4.6.2"},"overrides":{"typedoc":{"typescript":"~4.6.2"}},"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.231.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"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/config-resolver":"3.231.0","@aws-sdk/fetch-http-handler":"3.226.0","@aws-sdk/hash-node":"3.226.0","@aws-sdk/invalid-dependency":"3.226.0","@aws-sdk/middleware-content-length":"3.226.0","@aws-sdk/middleware-endpoint":"3.226.0","@aws-sdk/middleware-host-header":"3.226.0","@aws-sdk/middleware-logger":"3.226.0","@aws-sdk/middleware-recursion-detection":"3.226.0","@aws-sdk/middleware-retry":"3.229.0","@aws-sdk/middleware-serde":"3.226.0","@aws-sdk/middleware-stack":"3.226.0","@aws-sdk/middleware-user-agent":"3.226.0","@aws-sdk/node-config-provider":"3.226.0","@aws-sdk/node-http-handler":"3.226.0","@aws-sdk/protocol-http":"3.226.0","@aws-sdk/smithy-client":"3.226.0","@aws-sdk/types":"3.226.0","@aws-sdk/url-parser":"3.226.0","@aws-sdk/util-base64":"3.208.0","@aws-sdk/util-body-length-browser":"3.188.0","@aws-sdk/util-body-length-node":"3.208.0","@aws-sdk/util-defaults-mode-browser":"3.226.0","@aws-sdk/util-defaults-mode-node":"3.231.0","@aws-sdk/util-endpoints":"3.226.0","@aws-sdk/util-retry":"3.229.0","@aws-sdk/util-user-agent-browser":"3.226.0","@aws-sdk/util-user-agent-node":"3.226.0","@aws-sdk/util-utf8-browser":"3.188.0","@aws-sdk/util-utf8-node":"3.208.0","tslib":"^2.3.1"},"devDependencies":{"@aws-sdk/service-client-documentation-generator":"3.208.0","@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.19.2","typescript":"~4.6.2"},"overrides":{"typedoc":{"typescript":"~4.6.2"}},"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.231.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"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/config-resolver":"3.231.0","@aws-sdk/fetch-http-handler":"3.226.0","@aws-sdk/hash-node":"3.226.0","@aws-sdk/invalid-dependency":"3.226.0","@aws-sdk/middleware-content-length":"3.226.0","@aws-sdk/middleware-endpoint":"3.226.0","@aws-sdk/middleware-host-header":"3.226.0","@aws-sdk/middleware-logger":"3.226.0","@aws-sdk/middleware-recursion-detection":"3.226.0","@aws-sdk/middleware-retry":"3.229.0","@aws-sdk/middleware-serde":"3.226.0","@aws-sdk/middleware-stack":"3.226.0","@aws-sdk/middleware-user-agent":"3.226.0","@aws-sdk/node-config-provider":"3.226.0","@aws-sdk/node-http-handler":"3.226.0","@aws-sdk/protocol-http":"3.226.0","@aws-sdk/smithy-client":"3.226.0","@aws-sdk/types":"3.226.0","@aws-sdk/url-parser":"3.226.0","@aws-sdk/util-base64":"3.208.0","@aws-sdk/util-body-length-browser":"3.188.0","@aws-sdk/util-body-length-node":"3.208.0","@aws-sdk/util-defaults-mode-browser":"3.226.0","@aws-sdk/util-defaults-mode-node":"3.231.0","@aws-sdk/util-endpoints":"3.226.0","@aws-sdk/util-retry":"3.229.0","@aws-sdk/util-user-agent-browser":"3.226.0","@aws-sdk/util-user-agent-node":"3.226.0","@aws-sdk/util-utf8-browser":"3.188.0","@aws-sdk/util-utf8-node":"3.208.0","tslib":"^2.3.1"},"devDependencies":{"@aws-sdk/service-client-documentation-generator":"3.208.0","@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.19.2","typescript":"~4.6.2"},"overrides":{"typedoc":{"typescript":"~4.6.2"}},"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.231.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","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":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/config-resolver":"3.231.0","@aws-sdk/credential-provider-node":"3.231.0","@aws-sdk/fetch-http-handler":"3.226.0","@aws-sdk/hash-node":"3.226.0","@aws-sdk/invalid-dependency":"3.226.0","@aws-sdk/middleware-content-length":"3.226.0","@aws-sdk/middleware-endpoint":"3.226.0","@aws-sdk/middleware-host-header":"3.226.0","@aws-sdk/middleware-logger":"3.226.0","@aws-sdk/middleware-recursion-detection":"3.226.0","@aws-sdk/middleware-retry":"3.229.0","@aws-sdk/middleware-sdk-sts":"3.226.0","@aws-sdk/middleware-serde":"3.226.0","@aws-sdk/middleware-signing":"3.226.0","@aws-sdk/middleware-stack":"3.226.0","@aws-sdk/middleware-user-agent":"3.226.0","@aws-sdk/node-config-provider":"3.226.0","@aws-sdk/node-http-handler":"3.226.0","@aws-sdk/protocol-http":"3.226.0","@aws-sdk/smithy-client":"3.226.0","@aws-sdk/types":"3.226.0","@aws-sdk/url-parser":"3.226.0","@aws-sdk/util-base64":"3.208.0","@aws-sdk/util-body-length-browser":"3.188.0","@aws-sdk/util-body-length-node":"3.208.0","@aws-sdk/util-defaults-mode-browser":"3.226.0","@aws-sdk/util-defaults-mode-node":"3.231.0","@aws-sdk/util-endpoints":"3.226.0","@aws-sdk/util-retry":"3.229.0","@aws-sdk/util-user-agent-browser":"3.226.0","@aws-sdk/util-user-agent-node":"3.226.0","@aws-sdk/util-utf8-browser":"3.188.0","@aws-sdk/util-utf8-node":"3.208.0","fast-xml-parser":"4.0.11","tslib":"^2.3.1"},"devDependencies":{"@aws-sdk/service-client-documentation-generator":"3.208.0","@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.19.2","typescript":"~4.6.2"},"overrides":{"typedoc":{"typescript":"~4.6.2"}},"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)"},"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)"}}}],"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